skysight-inc/HackerNews huggingface dataset:
> He's lashing out like a toddler who can't have something he wants.

I think that is an overly simplistic interpretation.

The larger context to consider here is other countries that are loyal/controlled/influenced by Russia, the ex-Soviet states like Azerbaijan, Kazakhstan, Georgia. Russia's inability to defeat Ukraine is showing them that they can move away from Russia of soften their alignment and go against the Kremlin's influences. Kazakhstan has rejected the referenda annexing Ukrainian territory and Kyrgyzstan has canceled joint military exercises with Russia.

Therefore Russia wants to signal that it still can project destructive power abroad both directly, with strikes on civilians deep in Ukraine, and indirectly. By attacking civilians and ignoring the usual norms & law of war (which is usual for Russia anyway), Russia is reminding people that it doesn't care about such things as civilians and therefore the talk of using nuclear weapons should be taken seriously.

Basically Russia is reminding us that it is a bully who doesn't care about your feelings.

Internally, whilst Putin holds almost ultimate power, this still requires a loyal network of supporters who run the country's government and businesses. He needs to keep the tough man image that he has cultivated and relies on for power. Showing any weakness begins his eventual downfall. Which is one reason why blaming and sacking top military: to show his power of them.

Lastly, humans tend to be less risk adverse when cornered and Putin is getting cornered by these factors and more. That makes him more likely to try harsher tactics in order to save himself. We've seen this recently with the conscription, bombings, propaganda and increasing the murders and forced deportations in captured territory. He will become more unpredictable and I fear things will get much worse before they get better.
It seems to me that enabling string replacement with all lookups enabled by default would be a dangerous idea to begin with. Why would it be implemented that way?

Having a replacement that is based on arbitrary scripts (!) seems especially questionable to me, in my brain that is a niche use case and should be turned off by default.

Maybe we have to sharpen the awareness of the common developer to these kind of dangerous practices, like we did with SQL injection attacks where string concatenation to create your queries is generally frowned upon and is regarded as a bad practice industry-wide.
Ask HN: Recommend the things to experiment if you have 20% free work time?
Suppose your company allow you to experiment things for 4-5 hours per week
> I've just seen this so many times before and I can personally see the use cases, they are just not what most people think they are.

Then what are they?
The bright-in-your-eyes headlights (oncoming or following you) are a problem, especially oncoming on curves. I learned early to follow the outside lane marker with my eyes, effectively taking my eyes off the road to avoid getting temporarily blinded.

My wife suggested a fun tech solution: night vision and making all lights less bright. Kind of a fun idea: a slight glow or dim lights so you can still see vehicles unaided, but a full night vision windshield or glasses and no more too-bright-to-see lights.
Yes and no. Lifestyle has an impact on intelligence. You probably can't train yourself into a higher IQ, but you can many things that will dimish it (not sleeping well, bad nutrition, drugs, stress, etc.)

So if you've led a non ideal lifestyle in the past, you might be able to increase your intelligence by making less mistakes, relative to your current abilities.
So, you'd also lie to Congress, because you wouldn't expect to get caught. Got it.
Sure, but what if you never need to internationalize? Introducing a level of indirection have a cost. This is exactly why YAGNI applies.

Refactor the code to support a requirement when the need arises.
First up, I'm not against AI art - I think it's incredible what we can do with computers nowadays, and AI art generation is a fantastic idea. However, I would say your statement that 'Art is only a human endeavor if it's done for intrinsic value or to share an idea or an emotion' casts an interesting pall over AI art, and its role in terms of human culture.

Overall though, perhaps I've oversimplified. The question I should have asked should have been 'if artists can't make money on it, then how can they afford to dedicate time to developing their craft and producing their art?'

Personally, my suggestion would be something like Universal Basic Income, but there are a lot of people who would be against that.
We are in a good place, but our hydro is basically maxed out and can not support a future (with higher consumption) no-wind scenario during winter since it does not have enough power for that alone.

