HNHacker News
TopNewBestAskShowJobs

dandersch

137 karma · joined March 20, 2025

submissionscomments
dandersch··on Today I Learned: Binfmt_misc
Before knowing about binfmt, I always wondered how wine is able is able to execute .exe files directly, i.e. ./prog.exe instead of wine ./prog.exe. Turns out the wine package (at least on Arch) comes with a handler for them and the Arch wiki mentions that you may want to remove it for security reasons.
dandersch··on How Airbus took off

  There was also residual suspicion of European industry among US airliners. [...]
  Against this backdrop, Airbus did everything it could to deemphasize its European heritage as it toured the US.
The European tech industry on the other hand managed to curb that suspicion by becoming a complete non-threat.
dandersch··on Recursive macros in C, demystified (once the ugly crying stops)
Related: The Preprocessor Iceberg https://jadlevesque.github.io/PPMP-Iceberg/

There you can find a recursive macro expansion implementation (as a gcc hack) that fits on a slide:

  #2""3
  
  #define PRAGMA(...) _Pragma(#__VA_ARGS__)
  #define REVIVE(m) PRAGMA(push_macro(#m))PRAGMA(pop_macro(#m))
  #define DEC(n,...) (__VA_ARGS__)
  #define FX(f,x) REVIVE(FX) f x
  #define HOW_MANY_ARGS(...) REVIVE(HOW_MANY_ARGS) \
      __VA_OPT__(+1 FX(HOW_MANY_ARGS, DEC(__VA_ARGS__)))
  
  int main () {
      printf("%i", HOW_MANY_ARGS(1,2,3,4,5)); // 5
  }
It sounds like the one in the article works for more compilers, but there doesn't seem to be a copy-pasteable example anywhere to check for myself. Also, the "Our GitHub Org" link on the site just links to github.com.
dandersch··on rlsw – Raylib software OpenGL renderer in less than 5k LOC
> I have to use the ancient OpenGL fixed function pipeline

Why do you have to and do you also use parts of the old immediate-mode API?

dandersch··on GOG has had to hire private investigators to track down IP rights holders
I agree. Game devs are better off targeting proton as a platform, but Linux purists complain if there is no native port and you don't get the brownie points for putting in the effort.
dandersch··on GOG has had to hire private investigators to track down IP rights holders
Bad QA for actual Linux games was the main reason I stopped buying on gog. Even when a game had a (gog exclusive) Linux port using their weird "game inside a shell script" approach[0], often times I would run into more problems than just using wine/proton on the Windows build.

[0] apparently using this https://icculus.org/mojosetup/

dandersch··on Dark patterns: Buying a Bahncard at Deutsche Bahn
Oh, you're right. I guess I default to the less customer-friendly interpretation when it comes to subscriptions.
dandersch··on I switched from Htmx to Datastar
> On both the checkboxes/cells examples there's adaptive view rendering so you can zoom out a fair bit.

how do you zoom out?

Also, even with your examples, wouldn't data-replace-url be a nice-to-have to auto update the url with current coordinates, e.g. ?x=123&y=456

dandersch··on Dark patterns: Buying a Bahncard at Deutsche Bahn
What other interpretation is there?
dandersch··on Laptops create systems. Phones feed algorithms. The asymmetry determines power
> I try to bring awareness of the AI generated content so others can avoid wasting their time on it as well.

Thanks. My own AI detection skills aren't always up to par, so I appreciate people calling it out.

dandersch··on Show HN: Glide, an extensible, keyboard-focused web browser
Can it provide vim keybindings and modes inside a textbox?
dandersch··on Show HN: Glide, an extensible, keyboard-focused web browser
I've run into the restrictions regarding addons.mozilla.org myself using Vimium C, but it didn't happen often enough for me to consider switching my browser over it. I think I'd rather have something that makes my entire Linux desktop environment keyboard centric at that point, like homerow seems to do for macOS.
dandersch··on Using Emacs Org-Mode With Databases: A getting-started guide
>I like Vim

doom emacs

>share calendar/todo

There is org-caldav that you can point to an org file and it syncs with a caldav server. This way you can have two-way sync from e.g. a phone's calendar to your org file.

