MurphyA/hacker-news huggingface dataset:
by steve_gh | 2025-04-23 15:20:04+00:00
I think that the issue around (rather than with) TDD is the discovery process of understanding enough about the problem domain. Testing is good, and well designed and crafted tests make it easy to maintain and extend software.

Personally, I find TDD isn't that useful in the early stages of development. I just don't find that I get enough value out of it in exploring a problem domain. What works for me is to explore the problem domain with a sketch of the code - trying different options etc. Once I have a feel for the problem domain, and a feasible solution approach, then I will write tests based on the sketch, with both an understanding of what the desired behaviour is, and some understanding of the constraints and gotchas. Those tests then provide a reference point for a much more TDD based exercise in refactoring, cleaning and extending the code into the finished solution.

YMMV.
by onion2k | 2025-04-23 15:20:22+00:00
This is interesting, but the implication of what it's saying overstates the upside of random conversations (you could get what you're looking for), and utterly ignores the huge downside that when you're lonely a rejection makes things a thousand times worse. In today's society you (seem to be) much more likely to be told to ^$*£ off rather than get an actual moment of connection with someone.

AI doesn't do that. It's always going to be nice to you, and that feels good even if it's entirely artificial.
by MrJohz | 2025-04-23 15:20:47+00:00
That's true, but it's not usually recommended for most cases. You lose out on a number of optimisations, and I don't believe it'll be directly supported for vapor mode when that comes, although it looks like there's a plugin that will get them to play nicer with each other.

If you want JSX and signals, I suspect you'll get more out of just using SolidJS, as that framework is focused on working well with JSX directly.
by juliansimioni | 2025-04-23 15:20:55+00:00
Are you committed to running the process locally due to privacy or legal reasons?

If not, we securely run geocoding batches of that size at Geocode Earth all the time at pretty competitive rates. We are flexible on data transfer, usually we have customers set up an SFTP server or an S3 bucket and send us the credentials. We spin up a ton of hardware in EC2 to geocode it real fast (<24 hours even for a few hundred million addresses), will work with any data format you need, and then send it back.

If you _do_ need to run it locally, we're also the creators of the Pelias geocoder(https://pelias.io), which is open source like Nominatim but supports more than just OSM data (which is not a comprehensive address source globally), so often can return better results. We can help you set it up if you need.
by superkuh | 2025-04-23 15:21:41+00:00
How I Blog with HTML and nginx - Zero Cost, Fully Owned: Step 1. install nginx from repos on my home desktop computer. Step two: write html files and put them in directories under the web root. Step 3. forward port 80 to the webserver internal IP on my router config. Step 4. Link people to http://your.ip.here.a/somepage.html or maybe rent a .com domain.

I've been doing it for 20+ years (xitami and thttpd before nginx) and it not only has an infinite lifetime (because it's .html and files) but it also has no attack surfaces or mantainence required.

All that static site generator and remote corporate services stuff will break within a year if left untouched. And re: security, running a static nginx server from home is about 10,000x less of a security risk than opening a random page in $browser with JS enabled. nginx RCEs are less than once a decade. And DoS re: home IP? A vastly over-stated risk for most human people. In my 20+ years I've never had a problem, and even if I ever do, who cares? It's not like my personal website needs nine 9s of uptime. It can be down for days, weeks, with no issue. It's just for fun.
by jmull | 2025-04-23 15:22:40+00:00
Hopefully most people get that the exact meaning of "pixel" depends on context?

It certainly doesn't make sense to mix different meanings in a mathematical sense.

E.g., when referring to a width in pixels, the unit is pixel widths. We shorten it and just say pixels because it's awkward and redundant to say something like "the screen has a width of 1280 pixel widths", and the meaning is clear to the great majority of readers.
by skrebbel | 2025-04-23 15:23:03+00:00
Sure, it's confusing. But the suggestion here is that this single word implies a "lot of fundament misunderstandings and factual mistakes" (sic), and therefore the many negative comments in this thread about that word are warranted, and frankly that's just ridiculous.

Notably, from a teaching "Unix tools 101" perspective, the difference is super unimportant. If the author's goal is to get students to open a terminal for the first time in their lives (on their Windows laptops!) and type some ls commands and maybe pipe stuff into sed once or twice, they can learn this on a BSD and apply it in any Linux (or the reverse) just fine.

I think the author means it literally. His goal is to teach students some Linux basics, and his method is to put a BSD into their Windows. It's kinda nuts, but you gotta agree it's kinda "mad genuis" nuts.
by awongh | 2025-04-23 15:23:03+00:00
I guess this is for type-ahead speed type queries? I found the page: https://nominatim.org/release-docs/latest/admin/Installation...

But it doesn't mention why you need this amount of RAM or how you could opt out of that requirement? i.e., if the queries run directly against the DB w/o indexes, etc. why the high RAM requirement?
by lenerdenator | 2025-04-23 15:23:10+00:00
Okay? So you might be selling fewer Bombardier aircraft in the US. There's still Europe, China, and the rest.

That's not a mortal threat to Canadian manufacturing and the country's defense sector. Unless, of course, Canada really is as reliant on American dollars as Trump makes the country out to be, which is why he feels he can be a pain in the ass and push tariffs higher.
by spankalee | 2025-04-23 15:23:26+00:00
I would strongly disagree with classifying the feed as a Gruen Transfer mechanism.

The feed as a basic concept is great. It's basically an inbox, and no more of a Gruen Transfer enabler than an email inbox. Hell, it's no more inherently an enabler than an aisle in the store. It's not the existence of the feed, it's what's in it.

Facebook's feed is what allowed me to see what my friends were up to without clicking on every single profile. That made Facebook hugely more useful to me than MySpace.

But there are eyeballs on the feed, and money to be made by showing ads to those eyeballs and capturing more minutes of attention to in turn show more ads. That's the incentive.

I doubt that feeds are case of you can't find what you were looking for. I don't think most users are looking for anything in particular when they browse a feed. Now jamming more things in the search page may count. And Twitter's nasty habit of shifting around what you're looking at so you can't find a post surely counts.
by ajmurmann | 2025-04-23 15:24:07+00:00
Preference is subjective. I hate touch screens in cars that so anything but provide a screen for my phone, others love them. Should we ban touch screen controls because of my preference? I like to have a curated app store for my phone and not have a free-for-all with multiple stores of varying quality where I need to set up a new store just to use a popular app. So I can buy an iphone and people who have a different preference can buy an Android phone. If consumers actually cared that much they'd just avoid iOS. It's the magic of the market. Let's have consumers put their money where their mouth is! Stated preference and revealed preference often differ for a reason.
by cge | 2025-04-23 15:24:23+00:00
>You could have non-personalized, or contextual ads. But those are much less effective.

This is always a bit frustrating to me, in that, if someone doesn't like personal data collection, they likely have enough blocked that the attempts at targeted advertisements are likely to be very ineffective. And even in spaces where there is little personal data available, online advertising still seems to desperately cling to targeting rather than context.

I remember being struck by the contrast between the printed Times Literary Supplement, with advertisements for new book releases, conferences, cultural events, and so on, which all seem quite relevant to the audience, are often enjoyable and informative, and have directly motivated me to buy things, and the automated advertisements that were added to their podcast, for things like... a football-themed advertisement for a car dealership vaguely located near some rough geolocation of my IP address.
by Havoc | 2025-04-23 15:26:16+00:00
Yeah I'm usually doing one conversion already (think 12v fan + 5v/3.3 esp32) so ideal case for me is pull 12 for the fan since that's the bulk of current and convert that down for esp/pwm but many ways to skin that cat I suppose.

I have discovered that certain Anker chargers are happy to supply 12V PD though...and it tends to be their cheaper charger lines. e.g. A2149 while the more expensive ones refuse 12V requests
by chii | 2025-04-23 15:26:46+00:00
> The correct way to interpret "1920 pixels wide" is "the same width as 1920 pixels arranged in a 1920 by 1 row".