Nuclear power is a good idea, but so is wind for Sweden. We already have a lot of wind but high pressure areas with little wind do exist, even in winter. Nuclear looks kind of good from that point of view, but I strongly feel that Sweden is way too small of an actor to buy reactors on her own, and should actually co-order reactors with other countries, getting the costs down (maybe not even costs, but risks. There have been a lots of bankrupted players in nuclear lately).
Remember that poor men were historically just as disadvantaged as poor women. And they were never expected, or forced, to go die or get maimed in pointless wars.
The case for energy optimism
On my Toyota Highlander, I can toggle that with a button on the dash to the left of my steering wheel.
> you can test a neural network a million time [...] You can't do that with a human, you got to take a chance.

Funny, as a biochemist, I always took it that minds had essentially been through unfathomable numbers and levels of iteration through cultural and biological evolution cycles, and that ANNs were the untrustworthy new kids on the block :)
Your semantical argument of "principle" vs "contextual rule of thumb" is incorrect. They mean the same thing in almost every context, according to any dictionary/thesaurus you find out there.

In fact, the ultimate defining characteristic of a "principle" is that it has exceptions and should not be used as the "ultimate word of God".

Even in Physics, where most would think a "principle" means something "without exception", they are only ever currently without exception according to current evidence. There has been countless times where there has been a scientific principle only to be disproven later on.

Lastly, you link Sapir–Whorf, which, quite ironically, is considered a "principle" yet has had much criticism over time, which contradicts your own argument.

However, I will agree with you that one should always be careful of the language they use since it can affect how others view your thoughts, feelings, and intentions.
did the same with the Rodnay Zaks book to hand. Definitely my favourite tech manual in my early teenage years.
NATO should realize that the Iran drone has a range of 2 k km. and should supply Ukraine with > 300 km equipment ( the limit for international missles)
same, protective plastic cover and all
makes sense to own the means of communication, to shape the narrative.

Ye on Parler will present a pretty clear challenge to US norms of freedom of speech - he is a vocal anti-semite (whilst at the same time claiming to be Jewish)and I doubt very much that ownership of any platform will moderate his views.
You don't need to bake in a complete i18n solution, though. Just create a simple map of keys->strings, and then a function ala

