This is as days pass by, by Stuart Langridge

Happy New Year

Well, the New Year's celebrations begin soonish. In about an hour I'm going over to Jono's and we're recording the New Year edition of LugRadio, ready for release on Tuesday; and then the LugRadio team are going to party hearty until the dawn, or possibly until we all fall asleep drunk at 12.01am. I've also just driven somewhere to drop off a parcel and was guided there perfectly by my wonderful new satellite navigation box. Plus, Andy gave me The Dark Knight Strikes Again for Christmas yesterday, which I haven't even had time to read yet. In other Andy news, he left his computer here because it's broken. If I drop an Ubuntu install CD in and hit Enter to boot, I get loads of segfault errors before it even gets to the first menu. The same thing happens with a Knoppix 3.4 CD, and it's apparent that the thing that's segfaulting is busybox; when Knoppix chucks a wobbler on booting it drops me to a shell, and using "cp" to copy some files throws a segfault. Why might this be? I'm totally at a loss. Booting the Windows 2000 setup CD also errors before it gets to asking any questions. I've run memtest86 from the Breezy install CD and that says that all the memory's fine. It's an Asrock K7V88 motherboard with 512MB RAM in it. Suggestions welcome.

Merry Christmas

I avoided posting on Christmas Day: as my Gaim away message said, I was "Enjoying Christmas with my family rather than being on the internet". :-) A good day. Delicious roast dinner, nice beers to drink with Sam's dad, and I got a Navman iCN 320 sat-nav thing for the car. We went out and tested it, and it pretty much got everything right; it got a bit lost once in a housing estate because it obviously felt that I should drive down one particular road, which meant that when I tried to ignore it it kept sending me back to that road through various enlarging and circitous routes. So I drove a mile in the wrong direction and then it found us a new way to go. Well pleased with that. The best bit, though, was watching Sam and her dad and Niamh play with Niamh's train set, with Niamh squealing in excitement every time two trains looked like they were about to collide. I wish I'd taken a little video of it but I was a bit slow off the mark, what with reading How to be Good by Nick Hornby, which seems pretty reasonable in the 80% or so that I've read. In other reading news, Tim got me Smax by Alan Moore, which was also great. I like Christmas, especially when it's in my house rather than someone else's. And there's lots still to go; off to Sam's mum's tonight, the LugRadio crew are here on Wednesday, Andy on Friday, my mum and dad on New Year's Day. Nice. Hope you all had a merry Christmas, gang. See you in the New Year.

Watching Father Christmas

Niamh and I are watching Father Christmas with NORAD Tracks Santa again this year. He's in India at the moment; not long to go :)

Archos PMA400 software library

The Archos PMA400 (or PMA430 depending on who you talk to) needs a software library, like the Sharp Zaurus had at killefiz. So, now, it's got one. http://www.kryogenix.org/pma400

Electronic paper

Siemens have come up with really cheaply produceable electronic paper — thirty cents for a 1in x 2in sheet. Great! However, they're talking about using it as labels on packaging: "When you go in a supermarket today, you might see but hardly notice 15 different cereal boxes...but you will notice when some of them will be flashing". Jesus, don't do that. Think through the implications. Imagine it works. Are all the other product companies going to stand by and watch their sales drop? Not at all. So they'll all get flashing packages too. Great for Siemens, bad for us. If this happens and everyone gets flashing packaging, you'll be in exactly the same situation as now — no one product will stand out — but now every supermarket aisle will look like an insane version of the Strip in Las Vegas, and epileptics will have to grow all their own food. E-paper technologies are brilliant, but please, use them to make sheets of paper that I can browse the web with like in The Diamond Age, not to make packaging. Apparently the technology doesn't react fast enough to support video, but that's fine; work out a way of putting memory in it and then make it for 30 cents a sheet so I can put a whole encyclopaedia into one sheet and then give it to someone. Do that now.

LugRadio 2005 Christmas Special

The LugRadio 2005 Christmas Special, "'Tis the season to be Linux" is now available to all you lucky punters to download. I really enjoyed this show; I enjoy them all, but this one especially. Apparently some of the LR community are planning on playing the LugRadio Drinking Game on IRC tonight, so if you read this before about 7pm GMT on 2005-12-19, drop into #lugradio on Freenode with beer in tow. Oh, and tune in again in two weeks for the first episode of the new year, in which we will give our predictions for 2006! Oh yes!

SurfControl in libraries

