Better HN
topnewbestaskshowjobs
Log inSign up

Matheus28

1,891 karma · joined Oct 19, 2014 (12y ago) · 512 submissions

me@m28.io
Submissions

comment 4d ago · link · parent

Might wanna double check that url

comment 3w ago · link · parent

Unsigned integer overflow is well defined, though. Not something that should be sanitized. A lot of code out there relies on it.

comment 2mo ago · link · parent

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.

comment 3mo ago · link · parent

I can't wait for them to deliver the new Roadsters!!

comment 3mo ago · link · parent

I GUARANTEE that was written by AI. This type of slop is unmistakable

comment 3mo ago · link · parent

I’ll take a Qt application over the Electron garbage that we see all the time nowadays.

comment 4mo ago · link · parent

https://en.cppreference.com/cpp/io/print

comment 5mo ago · link · parent

And replace it with what?

comment 6mo ago · link · parent

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.

comment 6mo ago · link · parent

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.

comment 6mo ago · link · parent

Why? Some web apps might want to present a different interface if you’re in landscape.

comment 7mo ago · link · parent

Since C++11, data() is also required to be null terminated. Per your own source and cppreference.

comment 8mo ago · link · parent

“I quit!” Even includes a special character

comment 8mo ago · link · parent

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.

comment 8mo ago · link · parent

Except 120 Hz display I believe, which is big reason for me

comment 9mo ago · link · parent

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

comment 9mo ago · link · parent

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.

comment 9mo ago · link · parent

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

comment 10mo ago · link · parent

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.

comment 12mo ago · link · parent

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.

comment 1y ago · link · parent

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

comment 1y ago · link · parent

How are you gonna throw an error inside Array.prototype.push?

comment 1y ago · link · parent

You can just use Proxy to get around toString shenanigans and prevent any detection whatsoever.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Should be using empty base optimization or [[no_unique_address]] for that implementation

comment 1y ago · link · parent

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).

comment 1y ago · link · parent

Why do we need AI for that? Can’t we just strip html tags?

comment 1y ago · link · parent

You’re basically asking people to do your homework for you at this point…
12345
18