getStringForKey(key, language) {
return map[key]

and then whenever you actually need it, just expand on it. But at least you then have all strings in one place, and a common way of accessing them. (And easy lookup of all places using these strings)
I have to disagree with the first point in the article. The “zero, one, many” rule, or the related “rule of three” isn’t about how many items you have in your list, it’s about code reuse. The conclusion is correct though, that you should default to one:many relationships unless you know they are strictly one:one
You mentioned electrical infrastructure, is this their objective with these drone attacks?

It seems odd to be attacking Kyiv since it’s so far from any frontline. But I know nothing about these things.
Despite giving a talk, I'm not an expert on the subject, but if you look at ZX Spectrum forums and the ZX Spectrum discord, you'll find more information: the block instruction flags, the NMI preservation during reset, SCF/CCF flag instability.

I haven't researched any of those yet, but many have and did publish those results ! redcode's Z80 emulator seems to be the most up-to-date on those subjects: https://github.com/redcode/Z80/blob/master/THANKS (has many links to the various reverse engineered parts).
The article is very vague. It would be interesting to also have a link to the full study/paper, to get a better picture.

FWIW, at least on the teaching/TA side, Dutch universities have already been careful when storing student data to the public cloud due to GDPR [1] compliance issues. In my previous affiliation, we used to create one-off mappings for each course, assigning each student a pseudonym. Any data processed on the public cloud (typically Google Docs) were using only the pseudonym, so the students couldn't be identified. The mapping file was maintained on private cloud (typically SURF [2]).

But of course, this would all go to waste if after registering the grades, they would be stored on the public cloud in some other form. That's not happening AFAIK, but I've been out of the loop for a couple of years.

[1] https://www.gdpr.eu/

[2] https://www.surf.nl/
Not rarer than bankrupcy.
I'd say there's nothing wrong even if you're paid for 40 hours a week in each of these jobs. The reason for that is quite simple: I am not a slave and my lifespan is not infinite.

If you tell me "I will need you 40 hours a week" but then it turns out you actually need 20 hours of my time a week I am not going to waste these 20 hours because life is too short for this kind of foolishness. I could tell you that I'm done after these 20 hours, but if my 20 hour output already matches the average output for that position then why should I? What is in there for me? Most likely I am not going to be rewarded for picking more work anyway, I will just work harder and that's it. Why bother if there's no incentive to work harder? I might as well prioritize myself and my finances as opposed to provide above-average value to someone who will never reward me for doing so.

If I was running a business and I would manage to effectively double my income I would be praised and pointed to as an example of a successful person. Yet if I do the same as an employee all of the sudden there's tons of problems around it. Why should I let myself be worse-off than a random company? Why should I willingly choose to earn less if I can earn more?
It's a shame but a necessary evil. I have seen multiple electronics/retro gaming channels messing about with titles and thumbnails to test what attracts the most views.

The general consensus seems to be they wish they didn't have to, but you've got to earn a living somehow
It is designed for that.
I just read Gopnik's article about Simenon; it's a fine article because Gopnik is a fantastic writer, but seems to revel in clichés about France, the French, and their "Gallic shrud". At every turn of phrase one fears a mime with a béret, a baguette and a Gitane will suddenly materialize with a witty one-liner about the meaning of life. (It also starts with a typo: it's "Palais Royal", not "Palais Royale").

It states that Simenon was a precursor to the nouveau roman, "of Robbe-Grillet’s faith in describing only the surface of events", and that Ernaux is a successor to this.

There are two problems with this theory.

One, the nouveau roman doesn't just describes the "surface of events", but every little object in minute detail. It wants to be neutral, to deliver a scene as free of prejudice as possible, so that the reader may form her own opinion. It can spend pages describing a door handle that no one in the room will ever touch.

This is not what Simenon is doing.

And second, this is not what Ernaux is doing either. Her style is flat and without flourishes, but she doesn't shy away from moral judgement and self-aggrandizement. In "L'Événement" (published in 2000), she compares her abortion to the experience of "solo navigators", of "going somewhere where others will never think of going".

At the time abortion was illegal and dangerous, but that didn't make it rare. By some estimates [0] there were over 800,000 abortions a year in France in the 1960s. So many, many women did in fact go there, risking their reputation, their freedom and their life; something her self-centeredness prevents her from seeing or even inquiring about.

[0] Anne-Marie Dourlen-Rollier, La vérité sur l'avortement, Paris 1963
And has Kanye already asked for statistics on the number of bots? I mean, it appears as if he's trying to do an Elon.
> establishing a universal basic income of 100,000 Danish kroner per month, which is equivalent to $13,700

Optimizing to win the election and then provide status quo?
Thank you for that, though it seems you replied to the wrong comment. That doesn't have to do with what I wrote.
Despite all that, Jacobson's work gets uncritical acclaim in the popular press to this day, even as other scientists keep pointing out problems with it.
Yes, they have a way. Even an algorithm given no access to anything but the copilot training data has a way, because it has temporal information: it says where the code appeared first! Github has the data, but doesn't give an easy way to search it, hmmm...

Although we can't rule out a common origin of shared code, including a common origin off github, we can know for sure that old code doesn't copy code from the future.

As to Microsoft and human developers having no clue about a piece of code's origin, thats especially false, since not only do we have timestamps on repositories, we can also easily verify that the code first appeared in the context of the csparse library, by Tim Davis, CS professor at Texas A&M who has worked on sparse matrix numerical methods his entire career.
But at the same time it's like the right-wing(nuts)-news in that not one is profitable and they always need outside money support.

Its one of the ways we are able to identify dirty money in politics as when they do that its easy to track it as opposed to a cash infusion from the platform owner.
Spinners are a total antipattern. If loading is interrupted by an error, the spinner just keeps spinning. And there's no need to display progress every millisecond, 0.1 Hz should be enough.
You read the article titled “… Service Workers…” and tried getting it working on a device, that you explicitly disabled Service Workers because of your strong opinion on them?

I’m… not sure what to say.
A bugle can't do equal temperament, so yes, but are there any standard orchestral instruments that can't be made to do equal temperament?

Obviously a string quartet doesn't normally play equal temperament, but they could if they wanted to, I think, if we ignore the playing of harmonics, which is a fairly unusual technique.
In aggregate, yes, but in particular, it's the opposite.
The STM shortage seems to be over, at last.
Can you quote where they suggested a flat democracy? Looks like you are putting words in their mouth, also known as creating a strawman.
I think it is also because of the game publishing industry.

I made a Tetris clone in Pascal, running in a 286 machine with 1 MB of RAM. It took me about a week of coding, and it ran as a single segment program, so it was limited to 64Kb of memory.

For me, this was the moment I learn about for loops. The program was a big collection of for loops.

I could have made some original game, but being Colombian, living in Bogotá, no one would have bought it. Everything we had was pirated, so there was no incentive to actually publish anything.
Rework by Fried, Jason, Heinemeier Hansson. It's a classic book for a small startup like us. Recession is looming and I am preparing for serious one.
Exactly how I would have done things except the hardware we used to sell had F6 to load raid management firmware.. so too early and I would end up looking at disk configurations. Of course there was no exit when I pressed too early, just another reset button :)
By the way, null-terminated strings are not the only way to express strings, it’s a legacy of C that many low-level programmers dislike but need to stick to it because of legacy reasons (every major OS is written in C).

All the low-level languages aiming to replace C basically abandoned this approach, and opted for slices instead (ptr + size pair, used in Rust, Zig, etc.) This has the benefit of easier and faster string manipulation (strlen can be O(1) instead of O(n)), as well as better memory safety (can do bounds checking with the size information). The primary reason we are still using and teaching null terminators is because we still have to live with POSIX/Win32 and many low-level libraries written on this platform.
Oh, thanks a lot for letting me know! The website got to the front page of HN, and I ran out of my free tier limits on Vercel, had to upgrade to the pro account.

Already fixed.
So real.

I grew up real poor and it made me hungry. I think that's where a lot of the hacker mentality comes from, one form of poverty or another.

I am hoping to raise children soon and I am wondering how to help them to feel a hunger for the world without suffering in the same way I was raised. It's hard for me to imagine how they'll learn to thirst for the experience of the world if they don't have the same socioeconomic pressures, but I think that will be one of my most profound growing experiences in this life. I intend to accept them for who they are and to try to give them as much opportunity as they can stomach.
Yeah, I think I’m going to take my personal repos off of GitHub and probably recommend the same thing at our company. Seems to be a liability that our proprietary code could get included in these models and leaked (even if accidentally). I feel similar to this on how I do AI art, which is that I am being taken advantage of by some larger entity so they can make money, even if they’ve been explicitly told it’s illegal.

On the argument of the machine is just leaning like any other human, that is absolute nonsense. Makes me feel ashamed to work in software, the way people can take advantage of other peoples hard work to make a buck with no even request or slightest bit of remorse.
https://en.wikipedia.org/wiki/United_States_war_crimes
Putin had a whole bunch of opportunities to withdraw and minimize his losses, and didn’t take any of them. At the same time it’s been obvious for some time now that there’s no way he can win.

One theory that explains it is that his objective at this point is to lose - but lose to USA or NATO, not to Ukraine.
That's one of a hell of an ableist take.

People with mental illnesses are legally entitled to the same rights as people that have not been diagnosed with a mental illness, unless their rights (such as to purchase assets with their own money) have been specifically taken away from them following due process.
> Enable limited “instant” config rollouts

Hmm, I think "config" is too vague here. I've seen numerous incidents caused by NGINX config changes that would have been far worse if we had instant 100% rollouts, but I'm not sure this is the kind of config change the author is referring to.

> Run 3 of everything

What is a "thing" in this example? Is it an instance of a service? A database? Something else?

If you're using Kubernetes and have autoscaling, what does "3 of everything" even mean? It sounds like the author is basically talking about databases..?
I could be completely wrong, but they look like prime targets for shoulder-launched anti-aircraft missiles. Easy to see, slow and low.

Gunfire, mmm, don't know. Hand-held, I think you'd have a hell of a time trying to score a hit without tracer bullets, and the bullets which miss will be coming down at speed into central Kyiv. They can perfectly well kill. If you did score a hit, well, I really don't know. Could be it's packed with sensitive internal components - maybe you would at least damage it enough that it would no longer be able to guide correctly to its target. Or maybe it's mainly fuel tank and wing and punching holes in both just before impact makes little difference.

I'd say radar-guided AA gunfire would take such drones out easily, at least when I saw it; but it surely flew to Kyvi at very low altitude, and gained height only at the end.

I wonder if they were piloted in real-time, or if they had on-board guidance?

Damage, I'll see later, when I attend the local impact sites. The bang and smoke were quite a lot less than the missiles from a few days ago.
I got a Guru Meditation for having javascript disabled - that's a nice touch
Exceptions do not specify from where exactly they should “come from” and are two-way protocol akin to setjmp/longjmp. Situations where exit through few levels of stack is required do happen regardless of code cleanness, and the only alternative is to pair every call with a flow control statement, turn primary return value into a status, and add two out-arguments for error and result. Some people love this, some not really.
Multiple tables are the way to go with SQL, you'll need multiple tables all over the place. So if multiple tables give you a “wrong” feeling, I argue that the feeling is wrong for the technology.

It would be very normal to have tables as follows:

* Table "users" with an "id" column and some additional data about the user.

* Table "skills" with an "id" column and some additional data about the skill.

* Table "user_skill" with columns "user_id" and "skill_id" (and the corresponding foreign key constraints).
Ask HN: How do you build back-office control panel?
| There's always plenty of great solutions, once you know the right keywords to search for

I'm about to create a control center for the internal operations, like:

- repetitive tasks automation (with Python, bash, ...)

- customer environments config mgnt

- basic data insights (nothing fancy, a table or a graph)

I want a web interface, with scaffolding (to avoid CSS work) and components for popular flows (form, trigger button).

Tell me HN - what am I looking for?
>I suck at anything beyond basis probability theory math-wise, but I don’t believe it’s anything to do with inherent ability (or at least not mostly). Math is just boring.

You're generalizing your circumstances.
And it won’t do him any good because ultimately it’s Apple and Google who truly own the platforms and will decide who gets to play.
I know many won't like this, but I think he meant Defcon 3, which I'm still not sure what it implies. I highly doubt he meant to issue death threats the way that people are perceiving this.

Not to excuse his actions. I'd rather like to know wtf he's talking about and why.he would say something like this.
Those attacks are pointless from military point of view. Their objective is to spread terror among civilians, since orcs can’t effectively fight against proper army.
> In the show, his character is really just a kind of distant observer. Other actors get the laughs and the screen time.

Yes, the gag goes to the appropriate character who most often is not Jerry.

Everyone has favourites, but to my opinion, part of the show's success is the different comedy styles used at the same time.

Kramer does physical comedy - the way he moves and holds his body is funny - if there's a gag about e.g. a high-pressure shower it's with him. George does emotional comedy - there's embarrassment, spite, stubbornness, vanity, deception, etc. Elaine speaks to people who have office jobs, and Jerry has an observational, intellectual turn of phrase. Often he's commenting on the antics, which heightens it.