Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

dws (341)

  (email not shown publicly)

Journal of dws (341)

Sunday February 08, 2004
06:39 PM

SAPI.spVoice found useful

[ #17285 ]
Talking computers are generally candidates for ballistics testing, but my friend James had a neat idea for a debugging assist: tail -f application logs looking for certain patterns, then use Win32::OLE to play .wav files. Match /null pointer exception/i and the box goes BING!

This trick can be generalized by installing the Microsoft Speech SDK, which provides an OLE object, SAPI.spVoice, which can be told to speak arbitrary text.

So now, instead of having to switch windows to poke through logfiles, a semi-pleasant female robotic voice instantly informs me of my shortcomings as a programmer.

(Updated to note that I'm working out of earshot of others.)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • For a monitoring tool :) it monitors the uptime and when a daemon goes down, it manages to read out the server name and a "supposedly" informative line.

    Using it for production servers is fine. Then some managerial person saw it, went "oh, cool, a talking computer monitor thingiee" and insisted everyone use it.

    What's the chorus of "Server X going down" sound like (when the tool now monitors development servers ) ?. Noise pollution :) It later got downgraded to a beep, which was slightly better (but only sl