dandersch··on I ditched Spotify and set up my own music stack
He is implying that he only downloads music from usenet that he purchased in some form somewhere else. Whether that is any less illegal, I don't know.
dandersch··on That boolean should probably be something else
It's always crazy to see languages like C being able to beat high-level languages at some ergonomics (which is usually their #1 point of pride) just because C has bitfields and they often don't.
dandersch··on The issue of anti-cheat on Linux (2024)
It can work on a vm, but for Valorant specifically it seems that detecting a vm triggers the anticheat and gets you banned. I believe this is the case for most anticheats except VAC. You can try to evade the detection, but then you just enter the same cat & mouse game as a cheater. Whether allowing/disallowing VMs actually cuts down on cheaters? I don't know.
dandersch··on Game publishers respond to Stop Killing Games claim it curtails developer choice
Having followed this initiative quite extensively from the beginning, the most baffling thing has been the underwhelming support from developers themselves, both from studios and individual devs.

You would think the very idea of years of your work being rendered unplayable in an instant would be enough incentive to signal boost any effort against this industry practice.

Instead, developer discourse has revolved around just how hard it would be to do what this is petition is asking for. You are an engineer for crying out loud. If you solved a problem but a new constraint arrives in the form of a law, you figure out how to solve the problem under the new constraint. Just because something is hard, doesn't mean it's not worth doing.

It's almost like flexing your skills and signalling your elite knowledge is more important to people than simply defending what's right.

dandersch··on Game publishers respond to Stop Killing Games claim it curtails developer choice
It's the publishers forcing their hand, to be fair. I don't think any developer who worked for years on a game is thrilled about it not being playable in the future.
dandersch··on Stop Killing Games
The current state is at the top. It says "Waiting for 3 days for a debate date".
dandersch··on Stop Killing Games
The original petition died because Parliament dissolved. This is the new one that the UK Parliament has to consider for a debate as of right now.
dandersch··on Reading RSS content is a skilled activity
>rsshub

This has been one of the key programs for me to move 90% of my "timeline" into an rss reader.

If you self-host it, you can also pass it authentication tokens to RSSify things like:

- your twitter timeline

- github notifications, issues, commits

- discord messages

- youtube subscriptions

- spotify/twitch/steam/etc.

dandersch··on Detecting if an expression is constant in C
>And I'd rather keep the library warning free instead of telling the users to switch warnings off.

Why not push/pop warnings to ignore in the library?

  _Pragma("GCC diagnostic push")
  _Pragma("GCC diagnostic ignored \"-Wshadow\"")
  int a = 1;
  {
      int a = 2;
  }
  _Pragma("GCC diagnostic pop")
dandersch··on Jellyfin as a Spotify alternative
Thanks, I'm checking it out right now and it looks really promising. It supports scrobbling (which apparently just means syncing your listening data) from various music players like navidrome & jellyfin.
dandersch··on Jellyfin as a Spotify alternative
Can you elaborate? I'm not aware of musicbrainz having any recommendations/discovery features.
dandersch··on American academic faces years in jail after charged with insulting Thai monarchy
>The 1880 queen and her daughter were drowning but no one could save them because looking at or touching the queen was forbidden by commoners. So they drowned while screaming for help.

Seems to be a myth: "There is an often repeated myth that the many witnesses to the accident did not dare to touch the queen, a capital offense—not even to save her life. However, this was not the case; the King's diary records that boatmen dived into the water, pulled the queen and her daughter from the entangling curtains, and carried them to another boat, where attendants worked in vain to resuscitate them."

Source: https://en.wikipedia.org/wiki/Sunanda_Kumariratana

dandersch··on Everyone knows all the apps on your phone
packages on f-droid list all required permissions explicitly, and the mentioned permission seems to be listed as "query all packages: Allows an app to see all installed packages.". It doesn't mark the app as having "anti-features", but you can at least make a more informed decision this way.
dandersch··on 2FA or Not 2FA
>It stretches the definition of "two-factor"

I always considered the time aspect to be the more important "factor" of TOTP in practice. E.g., if somebody managed to peek over your shoulder or film you while typing in your password. With TOTP, they have under a minute to capitalize on that information. I still have that base covered with my password manager handling the secret key, so I never saw the appeal of tying TOTP to a phone.

← PreviousPage 2 of 2