Live data from Hacker News

Ask HN: Does anyone use sound effects in their dev environment?

news.ycombinator.com

331–336 of 336 posts

Re: Ask HN: Does anyone use sound effects in their dev environment?

#331

i change the default windows beep, does that count?

Sorry this is totally unrelated, but I don't know how to notice replies on HN, and missed a question from you 5 months ago, and HN won't let me reply to that old comment.

You asked what adlist was blocking assets on a site of yours, and I don't think it's an adlist, but a general rule against loading scripts from other domains. Here's what the log looks like: https://cdn.imgchest.com/files/w7pjcgqn387.png

Re: Ask HN: Does anyone use sound effects in their dev environment?

#332

Almost 20 years ago, Ang Cui and I were bullshitting and brainstorming around an idea he had to categorize patterns in network traffic as audio tones so that one could listen to network traffic flow. He has since gone on to do other, bigger things and I'm still sitting here kicking myself for not at least pursuing the idea a little.

It was done at Tufts University and presented in 2000 at the USENIX LISA conference https://www.usenix.org/legacy/events/lisa00/gilfix/gilfix_ht...

Re: Ask HN: Does anyone use sound effects in their dev environment?

#335

I’ve set my shell to discreetly play the sound of a mouse button click upon completion of any command that ran for longer than 20 seconds. That choice of sound has the convenient effect that no one else seems to consciously notice it.

Been thinking about this. Do you have a snippet you can share?

Re: Ask HN: Does anyone use sound effects in their dev environment?

#336
post #335

I’ve set my shell to discreetly play the sound of a mouse button click upon completion of any command that ran for longer than 20 seconds. That choice of sound has the convenient effect that no one else seems to consciously notice it.

Been thinking about this. Do you have a snippet you can share?

ZSH plugin:

  _click_preexec() {
    _click_start_seconds=${_click_start_seconds:-$SECONDS}
  }

  _click_precmd() {
    [[ $+_click_start_seconds ]] || return

    if (( SECONDS - _click_start_seconds >= 20 )); then
      pw-play 'mouse_click.wav' &!
    fi

    unset _click_start_seconds
  }

  preexec_functions+=(_click_preexec)
  precmd_functions+=(_click_precmd)
Mouse click sound: https://freesound.org/s/223445
Post reply on HN