News for hackers. Stuff that matters.

Matheus28

Re:Iterating Backwards in C on Friday October 30, 2026 @04:13AM (#50301080)
Unsigned integer overflow is well defined, though. Not something that should be sanitized. A lot of code out there relies on it.
I remember when `alert` would lock up the entire browser UI. So if you put it on an infinite loop, that was it. You had to kill the browser process to shut it off.
I can't wait for them to deliver the new Roadsters!!
Re:Google Workspace thinks my domain is an email provider on Monday August 24, 2026 @01:15AM (#49415420)
I GUARANTEE that was written by AI. This type of slop is unmistakable
I’ll take a Qt application over the Electron garbage that we see all the time nowadays.
Re:C++: The Documentary on Friday June 05, 2026 @01:15PM (#48415489)
And replace it with what?
Re:How to convert between wealth and income tax on Friday May 22, 2026 @12:08PM (#48237837)
A lot of countries require you to declare your total wealth on your tax forms. Then once someone gets audited, that gets checked. Obviously it’s possible to hide it, but that in itself is a crime, and not everyone is willing to risk going to jail over paying taxes.
Re:How to convert between wealth and income tax on Friday May 22, 2026 @12:02PM (#48237720)
You obviously can’t convert between the two directly and suggesting that is disingenuous.

Income tax doesn’t affect unrealized capital gains (where the rich “hide” most of their income).

A wealth tax (even without a minimum threshold) doesn’t apply to the poorest who can’t accumulate enough to even have any savings.

This conversion only works for income that is entirely saved and reinvested, which the majority of people can’t afford to do.

Why? Some web apps might want to present a different interface if you’re in landscape.
Since C++11, data() is also required to be null terminated. Per your own source and cppreference.
Re:Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords on Saturday March 21, 2026 @11:06PM (#47474077)
“I quit!” Even includes a special character
Re:Apple introduces the new MacBook Air with M5 on Tuesday March 03, 2026 @10:38AM (#47234003)
What do you use the Mac Studio for?

I’ve always felt they weren’t really worth it for performance per dollar spent. For C++ work I just use a non-Mac workstation. For lighter workloads the Mac Mini is very capable already.

Re:Apple Introduces iPhone 17e on Monday March 02, 2026 @11:25PM (#47228030)
Except 120 Hz display I believe, which is big reason for me
Re:AI fatigue is real and nobody talks about it on Sunday February 08, 2026 @12:03PM (#46936186)
I personally believe what we’re seeing are newcomers who aren’t even programmers who fall for all this crap and then come here to post about it
I personally would have changed it to a round-trip then just returned the car to the other Hertz location and let them figure it out.
Re:Stop using low DNS TTLs on Friday January 30, 2026 @04:28PM (#46830149)
If you add multiple IPs to a record, a lot of resolvers will simply use the first one. So even in that case you need a low TTL to shuffle them constantly
Client-server multiplayer games are already kind of a very specialized type of video playback if you squint a bit (you're transmitting entities rather than pixels).

This method of multiplayer you propose is inferior in basically every way: you can't do client-side prediction to make inputs feel smoother, and non-trivial scenes will surely take up more bandwidth than just transmitting entity deltas.

Re:DNS LOC Record (2014) on Saturday November 29, 2025 @01:32PM (#46089668)
They could get a rough estimate of an IP location using traceroute from many different known locations. Very rough but it’s a starting point.

For some cases, they might just lookup who owns that IP range and put their address as the IP location.

Re:Binmoji: A 64-bit emoji encoding on Friday October 24, 2025 @02:21AM (#45691452)
Agreed. I feel that a lookup table can probably map all emojis possible to a uint32 (maybe optimistically uint16, [1] says there's about 4k emojis, does that include skin variations?). And you can add new ones sequentially after so IDs remain stable.

[1] https://unicode.org/emoji/charts/emoji-counts.html

Re:Show HN: I'm Building a Browser for Reverse Engineers on Wednesday October 08, 2025 @09:08PM (#45522359)
How are you gonna throw an error inside Array.prototype.push?
Re:Show HN: I'm Building a Browser for Reverse Engineers on Tuesday October 07, 2025 @04:30PM (#45508426)
You can just use Proxy to get around toString shenanigans and prevent any detection whatsoever.
Re:`std::flip` on Monday September 29, 2025 @05:04PM (#45418733)
Your python code allocates an array and inverts it every function call.

The C++ code has no overhead and is equivalent to a compile time transformation.

Re:`std::flip` on Monday September 29, 2025 @05:00PM (#45418694)
Should be using empty base optimization or [[no_unique_address]] for that implementation
Probably some sort of command and control for a botnet.

They calculate a random domain name based on the timestamp (so it’s constantly changing every X days in case it gets seized), and have some validation to make sure commands are signed (to prevent someone name squatting to control their botnet).

Re:Evolution Mail Users Easily Trackable on Wednesday July 09, 2025 @07:59PM (#44515926)
Why do we need AI for that? Can’t we just strip html tags?
Re:FFmpeg Merges WebRTC Support on Wednesday June 04, 2025 @02:15PM (#44183790)
You’re basically asking people to do your homework for you at this point…
Re:FFmpeg Merges WebRTC Support on Wednesday June 04, 2025 @12:54PM (#44182803)
You don’t need an LLM to do that. The code in there is almost complete…
Blogspam
Re:The Rise of the Japanese Toilet on Saturday May 31, 2025 @10:19PM (#44148224)
The drying is awful in my Toto, it's not enough air pressure. It'd take 20+ min to dry completely. It's nothing like those hand dryers in public bathrooms.

Older »