Readit News logoReadit News
ben_bai commented on OpenBSD now enforcing no invalid NUL characters in shell scripts   undeadly.org/cgi?action=a... · Posted by u/CTOSian
enriquto · a year ago
Great. Now forbid spaces in filenames.
ben_bai · a year ago
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 commented on Corporate Secrets Were Left Exposed. This Guy Found Them All   wired.com/story/secret-hu... · Posted by u/wglb
mmooss · 2 years ago
The scale of incompetence in our industry should be embarassing. You can also see it in the public statements made by some SV 'leaders' - what other industry has prominent people making fools of themselves like that? Is it a surprise that their products are poorly made or often scams? When people tell you who they are, believe them!

If you want to see something scary, look at the fake story Demirkapi managed to post, and note the domain name - actually nytimes.com! (IMPORTANT: The story is not real!)

https://web.archive.org/web/20230330043732/https://intl.prd....

Again, that's not real. But if the hacker tried, lots of people could react long before they realize it.

ben_bai · 2 years ago

    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 commented on I'm not a fan of strlcpy(3)   nrk.neocities.org/article... · Posted by u/signa11
hifromwork · 2 years ago
Well, C doesn't really have strings, just pointers. Calling them "strings" is just an abstraction for us. They don't even have to be null-terminated (even though by convention they often are)!

And this is precisely what I want, in some cases. I use C when I need a low-level byte wrangling code that tightly interfaces with the operating system, or when I can't afford to allocate memory at will (like all effortless string-handling languages do under the hood), or when I don't want any runtime and need my code to behave like a shellcode, basically, or...

I guess C is still used because people find it useful. No need to be a fan of it.

ben_bai · 2 years ago
by convention: if it's not NUL terminated, it's not a c-string.
ben_bai commented on I'm not a fan of strlcpy(3)   nrk.neocities.org/article... · Posted by u/signa11
aflag · 2 years ago
Do the str* functions handle Unicode any better though? I feel like you'd want a different library for that
ben_bai · 2 years ago
that would be wcslcpy(3)
ben_bai commented on I'm not a fan of strlcpy(3)   nrk.neocities.org/article... · Posted by u/signa11
commandersaki · 2 years ago
strlcpy() is now part of POSIX: https://sortix.org/blog/posix-2024/.
ben_bai · 2 years ago
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 commented on History of the Paper Clip (2016)   officemuseum.com/paper_cl... · Posted by u/wizardforhire
mlyle · 2 years ago
I assign it as homework in my microeconomics class.
ben_bai · 2 years ago
it's like 6h when you know what you are doing :-)
ben_bai commented on History of the Paper Clip (2016)   officemuseum.com/paper_cl... · Posted by u/wizardforhire
TechPlasma · 2 years ago
ben_bai · 2 years ago
Love it, play this once in a while. 6 hours of fun.
ben_bai commented on When you're driving you're re-enacting an ancient space combat SIM   interconnected.org/home/2... · Posted by u/figbert
throwaheyy · 2 years ago
Weird, highly distracting arrow things darting around the page. I gave up trying to read it after a few paragraphs.
ben_bai · 2 years ago
yeah it's other peoples mouse courser, as they browse the site.
ben_bai commented on In-Car Hydration and Urination Systems for Race Car Drivers   core77.com/posts/132061/I... · Posted by u/surprisetalk
tetris11 · 2 years ago
I can't imagine the sheer pain of having a car crash, whilst being cathetered.
ben_bai · 2 years ago
It's one of those condom-style things.
ben_bai commented on Randar: A Minecraft exploit that uses LLL lattice reduction to crack server RNG   github.com/spawnmason/ran... · Posted by u/leijurv
lxe · 2 years ago
The video on this is amazing: https://www.youtube.com/watch?v=maMpMOnIJDE. I had no idea how sophisticated the community was.
ben_bai · 2 years ago
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

u/ben_bai

KarmaCake day642January 19, 2015View Original