skysight-inc/HackerNews huggingface dataset:
Banquiao isn't a sound case here.

It "took place during the Chinese Cultural Revolution when most people were busy with the "revolution" https://en.wikipedia.org/wiki/1975_Banqiao_Dam_failure

The "Cultural Revolution" began in 1966.

In such a context an otherwise avoidable catastrophe may happen.

This Revolution followed the "Great Leap Forward" ( https://en.wikipedia.org/wiki/Great_Leap_Forward ), with famines. "In the subsequent famines of the early 1960s popularly attributed to the Great Leap Forward, Henan was one of the hardest hit and millions of lives were lost." Source: https://en.wikipedia.org/wiki/Henan#Modern_Era .

Moreover all this came after a civil war and violent Japanese invasion, during which dams were bombed, causing "massive flooding in Henan" (same source).

Predicting and adverting this catastrophe was possible, but given such a context nobody was able to do so.

Moreover the exact amount of victims of the Chernobyl disaster remains an open question, see for example https://en.wikipedia.org/wiki/Chernobyl:_Consequences_of_the...
Saving to a file first means you can at least run it in a test environment first, then be confident you’re running the same thing when moving into production.
It's closer to 75%:
https://gs.statcounter.com/os-market-share/desktop/worldwide...
If either of those cases, you could always, you know, pick up the phone and call.

But agreed. I think in ¬Dense Manhattan, Uber and Lyft have been a nice improvement service-wise, at least as far as a guarantee you know a ride is coming, and no hassles about payment and/or source/destination.
This is similar to what e.g. the TikTok "for you" algorithm does, right? Interacting with content will make it more likely for you to see similar content in the future.

Cool site!
Show HN: I made a code generator for making API requests with Google Apps Script
In fact, it's a better step. The rules should be stupid simple and leave no room for manipulation or collusion. Simply barring them from trading individual stocks and making that history public is far more enforceable than trying to ensure that their trades follow some arbitrary grace period.
True, some jurisdictions will even charge you if you lie during selection. Some jurisdictions don't ask about it though.
Reminds me of a local story about contraband cigarettes in the central market - the sellers had set up agreements on who cans sell where. By far the best spot was near the entrance since more traffic = more sales. The guy selling there was charging ~2x more and still got more sales than anyone deeper inside.
https://github.com/arxanas/git-branchless is worth a look as well. Currently alpha, and "designed for use in a repository with a single main branch", but offers extended undo and rebase functionality.
"skilled in the art" is somewhat irrelevant if that skill takes a couple of decades and a $120 million machine to develop...
Witch-hunt.
For off-site ad marketplaces, yes.
When a lot of culprits are state actors, stepping up enforcement is a naive and useless endeavour
Its not unique to Korean shows either. There's plenty of shows with similar themes in the US. Billions, Succession, Mr. Robot, etc.
Reposting a relevant comment I wrote a few years ago (although the last paragraph isn't relevant to Amazon warehouse workers specifically):

First, culturally, US Americans are much more individualist than most Europeans. (Obviously I am painting with broad strokes here, but it’s true in a general sense, on average). US Americans are somewhat less likely to feel solidarity or a sense of common cause with coworkers, and more likely to value the freedom to negotiate their contract on their own.

They are also much more likely to distrust large organizations and bureaucracy, sometimes to an extreme extent that would be puzzling to Western and Northern Europeans. Rather than being on their side, many would perceive the union as just one more large bureaucracy trying to screw them.

Third, there are many current examples of unions in the US that have made industries meaningfully less efficient. And highly-paid US Americans are less likely to see themselves as oppressed by their employers and more likely to see themselves as making common cause: after all, they have a common goal of making a lot of money. If my company, say, found it harder to fire low performers (an almost certain consequence of a union), it would be less efficient, make less profit, and be less able to pay me my current high salary.
Robber barons were mostly not breaking the law. The laws were written to stop them.
Fortunately, Linux lets you install things by compiling them locally instead of just auto-downloading a binary.

Are you saying that "aarch64" binaries don't run on all ARM chips?
I think it's largely the power that unions have here once established. For recent examples, one can look at the spate of news about union crane operators at the ports of LA and Long Beach, but there are a ton of them.

Large unions become huge political contributors, and affect policy decisions to an extent that often outweighs any influence they could get without that money, and that rubs people the wrong way as well.
Honestly, this kind of made my blood boil, and just points out how difficult security can be.

Here is presumably a security company, in their own blog post outlining a high-severity vulnerability alert, advocating that you run untrusted code from some rando GitHub repo. It also outlines my fear about dealing with some "security consultants", because on the one hand they outline all of the things you need to "box check" for some security audit, but at the same time leave you less secure because they've just opened another giant gaping attack surface for your company - this is exactly what happened with the SolarWinds attack.
This is only a disincentive to people who normally don't commit crimes. If you're part of a crime ring, this ins't something you are concerned with on a daily basis.
Paid ML Engineer Apprenticeship Program
Hi! I am reaching out on behalf of Machine Learning Organization at Interos.ai. We are a Machine Learning driven organization focusing on solving supply chain risk management.
We have many openings (https://www.interos.ai/careers/) in Machine Learning, but we just launched a unique opportunity with our Machine Learning Apprentice position (https://www.interos.ai/job/?id=5616996002)
In short, it's a 3-month paid apprenticeship where the apprentices will build and ship a production NLP-focused model under the guidance of a mentor and our information extraction team.
The program's goal is to offer the apprentice a full-time Machine Learning Engineer position at the end of their apprenticeship.
The majority of our team is remote, and the apprentice can be remote as well. We have a large office in Arlington, VA, if they prefer to work there, but staying remote is fine.
The unique part of our program is the application process. You complete a challenge documented here https://docs.google.com/document/d/1wv_B3VCGKpOS_-SCXOl0MjLW.... There is no screening of your formal training and job experience. If you can work your way through the challenge, we'll consider you for the program.
I hope you can promote our program to your group. Let me know if you have any questions or there's anything more I can do to assist.
Thanks
Write C-style local static variables in Java 16
The title for PG's post should've been
Creativity is more important than being smart.
Let it Come Down perfected the wall of sound style imo. Beautiful album.
I just ran some monte carlo simulations. Turns out I was totally wrong, at least for a uniform distribution. I now suspect it's probably true for any distribution, but I can't prove it yet.

It just seems really odd to me: It seems like because you get 9x the number of dice rolls for one group you would end up with a final distribution that favors the majority group, but that is obviously not the case. I need to wrap my brain around that one.
You've missed the boat (literally and figuratively), but GitHub's Arctic Code vault would have been a solid solution: https://archiveprogram.github.com/arctic-vault/
I believe that it is the exchange that does the matching to optimize for revenue.
One year, I was sick and presented something anyway, it was so cold outside I renamed the event FROSTDEM.
When your press 's', you should have a region selected, in order to stage that region - if your cursor is just sitting on a line without selecting part of it, you'll (probably) just get the whole line staged.
Eggdrop [0] and BitchX [1] come to mind. Irssi [2] has a plugin that enables Tcl scripting.

I'm currently fiddling with TkCAD [3] in order to put a small CNC machine to use here, it needs some small adaptations to work on Linux, but I think it's a nice find!

[0] https://eggheads.org/

[1] http://bitchx.sourceforge.net/

[2] https://irssi.org/

[3] https://github.com/revarbat/TkCAD
Please don't be so cynical. I don't work for Microsoft, I've been using Linux for about 20 years and I haven't used Windows seriously in about that long, and I agree entirely with her comment. Once you go adding all the things to Linux that Windows users want, it starts to look a lot like Windows in more than one way...
Turns Out It’s Not the Technology, It’s the People
I quite teaching and started selling tiki bars this is what happened next
I quite teaching and started selling tiki bars and this is what happened next
Want to see what stocks Harvard holds?
By a Margin, Berlin Votes to Expropriate Corporate Landlords
taking advantage of that is the conspiracy.
I haven't finished it yet because kids and stupid responsibility gets in my way, but I'm blown away by how much Nintendo can get out of that underpowered device. A few moments of slow-down here and there but Metroid Dread's mood and sound is stunning given the device's specs.
Hi HN

I tried to build a python library for configuration management. It can automatically load all config (db credentials, API ports, crawler URLs, ...) you might have in your code from different sources like config files, environment variables or command line arguments. It then uses pydantic to parse and verify it. At last, it provides the values to the remaining part of your application through class attributes, using a singleton pattern with lazy loading.

Would be great to hear your thoughts about it! It's also already on PyPI and documented on readthedocs.
Bamboo is already harvest every year. Every year new shoots come up out of the ground. The shoots start to form in the winter about one meter away from mature culms. In the spring the shoots emerge from the ground and quickly grow to full height. Changing the harvest schedule will not increase the availability of bamboo, since already all new culms are harvest, just after they become four years old - the system is steady state.
> If you mistype it and nuke more than the last commit, that's also a bit bad - and fairly easily done.

If you ever run into this, you can use `git reflog` to see the history of your local actions. It's possible to revert almost any action with it.

Reset a few commits that you've never pushed to remote? No worries! Just go to `git reflog`, find a point before it happened, and `git reset` to it.

$ git reset --hard HEAD^^ # OOPS
$ git reflog
c48300f3 (HEAD -> master) HEAD@{0}: reset: moving to HEAD^^
527e26e0 (origin/master) HEAD@{1}: commit: air-interpreter-wasm = "=0.14.10"

$ git reset --hard HEAD@{1}

And you're back before "OOPS" :) It's really hard to lose changes once they've been committed.
Just curious, what constitutes the "quality" of an ad for you? I've never really thought about ads that way; for me it was just whichever service can stuff their name down your throat the most often was the most successful.
Making decisions with global, or even national, ramifications is a complex thing, but people seem to take shortcuts when they decide if something is good or bad. In your example, people may think "Trump MAGAed" because "He's fighting China, China's been stealing our jobs, and we liked jobs.", although the way Donald did the tariff wars, it disadvantaged American companies and consumers, making the American economy/jobs situation that little bit worse. (At least Covid happened and it eclipsed the whole problem).
In the current system - where the do gooders only try to stop things instead of help -> maybe there is a question. Is there a net positive to someone selling an organ, getting let's say 100K, and another person then having a much longer and higher quality life?

The dirty secret the do-gooders won't tell you. Even as they stop others from getting money, they work to rake it in. Seriously.

"Amateur" college football athletes (many minorities). The do-gooders say they can't earn any money - nothing for families or themselves, even though they may have a career ending injury playing in college.

Meanwhile, I'm sure the coaches, athletic directors and others are absolutely RAKING it in.

Same thing with transplants. A kidney transplant for which donor get's nothing (currently) is paying / billing out for $500K easily. I'd love to know what the transplant network CEO's are raking in.

So we have a system. Donors don't get paid (for the "higher good") - resulting in all kinds of shortages and delays. Meanwhile - the folks running this show and flying around in private jets are raking it in.

$1,000 per year for anyone who signs up for an organ donor registry? $100K to your estate if you are a heart / liver / etc donor after death? $100,000 for anyone who donates a kidney? How about bone marrow donations etc?

The dirty secret is some hospital chain is already raking in the big bucks on those heart transplants.

Anytime you see someone saying someone else should not be able to get paid for something - worth looking at who is free-riding on others kindness / generosity / health / poverty etc.
Not one single line of what you wrote is a concrete and actionable thing you would do. It's frankly a whole bunch of rethoric. I'll pick the bits that seem like they mean something real:

> legally structured businesses as institutions democratically run by those working in them

This already exists, they are called cooperatives, many of them actually work pretty great. Try to guess what happens when they grow and they need to hire employees...

> what would happen if we simply banned people from making money directly from their money in all forms?

No banks, no loans, no credit cards. No way to protect against inflation with financial instruments as basic as a target-date fund.

Oh, and 0% public debt, of course.

> Money is just a representation of property

It's not and you know it's not, you're just playing with words.
> I can't believe people are actually comparing telemetry in Windows to Linux.

I'm not surprised - at least some of these people are Microsoft employees so it's no wonder they try to use the same strategy as always - fear, uncertainty and doubt. After all, if people start believing that "Linux also has telemetry", why even consider switching?

Actually I'm happy to hear it from the mouth of Microsoft employees (especially "advocacy" guys, i.e. paid to convince others): it means that Microsoft does care, they do consider Linux a threat, and the war is definitely not over.
Making better decisions because you have done a better job collecting and analyzing info is not "unfair competition" a priori.

I think there are much more compelling arguments around regulating Google.
https://youtrack.jetbrains.com/issue/IDEA-152437

There's a little bit of discussion on it.
Index funds allow for options to be traded using the underlying holdings. This is one of the ways a specific index fund can outperform (or underperform) the index.

Trading options on sure things can easily generate >10,000% returns in a matter of days if the swing is large enough. All it takes is a few of these sure things a year to generate staggering returns.

Imagine what you could do with $100,000 in options contracts if you knew about the next Lehman Brothers collapse. That particular event turned a $0.01 option into $50-75, the on the flip side, the manager could offer OTM puts on existing holdings that would practically nullify any loses. Granted, you don't get a LB-level event every year, but there's always a few pretty good ones each year.
Actually, that isn't my job. In fact, very few comments I have made on HN have ever had any association with what I actually do -- and that is by design. I don't speak for my employer, and I'm certainly not astroturfing here.

Hint: Being a jerk to people online using a random account makes you look like an asshole.
It would follow logically that it'd go down. It's like saying making murder illegal would only push murder under the table.

A company currently performs a simple mathematical equation when deciding to pay a ransom. Does the reputational and financial cost of not paying the ransom outweigh the price of the ransom? In a world where ransom payments were illegal, then those same companies would also have to include the legal penalties and probability of being caught as part of that equation.

Obviously, some companies would still see a net benefit in paying the ransom, but fewer would, so less ransoms would be paid.

It seems to me like you're trying to use 'war on drugs' logic on ransoms. The key difference is that companies don't want to pay ransoms, but do so out of necessity.
Specifically for HN: this is a forum made up of predominantly young, hyper-mobile, extremely well compensated, white collar workers with an often unstated belief in meritocracy as the key determiner of success.

Many of them do not understand the need of a union because they don't work in a milieu to which unions were previously prominent, nor do they understand their purpose. They see anything that could affect the above conditions as unnecessary or "bad".

There has also been decades of corporate promoted anti-union propaganda. A simple google search shows that companies like Amazon will go to extremely intrusive lengths to control the narrative around unions by employing tactics like mass texting and communication campaigns, mandatory anti-union information meetings, etc. Do that enough and you get people who begin to earnestly support an anti-union sentiment, even if the union would help them.
>i suspect that using a smaller number of prepared queries at the cost of shipping more data around (especially if the number of rows per query is limited) would be more performant than custom queries.

that depends entirely on how many columns/rows you're returning.

> prepared queries avoid repetitive string parsing of the query language and give the db backend more opportunities to optimize.

On postgres at least, prepared statements only last for a session, so the benefits you state is dubious. Even for databases that support persistent prepared statements, the fact that they're part of the database makes it a nightmare to deploy. Every time you update a query, you'll need a mechanism to update the corresponding prepared statement.
Windows works on my new laptop(3 year old with TPM) perfectly. This doesn't mean Linux doesn't work too. I tried PopOs for a month. If in future I switch to linux completely this distro is going to be the one. But there are still bugs which aren't fixed yet on linux. Battery backup is also an issue on Linux (tried TLP too). There were many other problems too. To summarize it Windows was a way better experience for me with this specific hardware. And WSL is really a game changer for me as I can keep on using Linux without worrying about hardware issues.
Yep. It's like governments that forbid use of things like facial recognition software by its police departments. Sure, the police department doesn't use facial recognition, but they commonly work around this by using a vendor that may or may not use facial recognition. This model is actually commonly employed by both companies and that are forbidden to do something.
I've been handcuffed, albeit only once in my life, and aside from the cop being exceedingly efficient (I didn't really see it coming until the cuffs were already on), he was actually entirely polite and professional about the whole thing.

I've no doubt that there are bad cops out there. Probably more than a few. But I don't think it's helpful to portray the entire profession that way, even if they do bring a lot of the bad PR on themselves by how they handle the situations where a cop does behave badly.
Though, weirdly, the author lists the deletion BigO as O(n). I would have thought maybe they meant traversing to the item to be deleted, but that would imply insertion is also O(n), since you'd have to traverse to the point of insert. Unless they are treating deletion as deleting from an arbitrary location, and insertion only at the head. Very strange.

But, yes; while real life performance characteristics vary (cache locality can lead to surprising wins for arrays even on insertions/deletions), at least theoretically, there are use cases where a LinkedList will win out.

EDIT: Huh. They also list the insertion and deletion cost of a hash table as being O(n). That...is not right. I mean, they call out "in the case of a perfect hash function it would be 1", but treating the literal worst case as the actual runtime is like saying quicksort runs in O(n^2) (which the author does not do).
Since there are many variations of "then don't use a website!" Answers here, I'll restate the puzzle.

Say you had to host the information as a set of static HTML documents and you wanted them to remain accessible for as long as possible; what strategy would give you the best odds?
I see how poorly public sector works with public sector unions (especially police, but also city government generally) and I wonder if private unions won’t be just as bad for organizations. Private companies do a lot of the work to enable modern living (e.g. producing food, handling logistics, manufacturing, etc). I get that corporate=bad, but do we want them to become more poorly run and inefficient than they are now?

Unions are sort of ok when there aren’t that many of them, because market forces demand some level of competitiveness, but what happens when union shops are the only or the majority option?

Again, just consider how well public sector unions work for society (ime: disastrously) and how that will work applied to the organizations that do the much of the work enabling modern society.

I guess another angle is: look at how dysfunctional politics have become, at how ~50% of Americans would gladly re-elect DJT post-January 6, and ask, do you want those people to hold the industrial economy hostage? Do we really think the average worker is able to produce better outcomes than management?

Maybe I’ve just been traumatized by the public sector unions. I don’t understand why people can’t make the connection between public sector unions, and the inevitable outcomes of private sector unions get too much traction.
> allowing for a randomly discovered shrink wrapped headset twenty years from now to be able to update to the final software version, long after over-the-air update servers have been shut down.

This resonates so much with me. Each time I setup a new device that requires an Internet connection, I think about how we can enjoy booting 30 years old retro computers and how the next generation will not be able to do the same because of locked down hardware.
A place with a traditionally skewed (Pareto) distribution in all non-monetary contexts, in which it was decided that Median Jack should rule and anti-intellectualism ate society and state.

I am trying to flee - if you know a place in which values (such as aptitude and civilization) are still in place, drop a note.

Interestingly for the context, it was a crisis in banking that "made the first alarms ring", in my case, years ago.
I had a comment similar to this a couple of days ago. Kill hidrocarbons. Let's see where the world moves.

Of course, this makes sense but the problem with is it's unpalatable for the political climate so it will not happen.
It's amazing how so many things in the human body work from a thermostat principle