skysight-inc/HackerNews huggingface dataset:
Most are documented by shellcheck.

https://gist.github.com/nicerobot/53cee11ee0abbdc997661e65b3...

But you don't really need to spend any time learning them, just plug shellcheck itself into your editor and go write some scripts. I've written don't know how many thousands of lines of bash (and sh, depending on the task at hand) that work across five operating systems, and it's honestly a non-issue if you follow the warnings.
Some here are questioning the motivation of this data structure. It is well motivated at least in the context of time series. We (almost) all learn 2 things at very young ages: 1) the world changes and 2) even one wild point can pollute an average. In time series contexts, we also learn early solutions to 1) a moving data window (flat or fancily weighted over time) and 2) percentiles/quantiles/order statistics are more robust.

Combining the two solutions means you want to efficiently delete old/insert new/query quantiles over moving data windows. If you need multiple (e.g. 1%, 25%, median, 75%, 99% is a classic case) and exact quantiles over large data windows (in numbers of points), a counted B-tree is about as good as you can do, and can be many orders of magnitude less work than more naive solutions (which absolutely show up In The Wild - I have personally seen them many times).

There is a case that article does not address when you have many-way ties aka many duplicate keys, but that can be handled within the same general framework.

If you know something about the dynamic range of your data then you can also get more approximate dynamic quantiles with a histogram with log/exp-spaced bins (like floats) with counters backed by a Fenwick Tree (to make both PDF & CDF updates efficient). You can further boost accuracy with Parzen mid-quantile interpolation. A fully worked example in Nim is at https://github.com/c-blake/adix/blob/master/adix/lghisto.nim In the same github repo there is also a Nim implemention of counted B-trees (though it is harder to use).
I remember watching a news magazine (may have been 60 Minutes -long time ago), that talked about how universities handle sexual assault allegations.

They have their own police force, and the segment was about how they would often keep regular cops frozen out of the investigations, and just wanted to "hush things up," often at the expense of the victims.
But the only "technical merit" seems to be "omg it's more secure". I've literally never seen any other argument in favor of Rust.
I've witnessed this first hand via a friend of the family. Their kid didn't have the grades or entrance exam test scores to study what they wanted at university. So the kid got to take a year off after high school and focus entirely on studying for the entrance exams with regular tutoring from various private tutors. And while their test scores absolutely did improve quite a bit by doing this, they didn't improve enough, and they still ended up having to study at a secondary choice anyway.
I was 16 and didn’t want to do any more work. My school was making me submit my project.

In hindsight, obviously there was a lot I could’ve done differently.

Also, I didn’t know what a null hypothesis was then. TBH I still don’t!
Fundamentally, a business must charge more than the total costs and actual inherent value of a product or service - that's what profit is, getting people to pay more than something is worth.

They really did make the iPhones that started selling at $500+ dollars for like $8 something. The people that constructed the phones received none of the additional $492+ bc they were already included in the $8 something

The fact that Apple is one the biggest companies in the world - beloved even and yet functions like that, is all but universally praised for that level of exploitation... THATS the problem, profit itself is the slipperiest slope.

Tbh, if only 2 out of 100 people are actually going to get some of that profit pie - the whole system is just so obviously not worth it, I don't understand why people go to work at all
Mind Wandering Linked to Specific Brain Activity Linked to Memory and Sleep
This sounds a lot like small midwestern towns, at least a few decades ago.
The title is misleading.

This prohibits it at any level lower than the state level. The state itself can still do it, or grant permission for a city/county to do it.

I don't know the history of this, so I am unclear whether it is anti-UBI, or just wanting to legislate that if it happens, it will be a state-level effort.
Here's my thinking. It's fair to say C99 isn't that much more complicated than C89, which formalizes various things that are a bad idea such as "volatile", as well as numerous good ideas like hey we should let you define a variable where you use the variable - however C99 adds more of the bad like "restrict".

In both those cases the K&R C model was very simple. You could decide you love how simple this model is, and when smarter compilers optimise it into a pretzel or other languages are faster that's OK. This code used to drive the serial port, now it does nothing, OK, don't use C to write such drivers. This code used to go real fast, now everybody else is faster, OK, don't use C if you need the best performance.

C89 and C99 choose different, making the language more complicated to keep addressing performance and compatibility. In C99 I can write the fast serial port driver, but it's significantly more complicated as a result. The beginner will definitely get it wrong and explaining why is pretty subtle.

Then C11 says actually you're not writing sequential programs, which was a crucial simplification in K&R C - the programs you can write do one thing at a time, in order, and then maybe stop. The memory model in C11 is needed because it says actually your programs might do more or different things at once.

Now, in reality by 2011 lots of people were writing C that's not actually sequential - after all SMP Linux long pre-dates C11. But those weren't legal C programs, they're GNU's dialect and so all bets are off. Nobody is claiming Linux is simple.

