Author: Avi

  • Why I won’t be mirroring Wikileaks

    I have a fair amount of ‘spare’ server space, and some very understanding service providers, and so it makes sense for me to mirror things in general, which I do. So when Wikileaks went down, mirroring it seemed quite a natural response. They need mirrors, and I have a mirror. I’ve been looking for something…

  • Getting root on a UK T-Mobile Galaxy S

    It’s a bit weird. The process was really easy, but none of the tutorials I found worked; each stopped working at one point or another. So, assuming other people will hit the same barriers and want a Just Works way to get root, I’ve gone through my terminal history for the bits that worked. Obviously,…

  • Windows Browser Ballot

    Mildly controversially, MS have found themselves compelled to offer Windows users in the EU a ‘browser ballot’ screen in an effort to make IE a less default choice, which is fairly understandable (if perhaps not understandably fair). But MS have decided for some reason that the best way to do this is is render it…

  • Windows’ find command

    It would appear that, not-entirely-contrary to my common rant that Windows offers no text processing tools at all, Windows does offer a find command which is like a severely crippled grep. It has five options: U:\>find /? Searches for a text string in a file or files. FIND [/V] [/C] [/N] [/I] [/OFF[LINE]] “string” [[drive:][path]filename[…

  • UI Fail: scanpst.exe’s incompatibility

    Sometimes, on trying to scan a PST with MS Office’s bundled scanpst.exe, you get the below error: And a log that ends: Fatal Error: 80040818 What MS meant to say was: You’re scanning an Office 2003 PST file with the scanpst tool that shipped with Office 2007. For some reason, we decided that while Outlook…

  • Joining the Canonical =~ Microsoft fray

    I’ve had this knocking about for a while in various forms. Following TheOpenSourcerer‘s post, I figured I’d get it in while he’s getting the flack. About a year ago, I remember there being some rejoicing at the prospect of Canonical open-sourcing Launchpad, their bug/issue/ticket tracking web application. I also remember being a mite confused by…

  • Splitting massive MySQL dumps

    As I posted yesterday, I have a massive MySQL dump to import. I tried BigDump, but one of the tables kept producing errors and so BigDump would exit. I don’t need the whole db imported, so I wrote this to split it by table. It produces a new sql file for every table it finds,…

  • Massive dumps with MySQL

    hurr. *insert FLUSH TABLES joke here* I have a 2.5GB sql dump to import to my MySQL server. MySQL doesn’t like me giving it work to do, and the box it’s running on only has 3GB of memory. So, I stumbled across bigdump, which is brilliant. It’s a PHP script that splits massive SQL dumps…

  • Whoo! Theme update!

    I’ve updated the theme, and applied my handy modifications that make it more grey. Here’s the diff on the css file, if you’re wondering what I did (and for next time when I forget). I despise CSS, so it’s all nice and easy. The changes are to give the <pre> tags a grey (#EEE) background…

  • Blimey, that was chilly

    So the original question is answered – it *is* possible to ride from Land’s End to Lowestoft overnight on the night of the solstice. It’s also a really stupid idea. And you can still give money to homeless people. I’ve stolen Joel’s pictures and stuck them online here. While in Penzance, we checked the weather…

  • Generating Fluxbox menus for VNC (Vinagre) connections

    One of the lovely things about Fluxbox is the text-driven menu. One of the nice things about Vinagre (Gnome’s VNC client) is the xml-based bookmarks file. Here’s a handy script to create a Fluxbox submenu out of your Vinagre bookmarks: #! /usr/bin/perl use strict; use warnings; use XML::Simple; my $HOME = $ENV{ HOME }; my…

  • Sponsor Me!

    I’ve had a silly idea, and figured I should get sponsorship for it: ride motorbikes from the most westerly point of the UK to the most easterly, during the night of the winter solstice. Basically, we’re to leave Land’s End at about dusk on the 21st December and arrive at Lowestoft by dawn on the…

  • Dell Warranty Info

    I hate navigating the Dell website. It’s inconsistent and messy and noisy, and all I generally want is a single date (when the warranty expires or expired on a given box). So I wrote this. It scrapes the Dell website, and returns the warranty info for the service tag it’s been passed. I’ve CGI’d it…

  • Getopt in Perl

    Oddly, it’s taken me until this afternoon to have real need for using getopts in Perl. After a not-overly-brief look around, I’ve settled on Getopt::Long for the purpose. It’s marginally more complicated than the alternative (Getopt::Std), but more flexible and better at error checking. To use it, you pass a hash of valid options to…

  • Giving Android a swap file

    I don’t know if it’s because I’m doing more with it than I used to, or the rose-tinted specs that come with the novelty value have worn off, or if the later updates have been designed for more powerful hardware, but my G1’s been lagging a bit recently, so I figured I’d have a look…

  • Cyanogen on my G1

    I’ve just upgraded to Cyanogen on my G1 and it’s lovely. Well, I got root, which is basically what I always wanted. I basically followed the instructions on the Cyanogen wiki and everything worked exactly as described, I’ve nothing really to add here except to say it’s brilliantly easy and everyone should do it. One…

  • PHP error on fresh install of PHPWiki:
    Non-static method _PearDbPassUser::_PearDbPassUser() cannot be called statically

    I’ve just installed PHPWiki 1.3.14-4 from the debian repositories and out of the box I got the following message on trying to log in to it: Fatal error: Non-static method _PearDbPassUser::_PearDbPassUser() cannot be called statically, assuming $this from incompatible context in /usr/share/phpwiki.bak.d/lib/WikiUserNew.php on line 1118 The problem appears to be that, as of PHP 5.something,…

  • Munin plugins are really easy to write

    Munin plugins basically need to output variable names and values, and a little bit of config. They’re tremendously easy to write. My plugin is mostly useless – it graphs the value returned by /dev/urandom, and the random constants from debian and dilbert. Current graph is here and the code is as follows: #! /bin/bash case…