blog.autopsy.se

basically; it sucks. everything sucks. but.. in a good way..

Archive for December, 2008

SJ sucks!

Here in Sweden there are two train companies, Tågkompaniet and SJ. I'm on a train operated by the latter.. In first class you get free internet, so now I'm entering this post from my iPhone.. Kinda ok appart from the problem with writing in english with a swedish dictionary. When I type "a" it becomes "å" (river in swedish), I erase and type "a" again and my phone tries to be helpfull and corrects it to "att" (to in swedish).. Well, I know I could change the keyboard to english, but where does that leave me when I'm texting?

posted by ube in On the road,Rants and have No Comments

7 deadly sins of regexp

Lust /(.*?)/
Gluttony /(.{1,})\b/
Greed /^.*$/
Sloth http://www.amazon.com/Regular-Expression-Pocket-Reference-Expressions/dp/0596514271/ref=pd_bbs_sr_2?ie=UTF8&s=books&qid=1229670757&sr=8-2
Wrath s/.*//g
Envy FUCK IT!
Pride /(\((?:[^()]++|(?-1))*+\))/

Tags:
posted by ube in just for fun and have No Comments

mdadm sucks

A couple of months ago my box at home died. I came back home for vacation two days ago and started to check why it doesn't start.. One of the disks had been marked as failed (or acctually two, but only one is dead), I was wondering of removing all the data by re-creating the array and scrapping ~3Tb data.. But when I woke up from a nap this evening I thought that maybe the -f flag works with mdadm as well:

# mdadm -A -f /dev/md0 /dev/sd[acdefgh]1

Did the trick, it resetted the failed status on sdh1

posted by ube in Linux and have No Comments