Archive for April, 2008

NSLU2 based load balancer

Another day, another project …

A few days ago I put together an NSLU2-based load balancer using haproxy to do the load balancing.

If you don’t have an NSLU2, go get one. Those things are incredible, and ridiculously useful. I’m using OpenSlug/BE, but any distro is awesome on these things.

Hint: It takes some manual hacking of the haproxy.conf file and the init script to get it working from the optware packages. Of course, you have to tune it for the application you’re running…

Comments

Booting an old machine

If you’ve ever been stuck booting an old machine with a bad CD drive, or worse yet, *no* CD drive and an old enough BIOS not to properly boot a USB drive, you’ve experienced the wallbanger I have today. (and no, PXE boot wasn’t an option)

Fortunately, it appears that there is a nice boot floppy which allows booting via network or USB, which is available at http://www.plop.at/en/bootmanager.html… Direct link to the zipped floppy disk image is http://download.plop.at/plop/bootmngr/plpbt50rc11flp.zip.

Comments

Backing up a Motorola RAZR v3m with Ubuntu

I’ve had a Sprint Motorola RAZR v3m for a while, and when the time came to move to a Blackberry (for work), getting the information off of it would have been a horrendous process.

Instead, I present a pretty simple way of doing this using the Subversion version of opensync’s sync-moto script. Note that I did this under Ubuntu 7.10 (Gutsy Gibbon):

• Get the id by using lsusb:
$ lsusb
Bus 005 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 004 Device 003: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Bus 004 Device 002: ID 0a5c:2110 Broadcom Corp.
Bus 004 Device 001: ID 0000:0000
Bus 001 Device 003: ID 22b8:2a64 Motorola PCS
Bus 001 Device 002: ID 046d:0a02 Logitech, Inc.
Bus 001 Device 001: ID 0000:0000
• Add the following definition under /etc/modprobe.d/somethingorother :
alias cdc_acm usbserial
options vendor=0×22b8 product=0×2a64

• Plug in the phone and issue a:
sudo /sbin/modprobe cdc_acm vendor=0×22b8 product=0×2a64
• Download the Subversion copy of the opensync moto-sync plugin from:
https://svn.opensync.org/plugins/moto-sync/
• Issue the following sync command:
./mototool -d /dev/ttyUSB0 –backup –file mybackupfile.csv

Comments

Surviving

I had a bit of a revelation the other day. Natasha and I had gone to pick up food to bring to a small dinner party, although it wasn’t a very formal occasion. She, on a lark, decided to grab one of those ridiculous celebrity tabloid-type magazines to read in the car on the way over.

The cashier, who looked to be somewhere between her mid forties and fifties, reacted with much excitement, and started talking to Natasha about some of the celebrities mentioned on the cover. None of this would have been very interesting, until I hear her start defending one of them. She said that it “wasn’t fair” that they were treating the celebrity “like that”, and that “she’s too good for that”. As if she knew her.

And something that has made a lot of sense to a lot of other people finally clicked in my head. A forty to fifty year old woman working a dead end cashiering job in the middle of nowhere doesn’t have anything to look forward to, and probably won’t ever attain any measure of fame and fortune. But by living vicariously through the glossy images in the impulse purchase area, she gets to feel as though she has some great connection. I used to think that welfare and Jerry Springer were our modern day bread and circus combination, but maybe that’s not it.

When you feel that you’re part of something bigger than yourself, you have some sort of purpose, and that the Universe is a sane, fair and rational place. You ignore poverty, poor health, overwork and stress, and instead focus on a place where the Universe revolves around you. Not exactly a “Total Perspective Vortex“, if you catch my drift. Maybe it’s just as much a way of getting by as betting the house on a better afterlife, or blowing all of your spare change on lottery tickets. I can’t exactly complain about it, since I think the perception of happiness trumps the reality of misery almost every time.

Pass the remote control, I’m tired of this station.

Comments