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?
Archive for December, 2008
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))*+\))/
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
Tags
Apple Arlanda Audiobooks Canada Code Poetry England faac Firefox first post Heatrow iPhone iPod iTunes Javascript job Links Linux London Mac mdadm Montreal mpg321 MySQL Named Capture Netbook On the plane pacemaker PC Perl PHP Picture RAID Reading RegExp Server Stockholm Sucks! (Really!) Sundsvall Sweden Tips Travel Traveling tv.autopsy.se Unix WordpressDemoscene
projects
Categories
Twitter
Error: Twitter did not respond. Please wait a few minutes and refresh this page.