ImportError: No module named dom.minidom

Oct. 31, 2008, 11:51 p.m. Python , weird , XML

I Thought, I would try my hand at XML parsing with the python DOM. Whatever programming llanguage you use the DOM pretty much the the same. However things didn't get off to an auspicious start. Even the sample code on the python docs didn't work and produced an error: Traceback (most recent call las ...

Normal Service Restored

Oct. 31, 2008, 4:41 a.m. broadband

Well, thankfully the speed of my Lanka Bell Broad Band connection is now back to normal. I don't think I will need to switch to airtel after all.The difference between other providers and bell is that their service is pretty consistent. Both SLT and Dialog Broadband have massive slowdowns between 5- ...

When does airtel get here?

Oct. 30, 2008, 12:06 p.m. broadband

Can't wait for Airtel to start their operations. I am getting quite annoyed with Lankabell broadband. It's now 24 hours since their service went down. Then their restored it nearly 12 hours later. But the speed is only 3% of what it ought to be.So what does one do?SLT is pathetic and Dialog Broadban ...

Who pulled the handbrake?

Oct. 30, 2008, 8:41 a.m. broadband

My downlink of my lankabell broadband connection has suddenly become slower than dialup. This is the kind of speed that I used to see many many years ago when using a 56kbps dialup modem.So far their speeds have been very good. And their service far far more reliable than Dialog or SLT. But two days ...

Trying to Find a Fool Proof Way of Changing Permalinks

Oct. 30, 2008, 4:25 a.m. Wordpress

The other day, I changed the permalinks structure in my photo blog. I wasn't getting a lot of traffic  there, so I wasn't too worried about things going wrong. Well, they did go wrong. I used dean's permalink migration plugin (because it was the one recommended in a couple of articles I read on the ...

Lame Virtualization messes up grub.

Oct. 28, 2008, 11:12 p.m. virtualization

I tried to setup Xen virtualization on my media server and ended up with a messed up boot loader. There isn't a Fedora 9 xen installation guide, so I followed the instructions for Fedora 8. Part of those instructions include setting up the Xen kernel. So I did that and it updated my grub.conf file. ...

Joe Jobbed Again.

Oct. 28, 2008, 4:22 p.m. anti spam , qmail

I find myself being Joe Jobbed yet again. I suppose this happens to everyone once in a while, but that doesn't make it any easier to accept. The worst thing about joe jobs is that you get so many bounces with in a short period that genuine bouncers are easily missed.The last time I had this problem, ...

"IOError: [Errno 95] Operation not supported"

Oct. 28, 2008, 2:07 a.m. Python , weird , X11

To my great surprise (nay shock), I found that you cannot redirect output to /dev/null with cat for certain file types. For example  cat dsl-n-01RC4.iso > /dev/null will result in the following error: cat: dsl-n-01RC4.iso: Operation not supported Surely this cannot be? Yet, cat works fine for ot ...

Mythtv delete all episodes of a recorded program

Oct. 26, 2008, 11:48 p.m. Python , quadruple play

Sure there is more than one way to delete all episodes of a recorded program with mythv - they are just not very obvious. So I decided that my first learning task with python will be to write a script that does just that. In order to do so, you need to learn how to connect to a database - that was r ...

Fedora boot time

Oct. 26, 2008, 2:07 a.m. bootstrap , toast

Well we know that fedora (a modified fedora actually) can boot up in five seconds. How long does it take to boot mine? A rather disappointing 59 seconds in fact.I don't reboot that often but had to do so a little earlier to plug in the new hard drive. (The one that was a replacement for the dead dri ...

Sun Java Sucks (at least on 64 bit linux)

Oct. 24, 2008, 11:59 p.m. weird

Several years ago when 64 bit java came out the sun java plugin for linux wasn't available. By the time I bought a 64 bit processor for my file server early this year, they ought to have fixed it but they haven't. No wonder sun is in decline. I had a lot of trouble with activating the java plug in o ...

RPM broken due to accidental deletion of SQLite

Oct. 24, 2008, 3:23 a.m.

While trying sort out a recent mishap, I accidentally erased my sqlite rpm with drastic consequences: the  Redhat Package Manager is completely broken. This. This is one top of a complete breakdown of yum. I was trying to fix yum, when I did this foolish act. Sqlite isn't even a package that can be  ...

Putting the fun back into blogging.

Oct. 23, 2008, 2:59 p.m. Wordpress

Ever since switching from movable type to wordpress, I have been posting like mad. That in spite of my rather busy schedule. In fact I am busier now than I was about 2-3 months ago when I barely manged 2 posts a week. Heck I have an exam coming up in 10 days time and haven't even started reading. Ov ...

Fixing the Wordpress Permalinks Migration Plugin

Oct. 22, 2008, 11:26 p.m. Wordpress

The other day, I changed the wordpress permalinks structure on my photo blog. Once you make the change, incoming links on other sites, google search and even internal links will result in 404 errors because wordpress will no longer map your old permalinks to individual posts. You can fix it by using ...

Find device name from UUID

Oct. 21, 2008, 11:17 p.m.

Now that most distros, Fedora in particular insist that you use UUIDs instead of device names in the /etc/fstab file, most of us know at least two different commands which can locate the UUID for a given partition. (What's that you don't know even one? try blkid). What if you want to do opposite; f ...

Adsense Targeting Gone Haywire

Oct. 21, 2008, 4:05 a.m. web 0.8 , weird

Many geeks complain that they are not getting enough revenue from the banners on their site. That's primarily because,only geeks visits geek sites and geeks don't click on ads. Heck nowadays, even ordinary folks are avoiding cheesy banner ads like the plague. If that's not bad enough google adsense ...

Wordpress: Change Permalinks

Oct. 20, 2008, 4:27 p.m. Wordpress

At my photoblog, I don't get as much traffic as I should. The reason is that the posts are identified by their postid ( /%post_id%/ ). As a result the urls are not keyword heavy and get lower rank. You will struggle to find any of those posts coming up top for any search.It's better to have posts id ...

Boot Fedora in Five Seconds.

Oct. 19, 2008, 10:53 p.m. bootstrap , green

I read with envy that the author of powertop (which I blogged about earlier) and some other blokes have managed to make Fedora boot up in 5 seconds.  In comparision, my boot time is painfully slow but it's still faster than what most other Fedora users have to suffer through and certainly a lot fast ...

RTFM causes 500 internal server error

Oct. 19, 2008, midnight weird

I can never quite remember whether it's print_r or var_dump in PHP that can send a detailed dump of an object to the server log file.  Who wants to remember it anyway, that's what the manual is there for. I want the manual to be instantly available, so I have a local copy. It's been working fine so ...

Hard Drive Failure ? argh not again

Oct. 18, 2008, 12:08 a.m. toast

Readers of this blog must be quite bored of my hard drive failures, but the sad fact is that I have another one on my hand. This time I know for sure that there isn't a hard ware fault the drive is a spanking new maxtor 160Gb. I have reason to believe XFS was the culprit or it might have been partpr ...

Python and Fortran

Oct. 17, 2008, 9:14 a.m. Python

I was quite surprised to learn that python does not use curly braces in the same manner that most other programming languages do - instead it relies on the levels of indentation to identify code blocks. The last time I had seen something like that was when I was using FORTRAN back in 1999.At the tim ...

subrequested from r->uri

Oct. 16, 2008, 5:37 a.m. weird

Having looked through some of the python introductory guides. I decide that my deep end of the pool is going to Python Server Pages. Since I am more skilled at web apps and desktop apps this is the logical choice however. I couldn't quite get off to an auspicious start - even my hello world resulted ...

The Serpent.

Oct. 15, 2008, 1:49 a.m. Python

I know quite a few languages but I suddenly realized that I have not learned any new language for more than 10 years. Sure I did make half baked attempts to learn ColdFusion, Ruby and I am ashamed to say even C# (but using mono). Never put in the effort required and never mastered any of them. What ...

Powertop.

Oct. 14, 2008, 12:22 a.m. green

Over the last few days I have been looking at ways of cutting down on my power consumption. I have been looking around at different ways of doing that and one interesting tool I found is powertop.  As the name suggests it's a tool that gives 'Table Of Power' consumption. I think in the old days top ...

Wrong Elf Class

Oct. 13, 2008, 5:59 a.m. toast

After upgrading from the 32 bit version of Fedora 9 to the 64 bit version I am seeing all kinds of problems. I use the word upgrade because, even though the mother board and the processor have changed, the hard drives haven't and their data has been preserved. Here is an example of one of the probl ...