Tag Archives: Quotes

How to: Initiate a Timed Shutdown

On Friday I was downloading some files on my Netbook (running Ubuntu Remix 10.04) and was not planning to stick around for the downloads to finish (it was already close to 7pm, I needed to get home for the weekend). I didn’t want to leave it running all weekend and I still had another hour to go before my downloads finished…
What to do?

Well I decided to initiate a delayed shutdown of my system. Since the downloads had about 1hr and 15 minutes left, I decided to be extra safe and set the shutdown for an extra 30 minutes after that… Here’s how I did it:

In your terminal, run the following command:

sudo shutdown -h 20:45 "See you on Monday!"

you can change the time to fit your needs and change the message (between the quotes) to whatever you like or leave it out as the message is optional.

You could also set it to shutdown by using a slightly different format, like this:

sudo shutdown -h +120 "Shutting down in 2hrs -- or 120 minutes"

This works on Linux and Mac. If you want to do this on Windows you could try something like this (if you are an admin):

at 20:45 shutdown /l /r /y /c

But I cannot vouch for how effective this will be (on Windows I mean) as it may only shutdown the OS not the machine/computer…

Alex’s Antidote now iPhone Friendly

Alex's Antidote iPhone icon
Alex's Antidote iPhone icon

That’s right folks, my website is now iPhone friendly. (Note: from what I understand it should also work in certain other fancy phones too)

Here’s how it goes:

Step 1 – Open Safari -> Navigate to: alexsantidote.com

find Alex's Antidote in iPhone's Safari Browser
find Alex's Antidote in iPhone's Safari Browser

Step 2 – Check out my fancy mobile theme

New Mobile Theme
New Mobile Theme
Page Menu
Page Menu

Step 3 – Bookmark for future reference

Bookmark Options
Bookmark Options

If you’re really awesome you’ll bookmark it to your Home Screen 😉

Bookmark to iPhone's Home Screen
Bookmark to iPhone's Home Screen

And you’ll see a nice shiny icon that will take you straight to this website when you touch it!

Shiny Bookmark Icon!
Shiny Bookmark Icon!

How’d I do it?

  • Install the WordPress plugin called: WPtouch Mobile Plugin + Theme for WordPress
  • Make a custom icon in GIMP (sudo apt-get install gimp)
    • The icon should be saved in .png format.
    • You will need 2 different sizes: 57 x 57 and 32 x 32
      • Name the 32 x 32 icon something that reflects the name of your blog (I used: Alex`s Antidote)
      • Name the 57 x 57 icon “apple-touch-icon.png” without the quotes.
  • In WordPress Settings you will find a menu called: WPtouch, upload the 32 x 32 icon there (look around, you’ll figure it out), then make necessary adjustments below (lots of settings to play with).
    • Be sure to save!
  • FTP/SSH into your root (and/or wordpress) directory for your blog and copy over the 57 x 57 icon you named “apple-touch-icon.png”
  • Done!

Let me know what you think in the comments (if you have time).