Matthew Garrett
Christmas is a time to ignore such trifling details as nearly accidently burning the house down, and instead to focus on what's important in life - working out which hoops to jump through to make new hardware useful without installing less convenient operating systems. This year was more straightforward than some, and merely involved attempting to work out how to give people money in return for books that could then be read on my Sony reader thingy. Shockingly enough, the Sony Ebook Store requires a windows app, so not a good start. There's no shortage of sites that sell ebooks in a variety of formats without any platform dependent awkwardness, though - of course, most of them are inconveniently DRMed. And the only DRMed content the Sonys will read is either Sony's own or some encrypted PDFs[1].Not to worry - the DRMed version of the Mobipocket format is based on a symmetric encryption algorithm from 1991, so finding a way around that isn't much of a problem[2]. The only real issue I had was generating the PID needed to buy one of the damn things in the first place. This 10 character string is generated when you install the Mobipocket reader software, but doing so would again involve Windows.
So here's a trivial C program that generates valid PIDs with working checksums. The PID on its own isn't a secret (given that you can get as many as you want by reinstalling the Windows software), so I can't see any awkward copyright law things going on. And, really, it's just a random string plus a checksum.
CRC code is from SSH, the checksum validation is a reimplementation of code from EBook::Tools::Mobipocket by Zed Pobre. My total creative input was generating a 7 character random string and sticking a dollar sign at the end. Go me.
[1] According to the blurb about the firmware update, though mine still seems to claim that it's not authorised to read DRMed content in the about screen. Possibly it needs keys generating, or something
[2] No, I'm not going to tell you how. The internet exists so you can work these things out without asking me
Git is becoming my main utility for Debian packaging, as I am using it to keep my work on packages I maintain alone or in a team by using
Over the next few days, I m looking at the most popular articles from this site and my previous news website during 2008. I ll be doing it in three parts.
Popularity is measured by page views from local access logs, but some articles were actually more popular in the months after they were first posted, so it s not completely accurate, but let s be forgiving over the holidays, OK?
In June 2007, I bought a new 9-cell-battery for my ThinkPad notebook. Since then, I recorded, via a cron job, every five minutes these bits of information:
It's been a long time since I wrote about aptitude-gtk. Mostly that's
because I haven't been doing any work on it, due to a combination of
several holidays, sickness and (last but certainly not least) an
unfortunate relapse of WoW-addiction. But we have moved the ball
forward since the 
Searching for partial strings
As noted in the 
A while ago, I wrote an initrd script and hook that would allow one
to run a system with root on a Network Block Device (NBD), that I
maintain both upstream and in Debian.
Since then, Laurent Vivier submitted a kernel patch that got
40319
An e-book reader where I can click on any word and enter a definition for it.
The definition will then appear as a tooltip when I hover over the word.
Take that, Iain Banks, and Neal Stephenson!
32
I want Deskview X's terminal program. The one that resizes the font when
the window is resized. Except free and modern.
With modern (ie, auto-layout tiling) window managers, this is less of a
wishlist and more of a missing necessity. Ideally, it would always keep the
window 80 columns (or some other user-defined value) wide.
I've poked around in gnome-terminal's source, and this looks fairly
doable, but I have not found the time to get down and do it.
The Debian Python Modules Team is
Since I've ranted a little recently lets do