But to be contrarian, the digital camera world always markets how many megapixels a camera has. So in essense, there are situations where pixels are assumed to be an area, rather than a single row of X pixels wide.
by Magma7404 | 2025-04-23 15:27:00+00:00
I agree that I disagree with that other guy. IRC and forums were only populated with nerds. It's once the salesmen and marketing people took control of the whole social media things that the internet was no more about being open to a new world, but more focused and closed inside controlled communities. Those people are definitely on the "extroverted" side and were only here to make money out of our social interactions.
by trinix912 | 2025-04-23 15:27:17+00:00
Putting the (very valid) reasons for not having human-readable game saves aside, are you sure it's worse than using a 3rd party library that's built to accept semi-valid input values, possibly evaluates user input in some way and has difficult to debug bugs that occur only under certain inputs? I agree that writing a stable and safe parser for a binary data file isn't easy, but there's less things that can go wrong when you can hardcode it to reject any remotely suspicious input. Third party XML/JSON libraries OTOH try to interpret as much as possible, even when the values are bogus. Also no need to deal with different text encoding bugs, line endings...
by fc417fc802 | 2025-04-23 15:27:22+00:00
To be fair the story has been consistent. The hardware is lacking and the predictions are testable given advances in it.

When you compare it to the historical development of classical computers it's proceeding at a decent rate. Imagine if we'd needed hundreds of thousands of transistors before being able to demonstrate actually useful work by a classical computer. They likely never would have been developed in the first place.

Cryptography wise I'd expect dire warnings about any theoretical attack that's reasonably plausible. Better to react immediately than sit around waiting for it to materialize. It took over 15 years after the warnings for SHA to be broken in practice and I don't necessarily expect that SHA2 ever will be but we've moved on to SHA3 nonetheless.
by freedomben | 2025-04-23 15:27:36+00:00
I refuse to use anything Apple so can't speak for the Apple TV, but I see it as pretty comparable to the Google TV (aka Chromecast w/ Google TV) products, just more open, flexible, compatible, and affordable.

I use Google TV for games on occasion. It has excellent controller support and works great for lightweight games that run fine on the stick. For anything heavier, the Steam Link app is the go-to. I can run the games on my bigass Linux PC and stream them to the TV. I routinely do this for Hogwart's Legacy for example.

Now that said, lately I've been just hooking up my Steam Deck to the TV and using that. Less friction and less bugs by avoiding the Steam Link app. And the Steam Deck is pretty close to a console (certainly much closer than it is to an Apple/Google TV), so perhaps I've just proven your point :-D
by derektank | 2025-04-23 15:28:03+00:00
>As the article points out, human connection is only valuable because it is hard and there's another human on the other end of the relationship.

I'm not convinced that's the only reason connection is valuable. We evolved as social primates and human beings which feared ostracism were likely selected for during that process. I think, for many people, even the illusion of human connection likely comes with improvements to one's sense of well being, which can have positive knock on effects elsewhere in life. Forging real human connections would obviously be preferable, but in their absence, a crutch is better than being hobbled.
by varjag | 2025-04-23 15:28:23+00:00
> Especially when you consider that Ukraine doesn't have a navy and barely had an air force and anti-air, yet Russia failed at establishing air or naval control, let alone dominance.

Ukraine had dozens of airworthy fighter jets and well over a hundred air defense batteries at the start. Many of the latter were lost in the first weeks but Ukraine was fairly packed as far as smaller nations go.

> Russia has no chance of having a war against the Baltics only.

No, Russian chance of occupying significant part of Baltics with realistic level of NATO involvement is 1 in 3. It would be most certainly able to overrun the three states absent NATO support.

> Any aggression against them will be met with a swift reaction from Poland, which has a better equipped army than Ukraine. If Ukraine can destroy the best Russian units and hold to a stalemate the majority of the remainder for years, Poland will wipe the floor with the war criminals.

That's the spirit I was mentioning yeah, "Ukrainians are bit backwards unlike we noble NATO elves". Name one thing in Polish military that Ukrainian military today doesn't have though?

The coming war will be hell of a reality check for many.
by globular-toast | 2025-04-23 15:29:03+00:00
> The only problem I’ve found is that for interviews, people often aren’t familiar with it, which can lead to you solving whatever puzzle they had in far less time than they intended, and without manually building whatever logic it was they assumed you would need.

My favourite example of a similar thing happening to me was when I was asked to reverse the digits in a number. I somewhat jokingly asked if I was assuming base 10, which got some awkward looks so I knew something was up. They weren't impressed at all with my answer of `"".join(reversed(str(123456789)))`. I didn't get the job.
by Uzmanali | 2025-04-23 15:29:14+00:00
One practical fix I’ve seen work: calendar firebreaks, at least two hours of deep work blocked daily, company-wide. Teams can stay focused by using agenda-first invites and a mandatory async-first policy. This approach supports collaboration without limiting it.

Also, quiet zones + soundproof pods in open offices aren’t luxuries; they’re productivity tools. We should fix the environment, not just the etiquette.
by hk1337 | 2025-04-23 15:29:30+00:00
I've started recently working on setting up the "special" public profile repository in GitHub to be my blog central and wanted to keep the files to a minimum. So, I really like using themes as modules in Hugo, then your blog repository will be just your content directory, go.mod, go.sum, hugo.toml, and any layouts you want to override or add.

. ├── .devcontainer │ └── devcontainer.json ├── content │ └── posts │ ├── 1718983133-post-1.md │ ├── 1720321560-post-2.md │ └── 1740070985-post-3.md ├── go.mod ├── go.sum ├── hugo.toml └── README.md

3 directories, 8 files
by lapetitejort | 2025-04-23 15:29:31+00:00
I've been fiddling with the Collatz Conjecture off and on for years now. I'm convinced I found a pattern that I haven't been able to find mentioned anywhere. Granted, that could be because I lack the mathematical language needed to search for it.

First, I'm going to use an implicit even step after the odd step, as 3*odd + 1 always equals even. If you look at the path a number takes to its next lowest number, for example 5->8->4, visualize it by just looking at the even and odd steps like so: 5->10, you will see that other numbers follow a similar pattern:

9->10

13->10

17->10

What do these number have in common? They follow the pattern 5 + k(2^n) where n is the number of even steps (with the implicit even step, two in this case).

For another example, look at 7:

7->1110100

Seven even steps, so the next number will be 7 + 2^7 = 135:

135->1110100

I'd love to hear if this has been found and documented somewhere. If not, I have additional ramblings to share.
by Sloowms | 2025-04-23 15:29:39+00:00
I'm not sure what society you are referring to but contracts have to adhere to laws in the EU.

