Movabletype URLS

MT3 used underscore to separate names then along comes MT4 and it uses dashes (better choice in my opinion).metal-movable-type.jpg Having read some recent articles about non technology specific urls I decided to take the liberty of cleaning them up.

To that end I wrote a script to generate mod_rewrite rules based on the old urls. I also removed the .html extension. So the urls should look something like.

/blog/archives/2007/12/19/movabletype-urls

At least I hope they do.

Firefox Ignores xsl Stylesheets

I just noticed this tonight. I’m using Firefox 2.0.0.3 and from what I can tell Firefox ignores xsl style sheets! firefox-logo.png
Should I be bothered about this?
No! RSS is probably not the best thing to be styling when we consider the consumer and what they want. It is really meant to be grabbed, scanned and ditched. My attempt at pretty formatting is probably just crap to most RSS readers, machine and human alike.

firefox #ffffa0 input

If you have been struggling with Firefox styling your input boxes a lovely yellow color, it’s not Firefox, it’s the Google Toolbar. Check to make sure you have not got the AutoFill option enabled.

Trouble shooting Hadoop

I have been playing around with hadoop recently and came across the following error
org.apache.hadoop.mapred.InvalidInputException: Input path doesnt exist :
If this happens have you ran a command similar to the following
bin/hadoop dfs -put input /user/root/input
if not that might be your problem.

Could not find file.ocx

If you get this error:
“Could not find file.ocx”
do the following:
Open your file explorer by right clicking on “Start” and selecting “Explore”.
Open the “WINDOWS” folder on your C: drive
Open the “system32” folder.
Open the “Macromed” folder.
Open the “Flash” folder.
Copy the file called flash9.ocx and save it as file.ocx.
Don’t delete the original flash9.ocx.

ERROR 1017 (HY000):

If you recently restored a mysql database from a tar file and found it without any MYI files you will get he following error when trying to run sql against the tables.
ERROR 1017 (HY000): Can’t find file:
You can fix this by running:
REPAIR TABLE TABLENAME USE_FRM;

Debian and ymessenger

If you get a dependency problem with ymessenger on debian ie.
debian:~# dpkg -i /home/harry/ymessenger_1.0.4_1_i386.deb
Selecting previously deselected package ymessenger.
(Reading database … 156541 files and directories currently installed.)
Unpacking ymessenger (from …/ymessenger_1.0.4_1_i386.deb) …
dpkg: dependency problems prevent configuration of ymessenger:
ymessenger depends on xlibs (>> 3.3.6); however:
Package xlibs is not installed.
dpkg: error processing ymessenger (–install):
dependency problems – leaving unconfigured
Errors were encountered while processing:
ymessenger
Convert the rpm to a deb package using alien as follows
alien -c /home/harry/rh9.ymessenger-1.0.4-1.i386.rpm
then
dpkg -i ymessenger_1.0.4-2_i386.deb

Delete /dev/md0

If ever you make a mistake with software raid and you want to start from scratch by removing /dev/md0, the following command is a good place to start.

mdadm -S /dev/md0

Then create the array again as normal using something like
mdadm –create /dev/md0 –level=5 –raid-devices=3 /dev/sd[abc]1

Test::Harness Confused test output

If ever you get this error when using Test::Harness check to make sure that you are not printing anything that is interfering with it. See:
Test Anything Protocol

Test/Item/m_find_using_term_ids….ok 2/90Confused test output: test 2 answered after test 2
Test/Item/m_find_using_term_ids….ok 3/90Confused test output: test 3 answered after test 3
Test/Item/m_find_using_term_ids….ok 4/90Confused test output: test 4 answered after test 4

DegradedArray event

If you ever get one of these, count your lucky stars and get the array fixed. In my case I have lost one of the drives.

This is an automatically generated mail message from mdadm
running on debian
A DegradedArray event had been detected on md device /dev/md0.
Faithfully yours, etc.
P.S. The /proc/mdstat file currently contains the following:
Personalities : [linear] [raid1]
md0 : active raid1 hdc1[1]
78148096 blocks [2/1] [_U]
unused devices: