I would have loved this when I was a kid. And why did I never have these Top Trumps? Who can resist Top Trumps where you compare "killing power" and "fear factor"? I got to these via Slashdot, where someone posted about the Ladybird computer books: funnily enough, I have a near-pristine, 1971 edition of this which someone bought me for Christmas. It's a great read.
Went to hospital today for a liver test, and they decided to measure my height to work out my body mass index. I am 174 cm tall, apparently. I did a quick conversion, and it turns out all my life (since I've been about 16) I've been telling people I'm 5' 10", when in fact I am 5' 8 1/2". Either I've been labouring under a misapprehension for most of my life, or I'm shrinking. Depressing, really.
Just heard on the news that police have carried out controlled explosions in Birmingham city centre. They are also evacuating the city centre, starting with Broad Street (where I work). Just hearing on the news that a suspect package was found on the 105 bus, in Corporation Street, and was detonated in a controlled way by the police. I've been a bit nervous since the London bombings, especially since I go to work on the bus and work on one of the highest profile, most conspicuously decadent streets in Britain's "second" city. Also a bit nervous because my wife is travelling back to the city tomorrow from London by public transport. But this won't stop me going on with my usual business next week.
I finally got round to installing Ubuntu on my OQO (thanks to Jono's external CD drive - the OQO is fussy about external drives and didn't like mine; and Paul finding an invaluable FAQ). The only issue I had was bizarre: when the wireless disconnected, the mouse went haywire. Got it sorted now though. Installed all my essentials: Thunderbird, Googlebar and del.icio.us extensions for Firefox, RealPlayer and Flash plugins.
The interesting thing is, I used my OQO with all these applications for several months, but running under Windows. And already the Ubuntu experience outstrips Windows. Here's why:
Why on earth would I want to use Windows? Admittedly I am reasonably adept with Linux, but Ubuntu and other modern distributions are in my opinion on the verge of overtaking Windows for ease of use and value for money. Sometimes it seems criminal that so many computer users can't see what they're missing.
Plodding along this week: nothing earth-shattering, but steady progress. I've taught my PHP+MySQL FastTrack course several times now, but I'd been squeezing as much as possible of a 5 day course into 2 days. This felt a bit of a mess (though the trainees so far haven't noticed, it irked me). So I decided I'd write a cleaner, more integrated 2 day version of the course instead, and have been working on it this week. Nearly done: just some stuff on sessions to complete.
It's interesting writing PHP after spending some time writing in Rails this week. PHP coding makes you think at a much lower level than Rails: how should I write MVC? which frameworks should I use to talk to the database? which templating system should I use? how should I integrate them? Rails lets you move your decision making to a much higher level of abstraction: what is the data model? what is the flow of control for this part of the application? Coding in PHP after Rails seems hopelessly unproductive and scattershot. I think Rails demonstrates the point (as does Ubuntu) that choice isn't necessarily good: you want someone intelligent to make good decisions for you, so you can concentrate on important problems. I suppose that's why people have personal shoppers.
LUGRadio Live was great last Saturday, with Mark Shuttleworth and Bill Thompson being my highlights. Bill's talk was particularly good from an open source advocate's point of view, as he emphasised risk as a factor in choosing between open source and proprietary software. Bill's point being: if he chooses open source, he has far more control over risk to his project, as he is not locked into a vendor (providing he is prepared to familiarise himself with the codebase, or pay someone else to). I've been thinking about this a bit, and think I'll try to work this angle into my seminars from now on.
At the weekend I was delighted to see two sparrows in our garden, making use of the facilities. We get very few birds in the garden, because verminous cats swarm all over the local area. But these two had got through. I was particularly pleased because the sparrows landed on the purple loosestrife plants and ate up the froghoppers (a.k.a. spittle bugs) thereon. I'm glad I don't use chemicals in the garden, as it would have deprived the birds of a good meal.
An interesting example showing how two meaningful, but utterly different, documents could end up with the same MD5 hash, and how this could be used as an exploit, written in plain English.
I've recently been buying tons of second-hand books. Amazon Marketplace is fantastic, but another one you might not have heard of is Abebooks (OK, you probably have, as I'm normally the last person to find anything). This place is a central point for searching books from hundreds of sellers and buying them. The delivery times can be fairly long, as the US sellers seem to use surface mail which takes weeks, but I've got round this by ordering stuff this month which I will get next month, then ordering more next month when they arrive, ad infinitum... I've managed to find lots of obscure SF paperbacks by authors I've read in anthologies but whose books are fairly rare and out of print: people like Edward Bryant (Cinnabar is a gem) and Pamela Zoline (her The Holland of the Mind is a fantastic depiction of a crumbling relationship, mirrored in the rooms and streets of Amsterdam).
I am loving Ruby on Rails so far. Ruby itself seems like a very neat language, fully object oriented (like Java), but still simple to write scripts (like Python), so the best of the two worlds I like to inhabit. Rails is a nice web framework which includes templating, caching, and code generation from database schemas for CRUD operations. Within about 3 hours, I'd managed to write an application which allowed me to display records from two related database tables, edit them, add new ones, and delete them. Rails needs some understanding of web application development, and some familiarity with Model-View-Controller is useful, but it was relatively painless to pick up. Though some of Ruby's syntax still eludes me.
So, deciding Rails is a good framework, I started thinking about building a web server with proper Rails support, and perhaps writing something useful with it (like a new blog engine or CMS, just what the world needs). By default, Rails works through CGI, but this is no good for production use as it's too slow; instead, I decided to venture into the world of FastCGI, another method for running rails, faster, more efficient and more secure than CGI. In the end, I built mod_ruby support into my XAMPP setup, installed the FastCGI module into XAMPP from source, installed FastCGI (fcgi) bindings for Ruby from source, and tinkered with my Rails code to make it use FastCGI. This article was a life-saver for getting this up and working. Now I have XAMPP with mod_ruby and mod_fastcgi, running my first Rails application. Once I've reached some level of proficiency with the framework, I plan to write up my journey, including all of this stuff. The notes are stacking up...