News for hackers. Stuff that matters.

slazaro

Re:Iterating Backwards in C on Friday October 30, 2026 @08:12AM (#50302849)
I would consider his version "not ideal code" in the sense that 99% of people reading it would go "huhh?" and be confused, they'd think that it has a typo because it isn't using the for-structure in the classic way, etc.

Code is not only for machines to read, it's for humans to read, and this one works but it doesn't communicate effectively to humans. It's great if you work alone, or if you work with a team that uses this type of loop and is used to it. But otherwise, I don't think it's ideal at all.

Re:I never authorized an integration that scans my secrets on Saturday October 17, 2026 @05:28AM (#50129402)
> Our documentation should have explained all of this, including how to turn it off. We'll get that updated.

Do you mean "how to turn it ON"? It should be off by default, just look at the replies you're getting by people that are seriously considering not using HA because of this. Is it worth it? It doesn't matter if it's secure by your standards, what matters is that it gives people the security "ick" and will then second-guess every other security decision in the rest of the software. That matters.

They always seemed to me like solutions to a nonexistent problem. They make the code less readable, but ligatures exist and they seemed like a cool tech thing to implement, and they might look cool in screenshots. But in practice, in my opinion, they're worse than just having the normal characters. But I guess it's a matter of opinion, no harm in other people using them.
Re:2D Vehicles on Saturday October 10, 2026 @05:05PM (#50037164)
I love the japanese girl screaming in the loony gang radio with the drum and bass!
Re:The 15-year search for a band that charted once and vanished on Thursday October 08, 2026 @07:24AM (#50004498)
As I was starting to read the article, I was thinking (correctly) that this was going to be fruitless internet searches until they manage to contact a human and that was what was going to solve it, because there is so much obscure information stored in people's memories that was never put to text and shared online.

I have a similar 20+ years story of a house session that I downloaded with AudioGalaxy at around 2002, which I lost but I vividly remembered some songs. I remembered the name of the DJ and the club, and I would randomly search around to no avail. Same type of dead ends, some forum posts listing track names but not linking to audio, etc.

15 years later I happened to find a CD I had burned with the session, buried among old CDs in old boxes. The feeling of being able to listen to something that you clearly remember but haven't heard in more than a decade, it's indescribable.

Years later, a couple of years ago, I googled his name again out of curiosity and I found an instagram profile which I'm 99% sure is the guy in question: same rare name, from the small city where the club where the session was recorded is, his age also fits the timeline, etc.

I haven't contacted him though. On the one hand it could be a nice surprise for him to know that somebody enjoyed something obscure he made like 25 years ago, but on the other hand it's kinda weird that I remember his name from one super old mp3 and I stalked him over decades to finally get to his instagram profile...

Re:Make your first edit to OpenStreetMap on Sunday September 13, 2026 @08:25AM (#49683230)
I'd assume legality. You can't just copy stuff you find in other services, especially in OSM where the data submitted has to conform to their license.
Re:Muse's Social Media Handle Is Stolen by New Meta AI Tool on Thursday September 10, 2026 @05:33AM (#49640926)
...but they do? I don't really see what your point is.

https://www.muse.mu/

Well, your child is spending 0€, getting a bit of fun with a game, and getting a reward afterwards, which is randomized (more dopamine). That seems like an amazing trade.

As an adult, if I went and they said it cost 0€, I think I'd play too.

Re:Bill Gates tries to install MovieMaker on Tuesday September 08, 2026 @06:08AM (#49608180)
I've always assumed his inclusion in the story was just to make the story more interesting. I wonder if anybody ever asked him about it at all.

After researching a bit, the story actually is from 1977, I found a PDF from the magazine and it does mention him, even though he wasn't famous except for those tech enthusiast circles. Maybe the story is embellished a bit, but at least it wasn't made up in internet times.

Re:Paint.net 5.2 alpha now runs on Linux on Thursday September 03, 2026 @06:22AM (#49548191)
I never did any digital painting in Krita, I use it only for basic image editing and it can do all I wanted to do with Paint.net. Should I care that an app can do more than what I use it for, if it stays out of the way?
Re:Paint.net 5.2 alpha now runs on Linux on Thursday September 03, 2026 @06:21AM (#49548175)
Krita is what I use. Pinta just had a lot of broken UX and it didn't behave the way I expected. Krita is closer to Photoshop, but having extra features is not a problem. I'm pretty sure anything you'd do in paint.net you can do in Krita.
Which ironically is the name of a pretty amazing game: https://www.decisionproblem.com/paperclips/index2.html
Re:“I just chose words carefully” on Monday August 31, 2026 @06:12AM (#49507915)
I've seen it a lot in Spain as well. I guess it's a combination of just being the reverse of OK, and also "KO" meaning "knocked out" just feels like the opposite of OK.
Re:Iceland votes on whether to restart talks on joining EU on Saturday August 29, 2026 @09:59AM (#49489969)
Sounds like the Goomba fallacy: https://en.wikipedia.org/wiki/Goomba_fallacy
Re:My Business Is Dying on Friday August 28, 2026 @05:32AM (#49476343)
I agree that most companies are awful at trying to get you to stay when you tell them to leave, but I'd be disappointed if a company didn't care at all to know why I left. If I'm leaving I already have a bad feeling about them, and I would have a worse image of them if they didn't care why.

Ideally they wouldn't pressure at all for me to stay and cancellation would be a quick process, and I would be happy to tell them why I left. Either to vent, or to at least get the (most likely misguided) feeling that they might do something about it. But if there's no asking as part of their process, I'd definitely think worse of them.

Plenty of smartwatches are relatively thin and have vibration, and it only uses up battery when it's used. There's no excuse except they probably just wanted to cut costs.
I'm disappointed because that's what kept me from buying the Amazfit Neo, which is a similar concept to this one. Without vibration it's useless to me. They get so close to a great product and then...
Re:Dates That Don't Exist (2015) on Tuesday August 04, 2026 @12:13PM (#49170946)
The way I imagine it is like the calendars are both rulers that are slightly off from each other. We were using one ruler, and at a certain point we went from using one to the other, so our "present" was never mapped to those dates. But you can represent any point in time as any of those calendars, like we can represent a specific temperature as Fahrenheit or Celsius. The calendars extend forwards and backwards to infinity.
Re:If you're a button, you have one job on Sunday July 05, 2026 @07:33AM (#48793330)
It's interesting that we're so used to the GUI buttons having that specific behavior of only triggering when releasing, even if you exit and enter the button area while holding the mouse button down, etc.

IRL 99%+ of buttons work by just doing the thing as soon as you press them. But a button that works like that in a GUI would feel wrong.

That's not true, there's a lot to be done on the exterior as well, the main entrance is not even finished yet.

The big achievement that happened recently is they completed the towers, so it finally reached its target height. Also the Pope's blessing.

Going from 32 bits to 64 bits doesn't double the range (that would be adding 1 bit), it squares the range.
Re:A few interesting modern pixel fonts on Wednesday May 27, 2026 @09:49AM (#48294352)
What's the experience with Font Forge for creating pixel fonts? I have never used it but I always assumed that a font creation tool made for arbitrary style "vector" fonts is probably unwieldy if all you want is square pixels, to be rendered pixel-perfect, etc.
Re:A few interesting modern pixel fonts on Wednesday May 27, 2026 @04:57AM (#48291541)
I made PixelForge [0] a while ago just for creating pixel fonts and being able to export to TTF. I had it semi-abandoned for a few years, but I'm about to release a new version in the next few days! [1]

[0] https://www.pixel-forge.com/

[1] https://itch.io/t/6384009/new-update-soon

Re:Emerich Juettner: The One Dollar Counterfeiter on Sunday May 10, 2026 @06:18AM (#48082605)
I think you're reading way too much into that comment. Sometimes questions are just questions out of curiosity, not accusations of the opposite.
Re:Cat Itecture: Better Cat Window Boxes on Sunday March 29, 2026 @05:59AM (#47561776)
Having lived with a cat that had been in the streets for months before being adopted, and a different cat that had always lived indoors, I think that's the main difference in behavior regarding safety.

The one that had had experiences outdoors was more obsessed with food (to the point of eating everything fast until vomiting sometimes), scared of noises and sudden movements (going to hide in safe places), even from the people that had been living with her and caring for her for years. She was sweet and loving, but the streets never left her.

The one that had always been indoor was friendly to everybody, never super scared of noises, super curious, could regulate food properly (eating piecemeal throughout the day), etc.

There's always differences between cats' personalities, and this is a small sample, but it seemed significant and made sense given their experiences and possible past trauma.

Re:Drawvg Filter for FFmpeg on Friday March 20, 2026 @11:39AM (#47456155)
The quick way I'd solve that is to open any program window (like calculator or whatever), mark it as being on top of other windows, and resize it and place it on top of that area. It seems quick and easy enough for the effort.
Re:Okmain: How to pick an OK main colour of an image on Friday March 13, 2026 @12:33PM (#47366592)
It reminds me a bit of this post from the Facebook engineering blog (2015) [1] where they discuss embedding a very tiny preview of images into the html itself so they show immediately while loading the page, especially with very slow connections.

[1] https://engineering.fb.com/2015/08/06/android/the-technology...

Any interesting insights about using Godot with C#? I love C# and I'm happy using it in Godot even though it's not as seamless as in Unity: in Godot 4 we still can't export to Web if the project is C#, and there's the whole conversion between C# types and Godot types that adds inefficiencies and extra allocations, etc.; it feels like it's a second-class language in Godot.

I'm always interested in seeing what people find when developing larger projects in C#.

Re:Show HN: Infinite Tetris Grid on Wednesday September 03, 2025 @03:51PM (#45119767)
I'm assuming this is the same (or evolved) Lazy Tetris that you posted some weeks ago, with the name changed because of their trademark, right? I was wondering why it had disappeared for me a while ago and I found this again now :)

I think you could place a link from the old website to the new one, or a redirect, especially since the old HN post was relatively big. I had a bookmark and checked every now and then in case it would come back, and only now found it again by going through your HN account posts. Pleasant surprise!

I've played it on desktop (firefox) and android (firefox). The drop animation is super nice!

On android it works great, i love the controls, just dragging to place horizontally and then pressing drop, super satisfying!

On desktop, I would have one suggestion: right now I have to drag the cursor to place the piece horizontally, click to rotate, but then i have to move the cursor to the drop button to drop. Pressing space works, but sometimes I'd want to play with just the mouse, no keyboard. I think middle click could be a good way to drop the piece with just the mouse (double click too, but then you run into timing issues with the left click, so I think middle click is better).

Also, maybe an option to follow the cursor instead of having to drag/drop? So the play flow would be just moving the cursor, click to rotate, middle click to drop.

Also also, a link somewhere to be able to contact, in case of suggestions, questions, etc. :)

Good work!

In Unity3D Game Engine, "Yellow" as a named color is not #ffff00 but #ffeb04, the documentation says "RGBA is (1, 0.92, 0.016, 1), but the color is nice to look at!". I bet this bit the ass of thousands of developers that used it assuming it would be #ffff00 and then wondering why the output color somewhere was wrong.

Older »