Recent submissions

Comment · 2 years ago
Comment · 2 years ago
Nobody mentions $_ ? It gives you the last argument used, so:

  cat filename.txt

  grep "what I want" $_
expands "$_" to "filename.txt"
Comment · 2 years ago
Comment · 2 years ago
Comment · 2 years ago
I'm not a big BASIC fan, so I've done my stuff in C, since it was a Motorola 68k on the TI-Voyage 200. I don't remember exactly how (it's 15+ year ago), but you could mark your app as a "system app" which was not removed during a factory reset.

Add a cryptic name, blank screen on start with a short timeout to return to menu when a key combination is not pressed and nobody will ever notice.

Comment · 3 years ago
Annex K is optional and the only compiler I'm aware of implementing it is MSVC (and only Microsoft wanted that in the standard), so the support for it will be nonexistent in "normal" tooling. If you need it, check if MS has something.
Comment · 3 years ago
Unethical because it can get the devs into legal trouble and the Chinese government is known to be aggressive in their choice of "solutions".
Comment · 3 years ago
Comment · 3 years ago
Apple is great at charging? No, they are not. I have a 2019 Macbook Pro with an Intel i9. When working, the i9 pretty much gets throttled down to the performance of an i5 because the thermal design is terrible, but it's a different story. But even when the CPU get throttled down, my battery gets discharged while being connected to the most performant Apple charger (96W). An no, the laptop is not faulty, I can reproduce it with a second Macbook with exactly the same specs.

And when I'm not using the original Apple charger, because I have a nice monitor with PD over USB-C, the Macbook regularly refuses to charge, not always, but every single time when I need it to charge. No other device has any issues with the monitor (tested with a Acer R13 Chromebook, Pixel 6 phone, Lenovo/Dell/Acer/Asus laptops, Lenovo Yoga Tab 13 Tablet, Steam Deck, etc.)

Edit: PD output of the monitor is also at ~96W

Comment · 3 years ago
Comment · 3 years ago
Disclaimer: IANAL

In German law you don't have to assist law enforcement in building a case against you, so you don't need to provide passwords or say anything. But you can be forced to unlock your device via biometrics (fingerprint, faceID, etc.).

I'm not sure how it works, when law enforcement calls you as witness. The law changed a few years back, so you are required to assist them, but I'm not sure to which extent.

Comment · 3 years ago
Pixel phones seem to be an exception from that. Let's hope Google doesn't kill them too.
Comment · 3 years ago
I've got a Lenovo Yoga Tab 13 (https://www.amazon.de/Lenovo-2160x1350-WideView-Tablet-PC-Sn...) for "development" purposes. It's a nice tablet with 2k screen and enough power for pretty much everything, Android 13 and the killer feature for me: a micro-HDMI input. It works like a charm with MacOs/Linux as a second screen, but you can also connect a Switch or SteamDeck, grab a controller and you can play everywhere on a 13' screen.
Comment · 3 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton