My mail client of choice is Thunderbird. It’s always served me well, but recently I’ve noticed that my laptop’s battery life is abysmal when it’s running. A bit of poking reveals that it’s a real CPU hog if you have large mail folders (and I never delete anything!). Finally I found this bug report which has a working solution. It makes Thunderbird 17.0.2 much more gentle on the CPU, and according to the report, should work from version 15 onwards. Perhaps they’ll fix this by default eventually, but for now here’s a quick step-by-step on how to fix the problem yourself.
Continue reading
How to stop Thunderbird hammering your CPU
Filed under random
Another reason to dislike my MP (as if I needed one)
This is a picture of Geoffrey Clifton-Brown, my MP. There are several reasons why I don’t like him. First—and most obvious—is that he’s a Tory, and just about the only thing I have in common with Conservatives is that we both like the colour blue. Secondly, he’s an archetypical Tory[1]: he’s related to the 1st Viscount Ruffside, went to Eton, receives an income from properties in London and Norfolk, ‘flipped’ his second home to Gloucestershire, and of course he likes firing guns at things. Finally—and most annoyingly—I’m stuck with him. He’s been an MP continuously since 1992, and in 2010 he polled a majority of over 12,000, making him pretty much untouchable.
Continue reading
How to align partitions for best performance using parted
There are two common problems when creating partitions in Linux on big storage arrays. The first is easy, and the warning message from fdisk is a bit of a giveaway:
WARNING: The size of this disk is 8.0 TB (7970004230144 bytes). DOS partition table format can not be used on drives for volumes larger than (2199023255040 bytes) for 512-byte sectors. Use parted(1) and GUID partition table format (GPT).
The answer: use parted. Don’t have it? Install it!
Continue reading
Filed under storage
If the Church of England wants to be sexist, it should walk away from the Lords
Unfortunately, this misguided decision affects us all. Continue reading
Cotswold District Council’s finances laid bare
A couple of weeks ago (when I was supposed to be revising), I added some code to Armchair Auditor, a great bit of free software by Adrian Short. He wrote it to ingest spending data from Windsor and Maidenhead and present it to the public in a form that’s easily used for analysis and general poking around.
Recently, Cotswold District Council announced that it would start including all payments to suppliers without a lower limit (previously this limit was £500). My addition to Armchair Auditor allows for the processing of CDC’s spending data (with all its formatting idiosyncrasies) so that it can be presented in as useful a way.
I’m no data analyst, but perhaps there are interesting things to be found in the data. Have a look at the Cotswold District Council Armchair Auditor, and see what you can find—and please do leave a comment if anything interesting turns up!
Filed under politics
Getting rid of automounts that won’t go away
If you delete an automount from a map and restart the daemon, the mountpoint should go away… but sometimes it doesn’t, and you end up with this:
drwxr-xr-x 2 root root 0 Oct 22 11:24 /wibble
The size of zero indicates that the system still sees a mountpoint here, and in /proc/mounts you’ll see something like
/etc/auto.mymap /wibble autofs rw,relatime,fd=5,pgrp=31311,timeout=86400,minproto=5,maxproto=5,direct 0 0
So the mountpoint is both there and not there, and any attempt to access it will hang. Trying to unmount it manually doesn’t work either. This can cause merry hell: on a default system, the updatedb process that locate uses will hang forever when it reaches the mountpoint (even though it’s configured to ignore nfs and autofs), and the rest of cron.daily will never be reached, so no log rotation for you. After a few days you’ll see lots of find processes cluttering up the place.
A reboot will fix it of course, but there is a much simpler and less destructive way:
umount -l /wibble
The ‘-l’ option is described in the manpage as
Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore. (Requires kernel 2.4.11 or later.)
That suggests a reboot might be warranted at some point to make sure it’s completely gone away, but it certainly does the trick. The entry in /proc/mounts disappears, and the directory now looks like
drwxr-xr-x 7 root root 4096 Oct 22 11:40 /wibble
A much healthier-looking directory, which you can now safely delete. Don’t forget to kill all those backlogged jobs too.
Filed under Uncategorized
The fragments of a short and tragic life
The story of Jewish migration in the last 150 years is amply documented. It is a seemingly endless trail of persecution, destitution, and desperate flight from home. Its legacy is written across the world, and is etched into the modern Jewish character: many older Jews will wear expensive jewellery as an instinctive hedge against the possibility that one day they might have to flee. Ultimately—at least from a popular modern perspective—it was a story with a happy ending: those that escaped worked hard and eventually built successful lives elsewhere, securing a bright future for their children. Of course this is saccharine. Like the refugees of today, many migrants remained desperate and obscure, leaving little for history to record. From the fragments that remain, I have reconstructed the life of one unremarkable man.
Continue reading
Filed under random
