Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No troll, the fan shutting off was how I knew my app had compiled and I could start debugging.

With the M1, I now have to check the cpu usage history occasionally.



Honestly I believe that as developers we don't use audible feedback enough in our tooling.

Imagine diagnosing your app health like you could diagnose your connection speed of a dial-up modem.


> Honestly I believe that as developers we don't use audible feedback enough in our tooling.

Allow me to point out a very cool project I saw in the early 2000s, which unfortunately seems to have been abandoned and forgotten: http://peep.sourceforge.net/intro.html (Peep (The Network Auralizer): Monitoring your network with sound).


Agreed. I usually laugh at TV shows and movies that use a bunch of beeps and boops in their computer scenes.[1]

But sometimes I actually want that! Like, if there was a switch I could flip to turn on audio cues every time a window's contents are updated, or new lines appear in a terminal window. And every window update would be tagged with a different sound for error, warning, info, success, etc.

I know you can configure your terminal to play a BEL sound, but I'm looking for something system-wide. I want it like the movies, so I can pay attention to something else and not have to check in on the progress of my compilation or transcoding or long download.


I make extensive use of “say”, the built-in macos program that can say out loud anything you give it.


remember ping?

     -a      Audible.  Include a bell (ASCII 0x07) character in the output
             when any packet is received.  This option is ignored if other
             format options are present.


I've been feeling just the opposite - I've been using an IDE from the mid-2000s for a legacy project, and it's amazing how things have changed. The search function dings a bell if nothing is found, and it does it in real-time as you type... so it gets annoying really quick (no auto-complete, and not even ctrl-v to paste in to the search query)


Transition of search dialog to search bar is also a huge improvement.


i stick the OS's equivalent of `bell` at the end of long-running scripts :)


  && say 'All done, come get some'


For the Linux users

    && espeak "job's done"


Some ideas for playing a notification sound in a script runtime:

Shell

  # system beep; also flashes the screen if you have that enabled in accessibility
  osascript -e 'beep'
  
  # play the sound file given by the file system the path
  afplay /System/Library/Sounds/Hero.aiff
AppleScript

  beep
  
  do shell script "afplay '/System/Library/Sounds/Hero.aiff'"
  
JXA + Cocoa API

  $.NSBeep()
  
  // search for and play a sound file; the lookup path is defined by macOS
  $.NSSound.soundNamed('Glass').play


Also shell (edit: as noted elsewhere):

$ say "Your build is done."


If you compile on the command line, modify your compiler, such as mvn.sh, to end with: ‘say “Done”’


command && say done


[flagged]


The fan _was_ their notification. Why would they have wasted time adding another?


Because the fan will continue for some time after the compile finishes. So you can do work before the fan stoos


Depending on the cooling solution the temperature can drop like a brick. On my desktop I can go 75deg to dead silent in about three seconds.


And laptop heatsinks have less thermal mass


A copper MacBook when? Would be also nice for the anti bacterial properties.


  ./build && say "done"


You wouldn't be able to hear that when the fan on my MBP is blowing at its peak :-)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: