Author: Andy Balaam

  • Caution: numbers that feel prime may be divisible by 3

    Caution: numbers that feel prime may be divisible by 3. For example, 51 and 57. Conversely, numbers that feel divisible by 3 may be prime. For example, 61, 89 and 97. Nominations for least prime-feeling numbers that actually are prime: 89 and 101. Nomi…

  • Announcing Record TV

    Last night I uploaded the first public version of my latest project, Record TV. Record TV is a system for recording TV (on a Linux desktop computer) that is designed to allow lots of different user interfaces all to use the same back end. It is current…

  • FreeGuide 0.10.5

    After over a year, and several U-turns, the next version of FreeGuide is out. I was dead-set on getting recording functionality into it, and when some students turned up asking to help, I directed them towards doing that. They produced a reasonable fra…

  • FreeGuide SVN now useable

    Why not try the latest SVN version of FreeGuide, which contains lots of bug fixes over 0.10.4? There are detailed instructions on how to Build FreeGuide from SVN, and do ask on the developers’ list if you have problems. I’ve fixed the horrible bug that…

  • Heartfelt apologies for the feed URL change

    Sorry, sorry, sorry, sorry. I decided to change to wordpress’ pretty-URLs mode, and it changed the feed URL, which I was not expecting, and which I think is fundamentally borken.

  • FreeGuide – putting recording on hold

    FreeGuide has been stalled for about a year because the basic code for recording programmes has been sitting in SVN, but it contained far too many bugs to be useable, even by the developers. This kind of situation completely takes the wind out of devel…

  • New Baby arrived safely

    I won’t waste too much of your time, but here she is: She’s excellent, and mum is doing really well. Big brother appears to be a little bothered, but presumably that will pass.

  • (Badly wrong) usage statistics for FreeGuide

    A long time ago I added functionality to FreeGuide so people could opt to report their use of FreeGuide to under a username, or anonymously. This all happens as part of the latest version check, and you can turn it off, obviously. Quite a long time ago…

  • Procmail Maildir messages disappearing

    Google-friendly title, no? Executive summary: In your ~/.procmailrc MAILDIR=$HOME/Maildir – is BAD, whereas MAILDIR=$HOME/Maildir/ – is good. The slash at the end appears to tell procmail that this is a Maildir directory, rather than something else, el…

  • last.fm in GSSMP

    Obviously I should have gone to bed, but I’ve got last.fm support working in GSSMP. It’s in the git repo, and I should get a release out as soon as I’ve written a little bit of documentation.

  • lastfmsubmitd on Ubuntu Dapper

    So I had been thinking about putting last.fm support into GSSMP, and then I got an email to the mailing list suggesting it, and then I couldn’t sleep tonight, and, as ever, something that sounded easy has turned into a saga. I decided to use lastfmsubm…

  • Obviously, there was a bug

    So I’ve released GSSMP 1.1, which is guaranteed to contain one fewer bugs, and is relatively unlikely to contain any new ones. Also, thanks to João Pinto, it should build without warnings on AMD64 too! If anyone wants to make an AMD64 package, I’d be …

  • Watching TV: a simpler way

    MPlayer is a black art. GMPlayer, doubly so. It turns out this does the job much better than my previous hacks: #!/bin/bash gmplayer -cache 2048 -zoom “dvb://$1” It’s still not perfect for radio over digital TV, though – you get an empty window where t…

  • GSSMP 1.0

    Get it here: http://gssmp.sourceforge.net. This is the first time I’ve declared one of my projects stable, and given it a 1.0 version number. Prove me wrong by downloading it and breaking it. Enjoy. Now I must dash – I’ve just got to finish off my othe…

  • Choose channel dialog

    Following on from the last post about how I got my TV card working, here is a little script I wrote that allows me to choose a channel and start watching. It uses zenity for a rudimentary GUI: $ cat bin/tv_choose_channel #!/bin/bash awk -F ‘:’ ‘{print …

  • Digital TV on Dapper with my Hauppauge WinTV Nova-T card

    My card reports itself like this: $ lspci *snip* 0000:00:0a.0 Multimedia controller: Philips Semiconductors SAA7146 (rev 01) *snip Everything seemed to work out of the box: $ dmesg | grep DVB -A 0 -B 3 [17179585.872000] saa7146: register extension ‘bud…

  • Restoring a backup with Duplicity

    See the last post for how I back up my important files to a remote server. To restore them I do this: duplicity –file-to-restore path/to/file.txt scp://user@example.com//home/example/bkp/home/andy/Maildir file.txt and enter the passphrase when pro…

  • Remote encrypted backup with duplicity

    My father-in-law’s hard drive died the other day and I was just able to recover the data using Knoppix and my iRiver. Since I recently discovered a superb program that lets me create encrypted backups on a remote server over ssh, I thought I’d spread t…

  • GSSMP goes beta

    I’ve just released version 0.9 of GSSMP, and since I’ve fixed all the bugs I know about (except working around a gstreamer bug, which I will try to do before 1.0), I’ve marked this release as beta. This is the second project I’ve marked as beta, and I …

  • Recording in FreeGuide

    If you download the nightly builds of FreeGuide, you can try out the new recording functionality. There is quite a bit to do before this is ready for release. There are several bugs in the TODO list and you have to create your own scripts at the moment…

  • My daily backup

    I recently recovered my files from my daily backup, which had actually worked! (Pop quiz: this is how I deleted half my home dir – what is wrong with this Makefile? TMP_DIR=/tmp/gssmp blah: blah1 blah … blah7: … rm -rf $TMPDIR/ … …

  • Creating .deb and RPM packages

    Since I’ve managed to get it to work for GSSMP, I thought I might share how I am generating .deb and RPM packages using a Makefile. These make it much easier for Ubuntu and Fedora Linux users (respectively) to install the program. It should also be hel…

  • Moved to WordPress

    I’ve moved my blog to WordPress, which will allows you to comment on my posts. I guess it’s a sad day for DIYBlog, but hey, it was just a workaround until I got some web space that supported PHP. Happy interaction!

  • Two new babies

    I have 2 new babies to tell you about: Gnome Simple Stateful Music Player which is a music player that just stays out of your face, playing music off your hard drive without making a database or anything like that. It uses GNOME/GTK, GConf and gstream…

  • New games!

    I’ve been really enjoying the GP2X I got for our 5-year anniversary (!) and have got DVD ripping working, along with Quake playing at a decent speed, and lots of downloadable games, notably Spout, which is excellent, and (unlike many games which are re…

  • Linux Journal – Forgiveness

    Dear LJ, A few months ago I wrote to you saying we had to break up – you had become too chatty and opinion-filled for my taste. I have to admit that it turns out I was bluffing. I love you too much, and today I renewed my subscription. You did take a s…

  • Another FreeGuide release candidate

    I screwed up the RPM, so if you tried that, try the latest one from here: freeguide-tv.sf.net/rc

  • FreeGuide 0.10.4 release candidate

    Lots and lots of bug fixes, and some cool features sneaked in by people who obviously didn’t read my TODO list 😉 means that FreeGuide 0.10.4 is nearly ready. You can test it by downloading the relevant installer from freeguide-tv.sf.net/rc. I’ve put u…

  • A Quick and desperate introduction to data recovery

    No, I did not just develop a passing interest in data recovery as a leisure activity. Presumably like everyone else, I learnt about it because it was necessary. A year or two ago my friend’s computer was packing up, and he asked me to extract and store…

  • FreeGuide fan mail

    Really encouraged to receive this: Hello Mr Balaam, A quick email to thank you for giving the world the brilliant Freeguide. (I saw in your blog that you have a high volume of email – no reply needed). I tried Digiguide for a while, loved the principle…

  • Over-engineering gone mad

    Picture the scene: you are writing a Java application and you’re trying to do things right, so you use the java.util.logging code to do your logging. To create a logger you do this: Logger log = Logger.getLogger( “name” ); Everything goes fine until yo…

  • Keyboard layout change in Ubuntu

    I’ve had this problem a couple of times in my Ubuntu machine. I installed it with US keyboard layout, and then changed it to UK later (for my user). Even when I select the correct keyboard model (Generic 105-key (Intl) PC), and layout (United Kingdom I…

  • FreeGuide source layout (and SVN migration)

    Christian and others have pointed out lots of problems with the source code layout in FreeGuide. The biggest problem is that each plugin has its own source tree which makes it very difficult to set up in an IDE like Eclipse. I knew it needed doing, and…

  • Letter to Linux Journal

    Dear LJ, I’d like to start by saying thank you very much for the years of quality articles and features that your magazine has provided. I eagerly await the arrival of each month’s copy as it jets over the Atlantic to my doorstep. LJ has always provide…

  • Linux Journal slides

    jdub notes that Linux Journal is going to the dogs. If the only change were to the back page I could get over it and move on, but so far I am about half way through the latest issue (March 2006?) and I’ve read nothing but opinion pieces. I can get all …

  • Donation

    Forgot to mention: I got my first non-anonymous donation to the FreeGuide project – Steve Fuller sent in a donation along with a request (but with no implication of linkage ;). Thanks Steve! It never ceases to amaze me how Americans will donate to proj…

  • FreeGuide update

    I have very little time for FreeGuide at the moment. Part of the problem is that there are lots of boring bugs to fix instead of interesting new features, and it’s hard to motivate myself to get into it. I am really keen on making it Just Work every ti…

  • Faster Poker Analysis

    Forgot to mention that I also have one other optimisation up my sleeve: instead of fully analysing each hand I could only do that when I need it i.e. when the hand type is the same, so I could just return “flush” and only if your opponent also has a fl…

  • Poker Analysis

    I’ve just requested sourceforge space for my latest mini-project: Poker Analysis. I’ve been a big fan of poker for years, and am pleased to see everyone is catching up with me finally with the boom of Internet poker. I’ve started playing a little onlin…

  • Podcasts I listen to

    I use a modestly-modified BashPodder to download my podcasts (Internet radio shows) automatically every night, and sort them into different directories. If anyone is interested in my modifications, do ask and I can send them to you. I haven’t sent them…

  • Setting up my ideal email system 4

    Sending mail I used to do something clever with sendmail, but then spamcop blocked my computer because it apparently wasn’t set up properly, so now I use my ISP’s smtp server like everyone else. When I need to tunnel in I simply create a tunnel from lo…

  • I spawn

  • Setting up my ideal email system 3

    Fetchmail setup My ISP provides my email by POP3, so I use fetchmail to download it every 10 minutes. I created a file .fetchmailrc file in my home directory that looks like this: # Configuration created Wed Jul 27 06:43:07 2005 by fetchmailconf set po…

  • FreeGuide 0.10pre2

    So I’ve put out FreeGuide version 0.10pre2, and then a little bug-fix release because the Linux RPMs were broken. By calling this 0.10pre2-2 I managed to annoy my faithful Gentoo packager Christian, and myself, but at the time it seemed too much hassle…

  • Setting up my ideal email system 2

    Setting up Mozilla Thunderbird On the same machine that was running Dovecot, I set up Thunderbird to be able to access my email. I did this by creating a new email account (which I called “Andy IMAP”), choosing “localhost” as the server, and entering t…

  • Setting up my ideal email system

    Recently I have managed to get pretty much my ideal email system set up. This is the kind of thing that would simply be impossible on a Windows box, but (when you know how) is a quick job on Linux. I didn’t know how, but now I do (ish). I’m going to do…

  • Just a little bit longer…

    Now that my Christian youth holiday is over, I’ve got just one more major job to do before I can get back to working on FreeGuide: my thesis corrections. I don’t know how long it’s going to take, but it will certainly be painful. It might be best to av…

  • BashPodder

    I really must get BashPodder working, not only to download my two favourite Linux shows TLLTS and LugRadio but also because Radio 4 has started making Today and the best radio programme out there, From Our Own Correspondent available for podcast downlo…

  • Python objects in C++

    Sometime I find myself thinking in Python. Or, accurately, wistfully thinking of Python. Raw C++ is completely hamstrung when it comes to simple concepts like handling strings or dealing with lists (maybe BOOST is better?). Why can’t I just do this: re…

  • CD writing on Fedora Core 3

    I’m now thing of moving off Fedora Core 3 (probably to Ubuntu, or maybe FC4 for the Java stuff) and it turns out I’ve never written a CD from it, because when I tried it didn’t work: I kept getting the message “cdrecord: Success. Cannot open SCSI drive…

  • Prince of Persia – The Sands of Time

    arrived through the post from ebay yesterday. It is superb. Exactly my kind of game, and with loads of features from the old game (one of my favourites of all time), all updated and made even more beautiful. It is incredibly atmospheric, and so far the…

  • Personal stuff is boring

    …and I am not a big fan of pictures in blogs, but this is a special occasion: World domination is nigh. Soon we shall all be Balaams.

  • Sourceforge

    I have requested a Sourceforge project for DIYBlog, and it just struck me again how utterly fantastic Sourceforge is. What would the Free and Open Source Software world be like now without Sourceforge? A lot poorer, I reckon. I’m desperately trying to …

  • London

    London is a little quieter than normal this morning, but still pretty busy. It seems like most people are going to work, although some are having to walk. There are definitely fewer tourists on the streets.

  • London terrorist attacks

    As a largely unmilitarised country, Britain (like many other Western countries) is a soft target for terrorists. But that very softness makes attacking us in this way pointless: it’s like punching a sponge. We won’t change – we like our country how it …

  • The dangers of learning to code

    I was speaking to someone over the weekend who works in HR and has been enjoying making various Microsoft Access databases to do useful things for work. I warned her she might get the programming bug and then never be able to stop. Then I realised she …

  • Train gaming

    For my train journey, I ended up downloading a few emulators that didn’t work, and a few games that didn’t work, but what did work was the PC version of Prince of Persia, and the PC version of Cannon Fodder, both of which were very enjoyable. Especiall…

  • Constantly changing passwords

    I know it’s supposed to be best practice to force users to change their passwords regularly, but how are we supposed to remember them? I wonder whether anyone has done any research into passwords becoming lower quality as people are asked to change the…

  • Gaming on the move

    We’re taking a 4.5 hour train ride to Leeds at the weekend, and then even longer on the way home, so I am hoping to entertain myself using a Windows 2000 laptop with no CD drive. The options I’m thinking of are: Pingus Prince of Persia on WinUAE Conti…

  • ATV Palm export

    We’ve already had a bug report/feature request for the ATV Palm plugin Alex wrote, so it’s obviously going to be pretty popular. It’s really great that Alex is doing so much work on FreeGuide at the moment. We are having our disagreements here and ther…

  • Nearing a new release

    FreeGuide is hopefully nearing a new release. Alex has been working on the plugins system, and hopefully I will be able to test it this week. If it works ok, we’ll release it as unstable, and then with a few bug fixes we should be able to make the next…

  • DIYPlanet

    When I wrote DIYBlog it occurred to me that what I was writing would translate into a blog aggregator pretty easily, and so I’m working on making that so. I’d like to start a little community of Java developers who are working on small free and open so…

  • Re-implementing

    Been discussing with Alex about the dangers of re-implementing – he wants to simplify the command-line arguments code in FreeGuide, but rather than modifying the existing code, he’s re-written it. The problem with re-writing is that old code usually ha…

  • Honestly my last post about my viva

    …for a while. Woke up at 4.30am today having awful dreams about how none of the code worked. My dreams transposed the problems I am trying to solve at work onto the code I need to write for my corrections. I couldn’t stand it any longer so I got up a…

  • Corrections

    Well, I passed, so I should be happy, but I’ve got to do some corrections before I become a doctor, so I’m feeling disappointed, but really I’m very close to finally achieving what I’ve worked so hard for. Just one last push.

  • Viva today

    Today I find out whether I get a PhD. I’ve been strangely not-nervous about it, although I’ve woken up pretty early this morning. It’s difficult to `revise’ since most of what we’ll be talking about is what I wrote. I’ve been trying to refresh my memor…

  • Mnemonic

    I made a page for the band Pete Beresford and me had when we were at uni. You can download the 3 songs I was getting around to sending to John Peel. If you like your metal instrumental and a tiny bit Propellorheads, it might be for you: Mnemonic. If yo…

  • FreeGuide’s TODO list

    Take a look at the latest TODO list. There are several categories of things on it: Already done e.g. “Add firefox to the possible browsers.” Completeness features e.g. “Use Java’s printing capabilities to print” Feature creep e.g. “Automatically make …

  • FreeGuide packaging and plugins

    I couldn’t sleep last night, I think because my viva for my DPhil (PhD) is coming up on Monday. Work is going to be a struggle, but at least I got a chance to think about FreeGuide. Alex is working on a plugins system (it’s sort-of-working in CVS) that…

  • DIYBlog

    I’ve made a page about how I’m making this blog, here: DIYBlog. I may even get around to putting it on freshmeat at some point, and if others want to contribute I may even put it on SourceForge.

  • RSS working?

    I think I’ve managed to work out a system to make RSS work. Basically I write my blog entries into a raw RSS file, and then run a little Python script to add ids, links etc. and generate an HTML page from that. It’s been a hassle to write (mainly due t…

  • Prediction: corporate Linux

    By Thursday 9th June 2015 30% of corporate desktop computers will be running operating systems (and desktop environments) which satisfy the Open Source Definition.

  • Guilty Expression

    Having previously been the anonymous benevolent dictator of Guilty Expression I have decided to become non-anonymous and I’ll just have to make sure what I write there is either acceptable or I’ll have to log out before I write it. Guilty Expression is…

  • RSS

    I really should provide an RSS feed. Does anyone know of a good reference on the simplest form of RSS that I can use to auto-generate some RSS from the HTML of this page? I’m prepared to do a little python coding to make it happen. Give me an email if …

  • A real job

    Getting used to working is an interesting thing. I haven’t been as tired as I thought I might be, probably partly because I got into a routine of getting up at 7am with my wife (she was working while I did my PhD). However, the weirdness of how much of…

  • What is going on with FreeGuide?

    I thought I’d write a little bit about FreeGuide, since I’m planning to link this page off the FreeGuide page. I’m the lead developer on FreeGuide, and having just started a new job (which so far is excellent) my free time is seriously limited, especia…

  • Google

    Can’t decide what to think about Google. I was very suspicious about gmail, and this whole portal business is very boring, and _so_ corporate, but you really can’t argue with sponsoring open source contributions, can you? If doing this kind of thing st…

  • Beginning blog

    I’ve decided to start writing a blog, not least to convince people that although my work on open source projects (especially FreeGuide) has slowed down, it has not slipped out of my mind. Quite the opposite: I’m finding my lack of time very frustrating…