Archive for May, 2008

REM Sleep

Friday, May 23rd, 2008

REM sleep is an hot, warm, rush. Your body is hugely noisy, with patchy waves of sharp, hot tingles racing through your body like sunspots. At first notice, it is painful, but then you realize it’s wonderful. Your whole body is completely paralyzed. You could no more lift your eyelids than push over a grown redwood, even as the static roars through your body like a thousand freight trains.

Your body is flushed, and hot, like a tremendous fever, or the edge before the peak. You can hear with perfect clarity, but the sound weave into the tapestry of imagination with artful ingenuity.

The light, if any, beats through your closed eyelids with tremendous force, bright and heavy. Your eyes move strongly, sharply, as if having a will of their own.

And then it fades, into the warmer darkness of dreams, inspired by memory and later, imagination.

On making the Novatel U727 play nice with Ubuntu…

Tuesday, May 20th, 2008

The Novatel U727 is a dual-mode device. You plug it in, and Ubuntu sees it as a read-only mass storage device (containing Win32 drivers for the device). While cute, this behavior becomes obnoxious when one realizes that once the mass storage device driver claims the device, the serial device driver doesn’t care.

The key, of course, is to tell the mass storage device driver to GTFA. Ergo, ‘eject /dev/sr0′. However, this is not acceptable behavior for a ‘plug-n-play’ solution that will be used by possible techno-phobes.

Enter /etc/udev/rules.d! Create a file called 99-novatel.rules, with the following line:

ATTRS{manufacturer}=="Novatel Wireless Inc.", RUN+="/usr/bin/eject /dev/%k"

Unplug, plug, unplug, plug. Watch dmesg, and bask in the glory of your newfound sense of peace and relaxation. EVDO is indeed all it is cracked up to be.

(Use udevinfo -a -p /dev/sr0 to tweak the udev rule if needed…)

(There are other udev rules for this device on the Internet.  Those did not work with my client’s machine.  This one did, but it may not work on yours.  Also, Ubuntu 8.04 uses airprime to talk to the device.  Sublime!)

Javascript

Sunday, May 18th, 2008

Change an element’s parent

ewParent.appendChild(el);

Clear the document selection

function clearSelection() {
   var sel ;
   if(document.selection && document.selection.empty){
     document.selection.empty() ;
   } else if(window.getSelection) {
     sel=window.getSelection();
     if(sel && sel.removeAllRanges)
       sel.removeAllRanges() ;
   }
}

Milestones

Saturday, May 17th, 2008

I’m trying to figure out how I’m going to store and manage my many gigabytes of digital photographs. The sheer quantity is starting to get unnerving. I have thousands, and I’ve already gone through almost all of them and deleted the bad ones. The rest are either good pictures, or I keep them for the memories. In the mean time, it’s a bit tricky to actually post photos online.

Milestones!

My car now has over 100,000 miles on the odometer! This is very exciting, and a little bit sobering. Yesterday, I polished up the inside with damp towels and ArmorAll, and she’s very shiny and clean now (inside). All polished up for the big 100!

She’s got roof racks now. Not ungainly, but definitely an outdoorsy look.

And the other milestone? More than $50 to fill the poor thing. $3.81/gallon for 89 octane. I’ve never spent that much money filling up my car.

Well, now I have.

Where the hell is John Hancock when you need him??