HNHacker News
TopNewBestAskShowJobs

ben_bai

642 karma · joined January 19, 2015

submissionscomments
ben_bai··on OpenBSD now enforcing no invalid NUL characters in shell scripts
Funny enough filenames are just byte sequences. So almost anything goes.

There was just some patch that added '/' protection, because that's the only character that's not allowed in filenames.

https://github.com/openbsd/src/commit/46f7109a9e03df89b66ada...

ben_bai··on Corporate Secrets Were Left Exposed. This Guy Found Them All

    Recent research showed the increase in the number of programmers twofold every year all over the world.
That means 75% of Programmers (SW Developers) have less then 2 years of experience!

We are still a very inexperienced and unregulated industry.

ben_bai··on I'm not a fan of strlcpy(3)
by convention: if it's not NUL terminated, it's not a c-string.
ben_bai··on I'm not a fan of strlcpy(3)
that would be wcslcpy(3)
ben_bai··on I'm not a fan of strlcpy(3)
i guess that's what spikes interest. although strlcpy was first introduced in openbsd 2.4, 26 years ago! back then as a drop in replacement for strcpy.

so yeah, good things need time to adopt, no wonder it's not up-to-date tech, lol.

and because of NIH-syndrome we now got lot's of strXcpy functions to choose from.

ben_bai··on History of the Paper Clip (2016)
it's like 6h when you know what you are doing :-)
ben_bai··on History of the Paper Clip (2016)
Love it, play this once in a while. 6 hours of fun.
ben_bai··on When you're driving you're re-enacting an ancient space combat SIM
yeah it's other peoples mouse courser, as they browse the site.
ben_bai··on In-Car Hydration and Urination Systems for Race Car Drivers
It's one of those condom-style things.
ben_bai··on Randar: A Minecraft exploit that uses LLL lattice reduction to crack server RNG
Yeah the Minecraft and MC anarchy community is insane.

If you found this amazing, take a look at this, it'll blow your mind.

https://www.youtube.com/watch?v=ea6py9q46QU and https://www.youtube.com/watch?v=GaRurhiK-Lk

ben_bai··on Giant 'sand battery' holds a week's heat for a whole town
In short: Sand for industry scale heat storage, water for private heating storage.

Using a heat pump will increase the yield. Usable temp range from 95C water all the way to 0C ice in theory (latent heat).

And a modern isolated home helps, but seasonal heat water storage is basically a big tank, with a house build around it.

https://www.energie-experten.ch/de/wissen/detail/waermespeic...

ben_bai··on Giant 'sand battery' holds a week's heat for a whole town
It's more effective volume wise. I did the math, some time ago here are the rough numbers.

Sand has way less heat capacity then water per kg (about half).

Water can be heated to 95C with standard unpressurized vessel. Sand in this application is heated to 600C.

Sand is denser then water (kg/m3).

For the same heat energy stored this comes out to about 2.5x more volume of water(95C) compared to sand(600C).

Water and Sand are both dirt-cheap.

Hot water can be managed with standard plumbing equipment.

Sand needs some high temperature piping (hot air to water heat-exchanger, resistive heat tho heat up the sand).

How well both contain the heat is primarily dependent on the isolation. Which favors the smaller footprint of sand, but needs to isolate a higher temperature difference...

ben_bai··on An extreme ice-age climate 700M years ago
It is also a fertilizer, providing Carbon and Minerals to the farmland.
ben_bai··on "Niksen": The art of doing nothing
I would add that it's "doing nothing important". Like when someone asks: What did you do today? And the german answer is just "Nix" ("Nichts", aka. nothing important)
ben_bai··on The Case for Rust in the base system
Just like C, COBOL will always be with us.

> According to research, up to 850 billion lines of COBOL code are currently running in nearly 30,000 organizations, typically in critical production environments. 90 percent of Fortune 500 companies rely on it. Never has there been this much COBOL in circulation and the volume is only likely to increase for the foreseeable future.

https://www.chrly.pt/en/2023/06/14/cobol-the-immortal-langua...

ben_bai··on OpenBSD KDE Plasma Desktop
HAHA, Xorg will always be with us. GNOME and KDE will maybe do something like that, but that's no problem.
ben_bai··on The Erlang Ecosystem (2018) [video]
And Erlang the Movie II

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

ben_bai··on Why Does My 'Efficient' Dishwasher Take a Zillion Minutes for a Load?
Mandatory xkcd: https://xkcd.com/2724/

and Tech Connections Videos: https://www.youtube.com/@TechnologyConnections/search?query=...

ben_bai··on Starship Integrated Flight Test 2 at 7 Am Central Time
I think the engines worked perfectly. The booster broke up in the middle, at least it looks like it on the everyday astronaut feed.
ben_bai··on Starship Integrated Flight Test 2 at 7 Am Central Time
Gathering data and making orbit. Plan was to return the booster near the launchsite and make a water splash down. The ship should make a single suborbital flight with orbit velocity to simulate reentry and should have splashed down near hawaii.
ben_bai··on Starship Integrated Flight Test 2 at 7 Am Central Time
There was a estimated 1/16 failure possibility for the first couple flights. Lots of edge-cases where: If XYZ happens, you die.

But we were in a hurry, so it was just part of the project.

ben_bai··on SpaceX Loses Starship Spaceraft During Test Flight
Apollo was a one off government program, which was unrivaled for 50 years. And never even tried since then.

You have to understand this is a private business doing it on a budget and fast. Yes, NASA is involved...

ben_bai··on To free the Baltic grid, old technology is new again
When you have multiple cycles per day, the higher price of flywheels trumps over the limited but cheaper battery lifespan. Batteries degrade with charge cycles.
ben_bai··on Starlink plans to launch texting service in 2024, voice/data in 2025
Since the announcement mentions "existing LTE phones" it seems to be no problem, power wise.

So, it all depends on the satellites antenna.

ben_bai··on OpenBSD: Removing syscall(2) from libc and kernel
Then don't run a OS with a kernel written in C. That would rule out Windows, Mac, Linux and *BSD.
ben_bai··on SpaceX Starship Super Heavy Project at the Boca Chica Launch Site
And now they have to repair the launchsite, which they already did. And add water deluge, which they already did.

The upside was they got lots of data to improve the next rocket, which they already did. It's ready to go again, just waiting for FAA approval.

ben_bai··on Early Europeans ate seaweed for thousands of years
Interesting question. They are called Sea Vegetables. But they do need seawater. Now seawater aquariums are a thing so it should be manageable to "farm" those.
ben_bai··on HP fails to derail claims that it bricks scanners on printers when ink runs low
Or printers that would accept refilled cartridges, good times.
ben_bai··on Toyota to triple EV output as it chases Tesla, BYD
Also, 30% of new car purchases in 2023 were EVs (in Germany)
ben_bai··on Toyota to triple EV output as it chases Tesla, BYD
> They have low labor cost, insanely good infrastructure and logistics, cheap energy and weak labor rights. You're not gonna outcompete them on manufacturing.

Sorry to bust your bubble but that has slowly been changing. Mexico and India is the new China, or at least they will be very soon.

For years, wages in China were much lower than Mexico's. Now, Mexico's manufacturing labor costs are 20% lower than in China. When adjusted for worker productivity, the gap is even wider. And India is getting there, too.

Page 1 of 11Next →