Category Archives: Computing

At my most geekiful

GWhine

I’m having doubts about the competence of the programmers at Google.

As you are probably aware, GMail is a free service, so this isn’t going to be an angry rant about how they’ve let me down blah blah blah. Rather, it’s an observation based upon how they’ve handled a particular query of mine.

A lot of the time, when I’m not feeling in the mood for AJAX, I use the “Basic HTML” view. A few months ago, I noticed that if you configured a different default “from” address, the Basic HTML mode would not pick up on this, and it would continue to use the default username@gmail.com address.

So I sent a little message to the GMail team, not so much a bug report as a suggestion for an improvement.

A few weeks later I remembered this incident, so I set up a little test to see if they had implemented my suggestion. However, I was getting inconsistent results. I probed a little deeper and found that if you clicked on the “reply” link then it appeared that the change had been made, but if you dared to use the “Quick Reply” feature, it still used the defaults. To illustrate, the standard Reply field sent emails as:

> Pete <username@yourdomain.com>

…and the Quick Reply sent emails as:

> Pete <username@gmail.com>

This was my first alarm bell. The initial state of affairs could easily have been an oversight during development, but this new observation suggested to me that there was insufficient abstraction in the replying mechanism. Rather than having one supreme “reply” function, with the two possible reply methods hooking into it at different places, it looked like the “Quick Reply” and the standard “Reply” were both using totally different functions, which is why it was possible to fix a bug in one of them but not the other. Generally, and specifically in this scenario, a bad thing.

So I sent another message to the GMail team detailing the new situation, and in the meantime I accustomed myself to avoiding the “Quick Reply” box.

Another few weeks have passed since then, so I ran my little test again. They’ve partly fixed it. The “Quick Reply” box now uses the specified default email address, which is good, but it doesn’t use the specified default “from” name. To illustrate, the standard Reply field still sends emails as:

> Pete <username@yourdomain.com>

…and the Quick Reply now sends emails as:

> <username@yourdomain.com>

Two observations. Firstly, there’s still no abstraction of the replying mechanism, which doesn’t really surprise me. But secondly, this kind of oversight is characteristic of someone who is (a) drunk, (b) habitually slapdash or (c) inexperienced as a programmer.

I’ve been led to believe that Google only hire talented, experienced programmers. What gives?

*UPDATE: It’s now fixed.*

Extensions

In response to Gordon’s post, [Firefox Extensions Revisited][], this is a list of the Firefox extensions that I am currently using.

[firefox extensions revisited]: http://www.gordonmclean.co.uk/index.php/archives/2006/03/28/firefox-extensions-revisited

* Adblock Plus 0.6.1.2 (also on the iBook and at work) 1
* Bookmark Backup 0.4
* Colorful Tabs 1.1 (also at work)
* del.icio.us 0.5.11 (also on the iBook and at work)
* Disable Targets For Downloads 1.0.1 (also at work)
* Download Manager Tweak 0.7.1 (also at work)
* Gmail Notifier 0.5.5.2
* ListZilla 0.7 (also on the iBook and at work)
* Menu Editor 1.2 (also at work)
* Mouse Gestures 1.0.4 (also at work)
* NoScript 1.1.3.9 (also on the iBook)
* Resizeable Textarea 0.1b (also at work)
* SessionSaver .2 0.2.1.031
* Slim Extension List 0.3.1
* udtool 0.6.6 (also on the iBook)
* Urban Dead Homing Beacon 1.0 (also on the iBook)
* User Agent Switcher 0.6.8 (also at work)
* Web Developer 1.0.2 (also at work)
* WebmailCompose 0.6.6
* Yahoo! Mail Notifier 0.9.9

The following extension I currently only have installed on my computer at work, as there wouldn’t really be much point installing it on a non-Windows computer:

* IE View 1.2.7

Of course, in the near future I am going to be trying out many of the extensions that Gordon uses as well. [Download Statusbar][], for example, is looking like a promising replacement for Download Manager Tweak. This is the kind of list that doesn’t stay static for very long.

[download statusbar]: http://downloadstatusbar.mozdev.org/

  1. There are forks of Adblock all over the place, and it’s very, very confusing. I’ve had problems with 0.6.1.2 on Ubuntu so I’m using a different version, 0.5.11.3, which is available here[↩]

