The Closest Book Meme

I was just reading some posts on planet.gentoo.org and thought I’d take part in The Closest Book Meme. So as a reply to Christian, this is mine:

Since I don’t have any real books (paper is deprecated), I opened the first ebook I found when browsing through the files stored on my mobile (lying directly in front of me, thus technically being the nearest book) πŸ˜‰

It’s The Short-Timers: The Spirit of the Bayonet by Gustav Hasford. After pressing page down for 55 times in fullscreen mode on my Nokia 9300i, I found the fifth sentence to be:

Civilians and members of the lesser services bleed all over the place like bed wetters.

—————————–

  1. Grab the nearest book.
  2. Open it to page 56.
  3. Find the fifth sentence.
  4. Post the text of the sentence in your journal along with these instructions.
  5. Don’t dig for your favorite book, the cool book, or the intellectual one: pick the CLOSEST.

Dell Inspiron Mini 9 battery consumption test

Last night I ran a quick test on how long my new Dell Inspiron Mini 9‘s battery would last under “normal netbook workload”.

Details:

  • OS: Gentoo Linux (what else? πŸ˜‰ )
  • Running programs: KDE 4, Konqueror, Thunderbird (fetching mail via IMAPS every 5 minutes)
  • Conditions:
    • Wireless connection to Internet, shell script kills and reloads Konqueror with three websites every two minutes (emulating a user who browses the WWW).
    • Display set to lowest brightness level, screensaver / standby / etc. deactivated so that it was switched on all the time

Data capturing:

The ‘remaining capacity’ value from /proc/acpi/battery/BAT1/state and a timestamp were written to a file every minute:

#!/bin/bash
LOG="/home/pn/batterylog"
echo "Battery log, started $(date)" >$LOG
while ((1))
do
  TIME=$(date "+%s")
  REMAINING=$(grep "remaining capacity" /proc/acpi/battery/BAT1/state | cut -b 26- | cut -d' ' -f1)
  echo "$TIME $REMAINING" >> $LOG
  sync
  sleep 60
done

Results:

The battery lasted a little longer than 4 hours and 50 minutes which means approx. 6.7 watts average power consumption while browsing the web over WLAN.
This time I decided to use OpenOffice Calc to create the graph – here is a screenshot of it:

(And here is the spreadsheet, if you’re interested: Dell Mini battery consumption log (Spreadsheet))

Mysterious Thunderbird crashes – finally solved

GPGee (website down during time of writing) causes Thunderbird to crash on opening mails containing http:// links after having opened a mail containing a file:// link before. This sentence alone should make it clear to everyone how much trouble this issue caused me, and how hard it was to track down… Well – at least I learned a thing or two about debugging (Mozilla applications) on Windows.

See my bug report in Mozilla’s bug tracker if you want to read the whole story. You can even watch a screen video of the crash there πŸ˜‰