News for hackers. Stuff that matters.
Re:Does anyone use sound effects in their dev environment? by gorkish on Monday September 16, 2024 @12:09PM (#41557551)
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/~mike/ping.html>

Re:Does anyone use sound effects in their dev environment? by adrian_b on Monday September 16, 2024 @01:27PM (#41558366)
That is like the beep for continuity testing that is provided by most electronic multimeters, which is very useful because both your hands and your vision are occupied with the tested equipment.
Re:Does anyone use sound effects in their dev environment? by throwanem on Monday September 16, 2024 @03:31PM (#41559676)
Most older DMMs. Modern ones synthesize a steady or intermittent tone in response to steady continuity. Older ones just use an instantaneous voltage threshold, which is much better for diagnosing an intermittent connection than the newer style, where the tone generator inadvertently does so much time averaging as to be useless outside steady state.

I keep a 30-year-old Triplett around more or less just for this reason. My Fluke from 2019 is much better at everything else, but...

Re:Does anyone use sound effects in their dev environment? by stn8188 on Monday September 16, 2024 @07:11PM (#41562165)
Exactly! I recall troubleshooting some diesel engine governor issues back when I was in the Coast Guard. I specifically reached for the old, analog Simpson since it was much easier to see the needle jump than trying to watch for the small digital screen to move with all of its delays.
Re:Does anyone use sound effects in their dev environment? by eternityforest on Tuesday September 17, 2024 @05:29AM (#41565937)
What's really bad is when there's a literal 250ms or so delay...

I'm surprised someone hasn't made an open source DMM that lets people configure all the stuff people have been wanting for years.

Re:Does anyone use sound effects in their dev environment? by whalesalad on Monday September 16, 2024 @02:07PM (#41558784)
macos has the "say" binary which is fun to play with for stuff like this
Re:Does anyone use sound effects in their dev environment? by ryanmcbride on Monday September 16, 2024 @02:57PM (#41559306)
a billion years ago I piped say and some various noise files into ffmpeg to make audios that sounded like numbers stations, I don't think it would run anymore but it was a lot of fun :D
Re:Does anyone use sound effects in their dev environment? by nomel on Monday September 16, 2024 @03:16PM (#41559494)
I did something similar for finding which outlet a breaker went to. I connected my MacBook to the outlet, airplay to the TV so it was loud, then had it yell if the power was disconnected:

    while ! pmset -g batt | grep 'discharging'; do; echo waiting; sleep 1; done; say disconnected
Re:Does anyone use sound effects in their dev environment? by centur on Tuesday September 17, 2024 @03:32AM (#41565265)
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...

Re:Does anyone use sound effects in their dev environment? by layer8 on Tuesday September 17, 2024 @10:17AM (#41567817)
Re:Does anyone use sound effects in their dev environment? by mrbombastic on Tuesday September 17, 2024 @10:52AM (#41568179)
I often use this when i want some feedback from a script somewhere running on my machine but don’t know where output is going
Re:Does anyone use sound effects in their dev environment? by apples_oranges on Monday September 16, 2024 @04:50PM (#41560724)
Mac version, courtesy of chatGPT: stdbuf -oL ping news.ycombinator.com | grep --line-buffered -o "[0-9]* bytes" | xargs -I {} say "Ping {}"
Re:Does anyone use sound effects in their dev environment? by n42 on Monday September 16, 2024 @07:12PM (#41562171)
ping -a
Re:Does anyone use sound effects in their dev environment? by apples_oranges on Tuesday September 17, 2024 @01:18AM (#41564391)
not annoying enough ;)
Re:Does anyone use sound effects in their dev environment? by salzig on Tuesday September 17, 2024 @08:00AM (#41566747)
to keep it simple: `ping news.ycombinator.com | xargs -I% say ping`
Re:Does anyone use sound effects in their dev environment? by imperialdrive on Monday September 16, 2024 @06:13PM (#41561633)
Love it! I use a similar Powershell script for testing cabling/changes. Laptop left on in middle of office with speakers turned up. So handy.
Re:Does anyone use sound effects in their dev environment? by WalterBright on Monday September 16, 2024 @10:08PM (#41563314)
That's the kind of engineer I like to work with!
Re:Does anyone use sound effects in their dev environment? by BtM909 on Tuesday September 17, 2024 @09:06AM (#41567228)
Also reminds me of that old website where people could send text messages to (before Twitter existed).

There was this story of a person who could ping a machine and he knew it was in his house, but for the love of God couldn't find the machine. It's a very short story, but he ends up looking at the pings not knowing where this machine is runnning.

Re:Does anyone use sound effects in their dev environment? by Anon_troll on Tuesday September 17, 2024 @10:08AM (#41567737)
This sounds like https://bash-org-archive.com/?5273 (original website no longer exists).