<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>blog.autopsy.se &#187; Linux</title>
	<atom:link href="http://blog.autopsy.se/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.autopsy.se</link>
	<description>basically; it sucks. everything sucks. but.. in a good way..</description>
	<lastBuildDate>Wed, 23 Nov 2011 18:25:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Perl 5.8.8 sucks, or the lack of Perl 5.10 on my box sucks! Really</title>
		<link>http://blog.autopsy.se/2009/01/perl-588-sucks-or-the-lack-of-perl-510-on-my-box-sucks-really/</link>
		<comments>http://blog.autopsy.se/2009/01/perl-588-sucks-or-the-lack-of-perl-510-on-my-box-sucks-really/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 01:44:34 +0000</pubDate>
		<dc:creator>ube</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Named Capture]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[RegExp]]></category>
		<category><![CDATA[Sucks! (Really!)]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://blog.autopsy.se/?p=55</guid>
		<description><![CDATA[Been struggling with a regexp using perl since I couldn't get sed to work as I wanted (mainly "+" sucks with sed). These are my tests: # echo cold.case.S01E12.qweqwe &#124;perl -pe 's/^(?:(.*)\.(\d+)x(\d+).*)&#124;(?:(.*)\.S(\d+)E(\d+)).*$/\1 \2 \3 \4 \5 \6 \7/' cold.case    01 12 #echo cold_case.1x12 &#124; perl -pe 's/^(?:(.*)\.(\d+)x(\d+).*)&#124;(?:(.*)\.S(\d+)E(\d+)).*$/\1 \2 \3 \4 \5 \6 \7/' cold_case 1 [...]]]></description>
			<content:encoded><![CDATA[<p>Been struggling with a regexp using perl since I couldn't get sed to work as I wanted (mainly "+" sucks with sed).</p>
<p><span id="more-55"></span></p>
<p>These are my tests:</p>
<p># echo cold.case.S01E12.qweqwe |perl -pe 's/^(?:(.*)\.(\d+)x(\d+).*)|(?:(.*)\.S(\d+)E(\d+)).*$/\1 \2 \3 \4 \5 \6 \7/'<br />
cold.case    01 12<br />
#echo cold_case.1x12 | perl -pe 's/^(?:(.*)\.(\d+)x(\d+).*)|(?:(.*)\.S(\d+)E(\d+)).*$/\1 \2 \3 \4 \5 \6 \7/'<br />
cold_case 1 12</p>
<p>Notice the three spaces in front of cold.case? It's because I can't get perl to do an alternate match. A friend came up with the following line:<br />
perl -pe 's/(?:^(?&lt;a&gt;.*)\.(?&lt;b&gt;[0-9])+x(?&lt;c&gt;[0-9]+).*$)|(?:^(?&lt;a&gt;.*)\.S(?&lt;b&gt;[0-9]+)E(?&lt;c&gt;[0-9]+).*$)/$+{a} $+{b} $+{c}/'<br />
Which works just fine, if you're running Perl 5.10, and I'm not! Or, it's not in the Gentoo repository yet. So I'll have to wait. Crap!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.autopsy.se/2009/01/perl-588-sucks-or-the-lack-of-perl-510-on-my-box-sucks-really/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mdadm sucks</title>
		<link>http://blog.autopsy.se/2008/12/mdadm-sucks/</link>
		<comments>http://blog.autopsy.se/2008/12/mdadm-sucks/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 02:47:54 +0000</pubDate>
		<dc:creator>ube</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[Sundsvall]]></category>
		<category><![CDATA[Sweden]]></category>

		<guid isPermaLink="false">http://blog.autopsy.se/?p=10</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>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:</p>
<p># mdadm -A -f /dev/md0 /dev/sd[acdefgh]1</p>
<p>Did the trick, it resetted the failed status on sdh1</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.autopsy.se/2008/12/mdadm-sucks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

