Been away, going away…

I’ve been away from this blog for some time – 2 weeks almost – which is mostly due to being busy at work and having very little free time at home. I’ve been playing World of Warcraft a bit more than usual lately, but now have a second level 70 character as a result.

So what’s happened over the past 2 weeks? Well, based on my recent Twitters, here’s what I’ve been up to:

  • Been testing out Firefox 3 RC1 and Thunderbird 3 Alpha 1. Firefox 3 is looking really good now, especially on Macs where the improved performance and native theme make it even more of a joy to use. Thunderbird is obviously an early alpha build but it too is much faster, as it inherits many of the optimisations that were undertaken for Firefox. Unfortunately, it’s not yet very stable, but it is at least usable.
  • Now that I have more than a smidgen of free space on my MacBook, I installed Ubuntu Hardy Heron in Parallels. Unfortunately, despite updating to the latest Parallels release, the Parallels Tools for Linux package doesn’t work with this release of Ubuntu so there’s no adaptive window sizes, cursor integration and clock synchronising. It’s a shame as apparently VMWare Fusion does support the latest Ubuntu release. I haven’t played around with Ubuntu much but it looks good, and including Firefox 3 is a bold but welcome move.
  • Speaking of Twitter, I would recommend the TwitterFox extension if you use Twitter and Firefox, as it’s quite a handy little extension which lets you read and interact with your Twitter friends. It doesn’t have masses of features, but it’s intuitive and it works with Firefox 3 already.
  • Google Reader’s ‘Trends’ feature has an unexpected use as a way of digging out feeds which haven’t updated in a long time. I found one that had gone dead in October 2005 that I was still subscribing to. I also found a few sites which had changed their feed URLs without redirects so I wasn’t receiving updates any more.

This, unfortunately, isn’t the return to regularly scheduled blogging, as on Saturday I’m going away for five nights in camping barn in the Lake District with some friends. It’s really in the back-end of nowhere – it doesn’t even have a connection to the electricity grid so all power comes from a hydro-electric generator, and it’s highly unlikely that there will be any mobile phone reception there either. So until I return on Thursday, you may not hear a peep from me, either on here or on Twitter.

Firefox, Performance, and You

I’ve been blogging quite a bit about the beta versions of Firefox 3, which can be downloaded here, and how much better it is than Firefox 2. If anything, I’m as excited about this version as I was when version 1 came out, as it feels like the browser I have been using for 5 years has now grown up and many of the issues it has had in the past have been ironed out.

In this entry, I am going to go through the various changes that have been made in Firefox which improve the performance of the browser – the startup times, the time it takes to render web pages, and the general responsiveness of the program. Improving performance has been a major focus of the Firefox developers for this release, and the changes are notable.

Memory usage

Do a search for ‘firefox bloated‘ and you’ll get over 500 000 results, many of which complaining that Firefox is big and slow. Many put this down to the amount of memory it uses, which, in Firefox 2, appears to be more than its main competitors – Opera, Internet Explorer and Safari. (Note that, unless you’re using Windows Vista, it is difficult to measure memory usage of individual programs on Windows successfully)

For Firefox 3, reduces Firefox’s ‘memory footprint’ (the amount of memory it needs to run) was one of the main priorities. Improvements have been made both in reducing ‘memory leaks‘ – memory taken by Firefox that isn’t released back to the operating system when it is no longer needed – and memory fragmentation, which means that the memory it does have allocated is used more efficiently. The culmination of this is that, on Windows, Firefox 3 uses less memory while running than any other current web browser. It also released more memory back to the operating system after a period of inactivity, meaning that it’s no longer needed to close and restart the browser because it’s eaten half of your RAM.

How does this improve performance? If you have 16 GB of RAM, then, not much really. But if like most computers your machine has just enough RAM to perform, then it means more of Firefox can fit into RAM and less of it has to use ‘virtual memory’ – essentially a big file on your hard disk which acts as an overflow when all of your RAM is used up, but that is much slower than RAM. It will also allow more space for other programs in RAM, so you’ll be able to run more programs at the same time as your web browser.

Code optimisation

Several parts of Firefox have been re-written to fix bugs and simplify code, and in some cases, improve performance. There have been performance improvements in:

  • Page rendering – a marked performance increase that also means that Firefox 3 will pass the Acid2 test
  • Image drawing – a bug fix sorted out problems with image caching and a new JPEG decoding routine also means that images will render faster

Mac-specific improvements

Firefox 3 finally moves away from the really old QuickDraw API to the newer Cocoa API. As well as giving nicer widgets (scrollbars, buttons etc) on web pages, this also means the whole program should feel more snappy. This, combined with the new theme, means that Firefox 3 is the most Mac-friendly version to date.

