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

<channel>
	<title>vanutsteen.nl =&#62; nerds only &#187; PHP</title>
	<atom:link href="http://www.vanutsteen.nl/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vanutsteen.nl</link>
	<description>A blog on rails, php, computing, my bass guitar and stuff</description>
	<lastBuildDate>Sat, 04 Feb 2012 18:07:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Nginx + sabnzbd + sickbeard + couchpotato + spotweb on my pandaboard</title>
		<link>http://www.vanutsteen.nl/2012/02/04/nginx-sabnzbd-sickbeard-couchpotato-spotweb-on-my-pandaboard/</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-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;">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-9"><a href="#" onclick="javascript:showPlainTxt('code-9'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-9">
<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-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;">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-11"><a href="#" onclick="javascript:showPlainTxt('code-11'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-11">
<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-12"><a href="#" onclick="javascript:showPlainTxt('code-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-12">
<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-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;">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-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;">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>
		</item>
		<item>
		<title>Sublime Text 2</title>
		<link>http://www.vanutsteen.nl/2011/10/26/sublime-text-2/</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-18"><a href="#" onclick="javascript:showPlainTxt('code-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-18">
<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-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;">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-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;">#!/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>
		</item>
		<item>
		<title>The continuing story of Zend Studio 5.5.1</title>
		<link>http://www.vanutsteen.nl/2011/09/06/the-continuing-story-of-zend-studio-5-5-1/</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-22"><a href="#" onclick="javascript:showPlainTxt('code-22'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-22">