So C11 definitely isn't the simple language for a 1970s computer any more. C11 is a competitor with C++ or today Rust. And it doesn't fare so well by that comparison.
I thought cycling past red lights was one of the only exceptions to the general conformity.
Google Blog: We're launching new coalition to scale nature-based carbon removal
Greece in this case. But we had troubles even in Germany.
It's been a while. I remember the impression and not the specifics.
Living in a bigger small town in Germany I completely agree, I can’t imagine living somewhere where I can’t let the kids roam free… if I’m at the bakery I don’t have to lock my bike (and neither do the others) most of the kids at the local skatepark where I skate come and go on their own, on bikes or public transit and are unsupervised… but nobody would suspect neglect… if something happens we’ll help each other and the parents get called by their friends everyone looks after each other, the older ones don’t smoke their weed near the younger :D and so forth… oh and this is in a more “socially strained” neighborhood not the rich villa type of neighborhood
The $5T AI boom could both succeed and fizzle
The tax exemptions definitely help at least getting people to move in the first place and they were a big part in my decision (I'm on the Forskerskatteordningen)

It's hard to put a value on a high trust high quality of life society without living in it first

It's important that Denmark continues to attract high quality employers (such as in tech, big tech companies with American levels of pay).

I think our work ethic here seems to help with that too (Danes seem to be 100% switched on all the time at work but will not touch it once the day is over). At least the impression I get, which is of course subjective and just my experience, is that US company owners consider us more or at least as productive as folks on the west coast.
I would use iPhone, but I like Syncthing way too much.
Norway’s child protective services has 17 convictions against themselves and counting in the International Human Rights Court of Strasbourg.
Show HN: Image Collage and Meme Creator – Combine Web Content into Collages
That's approximately 3000 - 4000m. You're definitely going to feel a difference going from ASL to 4000m in minutes.
Oh interesting. Question since you seem so educated on the matter. Did Rosevelt pay protestors to throw riots in support of Mosaddegh?

If only our national security state was still competent am I right?!
In this case, as in both.
Why Dell's ThinOS Runs on FreeBSD
> This comment deserves a "my sweet summer child".

I think being condescending really removes any impact from any point you want to make. After all, I posed this as an idle musing, not as a all-in venture, didn't I?

> Everything can be gamed; if you don't see how, then you really shouldn't be suggesting ideas.

If people are gaming the engine by avoiding all the penalties, then that's the exact sort of gaming I would like to see happen.

I mean, you have read through the rest of the thread, here, right?
Why would that be considered a flaw? The rationale behind it is the same as behind the inability to name your child XAe or any random assortment of letters – to not make the future difficult for your child, even if you as a parent might want it. It is also one of the last tools that prevents parallel societies from forming. Not that German schools are ideal - they are a bit stuck in the past - but the common experience they create in each new generation is valuable.
It’s nice for doing refactors.

I like having it translate config formats too. A series of env vars to a yaml or toml or something
Iowa has more renewables than CA but has cheaper electricity prices than the national average. There are a few examples like this that prove that the inference you're attempting to make is symptomatic of stupidity.
Maybe it's a function of my work, but that sounds like a lot of Pa.
I made something that achieves the same thing[1] except it uses Google's Programmable Search Engines. It's self-hosted and you can configure it the same way as the article using the `%s` string substitution.

[1] https://github.com/dan-lovelace/giggle
The salary component is interesting. While Denmark definitely has lower salaries than the US, it still has higher salaries than other European countries.

I considered moving to France or the UK, but in both cases I would have to take serious salary reductions. Anecdotally, I know that Tesla Berlin hire SWEs at around 60k EUR. Offers from Norway and Sweden have been considerably below what the Danish unions report as average salary.
Was Courier Important‽: How to Mess Up System Fonts in a Web Application
surprised you haven't yet heard of Plane---we need to do something special for NGOs, :-)---, but do give us a try. https://git.new/project

what you are looking for and more's already available.
If you've got capital, I'd love to :-)

On a more serious note, I'm actually very busy trying to make money, so I don't really explore things that can't pay off unless they are small.

Something like a crawler + engine is very capital intensive.
It cannot by homogeneity by itself. Poland, my home country, is homogeneous, but in a shitty way.
Someone has already addressed how that wasn’t for health reasons until relatively recently.

https://news.ycombinator.com/item?id=40418347
Very interesting. The paper suggests though that for many of these it's unlikely it's due to an immune response:

> It is not clear yet how the expression of the high confidence risk HERVs may play a role in psychiatric disorders. It was previously hypothesised that differential HERV expression in psychiatric cases was likely to be a by-product of immune responses against current or past infections34. Indeed, HERV expression is modulated by exposure to several pathogens35,36 and can activate inflammatory cascades37. This is an interesting theory that corroborates the fact that individuals with psychiatric disorders typically have higher incidences of infections38,39,40. However, our main analysis found that 1238 HERVs expressed in the brain are regulated in cis, some of which in association with risk for complex psychiatric traits. This indicates that there are HERV expression mechanisms directly contributing to disorder aetiology, that are not simply part of compensatory responses, or triggered by environmental factors.
I probably talked to 3 or 4 judges and explained to all of them exactly what I did and never lied. But I also wasn’t forthcoming about the error. I just explained the experiment and the result. None of them asked any questions that I couldn’t answer.

I remember I was sitting next to a girl who had an amazing project. At the end of the day they called her name for 2nd place and I remember thinking, “Wow, who beat her?!” And then they call my name…

I thought it was either all a mistake or that maybe the judges thought I was mentally challenged on account of my backboard and it was a pity situation? In hindsight, perhaps an emperor has no clothes situation where everybody sees the error but nobody wants to be the first one to call it out?
a perfect example of a society based on trust.
the opposite example is one based on kinship.
FreeCAD has a built in OpenSCAD engine.

I started with OpenSCAD but found FreeCAD to be way more productive for me when it came to actually producing 3d objects. Sometimes I want to start with a square, then delete a line, and add a semi circle. But I don't always know that until I start sketching. With OpenSCAD I feel you have to know the shape primitive you need, then the exact way to modify it, and the fact that it encourages 3D primitives over 2d w/ extrusion and rotating was kinda annoying imo.
It's funny how little time it takes to go from "cultural" to "ethnic". Say what you think instead of using whistles: you think that Denmark conforms to your racially focused worldview, that it's "pure", or whatever. Am I correct?

Funnily enough, Denmark is a few places below France in "ethnic fractionalization", yet somehow, racists worldwide insist that France has become a shithole because of immigration.
I had an uncle or older cousin growing up who apparently scored too high on one of those tests and they didn't want to hire him.

Had he insisted they would have but they essentially explained to him that was going to end being very bored and would eventually quit and they would lose their investment training him so they "asked" him to leave the program on his own.

I knew that was bad bad as a kid.

Does check out with current societal interactions with officers tho
That's just another dimension of the problem.

But let's be honest here, there are a lot of child snatches in the US. About 150 to 160 new reports yearly per 100000 kids. By comparison, Denmark annually reports between 50 to 75 new missing child cases per 100000 children.

(And even that obscures the starkness of the difference. Because in Denmark, they count children abducted to another country by a parent as a missing child if the country they are abducted to is a member of the convention. So you actually have to subtract about 35 to 40 cases per 100000 children from the Denmark numbers to get an apples to apples comparison to the US numbers. I just wanted to present the numbers in a fashion as friendly to your view as possible. And still there is a pretty stark difference.)
This section of the article is what chilled my blood more than a little ....

"... giving Elon Musk and Jeff Bezos and whoever that they include emergency universal comms on their satellite constellations to get permission to fly, and we're good. Emergency call services are very low bandwidth, which is very cheap, very power frugal, and very reliable to add to high bandwidth satellites and low cost devices on the ground.
Because we're talking universal standards here, we can bake in solid location detection that we know will work. You can build the user bits into standalone devices or as part of a mobile phone, as long as it's a simple one-button activation."

... what gave me pause for concern was the thought that an otherwise obvious idea with a cheap and easy solution runs the risk of establishing Elon and Starlink into one of those "Too Big / Too Essential To Fail" types of corporation.
Heh, even GPT-A is not that singleminded and gullible!
The pedagogy needs to change. Some coursework should embrace new tools and focus on how to be effective while using them. And some changes should take place to the balance of exams, writing assignments, projects, presentations to reflect an honest evaluation of the student.
Nah, you need some way to consider the quality of your text. No way around that.

Let's say I publish a page -- nothing fancy to it, no dark patterns at all -- just the word "architecture". For anybody searching for the term "architecture", this is now the perfect page -- a 100% match to their search, with no dark patterns at all. Completely useless, but perfect.

What would my motivation be for doing something like this? Well, imagine that I now deploy 100,000 identical or very similar pages. Your search engine is now fully _nuked_ for those terms. Does your competitor have a product that you don't want being found via the search engine? I'll happily nuke its search terms for you, for a fee of course. That's my motivation. Remember that advertising is not just a competition for you to be seen, but also for your competitors to not be seen. Your search engine, as-is, would be great at enabling the latter.

