skysight-inc/HackerNews huggingface dataset:
Ask HN: How do you handle translations in multi lingual apps?
Sup devs! I've had a handful of different experiences working on multi-lingual apps and in each case the translations process has been, well... a bit of a mess. (My experience is in web applications)

Now-a-days the open source tooling is actually pretty good at what it does. For example, i18Next or next-translate are a great. These tools are great utilities for detecting the browser locale, and looking up translated strings in the correct language in your front end code. "All you have to do" is get your translations in json files in your source code.

Therein lies the rub. I don't know french, so I need a translator to fill in the french strings for my JSON file, but Github is not the right place for a translator to work. In past projects, I've uploaded these files to Google Sheets. When the app gets big enough though and there's multiple features with their own strings in development in parallel, keeping the source files in sync with the sheets that the translators use becomes a headache (in fairness it's usually more of a headache for the project managers, not for myself haha).

If you've worked on a multilingual application before, I'd love to learn about how the translation system worked on that project and what it was like working with it from your perspective. The following info in each post would help provide context for the discussion:
- your role
- project framework/language
- number of developers on the project
- what tools did you use to manage the translations (if they were paid tools, please mention the price if you know it)
- if you used a tool to manage the translation files, was the tool provided by a translation agency or did you bring your own translation agency and just use the software?
Sorry. 2019. What?
Redacted Documents Aren't Secure
Cool research coming out of the ITI @ UIUC showing that the US court system sometimes does a critically bad job with redaction.
> The difference probably belies in the rigor of the program.

This is anecdata of course, but my experience with a top-3 US undergrad aerospace engineering program in the late-90s, early 2000s was around 15-16 hours of class time per week, sometimes increasing to 18-19 or so with labs. Work outside of class was 3x this or maybe 4x around midterms or finals.
I think that the perpetrators of violence carry the responsibility for it, not the people who may have inspired them. Since perpetrators are agents, the cause of violence terminates at the decision making process of the perpetrator. The best way to address violence is to arrest and imprison perpetrators.

Attempting to control second-order factors that may influence behaviour is a very short road to tyranny. How do we decide which factors to control for? Who gets to make this decision? How do we know in retrospect that such a decision was mistaken? The only justice lies in conviction beyond a reasonable doubt by a jury of one's peers.

Also, how "slow burning" does a "genocide" have to be before it's indistinguishable from a normal process of cultural shift and assimilation? (honest question)
nonsense.

if an organization chooses not to use its voice to spread misinformation, thats not censorship.

is it censorship when my weather app _chooses_ not to say it’s snowing when it’s 103 out?

that’s absurd.

one of the links posted above said some americans believe that all sides should be reported equally. again that’s
stupid. not just silly, it’s stupid. “all” sides? these muppets believe “all” sides deserve equal weight, always?

People used to, after midnight bury a toads leg under an oak tree on the third full moon believing it would cure cancer.

are people now arguing that medical journals should be required to include this next to all cancer research? that it should be covered equally with the same weight? that’s stupid.

is it censorship if a journal doesn’t include woo crazy nonsense? no, it’s an editorial choice.

you can attack me and call my posts vapid all you like, but i was asking for more clarification from vague posts making extraordinary vague claims about some vague “chorus of coastal media types”
Yeah, but we made some awesome sandboxing friends along the way.

We could actually get a nice performance boost out of running WASM with VM enforced security instead of Rings and the MMU.[0]

[0]: https://www.destroyallsoftware.com/talks/the-birth-and-death...
I just want to note that I was able to solve this issue. Thank you to the googler who reached out to me to help, 'rygar', and the rest of the google cloud/pay support team for helping fix this issue.
> C-h isn't some crazy invention of readline (...) that you got used to: it is the standard key code for backspace.

> C-H is equivalent to pressing Backspace!! Now, there is also a DEL, for the Delete key, which is which is 127

Not anymore on Linux terminals. People wanted to distinguish backspace and C-h, so in some time in 1990s there was great DEL-BS shift, where convention changed to use 127 for BS and some escape sequence for DEL (in direction from terminal to program, in the opposite direction the original convention is still used). That is why there are these sections in Emacs manual (and similar options on other tools) - to handle situations where terminal behavior and information about terminal are mismatched.
> If one thinks the speech in question should be legal, you'd think one would mention the kind of speech, not just the medium.

Fundamentally, all speech should be legal, barring very special circumstances. That's freedom of expression.
There were people arrested for posts on Facebook during COVID lockdowns. We had police on the ground hassling every person in sight. Multiple friends of mine were fined for taking a momentary pause on their 1 hour of allotted outside time per day. Police were checking whether coffee cups were indeed full of liquid. We had statewide man hunts for people who sneezed in lifts that they were the only one in. Protests against the draconian measures were violently suppressed by the state government. It was one of the most important and impactful government decisions in the history of the country, affecting the lives of every person and dissenting political demonstration was banned.