<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>
		</item>
		<item>
		<title>Install pcntl (pcntl_fork) on Ubuntu Hardy</title>
		<link>http://www.vanutsteen.nl/2011/08/18/install-pcntl-pcntl_fork-on-ubuntu-hardy/</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-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;">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>
		</item>
		<item>
		<title>Zend_db</title>
		<link>http://www.vanutsteen.nl/2010/09/26/zend_db/</link>
		<comments>http://www.vanutsteen.nl/2010/09/26/zend_db/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 21:31:02 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[crap]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zend_db]]></category>
		<category><![CDATA[zf]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=494</guid>
		<description><![CDATA[The last few days I've been spending my time on creating a website with Zend Framework. A lot of it I liked but the Zend_db stuff is is a complicated piece of crap. I've worked with a lot of ORM's and db api's but the Zend_db stuff is really the most awfull I've had till [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vanutsteen.nl/wp-content/uploads/2010/09/zf_logo.png"><img class="alignright size-full wp-image-495" title="Zend Framework logo" src="http://www.vanutsteen.nl/wp-content/uploads/2010/09/zf_logo.png" alt="Zend Framework logo" width="200" height="97" /></a>The last few days I've been spending my time on creating a website with Zend Framework. A lot of it I liked but the Zend_db stuff is is a complicated piece of crap. I've worked with a lot of ORM's and db api's but the Zend_db stuff is really the most awfull I've had till now.</p>
<p>I really, really don't want to work with it ever again and I regret that I chose ZF for this particular project just because of the db layer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2010/09/26/zend_db/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nice guide to upgrading magento</title>
		<link>http://www.vanutsteen.nl/2010/08/06/nice-guide-to-upgrading-magento/</link>
		<comments>http://www.vanutsteen.nl/2010/08/06/nice-guide-to-upgrading-magento/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 08:15:50 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[upgrade moneybooker]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=486</guid>
		<description><![CDATA[http://www.nicksays.co.uk/2010/03/fool-proof-magento-upgrades/ PLAIN TEXT CODE: ./pear upgrade --force magento-core/Mage_All_Latest]]></description>
			<content:encoded><![CDATA[<p>http://www.nicksays.co.uk/2010/03/fool-proof-magento-upgrades/</p>
<div class="igBar"><span id="lcode-26"><a href="#" onclick="javascript:showPlainTxt('code-26'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-26">
<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;">./pear upgrade --force magento-core/Mage_All_Latest </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2010/08/06/nice-guide-to-upgrading-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fixing a hacked site</title>
		<link>http://www.vanutsteen.nl/2009/10/23/fixing-a-hacked-site/</link>
		<comments>http://www.vanutsteen.nl/2009/10/23/fixing-a-hacked-site/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 08:16:18 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[fuckers]]></category>
		<category><![CDATA[hacked]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=426</guid>
		<description><![CDATA[One of our Joomla! sites was "hacked" with some stupid script and the fuckers put a iframe in every page But with sed that was fixed in a matter of seconds: PLAIN TEXT CODE: find . -type f -print &#124;xargs sed -i 's/&#60;iframe.*iqdoza.ru.*&#60;\/iframe&#62;//g' OR: PLAIN TEXT CODE: find . -type f -print &#124;xargs sed -i [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">One of our Joomla! sites was "hacked" with some stupid script and the fuckers put a iframe in every page <img src='http://www.vanutsteen.nl/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p style="text-align: left;">But with sed that was fixed in a matter of seconds:</p>
<p style="text-align: left;">
<div class="igBar"><span id="lcode-30"><a href="#" onclick="javascript:showPlainTxt('code-30'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-30">
<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;">find . -type f -print |xargs sed -i <span style="color:#CC0000;">'s/&lt;iframe.*iqdoza.ru.*&lt;<span style="color:#000099; font-weight:bold;">\/</span>iframe&gt;//g'</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p style="text-align: left;">OR:</p>
<p style="text-align: left;">
<div class="igBar"><span id="lcode-31"><a href="#" onclick="javascript:showPlainTxt('code-31'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-31">
<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;">find . -type f -print |xargs sed -i <span style="color:#CC0000;">'s/&lt;iframe.*.ru.*&lt;<span style="color:#000099; font-weight:bold;">\/</span>iframe&gt;//g'</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p style="text-align: left;">Searching for hacked sites:</p>
<p style="text-align: left;">
<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;">egrep -lir <span style="color:#CC0000;">"&lt;iframe|hacked"</span> /home<span style="color:#008000;">/*/public_html/*index* </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p style="text-align: left;">Drawback is that it doesn't removed the inserted newline :S Because it isn't the design of sed (wha-evah).<br />
Also it doesn't handle files with spaces in the filename. But that's only minor because in my case I didn't have any php or html files with spaces in them <img src='http://www.vanutsteen.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a title="Script kiddie" href="http://www.vanutsteen.nl/wp-content/uploads/2009/10/script-kiddie.jpg" target="_blank"><img class="size-full wp-image-429 aligncenter" title="script-kiddie" src="http://www.vanutsteen.nl/wp-content/plugins/com-resize/phpthumb/phpThumb.php?src=/wp-content/uploads/2009/10/script-kiddie.jpg&w=500" alt="script-kiddie" width="500" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2009/10/23/fixing-a-hacked-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Choosing a new editor: Emacs vs. Vim</title>
		<link>http://www.vanutsteen.nl/2009/10/15/choosing-a-new-editor-emacs-vs-vim/</link>
		<comments>http://www.vanutsteen.nl/2009/10/15/choosing-a-new-editor-emacs-vs-vim/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 07:27:49 +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[editor]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[gvim]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=393</guid>
		<description><![CDATA[For php I use Zend Studio for Linux. We have a license at work for it and it is in my opinion the best editor for php. It's relatively fast and you can use it to quickfix php over an ftp connection. For Ruby I use netbeans. I would also like to use it for [...]]]></description>
			<content:encoded><![CDATA[<p>For php I use Zend Studio for Linux. We have a license at work for it and it is in my opinion the best editor for php. It's relatively fast and you can use it to quickfix php over an ftp connection.</p>
<p>For Ruby I use netbeans. I would also like to use it for php but it doesn't allow to quicly open a file via ftp/scp or whatever. And it can sometimes be sloooooowwww. I've  seen netbeans used on a Windows platform and there it is much faster.</p>
<p>When I right-click on a project in netbeans for the first time, it takes 5 seconds (not lying!) to render the popup-menu. Come onm take forever!</p>
<p>And because I was now developing with Python I decided to try a new editor. Something more hardcore and lighter. Something nerdy <img src='http://www.vanutsteen.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  So ofcourse I only have two decent options: Vim &amp; Emacs.</p>
<p>I already had try them with Ruby. But I found good Ruby (&amp; Rails) support rather lacking by both of them. I believe that the python comminity is more <em>hardcore</em> and therefore are using more arcane editors <img src='http://www.vanutsteen.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  And maybe because they aren't afraid to hack away in another language than their own (lisp, vimscript).</p>
<p>I think I have been comparing the two editors for nearly two weeks now. I have spent hours and hours comparing, trying and browsing for blog posts about the two. At the end, I really didn't know which one to choose. I really suck at deciding something <img src='http://www.vanutsteen.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  So I made a little list of what I find to be strong points of each editor:</p>
<p><strong>VIM:</strong></p>
<ul>
<li> Better syntax highlighting/theming supprt (wombat ftw!!)</li>
<li> Faster/smaller</li>
<li> No weird handling of new buffers like with emacsclient</li>
<li> No daemon like: emacs --daemon</li>
<li> Better python integration</li>
<li> Easier to make extensions</li>
<li> Preview of docstrings when using omni completion</li>
</ul>
<p><strong>EMACS:</strong></p>
<ul>
<li> Better python-mode</li>
<li> No commandmode/normalmode</li>
<li> Directory browser/editor</li>
<li> Debugger (better integration with external tools)</li>
<li> easier to begin</li>
<li> Everyting is a buffer™</li>
</ul>
<p>And now I have chosen to be the editor with which I am going to work is...... (drum roll please) .......:</p>
<p>Gedit!</p>
<p>No, it's (g)Vim <img src='http://www.vanutsteen.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>And while writing this article I was looking for a <a title="Using VIM to Blog (WordPress)" href="http://garoth.com/?p=54" target="_blank">WordPress/blog plugin for Vim</a> and Emacs. At a glance it looked like the wordpress plugin for Emacs was a little bit better. So already I was doubting my decision... So it could be that I switch editor in the next few months <img src='http://www.vanutsteen.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  But I'm first going to really use gvim to see if it fits with my workflow and is really useable for me.</p>
<p>As cherry on the pie, a nice screenshot of my gvim in action:</p>
<p style="text-align: left;"><a href="http://www.vanutsteen.nl/wp-content/uploads/2009/10/vim_python.png"><img class="aligncenter size-medium wp-image-403" title="Vim with python-mode" src="/wp-content/plugins/com-resize/phpthumb/phpThumb.php?src=/wp-content/uploads/2009/10/vim_python.png&w=400" alt="Vim with python-mode" width="400" /></a></p>
<p style="text-align: left;">[update]<br />
I've installed Netneans 6.8m2 and it feels a lot faster than 6.7 but python completion is as bad as in 6.7.<br />
[/update]</p>
<p style="text-align: left;">[update2]<br />
Found out about Vim's <a title="Vim's netrw" href="http://vimdoc.sourceforge.net/htmldoc/pi_netrw.html#netrw">netrw</a>. So Emacs no longer got "Directory browser/editor" as a strong point.<br />
[/update2]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2009/10/15/choosing-a-new-editor-emacs-vs-vim/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Zend and Compiz/visual effects</title>
		<link>http://www.vanutsteen.nl/2009/10/13/zend-and-compizvisual-effects/</link>
		<comments>http://www.vanutsteen.nl/2009/10/13/zend-and-compizvisual-effects/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 07:37:44 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[compiz]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[visual effects]]></category>
		<category><![CDATA[xgl]]></category>
		<category><![CDATA[zend studio]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=390</guid>
		<description><![CDATA[When enabling Visual effects Zend wouldn't maximize anymore. So after a bit of googling I found a nice tutorial to fix the problem with Zend.]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-391" title="Zend logo" src="http://www.vanutsteen.nl/wp-content/uploads/2009/10/zend-logo.png" alt="Zend logo" width="170" height="178" />When enabling Visual effects Zend wouldn't maximize anymore. So after a bit of googling I found a nice tutorial to <a title="Zend Studio and Compiz" href="http://www.zend.com/support/knowledgebase.php?kbid=241">fix the problem with Zend</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2009/10/13/zend-and-compizvisual-effects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problems with suexec/fastcgid and virtualmin</title>
		<link>http://www.vanutsteen.nl/2009/09/11/problems-with-suexecfastcgid-and-virtualmin/</link>
		<comments>http://www.vanutsteen.nl/2009/09/11/problems-with-suexecfastcgid-and-virtualmin/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 07:50:45 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[fastcgid]]></category>
		<category><![CDATA[gpl]]></category>
		<category><![CDATA[suexec]]></category>
		<category><![CDATA[virtualmin]]></category>
		<category><![CDATA[webmin]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=353</guid>
		<description><![CDATA[Since a few version of virtualmin I had some problems with checking the server configuration. The problem is that I have manually patched suexec and the php fcgid script is in /var/www and not /home. I had this error for quite a while but last week I fixed it. It was quite simple. Just change [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Since a few version of virtualmin I had some problems with checking the server configuration.</p>
<p><img class="size-full wp-image-354 aligncenter" title="Virtualmin 3.72.gpl_webmin_error" src="http://www.vanutsteen.nl/wp-content/uploads/2009/09/Virtualmin-3.72.gpl_webmin_error.png" alt="Virtualmin 3.72.gpl_webmin_error" width="528" height="261" /></p>
<p style="text-align: left;">The problem is that I have manually patched suexec and the php fcgid script is in /var/www and not /home.</p>
<p style="text-align: left;">I had this error for quite a while but last week I fixed it. It was quite simple. Just change this code in "/usr/share/webmin/virtual-server/feature-web.pl:</p>
<p style="text-align: left;">
<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;"># Make sure home base is under base directory, or template CGI directory is</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">if <span style="color:#006600; font-weight:bold;">&#40;</span>$tmpl-&gt;<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#CC0000;">'web_suexec'</span><span style="color:#006600; font-weight:bold;">&#125;</span> &amp;&amp; $suhome &amp;&amp;</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;">!&amp;same_file<span style="color:#006600; font-weight:bold;">&#40;</span>$suhome, $home_base<span style="color:#006600; font-weight:bold;">&#41;</span> &amp;&amp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">!&amp;is_under_directory<span style="color:#006600; font-weight:bold;">&#40;</span>$suhome, $home_base<span style="color:#006600; font-weight:bold;">&#41;</span> &amp;&amp;</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;">&#40;</span>!$cgibase || !&amp;is_under_directory<span style="color:#006600; font-weight:bold;">&#40;</span>$suhome, $cgibase<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</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;">return &amp;text<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'check_ewebsuexechome'</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:#CC0000;">"&lt;tt&gt;$home_base&lt;/tt&gt;"</span>, <span style="color:#CC0000;">"&lt;tt&gt;$suhome&lt;/tt&gt;"</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;"><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;">&lt;p style=<span style="color:#CC0000;">"text-align: left;"</span>&gt;return undef;</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>
<p style="text-align: left;">To:</p>
<p style="text-align: left;">
<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;"># Make sure home base is under base directory, or template CGI directory is</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">return undef;</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;">if <span style="color:#006600; font-weight:bold;">&#40;</span>$tmpl-&gt;<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#CC0000;">'web_suexec'</span><span style="color:#006600; font-weight:bold;">&#125;</span> &amp;&amp; $suhome &amp;&amp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">!&amp;same_file<span style="color:#006600; font-weight:bold;">&#40;</span>$suhome, $home_base<span style="color:#006600; font-weight:bold;">&#41;</span> &amp;&amp;</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;">!&amp;is_under_directory<span style="color:#006600; font-weight:bold;">&#40;</span>$suhome, $home_base<span style="color:#006600; font-weight:bold;">&#41;</span> &amp;&amp;</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;">&#40;</span>!$cgibase || !&amp;is_under_directory<span style="color:#006600; font-weight:bold;">&#40;</span>$suhome, $cgibase<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><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;">return &amp;text<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'check_ewebsuexechome'</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#CC0000;">"&lt;tt&gt;$home_base&lt;/tt&gt;"</span>, <span style="color:#CC0000;">"&lt;tt&gt;$suhome&lt;/tt&gt;"</span><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>&nbsp; return undef;</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>
<p style="text-align: left;">So just add "return undef;" to the top of that piece of code. Then it will step out of the function before the additional check is executed.</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 273px; width: 1px; height: 1px;"># Make sure home base is under base directory, or template CGI directory is<br />
if ($tmpl-&gt;{'web_suexec'} &amp;&amp; $suhome &amp;&amp;<br />
!&amp;same_file($suhome, $home_base) &amp;&amp;<br />
!&amp;is_under_directory($suhome, $home_base) &amp;&amp;<br />
(!$cgibase || !&amp;is_under_directory($suhome, $cgibase))) {<br />
return &amp;text('check_ewebsuexechome',<br />
"&lt;tt&gt;$home_base&lt;/tt&gt;", "&lt;tt&gt;$suhome&lt;/tt&gt;");<br />
}<br />
return undef;<br />
}</div>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2009/09/11/problems-with-suexecfastcgid-and-virtualmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Burning from the commandline</title>
		<link>http://www.vanutsteen.nl/2008/12/19/burning-from-the-commandline/</link>
		<comments>http://www.vanutsteen.nl/2008/12/19/burning-from-the-commandline/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 08:58:26 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[burning]]></category>
		<category><![CDATA[cdw]]></category>
		<category><![CDATA[commandline]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=311</guid>
		<description><![CDATA[I download a Debian Sid livecd on my home server/HTPC and there's a cd burner in there. So I would like to burn the downloaded iso. There no X Server running (yet) on the box so I was searching for a nice commandline utility. I found cdw and it really looked nice so I installed [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-317" title="cdrecord logo" src="http://www.vanutsteen.nl/wp-content/plugins/com-resize/phpthumb/phpThumb.php?src=/wp-content/uploads/2008/12/cdrec2.gif&w=250" alt="cdrecord logo" width="250" />I download a Debian Sid livecd on my home server/HTPC and there's a cd burner in there. So I would like to burn the downloaded iso. There no X Server running (yet) on the box so I was searching for a nice commandline utility.</p>
<p>I found cdw and it really looked nice so I installed it:</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;">aptitude install cdw </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>After running it with "cdw" it detected my cd-writer so no configuration needed: nice. Because I once tried mybashburn (or something like that) and that piece of software needed all kinds of configuration. And I don't like that.</p>
<p>I wanted to burn the debian sid iso with cdw but I couldn't find an option for doing so. After some searching I found out that I had to go to "preferences" and change the value of "Default image file". WTF? That's not very nice I thought. But I tried it. But a no-go. The path to my iso was to long to fit in the box. So I couldn't even select it.</p>
<p>Don't get me wrong: cdw IS nice for burning music cd's or just some files to backup. But isos.... pfff</p>
<p>So I resorted to cdrecord. It's got a bit of a "hacker" feeling to it but it did the job nicely:</p>
<div class="igBar"><span id="lcode-41"><a href="#" onclick="javascript:showPlainTxt('code-41'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-41">
<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;">cdrecord driveropts=burnfree /home/leon/debian-live-sid-amd64-xfce-desktop.<span style="">iso</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>What I don't understand is why I have to manually enable burnfree. I mean: the last 5 cdr drives I had, all had burnfree. I'm doubting if they even make cd recorders without burnfree. So why not make it the default? Because apparently "Maybe it causes problems with *some* drives withput burn-free support". Hja, retards.</p>
<p>But there might be a solution to this problem. Cdrecord checks for "/etc/cdrecord.conf". And there you can change the default cdrecord parameters. My "/etc/cdrecord.conf" now contains:</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;">driveropts=burnfree </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>But if it's correct of if it works: I don't know. I haven't yet tested it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2008/12/19/burning-from-the-commandline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phoogle: a _good_ fixed version</title>
		<link>http://www.vanutsteen.nl/2008/11/28/phoogle-a-_good_-fixed-version/</link>
		<comments>http://www.vanutsteen.nl/2008/11/28/phoogle-a-_good_-fixed-version/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 09:55:13 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[phoogle]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=279</guid>
		<description><![CDATA[Recently phoogle broke because of some Google maps update. The original creators of Phoogle haven't updated the code (yet). And when searching online for newer, fixed versions all that showed up were crappy hacked Phoogle files by people who don't know what they're doing. So hereby I present to you: a fixed Phoogle files which [...]]]></description>
			<content:encoded><![CDATA[<p>Recently phoogle broke because of some Google maps update. The original creators of Phoogle haven't updated the code (yet). And when searching online for newer, fixed versions all that showed up were crappy hacked Phoogle files by people who don't know what they're doing.</p>
<p>So hereby I present to you: a <a title="Phoogle/google maps fixed version for error" href="http://www.vanutsteen.nl/wp-content/uploads/2008/11/phoogle.zip">fixed Phoogle files</a> which is hacked decent.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2008/11/28/phoogle-a-_good_-fixed-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing fcgid with suexec AND phusion passenger</title>
		<link>http://www.vanutsteen.nl/2008/10/28/installing-fcgid-with-suexec-and-phusion-passenger/</link>
		<comments>http://www.vanutsteen.nl/2008/10/28/installing-fcgid-with-suexec-and-phusion-passenger/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 19:44:39 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[fcgid]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[suexec]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=250</guid>
		<description><![CDATA[It was a troublesome day today. All did not go as planned. I had to install fcgid + suexec on one of our servers, I had delayed it too long. So I used my how-to and it still worked flawless. But I noticed I hadn't mentioned what the right were of the suexec binary. So [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-251" title="blame" src="http://www.vanutsteen.nl/wp-content/plugins/com-resize/phpthumb/phpThumb.php?src=/wp-content/uploads/2008/10/blame.jpg&w=251" width="251" alt="" /><br />
It was a troublesome day today. All did not go as planned.</p>
<p>I had to install fcgid + suexec on one of our servers, I had delayed it too long. So I used my how-to and it still worked flawless. But I noticed I hadn't mentioned what the right were of the suexec binary. So here it goes:</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;">chown root:www-data suexec</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">chmod <span style="color:#800000;color:#800000;">4754</span> suexec </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>After the install I restarted Apache and looked at one of the sites. And it worked! I was baffled. That's the first time I installed fcgid without hours long of searching where the flaw was.</p>
<p>But then I looked at our support system (Redmine) and it didn't work too well <img src='http://www.vanutsteen.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>All controllers were being executed 'n stuff. But the stylesheets, images and javascripts were not loaded. When requesting an image in the browser I got Rails 404-error page. Huh? Apache should have handled that request. At first I thought it was because of some changes I made to the virtualserver configuration of an other Rails site. But after some trial and error I couldn't find anything that was wrong.</p>
<p>Then I removed the .htaccess from the public directory of Redmine. That once worked for one of my rails sites. But no cigar. Then I noticed that there were a lot of dispatch*example.rb's in the public directory. And: after removing them, the stuff worked. So it seems like Rails or Phusion Passenger uses some kind of fuzzy matching when searching for a dispatch.rb. And it first just worked because fcgid was not installed. So I don't know who's to blame. But the problem is solved. Phew!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2008/10/28/installing-fcgid-with-suexec-and-phusion-passenger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Released github widget</title>
		<link>http://www.vanutsteen.nl/2008/10/01/released-github-widget/</link>
		<comments>http://www.vanutsteen.nl/2008/10/01/released-github-widget/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 08:32:30 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=241</guid>
		<description><![CDATA[I think you all noticed my fabulous new sidebar widget: My projects It shows all of my github projects. I directly turned it into a plugin for you to enjoy. You can download and read the documentation in the wordpress plugin directory.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vanutsteen.nl/wp-content/uploads/2008/10/github_logo.png"><img class="alignright size-medium wp-image-242" title="Github logo" src="http://www.vanutsteen.nl/wp-content/uploads/2008/10/github_logo.png" alt="" width="157" height="60" /></a>I think you all noticed my fabulous new sidebar widget: My projects <img src='http://www.vanutsteen.nl/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>It shows <em>all</em> of my github projects. I directly turned it into a plugin for you to enjoy. You can download and read the documentation in the <a title="Wordpress plugin directory: github widget" href="http://wordpress.org/extend/plugins/github-widget/">wordpress plugin directory</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2008/10/01/released-github-widget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mime_magic errors with php4</title>
		<link>http://www.vanutsteen.nl/2008/06/28/mime_magic-errors-with-php4/</link>
		<comments>http://www.vanutsteen.nl/2008/06/28/mime_magic-errors-with-php4/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 08:36:01 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[mime_magic]]></category>
		<category><![CDATA[php4]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=94</guid>
		<description><![CDATA[I went to a customer for our three-weekly sprint review, I opened my mail there and it was full with hundreds of failed cronjobs. Ah, shit! Another night at the datacenter? But it wasn't that bad The server had ran an update of php that night and it broke. When I ran php4 from the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vanutsteen.nl/wp-content/uploads/2008/06/mime.jpg"><img class="alignnone size-medium wp-image-108 alignright" style="float: right;" title="mime" src="http://www.vanutsteen.nl/wp-content/uploads/2008/06/mime-276x300.jpg" alt="" width="276" height="300" /></a>I went to a customer for our three-weekly sprint review, I opened my mail there and it was full with hundreds of failed cronjobs. Ah, shit! Another night at the datacenter? But it wasn't that bad <img src='http://www.vanutsteen.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The server had ran an update of php that night and it broke. When I ran php4 from the commandline I got these errors:</p>
<div class="igBar"><span id="lcode-47"><a href="#" onclick="javascript:showPlainTxt('code-47'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-47">
<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;">PHP Warning: mime_magic: type search/<span style="color:#800000;color:#800000;">400</span> \\input text/x-tex invalid in Unknown on line <span style="color:#800000;color:#800000;">0</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">PHP Warning: mime_magic: type search/<span style="color:#800000;color:#800000;">400</span> \\section text/x-tex invalid in Unknown on line <span style="color:#800000;color:#800000;">0</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;">PHP Warning: mime_magic: type search/<span style="color:#800000;color:#800000;">400</span> \\setlength text/x-tex invalid in Unknown on line <span style="color:#800000;color:#800000;">0</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">PHP Warning: mime_magic: type search/<span style="color:#800000;color:#800000;">400</span> \\documentstyle text/x-tex invalid in Unknown on line <span style="color:#800000;color:#800000;">0</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;">PHP Warning: mime_magic: type search/<span style="color:#800000;color:#800000;">400</span> \\chapter text/x-tex invalid in Unknown on line <span style="color:#800000;color:#800000;">0</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">PHP Warning: mime_magic: type search/<span style="color:#800000;color:#800000;">400</span> \\documentclass text/x-tex invalid in Unknown on line <span style="color:#800000;color:#800000;">0</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;">PHP Warning: mime_magic: type regex <span style="color:#006600; font-weight:bold;">&#91;</span>Cc<span style="color:#006600; font-weight:bold;">&#93;</span>onstant<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006600; font-weight:bold;">&#91;</span>:space:<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#93;</span>+<span style="color:#006600; font-weight:bold;">&#91;</span>Ss<span style="color:#006600; font-weight:bold;">&#93;</span>tory text/x-inform invalid in Unknown on line <span style="color:#800000;color:#800000;">0</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Wait a minute... I know these errors! But, of course, I hadn't documented the solution when I first fixed them. So after much searching I found the workarround again:</p>
<div class="igBar"><span id="lcode-48"><a href="#" onclick="javascript:showPlainTxt('code-48'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-48">
<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;">In the /usr/share/misc/magic.<span style="">mime</span> file, find the section that begins <span style="color:#CC0000;">"# TeX documents, from Daniel Quinlan"</span> and comment out the lines in that section.</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;"># TeX documents, from Daniel Quinlan <span style="color:#006600; font-weight:bold;">&#40;</span>quinlan@yggdrasil.<span style="">com</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;">#0 search/<span style="color:#800000;color:#800000;">400</span> \\input text/x-tex</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;">#0 search/<span style="color:#800000;color:#800000;">400</span> \\section text/x-tex</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#0 search/<span style="color:#800000;color:#800000;">400</span> \\setlength text/x-tex</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;">#0 search/<span style="color:#800000;color:#800000;">400</span> \\documentstyle text/x-tex</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#0 search/<span style="color:#800000;color:#800000;">400</span> \\chapter text/x-tex</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;">#0 search/<span style="color:#800000;color:#800000;">400</span> \\documentclass text/x-tex</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;"># Type: Inform interactive fiction language</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># URL: http:<span style="color:#FF9933; font-style:italic;">//www.inform-fiction.org/</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;"># From: Reuben Thomas</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#0 regex <span style="color:#006600; font-weight:bold;">&#91;</span>Cc<span style="color:#006600; font-weight:bold;">&#93;</span>onstant<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006600; font-weight:bold;">&#91;</span>:space:<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#93;</span>+<span style="color:#006600; font-weight:bold;">&#91;</span>Ss<span style="color:#006600; font-weight:bold;">&#93;</span>tory text/x-inform </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>NOTE: For Debian, it appears that this file is located at /usr/share/file/magic.mime!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2008/06/28/mime_magic-errors-with-php4/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>rubygems: updating to 1.2.0</title>
		<link>http://www.vanutsteen.nl/2008/06/25/rubygems-updating-to-120/</link>
		<comments>http://www.vanutsteen.nl/2008/06/25/rubygems-updating-to-120/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 05:42:16 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[rubygems]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=102</guid>
		<description><![CDATA[I've installed rubygems manually (no package manager) in my home directory. But since then "gem --version" reported that it could not it's version. So now I've removed the previous installed version, downloaded the tar and reinstalled. I've used this command to install this time: PLAIN TEXT CODE: ruby setup.rb --destdir=~/.rubygems --prefix=/ And now it runs [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vanutsteen.nl/wp-content/uploads/2008/06/rubygems-125x125t.png"><img class="alignnone size-medium wp-image-103 alignright" style="float: right;" title="Rubygems package manager" src="http://www.vanutsteen.nl/wp-content/uploads/2008/06/rubygems-125x125t.png" alt="" width="125" height="125" /></a>I've installed rubygems manually (no package manager) in my home directory. But since then "gem --version" reported that it could not it's version. So now I've removed the previous installed version, downloaded the tar and reinstalled. I've used this command to install this time:</p>
<div class="igBar"><span id="lcode-51"><a href="#" onclick="javascript:showPlainTxt('code-51'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-51">
<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;">ruby setup.<span style="">rb</span> --destdir=~/.<span style="">rubygems</span> --prefix=/ </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>And now it runs fine!</p>
<div class="igBar"><span id="lcode-52"><a href="#" onclick="javascript:showPlainTxt('code-52'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-52">
<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@polly:~$ gem1.<span style="color:#800000;color:#800000;">8</span> --version</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;color:#800000;">1</span>.<span style="color:#800000;color:#800000;">2</span>.<span style="color:#800000;color:#800000;">0</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>And I've installed ruby 1.8.7 (from Intrepid) on Ubuntu Hardy. But more on that in my next post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2008/06/25/rubygems-updating-to-120/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>compiling suexec: the fast way (because your website is down)</title>
		<link>http://www.vanutsteen.nl/2008/06/14/compiling-suexec-the-fast-way-because-your-website-is-down/</link>
		<comments>http://www.vanutsteen.nl/2008/06/14/compiling-suexec-the-fast-way-because-your-website-is-down/#comments</comments>
		<pubDate>Sat, 14 Jun 2008 18:17:23 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=79</guid>
		<description><![CDATA[At Tim_online we have several webservers and each of them have apache2 installed running php with fcgid (a fastcgi implementation). Why this configuration and not mod_php? Because it is reasonably fast (at leaster faster than plain cgi) an secure (because it doesn't run under the apache user). For it to run php scripts as the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vanutsteen.nl/wp-content/uploads/2008/06/time_equals_money.gif"><img class="alignnone size-medium wp-image-89 alignright" style="float: right;" title="Time equals money" src="http://www.vanutsteen.nl/wp-content/uploads/2008/06/time_equals_money-300x151.gif" alt="" width="300" height="151" /></a></p>
<p>At <a title="Tim_online website" href="http://www.tim-online.nl">Tim_online</a> we have several webservers and each of them have apache2 installed running php with fcgid (a fastcgi implementation). Why this configuration and not mod_php? Because it is reasonably fast (at leaster faster than plain cgi) an secure (because it doesn't run under the apache user).</p>
<p>For it to run php scripts as the website owner, you need <a title="Definitive guide to suexec" href="http://www.unix.com.ua/orelly/linux/apache/ch04_07.htm">suexec</a>.</p>
<p style="padding-left: 30px;">Suexec is a mechanism supplied with Apache that allows to execute CGI scripts as the user they belong to, rather than Apache's <tt>wwwrun</tt> user. This improves security in situations where multiple mutually distrusting users have the possibility to put CGI content on the server.</p>
<p>So when u visitor requests one of the webpages of one of my customers the proces looks like this:</p>
<p style="padding-left: 30px;">request -&gt; apache -&gt; fastcgi -&gt; suexec -&gt; proxy -&gt; php file</p>
<p>I don't exactly know anymore why the proxy is required, but it is <img src='http://www.vanutsteen.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Know the problem is: suexec (by default) can't execute the proxy file, because it isn't owned by the php file owner. So you have to hack suexec to make this work.</p>
<p>I did this. And everything worked. The webservers were happy to serve al these requests untill one day apache get updated. The automatic ubuntu updates push a new version of apache with a new suexec binary. Problem!</p>
<p>So when you come at work there are 16 "missed incoming calls" and you co-workers are going mad with all the <em>dissapointed</em> customers. You look at the apache logs: hmzzz, suexec is giving 120 errors... What could that be? !Ping! Suexec ofcourse. Let's see, how did I solve this problem the last time. First let's download the apache sources. ./configure. Yes. now where's suexec.c? Ah, cd support. Now,  make suexec. Wait, missing headers. Let's install those first. Make suexec. Arrgh. It doesn't work! Suexec -v. Wait, forgot to adjust the ap_httpd_user, ow, and comment out the offending lines. Yes, this should work. Ok. Copy it to /usr/lib/apache2. Ok, it works!</p>
<p>But at that time, an hour has past. If you can find the right files at once. So I decided to write down the steps I took to download, configure and compile suexec the quickest and simplest way. Here we go:</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 apt-get install apache2-threaded-dev</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mkdir -p ~/src/suexec</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 ~/src/suexec</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo apt-get install apache2-threaded-dev</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;">wget http:<span style="color:#FF9933; font-style:italic;">//svn.apache.org/repos/asf/httpd/httpd/trunk/support/suexec.c</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">wget http:<span style="color:#FF9933; font-style:italic;">//svn.apache.org/repos/asf/httpd/httpd/trunk/support/suexec.h</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;">wget http:<span style="color:#FF9933; font-style:italic;">//www.vanutsteen.nl/wp-content/uploads/2008/06/suexecc.patch</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">patch suexec.<span style="">c</span> suexec.<span style="">c</span>.<span style="">patch</span> -o suexec.<span style="">patched</span>.<span style="">c</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;">gcc -DLOG_EXEC=<span style="color:#CC0000;">'&quot;/var/log/apache2/suexec.log&quot;'</span> -DAP_HTTPD_USER=<span style="color:#CC0000;">'&quot;www-data&quot;'</span> -DAP_DOC_ROOT=<span style="color:#CC0000;">'&quot;/var/www&quot;'</span> -I/usr/include/apr-<span style="color:#800000;color:#800000;">1</span>.<span style="color:#800000;color:#800000;">0</span> -I/usr/include/apache2  -o suexec suexec.<span style="">patched</span>.<span style="">c</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>That's it! Test it by doing: sudo ./suexec -V<br />
That should output:</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;">-D AP_DOC_ROOT=<span style="color:#CC0000;">"/var/www"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-D AP_GID_MIN=<span style="color:#800000;color:#800000;">100</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;">-D AP_HTTPD_USER=<span style="color:#CC0000;">"www-data"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-D AP_LOG_EXEC=<span style="color:#CC0000;">"/var/log/apache2/suexec.log"</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;">-D AP_SAFE_PATH=<span style="color:#CC0000;">"/usr/local/bin:/usr/bin:/bin"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-D AP_UID_MIN=<span style="color:#800000;color:#800000;">100</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;">-D AP_USERDIR_SUFFIX=<span style="color:#CC0000;">"public_html"</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Basically what I did:</p>
<ol>
<li>I installed the necessary headers</li>
<li>Got the latests suexec code from the apache svn repo</li>
<li>Downloaded the suexec patch from my blog</li>
<li>Patched suexec to disable the file owner check</li>
<li>Compiled suexec with the default ubuntu options</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2008/06/14/compiling-suexec-the-fast-way-because-your-website-is-down/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Images &amp; why you need com_resize</title>
		<link>http://www.vanutsteen.nl/2008/05/24/images-why-you-need-com_resize/</link>
		<comments>http://www.vanutsteen.nl/2008/05/24/images-why-you-need-com_resize/#comments</comments>
		<pubDate>Sat, 24 May 2008 21:37:18 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[com_resize]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=72</guid>
		<description><![CDATA[I the release post of com_resized there was asked the question why one should use com_resize. There are three reasons to use it: The generated images aren the size you want them to be. So they're smaller of size than the original images. You won't get any ugly resized images (see the example below). It [...]]]></description>
			<content:encoded><![CDATA[<p>I the <a href="2008/04/27/com_resize-on-wordpress-plugins/">release post of com_resized</a> there was asked the question why one should use com_resize. There are three reasons to use it:</p>
<ol>
<li>The generated images aren the size you want them to be. So they're smaller of size than the original images.</li>
<li>You won't get any ugly resized images (see the example below).</li>
<li>It works with remote images. So you can link to an image one someone else's blog and they get resized to the size you want + cached. So that way they get loaded from your own server: so faster.</li>
</ol>
<h2>No more ugly resized images:</h2>
<p><img class="alignleft" style="float: left; width: 200px;" title="space_station" src="http://www.vanutsteen.nl/wp-content/uploads/2008/05/space_station.jpg" alt="" /><img style="margin-left: 25px;" title="space_station" src="http://www.vanutsteen.nl/wp-content/plugins/com-resize/phpthumb/phpThumb.php?src=/wp-content/uploads/2008/05/space_station.jpg&w=200" alt="" width="200" /></p>
<p>The one on the left is without com_resize. The one on the right is _with_ com_resize. If you don't see any difference. Your browser is probably doing some fancy stuff with the image. In that case you don't need com_resize. But maybe the readers of your blog do!</p>
<p>For the people who don't see any difference (leave a comment with your OS + browser, please!) I have attached a screenshot. Made in IE6, so the font is ugly too <img src='http://www.vanutsteen.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.vanutsteen.nl/wp-content/uploads/2008/05/com_resize_example.jpg"><img class="alignnone size-medium wp-image-75" title="com_resize_example" src="http://www.vanutsteen.nl/wp-content/uploads/2008/05/com_resize_example.jpg" alt="" style="border: 1px solid grey;" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2008/05/24/images-why-you-need-com_resize/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>2.5.1 image uploader bug</title>
		<link>http://www.vanutsteen.nl/2008/04/28/251-image-uploader-bug/</link>
		<comments>http://www.vanutsteen.nl/2008/04/28/251-image-uploader-bug/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 14:15:59 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=51</guid>
		<description><![CDATA[I recently upgrade my WordPress installation to 2.5.1 and this annoying bug showed up. After some reading I installed the no-flash-uploader plugin. This plugin disables the faulty (flash) component and replaces it with a traditional uploader. So now I can upload my files again. But it is rather annoying. And I think more people would [...]]]></description>
			<content:encoded><![CDATA[<p>I recently upgrade my WordPress installation to 2.5.1 and this <a title="Annoying bug" href="http://trac.wordpress.org/ticket/6406">annoying bug</a> showed up. After some reading I installed the <a href="http://trac.wordpress.org/attachment/ticket/6406/no-flash-uploader.php">no-flash-uploader</a> plugin. This plugin disables the faulty (flash) component and replaces it with a traditional uploader. So now I can upload my files again. But it is rather annoying. And I think more people would <a href="http://trac.wordpress.org/ticket/6406#comment:7">agree with me</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2008/04/28/251-image-uploader-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>com_resize on wordpress plugins</title>
		<link>http://www.vanutsteen.nl/2008/04/27/com_resize-on-wordpress-plugins/</link>
		<comments>http://www.vanutsteen.nl/2008/04/27/com_resize-on-wordpress-plugins/#comments</comments>
		<pubDate>Sun, 27 Apr 2008 22:24:56 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[com_resize]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=48</guid>
		<description><![CDATA[Because I expect a huge, huge demand of my com_resize plugin, I have put it on the wordpress site Now I hope it gets approved.]]></description>
			<content:encoded><![CDATA[<p>Because I expect a huge, huge demand of my com_resize plugin, I have put it on the <a title="com_resize plugin" href="http://wordpress.org/extend/plugins/com-resize/">wordpress site</a> <img src='http://www.vanutsteen.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Now I hope it gets approved.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2008/04/27/com_resize-on-wordpress-plugins/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Nice image resizer</title>
		<link>http://www.vanutsteen.nl/2008/04/27/nice-image-resizer/</link>
		<comments>http://www.vanutsteen.nl/2008/04/27/nice-image-resizer/#comments</comments>
		<pubDate>Sun, 27 Apr 2008 21:08:24 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[com_resize]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=46</guid>
		<description><![CDATA[You see all the nice (resized) images on my site? I've made a plugin for them to be generated. Want I wanted was to add an image in the wordpress editor. Give a height and/or width and that they would be resized automatically. With proud I introduce my resize plugin: com_resize. Why the name? Because [...]]]></description>
			<content:encoded><![CDATA[<p>You see all the nice (resized) images on my site? I've made a plugin for them to be generated. Want I wanted was to add an image in the wordpress editor. Give a height and/or width and that they would be resized automatically.</p>
<p>With proud I introduce my resize plugin: com_resize. Why the name? Because I've used the source code from on of my Joomla! mambots. Hence the name.</p>
<p>You can <a title="Com_resize: first release" href="/wp-content/uploads/2008/04/com_resize-01.zip">download it here</a>. If you have any question: leave behind a comment.</p>
<p>For installing: just unpack it in the plugins folder and activate the plugin. Your server must have GD installed (or Imagemagick I believe). Maybe I'll release a version with mod_rewrite supported images. But that's only if I'm sore bored I don't what to do else.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2008/04/27/nice-image-resizer/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Joomla! vs. WordPress</title>
		<link>http://www.vanutsteen.nl/2008/04/27/joomla-vs-wordpress/</link>
		<comments>http://www.vanutsteen.nl/2008/04/27/joomla-vs-wordpress/#comments</comments>
		<pubDate>Sun, 27 Apr 2008 15:32:55 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=44</guid>
		<description><![CDATA[I've been using WordPress for over two months now and I've already written 24 posts! I thinks that's a nice average. When I look at my old blog: v2.vanutsteen.nl, I think my average there is about two posts every month or so. The difference is that I'm now using WordPress instead of Joomla! And WordPress [...]]]></description>
			<content:encoded><![CDATA[<p>I've been using WordPress for over two months now and I've already written 24 posts! I thinks that's a nice average.</p>
<p>When I look at my old blog: v2.vanutsteen.nl, I think my average there is about two posts every month or so.</p>
<p>The difference is that I'm now using WordPress instead of Joomla! And WordPress is sooo much simpler for a blogsite then Joomla! You can use Joomla! for your blog. Even with comments and all. But the way WordPress is set up, every moron (as me) can just start blogging. They made it really simple. And they should keep it that way! No fancy stuff in the default wordpress installation. If you want to get fancy, just install all plugins.</p>
<p>I've got to plugins installed. One for generating google sitemaps and another for caching my pages. The first one is a bit slow and I really don't like it. The caching plugin (wp-cache 2) is really nice. Install, activate and go. And my website flies instead of crawling like it first did.</p>
<p>I'm using Joomla! during the day at my job. So Joomla! is buying my bread and paying my house and I know Joomla! through and through. I make webshops, coporate sites, intranets, etc. with Joomla!. But I wouldn't use it for a blog. WordPress is the way to go!</p>
<p> <img title="wordpress vs joomla vs drupal" src="http://www.vanutsteen.nl/wp-content/plugins/com-resize/phpthumb/phpThumb.php?src=/wp-content/uploads/2008/04/wordpress_joomla_drupal.png&w=400" alt="" width="400" /></p>
<p>edit: I saw I haven't added the sitemap to the above image. So here goes:</p>
<ul>
<li>Red: WordPress</li>
<li>Blue: Joomla!</li>
<li>Yellow: Drupal</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2008/04/27/joomla-vs-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image resize script for wordpress</title>
		<link>http://www.vanutsteen.nl/2008/04/24/image-resize-script-for-wordpress/</link>
		<comments>http://www.vanutsteen.nl/2008/04/24/image-resize-script-for-wordpress/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 13:12:41 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[com_resize]]></category>
		<category><![CDATA[gd]]></category>
		<category><![CDATA[phpthumb]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/?p=38</guid>
		<description><![CDATA[WordPress is a great blog application. It has some nice free templates and the default installation has everything I need without being bloated. I miss one thing: automatic resizing of images who are too big. So I plan on making it myself. Something like this but even simpler (as well in functionality as in configurability).]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vanutsteen.nl/wp-content/uploads/2008/04/let-x.jpg"><img class="alignleft alignnone size-medium wp-image-39" style="float: left;" title="X (com_resize)" src="http://www.vanutsteen.nl/wp-content/plugins/com-resize/phpthumb/phpThumb.php?src=/wp-content/uploads/2008/04/let-x.jpg&h=144&w=144" alt="" width="144" height="144" /></a>WordPress is a great blog application. It has some nice free templates and the default installation has everything I need without being bloated. I miss one thing: automatic resizing of images who are too big. So I plan on making it myself. Something like <a href="http://www.vestaldesign.com/blog/2007/10/wordpress-image-resizer-plugin.html">this</a> but even simpler (as well in functionality as in configurability).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2008/04/24/image-resize-script-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The beauty of Ubuntu</title>
		<link>http://www.vanutsteen.nl/2008/02/16/the-beauty-of-ubuntu/</link>
		<comments>http://www.vanutsteen.nl/2008/02/16/the-beauty-of-ubuntu/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 23:41:06 +0000</pubDate>
		<dc:creator>LeonB</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.vanutsteen.nl/2008/02/16/the-beauty-of-ubuntu/</guid>
		<description><![CDATA[A.k.a. "installing something that would take ages in another OS" For a client of ours I'm doing a project. But I had to wait at my new house today for my new tiles. And at my new address I don't have internet yet. So I made a local copy of the project and had to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>A.k.a. "installing something that would take ages in another OS"</strong></p>
<p>For a client of <a href="http://www.tim-online.nl">ours</a> I'm doing a project. But I had to wait at my new house today for my new tiles. And at my new address I don't have internet yet. So I made a local copy of the project and had to install apache, mysql and phpmyadmin.</p>
<div class="igBar"><span id="lcode-58"><a href="#" onclick="javascript:showPlainTxt('code-58'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-58">
<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 aptitude install libapache2-mod-php5 phpmyadmin mysql-server apache2 php5-gd </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>And it worked! Linux not user-friendly? Pfffttt!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanutsteen.nl/2008/02/16/the-beauty-of-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

