« September 2006 | Main | November 2006 »

October 29, 2006

Odd one out?

The UN voted on a number of important draft resolutions last week.

First up was a vote on "Towards an arms trade treaty: establishing common international standards for the import, export and transfer of conventional arms". The Guardian notes that it has the support of a dozen Nobel peace prize laureates, and The Telegraph comments on the result of the vote.


Next, small arms:


A draft resolution on renewed determination towards the total elimination of nuclear weapons:

This is the US explanation:

[Christina Rocca (USA)] said that she had voted against the draft, however, because of its support for the Comprehensive Nuclear Test Ban Treaty, which the United States opposed. The same considerations applied to the draft on the treaty itself (L.48). She did support that draft’s operative paragraph 5, which condemned the Democratic People’s Republic of Korea’s nuclear test and asked it not to conduct further ones.


Now the Comprehensive Nuclear-Test-Ban Treaty, which bans all nuclear explosions in all environments, for military or civilian purposes:


A draft resolution on a nuclear-weapon-free southern hemisphere and adjacent areas:

Explaining his vote on the nuclear-weapon-free southern hemisphere, L.20, and speaking on behalf of France, as well as the United States, JOHN DUNCAN ( United Kingdom) said that, as in past years, his delegations had voted against the resolution. Its preamble referred to the freedom of the high seas, while including the United Nations Convention on the Law of the high seas. He believed that was contradictory, as the area would not apply to the high seas.

October 28, 2006

Importing email into Gmail from Pegasus

It's easy to import your old emails from Pegasus mail into GMail, but it does have a few steps. I've used Mozilla Thunderbird as an intermediary, because it turned out to be good at massaging the data into a mutually acceptable form.

  1. Create new mailbox in Pegasus in Unix mailbox format (instead of the default Pegasus mail format)
  2. Move desired emails into this new mailbox
  3. In Windows Explorer find the name of this new mailbox file. It ends with .mbx. (More details in Mozillazine)
  4. Move the mailbox file into Thunderbird's Local Folders, in your profile directory.
  5. Start Thunderbird and click on this new folder. This is when the file is actually tidied up.
  6. Exit Thunderbird.
  7. Run Google GMail Loader (GML), which processes the mbx file, and sends each email one by one to Gmail.

If you skip the Thunderbird step, then GML complains about the mbx file, though it may still work.

October 25, 2006

Firefox 2 size

To coincide with the release of Firefox 2 I've updated my Firefox size over time chart. This new version has seen a small increase in size, but nothing too concerning.

October 18, 2006

USB's dark secret

I like the Universal Serial Bus. I remember all too well the round 5-pin AT keyboard connector, the weird bus mouse interface that connected my Microsoft Mouse to an ISA card, the RS-232 serial port for my modem, and the huge parallel port for my printer. Nowdays, these all plug in to identical USB ports. Life should be merry.

However, when USB 2.0 came out, the marketers went crazy. First, the simple technical background. In USB 1.x, devices could run at either Low speed, 1.5 Mbit/s, or Full speed, 12 MBit/s. The big advance of USB 2.0 was to add a new Hi speed(sic) of 480 Mbit/s.

You might think it sensible that USB 2.0 should refer to devices that run at this new super fast speed. Indeed, often the only reference to speed given in product advertising for items such as printers or USB flash drives is "USB 2.0 compatible", or just "USB 2.0". Unfortunately, in a bewilderingly anti-consumer decision, a device of any speed that has been recently certified as USB compliant can be labelled USB 2.0. Indeed, peripheral manufacturers have taken full advantage of this. For example, an old USB 1.1 scanner might now be called USB 2.0, enticing customers to purchase this "faster" version.

Thus, the USB 2.0 label on a peripheral means absolutely nothing. Instead, we have to remember to counterintuitive fact that, in the land of USB, Hi speed is faster that Full speed.

PS. I wrote this entry because I've been looking to purchase a USB flash drive, and the online shops label many of them as USB 2.0, but don't give any indication as to their actual speed. Sometimes even the manufacturers withhold this information from their web sites. When this happens, it's safest to assume the worst.

October 16, 2006

Update to RealToMp3 script

I've just uploaded an updated version of the realToMp3 python script, which converts online Real audio streams to mp3 files. The latest change is to make it work with URLs that have querystrings.

October 14, 2006

VRFM8 in-car mp3 FM modulator

I've been looking for a way to play music that I've collected on my PC easily in any of the various cars that I normally frequent. These cars have an assortment of CD players, 3.5mm aux inputs and cassette decks in addition to their AM/FM radios. The aux input is usable by any music device, the cassette can be used with a cassette adaptor, but the CD players would need a CD to be burnt. To cover all bases, I had to go for a cigarette-lighter-powered FM modulator, that broadcasts the output of a music player onto the FM band for a few metres, to be picked up by the car radio. As I don't already have an MP3 player, I went one step futher, and purchased an FM modulator that can read music files off a USB flash drive.

A variety of such devices are available in Australia on eBay, but only one has a brand name which leads to an independent review, the VRFM. It also has comprehensive official documentation online. From these two sources it was easy to decide which model I required, the VRFM8. The cheaper and older VRFM7 lacked the essential shuffle feature, and the much more expensive VRFM9 only really added a display that I wouldn't use.

I couldn't find any reputable shops in Australia selling the VRFM8, though Jaycar has the VRFM7, labelled as a "Wireless MP3 Modulator For In-Car Use" for $70. Back on eBay, a US company was selling the VRFM8 for only $40 including postage. One week later, I had it in my hands.

For what it does, it's surprising small and light. I was worried that it would obstruct the gear stick, but as well as not sticking out far from the cigarette lighter, it also has a swivel joint that lets you push it to any convenient vertical angle.

As I don't have a USB flash drive, my first test was to plug the earphone from a portable radio into the VRFM8's side socket (using the included cable), and listen to the result on my car radio. It didn't sound too bad, considering it had been modulated as AM and then as FM in its journey to my ears. I then managed to borrow a smallish flash drive, plonk some mp3 files onto it, and confirm that it works perfectly. I haven't tried any WMA files, with which it also advertises compatibility. As a music player, the audio quality was good enough. If I turned it up louder than I normally would, then I could hear some hiss and crackle, so that's a pass from me.

The songs can be played in either sequential or random order, where sequential means raw flash drive order. You can't see this order with Windows Explorer, which is usually in file name or date order. However, you can use software such as the excellent free ReOrganize!. With a large drive, I expect this will prove invaluable, especially for audio books, where order is vitally important.

Speaking of audio books (and podcasts), the VRFM8 does lack a fast-forward or rewind within a track feature. When you turn if off, it remembers which track you're up to, but not where in the track you are. Thus, you can't resume a track in the middle, making listening on short commutes problematic. If this irritated too much, you should probably get a proper mp3 player, and plug that into the VRFM8.

In conclusion, it was easy and cheap to buy, performed as well as I had hoped, and has let me move my ephemeral sound from the computer to the car.

Updated 25 Oct 2006
Although it's designed to be powered by a 12 volt car cigarette lighter socket, it works perfectly well off a 9 volt battery (noting that the centre connector is positive). Thus, in combination with a portable radio you can create your own weird little portable mp3 player.

I have also had a chance to test mp3 and wma tracks in constant bit rate and variable bit rate modes, from 20 kb/s up to 200 kb/s, and they all played flawlessly.

In less positive news, the shuffle mode is peculiarly bad, and potentially useless. Whenever you activate shuffle mode (a setting which is forgotten when the power is removed) the second and subsequent songs are always in the exact same "random" order (mysteriously, the first "random" song is apparently random). In effect, the shuffling only occurs once for a particular collection of songs, and you're perpetually being put back to the same place in that shuffle. I found that I had to go back to sequential mode to hear something new.

October 11, 2006

Turbo Delphi Explorer

Every year it was the same old story. Borland would make some minor improvements to Delphi, increase the version number, announce a free "Personal" version, then make it virtually impossible to actually obtain. They'd stick it on a few magazine cover disks, and hope that nobody found it. Unfortunately, nobody did.

My guess is that Microsoft's successful launch of its competing free Visual Studio Express family finally nudged Borland out of their apathy. A few weeks ago they made Turbo Delphi Explorer (and Delphi for .Net, C++ and C#) available for download. Thus the major stumbling block in actually getting Delphi has been removed.

A second crucial point is that the free editions finally include various essential components built in. Previously, if you wanted to do even the simplest internet-related task you needed to install a separate component. Turbo Delphi comes with the brilliant Indy Sockets, as well as numerous other components, already installed. This means that the keen hobbyist can get immediately to work, instead of jumping across to a platform that is easier to start actual coding in.

For even more inspiration, the inimitable Huw Collingbourne has a great new tutorial series on Turbo Delphi.

October 9, 2006

Fleace v0.2 released

I've updated Fleace with a couple of small improvements.

When I tested the original release on my brother's computer I found that it always popped up an error saying that it couldn't connect to Flickr. That happened because Fleace was running before his network had a chance to get going. I've added an extra 30 seconds of silent retries before the program will question whether you want to try again manually.

In addition, I had a request for some way of only downloading high-resolution wallpapers. Although I couldn't add that to this version, I did add an optional note beneath the thumbnail image in the preview window stating the dimensions of the full size image. This can be turned on in the options dialog.

October 1, 2006

Not a tortuous choice

Apparently there are some elections coming up shortly in the United States. I wonder if voters will be influenced by the infamous bill legalising torture and indefinite detention, which shows a stark contrast between the two main parties. Here is how the members of the House voted:

Update (2-Oct-2006): The Australian government is concerned that the new US laws are too lenient on suspects. Will they follow the US lead, and push through torture laws before the federal election due before January 2008?