skysight-inc/HackerNews huggingface dataset:
> ...manual loops instead of `map` and `reduce` and `filter`...

...you're free to implement such functions in a Zig/Odin/Nim library as well, but in the end it's just another way to loop over data, and inside your own implementation there will be regular loops, so why bake this stuff into the language when it can be done just as effciently in a library.
You can do it easily using ublock origin. Just select the div of the video you dont want to see anymore, and append to the filter string something like this

:has-text(/channel name that I hate/)

I filter any video with less than 1000 views, since youtube started to push insanely small channels to my recommended videos lately. This is the filter to accomplish that, on mobile youtube:

m.youtube.com##ytm-rich-item-renderer.fresh-feeds-dismissals:has-text(/0 view|1 view|2 view|3 view|4 view|5 view|6 view|7 view|8 view|9 view/)

I have so many filters on my ublock youtube section that nowadays their algo doesn't seem to even bother me so much. I hardly let Youtube show me anything that I would not really like to see.

Another anoying thing that started showing up on my feed lately were very old videos, 5, 10, 15 yo videos, with millions of views. Clearly meme worthy garbage. So I started filtering out any video with more than a million views from my feed using the following filter:

m.youtube.com##ytm-rich-item-renderer.fresh-feeds-dismissals:has-text(/M views/)

I never, ever, watched a single "short" youtube video in my life, so maybe their algo tried to memefy my feed using this alternative path. No way, my time is precious and every single video I watch must add something.

To remove "Sponsored", i.e. videos that are really ads, from your feed:

m.youtube.com##ytm-rich-item-renderer.fresh-feeds-dismissals:nth-of-type(1):has-text(/Sponsored/)

My youtube feed nowadays only shows videos that have between 1001 and 999999 views. To me, its the sweet spot of quality for youtube videos. If you didnt catch the upload on the first week, you'll get it down the line, when it passes the threshold of 1k views. I know I maybe not getting a Veritasium video suggested to me once in a while, since nowadays he tends to get millions of views on the first day already, but once I remember about those channels I really like, I'll manually visit their page and retro watch all the videos I missed in between.

Ublock Origin is the single most useful piece of software one can use to keep their cognitive sanity in the modern world.
Assuming a 80 year lifespan, that would amount to 5 years exercising. So you need to weigh that up again...
> Is make considered bad or something?

Depends what you're using it for. Generated from CMake, Makefiles are OK I guess, although Ninja is strictly better these days.

Manually written, I would say make is bad.

1. It doesn't promote portability: since each target calls shell commands, it is very easy to accidentally create a non portable Makefile (something alleviated when using CMake that handles the portability before emitting the Makefile)

2. It is imperative and stateful in subtle ways, which is the wrong level of abstraction for a build system. Systems that are declarative and describe the desired state of the build are much easier to use and reliable

3. It is bare bone as far as build system functionality goes: it doesn't provide many of the useful things I expect from a modern build system: the concepts of library dependencies, build profiles, compiler flags, test, documentation or even project in general... are all orthogonal to make

4. It is ad-hoc: as a result of the previous points, the expected functionality of a build system is often re-created in the makefile, but in a non fully standard way (conventions exist, but must be manually enforced and are limited). This results in brittle and difficult to use build systems.

> What is an alternative

Language-specific package managers, notably Cargo.

If using rust, there's also a pattern called xtask[1] that's aiming at providing a standard interface in the form of a binary (since it is rust, it is portable, but most of the other points unfortunately apply).

Otherwise, CMake, meson, nix, bazel, buck2

[1]: https://github.com/matklad/cargo-xtask
Is it domains or just pages?
> I had a $60-in-1995 northface backpack that lasted through hauling 5+ periods of textbooks every day

Mine did that, and has since been lying out in the rain in the back yard holding firewood. It's a decade+ later and the thing is still perfectly fine other than being a bit dirty. Bet a good wash would get it back to being perfectly usable as a backpack.
Show HN: Data Painter – different way to interact with data in Jupyter notebook
Data painter is a new feature in PyGWalker that allows you to clean/annotate your data like drawing