Profile guided optimisation

Firefox is now, essentially, compiled twice – the first compile runs as usual, and then the compiler runs a series of tests which optimises the code by looking at what parts of the browser will be most used in a working environment. This has lead to performance improvements of at least 10%.

Because we’re now approaching the ‘release candidate’ stage, ahead of a final release probably some time in June, most of the performance changes have now been made, so if you want to see if it is an improvement for you, now is as good a time as any to try; any further changes will be to fix any major bugs and stability issues. All in all, the massive strides made in performance make Firefox a much bigger competitor in the web browser arena and may win back some of its earlier detractors.

Fixing a broken iPod

I was going to make one of two posts today:

  1. How I fixed my broken iPod
  2. What iPod to buy in place of my broken iPod

Thankfully, this post is the first one.

I have an iPod Mini, bought in August 2004, which has hit a spot of bother. Well, okay, I dropped it, and afterwards it kept crashing or giving me the dreaded ‘unhappy iPod’ screen (which is like the Blue Screen of Death for iPods) when playing music, especially when skipping tracks. So here’s how I fixed it:

  1. Because my iPod was formatted in Windows (a conscious choice, see rant below), I plugged it into Hari’s computer and ran ScanDisk, and opted to do a full surface scan to fix any bad sectors.
  2. Next, I opened iTunes on the Windows PC and did a restore on the iPod, wiping the existing firmware and files and replacing it with the most recent firmware.
  3. Then, I reloaded my music.

And now it works fine. Quite what went wrong originally, I am unsure. However, by running ScanDisk it may have marked any damaged parts of the disk as bad. If I had more money, I would have bought a copy of SpinRite which is apparently very good at getting hard disks back into working order (or at least letting you know that your disk is fubar‘d).

I may still consider buying a new iPod eventually but I’m torn between which model to buy, so that blog post may still come. At least now it’s not so much of a priority as my current iPod now seems to work fine.

And now for my rant about iPod formatting. If you format your iPod on Windows, it will be formatted with the FAT32 file system, readable by Windows and OS X (and pretty much every other modern operating system). Format it on OS X, however, and it’ll be formatted with the HFS+ file system which only OS X can read. Since Apple now ships Boot Camp with Macs and has been promoting the ability to run Windows if needed, why not let Mac users change the file system used when formatting? If needed it can be some option hidden away in an obscure corner of iTunes where your average Joe User who has no idea what FAT32 or HFS+ are can safely ignore it. But it would be nice to have the option, rather than having to use a Windows computer.

Leaping to the Coast

I’m making sure I post something here today, since I can only do it once every 4 years. No marriage proposals yet, though.

I’m off to spend a weekend at the seaside in the vicinity of Scarborough, which will be nice provided that the weather is better than the wind and rain we have in Bradford right now.

Mildly interesting things that I have learned about recently

  1. There is a phobia of bridges, known as Gephyrophobia – and there’s a New York Times article about it, via Kottke.
  2. The platforms at St Pancras International Thameslink railway station are labelled ‘A’ and ‘B’, to avoid confusion with the main national and international platforms. This was also used at the recently-closed King’s Cross Thameslink station (which St. Pancras replaced) and at Waterloo East station.
  3. Though all Mac Pros now come with two quad-core Intel processors as standard, you can opt to have just the one processor, saving around £320 (to a total of £1442.99). You can also spend over £17 000 if you want every build option, unlimited server license and all the professional software packages bundled with it.
  4. In the past year, thieves have stolen at least two bridges in Russia for scrap metal.
  5. ‘Akbar’ is Arabic for ‘great’ or ‘greatest’. I’d be tempted to post a picture of Admiral Ackbar from Star Wars and say it is a trap, but I’ll refrain.
  6. Frederick Lorz, an American athlete, cheated in the marathon in the 1904 Summer Olympics by travelling by car for 11 miles. He was first across the finishing line but another athlete, Thomas J Hicks was declared the winner, despite him too cheating as he had run the race under the influence of drugs and alcohol.
  7. In China, ‘Dan’ is a girl’s name.
  8. VLC can use many Winamp skins – see this guide.
  9. ‘Blighty’, a slang word for ‘Great Britain’, derives from the Hindustani Urdu word ‘vilāyatī’, which variously means ‘foreign’ or ‘homeland’. It originates from the days of the British Empire when Britain controlled India.
  10. Inner Mongolia is a region in northern China, ‘Outer Mongolia’ roughly corresponds with the independent nation of Mongolia.