magpiebrain

Sam Newman's site, a Consultant at ThoughtWorks

Archive for ‘August, 2004’

Teasers of the recent Batman film sent me scurrying off to re-read Frank Miller’s Dark Knight Returns, only to find that I couldn’t, well, find it. Sitting back (and scratching my chin in a position that I hope makes me look thoughtful, but I suspect makes me look like I’ve got a itchy beard) I wondered about what else I’d lost. A quick brainstorm later, and I had the following list:

# The Dark Knight Returns
# Muse’s Origin Of Symmetry
# Beat Takeshi’s Sonatine
# Fear and loathing in Las Vegas (Region 1 DVD)
# The tweezers from my Swiss Army Knife
# The desk-clip for my angle-poise lamp
# Dandy Warhol’s “You drive fast, I’ll do the drugs” T-Shirt. (I think my girlfriend threw this out)
# Black Books season 1 (DVD)
# An IKEA dressing gown, which I bought and never opened

If anybody finds any of this stuff, let me know will you? Alternatively, if you’ve lost anything give me a yell – I’ve got all kinds of crap sitting around that I have no idea how I got in the first place…

A laptop malfunction this week caused me to re-evaluate my backup strategy. I’ve decided against the “don’t back anything up” approach, in favour of the “backing things up is actually quite useful” approach. The laptop was fixed thanks to our helpful admin guy, however I’ve taken the hint.

The most important thing I had to consider when planning my back strategy is that I’m lazy – really lazy. If I have to even push a button to start a backup, chances are it isn’t going to get done very often. A quick poke around the hardware sites turned up the “Linksys Network Storage Link”:http://www.tomsnetworking.com/Reviews-155-ProdID-NSLU2-1.php (NSL). Simply put, the NSL lets you plug a couple of external USB drives in, and allows you network access via the wonders of Samba. The front end admin console lets you schedule backups of networked computers, which sounded right up my alley – now all I have to do is remember to leave my laptop turned on overnight (which is still asking a lot). I’ve ordered one from “EBuyer”:http://www.ebuyer.com along with a “Maxtor external drive”:http://tinyurl.com/2s3km, which should arrive next week. I’ll let you know how it goes.
Continue reading…

A largely unenjoyable couple of hours was spent tracking down a nasty little issue surrounding classpaths in cygwin. First a little background. On Windows, if you want to specify a classpath, @java@ expects it to be a series of semi-colon separated paths, like so:

set CLASSPATH=c:libsome.jar;c:classes;.;

On Unix, @java@ expects a colon separated list:

export CLASSPATH=/usr/lib/some.jar:/home/export/myarea/;.

I’m playing around with using a shell script to run my app on windows, however I’m using cygwin as I hate writing bat files. This is a bit of a problem however – cygwin expects Unix format paths, but we’re still running a Windows version of @java@. Once I’d worked out that this is what was causing the strange ClassNotFoundExceptions, a quick google turned up @cygpath@, which can translate from Windows to UNIX paths (and vice versa). So, when invoking @java@ in my shell script I just changed:


java -classpath $MYCLASSPATH org.package.MyClass

to:


java -classpath `cygpath --path --windows $MYCLASSPATH` org.package.MyClass

Next up, I can change my script to work on Unix by conditionally invoking @cygpath@ only if I’m running in a cygwin bash shell.

No posts from me in a while which has mostly been down to playing sys admin at my current client – more on this in a while no doubt. In lieu of anything of greater interest, I thought I’d remind you of two upcoming events for your calendar, if you happen to be in London in the next couple of weeks.

Firstly, the monthly “Java meetup(London Java Meetup – 23 August 2004)”:http://web1.2020media.com/j/jez/javanicuscom/londonjava/ will be on the 23rd of August. I’m hoping for something a little more laid back than last months mammoth affair as I hardly got to talk to anyone. No real topic, but expect talk on Java, beer, blogging and state machines.

Running both this and next Wednesday, is Geek Night London. More of a techy affair than the Java meetup – and non-Java specific too, it involves a bunch of us working on Open Source stuff, talking about it, and normally eating pizza. I’ll be working on either “JBehave”:http://jbehave.codehaus.org/ or “DamageControl”:http://damagecontrol.codehaus.org/ depending on how I feel. If you want to pop by for either this or next week, then stick your name down “on the Wiki”:http://geeknight.thoughtworks.com/index.php/GeekNightLondon.