Online tutorial in notebook: https://data-painter-tutorial.pygwalker.kanaries.io/
> "The Bloop was the sound of an icequake – an iceberg cracking and breaking away from an Antarctic glacier!"
Katarina Janoskova, linked in the article, writes:

> Is [reading] just a waste of time? Well, no, I don’t think so. Every book makes a mark. Even if it doesn’t stay in your conscious memory. Just as every single thing that happens to you does and every person you meet.

I once read a short essay by Patrick Süskind (author of "Perfume - The Story of a Murderer"). I am paraphrasing, but in it, he discusses his embarrassment that he cannot remember even major plot details or character names of great works of world literature, although he has read them multiple times and they deeply inspired his own work. He then makes an interesting speculation: if a book really and deeply influences you, then maybe actively remembering facts and insights of the book becomes harder and harder, because the book's ideas have been so deeply ingrained into your brain and thinking that you cannot remember them as facts independent of your own thinking. But this doesn't mean that you have "forgotten" them.
While better, it still gets things wrong.
I use this as a subscription Stripe starter: https://github.com/vercel/nextjs-subscription-payments/tree/...

Still quite a bit of customisation to do, but was a good starter.
Revamping Little Fighter 2 Sprite Sheets with Generative AI
I feel like all police in NZ are secret police because I never see any out in the street anymore.
What makes them essential? Never have I encountered them
Calories can only be restricted temporarily. Your body has finite stores of energy until you run out of it and die of starvation.

So over long periods of time, you consume almost exactly as much calories as you use.

The only way to consume less calories over your lifetime is to use less calories over your lifetime. And for this you need to move less.

So "calorie restriction" is opposite from higher activity levels (exercise).
> Should [communists] be banned too or is communism less directly associated with mass killing

From the article: “What does ‘Nazi’ mean, or signify? Many things, but among them is ‘Kill all Jews.’

Atwood doesn’t call for banning Nazis per se. She wants something done about calls to violent action.
DJ Tall Paul is a tech youtuber!?! fuck yeah
FOr inference, less than 1KLOC of pure, dependency-free C is enough (if you include the tokenizer and command line parsing)[1]. This was a non-obvious fact for me, in principle, you could run a modern LLM 20 years ago with just 1000 lines of code, assuming you're fine with things potentially taking days to run of course.

Training wouldn't be that much harder, Micrograd[2] is 200LOC of pure Python, 1000 lines would probably be enough for training an (extremely slow) LLM. By "extremely slow", I mean that a training run that normally takes hours could probably take dozens of years, but the results would, in principle, be the same.

If you were writing in C instead of Python and used something like Llama CPP's optimization tricks, you could probably get somewhat acceptable training performance in 2 or 3 KLOC. You'd still be off by one or two orders of magnitude when compared to a GPU cluster, but a lot better than naive, loopy Python.

[1] https://github.com/karpathy/llama2.c

[2] https://github.com/karpathy/micrograd
This is especially annoying when they don't use different notification channels so I can't turn off individual types of notifications.
One of the greatest things about the USA is that entrepreneurial mistakes are forgiven and you're given another shot. It is why we are the greatest nation when it comes to startups and entrepreneurship in the world.
What happens when a site you really do need and have HTTPS on (your bank, say) has a cross-site request forgery vulnerability, and someone plops an exploit script on that non-HTTPS site you visit? With crafty enough hackers, your savings just got wired to a foreign country.

The entire internet needs to be HTTPS to protect against stupid security decisions made long ago that we can’t undo now in the name of backwards compatibility.
I've always kinda wanted to buy an actual slide rule, just for the lulz of it. Haven't gotten around to it yet. But one of these days...
> Why don't we fix the housing crisis? Because homeowners will vote out politicians who reduce their house value.

