Simple shutdown timer for sleepy music listening, and test exposed tags for projects

  • user warning: Table 'makerspace._drupalcomments' doesn't exist query: SELECT COUNT(*) FROM _drupalcomments c WHERE c.nid = 14 AND c.status = 0 in /home/makerspace/makerspace.editkid.com/modules/comment/comment.module on line 992.
  • user warning: Table 'makerspace._drupalcomments' doesn't exist query: SELECT c.cid as cid, c.pid, c.nid, c.subject, c.comment, c.format, c.timestamp, c.name, c.mail, c.homepage, u.uid, u.name AS registered_name, u.signature, u.picture, u.data, c.thread, c.status FROM _drupalcomments c INNER JOIN _drupalusers u ON c.uid = u.uid WHERE c.nid = 14 AND c.status = 0 ORDER BY c.thread DESC LIMIT 0, 50 in /home/makerspace/makerspace.editkid.com/modules/comment/comment.module on line 992.

[:intro:] 

When going to sleep with my flash new pillow and headphones on I would sometimes wake up with the music still blaring,  I wanted something that would tell my pc to shut down in x hours to conserve energy, and cut the noise off after giving myself enough time to go to sleep.  There are a few shutdown timers out there, but they are quite bloaty and annoying - turns out it was pretty easy to make my own here is how I did it (in windows XP). [:question:] are there similar functions for other OS :[question]: 

:[intro]:

[:step:] Right click on your desktop and choose new from the menu, then shortcut from the second menu. :[step]:

[:step:] In the window that opens type (without the quotes) "shutdown.exe -s -f -t 5130"

The -s stands for shutdown (rather than restart or logout), the -f means force the shutdown so be sure to save your work because it will shutdown no matter what is open.  The -t is the time (in seconds) it will delay before shutting down.  You can calculate your time by timesing the number of minuites by 60 (1hr = 3600 seconds, 1 and a half hours = 5400 seconds ...etc). Click next and type the name you wish your shutdown shortcut to have, Click finish and you are done, just start this when you are sure you want to go to sleep, because to abort it isn't super easy.  :[step]:

[:step:] To abort the shutdown you can either make another shortcut like above but type "shutdown.exe -a" instead of the "shutdown.exe -s -f -t 5130" bit, or click the start menu, then run, and type "shutdown -a" in the little box that pops up.:[step]: 

If you are wondering about all the step, question, and intro bits, its part of a system I am trying to create for a standardized instruction exposed tagging format to compliment a microformat (some people may not know how to do microformats).  This will allow a user to submit a url to a central repository for all instruction type posts without having to re-enter all the info in forms, and the content can be originally hosted on their own site.  More on this as it develops.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr><br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong><font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code><cite> <embed> <object> <param> <strike> <caption>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]".

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.