Live data from Hacker News

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

news.ycombinator.com

281–290 of 336 posts

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

#281
I have these that come from history|grep espeak

From a particularly sunny day where I was having too much fun waiting for my builds:

    while ps -49011;do sleep 3;done;espeak "IT'S DONE YOU FUCK. COME WORK.";telegram-send "done"
More regularly:

    gh pr checks 2850 --watch ; while true; do espeak "main done";sleep 5;done

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

#282
post #244

Earlier quoted context omitted.

The dating game has always been a lot like fishing. Did he ever get a real date this way?

Yes, and if I remember correctly at least one girlfriend for a few months

Did he remember to kill the script after they started dating?

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

#284
post #123

Earlier quoted context omitted.

> gas pump Most of them play advertisements while you fuel up. I hate it. The only thing that I like about New Jersey forbidding me from touching a gas pump is that I'm not subjected to ads for diarrhea medication or low-APR loans every time I fuel up.

Great ready for the newest innovation, putting a small cellphone sized screen on the nozzle that you put into your vehicle. https://www.dekra.nl/en/smarter-nozzle/

"Even this lowly gas pump knows you are balding, overweight, and unable to sleep at night."

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

#285

It isn't exactly what you have in mind, but I use `play` as well as a terminal theme color change to tell me when I'm using one or another language's keyboard layout. If you put & in front of play, you can make chords. Here's an example: # Define notes for major seventh chord starting on A 440 A=440 C_SHARP=554.37 E=659.25 G_SHARP=830.61 if [[ "$layout" == "Finnish" ]]; then # Play a major seventh chord ascending kit…

Forking each sox command to the background causes samples to play non-deterministically and step over each other. Here's a better way: # Define notes for major seventh chord starting on A 440 A=440 C_SHARP=554.37 E=659.25 G_SHARP=830.61 case "$layout" in Finnish) kitty +kitten themes --reload-in=all Apprentice & play "|sox -np synth 0.2 sine $A" \ "|sox -np synth 0.2 sine $C_SHARP" \ "|sox -np synth 0.2 sine $E" \ "|…

Stepping over each other was the point! :) But very good to know if I ever want to encode a little melody instead!

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

#286
post #246

Earlier quoted context omitted.

Mac version, courtesy of chatGPT: stdbuf -oL ping news.ycombinator.com | grep --line-buffered -o "[0-9]* bytes" | xargs -I {} say "Ping {}"

ping -a

not annoying enough ;)

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

#287

Earlier quoted context omitted.

Yes, this. Imagine an elevator, gas pump, vending machine, or laundromat emitting sound effects constantly. Quite the dystopian hellscape.

> gas pump Most of them play advertisements while you fuel up. I hate it. The only thing that I like about New Jersey forbidding me from touching a gas pump is that I'm not subjected to ads for diarrhea medication or low-APR loans every time I fuel up.

Most where specifically? Never ever encountered those in most countries in the world, haven't checked them all yet.

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

#289

Earlier quoted context omitted.

Yes, and if I remember correctly at least one girlfriend for a few months

Did he remember to kill the script after they started dating?

Maybe that's why it only lasted few months

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

#290

From [1] The story of PING: ping goodhost | sed -e 's/.*/ping/' | vocoder He wired the vocoder's output into his office stereo and turned up the volume as loud as he could stand. The computer sat there shouting "Ping, ping, ping..." once a second, and he wandered through the building wiggling Ethernet connectors until the sound stopped. And that's how he found the intermittent failure. [1] https://ftp.arl.army.mil/~m…

macos has the "say" binary which is fun to play with for stuff like this

Back in windows and powershell days, this was my favorite "security reminder" prank. Everyone who forgot to lock their machine and walked away got this script executed on their machines. TLDR: it schedules a task "Security Reminder" to play "I'm watching you" via voice synth, every 30 mins.

```

$action = New-ScheduledTaskAction -Execute 'Powershell.exe' -Argument '-NoProfile -WindowStyle Hidden -command "& {[System.Reflection.Assembly]::LoadWithPartialName(""System.Speech"") | Out-Null; (New-Object (""System.Speech.Synthesis.SpeechSynthesizer"")).Speak(""I''m watching you"")}"'

$period = New-TimeSpan -Minutes 30;

$trigger = New-ScheduledTaskTrigger -RepetitionInterval (New-TimeSpan -Minutes 30) -RepetitionDuration (New-TimeSpan -Days 1024) -At 9am -Once

Register-ScheduledTask -Action $action -Trigger $trigger -TaskName "Security reminder" -Description "Security Reminder"

```

You can imagine people faces, especially many were sitting in headphones in open space offices. Those were the days...

Post reply on HN