I mean, i don't think this is a good example. Well im sure the homeowner class wanting to protect their investment does play a part, its not like there are obvious solutions to the problem just waiting to be implemented (or at least not ones that stand up to scrutiny)
Your LE friendly ISP can insert a JS browser exploit and gain access to your device. Is that a valid reason?
Your body fat tends to the equilibrium where calories burned is calories consumed (because fat burns calories).
HTTPS is still a pain in the ass, even in 2024.

If letsencrypt would offer wildcard certificates with their url based authentification as they offer for non-wildcard certificates, it would be ok.

But having to tinker with the DNS infrastructure for each project which wants to use domain wide HTTPS is so much hassle.
Of course Wikipedia has a page titled "History of logarithms"! I should have just looked there first. :-)
It -really- depends on what you're doing.

If you're an olympic athlete swimming 10 miles a day, you need more calories.

If you're the typical American walking or jogging even for an hour, you burn basically a can of Coke or two.
Spying on the ESP32's GPIO
> only way to consume less calories over your lifetime is to use less calories over your lifetime. And for this you need to move less

Outside elite athletes, most people burn a significant minority of calories on physical activity [1]. Again, we have actual research around calorie restriction + exercise.

[1] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6003580/
FYI Tom Scott has several other active channels, and this only marks the end of weekly scheduled videos in the main channel after a full decade. It is not even the final video for the main channel.
Off topic, but I've been missing CSS & JS warriors on HN, who'd make it a point to expose how a certain hero image on the landing site was 4MB big or expose the scandalous use of an outdated version of jQuery on a S&P 500 company's website.
NZ feels behind Australia in most ways. But in this area we're ahead. It's slightly insane to me a country as wealthy as yours still has this sort of thing going on.
Are we even in the same universe?

The vast majority of the world still downloads and runs executables uploaded by individuals, albeit perhaps not on a bulletin board or forum (most of those have been killed and replaced by social media).
web assembly?
The fact that this is on a .gov.au makes it a bit more attractive to targeted MITM attacks, I would think, given a government site's position of authority.
I'm not going to play the guess your usage game.

They can give me the best rate with a cap or I'll wait for the competitor to show up. Duckduckgo is fine enough for now.
Fuck reductive metrics. Write for your audience.

In the world of patents, multi-hundred word sentences are normal. There are regulatory reasons for that. Yes, patents are inaccessible, which suits the purposes of the people who write them.

This generalizes to the worlds of law and academic writing.

Besides all that, a sentence with many words in it may suit poets.

I have written very long sentences specifically to create a puzzle for my readers; I have done so specifically to convey a sense of complexity as a rhetorical technique; I do so in the service of my project, whatever that is.
This. This is the argument I'm exhausted having. Rushing development works for... maybe a week. After that, every time, it takes longer overall than if it'd been done "right" the first time.

Like a desk, you get one layer of crap and clutter. More than that and everything begins to teeter and fall.

That said - you definitely have to ask yourself (as a developer) or your engineers (as management) "is there a simpler way?". But "simpler" is not the same as "rushed", even if both are "faster" - it's just a question of "on what timeline". Faster today? This week? This month? This quarter? This year?
> one aspect of the search would include looking in the manual and seeing if has a suppressible standby light or checking for a non-aggressive standby light color

as if modern TVs had manuals or that was an information listed on any modern appliance manual
I see this sentiment a lot. People want to have AI be on the internet for them instead of themselves.
It really shed light on the 'always online' thing: we never really 'want' this, rather we feel that it is necessary for survival.
Given the same benefit, people would rather not be on the internet. That blows my mind a bit.
Lightweight but Not Easy:Side-Channel Analysis of the Ascon Authenticated Cipher
I think what people usually miss about statistical results is that it's just a corelation.

The conclusion should be:

1. Eating less leads to better body composition and less internal organ strain in general.

2. Reasonable amounts of physical activity leads to better calorie utilisation and improved body composition.

