Ubuntu Hardy Python XML error bugfix – xml.dom.ext

This was brought to my attention when I’m working on a python code to parse xml documents. I found out that in Ubuntu Hardy, the python-xml package has moved xml.dom.ext.* package to /usr/lib/python2.5/site-packages/oldxml thus breaking python code which depended on python-xml.

One way to work around this bug is to append :

sys.path.append('/usr/lib/python%s/site-packages/oldxml' % sys.version[:3])

just before you import stuff from xml.dom.ext.*. Hope that would help you.

Get cool “Powered by Ubuntu” sticker locally in Malaysia

Are you one of Ubuntu users? Then you can proudly display it with one of the “Powered by Ubuntu” stickers stamped on your computers. The only problem was, it used to be difficult to get one of those stickers as they were not offered in Malaysia.

Fortunately, Kebayan IT now offers “Powered by Ubuntu” stickers with reasonable price in Malaysia. They offers RM3/piece (without shipping) for the stickers, with each piece contains 9 “Powered by Ubuntu” stickers in various color.

Now you can turn this

In to this

How cool was it? Please visit Kebayan IT Ubuntu Stickers website for more information.

Melayubuntu – the best local Ubuntu blog

Today I would proudly write about a fine, if not the best local Ubuntu blog for Malaysian, Melayubuntu. Best of all, its written in Malay !

The website is filled with loads of Ubuntu tips which is useful for Ubuntu users, whether they are new or an old timer. It is the one particular blog which should be worth subscribing for.

How to upgrade to Ubuntu Hardy Heron 8.04 LTS without Internet Connection

ubuntu hardy logo

Previously I’ve published how to upgrade Ubuntu Linux operating system to the latest release using “upgdate-manager” tool. But what if the computer you are upgrading does not have internet connection ?

Upgrading to Hardy Heron without Internet Connection

  1. Download and burn the alternate installation CDROM
  2. Put it in your CDROM Drive and follow the instruction
  3. If nothing happened, you can launch upgrade manager by typing :

    gksu “sh /cdrom/cdromupgrade”

That’s all hope you can enjoy the latest Ubuntu 8.04 LTS release !

Linux: How to get Harddisk UUID number

Modern Linux system uses UUID instead of traditional block name (/dev/hda1, /dev/hda5, /dev/sdb) to uniquely identify harddisk or other storage medium. This is because UUID is unique and never changes even if you switch the harddisk ordering.

So by mounting or refering your hard disk by its UUID, you are guaranteed to mount the correct storage medium no matter where its connected on your system.

Here’s how to get your harddisk UUID number

Method 1: Ubuntu and Debian Way

sudo vol_id /dev/hda1

This command display harddisk extra information including its filesystem and uuid number.

Method 2: using /dev/disk/by-uuid/

Another method which works universally on modern GNU Linux operating system is :

ls -l /dev/disk/by-uuid

which will uuid of connected storage medium to your computer.

That’s all, now you can easily identify your storage disk UUID number without much problem anymore.