(Maybe you could fix this by allowing down-votes from logged-in, IP-logged users... but with 100k pages to downvote, that's not gonna help. So maybe you take pages which have been downvoted and do similarity comparisons to pages which haven't. A simple Levenshtein distance is too crude and easily-gamed, but maybe you could feed the downvotes into a neural-network classification system... and down the rabbit hole you go.)
not OP, but for the "unique identifiers", you can think of it like the footnote style of markdown links. Most of these models are fine-tuned to do markdown well, and a short identifier is less likely to be hallucinated (my philosophy anyway), so it usually works pretty well. For the examples, something like this can work

ID: 1

URL: https://example.com/test.html

Text: lksdjflkdsjlksjkl

And then tell it to use the ID to link to the page.
Looks like we also need an aggregation standard for this. Maybe bsky or something?
I quite like that pattern, but I think 'with a different datatype' should result in a small gnome climbing out the back of the computer and hitting the developer with a mallet.
The Next Challenge for the Class of 2024: Finding a Job
People said the same thing about the internet and the "highway of information" and see how that turned out.

The value of a College Degree isn't the content alone, but the mental models that are taught. That's why it's used as a credentialing process.
> The only way she can access music is by making me get my phone out and play a song on my Spotify account.

I gave my kids Newpipe (that can download .opus files) and VLC (IMO it's clunky as an audio player, but they like it). Occasionally they'll want a full album, so I fire up the ol' Nicotine+ and download it.
Sounds like the .plan file in a Unix home directory, updated for today's web sensibilities.It would be nice to hook up my .plan to my website. There's a nice weekend project.
With Europe's support, North African nations push migrants to the desert
Aurorasaurus: Reporting Auroras from the Ground Up
A lot of what our evolved tastes are today actually comes from biological repulsion for stuff that isn’t safe for consumption.

This is why smell was so important.

Unfortunately smell isn’t an accurate gauge for whether a source is safe or not.
This is generally an issue currently in the EU: Countries are stealing talent and letting residents pay. As such I myself exploited NHR in Portugal. But it is possible to both move to Hungary and Holland on tax reduction schemes.

Personally, I hold the belief that these should not exist. They are a race to the bottom only the well educated can participate in.
https://archive.is/1tEgl
> But what conditions made deflation and growth possible together in the 1920s?

a) It was a correction to the very unusual war years, which saw unprecedented levels of government investments, price controls, and money printing

b) It also led to a lot of money getting invested in dubious overseas markets, which directly led to the Great Depression
> >but it appears to me that it dismisses all commercial content altogether, which is not what I want

> Isn't it?

Of course not. Appearing lower in the results than non-monetised content is very different from not appearing in the results at all.

> How is commercial content supposed to be funded?

They'll find a way. After all, if more people turn to ChatGPT for queries than to search engines, those sites are under the same sink-or-swim pressure that they would be under if demonetised search engines were dominant.
Not always. Some parties (usually government departments, but sometimes private law entities too) are legally obligated to sue.
Elon Musk's plan to address the "very solvable" water scarcity crisis
In Europe (esp Eastern), if you take resale price into account you have to get a german car because everything else loses value faster :)

The VWs you can just dump on the fans.

I know, I live in a similar country.
I spent 20 years with C++ as my main language, and the endless and heated "style discussions" where personal.opinions are thrown around like facts were just tiring and a massive waste of time.

And it's such endless circular discussion where the extremists show up (I guess the equivalent in Rust is shaming projects that use unsafe, IIRC there have been quite a few dramas in the past). Shit like this is simply mentally exhausting, and in now 7 years of C as my main language I did not encounter this even once). In general C coders seems to be a quite relaxed, happy and tolerant bunch.
At some point a test stops becoming a general aptitude test and starts becoming a "how good are you at taking this test" situation. You get specific prep courses designed just around that one specific test and strategies optimized for that specific test. You start selecting for "elite" rather than "smart."

A merit lottery also keeps everybody from having to waste shitloads of time studying for this one test.
Honestly with the amount of degrowth friendly opinion pieces nature published in the last 2 years, I'm surprised they take the complete opposite approach. They're really trying to open the debate to very broad and different viewpoints, and I think it's healthy. I don't know enough about this researcher to understand how powerful/influential his comments might be
Northern China didn’t figure it out until long after the Middle Ages.

https://news.ycombinator.com/item?id=40418347

To accurately gauge if something is safe, you need a quick and direct result that is consistent. Unsafe food and liquid isn’t that. Often it’s more a percentage problem. So to solve the percentage problem you then need a larger sample size. And people simply weren’t organised enough to accurately measure at that scale in the periods you’re suggesting.

As an aside, this is why people got thrown into volcanos and such like. If you don’t have measurements that are easy to correlate then you’re effectively left to guesswork.
I didn't say the system collapsed. I said we saw deflationary collapses within the system.

Look at the Panic of 1893, the Panic of 1907, and the Great Depression. If that's not enough, there are several others.