Archive for January, 2005

1/5/2005: 11:51 pm: RobertEverything Else, Software

Here’s your challenge for the day. Read this Seattle Times Magazine article from start to finish without trying to multitask. Even though the article puts forth cogent arguments for why multitasking (especially with intellectual tasks like reading) by humans is usually inefficient, I couldn’t stop myself. First, I had to check on the progress of some code that I was compiling. Then I had to see if I had received any urgent email since I had last checked five minutes ago. Finally, I caught myself tabbing back to another half-read article from that morning.

How many books are you in the middle of reading? For me, the answer is eight, and I’m not counting the programming or other technical books that I am constantly grazing through. If I counted those books, the number would be about fifteen. Why do I think this is a good idea? Why am I surprised that I rarely finish a book (though I actually did finish two in the last month)?

The friend at work who forwarded the Seattle Times article to me was interrupted five times by people while he was trying to read it. I was responsible for at least one of those interruptions. Sorry, Eric.

Mihaly Csikszentmihalyi (challenge #2 – say his full name fast five times in a row) wrote an influential book in 1991 entitled Flow: The Psychology of Optimal Experience about how achieving a “flow” state is not just highly productive, but also very emotionally and intellectually pleasing. One of the many books on my bookshelf that I haven’t started to multitask on yet is The Evolving Self, a sequel to Flow. In The Evolving Self, Csikszentmihalyi proposes that we should carefully examine our genetically driven feelings and behaviors, as what was key to our successful evolution hundred years ago may by counter-productive to our pursuit of happiness today.

Fortunately for the recidivist multitaskers among us, some boffins at Oregon State are working on a software system called TaskTracer. TaskTracer attempts to track what software applications and documents you are working with as part of each of the tasks in your virtual multitasking ToComplete list. When you get interrupted, TaskTracer alledgedly informs you of the previous state of the task that you are switching to and what you need to do next on that task. A key factor, of course, is understanding the nature of the task.

Naively, this seems to me to be a case of a software engineer who understands how CPUs and operating systems work with their program counters, registers, threads, stack frames, etc., and wants to extend that to how a person works. Of course, a person doesn’t organize her tasks, processes, and flows as cleanly as a CPU running several applications, because she doesn’t have to. Then again, TaskTracer doesn’t have to be perfect in order to provide a lot of value. I think there is a big risk, though, that it might encourage the easily susceptible among us (Google Translate translates that last phrase to mean “me”) to crank our multitasking up to eleven, though.

1/2/2005: 11:09 pm: RobertSoftware

My favorite “top ten predictions for 2005″ list so far is Bill de hÓra’s list. If you’re an open source, Java, XML, Python, web service, Mozilla loving geek, you’ll like it, too.

: 12:26 am: RobertBlogging and RSS

WordPress 1.2.2 was released in mid-December and includes a couple of important PHP-related security fixes, so everyone should upgrade, especially with the santy worm going around.

I upgraded tonight, and it was a pretty easy process:

Download and Prep New Version

  1. While connected to the root dir of the website via ssh, download the newest version $ wget http://wordpress.org/latest.tar.gz
  2. Make a temp dir in the wombatnation.com directory $ mkdir t
  3. Move tarball there $ mv latest.tar.gz t
  4. Unzip it $ tar xzf t/latest.tar.gz
  5. Move it back to root dir with different name than original install $ mv t/wordpress wpnew

Now, I have a pristine version of WordPress 1.2.2 in the wpnew directory.

Backups

  1. Use standard instructions to backup database
  2. Backup files. In root directory of website $ tar czf wordpress_backup_20050101.tgz wordpress
  3. FTP the backup file to an off-site location
  4. Make a copy of the wordpress directory, preserving file attributes $ cp -Rp wordpress wp2

Now, I have an exact copy of my current install. While I could always restore it from the backup file, diskspace is cheap and I like to have an easy-to-access copy while doing upgrades and migrations. Once the new version seems to be up and running, it’s easy enough to remove this directory.

Copy Customized Files

  1. Copy .htaccess, wp-config.php, wp-layout.css from wordpress dir to wpnew
  2. Copy comments related files $ cp wordpress/wp-comment* wpnew
  3. The file wp-comments-post.php was changed for the WP 1.2.2 release. Since I had previously renamed this file in order to ward off spam comments, I had to redo that again. I’ve posted the details elsewhere.

I verified that the admin interface worked via accessing the files in the wpnew directory, and then switched in the new directory for the old one. This approach allowed me to keep my blog available for virtually the entire switchover.

  1. $ mv wordpress wpold
  2. $ mv wpnew wordpress

Obviously, the wpold and wp2 directories can now be deleted.