HNHacker News
TopNewBestAskShowJobs

ben_bai

642 karma · joined January 19, 2015

submissionscomments
ben_bai··on It is 2018 and this error message is a mistake from 1974
That's why most partitions have the nodev mount option. An (one of the rreasons) why there is pushback on a single big partition for everything.
ben_bai··on Lasting immunity found after recovery from Covid-19
Can't speak for Denmark. But usually those border-checks are done couple km/miles after the border. Police will just stop "random" cars/trucks and do a "routine check".

And "random" it might be as much as 50% of the passing cars.

ben_bai··on Lasting immunity found after recovery from Covid-19
> At least in my country, so far recommendations for vaccinations had been "conservative" to only vaccinate against things that seem especially risky.

Well then good news, COVID-19 is "especially risky".

ben_bai··on The word “decide” has deadly origins
Interesting. The german word entscheiden (decide) is also based on scheiden (to part) as in Scheidung (divorce) and dahinscheiden (to die slowly). And even more meanings from the same root-word.
ben_bai··on Unsettling capital letters
1 kn0w 7H12 m1gh7 83 0Dd 8U7 7H12 12 R34d48l3 70 M057 h4X0r P30pL3.
ben_bai··on SpaceX wins contract to develop spacecraft to land astronauts on the moon
This is not the site for jokes, sarcasm, snark comments etc. I learned the hard way. Only serious facts and discussions...
ben_bai··on Ask HN: Why is the Linux community struggling to implement hibernation?
ACPI implementations differ, bugs and crappy ACPI stacks. Faulty firmware is everywhere.

Also every device driver needs to handle suspend/resume for the device, which is very hard to implement without documentation. And the only way is to reverse engineer some windows driver...

ben_bai··on The case for, and against, the still-unseen Planet 9
A mirror is not reversing right and left. If you point to the right(East) your mirror image is also pointing to your right(East).
ben_bai··on Tesla orders its first 8k-ton Cybertruck casting machine
Then this is a must watch. Elon talks to Munro: https://www.youtube.com/watch?v=YAtLTLiqNwg
ben_bai··on Apple’s M1 processor and the full 128-bit integer product
That's great if you App is compute bound. "May all your Processes be compute bound." Back in the real world most of the time your Process will be io bound. I think that's the real innovation of the M1 chip.
ben_bai··on Debian Running on Rust Coreutils
It's doable if you can get OK from every single copyright owner of the source files.

LLVM did it. Switching from "University of Illinois/NCSA" to "APL 2.0".

But not without some big discussions.

ben_bai··on Debian Running on Rust Coreutils
The GPL license usage is falling, and even Linux is GPLv2 and rejects GPLv3. Some Linux code is dual licenses GPLv2 and MIT.

ApacheV2, MPL, MIT, ISC and BSD licenses are gaining in popularity.

ben_bai··on Debian Running on Rust Coreutils
Because Microsoft doesn't demand you open source your plugins. GNU software might force you to.

Corporations choosing to not use GPL software mostly don't know enough about it, to know it's ok. So they ban it outright.

ben_bai··on Honda's now selling the first production car with level 3 self-driving
It lets you watch a movie in "traffic jam mode" so when the vehicle is stopped or moving slowly because of heavy traffic. As soon as it's moving faster you are not allowed to watch a movie b.c. you need to watch the road.

Edit: it's a joke. LVL3 no way. https://www.youtube.com/watch?v=_hBwmFbpNCA

ben_bai··on Honda's now selling the first production car with level 3 self-driving
That would imply that people know aircraft-slang. Which they clearly don't.
ben_bai··on Git's list of banned C functions
strlcpy is the safe way, that is used by git.
ben_bai··on Ethereum Isn't Fun Anymore
Like sia (siacoin) which is used to pay for distributed storage. But still needs mining to keep going, which distracts from it's purpose. Rent and lend storage space. I which there where some other distributed consensus mechanism which doesn't rely on massive mining.
ben_bai··on Clearing price for supplying power to Texas grid –$31.65
Indeed. Just use any old http proxysite which offers an US proxy.
ben_bai··on Linux Memory Management FAQ
The soft way would be to set ulimit for memory to something other than unlimited. To cap the max mem limit per process
ben_bai··on Linux Memory Management FAQ
Your problem is the 2GB of swap. Get rid of it and it will just crash without 10min of slowdown (while swap disk is getting written to). </sarcasm>

Linux overcommitting memory and especially chrome/firefox beeing big-fat-memory-hogs are the problem. In fact every application which doesn't cope malloc beeing out of memory or assuming everybody has multiple gigs of memory to spare should "reevaluate".

ben_bai··on Starship – SN9 – High-Altitude Flight Test
The landing burn will relight 2 engines to slow down, then land on 1 engine.

SN8 was really close. Only a couple more seconds before the engine ate itself would do. :)

ben_bai··on Go 1.16 will make system calls through Libc on OpenBSD
go apps are and will be easy to run on OpenBSD. It's one of the languages which are really as easy as "go get githbu.com/..."

Edit: It's just the go mantra of compile once run forever doesn't really work on OpenBSD. You do have to recompile under certain conditions.

ben_bai··on Go 1.16 will make system calls through Libc on OpenBSD
that common language is called POSIX

Edit: All libc basically adhere to it. Except for some extentions that are not in POSIX but might be in glibc/musl/FreeBSDs libc or some extentions that are OpenBSD specific.

ben_bai··on Go 1.16 will make system calls through Libc on OpenBSD
I'm sorry OpenBSD also cranks libc versions whenever needed. And it depends on what changed, if it'll run on an old kernel. Since it links against a fixed version, keeping it running involves recompiling or some trickery...

So basically executable are mostly only ever good for 1 stable release. So don't throw away your source code, you gonna need it in 6 month.

ben_bai··on Ask HN: What is your “I don't care if this succeeds” project?
Nice. One can still get the weather by fingering, for example, paris@graph.no.

If you want encryption there is a way to hang it out over ssh protocol.

Which brings me to a very small project to create a quick password.

ssh -q passwd@netzbasis.de

ben_bai··on The MIT License, Line by Line
In Germany Copyright (Urheberrecht) is always with the original author and can not be sold or given to somebody else. It can be inherited.

One can sell or give permission the right to publish, duplicate, whatever (Verwertungsrecht).

Writing a book on company time and money automatically awards the company the rights to publish, make money, etc.

Writing a book in you spare time with "work related knowledge" might award the company with a claim for buying (at fair value) the publishing rights.

If you write a bestseller on company time you might also be entitled to a compensation in addition to your payrole. (But always best to have a contract beforehand)

But on the whole Germany is in the Berne convention.

ben_bai··on Heap-based buffer overflow in Sudo
The argv += optind; is a standard pattern. I have never considered argc=0 case to be possible. I need to read some more on this.

As for your second find. It already got fixed: https://marc.info/?l=openbsd-cvs&m=161176698927944&w=2

ben_bai··on NSA Wanted Backdoor Access in Linux, Says Linus Torvalds’ Father
They do update compilers now. Except for some architectures.

    $ cc -v
    OpenBSD clang version 10.0.1 
    Target: amd64-unknown-openbsd6.8
    Thread model: posix
    InstalledDir: /usr/bin
Threading is plenty fast, and the kernel has, like everything, bugs.
ben_bai··on 2021 GPS Accuracy Issue Impacting Some Garmin, Suunto, other GPS Devices
Human error: somebody sometimes did something they were not supposed to do. But they didn't know so they've done it anyways.
ben_bai··on Cosmopolitan Libc: build-once run-anywhere C library
strlcpy always NUL terminates the string (that is it's big selling point). So it copies up to n-1 bytes from src to destination. If src was bigger then destination it is truncated and n-th byte is set to NUL.
← PreviousPage 4 of 11Next →