<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>vanutsteen.nl =&gt; nerds only</title>
	
	<link>http://www.vanutsteen.nl</link>
	<description>A blog on rails, php, computing, my bass guitar and stuff</description>
	<lastBuildDate>Wed, 25 Apr 2012 14:12:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/vanutsteen" /><feedburner:info uri="vanutsteen" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Changing ip address on Ubuntu server</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/c59r4ITYnfc/</link>
		<comments>http://www.vanutsteen.nl/2012/04/10/changing-ip-address-on-ubuntu-server/#comments</comments>
		<pubDate>Mon, 09 Apr 2012 23:13:20 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=683</guid>
		<description><![CDATA[Easy as pie: PLAIN TEXT CODE: ifconfig eth0 192.168.5.120 netmask 255.255.255.0 up route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.5.1]]></description>
			<content:encoded><![CDATA[<p>Easy as pie:</p>
<div class="igBar"><span id="lcode-2"><a href="#" onclick="javascript:showPlainTxt('code-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-2">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ifconfig eth0 <span style="color:#800000;color:#800000;">192</span>.<span style="color:#800000;color:#800000;">168</span>.<span style="color:#800000;color:#800000;">5</span>.<span style="color:#800000;color:#800000;">120</span> netmask <span style="color:#800000;color:#800000;">255</span>.<span style="color:#800000;color:#800000;">255</span>.<span style="color:#800000;color:#800000;">255</span>.<span style="color:#800000;color:#800000;">0</span> up</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">route add -net <span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">0</span> netmask <span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">0</span> gw <span style="color:#800000;color:#800000;">192</span>.<span style="color:#800000;color:#800000;">168</span>.<span style="color:#800000;color:#800000;">5</span>.<span style="color:#800000;color:#800000;">1</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2012/04/10/changing-ip-address-on-ubuntu-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2012/04/10/changing-ip-address-on-ubuntu-server/</feedburner:origLink></item>
		<item>
		<title>Kruidvat fotoservice installeren op Ubuntu 12.04 (Precise Pangolin) / Linux</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/llJXj5y0Mlc/</link>
		<comments>http://www.vanutsteen.nl/2012/04/09/kruidvat-fotoservice-installeren-op-ubuntu-12-04-precise-pangolinlinux/#comments</comments>
		<pubDate>Mon, 09 Apr 2012 11:50:53 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=674</guid>
		<description><![CDATA[Ik wilde een paar foto's afdrukken op een groot formaat en het was eerste paasdag. Dus toen ben ik maar gaan zoeken naar fotosites die Linux ondersteunen. 1 van de weinige die Linux (een beetje) ondersteunt is Kruidvat. Zij bieden losse software aan die op Linux draait. Dat klopte maar ik moest wel eerst nog [...]]]></description>
			<content:encoded><![CDATA[<p>Ik wilde een paar foto's afdrukken op een groot formaat en het was eerste paasdag. Dus toen ben ik maar gaan zoeken naar fotosites die Linux ondersteunen. 1 van de weinige die Linux (een beetje) ondersteunt is Kruidvat.</p>
<p>Zij bieden losse software aan die op Linux draait. Dat klopte maar ik moest wel eerst nog wat (aparte) dingen installeren voordat de fotosoftware van Kruidvat werkte op Linux:</p>
<div class="igBar"><span id="lcode-5"><a href="#" onclick="javascript:showPlainTxt('code-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-5">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo apt-get install libstdc++<span style="color:#800000;color:#800000;">6</span>:i386 libfontconfig1:i386 libsm6:i386 </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Vervolgens de software zelf nog even:</p>
<div class="igBar"><span id="lcode-6"><a href="#" onclick="javascript:showPlainTxt('code-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-6">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">wget http:<span style="color:#FF9933; font-style:italic;">//www.kruidvat.nl/fotoservice/bestelsoftware-download-windows-download-windows-start.html?version=linux</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">tar -xzvf setup_Kruidvat_fotoservice.<span style="">tgz</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">./install.<span style="">pl</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><a href="http://www.vanutsteen.nl/wp-content/uploads/2012/04/kruidvat-op-linux-ubuntu.png"><img class="size-full alignnone" title="Kruidvat fotoservice op Ubuntu Linux" src="http://www.vanutsteen.nl/wp-content/plugins/com-resize/phpthumb/phpThumb.php?src=/wp-content/uploads/2012/04/kruidvat-op-linux-ubuntu.png&h=268&w=468" alt="Kruidvat fotoservice op Ubuntu Linux" width="468" height="268" /></a></p>
<p>Daarna kwam ik erachter dat <a title="Pixnum" href="http://pixum.com" target="_blank">Pixnum</a> ook Linux ondersteunt met verschillende uploaders (Flash, FTP &amp; Java) en goedkoper is dan Kruidvat. Toen waren de foto's echter al besteld. Misschien voor de volgende keer dus.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2012/04/09/kruidvat-fotoservice-installeren-op-ubuntu-12-04-precise-pangolinlinux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2012/04/09/kruidvat-fotoservice-installeren-op-ubuntu-12-04-precise-pangolinlinux/</feedburner:origLink></item>
		<item>
		<title>motorrijweer.nl</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/KpS8TWO8Coo/</link>
		<comments>http://www.vanutsteen.nl/2012/03/16/motorrijweer-nl/#comments</comments>
		<pubDate>Fri, 16 Mar 2012 18:28:59 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[flask]]></category>
		<category><![CDATA[google appengine]]></category>
		<category><![CDATA[motorrijweer]]></category>
		<category><![CDATA[motorweer]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=659</guid>
		<description><![CDATA[Ik heb de eerste versie van motorrijweer.nl live gezet! 't Is nog vrij basis maar je kunt wel al voor een paar regio's het motorweer/motorrijweer opvragen. Op naar de volgende versies!]]></description>
			<content:encoded><![CDATA[<p>Ik heb de eerste versie van <a title="Motorrijweer: is het goed motorweer?" href="http://www.motorrijweer.nl" target="_blank">motorrijweer.nl</a> live gezet! 't Is nog vrij basis maar je kunt wel al voor een paar regio's het motorweer/motorrijweer opvragen. Op naar de volgende versies!</p>
<p><a title="Motorweer / motorrijweer" href="http://www.motorrijweer.nl" target="_blank"><img class="alignnone" title="Motorrijweer / motorweer" src="http://www.vanutsteen.nl/wp-content/plugins/com-resize/phpthumb/phpThumb.php?src=/wp-content/uploads/2012/03/motorrijweer_motorweer.jpg&h=735&w=468" alt="Motorrijweer / motorweer" width="468" height="735" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2012/03/16/motorrijweer-nl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2012/03/16/motorrijweer-nl/</feedburner:origLink></item>
		<item>
		<title>Combining 4 images and aligning them next to eachother</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/DoGmR1obI-s/</link>
		<comments>http://www.vanutsteen.nl/2012/03/11/combining-4-images-and-aligning-them-next-to-eachother/#comments</comments>
		<pubDate>Sun, 11 Mar 2012 17:35:39 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[enfuse]]></category>
		<category><![CDATA[gimp]]></category>
		<category><![CDATA[hdr]]></category>
		<category><![CDATA[hugin]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=653</guid>
		<description><![CDATA[The workflow: make two new images out of 4: combining 2x2 to make hdr's. Then aligning them PLAIN TEXT CODE: sudo apt-get install hugin-tools enfuse enfuse DSC_166* -o 1.jpg enfuse DSC_167* -o 2.jpg align_image_stack -a test.jpg 1.jpg 2.jpg Then I put them next to eachother in GIMP :p &#160;]]></description>
			<content:encoded><![CDATA[<p>The workflow: make two new images out of 4: combining 2x2 to make hdr's. Then aligning them</p>
<div class="igBar"><span id="lcode-8"><a href="#" onclick="javascript:showPlainTxt('code-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-8">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo apt-get install hugin-tools enfuse</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">enfuse DSC_166* -o <span style="color:#800000;color:#800000;">1</span>.<span style="">jpg</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">enfuse DSC_167* -o <span style="color:#800000;color:#800000;">2</span>.<span style="">jpg</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">align_image_stack -a test.<span style="">jpg</span> <span style="color:#800000;color:#800000;">1</span>.<span style="">jpg</span> <span style="color:#800000;color:#800000;">2</span>.<span style="">jpg</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Then I put them next to eachother in GIMP :p</p>
<p><a href="http://www.vanutsteen.nl/wp-content/uploads/2012/03/autootje_gewassen.jpg"><img class="alignleft  wp-image-660" title="Aautootje gewassen" src="http://www.vanutsteen.nl/wp-content/plugins/com-resize/phpthumb/phpThumb.php?src=/wp-content/uploads/2012/03/autootje_gewassen-1024x387.jpg&h=177&w=468" alt="" width="468" height="177" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2012/03/11/combining-4-images-and-aligning-them-next-to-eachother/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2012/03/11/combining-4-images-and-aligning-them-next-to-eachother/</feedburner:origLink></item>
		<item>
		<title>The continuing story of Zend Studio 5.5.1 (part 2)</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/w0c8Lqr_1hc/</link>
		<comments>http://www.vanutsteen.nl/2012/03/05/the-continuing-story-of-zend-studio-5-5-1-part-2/#comments</comments>
		<pubDate>Mon, 05 Mar 2012 09:59:17 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jre]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zend studio]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=655</guid>
		<description><![CDATA[Everytime I install a new version of Ubuntu / Linux I'm hoping Zend Studio (the old/good one) will still be working. This time with Ubuntu 12.04 I again had to do this but it didn't take longer than a couple of minutes. First I had to install the java executable (otherwise I got a "java: [...]]]></description>
			<content:encoded><![CDATA[<p>Everytime I install a new version of Ubuntu / Linux I'm hoping <a title="Like!" href="https://www.facebook.com/pages/Zend-Studio-55-is-much-better-than-Zend-Studio-for-Eclipse/188533861180610?sk=info" target="_blank">Zend Studio</a> (the old/good one) will still be working. This time with Ubuntu 12.04 I again had to do this but it didn't take longer than a couple of minutes.</p>
<p>First I had to install the java executable (otherwise I got a "java: not found" error message. Because the Sun JRE isn't available anymore for Ubuntu (12.04) I installed the default one (icedtea I believe). To my amazing that worked perfectly!</p>
<p>Then I had to install some (i386) libs and it worked! libxcursor is need or else you'll get a really ugly cursor in Zend Studio 5.</p>
<div class="igBar"><span id="lcode-10"><a href="#" onclick="javascript:showPlainTxt('code-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-10">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo apt-get install default-jre</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo apt-get install libc6-i386 libxp6:i386 libxtst6:i386 libxcursor1:i386</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ln -s /lib32/libc.<span style="">so</span>.<span style="color:#800000;color:#800000;">6</span> /lib/libc.<span style="">so</span>.<span style="color:#800000;color:#800000;">6</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2012/03/05/the-continuing-story-of-zend-studio-5-5-1-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2012/03/05/the-continuing-story-of-zend-studio-5-5-1-part-2/</feedburner:origLink></item>
		<item>
		<title>msmtp and the aliases file (/etc/aliases)</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/2dDERVzoFjs/</link>
		<comments>http://www.vanutsteen.nl/2012/03/04/msmtp-and-the-aliases-file-etcaliases/#comments</comments>
		<pubDate>Sun, 04 Mar 2012 15:09:10 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[msmtp]]></category>
		<category><![CDATA[mta]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=650</guid>
		<description><![CDATA[Since version 1.4.25 msmtp has support for a aliases file. I edited my ~/.msmtprc and added: PLAIN TEXT CODE: aliases ~/.aliases ~/.aliases: PLAIN TEXT CODE: root:           myemail@mydomain.tld Only ~/.aliases didn't get expanded to the full path: http://sourceforge.net/mailarchive/forum.php?thread_name=1330871670.3229.1.camel%40polly&#38;forum_name=msmtp-users Other than that, it worked perfectly! Now I can send e-mails to root and [...]]]></description>
			<content:encoded><![CDATA[<p>Since version 1.4.25 msmtp has support for a aliases file. I edited my ~/.msmtprc and added:</p>
<div class="igBar"><span id="lcode-13"><a href="#" onclick="javascript:showPlainTxt('code-13'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-13">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">aliases ~/.<span style="">aliases</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>~/.aliases:</p>
<div class="igBar"><span id="lcode-14"><a href="#" onclick="javascript:showPlainTxt('code-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-14">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">root:           myemail@mydomain.<span style="">tld</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Only ~/.aliases didn't get expanded to the full path:</p>
<p><a href="http://sourceforge.net/mailarchive/forum.php?thread_name=1330871670.3229.1.camel%40polly&amp;forum_name=msmtp-users">http://sourceforge.net/mailarchive/forum.php?thread_name=1330871670.3229.1.camel%40polly&amp;forum_name=msmtp-users</a></p>
<p>Other than that, it worked perfectly! Now I can send e-mails to root and have them delivered to my personal e-mailaddress.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2012/03/04/msmtp-and-the-aliases-file-etcaliases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2012/03/04/msmtp-and-the-aliases-file-etcaliases/</feedburner:origLink></item>
		<item>
		<title>Removing the password from an (open) ssl key</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/EfPXSfqzxGg/</link>
		<comments>http://www.vanutsteen.nl/2012/02/22/removing-the-password-from-an-open-ssl-key/#comments</comments>
		<pubDate>Wed, 22 Feb 2012 09:40:24 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[password]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=645</guid>
		<description><![CDATA[PLAIN TEXT CODE: openssl rsa -in www_silverpower_nl.key -out www_silverpower_nl.key.unencrypted]]></description>
			<content:encoded><![CDATA[<div class="igBar"><span id="lcode-16"><a href="#" onclick="javascript:showPlainTxt('code-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-16">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">openssl rsa -in www_silverpower_nl.<span style="">key</span> -out www_silverpower_nl.<span style="">key</span>.<span style="">unencrypted</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2012/02/22/removing-the-password-from-an-open-ssl-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2012/02/22/removing-the-password-from-an-open-ssl-key/</feedburner:origLink></item>
		<item>
		<title>Securing chromium-browser with apparmor on Ubuntu 11.10</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/R9wNewoVjbw/</link>
		<comments>http://www.vanutsteen.nl/2012/02/19/securing-chromium-browser-with-apparmor-on-ubuntu-11-10/#comments</comments>
		<pubDate>Sun, 19 Feb 2012 17:42:03 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apparmor]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[chromium]]></category>
		<category><![CDATA[chromium-browser]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=633</guid>
		<description><![CDATA[I wanted to make chromium (chrome) more secure. Just to be safe. I found out that the package apparmor-profiles on Ubuntu contained an apparmor profile for chromium-browser. I installed it and tried to enforce it without using the aa-enforce binary (which required the apparmor-utils package) but I couln't get that to work. So I installed [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to make chromium (chrome) more secure. Just to be safe. I found out that the package apparmor-profiles on Ubuntu contained an apparmor profile for chromium-browser. I installed it and tried to enforce it without using the aa-enforce binary (which required the apparmor-utils package) but I couln't get that to work. So I installed apparmor-utils anyway.</p>
<div class="igBar"><span id="lcode-19"><a href="#" onclick="javascript:showPlainTxt('code-19'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-19">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo apt-get install apparmor-profiles apparmor-utils</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo aa-enforce /usr/bin/chromium-browser /usr/lib/chromium-browser/chromium-browser </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>When all is done, quit the chromium browser and restart it. Then, when you run aa-status it should list chromium-browser as 'enforced'.</p>
<p>I tried to do the same thing for /usr/sbin/dovecot but that didn't quite work. Dovecot threw errors like:</p>
<div class="igBar"><span id="lcode-20"><a href="#" onclick="javascript:showPlainTxt('code-20'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-20">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">init: dovecot main process <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">8738</span><span style="color:#006600; font-weight:bold;">&#41;</span> terminated with status <span style="color:#800000;color:#800000;">84</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>I tried fixing it but I didn't get it to work so I gave up.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2012/02/19/securing-chromium-browser-with-apparmor-on-ubuntu-11-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2012/02/19/securing-chromium-browser-with-apparmor-on-ubuntu-11-10/</feedburner:origLink></item>
		<item>
		<title>dump a Varien_Db_Select / Zend_Db_Select query</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/eIRasXoQHAA/</link>
		<comments>http://www.vanutsteen.nl/2012/02/13/dump-a-varien_db_select-zend_db_select-query/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 09:26:06 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=630</guid>
		<description><![CDATA[PLAIN TEXT CODE: $query = $adapter-&#62;getProfiler&#40;&#41;-&#62;getLastQueryProfile&#40;&#41;-&#62;getQuery&#40;&#41;; //print last executed query foreach &#40;$adapter-&#62;getProfiler&#40;&#41;-&#62;getLastQueryProfile&#40;&#41;-&#62;getQueryParams&#40;&#41; as $k =&#62; $v&#41; &#123; $query = $query = str_replace&#40;$k, "'{$v}'", $query&#41;; &#125; var_dump&#40;$query&#41;; A more complete example: PLAIN TEXT CODE: $adapter = Mage::getSingleton&#40;'core/resource'&#41;-&#62;getConnection&#40;'core_write'&#41;; $adapter-&#62;getProfiler&#40;&#41;-&#62;setEnabled&#40;true&#41;; //enable profiler &#160; // Do database stuff &#160; $number = 10; $profiles = $adapter-&#62;getProfiler&#40;&#41;-&#62;getQueryProfiles&#40;&#41;; $profiles = array_slice&#40;$profiles, count&#40;$profiles&#41;-$number, [...]]]></description>
			<content:encoded><![CDATA[<div class="igBar"><span id="lcode-23"><a href="#" onclick="javascript:showPlainTxt('code-23'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-23">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$query = $adapter-&gt;<span style="">getProfiler</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="">getLastQueryProfile</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="">getQuery</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#FF9933; font-style:italic;">//print last executed query</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">foreach <span style="color:#006600; font-weight:bold;">&#40;</span>$adapter-&gt;<span style="">getProfiler</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="">getLastQueryProfile</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="">getQueryParams</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> as $k =&gt; $v<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$query = $query = str_replace<span style="color:#006600; font-weight:bold;">&#40;</span>$k, <span style="color:#CC0000;">"'{$v}'"</span>, $query<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">var_dump<span style="color:#006600; font-weight:bold;">&#40;</span>$query<span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>A more complete example:</p>
<div class="igBar"><span id="lcode-24"><a href="#" onclick="javascript:showPlainTxt('code-24'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-24">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$adapter = Mage::<span style="">getSingleton</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'core/resource'</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="">getConnection</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'core_write'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$adapter-&gt;<span style="">getProfiler</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="">setEnabled</span><span style="color:#006600; font-weight:bold;">&#40;</span>true<span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#FF9933; font-style:italic;">//enable profiler</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// Do database stuff</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$number = <span style="color:#800000;color:#800000;">10</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$profiles = $adapter-&gt;<span style="">getProfiler</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="">getQueryProfiles</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$profiles = array_slice<span style="color:#006600; font-weight:bold;">&#40;</span>$profiles, count<span style="color:#006600; font-weight:bold;">&#40;</span>$profiles<span style="color:#006600; font-weight:bold;">&#41;</span>-$number, $number<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">foreach <span style="color:#006600; font-weight:bold;">&#40;</span>$profiles as $profile<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$query = $profile-&gt;<span style="">getQuery</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#FF9933; font-style:italic;">//print last executed query</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">foreach <span style="color:#006600; font-weight:bold;">&#40;</span>$profile-&gt;<span style="">getQueryParams</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> as $k =&gt; $v<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$query = $query = str_replace<span style="color:#006600; font-weight:bold;">&#40;</span>$k, <span style="color:#CC0000;">"'{$v}'"</span>, $query<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$query = preg_replace<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'/<span style="color:#000099; font-weight:bold;">\?</span>/'</span>, $v, $query<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">var_dump<span style="color:#006600; font-weight:bold;">&#40;</span>$query<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2012/02/13/dump-a-varien_db_select-zend_db_select-query/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2012/02/13/dump-a-varien_db_select-zend_db_select-query/</feedburner:origLink></item>
		<item>
		<title>Nginx + sabnzbd + sickbeard + couchpotato + spotweb on my pandaboard</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/YuMIRkj1Cn8/</link>
		<comments>http://www.vanutsteen.nl/2012/02/04/nginx-sabnzbd-sickbeard-couchpotato-spotweb-on-my-pandaboard/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 18:02:30 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[arm]]></category>
		<category><![CDATA[couchpotato]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[pandaboard]]></category>
		<category><![CDATA[sabnzbd]]></category>
		<category><![CDATA[sickbeard]]></category>
		<category><![CDATA[spotweb]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=605</guid>
		<description><![CDATA[I got Apache- (mpm-itk), sickbeard, sabnzbd, couchpotato and spotweb running on my pandaboard. But apache really used up a lot of resources. So I decided to replace it with nginx. Nginx would be a reverse proxy and communicate via fastcgi with php. This post describes how to set up Nginx. Not how to install sabnzbd, [...]]]></description>
			<content:encoded><![CDATA[<p>I got Apache- (mpm-itk), sickbeard, sabnzbd, couchpotato and spotweb running on my pandaboard. But apache really used up a lot of resources. So I decided to replace it with nginx. Nginx would be a reverse proxy and communicate via fastcgi with php.</p>
<p>This post describes how to set up <strong>Nginx</strong>. Not how to install sabnzbd, sickbeard, couchpotato or spotweb on your machine. I assume you know how to do that.</p>
<h3>Step 1: install nginx</h3>
<div class="igBar"><span id="lcode-32"><a href="#" onclick="javascript:showPlainTxt('code-32'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-32">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">leon@panda:~$ sudo apt-get install nginx-light </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h3>Step 2: proxy stuff</h3>
<p>Add all the important proxy stuff in one file so it can be included later on.</p>
<p>leon@panda:~$ cat /etc/nginx/conf.d/proxy.conf</p>
<div class="igBar"><span id="lcode-33"><a href="#" onclick="javascript:showPlainTxt('code-33'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-33">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">proxy_redirect off;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">proxy_set_header Host $host;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">proxy_set_header X-Real-IP $remote_addr;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">client_max_body_size 10m;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">client_body_buffer_size 128k;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">proxy_connect_timeout <span style="color:#800000;color:#800000;">90</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">proxy_send_timeout <span style="color:#800000;color:#800000;">90</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">proxy_read_timeout <span style="color:#800000;color:#800000;">90</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">proxy_buffers <span style="color:#800000;color:#800000;">32</span> 4k;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">allow <span style="color:#800000;color:#800000;">192</span>.<span style="color:#800000;color:#800000;">168</span>.<span style="color:#800000;color:#800000;">1</span>.<span style="color:#800000;color:#800000;">0</span>/<span style="color:#800000;color:#800000;">24</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">deny all; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h3>Step 3: set up all the locations</h3>
<p>Set up alle the locations (subdirectories on you http server) for sabnzbdplus, sickbeard, couchpotato and spotweb.</p>
<p>The important part from /etc/nginx/sites-enabled/default:</p>
<div class="igBar"><span id="lcode-34"><a href="#" onclick="javascript:showPlainTxt('code-34'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-34">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">server <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">location /sabnzbd <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">include /etc/nginx/conf.<span style="">d</span>/proxy.<span style="">conf</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">proxy_pass http:<span style="color:#FF9933; font-style:italic;">//localhost:9090;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">location /sickbeard <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">include /etc/nginx/conf.<span style="">d</span>/proxy.<span style="">conf</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">proxy_pass http:<span style="color:#FF9933; font-style:italic;">//localhost:8081;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">location /couchpotato <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">include /etc/nginx/conf.<span style="">d</span>/proxy.<span style="">conf</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">proxy_pass http:<span style="color:#FF9933; font-style:italic;">//localhost:5000/;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">rewrite ^/couchpotato/?$ /couchpotato/movie/ permanent;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">location /spotweb <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">alias /home/leon/src/spotweb/spotweb.<span style="">git</span>; #not root directive</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">location ~* \.<span style="">php</span>$ <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fastcgi_pass localhost:<span style="color:#800000;color:#800000;">9001</span>; #defined in /etc/php5/fpm/pool.<span style="">d</span>/leon.<span style="">conf</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">include fastcgi_params;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fastcgi_index index.<span style="">php</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<blockquote><p>Sorry about the indentation... Anyone recomend a good code plugin for wordpress?</p></blockquote>
<h3>Step 4: setup php</h3>
<p>Now we're going to set up php for nginx with php5-fpm. This is a new module and isn't available on older versions of ubuntu. I think it's only available from ubuntu 10.10 and onwards.</p>
<div class="igBar"><span id="lcode-35"><a href="#" onclick="javascript:showPlainTxt('code-35'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-35">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">leon@panda:~$ sudo apt-get install php5-fpm </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Then edit /etc/php5/fpm/pool.d/leon.conf (in my case). I created another pool for my user ('leon') because I don't want it to run under the user www-data or similar.</p>
<p>cat /etc/php5/fpm/pool.d/leon.conf</p>
<div class="igBar"><span id="lcode-36"><a href="#" onclick="javascript:showPlainTxt('code-36'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-36">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">; Start a new pool named <span style="color:#CC0000;">'leon'</span>.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>leon<span style="color:#006600; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">listen = <span style="color:#800000;color:#800000;">127</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">1</span>:<span style="color:#800000;color:#800000;">9001</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">user = leon</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">group = leon</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">pm = dynamic</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">pm.<span style="">start_servers</span> = <span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">pm.<span style="">min_spare_servers</span> = <span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">pm.<span style="">max_spare_servers</span> = <span style="color:#800000;color:#800000;">4</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">pm.<span style="">max_children</span> = <span style="color:#800000;color:#800000;">4</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h3>Step 5: Restart everything and admire your work</h3>
<div class="igBar"><span id="lcode-37"><a href="#" onclick="javascript:showPlainTxt('code-37'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-37">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">leon@panda:~$ sudo service nginx restart</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">leon@panda:~$ sudo service php5-fmp restart </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Footnotes:<br />
I also tried to get it working with chroot = /home/leon in /etc/php5/fpm/pool.d/leon.conf but I couldn't get spotweb working with mysql on port 3306. When chrooted you can't access /var/run/mysqld/mysqld.sock. I'll have to investigate that a bit more.</p>
<p>Also, you could remove /etc/php5/fpm/pool.d/www.conf if you don't use it (like in my case):</p>
<div class="igBar"><span id="lcode-38"><a href="#" onclick="javascript:showPlainTxt('code-38'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-38">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cd /etc/php5/fpm/pool.<span style="">d</span>/</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo mv www.<span style="">conf</span> www.<span style="">conf</span>.<span style="">disabled</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo service php5-fpm restart </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2012/02/04/nginx-sabnzbd-sickbeard-couchpotato-spotweb-on-my-pandaboard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2012/02/04/nginx-sabnzbd-sickbeard-couchpotato-spotweb-on-my-pandaboard/</feedburner:origLink></item>
		<item>
		<title>Access a pandboard with a ‘screen’ serial console</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/mJzvq-nQLYU/</link>
		<comments>http://www.vanutsteen.nl/2012/01/30/access-a-pandboard-with-a-screen-serial-console/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 22:56:58 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[pandaboard]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=600</guid>
		<description><![CDATA[Easy as: PLAIN TEXT CODE: /usr/bin/screen /dev/ttyUSB0 115200]]></description>
			<content:encoded><![CDATA[<p>Easy as:</p>
<div class="igBar"><span id="lcode-40"><a href="#" onclick="javascript:showPlainTxt('code-40'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-40">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">/usr/bin/screen /dev/ttyUSB0 <span style="color:#800000;color:#800000;">115200</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2012/01/30/access-a-pandboard-with-a-screen-serial-console/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2012/01/30/access-a-pandboard-with-a-screen-serial-console/</feedburner:origLink></item>
		<item>
		<title>ACTA / SOPA / PIPA</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/eA9uN9WwNjk/</link>
		<comments>http://www.vanutsteen.nl/2012/01/27/acta-sopa-pipa/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 18:13:30 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[acta]]></category>
		<category><![CDATA[pipa]]></category>
		<category><![CDATA[sopa]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=596</guid>
		<description><![CDATA[Iedereen die het nog niet gedaan heeft: onderteken de ACTA petitie nu!]]></description>
			<content:encoded><![CDATA[<p>Iedereen die het nog niet gedaan heeft: onderteken de <a title="Acta petitie" href="http://petities.nl/petitie/verwerpen-acta-verdrag" target="_blank">ACTA petitie</a> nu!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2012/01/27/acta-sopa-pipa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2012/01/27/acta-sopa-pipa/</feedburner:origLink></item>
		<item>
		<title>git add -u</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/gY8mZNA39Xc/</link>
		<comments>http://www.vanutsteen.nl/2012/01/21/git-add-u/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 18:40:54 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=593</guid>
		<description><![CDATA[This is a nice one: PLAIN TEXT CODE: git add -u This only adds already commited files to a new commit. And leaves files not in the git repository alone.]]></description>
			<content:encoded><![CDATA[<p>This is a nice one:</p>
<div class="igBar"><span id="lcode-42"><a href="#" onclick="javascript:showPlainTxt('code-42'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-42">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">git add -u </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>This only adds already commited files to a new commit. And leaves files not in the git repository alone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2012/01/21/git-add-u/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2012/01/21/git-add-u/</feedburner:origLink></item>
		<item>
		<title>Ubuntu 11.10 on my laptop and ufw</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/RmkLcerRz34/</link>
		<comments>http://www.vanutsteen.nl/2011/12/24/ubuntu-11-10-on-my-laptop-and-ufw/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 23:44:31 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ufw]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=589</guid>
		<description><![CDATA[I decided on enabling ufw (uncomplicated firewall) on my laptop (you can't be secure enough). Too bad it isn't enabled by default on Ubuntu. So I had to do this: PLAIN TEXT CODE: sudo ufw enable sudo ufw default deny sudo ufw deny "Dovecot POP3" sudo ufw deny "Dovecot IMAP" sudo ufw deny "Dovecot Secure [...]]]></description>
			<content:encoded><![CDATA[<p>I decided on enabling ufw (uncomplicated firewall) on my laptop (you can't be secure enough). Too bad it isn't enabled by default on Ubuntu. So I had to do this:</p>
<div class="igBar"><span id="lcode-44"><a href="#" onclick="javascript:showPlainTxt('code-44'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-44">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo ufw enable</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo ufw default deny</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo ufw deny <span style="color:#CC0000;">"Dovecot POP3"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo ufw deny <span style="color:#CC0000;">"Dovecot IMAP"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo ufw deny <span style="color:#CC0000;">"Dovecot Secure IMAP"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo ufw deny <span style="color:#CC0000;">"Dovecot Secure POP3"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo ufw status verbose </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2011/12/24/ubuntu-11-10-on-my-laptop-and-ufw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2011/12/24/ubuntu-11-10-on-my-laptop-and-ufw/</feedburner:origLink></item>
		<item>
		<title>Listing contents of a tar.gz and extracting one specific directory</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/NIZqMpkoLsk/</link>
		<comments>http://www.vanutsteen.nl/2011/12/09/listing-contents-of-a-tar-gz-and-extracting-one-specific-directory/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 23:04:03 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[tar.gz]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=587</guid>
		<description><![CDATA[PLAIN TEXT CODE: # tar -ztvf babyhuiscasita.nl.tar.gz &#124;grep sql # tar -xzvf babyhuiscasita.nl.tar.gz ./.backup/babyhuiscasita.nl_mysql -t = list -x = extract]]></description>
			<content:encoded><![CDATA[<div class="igBar"><span id="lcode-46"><a href="#" onclick="javascript:showPlainTxt('code-46'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-46">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># tar -ztvf babyhuiscasita.<span style="">nl</span>.<span style="">tar</span>.<span style="">gz</span> |grep sql</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># tar -xzvf babyhuiscasita.<span style="">nl</span>.<span style="">tar</span>.<span style="">gz</span> ./.<span style="">backup</span>/babyhuiscasita.<span style="">nl_mysql</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
-t = list<br />
-x = extract</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2011/12/09/listing-contents-of-a-tar-gz-and-extracting-one-specific-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2011/12/09/listing-contents-of-a-tar-gz-and-extracting-one-specific-directory/</feedburner:origLink></item>
		<item>
		<title>Asus k53sv &amp; ubuntu power management</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/RusQBZQfaIU/</link>
		<comments>http://www.vanutsteen.nl/2011/11/23/asus-k53sv-ubuntu-power-management/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 22:48:32 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=580</guid>
		<description><![CDATA[Using my new Asus k53sv with Ubuntu 11.10 resulted in 2 hours of battery time. I know the k53 doesn't have a fancy battery (quite the opposite) but I thought 2 hours was really bad. With the power regression bug of the Linux kernel in my mind, I started searching. A lot of posts suggested [...]]]></description>
			<content:encoded><![CDATA[<p>Using my new Asus k53sv with Ubuntu 11.10 resulted in 2 hours of battery time. I know the k53 doesn't have a fancy battery (quite the opposite) but I thought 2 hours was really bad.</p>
<p>With the power regression bug of the Linux kernel in my mind, I started searching. A lot of posts suggested using "pcie_aspm=force". I tried that by editing the grub menu, but that didn't really help (at all). dmesg kept complaining about the bios not letting it so that was a dead end.</p>
<p>Phoronix suggested enabling some power options for the i915 chipset (onboard videocard).</p>
<p>So I changed the following in /etc/default/grub:</p>
<div class="igBar"><span id="lcode-49"><a href="#" onclick="javascript:showPlainTxt('code-49'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-49">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">GRUB_CMDLINE_LINUX_DEFAULT=<span style="color:#CC0000;">"quiet splash"</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>to:</p>
<div class="igBar"><span id="lcode-50"><a href="#" onclick="javascript:showPlainTxt('code-50'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-50">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">GRUB_CMDLINE_LINUX_DEFAULT=<span style="color:#CC0000;">"quiet splash pcie_aspm=force i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1"</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>After a reboot the remaining battery time had changed from 2 hours to a little less than 3 hours. That's an improvement of almost 50%!</p>
<p>The only downside was that after a suspend (to memory) the screen gets garbled. But after a ctrl+F1 and ctrl+F8 that's fixed. So I'm actually quite happy know. Thanks Phoronix!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2011/11/23/asus-k53sv-ubuntu-power-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2011/11/23/asus-k53sv-ubuntu-power-management/</feedburner:origLink></item>
		<item>
		<title>3 useful route commands</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/79gwCT-GZLo/</link>
		<comments>http://www.vanutsteen.nl/2011/11/09/2-useful-route-commands/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 12:24:43 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[vpn route]]></category>
		<category><![CDATA[vpns]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=571</guid>
		<description><![CDATA[To route an ip address through a (vpn) connection: PLAIN TEXT CODE: sudo route add -net XX.192.85.XX netmask 255.255.255.255 gw 192.168.1.1 sudo route add -net 10.76.122.0 netmask 255.255.255.0 gw 192.168.1.1 route -n Or maybe add a whole range / subnet: PLAIN TEXT CODE: sudo route add -net 95.170.89.0 netmask 255.255.255.224 gw 10.76.122.152 Or maybe dynamic? [...]]]></description>
			<content:encoded><![CDATA[<p>To route an ip address through a (vpn) connection:</p>
<div class="igBar"><span id="lcode-54"><a href="#" onclick="javascript:showPlainTxt('code-54'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-54">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo route add -net XX.<span style="color:#800000;color:#800000;">192</span>.<span style="color:#800000;color:#800000;">85</span>.<span style="">XX</span> netmask <span style="color:#800000;color:#800000;">255</span>.<span style="color:#800000;color:#800000;">255</span>.<span style="color:#800000;color:#800000;">255</span>.<span style="color:#800000;color:#800000;">255</span> gw <span style="color:#800000;color:#800000;">192</span>.<span style="color:#800000;color:#800000;">168</span>.<span style="color:#800000;color:#800000;">1</span>.<span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo route add -net <span style="color:#800000;color:#800000;">10</span>.<span style="color:#800000;color:#800000;">76</span>.<span style="color:#800000;color:#800000;">122</span>.<span style="color:#800000;color:#800000;">0</span> netmask <span style="color:#800000;color:#800000;">255</span>.<span style="color:#800000;color:#800000;">255</span>.<span style="color:#800000;color:#800000;">255</span>.<span style="color:#800000;color:#800000;">0</span> gw <span style="color:#800000;color:#800000;">192</span>.<span style="color:#800000;color:#800000;">168</span>.<span style="color:#800000;color:#800000;">1</span>.<span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">route -n </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Or maybe add a whole range / subnet:</p>
<div class="igBar"><span id="lcode-55"><a href="#" onclick="javascript:showPlainTxt('code-55'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-55">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo route add -net <span style="color:#800000;color:#800000;">95</span>.<span style="color:#800000;color:#800000;">170</span>.<span style="color:#800000;color:#800000;">89</span>.<span style="color:#800000;color:#800000;">0</span> netmask <span style="color:#800000;color:#800000;">255</span>.<span style="color:#800000;color:#800000;">255</span>.<span style="color:#800000;color:#800000;">255</span>.<span style="color:#800000;color:#800000;">224</span> gw <span style="color:#800000;color:#800000;">10</span>.<span style="color:#800000;color:#800000;">76</span>.<span style="color:#800000;color:#800000;">122</span>.<span style="color:#800000;color:#800000;">152</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Or maybe dynamic?</p>
<div class="igBar"><span id="lcode-56"><a href="#" onclick="javascript:showPlainTxt('code-56'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-56">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">route add -net <span style="color:#800000;color:#800000;">95</span>.<span style="color:#800000;color:#800000;">170</span>.<span style="color:#800000;color:#800000;">89</span>.<span style="color:#800000;color:#800000;">0</span> netmask <span style="color:#800000;color:#800000;">255</span>.<span style="color:#800000;color:#800000;">255</span>.<span style="color:#800000;color:#800000;">255</span>.<span style="color:#800000;color:#800000;">224</span> gw `ip addr show ppp0 | awk <span style="color:#CC0000;">'/inet/{print$2}'</span>` </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2011/11/09/2-useful-route-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2011/11/09/2-useful-route-commands/</feedburner:origLink></item>
		<item>
		<title>Sublime Text 2</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/kIIIpG0s4fY/</link>
		<comments>http://www.vanutsteen.nl/2011/10/26/sublime-text-2/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 21:36:30 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[gvim]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=562</guid>
		<description><![CDATA[I installed sublime text on my Ubuntu 11.10 box but I had some troubled loading external python modules: PLAIN TEXT CODE: loaded 937 snippets &#62;&#62;&#62; import distutils Traceback &#40;most recent call last&#41;: &#160; File "&#60;string&#62;", line 1, in &#60;module&#62; ImportError: No module named distutils This is how I solved it: Edited ~/.local/share/applications/sublime.desktop Especially this line: PLAIN [...]]]></description>
			<content:encoded><![CDATA[<p>I installed sublime text on my Ubuntu 11.10 box but I had some troubled loading external python modules:</p>
<div class="igBar"><span id="lcode-60"><a href="#" onclick="javascript:showPlainTxt('code-60'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-60">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">loaded <span style="color:#800000;color:#800000;">937</span> snippets</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&gt;&gt;&gt; import distutils</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Traceback <span style="color:#006600; font-weight:bold;">&#40;</span>most recent call last<span style="color:#006600; font-weight:bold;">&#41;</span>:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; File <span style="color:#CC0000;">"&lt;string&gt;"</span>, line <span style="color:#800000;color:#800000;">1</span>, in &lt;module&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ImportError: No module named distutils </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>This is how I solved it:</p>
<p>Edited ~/.local/share/applications/sublime.desktop<br />
Especially this line:</p>
<div class="igBar"><span id="lcode-61"><a href="#" onclick="javascript:showPlainTxt('code-61'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-61">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Exec=<span style="color:#CC0000;">"/home/leon/Software/bin/sublime"</span> %U </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>/home/leon/Software/bin/sublime contains this:</p>
<div class="igBar"><span id="lcode-62"><a href="#" onclick="javascript:showPlainTxt('code-62'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-62">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#!/bin/bash</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cd /usr/lib/python2.<span style="color:#800000;color:#800000;">7</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">/home/leon/Software/SublimeText2/sublime_text </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Then I installed some excellent plugins:</p>
<ul>
<li><a href="http://wbond.net/sublime_packages/package_control">http://wbond.net/sublime_packages/package_control</a></li>
<li><a href="https://github.com/Kronuz/SublimeCodeIntel">https://github.com/Kronuz/SublimeCodeIntel</a></li>
<li><a href="https://github.com/JulianEberius/SublimeRope">https://github.com/JulianEberius/SublimeRope</a></li>
<li><a href="https://bitbucket.org/sublimator/sublime-2-zencoding">https://bitbucket.org/sublimator/sublime-2-zencoding</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2011/10/26/sublime-text-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2011/10/26/sublime-text-2/</feedburner:origLink></item>
		<item>
		<title>Chaning the glippy indicator icon</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/XEtdOpMoXvc/</link>
		<comments>http://www.vanutsteen.nl/2011/10/24/chaning-the-glippy-indicator-icon/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 21:25:26 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[clipboard manager]]></category>
		<category><![CDATA[glippy]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=559</guid>
		<description><![CDATA[Copy the mono paste icon over to ~/.icons/Humanity/actions/22/edit-paste.svg &#160;]]></description>
			<content:encoded><![CDATA[<p>Copy the <a title="Mono paste icon" href="http://gnome-look.org/content/show.php/Ubuntu+Lucid+Parcellite+icon?content=123418" target="_blank">mono paste icon</a> over to ~/.icons/Humanity/actions/22/edit-paste.svg</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2011/10/24/chaning-the-glippy-indicator-icon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2011/10/24/chaning-the-glippy-indicator-icon/</feedburner:origLink></item>
		<item>
		<title>Using rsync with spaces</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/564f--mZXoI/</link>
		<comments>http://www.vanutsteen.nl/2011/09/14/using-rsync-with-spaces/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 22:51:16 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[quotes]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=539</guid>
		<description><![CDATA[Something to never forget again: PLAIN TEXT CODE: rsync --recursive me@remote:'&#34;~/Very complicated path/&#34;' ~/Downloads/ So: single quote, double quote, path, double quote, single quote]]></description>
			<content:encoded><![CDATA[<p>Something to never forget again:</p>
<div class="igBar"><span id="lcode-64"><a href="#" onclick="javascript:showPlainTxt('code-64'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-64">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">rsync --recursive me@remote:<span style="color:#CC0000;">'&quot;~/Very complicated path/&quot;'</span> ~/Downloads/ </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>So: single quote, double quote, path, double quote, single quote</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2011/09/14/using-rsync-with-spaces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2011/09/14/using-rsync-with-spaces/</feedburner:origLink></item>
		<item>
		<title>The continuing story of Zend Studio 5.5.1</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/ciX74Om19HM/</link>
		<comments>http://www.vanutsteen.nl/2011/09/06/the-continuing-story-of-zend-studio-5-5-1/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 21:44:18 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[zend studio]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=550</guid>
		<description><![CDATA[Everytime I install a new version of Ubuntu / Linux I'm hoping Zend Studio (the old/good one) will still be working. So I installed Ubuntu 11.10 and also this time I had to install some stuff to get Zend Studio working. PLAIN TEXT CODE: sudo apt-get install libc6-i386 ia32-libs ln -s /lib32/libc.so.6 /lib/libc.so.6 And it worked! [...]]]></description>
			<content:encoded><![CDATA[<p>Everytime I install a new version of Ubuntu / Linux I'm hoping <a title="Like it!" href="https://www.facebook.com/pages/Zend-Studio-55-is-much-better-than-Zend-Studio-for-Eclipse/188533861180610?sk=info" target="_blank">Zend Studio</a> (the old/good one) will still be working. So I installed Ubuntu 11.10 and also this time I had to install some stuff to get Zend Studio working.</p>
<div class="igBar"><span id="lcode-66"><a href="#" onclick="javascript:showPlainTxt('code-66'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-66">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo apt-get install libc6-i386 ia32-libs</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ln -s /lib32/libc.<span style="">so</span>.<span style="color:#800000;color:#800000;">6</span> /lib/libc.<span style="">so</span>.<span style="color:#800000;color:#800000;">6</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>And it worked! Know I'm gonna try do update the JRE of the Zend Studio 5.5</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2011/09/06/the-continuing-story-of-zend-studio-5-5-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2011/09/06/the-continuing-story-of-zend-studio-5-5-1/</feedburner:origLink></item>
		<item>
		<title>ClipIt clipboard manager trayicon under Ubuntu 11.10</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/7jy8CW7CYJI/</link>
		<comments>http://www.vanutsteen.nl/2011/09/06/clipit-clipboard-manager-trayicon-under-ubuntu-11-10/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 21:19:45 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[clipboard manager]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[icon]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=534</guid>
		<description><![CDATA[In ubuntu 11.04 I had an icon at ~/.icons/Humanity/status/22/gtk-paste.svg so I would get a nice systray icon for ClipIt. But ClipIt changed something so now I had to cp the gtk-paste.svg to: ~/.icons/hicolor/scalable/apps/clipit-trayicon.svg Then logout/login and I had a nice trayicon! Long live clipboard managers. I _really_ wouldn't want to miss them!]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vanutsteen.nl/wp-content/uploads/2011/09/clipit.png"><img class="size-medium wp-image-540 alignnone" title="clipit" src="http://www.vanutsteen.nl/wp-content/uploads/2011/09/clipit-300x75.png" alt="" width="300" height="75" /></a></p>
<p>In ubuntu 11.04 I had an <a title="The best icon for a clipboard manager! (so far)" href="http://ramzea.deviantart.com/art/Ubuntu-Mono-Parcellite-Icon-161002817" target="_blank">icon</a> at ~/.icons/Humanity/status/22/gtk-paste.svg so I would get a nice systray icon for <a title="ClipIt project page" href="http://clipit.rspwn.com/" target="_blank">ClipIt</a>. But ClipIt changed something so now I had to cp the gtk-paste.svg to:</p>
<p>~/.icons/hicolor/scalable/apps/clipit-trayicon.svg</p>
<p>Then logout/login and I had a nice <a title="The best icon for a gnome clipboard manager!" href="http://ramzea.deviantart.com/art/Ubuntu-Mono-Parcellite-Icon-161002817" target="_blank">trayicon</a>! Long live clipboard managers. I _really_ wouldn't want to miss them!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2011/09/06/clipit-clipboard-manager-trayicon-under-ubuntu-11-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2011/09/06/clipit-clipboard-manager-trayicon-under-ubuntu-11-10/</feedburner:origLink></item>
		<item>
		<title>Install pcntl (pcntl_fork) on Ubuntu Hardy</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/R1cgl8sIZRI/</link>
		<comments>http://www.vanutsteen.nl/2011/08/18/install-pcntl-pcntl_fork-on-ubuntu-hardy/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 05:28:03 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[fork]]></category>
		<category><![CDATA[pcntl]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=531</guid>
		<description><![CDATA[No apt-getting on Hardy PLAIN TEXT CODE: cd ~/ mkdir php cd php apt-get source php5 cd php5-*/ext/pcntl phpize ./configure make no=`phpize &#124; grep "Zend Module Api No" &#124; cut -d : -f2 &#124; awk '{gsub(/^ +&#124; +$/,&#34;&#34;)}1'` cp modules/pcntl.so /usr/lib/php5/$no/ echo "extension=pcntl.so"&#62; /etc/php5/conf.d/pcntl.ini]]></description>
			<content:encoded><![CDATA[<p>No apt-getting on Hardy <img src='http://www.vanutsteen.nl/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<div class="igBar"><span id="lcode-68"><a href="#" onclick="javascript:showPlainTxt('code-68'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-68">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cd ~/</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mkdir php</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cd php</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">apt-get source php5</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cd php5-*/ext/pcntl</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">phpize</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">./configure</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">make</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">no=`phpize | grep <span style="color:#CC0000;">"Zend Module Api No"</span> | cut -d : -f2 | awk <span style="color:#CC0000;">'{gsub(/^ +| +$/,&quot;&quot;)}1'</span>`</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cp modules/pcntl.<span style="">so</span> /usr/lib/php5/$no/</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo <span style="color:#CC0000;">"extension=pcntl.so"</span>&gt; /etc/php5/conf.<span style="">d</span>/pcntl.<span style="">ini</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2011/08/18/install-pcntl-pcntl_fork-on-ubuntu-hardy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2011/08/18/install-pcntl-pcntl_fork-on-ubuntu-hardy/</feedburner:origLink></item>
		<item>
		<title>Lsyncd</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/n_lubBMJzbw/</link>
		<comments>http://www.vanutsteen.nl/2011/08/09/lsyncd/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 21:50:19 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[lsyncd]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[spamassassin]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=525</guid>
		<description><![CDATA[I was messing around with some python script to test a spamassassin install. It checks al the mail in the spam folder an see if it is marked as spam. Then it goes through the mail in ham/ and see if it passes as not-spam. So I'm developing it on my local computer but I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vanutsteen.nl/wp-content/uploads/2011/08/rsync_config.png"><img class="alignright size-medium wp-image-526" title="FreeBSD rsync config" src="http://www.vanutsteen.nl/wp-content/uploads/2011/08/rsync_config-300x231.png" alt="FreeBSD rsync config" width="300" height="231" /></a>I was messing around with some python script to test a spamassassin install. It checks al the mail in the spam folder an see if it is marked as spam. Then it goes through the mail in ham/ and see if it passes as not-spam.</p>
<p>So I'm developing it on my local computer but I wanted to test it on a remote server. Well, actually not that remote because I can touch it from where I'm sitting but that's not the point <img src='http://www.vanutsteen.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The point was that I needed something to keep the remote version of the sourcecode in sync with the local source. Google to the rescue and I found <a title="Lsyncd homepage" href="http://code.google.com/p/lsyncd" target="_blank">lsyncd</a>.</p>
<p>A nice little tool to sync two directories with rsync. Too bad it didn't support transfers only via sftp because freebsd (the remote server) doesn't come with rsync installed. So I had to install that also <img src='http://www.vanutsteen.nl/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Yeah, tough job....</p>
<div class="igBar"><span id="lcode-71"><a href="#" onclick="javascript:showPlainTxt('code-71'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-71">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cd /usr/ports/net/rsync</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">make config</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">make install </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Then on the local machine:</p>
<div class="igBar"><span id="lcode-72"><a href="#" onclick="javascript:showPlainTxt('code-72'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-72">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">lsyncd --no-daemon --delay <span style="color:#800000;color:#800000;">1</span> ~/Workspaces/spamassassin-test/ beastie:~/spamassassin-test/ </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>You have to specify the remote directory or else it will wipe you home folder as I discovered...</p>
<p>After this was done I could go on developing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2011/08/09/lsyncd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2011/08/09/lsyncd/</feedburner:origLink></item>
		<item>
		<title>vim on github!</title>
		<link>http://feedproxy.google.com/~r/vanutsteen/~3/EPn9QKMb_PQ/</link>
		<comments>http://www.vanutsteen.nl/2011/08/05/vim-on-github/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 22:09:27 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=518</guid>
		<description><![CDATA[Vim is now on a github repository. Check: https://github.com/LeonB/vim]]></description>
			<content:encoded><![CDATA[<p><a title="Vim github repository" href="https://github.com/LeonB/vim">Vim is now on a github repository</a>. Check: <a title="Vim github repository" href="https://github.com/LeonB/vim">https://github.com/LeonB/vim</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2011/08/05/vim-on-github/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.vanutsteen.nl/2011/08/05/vim-on-github/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 0.757 seconds. --><!-- Cached page generated by WP-Super-Cache on 2012-04-25 16:12:26 -->

