dvratil

Joined 13 years ago

Karma
483
Submissions
44
Member since
Oct 17
me@<username>.cz
View on Hacker News

Recent submissions

Comment · 18 days ago
One thing I'm wondering about is - does every grocery store in France have a public IP address? Or how are these devices reachable? Or are they all accessible through some custom dashboard with nginx as a reverse proxy? (in which case I would blame the IT department of the chain, not the vendor)
Comment · 2 months ago
Cannot unlock, though:

Prompt: "Unlock my doors"

{ "function_calls": [], "reasoning": "No tool for unlocking or locking door exists. lock_door only performs lock/unlock actions, not unlock.", "confidence": 0.9492 }

Comment · 3 months ago
I think the parent's point is that we started with raw pointers to implement PIMPL, then we had std::unique_ptr, and now we have std::indirect. So there are now three different ways how PIMPL can be implemented, each has its gotcha's and subtle differences that one needs to keep in mind. In large codebases you will now have to deal with all three solutions being used, depending on how old the code is.
Comment · 3 months ago
It's often used in libraries where you need to guarantee ABI compatibility. Fixing a bug or implementing a feature may require adding a new member into the class, which would change its size (thus break ABI compatibility). PIMPL is the typical solution here, since the inner/impl class is not part of the public ABI.

I also like to use it sometimes to "hide" private methods and their documentation into PIMPL, so the public header is kept clean.

Comment · 3 months ago
I sometimes wonder how these systems are being tested on the road and whether there's any feedback from the test drivers, or what kind of morons are there saying "this is completely fine, exactly like intended" when they read the feedback...

My car has adaptive cruise control and will automatically adjust speed based on speed limit signs. I was on a highway at 130km/h and the car read a 60km/h speed limit sign that was on an exit shoulder (already separated by a concrete barrier from the highway, so technically a different road altogether) and started breaking really fast - I was pretty close from getting tailgated by the driver behind me, who did not (rightfully) expect me to suddenly start breaking with nothing in front of me. Luckily this can be permanently turned off, so I can continue using cruise control without being afraid of every single speed limit sign.

Recently I had rented a Skoda Karoq (very new one, probably 2024/2025) which adjusted the cruise control speed not even based on signs, but probably based on data from built-in maps? I don't know - but it would randomly decide that I entered a 20km/h zone while driving on a 90km/h road. And this couldn't be turned off. So I just turned off cruise control completely, because wtf, how can anyone think this is improving road safety?

Edit: typo

Comment · 4 months ago
I learned HTML thanks to Operation Flashpoint so that I could write mission briefings in the editor...one thing led to another, and I have a successful career as a software developer. Thanks, Bohemia Interactive.
Comment · 5 months ago
For me (as an EU citizen), sovereignty is about being independent of companies operating under law that I have no control of (can't vote in the US) and is veeery unpredictible (Trump administration). I don't want to wake up one day I find out my bill tripped because of some tax imposed on EU or completely cut off, because the president woke up in bad mood that morning. EU is very fat from perfect, but for me it is still closer to home, and I truly root for any EU company that tries to take on the US behemoths. I moved everything from GCP and AWS to Hetzner, and am moving from Github to Codeberg.

Unfortunately, it's realty hard. The US giants have offerings that no one in EU has and I am investing huge amounts of time into working around them (e.g. Windows and MacOS CI runners on Github - try to get this for free in EU). I'm fine with paying a bit for this, but even then it's a huge hassle to set it up to be able to get CI checks for my projects on Windows/MacOS. And it's not cheap either. I can afford it, but it is still very expensive.

Comment · 5 months ago
One thing I haven't seen mentioned here yet and really like about OpenRouter is their openrouter "meta" model, that automatically routes the prompt to an appropriately capable model. Saves me a ton of money on not routing everything through Opus, but not giving me bad results when I ask something more complex, which gets autorouted to Opus.
Comment · 6 months ago
Maybe I'm missing something, but how would GTA6 source leak really harm Rockstar? I mean it's unlikely it would be possible to compile a full working game from the leak, and even if so, it's such a non-trivial task, that I don't believe it would hurt sales /that/ much.

The only thing I can imagine is the story would get spoiled on the internet, but that's about it.

Comment · 7 months ago
Just yesterday I used Jellyfin2Samsung to install Moonlight on my TV. After the installation, the app shown a popup to donate to the author ("buy me a beer"). And I figured why not? The software turned a tedious process into a one-click solution, letting me do what I wanted to do (stream games to my TV) rather than spending an evening messing with Tizen Studio. Absolutely worth a few dollars.

KDE's Plasma will popup a notification every once in a while asking for donation. When you close it, you won't hear from it again until the next fundraiser. I almost always donate as well.

If a software asks in a non-obtrusive way, ideally after I used it (either for a while or like in case of Jellyfin2Samsung after doing the one thing it's supposed to do), I don't mind at all.

I dislike apps (mostly websites) that keep asking for money, regardless of whether you already donated or not every single time you visit them.

Comment · 8 months ago
Comment · 9 months ago
Comment · 10 months ago
Happened on the first day of my first on-call rotation - a cert for one of the key services expired. Autorenew failed, because one of the subdomains on the cert no longer resolved.

The main lesson we took from this was: you absolutely need monitoring for cert expiration, with alert when (valid_to - now) becomes less than typical refresh window.

It's easy to forget this, especially when it's not strictly part of your app, but essential nonetheless.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton