HNHacker News
TopNewBestAskShowJobs

ncake

70 karma · joined November 6, 2021

submissionscomments
ncake··on YouTube is taking down videos on performing nonstandard Windows 11 installs
or https://photopea.com
ncake··on Piano Keys
Same. I recently tried to find a MIDI keyboard like that for sale and got nothing. Apparently this is what it's called:

https://en.m.wikipedia.org/wiki/Dodeka_keyboard

ncake··on The Old Computer Challenge
I've been using Raspberry Pi 400 as the main desktop for a few months. The idea was that I'd be more productive without youtube and games. That's not as extreme as the OP setup, but the slowdown and freezes unfortunately outweigh the focus benefits.
ncake··on Hutter Prize
"The organizers believe that text compression and AI are equivalent problems."

Are they? Not only interfacing with human-readable media is half of the story, optimizing for size isn't the same as optimizing for context.

ncake··on Cake – A C23 compiler frond end written from scratch in C
Cool. I wish CMake included an option to use a custom preprocessor like this.
ncake··on Asus put out like 40 models of a laptop called the “Eee PC” (2021)
Still using one as a daily driver to write code and read articles on. (1gb ram, 1.6ghz, Win 7)

It's painfully slow at browsing some websites, but runs VSCode and all of the dev tools just fine. There's some weird pleasure in knowing that if your stuff runs on that, it will run anywhere.

ncake··on Nearly half of Mariupol has suffered grave damage
Those Russians who are on your side are very sorry for your tragedy, but don't feel responsible for being born into a dictatorship. And those who aren't, are vocally unashamed for other reasons.
ncake··on Column – a chartered bank for developers
If this is a US-only service, it should say so on the website somewhere.

I've also had this experience with e.g. Betterment and Wealthfront. The only way to find out they're US-only is halfway through sign up process, not even anywhere in FAQ's.

ncake··on Visual Studio Code is randomly erasing included header files with latest update
I've had the opposite experience, and everything just works once you install the suggested extensions.

For C++ specifically you just need to create a .vscode/c_cpp_properties.json file to tell the intellisense where to find include folders, which defines to assume, and such.

ncake··on MySQL now shows its thread names at OS level for better troubleshooting
This.

"you've got a syntax error at around here: [the entire query]. go consult the manual or something idk"

ncake··on C Package Manager
I use CMake's FetchContent. It's probably the most universal solution for this out there.
ncake··on Ask HN: Best alternatives to Google Analytics in 2021?
I use a script I wrote in an hour, which parses nginx access.log and prints last visitors to a "_stats.txt" file.

It's 90% requests made by bots, so I didn't bother making a UI.

ncake··on EnTT: Gaming meets modern C++ 3.9 (ECS library and much more)
I'll try to explain what I mean. Suppose you want an in game character to change the displayed weapon in their inventory.

Stateful way: your Inventory Manager component iterates through its private array of item entities to mark their model components as shown or hidden, then calls the dependency injected character's avatar component to update its animation state.

Stateless way: you flip an integer in character's struct, and the rendering function does something different.

ncake··on EnTT: Gaming meets modern C++ 3.9 (ECS library and much more)
Unpopular opinion, but I personally think ECS has no place in C/C++ game dev. Every supposed advantage is either curbed by limitations of the language (e.g. serialization) or can be implemented more logically in a stateless manner.
ncake··on raylib v4.0.0 Released
It is a very good library, especially for 2d games. ..Just not 100% production-ready out of the box. Some features are lacking (e.g. no stereo audio) or oddly implemented. (e.g. rlgl primitive-dependent texturing)
ncake··on Safari Ruined My Tuesday
In my brief experience in front-end, I've encountered weird Safari bugs on every single project.

In one case the code failed because the form object there doesn't implement the method to validate and submit. In another, it wasn't sending a form field if it was styled with "display: none;" (had to change to "left: -9999px;"). In another, playing a non-muted video would error out some of the time, if clicking an element wasn't recognized as a user event. In yet another, the mobile version refused to center text inside <button> no matter what. And so on.