Readit News logoReadit News
danadam commented on The Therac-25 Incident (2021)   thedailywtf.com/articles/... · Posted by u/lemper
napolux · 14 hours ago
The most deadly bug in history. If you know any other deadly bug, please share! I love these stories!
danadam · 13 hours ago
Some Google Pixel phones couldn't dial emergency number (still can't?). I don't know if there were any deadly consequences of that.

https://www.androidauthority.com/psa-google-pixel-911-emerge...

danadam commented on Streaming services are driving viewers back to piracy   theguardian.com/film/2025... · Posted by u/nemoniac
lucideer · 13 days ago
Compression is an entirely different thing.

Compression isn't just gain adjustment - it's a specific type of audio processing that increases perceived "gain" (loudness) of the entire source audio by "compressing" the levels of loud frequencies & increasing the levels of quiet frequencies.

Normalization increases gain of all frequencies at any given point-in-time while reducing gain of all frequencies at other points in time. It doesn't reduce dynamic range.

danadam · 13 days ago
> Normalization increases gain of all frequencies at any given point-in-time while reducing gain of all frequencies at other points in time.

When you do that then the difference between the loudest and the quietest part of the audio gets reduced. That's dynamic range reduction.

danadam commented on Too Many Open Files   mattrighetti.com/2025/06/... · Posted by u/furkansahin
xorvoid · 3 months ago
The real fun thing is when the same application is using “select()” and then somewhere else you open like 5000 files. Then you start getting weird crashes and eventually trace it down to the select bitset having a hardcoded max of 4096 entries and no bounds checking! Fun fun fun.
danadam · 3 months ago
> trace it down to the select bitset having a hardcoded max of 4096

Did it change? Last time I checked it was 1024 (though it was long time ago).

> and no bounds checking!

_FORTIFY_SOURCE is not set? When I try to pass 1024 to FD_SET and FD_CLR on my (very old) machine I immediately get:

  *** buffer overflow detected ***: ./a.out terminated
  Aborted
(ok, with -O1 and higher)

danadam commented on Show HN: I wrote a modern Command Line Handbook   commandline.stribny.name/... · Posted by u/petr25102018
petr25102018 · 3 months ago
Thanks for the feedback. I was trying to make it work on mobile but maybe I didn't test it well in the end.

As for a sample, I will go and try to make something now. Thanks.

Edit: Example pages here: https://drive.google.com/file/d/1PkUcLv83Ib6nKYF88n3OBqeeVff...

danadam · 3 months ago
page 112

> if [[ "${1-}" =~ ^-*h(elp)?$ ]]; then

> ... is an option that starts with one or multiple - characters ...

"one or multiple" is + not *. The regex above will also match "h" and "help" without - character(s).

danadam commented on Compiler Explorer and the promise of URLs that last forever   xania.org/202505/compiler... · Posted by u/anarazel
layer8 · 3 months ago
It’s more a claimer than a disclaimer. ;)
danadam · 3 months ago
I'd probably call it "disclosure".
danadam commented on As a developer, my most important tools are a pen and a notebook   hamatti.org/posts/as-a-de... · Posted by u/ingve
lcnPylGDnU4H9OF · 3 months ago
> I know there are some

Do you mind providing examples? I’m not sure what I would search to find that and I’m interested in the idea.

danadam · 3 months ago
I've never used it but sounds like https://rr-project.org/
danadam commented on The scientific “unit” we call the decibel   lcamtuf.substack.com/p/de... · Posted by u/Ariarule
ajuc · 3 months ago
> -3db is half loudness, +3dB is double

It isn't tho. It's close but not exactly. And there's nothing about -3 behing half that makes sense except for familiarity (and it's not even wide-spread familiarity - most people wouldn't know how much louder +3dB is).

It's just an unnecesarilly confusing definition that stuck for historic reasons.

danadam · 3 months ago
> It isn't tho. It's close but not exactly.

It isn't tho :-). It's not close to double loudness. It's double power, which is 1.41 higher sound pressure, which is only slightly louder.

danadam commented on The scientific “unit” we call the decibel   lcamtuf.substack.com/p/de... · Posted by u/Ariarule
layer8 · 3 months ago
Tangential question: Are there any sound meters that can actually measure down to 0 dB? The best I’ve seen specify 20 dB, which to me is still very audible.

(Note that, as the article mentions, 0 dB doesn’t mean “zero sound pressure”, but just “threshold of hearing”.)

danadam · 3 months ago
Some laboratory-grade equipment probably.

> 0 dB doesn’t mean “zero sound pressure”

From the decibel definition, zero of anything is -∞ in dB_suffix scale.

danadam commented on The Awful German Language (1880)   faculty.georgetown.edu/jo... · Posted by u/nalinidash
bradley13 · 3 months ago
I can certainly confirm that learning German grammar as an adult is...challenging. Even though I am now fluent, learning as an adult means that you will always make mistakes on the gender of nouns. There are effectively four genders (male/neuter/female/plural), plus four cases (nominative/accusative/dative/genetive), so you have a 4x4 table giving you a choice of 16 articles that can appear in from of a noun. Only, the 16 articles are not unique: the table contains lots of duplicates in unexpected places.

Of course, most Western languages have gendered nouns - English is pretty unique in that respect. That likely comes from English being born as a pidgin of French and German.

Verbs in German are valuable things. You collect them, hold on to them as long as you can, and then - at the end of the sentence - they all come tumbling out. The order of the nouns at the end of the sentence differs by region. In purest German, they come out in reverse order, giving you a nice, context-free grammar. In Swiss dialects, they come out in the order they were conceived, meaning that the grammar is technically context sensitive. In Austrian dialects, the order can be a mix.

Of course, every language has its quirks. French, for example, puts extra letters on the ends of words that you are not supposed to pronounce. Well, unless the right two words are next to each other, in which case, you pronounce the letters after all.

English, meanwhile, gives learners fits, because the pronunciation has nothing whatsoever to do with spelling. Consider the letters "gh" in this sentence (thanks ChatGPT): "Though the tough man gave a sigh and a laugh at the ghost, he had a hiccough and coughed through the night by the slough, hoping to get enough rest."

danadam · 3 months ago
> English, meanwhile, gives learners fits, because the pronunciation has nothing whatsoever to do with spelling. Consider ...

the poem https://en.wikipedia.org/wiki/The_Chaos :)

danadam commented on Why did Windows 7 log on slower for months if you had a solid color background?   devblogs.microsoft.com/ol... · Posted by u/zdw
danadam · 4 months ago
I use a picture with a solid color because with pictures the text under the icons is white with a black shadow. The "Solid color" option (instead of "Picture") chooses either white or black font color and there is no shadow and I don't like it.

u/danadam

KarmaCake day56January 19, 2010View Original