My name is Paul Bissex, and e-scribe.com is my consulting business. I build web applications using as much open source software as possible. From September to June I teach web design and other important non-photographic professional skills to photographers. In the '90s I wrote technology commentary and reviews for magazines, newspapers, and web publications, including Wired, Salon.com, FamilyPC, the late lamented Web Review, and the Chicago Tribune. Feel free to email me.
I'm co-authoring a book, "Python Web Development with Django", with Jeff Forcier and Wesley Chun. It will be published by Prentice Hall in July 2008, but is available for pre-ordering on Amazon now.
This site is built on a fresh trunk checkout of Django, running on Python 2.5.1, served by Apache and mod_python. The database is SQLite. The operating system is FreeBSD, on a VPS hosted at Johncompanies.com. Comment-spam protection by Akismet. Vintage topo imagery from the Maptech archive.
Akismet, del.icio.us, Django, dpaste.com, Emacs, FreeBSD, Freenode, jQuery, LaunchBar, MacPorts, Markdown, Mercurial, OS X, Postfix, Python, SQLite, Subversion, TextMate, Trac, Ubuntu Linux, wmii
Copyright 2008
by Paul Bissex
and E-Scribe New Media
One of the first things that won me over to OS X was the near-instantaneousness with which you could wake a machine up from sleep. For a longtime PowerBook user who had always found Sleep to be a killer feature -- even back when waking up took 30 seconds or more -- this was a great bonus.
Sleep is known as "Standby" in the Windows world, but for some reason a lot of people prefer "Hibernate," perhaps because it predates Standby or perhaps because it's safer -- all data is saved to disk, so you're covered even if you completely lose power.
With the latest round of PowerBook improvements, Apple apparently added support for a hibernation-type mode; they call it "safe sleep." It differs from Windows-style hibernation in that the disk image of your session is only used in the event of a power failure -- otherwise, it wakes normally. (This is how I understand it to work -- corrections are welcome.)
Andrew Escobar has a detailed article on enabling Safe Sleep based on a posting by Matt Johnston. According to Matt, it should work on "most G4s from September 2003 onwards." If you're interested in trying it out yourself, bear in mind two things: First, this is a hack. If you're not comfortable changing NVRAM settings using Open Firmware then it's not for you. Second, Safe Sleep understandably doesn't offer quite the same zippy performance as regular old unsafe sleep. Andrew says:
It takes about 15 seconds to enter Safe Sleep, and about 40 seconds to wake-up from it. That is way longer than the 2 seconds it takes for regular Sleep and wake-up.
That wake-up delay only happens if you have lost power, though, losing the contents of RAM and requiring restoration from the Safe Sleep image on disk. Otherwise, a normal (fast) wakeup is possible. So the real penalty in general use is just a slightly longer wait for sleep to begin.
This seems like nice insurance against unexpected power loss -- I've definitely had PowerBooks lose power during sleep, either due to tired old batteries or bad terminal connections.
A reader in Andrew's comments section also points out this can be handy when you need to move a desktop machine in the middle of a project. Sleep, unplug, move, wake. I'm sure Apple wouldn't endorse that technique, but if documents are saved the risk is relatively low.
Comments use Markdown syntax. Your comment will not appear until approved, which may take a few hours or more. Spammers will be torpedoed.
The iPhone keyboard doesn't suck
Python one-liner of the day
7 comments
How not to advocate via Google Code
2 comments
99 problems
3 comments
bitmonk
Obscure "svn mv" problem solved
88 days ago
Charlie
Book news: Rough Cuts and Amazon
89 days ago
Simon Griffee
Django Mercurial mirror tweaks
106 days ago
Jason Calleiro
From PHP to Python
107 days ago
Yuli
dpaste.com
110 days ago
bruce
Neat Python hack: infix operators
114 days ago
David Reynolds
The original Lego Star Wars
122 days ago
At least 36612 pieces of comment spam killed since January 12th. Thanks are mostly due to Akismet.