Bittorrent won’t resume!

Rather annoyingly, I cancelled a bittorrent download, and when I resumed it would not pick up on the previous download. It looked like I might be forced to restart, losing 152MB of progress. Each time I tried to select the existing directory to attach to, the file browser would navigate *into* the directory, which is not what I wanted – the contents of the torrent *is* the directory.

Hooray for command line. I located the torrent file in my `/tmp` directory and used the following command to get back on track:

`gnome-btdownload –url /tmp/myfile.torrent –saveas ~/downloads/thedir/ &`

Hacking Moto

So, if you watch my linklog, you’ll notice that I recently installed [moto4lin][] on [Ubuntu][] so that I could hack my [Razr][].

[moto4lin]: http://www.ubuntuforums.org/showthread.php?t=56253&highlight=moto4lin
[ubuntu]: http://www.ubuntulinux.org/
[razr]: http://www.motorola.com/motoinfo/product/details/0,,69,00.html

The primary reason for doing this was that the external screen would display my service provider’s icon. This, to me, seemed like a bit of an imposition – why should I be forced to advertise their product? I’ve already bought it – what more do they want? Blood?

So I created a 96×80 GIF image called cl.gif and uploaded it to the phone, overwriting the existing file in /a/mobile/system/ – worked a treat.

I then went to town getting rid of all the preinstalled crap that had been marked as read-only, and hence undeletable from within the phone’s menu.

Here’s where it gets interesting, because to give the user the impression that this crap isn’t taking up shedloads of space, the phone has been programmed to subtract the mass of this crap from the total space displayed when you request a memory report.

Continue reading →

Conformance checker

I’m working on a program that utilises the [W3C Validator][] to “watch” a webpage, and automatically send you an email if your page stops validating. Functionally it’s fully operational, and is currently undergoing alpha testing. However, I have no idea what to call it, and its working title stinks like rancid ass.

[w3c validator]: http://validator.w3.org/

Help. My current fallbacks are things like “watchr” and “validatr”, which are derivative and dumb and preferably avoided. Please donate your ideas by email (there’s a link in the sidebar) or put something in the comments box.

*UPDATE: It’s available [here][]*

[here]: http://www.pete.nu/valet/

Linux – One Year On

Today marks the one-year anniversary of my long-awaited switch from Windows to Linux. Though it was not an overnight transition, it’s much easier to put a date on commencing the metamorphosism than completing it.

I always try to be very careful around the subject of Linux advocacy, because if you say too many positive things about it, then people will fall under the misconception that it’s a good substitute for Windows. And it’s not, but it is a good alternative, if you’re willing to face the learning curve.

Some things worked right out of the box (eg USB, all essential hardware at a basic level), some things required a little bit of effort (eg wireless networking, multimedia keys on the keyboard, optimal screen resolution), some things just never ended up working, but I got over it (eg lack of read-write support for NTFS, lack of support for Lexmark printer, burning audio CDs takes twice as long), and some things still bug me a little to this day. For example:

  1. Games – I’ve tried Cedega, and did actually manage to install Max Payne using it, but when I tried to play the game, it hung. The closest that I came to a satisfactory gaming experience under Linux is nethack. It would be nice if I didn’t have to reboot every time I wanted to play a game.
  2. Video – Nothing seems quite as slick as Windows Media Player, I’m ashamed to say. I find myself occasionally having to load certain WMV files in gxine because they won’t play in VLC. I’m sure that this is conquerable, if I just spend the time on it. Additionally, for some reason the menus in build 0.8.4 of VLC are borked, and I can’t access the playlist. I’m currently using 0.7.0, but apt keeps trying to upgrade me to 0.8.4 again.
  3. …while we’re talking about apt: it’s a fantastic tool, and it really simplifies installation and upgrading, but it has downsides. For example, Firefox 1.5 is not available in the repositories for the current version of Ubuntu – only 1.0.7. This means that if you want 1.5, you need to install it yourself. It’s not a terribly simple process, but it is well-documented here.

But conversely, some things happen so much more smoothly than before, it’s unreal. I’ve found myself writing shell scripts and python programs to automate tasks that I would previously have done manually, like correcting ID3 tags on MP3 files, and transferring photos from my camera to the computer.

