skysight-inc/HackerNews huggingface dataset:
I'm also in Germany and public transport is obviously good but you still get weird cases. I live in the south of a city the size of Karlsruhe, work in the north. With public transport it's 1 hour excluding the way to the bus stop and the waiting. With a car it's 16 minutes, with a bicycle it's 35 minutes. Comically enough the shortest path is with a car and not a bicycle.

Tomorrow I have a flight at 12:00. If I want to get there (~200km) with a car it's 2-3 hours depending on traffic. If I want to get there with train+bus it's 5h11m minimum, if I go right now it's 8h26m, if I want to catch my flight tomorrow it's 9h10m (and I'll be there at 8:40 instead of 11:00). It's also more expensive than driving there and leaving my car at one of the airport's parking lots for a week. I'll save ~50 euros by driving and set off at 8 tomorrow instead of 23:30 today.
Of course. As opposed to over other grafittis I mean.
The spiral rule is not real and fails on even basic examples like

char * foo[10][5];

The OP article shows you how to actually read the declarations, not a fake trick that will lead you astray.
Logarithmic Number System
> Does finding the number of unique elements in a set

That's easy, that's all of them. Sorry, could not resist.

Yes, hashing is the usual method. In a sorted list you can compare to the following element.
and the best part of your brand image
It's the Cat People! Just ask Nastassia Kinski <cue David Bowie singing>
Did you run into a boot loop because of some SDMMC controller problem? If yes: this is caused by hardware changes in newer rpi4 and old rootfs images from ALARM which don't support this yet but it's fixed if you update it. To do that, you have to play around with chroot + qemu-user to run a standard "pacman -Syu" on the rpi rootfs before the first boot on the real rpi4. Afterwards it should boot properly on the rpi4.

That being said, if you want to use e.g. the official RPi 7" touch display via DSI, you should also switch from the default upstream kernel to the rpi kernel unless you like to mess around with DTB and debug strange problems.
Sounds like we need a single-purpose Linux distro that only runs a word processor. Of course that's not nearly as interesting as using a physical typewriter, but it sure is easier than scanning all those typewritten pages using OCR.
To get people to accept a monster, show them a bigger monster.

While we let AI take over, we will rest easy it won’t be as bad as skynet.
What are you talking about? Germany and Britain never had “Greek cities” or even experienced cultural Hellenization. Germany wasn’t even part of the Roman Empire.

During the Middle Ages, “Greek people, who spoke and read Greek”, still had an empire—actually, it was the Eastern Roman Empire, but without the Western half it had become increasingly Hellenized, with the emperor’s title changing from the Latin “Augustus” to the Greek “Basileus”. And they spent much of that time at war with the Islamic conquerors, only falling to the Ottoman Turks in 1453. I can assure you they did not greet the Turks as liberators or saviors.
The only fear I'd have buying a 2nd hand on what I consider these 1st/2nd generation EVs is battery repairability/replacement. Buying a 10 years old used ICE car is a pretty common and affordable option for many people, a 10 years old EV might need its whole battery pack replaced, and as far as I know that is a pretty massive cost.
Very cool. So many upstart SQL players: TiDB, PlanetScale, Crunchy, Cockroach, Neon, Supabase, Nile, Yugabyte, Aiven, let alone the cloud provider options (AlloyDB, Spanner, Aurora, Cosmos). Kind of mind boggling there's room for all these players
I'd say the most idiomatic way is to use a simple for-loop:

def factorial(n):

result = 1

for i in range(2, n + 1):

result *= i

return result

The recursive version would be fine as well, but I would say it's less idiomatic in Python, and less efficient.

def factorial(n):

if n == 0 or n == 1:

return 1

else:

return n * factorial(n - 1)

Beyond that, I cannot think of any obvious way to do this (without getting unreasonably convoluted).

In my opinion, it's great that there are such few options to express this operation, and that both cases are eminently readable.
Yes, I used to view it like that as well, until a host of grafittis offering a different perspective appeared in my city. It turned out that the author was an art student and a neighbour of mine from the lower floor. Not Banksy level but still good. Sadly he moved or who knows but his grafittis are gone and the awful football related vandalism tags are here to stay.
Ask HN: Examples of subscription products with exponential decay pricing?
I'm not sure if this even exists, but wondered if anyone had seen examples of products / companies that used a subscription model, but with pricing that decreases the longer you remain a customer. If so are there payment processors like stripe that offer this as a service?

It seems it could be a cool way to increase retention and satisfying for users who get a small price drop each month that passes.
All the Ways to Make a Web Component (2022)
Some progress in Europe yes but the harms are still far from getting enough attention and policy responses. One problem is that there's so little organized effort against noise pollution, there's need for a movement with grass root organizations that puts sustained pressure on this issue.
You missed the opening "PROCEDURE DIVISION.".
well, you don't need to know Rust to complete Zero2prod but you need to have a backend background for sure.
"Computer scientists invent an efficient new way to approximate counting large unique entries" - fixed the title
Certainly in the cities mentioned in the Article, e.g. Berlin and Hamburg.
It wouldn't surprise me if there were a large enough population in the UK to be sustainable. I've been hearing stories about black leopard sightings since I was a kid, and geographically they are quite far apart.

These animals are pretty shy and mostly hunt at night. It was only recently that we managed to obtain footage of them hunting at night in an area of the world where they are fairly common.

https://www.bbc.co.uk/news/av/science-environment-68665332
For intercity trains it doesn't matter what the propulsion method is though, since every train will make a lot of noise at speed. It's improved with aerodynamics and better wheel / tracks, but ultimately noise will be an issue. Consider also cars where at speed the noise is not due to the engine, but to wheel / road noise.
There is always opportunity cost... I like having car available even if I drive very little or short distances. It is there when I need it.

And electric cars don't have same range as my cheap gasoline car. Not at least on same price point. So at times I need that range getting 160-200km to somewhere and then back without charging...

And taxis here are expensive. It would not be that many trips in a month with all the things that I consider car is nicer...
From the abstract: "... All the current state-of-the-art algorithms are, however, beyond the reach of an undergraduate textbook owing to their reliance on the usage of notions such as pairwise independence and universal hash functions. We present a simple, intuitive, sampling-based space-efficient algorithm whose description and the proof are accessible to undergraduates with the knowledge of basic probability theory ...."
It's very unlikely any unreported big cats have escaped into the UK countryside since the late 1970s (when the Dangerous Wild Animals act basically outlawed them as pets and some owners let them loose in the wild).

It would be quite amazing for there to be enough animals to maintain a mating population of atleast 3 or 4 generations since then without them being seen much more frequently.
> It's all in the technique.

Sounds like the technique was not fully documented then.
Pretty much the story of .NETs CoreLib, including even the most performance sensitive parts like memcpy/memmove. There’s probably no C++ code left in anything that isn’t JIT, GC and lower level parts of VM.
If code needs an owner for legal purposes, then it should probably be the person or persons who commissioned the code to be created, if said ownership is not transferred to a different person or persons by agreement.
An a to Z of Hungry Killer Whales
Mysterious origin of domesticated horses 'turned upside down' by DNA analysis (2018)
k is kilo. As in 1000. 5000-10000 miles. UK average is about that.

But you go chuntering on about your high density living and fantasies that there will be public transport at 2130 tonight from the nearby village 8 miles away where the scout hut is back to my house.

Whenever I try to get a taxi to the station (a mere 9 miles away) it's massively unreliable, had to get a hotel in the past because they just don't exist in the real world at 3AM. We don't all live in the middle of London or Paris or NYC.
Actually, he understood perfectly. He was a businessman, as well as a craftsman, and understood that this is par for the course, in many successful businesses.

I believe that it's vital to have a stake in Quality, or it won't happen.
From the abstract: "All the current state-of-the-art algorithms are, however, beyond the reach of an undergraduate textbook owing to their reliance on the usage of notions such as pairwise independence and universal hash functions. We present a simple, intuitive, sampling-based space-efficient algorithm whose description and the proof are accessible to undergraduates with the knowledge of basic probability theory."
This website is literally run by a venture capital corporation.

"Hacker" can have different meanings, but certainly in this case it isn't meant to reference the tech enthusuast anarcho communist subculture.
Thanks, I had looked at ATS many years ago, but I had forgotten about it. I'm going to look at both Lean and ATS, but I guess I'll stick with SPARK2014 for work now.
>> Without tax incentives EVs are far more expensive for people who only drive say 5-10k miles a year.

> If you're only driving 5-10 miles a year, car ownership seems like a massive unnecessary burden, electric or ICE.

This is off by a factor of 1000.
> BYD also saw a slowdown between January and March.

Did they, though?

> BYD sold 300,114 EVs globally in the first three months of the year, up 13.4% YOY. In April, BYD sold another 134,465 EVs, up 17% over April 2023. Through the first four months of 2024, BYD sold 434,579 electric cars.

https://electrek.co/2024/05/15/byd-just-hit-new-weekly-ev-sa....
> if I saw them out of context I’d assume they were female

No need to be this much disingenuous, you can express support in other ways.
Historically there were integrity issues with the storage template, these should now be resolved however. The reason is disabled is quite simply that most users don't need it and it can cause a lot of IO in some scenarios, for example if your upload and library directories are on different mount points.
You can't agree to the terms of referendums and then reject the result if you don't like it.

They don't "not get anything", by the way. Lots of subsidies from mainland France, lots of effort to recognise local customs, local assembly and moving to more autonomy from mainland France while keeping all the benefits of being in France.

Interestingly New Caledonia has been French for longer than Hawaii has been American. The difference is that European migration to Hawaii has been much, much higher.
US housing is a state-level issue that could be solved by state governments promoting high-density housing policy. Ultimately, those state governments are elected by voters, i.e. residents, including renters, and not exclusively landlords. But landlords disproportionately contribute to the finances of re-election campaigns, and thus have effectively seized control of the options offered to voters.

It's fantastical, and unrealistic, to hope that improved voter education will result in better electoral outcomes and thus better policy outcomes. The root problem is in how elections are financed. Citizens United must be reversed and elections must be financed publicly, with fair financing to candidates based on the number of signatures they obtain, and equal airtime purchased from public funds. Only then will we see YIMBY candidates start to accede to positions of power and start to reverse these landlord-favorable policies.
And with 10 year old cars you have enough spread to know the common issues and costs to repair those. Some of them are pretty minor. But battery packs still can be very substantial comparatively.

And I would really worry about some second/third hand battery from fly-by night operator that might actually not properly guarantee anything.
Kudos to the create and maintainer https://github.com/LukeMathWalker. He could easily monetize this if he wanted and chosen to share it for free.
Preferred by who? `math.factorial` is a good start.
Span<T> is pretty much C# syntax :)

(Also funny, multi-dimensional spans are coming in the form of TensorSpan<T>)
Complaining about train noise is a national hobby, so the legal rules for noise protection have been significantly tightened up in the last decades and now multi-metre high noise barriers (up to four, five or even six metres) are a legal requirement. The end result being that people still complain about fear of more noise when infrastructure upgrades are proposed, but new they complain about visual blight, too. Even where local property owners would be okay with somewhat more elevated noise levels (or having sound-insulating windows installed) in return for lower noise barriers, the infrastructure operator is legally required to build the full-height wall even against the wishes of the adjacent property owners/local municipalities.

In the absence of national sensibilities on noise returning to e.g. Swiss levels (where AFAIK balancing noise protection vs. its visual impacts actually is an official planning goal), less ugly noise protection barriers are a worthwhile development. (They've also managed to make freight train noticeably quieter by requiring composite-materials brake shoes, which don't roughen up the wheel treads so much, but beyond that there aren't many more easy gains in noise reduction to be had…)
I live outside the city, so I know the difference in sound at high speed when they pass by. It makes a great difference. Combustion vs electric but also the manufacturing and damping of the wheels etc.

Steelwheel on steel can be very silent.
Ryan did mention this in his talk at React Conf.

Shopify has had issues adopting Remix because their existing front-end codebases are massive and they couldn't afford to rewrite them to use Remix.

That's actually the whole motivation behind turning Remix into a bundler plugin. With a bundler plugin, you can incrementally migrate parts of your existing application to use the features of Remix without having to rewrite all of it.
Same as adjusting other people's tire pressure: perfectly fine if you have explicit approval.
By any chance I know, because I clipped it in Overcast.

It was on Accidental Tech Podcast #415, 26:19. The topic starts at 25:40

https://atp.fm/415
It's objectively true though. The Soviets moved entire factories from their German occupation zone back into the motherland as war reparations (initially they essentially wanted to turn Germany into a deindustrialized and demilitarized agrarian state). Meanwhile Western Germany received massive funding from the US via the Marshal Plan which helped to kickstart the economy and turned the western half into an economic powerhouse.
For non-interactive scripts there probably isn't much you can do.

I've always wanted to setup an interactive honeypot ssh server which prints the standard message for a rejected login and then pretends to close the connection, while running a keylogger to hopefully intercept some command which asks for password. The major obstacle is that people customize their prompts, although many probably use whatever is set by default on Ubuntu.
Could you explain how they're easier? I thought all analogue watches were very similar - pull the crown out, rotate, push it back in.
That still only speaks to it being simple enough for students, not whether its too simple for any other use vs. useful enough that students who learn it will spend the rest of their lives using it.

For example word processor software is commonly described as simple enough for children to use at school, that doesn't mean that word processor software is of no use to adults.
They are using local partners
Indeed, and there's `std::function` (albeit not being a zero-cost abstraction; I believe `std::move_only_function` and `std::copyable_function` in C++23 and C++26 respectively are replacements) and lambda statements. But C++ decided the bracket salad `[](){}` was the best way to write lambdas, and I'll never forgive the standard for it.
Indeed. Very inspired by .NET, C++, and Rust.
Sorry, typo I did mean 5-10k miles
Isn't that a little like saying archaeologists seem to find a suspiciously large number of historical objects, or tornado hunters seem to have a suspiciously large number of tornado sightings?
Still, counting things and counting unique things are two different procedures.
My partner has seen them twice from close up (<10m), in the Cambridgeshire area. But this was in the late 90’s.
The Rise and Fall of Canada's 'Crypto King' Aiden Pleterski
Great list! Thanks for sharing. Noting how many developers work on the device is a nice addition.
It’s not incredibly long way at all considering that there’s already electric mining truck in operations. Several varieties in fact (overhead wire and battery-electric).

But they’re a very long way from approaching 100% of mining if that’s what you mean.
I agree completely, but consider that not everyone was part of that debate about the referendum and again - many probably were overpowered in voting and unhappy with it from the beginning. Again, it's really weird if the people who want your referendum to fail are the ones setting the rules or have significant influence there.

Anyways I don't mean to say it should be invalid, just that as a independentist person living there it must be really angering. If it was 70/30 it would be much easier to accept. France increasing their autonomy and recognition is a smart and sensible move given the situation.
Most people might agree, but most people would be wrong. I actually think that most people would agree that string comparison should be a byte by byte comparison, which I think is actually slightly better.

> That means Cyrillic characters are considered different characters than lookalike Latin characters. It also means that for string comparison, different methods if representing accented characters should be considered equal.

Why? I know this is how Unicode defines it, but what real world use case does this serve? Why would two strings that will be rendered identically in virtually any use case, like "Cap" and "Сар", be considered different, but other strings like "ő" and "ő", equal?

Edit:

> As far as I know, the correct way to compare Unicode strings is to normalize them and then compare the bytes.

This is also a kind of fuzzy string match, just a different kind of fuzzyness. For example, this is an inappropriate way to compare strings if you're using it in a file diff implementation, as you would conclude a file has not changed when in fact it has, in ways which might matter to other tools. Database engines don't normally do normalization before enforcing uniqueness or creating indexes.
Thanks for you quick response! I was thinking what use this particular pop up has because basically it would not hold up for GDPR, so...

I always wonder; why use evil tech to begin with? So why not avoid it not to please some regulator, but just because it's not needed? Use Plausible for analytics, don't embed Youtube, don't use Recaptcha, no adsense, (feel the google...) etc... What else needs to track/spy on your users that you need when not using dark patterns for this type of application? If you don't use any of it and just put a cookie for necessary purposes, you don't need any banner/popup at all.
I use these colours for rainbow brackets in all other languages https://github.com/Release-Candidate/vscode-scheme-repl/blob... but for LISPs I dimmed them (their saturation) down for normal editing (when not "recording" animations/videos).
A spanner in the works is Biden's tariffs that will hit grid storage imports from China, which is currently the large majority of deployed storage. These particular tariffs will start in 2026.
As the other person mentioned, Casio is solid (especially the digital stuff like the F91W), but if you're in the US/Western market Timex/Citizen/Seiko are also good. If you want a mechanical watch the Seiko 5 is a classic, and Ali has a lot of really good value for money "homages" by folks like Pagani Design for around $100-200. I think there's a subreddit for chinese (mech) watches if you're curious.

The generally accepted principle is that watch brands' watches are of a far higher quality than that of fashion brands (eg Diesel/Nike etc). Modern quartz movements are damn good, but cheap ones aren't easily repairable or generally even worth repairing if you get it from one of these fashion brands.
Feedland Blogroll Thoughts
Military rank affects medical care, offering societal insights: Study
Ada syntax is close to what you described:

Foo : array (Positive range 1 .. 100) of access function return access Integer;
Dear HN person who ask for my help
Fairly recently I received an email from someone here on HN. It was polite, referenced a thing I'd submitted, and pointed me at something I might be interested in. They finished by saying:

"Please feel free to give me any comments about it and to share it as you please."

So I had a quick poke about, then spent some time composing a reply, and sent that off.

The result (address redacted):

A message that you sent could not be delivered
to one or more of its recipients. This is a
permanent error. The following address(es) failed:

xxxx@xxxx.xxxx
host mxa.mailgun.org [34.160.63.108]
SMTP error from remote mail server after
RCPT TO:<xxxx@xxxx.xxxx>:
550 5.7.1 Relaying denied

Action: failed
Final-Recipient: rfc822;xxxx@xxxx.xxxx
Status: 5.0.0
Remote-MTA: dns; mxa.mailgun.org
Diagnostic-Code: smtp; 550 5.7.1 Relaying denied

I don't know if this is my problem or theirs ... I suspect theirs.

This is not the first time this has happened. People, if you're going to ask someone else to spend their time helping you, make sure things work.
> I seem to be missing something as this is getting downvoted.

I wouldn't downvote you, but I think those who did have read your comment as saying that it (hn design) is fine and they disagree.

(I'm not saying that's what you've said)
A nice tip for Google results is to use ublock and hide all the extra garbage panels they’ve added (YouTube and tiktok, the spam blog sourced answers panels, etc). Also ublacklist to block spam results (like quora)

> If I can't turn off ai from Google.... Is Google trying to kill their search engine?

Honestly that’s the only thing that makes sense to me. It just doesn’t add up. There’s no way they can be this incompetent without it being some strategy. I mean they’re google for crying out loud.
I think the problem os being only a single witness claiming to have sighted them? The Loch Ness monster has more reported sightings, so a single witness, imo, is not enough to say with a large degree of certainty that there is a big cat roaming around.
That's correct. I wouldn't recommend a custom ROM to an average smartphone user, but when you have someone in your life that's dedicated to tech support and you have custom needs, it's a good idea IMHO.

I consider helping my family with their tech stuff a privilege, not a burden. They help me with so much, why wouldn't I want to guide and support them on things I am knowledgeable about?!
Both of those cases tend to have significant evidence and is generally verifiable by others. Although there have be archeological frauds too.