This is also about software that is being updated. So the transaction is not completed yet. Apple could probably go the route of not providing the update to phones that were sold before the law was voted on/in place. I would guess that would lead to other legal battles.
by mock-possum | 2025-04-23 15:29:43+00:00
But I like slipping through life as a silent burgler :(

I almost always have things in doing, places I’m going, thoughts I’m thinking, and they almost never involve other people. I barely need people to be present at all, most of the time.

That’s not to say I don’t like people - I don’t have any particular animosity, they can’t help being here any more than I can - and there are plenty of people I know and love and yearn to see again from time to time.

But most of the time? I could go days without human contact. Oh the idea alone makes me giddy!
Show HN: MazeRace – a simple multiplayer maze game
by abhay18e | 2025-04-23 15:30:07+00:00
I made a simple multiplayer game called MazeRace.

You can either create a private room or join someone else’s room using a code. The server generates a new maze for each room, and players race from the start to the end point. You also see other players moving in real time

It’s not super fancy, but it's playable and kinda fun.

Would love feedback or ideas!
by spencerflem | 2025-04-23 15:30:19+00:00
I don't know the Godot ppl, but I hang out on the LibGDX discord and what they want is to make a good engine for its own sake. If someone would be better served with Unity or Godot or anything else they're extremely quick to say so.

The point is to make the world better not for their own project to Win.

I'm assuming Godot is the same way, and the idea of spending effort making sure every other OSS engine doesn't have VisionOS support is a lil baffling
by giantg2 | 2025-04-23 15:30:59+00:00
I agree, but we can go a step farther. The real problem is that people don't know how to be alone. We aren't really left alone due to all the technology. Without being alone, we don't really appreciate being together and just fill out time with the cheap substitutes (not specific to AI). It's certainly possible to be alone without being lonely, but these cheap substitutes make that less and less likely.
by philips | 2025-04-23 15:31:13+00:00
I have been thinking about this problem of "digital curation" quite a bit in the last few months. This is the core thesis: The role of children's teachers and caretakers in curating an environment for children to learn and grow is more important than ever with the overwhelming variety of books, videos, shows, etc all of varying quality and alignment with the interests of the caretaker and child. However, curation in the digital age is also more difficult than ever. The web is a collection of walled gardens which give parents limited and inconsistent controls over what the child will see once inside the walled garden. And, adding controls on-top of a walled garden is impossible or only possible by very computer savvy users.

To be clear this isn't about hiding information from kids. It is about providing places for their curiosity that is age appropriate and of a high quality. What I think all caretakers seek to avoid are books that are of low quality or age inappropriate (e.g. AI generated, scenes of suicide, etc), video that are developed in the style of the Cocomelon "distract-a-tron"[1], or software that encourages gacha gaming and/or uncontrolled open chat/video/etc.

What are ways care takers can practically and easily curate today?

Examples

- YouTube Kids

- Jellyfin, Kavita, or Calibre for ebooks

- Open WebUI with a custom system prompt for kids

Counter Examples

- Netflix, Disney, Amazon, etc: difficult to non-existent curation controls - all or nothing

- Kindle Kids: there are controls but for Library books the process is 12+ clicks between the Libby and Kindle app: https://www.aboutamazon.com/news/devices/can-you-share-kindl...

[1] https://www.nytimes.com/2022/05/05/arts/television/cocomelon...
by cmrdporcupine | 2025-04-23 15:31:26+00:00
It's not a mortal threat to Canada, but it is a mortal threat to the Liberal party's base of support in Quebec :-)

Seriously though, those are decent paying jobs that glue together a manufacturing economy that often times is barely holding on in the face of the same kinds of forces that have decimated American manufacturing, too.

It's the same with the autosector here in Ontario.

It's not that it's "American dollars" holding Canada together, per se, it's that this is a continental-wide trading system developed by ruling classes in both countries since the 80s and it barely serves the interest of working people here or in the United States because the bulk of work has been exported to China in the the last few decades... and so what is remaining is absolutely critical to hold onto.

These are the facts Trudeau was trying to explain to Trump, who is too stupid and arrogant to grasp.

In the end working people in both countries have more in common than not. And face threats from overseas as well as our own political classes. (And no, that's not a call for the dissolution of our sovereignty.) As much as I despise my premier Doug Ford (he's a corrupt buffoon) he was right to emphasize a "fortress North America" alternative approach to Trump -- continent wide security and prosperity insured by cooperation. That line worked with Obama and Biden, and IMHO strengthened both countries, but Trump is deadset on burning it all down.
by TimTheTinker | 2025-04-23 15:31:29+00:00
It's also easy to confuse problems that arise from failing to adequately manage the gotchas with problems inherent in the tool itself. There's a subtle distinction there that's easy to miss, especially for those with a blame-the-system sort of attitude (which I don't entirely fault).

One company I worked for had a very slow frontend. It was common there to blame the slowness on React. "React is just kind of slow."

Another company I worked for had a much larger React-based frontend, and it was fast-loading and snappy by comparison.

The difference is that the second company had much more well-established good practices in its design system, the codebase, the enforced lint checks, and the general knowledge of its engineers. They avoided performance traps that caused multiple renders of things. (The first company's frontend would render a given screen 12+ times for some state changes.)
by db48x | 2025-04-23 15:31:48+00:00
You’re not entirely wrong, but a library doesn’t have to be “heavyweight” in order to be bulletproof. And you can load the library during startup and then unload it after; it doesn’t have to stick around for the whole run time of the game. Modern OSes will reclaim the pages after you stop using them, if there is memory pressure. Of course the PS2 didn’t do that I am sure.