How to open ODT files when you don't have Open Office

Before we get started, none of the following options will retain the ODT document formatting perfectly, so if this is important to you, get OpenOffice: http://download.openoffice.org/

If you just need to quickly open an ODT/ODF document and you don't want OpenOffice, read on!

Option 1: Gmail (Google Docs)
1. Send yourself an email with the ODT file
2. Click on "Open as a Google document" next the attachment.

Option 2: Google Docs directly
1. Open Google Docs at http://docs.google.com/
2. Click Upload
3. Follow the instructions

Option 3: To open in Word 2003
This is the preferred option as your formatting will be retained more than in Google Docs.
Don't bother using the Sun ODF plugin - I could not get it to work.
Instead try the following:
1. Get this Office Add-In: http://sourceforge.net/projects/odf-converter/files/ODF%20Add-in%20for%20Office/
2. Close Office programmes as well as Outlook
2. Install Add-In
2a. Optionally associate ODT files with MS Office.
3. Open the document in the usual way from Explorer or Word
4. The Add-In will convert the document in around 30 seconds

Option 4: To open in Word 2007
I noticed formatting was better retained using Word 2007.
- No steps! Seems to just work :)

iPod Touch and Case Magnets Do Not Mix!

I recently got an iPod Touch 16GB 2G/G2. It is a fantastic device. You can do so much from the palm of your hand. Unfortunately, the first time I took it out on the road it shut itself off 30 seconds into playing music. I could reset it (DFU mode I think it's called?) but it kept happening. I tried restoring, removing all apps, switching off WIFI, and everything else I could think of, but nothing fixed the seemingly random shut-off behaviour.

Finally I went to the Apple Store Genius Bar and explained it to them. They couldn't reproduce the issue but they kindly provided me with a brand new iPod. [Clue: they tested it OUT of the case.] Kudos to Apple.

So I got home, charged it for 3 hours as recommended, put it BACK in the case and started to listen to music. It shut off right on cue! OK, I thought, it's just a coincidence. I reset it and started playing music again. This time it worked all the way to work on the bus and then shut down when I put it in my pocket to walk up to work.

I had had a suspicion that something to do with shutting the (magnetic) case lid was to blame but had never properly tested it. So I removed the iPod Touch from the case and put it in my pocket without any case on it. And... just like that - the music kept playing all the way on the rest of my walk to work. Now we're getting somewhere!

Very frustrating! I Googled for the problem (why didn't I think of this before? Who knows!) and found somone on MacRumors who had the exact same problem! And furthermore, they had a case with a magnet for keeping the lid shut. I got one of these Cygnett cases when I bought the device and had it in there the whole time. This morning I have been testing the device with the case FAR, far away and no problems at all. I will keep testing when I walk home tonight, but I feel that it is solved. It's a shame as the case is quite nice, although now that I think about it, the fit is not great and typing on the keyboard at the edge of the screen is irritating.

BTW I did discuss this in the Apple forum, but it seems Apple still sell these types of cases in their own store!

Next step: buy a nice NON-MAGNETIC ipod touch case and screen protector from Amazon. Or maybe i'll get one of these leather folio ipod cases with a clip instead of a magnet.

Moral of the Story: do not buy an iPod Touch case containing a magnet!


UPDATE! (Jan 2010)

I noticed that I've been getting quite a few visitors to this post, presumably those with the same issue. I wanted to tell you that since buying one of these rubber cases (can't believe how cheap it was!) I have had zero issues with the iPod Touch. It works perfectly, and I've even dropped it. The case did its job and protected my iPod.

I also got a pack of screen protectors like these, because the screen is not covered by the case, which can be a problem when it's in your pocket or bag. Like the other day, I put the iPod in my pocket with my keys and it scratched the screen protector. No problem! Just peel off the protector and put on another one - no damage to screen.

I definitely recommend steering clear of the cases with magnets. While it's a shame, because the magnets are cool, it's cooler to actually be able to listen to music properly!

BTW, if by the time you read this, the case above is not available, I suggest looking here to find more.

How to install Google Chrome version 2.0

1. Download Google Chrome if you don't have it - http://www.google.com/chrome/ and install it.

2. Download the Google Chrome Channel Changer - http://dev.chromium.org/getting-involved/dev-channel from the Chromium Dev site.

3. Run the Channel Changed and select Dev.

4. Open Chrome, click on the little spanner icon and choose About Google Chrome. You will see a button in the bottom left saying Update. Click it.

5. Restart Chrome - now you have the latest Dev version - 2.0!

6. To check that it's working - hit F11 - you will have a frameless browser window!

How to get a list of directory sizes in Linux

In Windows, when I need a list of directories, showing their size, I use Total Commander. In the shell on Linux how do we do this?

Say you need a list of all the home directories and the total size of each.
Do the following:

cd /home
du -sck * | sort +0nr

du is the utility for showing file sizes
-s means summarise - so don't show the subdirectories - just show the total size of each directory
-c means give a grand total
-k means show the numbers as counts of kilobytes, so for example, a 186MB directory, will show up as 186000
* means show everything

We then pipe to the sort utility, which sorts the directory list by size.
Remove r to list in ascending order.

If you want to see the sizes in MB, the command is:

du -sc --block-size=M * | sort +0nr

Finally, if you don't want to see some directories, you can exclude them by name or pattern:

Exclude directory called 'dir1': du -sck --exclude=dir1 * | sort +0nr

Exclude directories with names that start with 'abc': du -sck --exclude=abc* * | sort +0nr

When Gmail insists on switching to the low bandwidth version

Today, for some reason, gmail all of a sudden insisted on using the low bandwidth version of the app because it said my browser (Firefox 3) was not supported. This was happening on Google Apps Mail and regular Gmail.

I found that changing the language setting to English US did not help.

What did help is using this URL:

Regular Gmail

https://mail.google.com/mail/?nocheckbrowser#inbox

Google Apps

https://mail.google.com/a/yourdomain.com/?nocheckbrowser#inbox

How to delete files in Windows Vista

Sometimes it can seem impossible to delete a file/directory in Vista.
This is because of the way security is implemented.

The easiest way to get around this is to first make your account the owner of the file/directory in question. It will help if you have an Administrator account.

You can do this in the Windows file/folder properties but this is quite confusing, so try it in the command line.

Click on the start menu, and type cmd in the Search Box, then hit Enter.

In the command prompt type:

takeown /f [path to file/directory]

The /f switch means that we're taking ownership the specified file in the path.

Now you should see a message like:

SUCCESS: The file (or folder): "[path]" now owned by user "[computer name]\[user name]".

The next step is to give yourself permission to delete the file. This is achieved with:

cacls [path] /G [your user name]:F

/G means we are granting permissions to a user.
And the F means Full Control

Now you should be allowed to delete it. So just do so with:

del [path]

That's it!