3. It is absolutely possible to both eat less and do more sports.

4. Both eating less and doing more sports can damage the body. Say, running can damage one's joints, and undereating leads to muscle loss.

As in most things in life it's the balance that is important to get right, not just blindly following statistical insights that are mostly useless on an individual's level.
> So, for example, a medical solution will be different in a country that practices medicine for profit over those places where medicine is non profit.

There are some differences, but doctors still need to eat, equipment needs to be purchased, etc. Making medicine non profit isn't going to cure cancer.
The big killer in the UK is the inability to get rid of business leases, largely because landlords can still force exemption from the legal protections. The second is lenders who can insist on 'directors' personal guarantees' at every turn - which puts their family homes on the line.

If there is one thing the UK could do to boost business startups, it would be to ensure that business owners can hand back leases whenever they want, and that 'directors guarantees' are unenforceable.

However in a country that remains obsessed with land and titles, that is unlikely to happen.
Not totally unexpected unfortunately. Any other OSS players on the market?
> The entire internet needs to be HTTPS to protect against stupid security decisions made long ago that we can’t undo now in the name of backwards compatibility.

We can undo it now, the powers that b just refuse to abandon the altar of backwards compatibility, damn the cost. (Even though the addition of a straightforward document browser with no JS and no dynamic content would seriously improve most of the internet....)
> And metabolic rate does not differ a lot between people, the only thing that differs significantly is activity level.

Resting metabolic rates decrease in obese people, and stay lowered even if they lose weight.

Combine that with leptin resisance and it really is no wonder why it's so hard to lose weight once you have it and more than 90% of attempts persistently fail. This is why I do not like armchair "pills don't solve everything" takes, because in the case of semiglutide, it does help a lot getting over the leptin resistence induced permanent hunger feeling, just like Metformin improves insulin resistence.
Again, this is wrong way to think about it.

All people have a huge static component to the calories that are used by our bodies. But this component is pretty much the same for all people. Our livers, our hearts, our brains are all constructed the same and use the same amounts of energy.

Where our bodies differ for the static component is based on our activity levels. Our Basal Metabolic Rate is higher when we have active lifestyle and tend to be lower when we are sedentary.

So, again, to use less energy you have to move less because regular exercise will increase your BMR or (depending how you think about it) prevent it from dropping.

You can't have low basal metabolic rate AND be regularly exercising.
That is not at all a reasonable conclusion or a sufficient criteria.

I am frequently called a Nazi (despite being on, and identifying as left wing, my entire life) on X simply for having the temerity to challenge certain orthodoxies.

Denying that the term has been stretched to its breaking point, especially in light of its use by Russia in justifying the SMO in Ukraine, strains any kind of reasonable credulity.
> Look at some civil engineering disasters: licensing doesn't prevent disasters.

I'd suggest that you are judging the effectiveness on the wrong criteria here. It's impossible to foresee all distasters - the goal is to enact mechanisms to mitigate the human cost of distasters, and even more importantly, prevent the second and third occurrences of the same distaster... (which we seem decently good at)
Interesting… if you eat 0 calories you will stop aging altogether
This is why it’s best to find a form of exercise you enjoy
I walk 3 miles a day, takes about 45-50 minutes.
True. It assumes simple rational actors which act in… well… their own best interests?
The article is sourced from The Information, which says "Google plans to reorganize a big part of its 30,000-person ad sales unit, an executive told some staff last week, prompting anxiety that some departments will face job cuts."

That doesn't sound like laying off 30,000 people. That sounds like a exec said there would be a reorganization of a "big part" of a unit of 30,000 people total, and people are worried it will include some layoffs, which is not the same thing.
"costs too much money" isn't resource scarcity. It's at best a synthetic proxy for the general concept of resources (and at worst, the scarcity is entirely artificial)
Perhaps that is selection bias? Perhaps the science people just like to blame the non-science people for the problems. Blaming the other side is one of the most fundamentally human things to do.
Instagram Trend Talk 2024
Virtualise Linux on Apple Silicon with Liviable beta 4
Gov.uk is one of the best thought through, best websites out there.
Just walking around burns quite a lot of calories. 10-15k steps a day can burn up to 500-600 kcal. That's like 20-30% of a recommended daily intake!

Note that this is the least traumatic way of calorie usage.
Which has a shockingly low applicability to the actual accounts that will get banned by the policy; a number of the writers (like Cremieux or Hanania) being called Nazis ARE Jewish or are notably philosemitic. It’s a joke.
US Barnes & Noble can have a few meters of shelves with different versions of the Bible, and a buying guide. It is quite striking if you are not used to it.
What a century of earthquakes has taught Japan
They make an (easily made) mistake on that page: the encrypted version of FTP is not SFTP, but FTPS. SFTP is an entirely different protocol based on SSH.
Constant, blinking slow, blinking fast, Morse code blinking
Yes, the HALIC uses quite low memory. Because independent small blocks work. Of course, this situation negatively affects the compression rate. It is a fact that I compromise on the compression rate to ensure less memory consumption.
There are two unexamined assumptions in the article: first that the “we” in “we can solve everything” is synonymous with “government,” and next that “we” know the correct answers.

The former is a very twentieth century notion. The identification of government with society (“we”) went hand in hand with the idea that government should have power in every domain of human life and co-opt or liquidate every competing authority like academia or media or church. Here, it’s that “we” the government should take over healthcare (although regulatory approval of a cancer treatment was cited as one obstacle) and fiber-laying instead of leaving those to non-governmental authorities. Carl Schmitt in the early twentieth century had a great term for such a totalizing government: the Totalstaat. It’s not clear, however, that a Totalstaat is actually a good idea. Governments have never solved many problems at all—-homelessness comes to mind—-and it’s not clear that a government seeking to expand its power into previously non-governmental domains will serve its own interests best by solving problems rather than by providing treatments that abate problems without solving them. Treating a problem expands a state’s authority while preserving the problem as a reason for further government action; solving a problem would end that authority by ending the reason for it. Winning a war, for example, used to remove the need for a standing army until the twentieth century saw the invention of a “cold war” and “war on terror” and a perpetual standing army to treat the unsolved problem of a lingering threat. It’s not clear that this increase in government power was a good thing.

Secondly, the idea that “we” (government) “know” the answers is hubris. The author claims that “we” know it would be good to send everyone to college for free, but is that actually best for everyone? Or does that just turn college to more high school, lower the quality of education, waste a lot of people’s time, slow down the creation of families and negatively impinge on demographic trends, etc? “Knowing” the solution presupposes knowledge of second-order effects, and people are generally very bad at that. Thinking that a total state “knows” the best solutions to problems is a good way to impose lots of (potentially negative) second-order effects without much recourse to do anything about it, since this total state has all the authority and no longer has competing authorities to check its hubris.
> But with pushes, we have to guess what the customer might be interested in given triggers such as events, promotional offers

No, you don't have to guess. You can correctly know that the answer is "no". If you're going to blatantly send unwanted marketing to the user, at least be honest with yourself and your audience about it.
It depends on your provider though. I can tell from experience that with OVH and their API, it's been easy to set up the automatic renewal via DNS verification. Apparently, the official client has support for the DNS API of 159 providers: https://github.com/acmesh-official/acme.sh/wiki/dnsapi
> I think what people usually miss about statistical results is that it's just a corelation.

It is not (just) a correlation.

There is direct relation between what your body needs as energy and what calories are in your food. It is true for each and every single person, not just statistically over entire population.

Our bodies are physical entities that follow physical laws of conservation of energy. Because we can't create energy from nothing, every calorie expended as heat or work has to be consumed.

The only way to eat less calories is to expend less heat and work.
* On Android, Notification Channels are immutable to developers once created (besides the name and description)