The Federal government passed a law requiring a backdoor for all encrypted communication in the country and the press was completely silent. We ban drawn Japanese porn for some unknown reason while allowing real porn which unambiguously provides greater risk of harm. Prior to internet distribution of video games, many were simply banned for import on the whims of a parental advisory board. Australia is a nation obsessed with prohibition and there's nothing Australians love more than collective moral outrage followed by a cathartic wholesale ban.

I'm Australian and whenever I see valid criticism of the country on the internet I soon find an upset Australian replying. They never really refute the underlying point, they'll reply with a non-sequitur or talk about how it doesn't affect their lives. The reality is most Australians don't even feel the noose around their neck because they've never stepped out of line in any way. Most protections on liberty are for extreme and unusual circumstances, you don't notice their absence until it's too late. The vast majority of Chinese people trust their government, and believe the various restrictions on speech and liberty are in the best interests of the nation. Their curbs on liberty are too invasive of course, ours are necessary.
Why are we still printing things?
Just guessing, but there may be other devices providing DNS service on your network. For example I have found that AppleTV is listening for DNS queries on a couple ports and MacOS will happily fallback to that.
I was expecting the opposite conclusion in your final sentence. That staying in a stable, comfortable but dull job becomes less and less worth it. The interpretation relies on the reader’s experience I guess.
Telling someone to stop gatekeeping is not gatekeeping.
SGX, the technology which Signal Messenger built a lot of their secure? stuff upon.

Like:

Technology Preview for secure value recovery

<https://signal.org/blog/secure-value-recovery/>

Technology preview: Private contact discovery for Signal

<https://signal.org/blog/private-contact-discovery/>
What's the value of having sqlx in the stdlib? The only reason I could see is a social one, not a technical one (discoverability).

The Go devs did in the past include external libraries in the stdlib, the most significant one being "golang.org/x/context" moving to "context". This was a very important inclusion because it meant the stdlib could start offering context-aware APIs, and it was a signal to the rest of the ecosystem that the context API is stable forever and other packages can make their APIs context-aware without risk of future breakage. With sqlx, none of these issues arise: the main compatibility interfaces between different SQL libraries (particularly to the drivers providing support for different RDBMS) are already present in the stdlib.
They also use Cig butts to line their nests, apparently the crap in the butts kills bacteria.
> Widevine

its pretty widely available how to get around this now. I have my own implementation actually. I wont say its "easy", but it is doable. And you can get quite a lot even with just an L3 CDM. Also at least one public Widevine proxy is now available, as well as a content key database.
> You realize, with a phone number, all payment details for the SIM can be accessed?

Sure. But which phone number?
I think this is the perfect counterexample to the idea that HN is a good pattern upon which to look for a quality forum.

Dismissive, elitist, and equips the very people least qualified to moderate with the tools needed to attempt to silence voices they deem "contrarian" (whatever that means).

You don't want this in other contexts. Heck, you don't want this behavior in this context.
Sorta. Inference can't tell how big of a numeric type I have to support based on just the static typing.

You probably could just call the data statically typed, but with the idea that the concrete type that you are actually dealing with could be any of a few types. Think a function in Java that takes in a Number, but obviously has to have code to work with any actual numeric types. Even more fun, the code could do basic bounds checking to make sure that the result you are working with fits, such that the code starts with an Integer it is working with, but auto moves to Long, etc.

And that is where I wish dynamic typing focused more. It isn't that the type of things is not knowable. Clearly they can be known. And it is nice to have parameters constrained to be within a range of expected types. The actual type, though, is dependent on runtime data.
I’m excited for the possibility of including use-package in emacs 30.

My init.el always fails first time on a new machine due to not having use-package. Can’t install use-package via use-package. so I have to manually install it.

Yeah, there’s probably a way to automate that, but for new people it will always be a weird. I’d love to tell new people “Throw (use-package selectrum :ensure t) select it and M-x eval-region!” Without, yeah, the 4 lines of weird package init elisp.
This is exactly the same problem that OP was drawing out with Ruby's Data: the references inside the Data object are immutable and cannot be changed to point to other objects, but once you've dereferenced the (immutable) pointers there are no immutability guarantees. Hence, shallow immutability.

The only conceptual difference between this and JS's `const` is that you can't use `const` to declare object properties immutable; for that you need Object.freeze().
> everyone should be ashamed for using Intel hardware when AMD chips do not abuse the user

AMD has their own analog to Intel's Management Engine. Maybe they don't have SGX or something like it, but AMD is no saint either.

