<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Mads Klinkby's home &#187; linux</title>
	<atom:link href="http://kli.dk/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://kli.dk/</link>
	<description>Life in general and technology in particular.</description>
	<lastBuildDate>Fri, 27 Apr 2012 07:31:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='klinkby.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Mads Klinkby's home &#187; linux</title>
		<link>http://kli.dk/</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://kli.dk/osd.xml" title="Mads Klinkby&#039;s home" />
	<atom:link rel='hub' href='http://kli.dk/?pushpress=hub'/>
		<item>
		<title>VirtualBox Config Workaround</title>
		<link>http://kli.dk/2011/06/30/virtualbox-config-fix/</link>
		<comments>http://kli.dk/2011/06/30/virtualbox-config-fix/#comments</comments>
		<pubDate>Thu, 30 Jun 2011 14:51:39 +0000</pubDate>
		<dc:creator>Mads Klinkby</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://kli.dk/?p=508</guid>
		<description><![CDATA[I have been having some trouble with VirtualBox since I upgraded some time ago. Every time I close a VM VirtualBox places an invalid character (for an XML-parser anyway) in the config file, rendering the file unreadable for VirtualBox the next time I want to start it. So I did this naïve Python script to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=klinkby.wordpress.com&#038;blog=473322&#038;post=508&#038;subd=klinkby&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been having some <a href="http://www.virtualbox.org/ticket/8948">trouble with VirtualBox</a> since I upgraded some time ago. Every time I close a VM VirtualBox places an invalid character (for an XML-parser anyway) in the config file, rendering the file unreadable for VirtualBox the next time I want to start it.<br />
So I did this naïve Python script to fix it.</p>
<pre class="csharpcode">
filename = "/home/user/VirtualBox VMs/MyMachine/MyMachine.vbox" 
istr = <span class="str">'"/VirtualBox/GuestAdd/VersionEx"'</span>
jstr = <span class="str">'value="'</span>
kstr = <span class="str">'"'</span>

fi = <span class="kwrd">open</span>(filename)
s = fi.<span class="kwrd">read</span>()
fi.<span class="kwrd">close</span>()

i = s.<span class="kwrd">index</span>(istr) + len(istr)
j = s.<span class="kwrd">index</span>(jstr, i) + len(jstr)
k = s.<span class="kwrd">index</span>(kstr, j)
t = s[:j] + s[k:]

fi = <span class="kwrd">open</span>(filename, "w+")
fi.<span class="kwrd">write</span>(t)
fi.<span class="kwrd">close</span>()</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/klinkby.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/klinkby.wordpress.com/508/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/klinkby.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/klinkby.wordpress.com/508/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/klinkby.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/klinkby.wordpress.com/508/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/klinkby.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/klinkby.wordpress.com/508/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/klinkby.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/klinkby.wordpress.com/508/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/klinkby.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/klinkby.wordpress.com/508/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/klinkby.wordpress.com/508/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/klinkby.wordpress.com/508/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=klinkby.wordpress.com&#038;blog=473322&#038;post=508&#038;subd=klinkby&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kli.dk/2011/06/30/virtualbox-config-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e276edffcfa420c320712245b2d2b81c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">klinkby</media:title>
		</media:content>
	</item>
		<item>
		<title>Mythbuntu ate my Windows</title>
		<link>http://kli.dk/2008/12/08/mythbuntu-ate-my-windows/</link>
		<comments>http://kli.dk/2008/12/08/mythbuntu-ate-my-windows/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 08:30:59 +0000</pubDate>
		<dc:creator>Mads Klinkby</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[mythbuntu]]></category>
		<category><![CDATA[mythtv]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://kli.dk/?p=215</guid>
		<description><![CDATA[Using my notebook I installed Mythbuntu 8.10 on an external USB harddisk, as I wanted to see how MythTV compares to WMC on my HTPC. For some reason (only known to Mythbuntu developers) the installer also also decided to write a GRUB boot loader on the internal harddrive, on which I had HP Drive Encryption [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=klinkby.wordpress.com&#038;blog=473322&#038;post=215&#038;subd=klinkby&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Using my notebook I installed <a href="http://www.mythbuntu.org/">Mythbuntu 8.10</a> on an external USB harddisk, as I wanted to see how MythTV compares to WMC on my HTPC.</p>
<p>For some reason (only known to Mythbuntu developers) the installer also also decided to write a <a href="http://www.gnu.org/software/grub/">GRUB </a>boot loader on the internal harddrive, on which I had <a href="http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&amp;cc=sg&amp;prodTypeId=321957&amp;prodSeriesId=3355650&amp;prodNameId=3355661&amp;swEnvOID=2103&amp;swLang=8&amp;mode=2&amp;taskId=135&amp;swItem=ob-48966-1">HP Drive Encryption</a> enabled. </p>
<p>Goodbye Windows. R.I.P.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/klinkby.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/klinkby.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/klinkby.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/klinkby.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/klinkby.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/klinkby.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/klinkby.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/klinkby.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/klinkby.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/klinkby.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/klinkby.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/klinkby.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/klinkby.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/klinkby.wordpress.com/215/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=klinkby.wordpress.com&#038;blog=473322&#038;post=215&#038;subd=klinkby&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kli.dk/2008/12/08/mythbuntu-ate-my-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e276edffcfa420c320712245b2d2b81c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">klinkby</media:title>
		</media:content>
	</item>
	</channel>
</rss>
