Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

RE: Alarm clock

by Anonymous Monk
on Jan 07, 2000 at 20:20 UTC ( #1853=note: print w/ replies, xml ) Need Help??


in reply to Alarm clock

Source code, man! What good is it to talk about cool uses for Perl if you don't give code?


Comment on RE: Alarm clock
RE: RE: Alarm clock
by Anonymous Monk on Feb 02, 2000 at 20:04 UTC
    Source code? Once, when away on a trip I was horrified to find that a) I'd left my alarm clock at home and b) the one in my room looked, well, really ill. So wrote a snippet which fired up the CD in the laptop. It was a simple loop which calculated the time-delta, slept for half of it and fired up the CD if the delta was less than 1 minute. Leave the volume up and something suitabley LOUD in the disk.
      That was me - I was particularily paranoid about seeing a heart beat. The current version calculates the delay, reformats it as hours and minutes(for idiot proofing) and pops up a TK/TCL window to grab my attention (in case the volume is down)


      Butlerian Jihad now!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1853]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2014-09-22 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (177 votes), past polls