In theory, SGX can be used for good: see Signal's use to avoid seeing users' contact lists. Granted, their scheme is pretty broken given how broken SGX is (and probably for other reasons), but I think the idea behind it is good. Of course, we can't force companies not to use technology in anti-user ways, and I assume Intel built SGX with the PowerDVD-type use cases in mind.

"Ashamed" is a weird word, not sure why I'd be "ashamed" for choosing an Intel-based laptop that meets my needs, when nothing with an AMD CPU did. Maybe the Framework folks will eventually build an AMD-based mainboard, and if they do, I'll consider it, but for now I have what I have, and I don't particularly feel... anything... about it, let alone shame.
> There are dozens of lotteries to enter for different parks and lands that are hard to access. And all of them come with service fees attached, fees that go directly to Booz Allen, which built Recreation.gov. The deeper you go, the more interesting the gatekeeping. As one angry writer found out after waiting on hold and being transferred multiple times, the answer is that Booz Allen “actually sets the Recreation.gov fees for themselves.”

What! Wow. That is really disappointing to read.
> What can we do to make it more utopian?

A polity with an outmost shell of no bs ic spooks in a ratio of twenty to one cybersec defense to offense. There is the problem of sciengineers conceiving in the labs photonic computing but the committee member wage/salary slave cuts cost corners (or not but bloats up on unnecessary complexity) and we get the worsest join on the venn diagram in the industry spec.
Computer Hacking
Yeah. One data point. Or "anecdote" if you will.
Rather as if it makes the reality (and therefore the norms, and therefore any rules which aim to be descriptive rather than prescriptive) of online speech different from in-person speech.
thank you for the correction; i was relaying my poorly-remembered account of what you said about the experience, as you likely guessed
There’s no black and white. I’ve known really good optimizers who do harm to the company and their peers by obsessing over gains that simply don’t matter.

And I’ve known people who make programs unnecessarily slow and painful because of sloppiness.

That’s not to say you can’t endeavour to “do it right the first time” but very regularly that is not a realistic goal.

Good engineering requires understanding the big picture, particularly what matters and doesn’t matter to a business (and how those priorities change over time).
Life Size Portal 2 Companion Cube Build
Some (most?) do, yes, here is a V8 article on that for example: https://v8.dev/blog/wasm-code-caching
No, I don't think the government needs to be directly involved for it to be considered bad. The example you describe sounds very bad to me.

But my comment was questioning OP's suggestion that the incident was tied to authoritarianism.
> “I’ll have to repair nearly every article I’ve ever written since my tweets got wiped out,” journalist and videographer Vishal Singh wrote on Mastodon on Monday, after being banned from Twitter. “Hundreds of articles written by countless journalists used my tweets. From all sides of the political spectrum. Academic papers that cited my tweets. These links and embeds are now all broken.”

When will people learn that links on the web will get broken, your content is not owned by you unless it's on your own server (and accessible only if you can create new routes to it when the existing one breaks)? This isn't complicated, though it is a bit inconvenient.
I wish I had your optimism. I suspect the opposite though.

A better user experience was never the goal of cloud services. Providing translation and other services in the cloud gives companies massive amounts of data about you that they can leverage to their advantage and gives them opportunities to control and shape what we're allowed to do or see. As long as that stays true there will always be a push for users to give up more control and become more dependent on third parties.

I want to live in a future where more things are done locally and independently, but things are headed in the other direction and there's a lot of money and power behind preventing the pendulum from swinging back. I'll do what I can to fight the trend though, and if this add-on really works as advertised I'll gladly use it.
There are plenty of them. You can start here[1] and do digging to find whichever one you think is most appropriate. It has been years since I have looked at any of these in depth, but the general consensus has often been that at our best the US is on par with countries like Australia and the UK and is occasionally a tier bellow those two. I'm not aware of any that have us a tier above either of them when it comes to general freedom metrics.

[1] - https://en.wikipedia.org/wiki/List_of_freedom_indices
Hah! Good observation, M_MP. Doci Veritas.
It is supposed to be a Rick and Morty reference. [1] But I must say "GreasyFork" makes a lot of sense haha.

[1] https://www.youtube.com/watch?v=3ht-ZyJOV2k
Tim Cook Goes to Washington to Meet with Top GOP Lawmakers
Glad you liked Professor Borges!! I can vouch for its authenticity. There should be a foreword explaining this (lest it has been removed in the English edition) The book is based on transcripts made from actual recordings of his lectures. The text is thus completely unaltered, there´s no significant difference between reading _Professor Borges_ and actually attending Borges´lectures back in the late ´60s It´s due to this that I always say it´s not just a book: it´s also, in a way, a time machine.

This is also the reason for the quote before the foreword:

"I know, or rather I should say that I'm told, for I am certainly unable to see it, that my classes are increasingly crowded, with more and more students attending, and that many of them are not even registered in the course. I thus think we can safely assume that they want to listen to my lectures, right?"

