HNHacker News
TopNewBestAskShowJobs

Matheus28

1,887 karma · joined October 19, 2014

me@m28.io
submissionscomments
Matheus28··on Airlines are charging solo passengers higher fares than groups
Sounds like you’re only fine with it because you personally benefit from it.
Matheus28··on CAPTCHAs are over (in ticketing)
How about: each user creates an account with their legal ID. Obviously unique so they can’t create multiple using the same ID. Before the sale, everyone signs up. Once the sale is started, tickets are distributed using a lottery system for the users who signed up (so refreshing like mad doesn’t give any advantage). Can only buy up to 2 tickets per person (their own and an anonymous companion). ID must be shown and would be verified at entrance.

If you wanna be even more strict: You could allow up to X companions, but they must not have signed up with their own account (so they don’t have an advantage for doing so). And they must provide their ID before the event as well and arrive as a single party.

Matheus28··on Initialization in C++ is bonkers (2017)
Yes but it’s not portable. If zero initialization were the default and you had to opt-in with [[uninitialized]] for each declaration it’d be a lot safer. Unfortunately I don’t think that will happen any time soon.
Matheus28··on Show HN: Hyvector – A fast and modern SVG editor
You might wanna look into Skia’s pathkit for a lot of path transformations it can do and you could use.
Matheus28··on Federal cuts disrupt repairs to iconic U.S. trails
Yeah, let’s make road users spend a couple days a year pouring asphalt as well. It’s only fair
Matheus28··on A 10x Faster TypeScript
I love their choice of Go because of how simple it is to generate a static executable with no dependencies (ie no dotnet runtime).
Matheus28··on Brazil justice orders ban of video platform Rumble
You could say the same about Silkroad in the US, or Google in China, or online casinos in specific states. It’s simply the law of the land. The people voted for it so that’s what it is.
Matheus28··on Brazil justice orders ban of video platform Rumble
So don’t. And don’t operate in that country. It’s that simple
Matheus28··on Why Legal Immigration Is Nearly Impossible: US Legal Immigration Rules Explained
Illegal immigrants can’t vote. Permanent residents can’t vote either. You can only vote once you acquire citizenship (which means doing the whole immigration process, then waiting several more years to be able to apply for citizenship).
Matheus28··on Skia Canvas: Browserless implementation of the HTML Canvas drawing API for node
Skia’s api is focused around using postscript-like commands such as “move to” “line to”, etc to produce vectors that it rasterizes.
Matheus28··on Skia Canvas: Browserless implementation of the HTML Canvas drawing API for node
The only similarity between the two is that they deal with images.

That library only resizes and does other basic pixel level operations.

Skia is for drawing vector graphics.

Matheus28··on Skia Canvas: Browserless implementation of the HTML Canvas drawing API for node
It's the "html canvas drawing api" that "browserless" refers to
Matheus28··on Sol-Ark manufacturer reportedly disables all Deye inverters in the US
Can’t you use ubiquiti fully locally? I haven’t tested my setup but I can access the web ui directly through the device ip
Matheus28··on A C++ Mixin System

    std::optional<T&>
Can't have optional references in C++. Use either std::reference_wrapper, or just a pointer
Matheus28··on Cash: An absurdly small jQuery alternative for modern browsers
I find this a little cleaner:

    window.$ = document.querySelectorAll.bind(document);
Since it works properly for any function no matter the number of arguments it receives
Matheus28··on Apple's M4 Max chip is the fastest single-core performer in consumer computing
Don’t worry, it’s bad on Windows too
Matheus28··on Steam games will need to disclose kernel-level anti-cheat on store pages
Seeing the warning everywhere has mostly desensitized people to it, which makes it ineffective.
Matheus28··on Steam games will need to disclose kernel-level anti-cheat on store pages
GTA V is an exception because it's so easy to cheat in. I believe it's peer-to-peer with no verification among peers that what happened should actually have happened. It's basically impossible to secure that.
Matheus28··on Boeing 787s must be reset every 51 days or 'misleading data' is shown (2020)
Even with super long leases, couldn’t they just have a larger subnet? A /8 oughta do it.

But I guess we’re talking about the same people who made the mistake in the first place…

Matheus28··on iOS 18.2 Lets EU Users Delete App Store, Safari, Messages, Camera and Photos
So how are the developers who make these products going to get paid?

When you resell a physical item it’s worn and costs time & effort to resell. Software is very different. That means no one would ever buy the software from the developer once a few copies are sold and can be passed around.

That would force SaaS even harder, since developers would need to justify it being a license.

Matheus28··on We outsmarted CSGO cheaters with IdentityLogger
It’s not that simple.

Some games aren’t able to prevent cheating. The client has the data on where the enemies on their screen are. The cheat only needs to move the mouse and click on the enemies heads. Other games like MMORPGs involve the cheat just playing the game and farming on behalf of the player.

It just becomes a cat and mouse game where the anti cheat is trying to detect something hooking into the game process while the cheat tries to hide itself.

Matheus28··on Gavin Newsom vetoes SB 1047
Could be applied to all comments made after a certain future date. That way nothing in the past is poorly formatted
Matheus28··on Ask HN: Platform for 11 year old to create video games?
Have you tried RPG Maker? It’s really fun. I remember using it as a kid. It’s focused on turn based combat.
Matheus28··on Things you should know about Windows Input, but would rather not
For shooter games, raw input is preferred. You want the same amount of mouse movement to move your camera the same amount every time.

In those type of games, you aren’t controlling a cursor, so there’s no “expected behavior”.

Matheus28··on Stolen iPhones Will Be Even More Useless from iOS 18 Onwards
Luckily Apple is not Google, and you can call their support and they can tell you what the problem is and likely fix it.
Matheus28··on FTC Pushed to Crack Down on Companies That Ruin Hardware via Software Updates
They got sued in a class action lawsuit for that, which got dragged out for ~7 years: https://en.wikipedia.org/wiki/OtherOS

And in the end users who had used that feature and lost it got... $10.07

Matheus28··on Is My Blue Your Blue?
Yes. I’d assume it’d be slightly different on different monitors
Matheus28··on Is My Blue Your Blue?
I did it twice and landed on exactly 168 each time. Can’t wait to show this to friends and argue.
Matheus28··on Noexcept affects libstdc++’s unordered_set
A better solution than what rmholt said is to have a static method that returns std::optional<T>. This way if T exists, it's valid.

Later you get into another whole debate about movable types and what T should be once it's moved from (for example if you want to turn that std::optional<T> into a std::shared_ptr<T>), if it only has non-trivial constructors. An idea that just popped into my head would be to have a T constructor from std:optional<T>&&, which moves from it and resets the optional. But then it's not a real move constructor. With move constructors, a lot of times you just have to accept they'll have to leave the other object in some sort of empty or invalid state.

Matheus28··on Enum class improvements for C++17, C++20 and C++23
You cannot have a null reference unless you invoke undefined behavior first.
← PreviousPage 2 of 16Next →