I’ve heard people describe Linux as having a steep learning curve, but as your skills improve you realise that it doesn’t obstruct you from doing the things that you want to do. The only limits upon what you can do, and learn, are the limits of your willingness.

GNOME or Fluxbox?

I currently have two window managers installed on my computer: GNOME (which is the default with Ubuntu) and Fluxbox. I installed Fluxbox because I found GNOME to be just a little bit too heavy on the features, and I quite fancied the idea of starting with something really lightweight and then just finding ways to add the particular features which I needed.

I’ve been using Fluxbox as my default window manager for about a week, with some success. I’ve managed to resolve a good number of my gripes, but a few things still are outstanding.

  • Samba – I haven’t yet tried connecting to one of the shared folders on the other computers in the house, but GNOME makes this insanely easy. We shall see.
  • Delete – The graphical file manager for Fluxbox is called Rox, and is quite sleek. However, I’m having difficulty getting used to it for a number of reasons, the biggest of which is that if you highlight a file and hit the “Delete” key on the keyboard, it does nothing. Ctrl+X is the shortcut for deletion, and I can’t figure out how to change this. Yet.
  • Trash – On a related note, Rox doesn’t have a Trash folder. There is, I believe, a plugin available to do this, but I consider this to be something that can reasonably be expected to be in the base package.
  • Toolbar – My GNOME toolbar contains a nifty little workspace pager, and a system monitor that shows small histograms of recent CPU usage, memory usage and network usage. Again, I haven’t found equivalents in Fluxbox yet.
  • GAIM – Minor one: I’m not receiving sounds from GAIM in Fluxbox, which means I can’t tell when someone has IMed me, unless I keep the conversation window in view. Which defeats the whole virtual desktop idea.
  • Shutdown – the main menu doesn’t have a shutdown option – just an “Exit” option, which takes you back to the login screen, where you can shutdown. I think that this is reasonably easy to add (something along these lines with a little bit of this), but again, it’s surprising how much you take these kinds of things for granted in more polished window managers.
  • Bluetooth – GNOME is pretty slick when it comes to transferring photos from my phone to the computer. Haven’t looked into this on Fluxbox much, but it isn’t leaping out at me.
  • XMMS – A very scratchy itch, this one. When I right click on XMMS in the taskbar and move it to another workspace, the playlist window stays behind, and there’s no way to send it along without closing XMMS, switching to the destination workspace, and opening XMMS from there.

That’s the entire contents of my list.

I’ve got config fatigue now, and so I’ve set GNOME as my default again for a little while. When the time feels right, I shall go back and see if I can strike some of these items off the list. Rest assured that as and when I nail them, I’ll leave an update here.

Windows XP won’t boot after replacing motherboard

These words, “Windows XP won’t boot after replacing motherboard”, were what I repeatedly typed into [Google][] many many times, with slight variations (such as replacing “replacing” with “new” etc etc). I had replaced my computer’s motherboard with something rather different, and though my Ubuntu Linux installation was booting fine, Windows XP wouldn’t work. I’d get the following messages from [GRUB][], as usual, and then it would freeze.

[google]: http://www.google.com/
[grub]: http://www.gnu.org/software/grub/

rootnoverify (hd0,0)
makeactive
chainloader +1

Not a major problem – I only ever used Windows for playing games, and even that wasn’t frequently. I can’t really justify spending shedloads on a fancy 3D graphics card, so the games in question tend to be things like the original [Half-Life][], [Max Payne][], and [Worms 2][].

[half-life]: http://www.amazon.co.uk/exec/obidos/ASIN/B000B8U0YC/
[max payne]: http://www.rockstargames.com/maxpayne/
[worms 2]: http://www.worms2.com/

Most of the responses that I got were “Make sure that you have enabled LBA in the BIOS” but I knew that this couldn’t be the solution, as I’d already tried that.

Or… had I?

It seems that I had made some major mistake, most likely only enabling LBA for my master hard drive, and not for the slave drive. For when I was at my wit’s end, contemplating completely reinstalling Windows, it struck me like a lightning bolt. I tried it… and… success!