When he says above that many students are attending without being even registered he means that they´re attending in spite of his course not being a requirement for them. They´re attending as listeners, regardless of their earning no credit for it, out of sheer pleasure and genuine interest.

In Spanish:
"Yo sé, o más bien me dicen, porque desde luego yo no puedo verlo, que mis clases se llenan cada vez más de alumnos, y que muchos no están ni siquiera inscriptos en la materia. De modo que debiéramos suponer que quieren oírme, ¿no?”
stay in your lane, go the speed limit and ALWAYS look for an escape route.
I'm maintaining about half a dozen microservices written in Go. In my experience, the Go community is very good about providing backwards compatibility.

In fact, I'm very strict about keeping on top of my dependencies because "spend a sprint to upgrade to the next version" is a process smell to me, no matter how seldomly it occurs. I have my Renovate bot set up to send PRs every Friday. Most of them are on "automerge on test success" at this point, then they soak in QA for the weekend and I send them to prod on Monday. The only trouble I can recall is with updating Kubernetes libs (let's not open that can of worms right now) and in some cases I have to manually intervene when libs upgrade from `interface{}` to using generics, but that's a refactoring that I gladly do.
DG was never a mainframe company. west was trying to transform a small 16-bit mini into a 32-bit mini. De Castro, the CEO of DG at the time said he wanted that, but "no mode-bit", which shows him as being not being disconnected from his engineers. All in the book.
Organizations with savvy legal and security teams are going to either not do this in jurisdictions where it's not legal, not do it at all, or be very quiet about it.

I'm not a security professional so take this with a grain of salt but, if I were going to do this I would be listening for things that could conceivably be trying to pop equipment in employee possession. So malicious mDNS advertisements, nmap scans, that kind of thing.
You shouldn't have to block it with your hosts file for firefox since you can just disable it.
Another common one is converting booleans to "Y" and "N".
I think it’s weird how little news from the Spanish speaking world makes it to English media, or UK media at least. I know very little of what’s going on in Latin America other than Brazil got a new president and El Salvador is not doing well with its crypto experiment. I suppose you could say this for most non English speaking areas like Africa and Asia but those areas have a lot of different languages in comparison and there’s a lot of linguistic crossover between Spanish and English considering the shared Latin influence.
What would happen if we stopped recycling cardboard? We would have to have more tree farms and we would have a decent size carbon dioxide sink assuming we bury cardboard in a landfill.
Paywalled articles should be banned on HN in the first place.

The fact that they even have the slightest bit of exposure on this site is the real icky thing.
Probably not re packaging. I like use-package and they’re talking about including use-package with emacs 30.
You plan to spend the best years of your life in a job you hate?

If you can afford it and growth prospects within the system aren't looking so great, it could be time to take a risk on growing yourself independently for a couple years.
Most people know which media is left and which is right. So if you only want to hear left, avoid Twitter now. If you want to hear right, go there. If you are like me and realize they are both shit, don't watch media.
Artist feeds childhood diary into GPT-3 to have a chat with herself
>Too bad there's no Japanese or Korean translation :(

It's interesting that they have Icelandic, a language spoken by 350,000 people. I'm often surprised seeing Icelandic has a full audio dub on a Disney or Netflix movies, above languages spoken by 100X or more speakers. That can't be an economic decision.

Anyone know why Icelandic punches above its own weight? Or is it because it has so few speakers that people do dubs to help preserve it?
Ahem... 2008 as well as several other years and Econ 101 would like to have a word with you...
Unless you're exposed to a carcinogenic chemical...
Seems like this is glossing over some things...like how expensive air travel was prior to dereg. In the '70s it wasn't unusual to see fares (numerically) equal to a modern budget airline...but a dollar was worth a lot more back then. The average new car purchase in 1975 was $4,900.
Ask HN: What's the best way to get developers to try a new devtool?
Some friends of mine founded a devtools startup, building a collaboration tool for dev teams. They asked me for any ideas on how to get developers to try their SDK. I had no ideas of my own so I'm posting here hoping that someone can suggest some strategies/tactics they can use to get their critical, focused batch of beta users.

(If you're interested to try it yourself, you can check it out here - https://sdk.livecycle.io/signup2 )

Suggestions welcome and appreciated... Thanks!!
This can be spun off into another thread. I haven't tried it yet but the feedback has been excellent.

https://reddit.com/r/emacs/comments/ymrkyn/async_nonblocking...
I think you still are anti-framework by any reasonable definition of the word. Library = your code calls it, Framework = it calls your code.
Interesting take. It feels like this can explain quite a bit about growing vs large company culture as well.
Deduplication doesn’t work with client side encryption, at least not securely because it at the least exposes that the file already exists.
Ask HN: What is the hardest project or scenario you&#x27;ve ever faced?
-