skysight-inc/HackerNews huggingface dataset:
The Linux kernel has not historically had great unit testing practices--it's mostly tested with large integration tests. This is in part because it inherits old development practices where unit testing was less popular, and partially because it's kind of hard to test a lot of Kernel code outside of specialized environments (e.g., would need to include a m68k emulator in the test environment to test this code).

The doubly-linked `list` type that's used ~everywhere in the kernel didn't have any in-repo unit tests until 2019 ( https://github.com/torvalds/linux/commit/ea2dd7c0875ed31955c... ), after kunit, a library for userspace testing of kernel code, was added.
> This makes as much sense as saying that going on dates is useless -- just pick a partner at random and get married and be done with it, because the odds are just as good!

How sure are you this is false? I'm not completely convinced. Some people are very, very bad at picking compatible partners. Now I'm trying to figure out how we could ethically run this study, because I think the results might surprise you.
I used to wear them pretty much every waking moment, but recently I have become very suspicious of their effect on me.

I don't necessarily think it has a negative affect on my hearing, but I feel in general that it brings down my outward awareness as a whole. It's a very isolating experience, being in noise-canceling, and I think normalizing being in that zone conditions my mind to become very insular and broadly ignorant of my surroundings. As I start wearing them less, this noticeably diminishes.

And speaking specifically to my personal situation, I feel it directly aggravates my anxiety through this mechanism.
New induction stoves with built-in batteries want to convince you to ditch gas
"Manipulating hundreds of thousands of rows" is exactly where R, dplyr and data.table are great at. I do that on a daily basis.
What is the point in implementing a cookie banner if you are still breaking the law in an obvious way? Why not just break the law by not having a cookie banner? That way it would at least be less annoying for your users.
I'm surprised there's so much resistance to this concept on HN. I'm completely unrelated to anybody remotely related to Coherence AFAIK and I've been of this same opinion ever since I got the first taste of cloud, and definitely after k8s made some of this more standardized and portable.

The points of traditional dev and qa environments are to lower the risk of unproven code, but the shared nature often causes more problems than it solves. Ad-hoc environments provides the opportunities to better utilize infrastructure, better test changes in isolation, and have one granular purpose per environment.

Another point is that this doesn't mean shared-nothing. You don't have to stand up expensive infrastructure every time if that infrastructure should be indistinguishable between environments. You can build smarts into how it's done such that multiple databases go onto the same DB server, or you reuse instances until something meaningfully changes in an isolated env you need (e.g. by looking for migration version differences). All of this is much more tenable now that infrastructure is so much more easily programmable and declarative.

And all of this works at multiple scales. Large horizontally-scalable databases don't have to be deployed at production scale on your machine. Do that in a load test env that is a last stop before prod, if you need to (e.g. if you don't trust how well you scale with # shards). Add in options from tools/concepts like teleport, and you can potentially extend this sharing to local dev environments for when things no longer fit on a dev laptop.

My experience despite having 7ish years with k8s is that people on k8s still have their dev, qa, prod clusters and dogmatically stick with that despite the fact that there are definitely better (and now simple) ways, and you really get better economics if you can binpack in the same set of machines and prioritize work appropriate to its classification.
No one can be exposed (or reminded) about how the country's top police force, the FBI, worked to completely destroy civil rights figures (MLK was against violence, actually made a big difference in the success of our country, and then was murdered in such a careless manner) - but: no one should be able to learn about these kinds of actions and then say we don't have a long history of endemic racism. Yet here we are today, with many people convinced that the real problem in America is we talk about our racist history too much and it hurts the feelings of white people.
Ragequitting a company and calling it a "trainwreck" because one developer didn't know about JOIN seems... extreme.
Oh man I had a bright metallic green Varsity as a kid. That was a great bike and I really regret getting rid of it, or rather abandoning it at my parent's house when I went off to college, and they got rid of it :(
Cookie law was.

GDPR isn't a cookie law.

What we see now is big companies response: they try to pretend like it is, and try to blame it on lawmakers.

But, as fines like this show: they are getting caught and punished for it.

Because the law didn't say that companies had to force users to accept cookies.

It said something along the lines of: collecting data is only allowed with users active, informed consent.
>a sanitized copy

Quite the importance over a constant wave of changing code on development in certain projects.

Staging seems like a more code locked stable area for all previews that can be polished via quality practices and keen eyes.

Now it seems a little fleeting to me as well to have the shock of previews enter into this instead.

Let the paint dry adequately before taking it outside.
Isn’t boredom supposed to be a driver of negative behavior?

I wonder what would happen if they were left alone but given a goal.

For example, in sports if kids are allowed to “free play”, no coaches, no parents, etc., they can often enjoy their time together.
Sizing is all over the place, even the same brand, same year. If the clothes are garment dyed, it's even worse.

My biggest recommendation is buy 100% cotton and avoid synthetic blends at all costs. Some of that crap looks old after a single wash.
I feel this has gotten worse with the latest round of data science graduates wanting everything in python.

Probably just perspective. I ducked out of the push for everything to be in Hadoop. And while I can appreciate the foot gun that is indexing everything so that ad hoc queries work, I also have to deal with folks thinking elastic search somehow avoids that trap.

I think I've seen the same claims and push for graphql. :(
>I don't know why the author concluded that the girls did a better job of living together

The author has some odd views about gender. For example, he gives credence to the idea that male/female differences in physical strength are entirely due to social factors: https://kottke.org/18/02/the-winter-olympics-male-female-phy...
Show HN: Christmas Music Quiz with Scoreboard
The frontend uses Astro with React. It's hosted on Netlify where Netlify functions (their serverless solution) uses Azure Table Storage for the scoreboard functionality.
Other Brøderbund games were HyperCard stacks too. I had Cosmic Osmo, and I remember playing The Manhole at a friends. These inspired me to make a Jurassic Park game using HyperCard. Sadly I didn’t get far.
Don't sanitize your inputs; parameterize your queries instead.
Exactly.

C has no arithmetic operations on types narrower than int and unsigned int. This bug (which involves subtracting 8-bit values and yielding an 8-bit result) could only happen in assembly language (or in an exotic C implementation where CHAR_BIT > 8 and int is 1 byte, or in C code that uses casts to deliberately create the bug).
Honestly, this was a good observation that forced me to think more deeply about why the distinction matters.

I disagree that it's irrelevant. If the game is zero sum, the winners must succeed at the expense of everyone else. The game mechanics themselves produce unfair outcomes since nobody has any agency in their own outcome. Therefore, as this piece argues, the rules should be changed.

On the other hand, my example provides an alternative explanation for wealth inequality in which risk taking and inequality are inextricably linked. In my game, nobody loses because someone else won.

Far fewer people would find these game mechanics unfair, even though the final distribution of wealth is the same. It is not obvious that the rules should be changed.

I could adjust my game mechanics to make them look even more like the real world (as I see it): Every time someone takes a risk and wins, the non-bet reward should go up by a penny (e.g. from $0.30 to $0.31). In that situation, one would expect all the players to encourage risk taking because they know it benefits everyone whether they're taking risks or not. They might even conclude that the risk takers should have a chance at being wealthier than them because of these effects.

Using the zero-sum game leads the reader to a conclusion based on a false premise and I feel that was intellectually dishonest.

Note: one can still argue that the rules should be changed because wealth inequality itself is a problem, but that's not what this article is doing. It's arguing it based on the fictional rules.
> while the internals of how the notifications get from e.g. the FCM backend to the notification drawer on your Android phone remain unspecified (and partly secret)

Actually, the web push standard strongly recommends that you use RFC 8030 for this, but it does allow browsers to substitute other protocols as long as their semantics are the same https://datatracker.ietf.org/doc/html/rfc8030. I believe Mozilla and Edge both use HTTP Push, I'm not sure what Google uses on Desktop Chrome but I could see it going either way. Safari probably uses APNS.
So what! Few use that. I host a prosody server with lots of plugins and it never occurred to me to use it, let alone use cases outside if the XMPP ecosystem. Can the XMPP implementation fall back to google's push system. Does it have a blog entry, lovely diagrams, comprehensive docs, a nice on-boarding experience for developers? Ideas aren't worth much, implementation--getting things done is what matters.
Use function based views. I do and way less magic.
Success in programming is less coupled to general test taking skill than most common academic subjects.

Whether or not your FizzBuzz runs is at best loosely coupled to taking class notes and reading the text.

Whether or not FizzBuzz runs correlates to time at the computer writing code.

In my experience, people tend to default to what comes easy. So people who are good at taking notes and reading textbooks are likely to try to pass a programming class by taking notes and reading textbooks.

Also in my experience, people try to avoid the unfamiliar. So people who are good at taking notes and reading textbooks are likely to avoid the unfamiliar territory of sitting at the computer.

But, plenty of academically inclined people are good at programming. It helps to grow up in a culture where not being academic is more ok. Like the US.

Good luck.
I don't think the comment about generation ahead is relevant or true.

As a final thought, I'd say at least in a store, if you have the ability to determine if something is junk by looking and touching it, you can practice that.
I'd say most of the truly safety critical control code I encounter was generated in simulink, and the remainder is all in subsets of c++. Some of that c++ was loosely ported from ada (not spark) long ago. So rust wouldn't be taking over the domain from spark, it would be taking it over from c++ and simulink which took over half of the safety critical domain some years ago, many years if you count misra c. I would certainly advocate for spark over any of those languages, but that is a hard sell as people want free open source tooling that is used by google or amazon, and if they say no to spark, but yes to rust, well at least it isnt c++98 anymore. Or simulink models version controlled using folders with dates in the names.
Modern CPUs and GPUs can re-encode an HD video in like an hour or two, while you are free to do other things. It's not exactly "wasted" time.
Just how much extra equipment are you carrying? I would expect a bike like that unloaded to be around 12 kg.
Wouldn't the political orientation of the moderation teams be relevant here?

If the moderators of all of these organizations were reflective of the general population, then maybe, but are they?
Thermal pleasure in built environments: physiology of alliesthesia
Why not? As a layperson, I assume a CIWS could still fire into the flight path of one and knock it out of the air.
You can only make money from a share of the fine that gets collected, in the case of an insolvent firm, I doubt that fine and your share will be at the front of the list of creditors.
Doesn't the fact that they are UV reactive help them glow and appear brighter? If they used the same color with a non-UV reactive material, would they still seem as bright?
I went through a similar process a few years back. As far as I know, there is some extended availability through Rochester Electronics, but I don't know if anyone's still actually fabbing them or if they're dicing/packaging out of a stockpile of NOS wafers or what. I'm not aware of anyone still having a 68K/ColdFire chip that is "recommended for new designs".

I also read somewhere that the 2011 earthquake+tsunami destroyed the only fab that had still been producing the original (well, CMOS) 68K-family chips, and Freescale had been planning to close that fab anyway.
Dunno -- I got it in high school, and it's one of the few "class" books that have stayed with me through the years. I'd say On the Road, A smattering of Shakespeare, and 1984 did that as well.

"They were careless people, Tom and Daisy—they smashed up things and creatures and then retreated back into their money or their vast carelessness, or whatever it was that kept them together, and let other people clean up the mess they had made."

You can't look at modern life without seeing that.
How to fix blurry/jagged text in PixiJS
Or Ruby on Rails monkey patching library code
I think I’m confusing RSUs and ESPP shares. The latter I’ve gotten discounted by 15% of the market price. If I sell them immediately, the 15% gain is taxable as income tax. If I hold them for a time (a year?), then sell, tax on gains are paid as cap gains not income tax. Of course the gain/loss at that time is anyone’s guess.

Sorry for the confusion.
I believe the notifications used to be delivered by a very long-lived TCP connection, and there probably is no limit to those on Android.

The reason to use the google services is mostly touted as for battery savings, I believe.
Ask HN: What is your spiritual practice (2022)?
A year ago, someone posted an Ask HN about spiritual practices[0]. It is an understatement to say that some of your answers in that thread changed my life.

I'd like to revisit this topic again. HN, what does your spiritual life look like? And how has this practice changed your life?

[0]: https://news.ycombinator.com/item?id=29700445
Use the subgraph relation to define the poset. The big graph is then obviously an upper bound for every chain.
GHSL – Global Human Settlement Layer Open and Free Data and Tools
As we get used to "the system flagged you" situations, people get step by step removed from recourse to unfair rulings. If I have to spell it out further for you, maybe you won't see a problem until you are personally affected. I understand, it's a fairly common posture.
Terms and conditions do not override law. Coerced consent is not consent.

By law, the user experience must not be different based on whether the user has or has not given consent for tracking.

Registration implies consent to process information (identity) for the purposes for which that information was provided, namely access to the content. It does not imply consent to use that information for other purposes such as tracking, and so any attempt to track a user around a site for advertising purposes using their login details would be in breach of the GDPR, unless the user has explicitly and freely given separate consent for that to be done. For that to be possible, the request for consent to track must be completely separate from the process of creating an account or logging in - it cannot be part of the terms and conditions.
I have been reading quite a bit about honey a while ago.

The thing is: a bee colony would usually produce as much honey as it can, even more than it needs.

It is thus mostly fine to get it, as it wouldn’t be consumed anyway.

Also beekeeping involves taking not more honey than the colony needs, otherwise the colony would starve (and you can’t indefinitely get new colonies).

What is really problematic instead is an agricultural practice where a colony of bees is installed in a field that has undergone treatment with pesticides. The bees will do their job and pollinate the flowers, but will die shortly after from the pesticides.

Another cruel practice is the one where queen bees get mutilated from their “jaws” (for the lack of a more appropriate term, I’m not a native speaker of English) in order to force the existence of more than one queen bee per colony.

Such practice is illegal here in Italy and in some countries, but not everywhere.

Once again, “just not do x” (eating honey in this case) is the quick “solution” but also the dumb one. A better approach would be to actually learn something about the topic and promote/incentivise the best behaviour.
But that API schema is unrelated to the underlying DB schema. I’ve been able to run services with different backends (eventually consistent & low latency vs transactional) exposing the same API. That would not have been possible by just giving consumers access to a DB.

The DB can do everything can’t seem to understand this, for some reason.
"Some would watch these videos and say, “well, boys are like that and girls are like this, it’s just nature”. Others might say that girls and boys are socialized differently"

People really need to stop with this "socialized differently" - the evidence is overwhelming that boys and girls are in fact different. In order to make them act similar you have to fight their nature constantly (which society certainly keeps trying to do - unsuccessfully), in order for them to be different no special effort is needed.
Zoom "stay logged" is greyed out if you have moderate privacy settings. Only website I've ever had an issue with.
The warning of 1984 is that bullies don't bully because they have to, they do so because they wish to, and can. (The Inner Party is secure, so why the boot?)

If doing X instead of Y costs me nothing, yet doing Y causes someone else to suffer, why should I continue to do Y?

> But
deeper than this lies the original motive, the never-questioned instinct
that first led to the seizure of power and brought DOUBLETHINK, the
Thought Police, continuous warfare, and all the other necessary
paraphernalia into existence afterwards. This motive really consists...

That motive is not explicitly stated in 1984, but it is in (the posthumous) Such, Such Were the Joys.

https://gutenberg.net.au/ebooks03/0300011h.html#part49

Is this not the origin of Big Brother? of O'Brien saying it is not enough for Winston to accept; he must love?

> Flip and Sambo had chosen to befriend me, and their friendship included canings, reproaches and humiliations, which were good for me and saved me from an office stool. That was their version, and I believed in it. It was therefore clear that I owed them a vast debt of gratitude. But I was not grateful, as I very well knew. On the contrary, I hated both of them. I could not control my subjective feelings, and I could not conceal them from myself. But it is wicked, is it not, to hate your benefactors? So I was taught, and so I believed. A child accepts the codes of behaviour that are presented to it, even when it breaks them.
Fans can sue over trailer that featured a cut character, says court
I still have an iPod Touch 1G in the cupboard. Not my original (first production batch) sadly, as I did a warranty swap about 10 months in.

I've fond memories of jailbreaking (TIFF exploit at jailbreakme.com) moments after the exploit was published on IRC. Used Installer to install apps because Apple said they would never allow third-party native apps and that WebClips were the way of the future.
My Bose QC 45s have the most annoying low battery warning I've ever experienced. Beginning at 10% battery, every 5 minutes all input media is paused so a computer generated voice can inform me "BATTERY LOW, PLEASE CHARGE NOW." 10% battery can last for up to an hour, but woe betide you for trying to utilize the time.

It is an atrocious UX. It cannot be disabled via the paired mobile app. Do not buy these headphones!
IIRC the output of the geothermal wells is often quite corrosive & possibly prone to clogging due to all the contained minerals.

Not insurmountable but still complicates things.
> The websites make it so hard to reject cookies or selectively accept to make the website work for your benefit.

Either I misread you or this is pure nonsense.

I have read through many of these popups and there is no way 200-700 trackers are there for my benefit.
He also forgets that a large part of the federal reserve is, essentially, a research institution. That does research, publishes and critiques papers, and then takes those papers into account when drafting policy.
Excited to see this on HN. I've been talking about the End of Localhost this year (https://dx.tips/the-end-of-localhost) and Coherence's docs (https://docs.withcoherence.com/docs/overview/coherence-vs-ot...) give the best map of the landscape i have yet seen.

Netlify and Vercel made preview environments a standard part of the workflow for all frontend developers. my usual soundbite on this stuff is we need to treat our envs like cattle, not pets, to make up and discard as casually as a git branch.

i think there are a number of startups (eg Railway, Brev) are all feeling their way towards this future. my one wish is that someone make a credible industry standard for environment branching that everyone can build toward, including 3rd party vendors (eg Planetscale/Neon) and open source multi-service frameworks (eg Temporal, Airbyte where i work).
Yes, Sudafed works. It is worth going through the hassle of signing for it.

(Though I wonder... has fentanyl displaced enough methamphetamine to make that process obsolete? I mean, of course it was arguably never worth it, but even if we accept that it might have been, maybe now we could put Sudafed back on the shelves.)
https://archive.org/details/CoverageOfTheScopesTrialByH.l.Me...
I keep hearing that consulting and finance are terrible uninspiring careers, but as a consultant I honestly have no idea what else I could do that would be more inspiring. I would love to know though.
Snowflake Cost Optimization
Optimizing costs and maximizing the value you get from using modern cloud-based data platforms is an urgent question for many enterprises.
file > quit hypercard
Longest Mule Deer Migration: Red Desert to Hoback
I think it might have been in the early 2010s, when they finally gained the ability to access global financial and communications data rooted in the Patriot Act. Probably under Mueller, when he was busy framing Assange in Iceland with Sigi.
When I was growing up, my mom got a Kirby vacuum. It was built like a tank, and seemed to hold up like one, too. When I was at college a few years later, I found a Kirby on a curb for the trash (landlord cleaned out an apartment). I took it, spent $100 on belts, bags, and attachments, and it's been with me for 15 years. When the pandemic hit, I finally bought more bags, and while I was at it, replaced the cord and light bulb. It very well might outlast me.
Hard to make much of this because of the safety considerations required to make it at least minimally ethical. Not sure if there is a way to design such an experiment that is both safe for the children and valid.