This is as days pass by, by Stuart Langridge

Mini hippo returns

I once saw a birthday card with a picture of a small hippopotamus on it executing a 180° rotation, and underneath it said: mini hippo returns. Made me laugh. [caption id="attachment_1667" align="aligncenter" width="450" caption="Mini Hippo returns"]Mini Hippo returns[/caption] Anyway, it's time for the annual it's-my-birthday post (now in its seventh great year!), given that I am now as old as Christ. Well, I am according to the book Hannibal, anyway; the age of Jesus is somewhat murky and disputed, and clearly he didn't exist anyway which makes speculation somewhat pointless. I am now one third of the way to my telegram from the Queen (which I am gratified to discover still happens when you hit one century of age), and according to the Death Clock I'm more than halfway to being dead (which rather puts the kibosh on the whole telegram thing). In the last year:
  • I've left a job in a law firm and started a job in a radio company
  • I've split up from my wife (although we remain good friends; am going drinking with her this evening, in fact)
  • I've been to America (twice) and Ireland and Holland
  • I've lived in Jono's spare room and then come back to my house (which I still can't sell)
In the last month:
  • I've left the job at the radio company and started a job at Canonical
  • I've eaten caviar for the first time
  • I've rekindled friendship with someone I haven't seen for years
  • I've booked tickets to go to Hacking At Random in August
In the last day:
  • I've eaten way too much bangers and mash
  • I've started thinking about server-side JavaScript web frameworks in a decent way
  • I've looked at CouchDB and thought about how to use it
  • I've written to my MEP
In the last hour:
  • I've smoked five cigarettes
  • I've become 33 years old
Here's to another twelve months. Cheers.

The European Parliament and the Term Extension Directive

Those of you who are involved with digital rights campaigning and live in Europe may be aware that the European Parliament are currently mulling over extending the pan-European term of copyright from 50 to 95 years. The US recently increased their term of copyright (at least partially to "bring them in line" with Europe), and now Europe are being asked to increase theirs (at least partially to "bring them in line" with the USA). Copyright extension keeps music and composition and created works away from the public: I won't rehash the arguments in favour of the public domain and against an ever-increasing term of copyright; most people reading this are likely to have heard them before, and if you have not then I strongly recommend Lawrence Lessig's Free Culture, a book (and free-to-download e-book) which treats the subject in exhaustive detail. Suffice to say that I'm convinced by these arguments. Anyway, if you're in Europe and you agree with me on this rather than the music industry, you can write to your MEP. (In the UK, you can do this through WriteToThem.) My letter is below; it takes various ideas from Open Rights Group writings and Gary Fleming's similar letter. Note: don't just copy mine (or anyone else's). Your MEPs need to hear from you, their constituent, in your own words.
Dear [my MEPs], I am writing to you all today because you represent me in the European Parliament. As such, I would like to bring to your attention my concern (a concern shared by many others) over the proposed extensions to European Copyright law (the Term Extension Directive). You and your fellow MEPs are being asked to nearly double the term of copyright afforded to sound recordings. Industry lobbyists suggest that extending copyright term will help increase the welfare of performers and session musicians. But the Term Extension Directive, which will be voted on by the Legal Affairs Committee in a few weeks’ time, will do no such thing. Instead it will hand millions of euros over to the world’s four major record labels, money that will come direct from the pockets of European consumers. The Commission's own Impact Statement states that increased sales revenues from the extension of copyright terms will be divided approximately 90% to the record labels and 9% to the top fifth of performers, leaving only one-onehundredth of these financial benefits to go to the remaining 80% of musicians. This one-onehundredth actually means that the projected gains for the vast majority of performers are meagre: the highest-earning of these performers can expect to receive 27 euros a year. Twenty-six euros is not likely to significantly benefit the welfare of a performer or session musician! The UK has shown itself to be a leader in intellectual property policy; the Gowers Review of Intellectual Property, conducted at the request of the UK government, specifically recommended against increasing the term of copyright. It may amuse you to note that the USA extended their length of copyright terms "to bring them in line with Europe"; you and your MEP colleagues are now being asked to extend European copyright, in part to "bring us in line" with the USA! Professor Bernt Hugenholtz, who advises the European Commission on intellectual property issues, wrote an open letter in which he called the proposed extension "a deliberate attempt on behalf of the Commission to mislead Europe’s Parliament". Andrew Gowers himself has spoken out in an article in the Financial Times in December against this "out of tune" extension. If you honestly believe that almost doubling the term of copyright in the EU and ensuring that the majority of the money thus gained goes to record labels is a good thing, then I can respect your views. However, if you think that you're being asked to exercise your power as our elected representatives when you may not have been given the most germane facts to the case at hand, then I'll suggest here some further resources you may find useful. Consumer advocates have produced a video, "How copyright term extension in Sound Recordings actually works", which is available at http://www.youtube.com/watch?v=kijON_XODUk for you to watch, and I'd urge you to so watch it. A joint statement, signed by the European Bureau of Library, Information and Documentation Associations (EBLIDA), 42 consumer rights organisations across Europe, and and IFLA, the umbrella organisation representing over 650,000 library and information professionals worldwide, was sent to MEPs who sit on the committees that will decide the flawed Term Extension Directive’s future; you can read the statement at http://www.openrightsgroup.org/2009/01/21/consumers-citizens-and-information-professionals-around-the-world-unite-to-condemn-copyright-extension/ and see more detail. I would urge you to vote to reject the Term Extension Directive, as per Amendment 15 of the ITRE opinion (David Hammerstein). I'm happy to discuss this further if you would like to. Best regards, Stuart Langridge

Working with Internet Explorer

Building HTA desktop apps with Internet Explorer is a real treat for a web developer. You get to work with desktop features such as native drag and drop, system icons, reading and writing files, encrypted SQL server embedded databases, and chrome-less, non-rectangular windows (even with HTML!). You also have access to all of the features of Windows, the most popular operating system in the world, like audio and video, sound transforms, uploads and downloads, byte arrays, cryptography, and loads more. Best of all, you get to have a single target environment, in Internet Explorer — JavaScript expressions in CSS, VML and HTML+TIME, and no compatibility issues with other browsers. It'll also work out of the box on nearly 90% of the computers in the world without installing anything else -- no "runtimes", no "installers", no extra code required. Just do it. Does this sound like a stupid thing to say? Then it sounds just as stupid when people say it about Adobe AIR. Of course it's easier to develop HTML apps when you have only one target environment. The problem is that that environment is still controlled by one company. Those of you about to say "but, but, but, AIR is cross-platform! fight the evil that is Windows!", feel free to replace "Internet Explorer" and "HTA" above with "Firefox" and "xulrunner" or "Prism". Update: it has been correctly pointed out to me that this post was a bit harsh. I had a headache and was up early, is my excuse. While I absolutely stand by the points made here (AIR is no more the Open Web than Internet Explorer HTAs are; why do people who hate HTAs love AIR?), I should have been more gentlemanly about the point. Throwing bricks helps no-one. My apologies, Mike.

7 Things You May (Or May Not) Know About Me

I've been tagged by Pat with another one of these meme things. Now, I did this about a year ago and I don't know whether this is the same meme coming back around (in which case it's mutated from 5 things to 7) or just someone else making up an unoriginal concept. Someone should write a thing which traces these memes back to their source and then blows up the source's computer. Anyway, I'm not sure there are seven things, especially when you consider I've already provided five, but here goes.
  • I'm trying to sell my house and move to London. Anyone who's thinking of moving to the West Midlands, buy it, you know you want to.
  • Despite being a prescriptive grammar lunatic, I still get confused by the difference between "who's" and "whose". I have to manually think "who's is short for 'who is'", and phrases like "Barack, whose inauguration was yesterday" still don't look right. Grammar blind spot.
  • I tried out one of these computer dating sites. It was less than successful.
  • I "managed" a "band" (both of these terms are somewhat loosely applied) when we were at university. Of course, "manager" also meant putting all the instruments (a drum kit, a Hammond organ (!), guitars, etc) into the back of my Fiesta, but I did at least sort out a couple of gigs. Simon Cowell eat your heart out.
  • I use Flash and Skype and Opera. So much for my open-source zealotry.
  • I got arrested in Texas once and spent the night in the police station. It's all sorted out, now, though, so I'm allowed to go back.
  • I work for Canonical now. (Probably people know this, but I keep getting "wow, hadn't heard that!" responses, so maybe the word hasn't got out.)
Apparently I'm now supposed to tag seven more people, who then tag seven more, and yea even unto the fiftieth generation like necrotising fasciitis. So:
  1. Bruce Lawson, because he's likely to come up with seven comedy things
  2. mrben, because he tagged me last time with this horrible circulating disclosure meme
  3. Andy, because 'twill be interesting
  4. Tom, one of whose secrets will be "I still haven't got my damned Christmas presents from Stuart" -- one of mine ought to be guilt or something. I'll be around soon, promise.
  5. Stuart Colville, because he's not busy enough at the moment :-)
  6. Kevin Smith (no, not the director), because he never writes anything these days
  7. Josh Blount, so I can learn some useful blackmail facts about someone on my team!
Go to it.

A nice remote for my TV

My television is run by the MythTV PVR software, which I use for watching films and recording TV and playing music and the like. Now, Myth is sort of organised around having a horrible massive remote control with a million buttons on it, which I can't stand. I want something nice and simple (Apple Remote sort of thing), but I wanted it to not use infrared (because IR is a pain in the arse, and you have to be pointing it at the TV, and apparently there are different sorts of IR which are incompatible (you can't buy an Apple Remote and point it at any IR receiver you like and have it work, much to my disgust)). TomTom make a Bluetooth remote control for their high-end satnav units. (It's available at Amazon for thirty quid, which is a bit steep; I think I paid a bit less for it.) Anyway, owing to the wonders of Bluetooth and the Linux Bluez software all working nicely, just pairing with the remote means that it works like a keyboard and everything's perfect. If you see any guides out there on the web telling you to use "hidd" on the command line to set this sort of thing up, they are wrong and out of date. Use the Bluetooth icon on your Gnome panel to pair with the remote, and then use Preferences to connect to it. That's all.

blurry

annoying tease

How my desktop looks

This is more for my benefit than anyone else's. So, it's now early 2009, and after a bout of tweaking how my desktop looks, I'm pretty happy with it. My Ubuntu desktop, January 2009 That's the DarkRoom Gtk theme and my own Prelude-dark Metacity theme (a darkened brown version of the Prelude Metacity theme that Thomas Thurman made for me), with the gorgeous Smokikon icon set, all application, desktop, and document fonts set to Salem 8 point (from the ttf-arabeyes package), with subpixel smoothing turned on, and my simple-but-I-like-it inspired-by-the-Mac-bootsplash desktop background*. So now when I buy a new laptop (it's gonna be the Dell M1330 with Ubuntu on it unless anyone comes up with a reason why not before the end of the month), I'll know how to make it look like this.

The length of the taskbar

Alberto Ruiz talks about the taskbar in Gnome wasting a lot of space, and how launchers, applets and notifications could all be merged (in a post which sounds rather like a pitch for OS X's Dock, or at least a pitch for awn, which is rather like it). I personally turned off my taskbar (and the whole bottom panel) ages ago, because I want more screen room. Instead, I added a Window Selector to the top panel, on the far right-hand-side. To switch between apps by name, therefore, I just throw the mouse up and right into the corner and click, and then choose an app from the menu I then get. I really haven't noticed the lack of the taskbar at all. Gnome panel window selector (To be honest, I don't even do that most of the time; I alt-tab between apps. To be truly honest, now what I do is throw my mouse at the bottom left corner which does Compiz's scale plugin (the OS X Exposê thing), but not everyone's running Compiz.) (An extra note here: OS X has a nice trick where you can click on the window list you get from holding down alt-tab. Can we do that?) I'm not sure about merging launchers and notification icons, though. There's stuff that I want a notification icon for (XChat-Gnome, the new mail notifier, Pidgin) that I don't need a permanently-visible launcher for because I hardly ever start them up (once at the beginning of a session, or not at all because they start themselves).

My window theme

Thomas Thurman, champion that he is, took my request for a theme for Metacity that clones the XFCE Prelude theme and went ahead and did it. What a hero. Anyway, I've tweaked his work a little to make it closer to the XFCE theme (primarily making the border thinner and nudging some of the colours, and hiding the buttons on inactive windows) and you can grab the theme file. Save it as $HOME/.themes/Prelude/metacity-1/metacity-theme-1.xml, then say System > Preferences > Appearance > Customise > Window Border and choose Prelude. Some questions that might spring to mind:
How do you move windows around when there's no title bar?
Hold down Alt and drag them
How do you know the title of a window when there's no title bar?
It turns out I very rarely actually need that. If I really desperately need it then I just throw the mouse at the bottom-left corner which shows me all the windows (it's a clone of Exposê on the Mac) and that shows the titles of every window.
How do you close a window when the close button is so small? Don't you know anything about Fitts' law?
Alt+F4 or Ctrl-Q, normally.
Isn't having to use keyboard shortcuts annoying and slow and wrong and bad and anti-Tognazzini's advice?
Yep. I wouldn't give Prelude to a new user, absolutely not. I'm not a typical user.
Why do this at all?
Because I think it looks pretty. If you don't then don't use it.

This website belongs to Stuart Langridge. Contact details are available. Don't eat yellow snow. Valid HTML5, at least in theory, except for the bits that aren't because I'm that futuristic that I'm ahead of the spec, oh yes. HTML5 help from Bruce Lawson, among others. Fonts from the superb FontSquirrel. End.