Installing supervisor on Natty Nat will undoubtedly throw the error ImportError: cannot import name fixtag

The root cause of this error is the python-meld3 library and the following import statement:

from xml.etree.ElementTree import fixtag

The problem has been fixed in version 0.6.7 of python-meld3. Therefore, before you install supervisor, do the following on the command line as root:

aptitude install python-meld3
pip install meld3==0.6.7

The above will install version 0.6.5 of python-meld3 and then pip will upgrade it to the latest. You can then install supervisor without any problems.

If you want you can read the gory details of the problem in python-meld3.

A MySQL database creates a number of different data files in the mysql data directory (typically /var/lib/mysql). The following are the differences between the data files created:

File Extension Purpose
.frm table definition
.MYD table data
.MYI table indices

I believe these files are created for both MyISAM and InnoDB table types because the MySQL documentation references these types with respect to MyISAM and I definitely see them on my InnoDB tables.

I couldn’t find this information directly in the MySQL documentation and google wasn’t much help either so hopefully this post will save someone else some search effort.

Typically for loops in UNIX shell look like this:

for file in `ls *.c`
do
    cmd $file
done

However, the above has a serious problem in that it does not handle spaces in file names and will actually split the filename in two.

The following is a solution in bash:

files=(*.c)
for f in${files[@]}do
    cmd "$f"
done

But my favourite way to perform a loop and probably the most elegant solution is to use file globbing:

for f in *.c
do
    cmd "$f"
done

The one thing I have always hated about Microsoft is its predatory business practices that very deliberately try to undermine its competitors.  The whole “embrace and extend” strategy of purposefully breaking standards bothers me on many levels.  I am much more respectful of companies that concentrate on offering superior products and that is why I have always liked Apple.  So, you can imagine my shock at seeing the following pop-up when I was evaluating Apple’s new Mobile Me service. Continue reading »

What is the difference between UNIX Access, Modify, and Change Times?

This is a silly little thing that I consistently forget … or at least forget some of the subtle differences between these three measures.
Continue reading »

It is possible to have more than one trac site on one host.  This article explains how to accomplish this using apache, mod_python, and trac on a Red Hat based system (although the principles easily translate to Ubuntu based systems) so that each of your sites has an address like trac.example.com.

Continue reading »

This article describes common functionality that is often thought lacking in ksh but is just hiding in unintuitive corners (such as command line completion!)
Continue reading »

This document describes setting up the Logitech MX Revolution Mouse on Linux, however, the process would be similar for any Logitech MX* mouse.
Continue reading »

If you are using linux kernel 2.6.9+ with the Cisco VPN client you may not be able to compile the vpn client. The other problem may be that the system will hang / freeze when using the Cisco VPN client with linux kernels 2.6.9 or greater.
Continue reading »

This article describes installing and running Linux, specifically Fedora Core distro, on a Sony VAIO Series A Laptop (VGN-A170P).

Continue reading »

© 2013 rootsmith blog Suffusion theme by Sayontan Sinha