HNHacker News
TopNewBestAskShowJobs

danadam

71 karma · joined January 19, 2010

submissionscomments
danadam··on IP.network: Check IP Address
s/Disclaimer/Disclosure/

:)

danadam··on PyPy has been working for me for several years now
> I haven't seen it around for a long time,

Spotify is using it in their standalone clients.

danadam··on We do not prefer chords to be perfectly in mathematical ratios: study
> The first looks a bit like a sawtooth wave, the second is more like a chain of pulses. Wouldn't that sound different?

Not to me: https://mega.nz/folder/o5RWBLZZ#ihg7MAQG5qZjEmMuySwpxA

danadam··on Sampling: What Nyquist didn't say, and what to do about it (2018) [pdf]
> even just a volume change by the listener if it's applied digitally in the 16 bit realm ...

I think that "if" is doing a heavy work here.

danadam··on Qalculate – A multi-purpose cross-platform desktop calculator
"bc -l" runs it with scale set to 20. Also preloads some math functions.
danadam··on Banana Equivalent Dose
> A micromort (from micro- and mortality) is a unit of risk defined as a one-in-a-million chance of death.

Ah... so it happens nine times out of ten.

> The micromort concept was introduced by Ronald A. Howard

I was genuinely surprised that not by Terry Pratchett.

danadam··on Audio CD ripping – optical drive accuracy listing
Here are some examples to listen to:

https://audiophilestyle.com/forums/topic/61633-intel-cpus-do...

danadam··on Play audio only on YouTube and save bandwidth
The youtube player keeps using codec 251 for audio (opus, about 120 kbps) until quality 240p. For 144p it switches to codec 250 (opus, about 60 kbps). At least here, on firefox on linux.
danadam··on Is it safe to use __secret_internals_do_not_use_or_you_will_be_fired?
Could also be Lua.
danadam··on Grep flags – the good stuff
With sed instead of grep, and probably not much better, but in a single command:

  cat hello | sed -n '/foo/{ /bar/{ /baz/ p }}'
danadam··on Effective Code Browsing
> I just did a quick benchmark searching for `kthreadd` using grep and ag and it's magnitudes faster than grep.

I'd be careful with that. You may have just tested the awesomeness of linux caches :-)

Yes, it "looks" magnitudes faster:

  ]$ time grep -Rsn "kthreadd"
  ...
  real    0m26.895s
  user    0m3.131s
  sys     0m3.151s

  ]$ time ag "kthreadd"
  ...
  real    0m0.906s
  user    0m1.930s
  sys     0m1.186s

  ]$ time rg "kthreadd"
  ...
  real    0m0.860s
  user    0m1.756s
  sys     0m1.123s
But wait, somehow grep got magnitutes faster too:

  ]$ time grep -Rsn "kthreadd"
  ...
  real    0m2.961s
  user    0m1.979s
  sys     0m0.959s
And we can make both ag and rg slower:

  ]# echo 1 > /proc/sys/vm/drop_caches
  ]$ time ag "kthreadd"
  ...
  real    0m17.761s
  user    0m2.371s
  sys     0m2.728s

  ]# echo 1 > /proc/sys/vm/drop_caches
  ]$ time rg "kthreadd"
  ...
  real    0m19.276s
  user    0m1.859s
  sys     0m3.063s
danadam··on 24/192 Music Downloads Are Very Silly Indeed (2012)
The formula, as far as I could find, is:

1 / (2 * pi * bandwidth * 2 ^ bitdepth)

So for full scale 44/16 signal it is about 0.1 nanosecond.

More here [1]. There are also some sample files for ABX tests there.

[1] - https://hydrogenaud.io/index.php/topic,108987.msg896449.html...

danadam··on Grid Garden – A game for learning CSS grid
#DDDDDD on #AAAAAA

Ever heard of this thing called "contrast"? Could use some.

danadam··on Grid Garden – A game for learning CSS grid
LoVe HAte, the order of pseudo classes: :link :visited :hover :active
danadam··on Show HN: The first issue of Compelling Science Fiction
All it takes is "7 fucking declarations": http://bettermotherfuckingwebsite.com/
danadam··on Intro to Debugging X86-64 Assembly
The first link (Mike Taulty’s intro) leads to "page not found".
danadam··on Git-Stats – A local GitHub-like contributions calendar
"Don't break the chain!" http://lifehacker.com/281626/jerry-seinfelds-productivity-se...
← PreviousPage 2 of 2