HNHacker News
TopNewBestAskShowJobs

ben_bai

642 karma · joined January 19, 2015

submissionscomments
ben_bai··on The art of sending an email – Why you should care to learn it
It's like those e-mails. If it starts with "make 600 USD a week with this tool..." I don't read I delete.
ben_bai··on Volocopter 2x – Safer Alternative to a Personal Helicopter
It's like a drone with GPS. It stays where it is unless you touch the joystick.

https://www.youtube.com/watch?v=OazFiIhwAEs

ben_bai··on Volocopter 2x – Safer Alternative to a Personal Helicopter
The 2X predecessor is called VC200 and reaches 70km/h and had a flying time of around 20 minutes.
ben_bai··on Volocopter 2x – Safer Alternative to a Personal Helicopter
range: ~30km

battery: ?

flight time: ~20min

max. load: 2 persons... 150kg?

weight: under 450kg fully loaded

price: ~300k EUR

permission needed: difficult... no airclass yet for those things except. "ultra light"

Those figures are from a presentation of the VC200 and might not be exactly right for the 2X.

ben_bai··on APFS does not normalize Unicode filenames
HFS+ can be configured at creation time to be case sensitive. I did so a while back. Worked perfectly except for one application which could not find it's files. So i had to create a container and Format it case in sensitive and intall the APP there...
ben_bai··on German traffic light stays red for 28 years (2015)
Until an attacker comes and "parks" in front of the red light blocking all the traffic. There is no legal obligation to keep moving.
ben_bai··on German traffic light stays red for 28 years (2015)
There is a denial-of-service attack possible.

Red light with green arrow means you may turn right if you feel like it or wait for green. Just park your car in front of the traffic light... it'll be fine.

ben_bai··on SpaceX Dragon Rendezvous and Docking Waved Off for Today
> I don't think the Shuttle landing was particularly problematic. They had a lot of control over the glideslope and lots and lots of runway to work with. I'm sure it's a lot more challenging than the sailplanes I fly, but I wouldn't have any major safety concerns flying on the Shuttle during landing.

Well the shuttle is a big heavy glider with little wings. One try, and down from 30,000 feet to ground in 3 minutes. Not problematic, but very special.

https://www.youtube.com/watch?v=Jb4prVsXkZU

ben_bai··on High-Memory Instances and $5 Linodes
Mostly Strato and Hetzner.
ben_bai··on High-Memory Instances and $5 Linodes
Yes a dedicated server. Mostly german servers from Hetzner and Strato.

https://www.hetzner.de/us/hosting/produkte_rootserver/ex51ss...

ben_bai··on High-Memory Instances and $5 Linodes
I don't get the whole VPS thing anyway. 5$ for playing around is great but anything that costs more is just not worth it.

60$/month for 16GB, 1CPU, 20GB disk for VPS... in comparison a root server with real remote console access, 16GB, 4 core AMD, 4TB disks, unlimited traffic costs me 30EUR/month (30$/month).

Or for 60EUR/month (60$) I could get a root server with 64GB Ram, 2x500GB SSD, i7-6700, 30TB traffic.

ben_bai··on Galileo satellites experiencing multiple clock failures
GPS is a military project controlled by the US. With just a switch of a button the civilian receivers will be practical worthless for navigation. They can't do that on Galileo or GLONASS. I imagine Russia can dial down GLONASS precision for civil use cases, too.

At least Galileo is a competitor, and the political/military discourse about it is still ongoing.

https://en.wikipedia.org/wiki/Galileo_(satellite_navigation)...

ben_bai··on The lost letters of the English alphabet
I would argue that w is a ligature of double-v but since the latin v was pronounced like todays u, its pronounced double-u.

Works very well in english and other European languages.

Uuindouu... One cant help but make a w sound.

Vvindovv... Not so much.

ben_bai··on The lost letters of the English alphabet
In ye olden days oft UNIX, users home directorys lived in /usr/username.
ben_bai··on Why numbering should start at zero (1982)
I just think of it as offsets. Array X at offset 0, which is the first entry.
ben_bai··on Gogland – Capable and Ergonomic Go IDE
Not for long, if this catches on. There was a free C plugin, now you have to pay for CLion.
ben_bai··on BSD libc contains a buffer overflow vulnerability
Oh indeed. Static it is...
ben_bai··on BSD libc contains a buffer overflow vulnerability
4.3BSD-Reno, basically unchanged since 1990 until yesterday.

http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.3BSD-Reno/src...

Personally I'm more worried about the function returning obuf, a pointer to a stack variable in link_ntoa.

ben_bai··on Why does calloc exist?
reallocarray is a very thin layer around realloc. No surprises there. Simple find and replace to bring overflow checking into your code.

reallocarr changes the semantics. Equally easy in new pieces of code and a little harder when converting existing code.

ben_bai··on Why does calloc exist?
> Plus, if we wanted to, we could certainly write our own wrapper for malloc that took two arguments and multiplied them together with overflow checking. And in fact if we want an overflow-safe version of realloc, or if we don't want the memory to be zero-initialized, then... we still have to do that.

Like reallocarray(3) does?

    buf = malloc(x * y);
    // becomes
    buf = reallocarray(NULL, x, y);
    
    newbuf = realloc(buf, (x * y));
    // becomes
    newbuf = reallocarray(buf, x, y);
ben_bai··on Top OpenBSD Donors
Well, there is a lot of code from *BSD in Android, for example libc.

OpenBSD: https://github.com/android/platform_bionic/search?q=openbsd

ben_bai··on Top OpenBSD Donors
$280,000 !
ben_bai··on The Insecurity of OpenBSD (2010)
If only there were a command like "pkg_add sudo".
ben_bai··on A Magnetized Needle and a Steady Hand
Congrats: Your shell just spawned another shell to run an empty script.

Also:

    # rm /bin/true && true && echo success
    success
ben_bai··on A Magnetized Needle and a Steady Hand
The real kicker is this comment in GNU true(1).

    /* Note true(1) will return EXIT_FAILURE in the edge case where writes fail with GNU specific options.  */
If you can't program a bug free true(1), please stop with whatever you think you are doing.
ben_bai··on Malloc Challenge
I would not do that. Userspace Apps have way to many ways to screw up memory managment already. Allowing them to

    buf=malloc(128);
    free(buf, 256);
seems dangerous, if free can't check the size.

But kernels sometimes do just that ( free(ptr, size) ), for performance reasons and because "kernel writers know what they are doing".

ben_bai··on Dear Google, Apple, Mozilla, and MS: Please End Auto-Playing Media in Browsers
Chromium is the Browser you want. You can load a bunch of tabs an it only starts autoplay when you finally switch to the tab you want to watch.
ben_bai··on OpenSSL Security Advisory
But it can overflow, which will result in a different value that the programmer might expect, which can give an attacker a nice "information leak" or worse. This could be a security bug!
ben_bai··on Command-line tools can be faster than a Hadoop cluster (2014)
This seems to be the Manta [0] way. Letting you run your beloved Unix command pipeline on your Object Store files.

[0] https://www.joyent.com/manta But the youtube videos with Bryan Cantrill are even better at explaining.

ben_bai··on How to Generate Secure Random Numbers in Various Programming Languages
Not on OpenBSD. The bootloader supplies entropy, so that basically as soon as the kernel starts booting, random numbers are available.

Edit: /dev/random on OpenBSD also does not block.

← PreviousPage 8 of 11Next →