News for hackers. Stuff that matters.

ben_bai

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...

Re:Corporate Secrets Were Left Exposed. This Guy Found Them All on Wednesday August 14, 2024 @02:44AM (#41243233)

    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.

Re:I'm Not a Fan of Strlcpy(3) on Monday July 15, 2024 @07:27PM (#40972379)
by convention: if it's not NUL terminated, it's not a c-string.
Re:I'm Not a Fan of Strlcpy(3) on Monday July 15, 2024 @07:23PM (#40972364)
that would be wcslcpy(3)
Re:I'm Not a Fan of Strlcpy(3) on Monday July 15, 2024 @03:57PM (#40970975)
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.

Re:History of the Paper Clip on Wednesday June 05, 2024 @02:21PM (#40588443)
it's like 6h when you know what you are doing :-)
Re:History of the Paper Clip on Wednesday June 05, 2024 @02:20PM (#40588429)
Love it, play this once in a while. 6 hours of fun.
yeah it's other peoples mouse courser, as they browse the site.
It's one of those condom-style things.
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

Re:Giant 'sand battery' holds a week's heat for a whole town on Thursday March 14, 2024 @08:49AM (#39703252)
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...

Re:Giant 'sand battery' holds a week's heat for a whole town on Wednesday March 13, 2024 @08:18PM (#39699182)
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...

Re:What Turned Earth into a Giant Snowball 700M Years Ago? on Friday February 09, 2024 @01:03PM (#39318098)
It is also a fertilizer, providing Carbon and Minerals to the farmland.
Re:"Niksen". The art of doing nothing on Friday February 09, 2024 @03:25AM (#39312675)
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)
Re:The Case for Rust in the base system on Sunday January 21, 2024 @04:27PM (#39083248)
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...

Re:OpenBSD KDE Plasma Desktop on Tuesday January 09, 2024 @06:16AM (#38924799)
HAHA, Xorg will always be with us. GNOME and KDE will maybe do something like that, but that's no problem.
Re:The Erlang Ecosystem [video] on Sunday January 07, 2024 @02:48PM (#38904500)
Re:Starship Integrated Flight Test 2 at 7 Am Central Time on Saturday November 18, 2023 @04:03PM (#38324405)
I think the engines worked perfectly. The booster broke up in the middle, at least it looks like it on the everyday astronaut feed.
Re:Starship Integrated Flight Test 2 at 7 Am Central Time on Saturday November 18, 2023 @04:00PM (#38324372)
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.
Re:Starship Integrated Flight Test 2 at 7 Am Central Time on Saturday November 18, 2023 @03:55PM (#38324320)
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.

Re:SpaceX Loses Starship Spaceraft During Test Flight on Saturday November 18, 2023 @09:59AM (#38320328)
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...

Re:To free the Baltic grid, old technology is new again on Monday November 13, 2023 @12:22PM (#38252653)
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.
Since the announcement mentions "existing LTE phones" it seems to be no problem, power wise.

So, it all depends on the satellites antenna.

Re:OpenBSD: Removing syscall(2) from libc and kernel on Friday October 27, 2023 @06:07PM (#38044615)
Then don't run a OS with a kernel written in C. That would rule out Windows, Mac, Linux and *BSD.
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.

Re:Early Europeans Ate Seaweed for Thousands of Years on Thursday October 19, 2023 @02:48PM (#37946915)
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.
Or printers that would accept refilled cartridges, good times.
Re:Toyota to triple EV output as it chases Tesla, BYD on Tuesday September 26, 2023 @04:58AM (#37656400)
Also, 30% of new car purchases in 2023 were EVs (in Germany)
Re:Toyota to triple EV output as it chases Tesla, BYD on Tuesday September 26, 2023 @04:56AM (#37656382)
> 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.

Older ยป