I'm in the public library. They have the rather neat feature that you can use the net for free; good on the library! I've just been reading up about cross-compilation, and I followed a link to an IBM article, at http://www-128.ibm.com/developerworks/linux/library/wi-zaurus/, which seems to no longer exist (thanks for that, IBM!). It's not in the Google Cache either, so off I went to the Wayback Machine. The URL http://web.archive.org/web/*/http://www-128.ibm.com/developerworks/linux/library/wi-zaurus/ is unavailable to me, because apparently it's been "blocked by SurfControl". Now, I don't blame the library particularly for putting in some blocking software, since they'd never get any government funding without it, but this is why blocking software is bad. You see, they have this big list of URLs that you shouldn't go to, but the Internet Archive would give you a way of getting to those URLs without visiting them directly. So, what's the solution, boys and girls? Yes! Block all of archive.org! Hooray for that! Thanks! Morons. The Peacefire people have a lot more to say about this, including examples of where blocking software is used by the manufacturers to push a political agenda, which is contemptible. Of course, I can't see that from here, because that site is also blocked by SurfControl. No hidden agenda there, obviously. Update: Bloglines is blocked as well. Those damned seditious bloggers; can't have you reading any of that.

Run Your Own Web Server Using Linux & Apache

My second book, Run Your Own Web Server Using Linux & Apache, is available from SitePoint. If you're thinking of putting up a web server and you want to do it all with Free Software, and use the industry standard Apache to do it, then you might find the book useful. A collaboration between me and Tony Steidler-Dennison, it should take you through everything you need to know. Run Your Own Web Server Using Linux & Apache

Difference to be different

Luis Villa:
So if you're tempted to pound out another line of argumentation about whether GNOME is better, or KDE is better, or what have you, go write code for something that actually makes Linux a clear, innovative leader in something, even if there is a risk that innovation will fall flat on its face. Think of an idea that will make your mother or your father or your non-technical siblings say 'wow, that rules- I must switch to Linux so I can have that!' And then go implement it. Hell, do a half-assed job. Just do something new and different, and share it with the world so others can run with it, adjust it, or maybe just worship it because you got it right the first time. Don't go tweak KDE a little more to beat GNOME, or tweak GNOME a little more to beat KDE. Do something new. Do something exciting. Get us out of our rut.
Yes. Yes indeed. "Do something new and different". "Go write code for something that actually makes Linux a clear, innovative leader in something." That's what I meant when I said on LugRadio that we should be different for difference's sake, that we need to do something to capture people's minds. See, Luis Villa gets it!

There should be no suspend or hibernate

What with all the performance work that's been going into Gnome recently, I've firmed up a belief that I've held for a while: there shouldn't be "suspend" or "hibernate" functions. There should be no difference between "shut down", "suspend to disc", and "suspend to RAM". If bootup is fast enough, and if your desktop remembers which apps are running and restarts them with their remembered status in the same place they were when you shut down, which your desktop should do, then there's no need for "hibernate" or "suspend". Just shut down, and restart when you turn on again. I'm not sure it's possible to make booting that fast. But it should be.

Buddy Ping

Some, or indeed all, of you might have received an email from me inviting you to try out a service called "buddyPing". I didn't mean to send them. It looks like a faintly useful service, so I thought I'd try it out, and it offers a facility to import your Gmail address book. I thought that that would add all those people to my list of buddyPing contacts. Instead, it mailed them all, everyone, to ask them if they'd like to become a buddyPing contact. Sorry about that. I shall mention to the buddyPing team that it might want to say "this is about to send email to everyone you've ever met; are you sure you want to do that?" or warn you first or something...

Foxpose and Optimoz

Foxpose is a Firefox extension* that shows all your tabs, shrunk, inside the window so you can choose between them. It's obviously a blatant rip-off of OS X's Expose, but then that's a good UI and so using it in other places is a good idea. However, having to find the tiny icon in the Firefox status bar and click on it to do the Foxpose thing is a major pain in the arse; it means that using Foxpose is considerably slower than scanning your tab titles. Yes, there's a hotkey, but that's still a pain (not least because you have to focus Firefox first and then press the hotkey and then switch back to the mouse to click on a tab and...bah). Optimoz is a Firefox extension that allows you to use "mouse gestures": hold down a button or a hotkey and draw a shape on your Firefox window and something happens, depending on what the shape was. For example, drawing a short line from right to left does the same as pressing the Back button; drawing a squarish lower-case h (go down, up, right, down) goes to the home page, and so on. It's most useful. These two can be profitably combined. In Optimoz, set up a "custom" action. You can customise Optimoz by going to Tools > Extensions > Mouse Gestures > Options. From there, click Edit Mappings on the General tab. Add a new mapping with New. In Function type set Custom, in Mapping name write Foxpose, and in Custom JavaScript code write Viamatic.Xpose.Main(); (thanks to Jens Bannmann for help there!). Then click Recognize and draw a mouse gesture in the box that appears (I use a line left-to-right and then right-to-left, so my gesture is coded as RL, but pick whatever you want). OK button all the way out. You can now use your chosen mouse gesture to do the Foxpose thing. Marvellous.

The wonderful world of mathematics

At the Wolves LUG meeting last night, we got into a discussion of mathematics (see, I told you these meetings were exciting). Jono took the Luddite position that maths was extremely boring and of no relevance to the real world, a position that I imagine he's not the only person to hold. So I tried convincing him that maths was interesting and had a point, but didn't get very far. The attempt to demonstrate its interestingness was by relating a couple of maths anecdotes. Firstly, Euler's formula, eiπ + 1 = 0, which relates the five most fundamental constants in mathematics and is the clearest evidence I know of of some kind of underlying order in the universe, since e and π are both transcendental and i is imaginary and yet they combine to make 1. Jono liked that one. Secondly, I talked about Hilbert's Hotel, since I think stuff to do with infinities is fascinating and the idea of a full hotel being able to accommodate one new guest, an infinite number of new guests, and an infinite number of coaches each with an infinite number of guests on board is just mind-blowing. That one didn't go down too well, so I abandoned my third attempt, which was to talk about the difference between aleph-null and the continuum (which is handy since I can't remember how to prove there is such a difference without Cantor's diagonal proof and you need pen and paper to demonstrate that). So, I throw the question open. Since I've had snarky maths comments every year when I play guess-the-age on my birthday (2003 2004 2005), I assume there are some mathematically capable people reading this. Tell me some examples of how mathematics is beautiful and simple and elegant that can be used to convince a non-maths person what you see in the tumbling world of numbers. Note that the last part is important; if you think that Andrew Wiles' proof of Fermat's last theorem is elegant and beautiful then I don't want to hear about it. I spoke a little about axioms, with the intention of then going on to Russell's Principia Mathematica and then knocking it all down with Gödel, but we never got that far. The second thing to demonstrate is that maths is really relevant to the real world and has a point. I talked a little about how pure maths came up with i as a pointless theoretical concept and it then turned out to be useful in electrical engineering, but we never got very far into that. So, again, the question's open. Demonstrate to a non-maths person why maths is important to the real world. Answers involving the phrases "joy of discovery" or "sacred guild of scholars" or similar are not wanted here. These also have to be semi-constructive demonstrations: when Dan presented the argument that "maths describes quantum physics and that's where computers come from", there was no clear recognition by our Luddite audience that that actually meant anything. How does maths make quantum physics work? Speak on, maths readers.

Ubuntu installer kernel panic

Andy and I spent about three hours on the phone yesterday trying to boot Ubuntu on his machine. He's put a new hard drive in it, so there's no OS on the machine at all (the old HDD got scragged, so he bought a new one). He's got Ubuntu 5.04 Hoary install and live CDs, and they kernel panic as soon as they boot; before you even get to the menus. We seem to have narrowed it down to a problem with the memory, but it's difficult to tell 'cos memtest86 isn't on those CDs. Debugging over the phone is a slow process, and poor Andy is without a machine at the moment because I don't know how to fix it...

LinkedIn contacts

I had an account on a service called LinkedIn. Seemed quite a nice thing; it codified social networks, so you could "link" to people you knew who had accounts there, or link to people you knew who didn't have an account and it would send them an invitation to set one up. Most of the web people I knew were on there, and we were all connected; a couple of times I've come across a random name I didn't know and searched for them on LinkedIn and found that they were on there, with a "six-degress-of-separation" chain which showed me how to contact them -- I know X, X knows Y, Y knows the person. That sort of thing. Seemed quite useful. I just got another invite from someone I know to whom I wasn't directly connected; went to the website to agree to the connection; and...it's deleted all my contacts. All of them. Bastard! I spent ages setting those up! What's up with that? What's the point of a service that purports to maintain your list of acquaintances and then loses that list, huh? Now, it's possible that this is some kind of tactic designed to get me to pay for an account; if it is then it's a nasty underhand tactic. If it's just a mistake then I hope it can be rectified; I shall mail them about backups.

Real's Rhapsody

Anyone know anything about Real's Rhapsody online music download service? They've apparently just gone entirely web-based, opening up their market to Linux and Mac users. If you buy a track from them, what format do you get it in? There's some talk about a subscription model, but they're pushing the idea of mobile devices to listen to your music, including my Archos PMA400 -- how does that work with subscription? If I download a file and put it on my Archos, how does it know whether I've paid for it or not? The Rhapsody people don't seem to say much about formats and how it all works; any good pointers or knowledgeable people want to help me out?

What's going on

Lots of stuff circling over Heathrow. I am pretty much coming to the conclusion that I should write about ideas that I have rather than stashing them away in the black hole that is my projects list, because otherwise they'll never get done. I don't like doing that; I'm pretty firmly of the opinion that if you think a thing would be good then you should just write it rather than just writing about it; Ade would say that I do that all the time, because I write specs rather than writing code, but I try fairly hard to not do so. Nonetheless, these ideas should live somewhere other than my head, I think. So some posts should be forthcoming about stuff that's on my mind. Before that, though, a few notes on random cool things I know about. Telewest, my cable provider, have launched a new service called Teleport. It's very cool indeed. It's, in fact, the long-promised a la carte TV: you can watch programmes whenever you want, rather than when they're on. At first, it seemed a bit rubbish: they have a Teleport Films section where you can purchase a film for watching. Now, Telewest already had that with Front Row (now rebranded FilmFlex), but Teleport Films also contains films that aren't the latest releases; we watched Tango and Cash the other day. After buying a film you can watch it as many times as you like within 24 hours, which is faintly cool. Nonetheless, that's not all that exciting. We then discovered Teleport TV, which is (again) not all that revolutionary: you can pick TV programmes and watch them, from a pretty limited list. Most of the programmes are rubbish and stuff you wouldn't want to watch anyway: one exception is Waking the Dead, a BBC murder drama which we've started watching and all three series of which are available with Teleport TV. So, again, that's faintly cool, but the selection's not up to much. Then we discovered that it has TiVo-like properties of being able to pause and rewind and fast-forward the programmes via the remote control, which was invaluably helpful when Sam and I look at one anotherand say "what did he just say?" or when we want to skip the credits on something. Finally, I discovered Teleport Replay, which has loads of programmes that were on over the last seven days also available for watching (which go away after those 7 days, much like the BBC Radio "Listen Again" service). Including Top Gear, which I shall now never miss again. Well done Telewest. This is a pretty darn good service, although I'd like to see more programmes available for Teleport TV, and the user interface is, as usual for Telewest, dog slow. Nonetheless, nice one. Jono and I moved all the remaining sites from the old version of our server to the new version. Creating each site was pretty easy. For those unsure about how to use Apache2, a very short HOWTO. To create a site www.example.com, I do it like this (either as root, or using sudo for each command):
mkdir /var/www/example.com
mkdir /var/www/example.com/html
(place all files for the site in /var/www/example.com/html)
chmod -R a+rx /var/www/example.com/html
chown -R username /var/www/example.com
(use username that should own the site in line above)
cd /etc/apache2/sites-available
nano example.com
(place the following in the example.com file you're editing)
<VirtualHost *>
ServerAdmin email@address.of.admin
DocumentRoot /var/www/example.com/html
ServerName www.example.com

ServerAlias example.com

</VirtualHost>
(now back to the prompt)
cd /etc/apache2/sites-enabled
ln -s ../sites-available/example.com .
/etc/init.d/apache2 restart
(and that site should now be working) David Morley on the Wolves LUG list is putting together some video tutorials about how to use Linux from a newbie's perspective. I'd like to see this: I wrote some instructions on how to use vnc2swf for recording a video tutorial (and see the remainder of the thread for corrections). Now, there already is a tool to do this: Gnome's Istanbul. It's got a good UI in principle; starting it drops a "record" icon on your panel. Click the icon to start recording, click it again to stop recording. It outputs to Ogg Theora. I think the UI could be improved a bit, though; for one, it should record screencasts and save them as Screencast1, Screencast2, etc, on your desktop, rather than making you specify a name (as the Gnome screenshot tool does). At some point I'd like to hack on it to make that possible, but this is one of those "don't have enough time" projects. I'd also like to see it be able to output to Flash, as does vnc2swf. However, I don't want to do that until I've confirmed for myself that the GPLFlash project can play such created videos. Being able to just drop Flash stuff on a web page is something of a bonus for stuff like this; I don't really like in-browser video plugins, mainly because they never seem to work right for me. We put up our (first) Christmas tree yesterday. Niamh really likes putting up Christmas decorations. It does rather amaze me that it's come upon us so fast, but, hey, we like Christmas. The second tree will be forthcoming once the new flooring is down in the library, which doesn't happen until about the 22nd December or something, so bah humbug to that! Anyone want to buy a piano, by the way? We've run out of room for it. Random linkage, from Bloglines' Keep New. Incidentally, has anyone else noticed that Bloglines is getting a bit more shit recently? Slower, down a bit more, behaving a bit more oddly? People seem to be moving to personal installations of Gregarius, which I might do.

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.