<?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>Dimitri.eu &#187; Categories</title>
	<atom:link href="http://www.dimitri.eu/category/categories/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dimitri.eu</link>
	<description>About personal and IT-related occupations</description>
	<lastBuildDate>Fri, 30 Jul 2010 18:20:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Configure Ruby on Rails with Phusion Passenger (mod_rails)</title>
		<link>http://www.dimitri.eu/configure-ruby-on-rails-with-phusion-passenger-mod_rails/</link>
		<comments>http://www.dimitri.eu/configure-ruby-on-rails-with-phusion-passenger-mod_rails/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 18:20:49 +0000</pubDate>
		<dc:creator>Dimi</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[mod_rails]]></category>
		<category><![CDATA[Phusion Passenger]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.dimitri.eu/?p=169</guid>
		<description><![CDATA[The configuration of a new Ruby on Rails (RoR) environment has always been a bit of a struggle thanks to mongrel, mod_ruby,&#8230; but thanks to Phusion Passenger the configuration and deployment of RoR applications has become an easy job. I will describe how to configure Ruby on Rails with Phusion Passenger on a Debian (Debian [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dimitri.eu/configure-ruby-on-rails-with-phusion-passenger-mod_rails/"><img class="alignright size-full wp-image-217" title="rails" src="http://www.dimitri.eu/wp-content/uploads/2010/07/rails.png" alt="rails" width="87" height="111" /></a>The configuration of a new Ruby on Rails (RoR) environment has always been a bit of a struggle thanks to mongrel, mod_ruby,&#8230; but thanks to Phusion Passenger the configuration and deployment of RoR applications has become an easy job.</p>
<p>I will describe how to configure Ruby on Rails with Phusion Passenger on a Debian (Debian GNU/Linux 5.0.4 (lenny)) server.</p>
<p><span id="more-169"></span></p>
<p><strong>1. We start by resynchronizing the package index files with their sources </strong></p>
<pre class="brush:bash; gutter: false; toolbar:false"># apt-get update</pre>
<p><strong>2. Then we check if MySQL is installed </strong></p>
<pre class="brush:bash; gutter: false; toolbar:false"># mysql -V
mysql  Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (x86_64) using readline 5.2</pre>
<p>You should run the following command if MySQL isn&#8217;t installed</p>
<pre class="brush:bash; gutter: false; toolbar:false"># apt-get install mysql-server-5.0</pre>
<p>Please choose a secure MySQL root password when this question is asked by the MySQL installer</p>
<p><strong>3. We can now start by installing ruby </strong></p>
<pre class="brush:bash; gutter: false; toolbar:false"># apt-get install ruby irb rdoc</pre>
<p>These 3 packages will be configured automatically on your server so no further configuration is required. After the installation of these packages you should be able to run the ruby-command</p>
<pre class="brush:bash; gutter: false; toolbar:false"># ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]</pre>
<p><strong>4. We now need to install the rubygems module</strong>. Gems is the package manager for ruby which gives the users an easy way to install additional ruby modules.There are 2 methods to install gems onto your system. There is the apt-get method, and there is the manual one. We could use apt-get to install gems but this has a limitation, you won&#8217;t be able to update your ruby configuration using</p>
<pre class="brush:bash; gutter: false; toolbar:false"># gem update --system</pre>
<p>So we choose the manual method to install gems. Don&#8217;t copy the next link before you have checked the rubyforge.org website for the most recent version of rubygems.</p>
<pre class="brush:bash; gutter: false; toolbar:false; auto-links:false"># cd /usr/src
# wget http://rubyforge.org/frs/download.php/70696/rubygems-1.3.7.tgz
# tar -xvzf rubygems-1.3.7.tgz
# cd rubygems-1.3.7
# ruby setup.rb
RubyGems 1.3.7 installed

ï»¿=== 1.3.7 / 2010-05-13

NOTE:
...
New features:
...
Bug fixes:
...
RubyGems installed the following executables:
        /usr/bin/gem1.8</pre>
<p>Now for the ease of use we will create a link to run the binary gem1.8 as the command gem.</p>
<p># ln -s /usr/bin/gem1.8 /usr/bin/gem # gem -v 1.3.7</p>
<p><strong>5. We will now move on to the installation of Rails</strong>, this component can be easily installed by launching the following command</p>
<pre class="brush:bash; gutter: false; toolbar:false"># gem install rails</pre>
<p>It can take several minutes before you will see any output but you just have to be patient.</p>
<pre class="brush:bash; gutter: false; toolbar:false">Successfully installed rake-0.8.7
Successfully installed activesupport-2.3.8
Successfully installed activerecord-2.3.8
Successfully installed rack-1.1.0
Successfully installed actionpack-2.3.8
Successfully installed actionmailer-2.3.8
Successfully installed activeresource-2.3.8
Successfully installed rails-2.3.8
8 gems installed
Installing ri documentation for rake-0.8.7...
Installing ri documentation for activesupport-2.3.8...
Installing ri documentation for activerecord-2.3.8...
Installing ri documentation for rack-1.1.0...
Installing ri documentation for actionpack-2.3.8...
Installing ri documentation for actionmailer-2.3.8...
Installing ri documentation for activeresource-2.3.8...
Installing ri documentation for rails-2.3.8...
Installing RDoc documentation for rake-0.8.7...
Installing RDoc documentation for activesupport-2.3.8...
Installing RDoc documentation for activerecord-2.3.8...
Installing RDoc documentation for rack-1.1.0...
Installing RDoc documentation for actionpack-2.3.8...
Installing RDoc documentation for actionmailer-2.3.8...
Installing RDoc documentation for activeresource-2.3.8...
Installing RDoc documentation for rails-2.3.8...</pre>
<p>We can now check if rails was installed succesfully.</p>
<pre class="brush:bash; gutter: false; toolbar:false"># rails -v
Rails 2.3.8
</pre>
<p><strong>6. It is now time to test by creating a rails application. </strong>My webroot is configured under /var/www so I&#8217;ll use this in my test but you should verify your webroot before following these steps.</p>
<pre class="brush:bash; gutter: false; toolbar:false"># cd /var/www
# rails hello
# cd hello
# script/server
</pre>
<p>This will result in the following output</p>
<pre class="brush:bash; gutter: false; toolbar:false; auto-links:false">=&gt; Booting WEBrick
=&gt; Rails 2.3.8 application starting on http://0.0.0.0:3000
/usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:271:in `require_frameworks': no such file to load -- net/https (RuntimeError)
</pre>
<p>We get this error because the ruby openssl library is required so we install this.</p>
<pre class="brush:bash; gutter: false; toolbar:false; auto-links:false"># apt-get install libopenssl-ruby
# script/server -d
=&gt; Booting WEBrick
=&gt; Rails 2.3.8 application starting on http://0.0.0.0:3000
</pre>
<p>The &#8220;-d&#8221; parameter starts rails and detaches the process so that you can continue working within your shell.</p>
<p>7. <strong> We can now move on to installing Phusion Passenger</strong> (mod_rails) as the configuration of Ruby and Rails has succeeded.</p>
<pre class="brush:bash; gutter: false; toolbar:false"># apt-get install ruby-dev
# gem install passenger
# passenger-config --version
2.2.15
</pre>
<p>We now need to configure the Passenger apache module, this can be done by the following command. You&#8217;ll probably get some errors that certain modules are missing but you can easily install them to comply with the Passenger requirements.</p>
<pre class="brush:bash; gutter: false; toolbar:false"># passenger-install-apache2-module
The Apache 2 module was successfully installed.

Please edit your Apache configuration file, and add these lines:

LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.15/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.15
PassengerRuby /usr/bin/ruby1.8

After you restart Apache, you are ready to deploy any number of Ruby on Rails
applications on Apache, without any further Ruby on Rails-specific
configuration!

Press ENTER to continue.
</pre>
<p>Check if your apache config (mine is /etc/apache2/apache2.conf) has the line <em>/etc/apache2/mods-enabled/*.load.</em> If not you can just add this line to your apache config.</p>
<p><strong>8. We will now create the apache Passenger module and activate it.</strong></p>
<pre class="brush:bash; gutter: false; toolbar:false"># cd /etc/apache2/mods-available/
# touch passenger.load
# vi passenger.load
</pre>
<p>enter the following lines and save the file.</p>
<pre class="brush:bash; gutter: false; toolbar:false">LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.15/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.15
PassengerRuby /usr/bin/ruby1.8

# ln -s ../mods-available/passenger.load passenger.load
# /etc/init.d/apache2 restart
# a2enmod</pre>
<p>You can now find &#8220;passenger&#8221; in this list so just type &#8220;passenger&#8221; and press enter to activate this apache module. Now restart apache.</p>
<pre class="brush:bash; gutter: false; toolbar:false"># /etc/init.d/apache2 restart</pre>
<p><strong>9. The final step is to let apache know where to find your app.</strong> Therefore you need to modify the apache configuration file of the vhost that will run your app, for example /etc/apache2/sites-enabled/000-default. Following this manual the following lines need to be configured in this config file:</p>
<pre class="brush:bash; gutter: false; toolbar:false">DocumentRoot /var/www/hello/public
PassengerAppRoot /var/www/hello/
</pre>
<p><strong>10. You now have a working Ruby on Rails environment with Phusion Passenger.</strong> If you want more information about Phusion Passenger there is always the user guide at <a title="Mod_rails user guide" href="http://www.modrails.com/documentation/Users%20guide%20Apache.html" target="_blank">http://www.modrails.com/documentation/Users%20guide%20Apache.html</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dimitri.eu/configure-ruby-on-rails-with-phusion-passenger-mod_rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide alt-tab previews in Windows 7</title>
		<link>http://www.dimitri.eu/hide-alt-tab-previews-in-windows-7/</link>
		<comments>http://www.dimitri.eu/hide-alt-tab-previews-in-windows-7/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 16:00:04 +0000</pubDate>
		<dc:creator>Dimi</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Alt-tab]]></category>
		<category><![CDATA[regedit]]></category>

		<guid isPermaLink="false">http://www.dimitri.eu/?p=165</guid>
		<description><![CDATA[I recently changed from Windows XP to Windows 7 on my office computer and I like the smooth interface of Windows 7 but there was one thing that bothered me. The usage of alt-tab has changed from the default icons in Windows xp to a window preview in Windows 7. Fortunately for me there is [...]]]></description>
			<content:encoded><![CDATA[<p>I recently changed from Windows XP to Windows 7 on my office computer and I like the smooth interface of Windows 7 but there was one thing that bothered me. The usage of alt-tab has changed from the default icons in Windows xp to a window preview in Windows 7. Fortunately for me there is a way to use the classic alt-tab function.</p>
<p>Just follow these steps to configure the classic alt-tab in Windows 7:</p>
<ul>
<li>Open the command line (windows-button + r OR start &gt; run)</li>
<li>Type in the command <strong>regedit</strong></li>
<li>navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer</li>
<li>Now add a new DWORD value in Explorer with the name <strong>AltTabSettings </strong>and set the value to <strong>1</strong></li>
<li>Now close regedit</li>
</ul>
<p>You will now be able to use the classic alt-tab.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dimitri.eu/hide-alt-tab-previews-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox tab tricks</title>
		<link>http://www.dimitri.eu/firefox-tab-tricks/</link>
		<comments>http://www.dimitri.eu/firefox-tab-tricks/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 16:52:23 +0000</pubDate>
		<dc:creator>Dimi</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://www.dimitri.eu/?p=155</guid>
		<description><![CDATA[If you&#8217;re used to the tab-behavior that firefox had a few versions ago then you would need to change your habits with the newer versions of this browser. The recent versions of firefox (I use 3.6.6) open tabs just next to the tab you are working on instead of the far end of your tab [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re used to the tab-behavior that firefox had a few versions ago then you would need to change your habits with the newer versions of this browser. The recent versions of firefox (I use 3.6.6) open tabs just next to the tab you are working on instead of the far end of your tab bar.</p>
<p>Fortunately it isn&#8217;t a big issue to modify the tab behavior yourself. Just type <strong>about:config</strong> in your address bar and press enter. you&#8217;ll get a warning from firefox to be careful on the next page.<br />
You have now entered in the configuration panel of firefox which lets you modify more than the default options.</p>
<p>Here are some modification options to optimize the tab behavior to your likings, each op the parameters can be modified by double-clicking on it. Modified settings can be recognised as they are in a bold font.</p>
<ul>
<li><strong>browser.allTabs.previews</strong>: if <strong>true </strong>your browser will show a preview of each tab if you click on the allTabs button on the far right end of your tab bar. If <strong>false </strong>a list of open tabs will be shown.</li>
<li><strong>browser.allTabs.previews</strong>: if <strong>true </strong>your browser will show a preview of the pages as you use ctrl+tab to navigate between your tabs. If <strong>false </strong>you can just cycle through your open tabs.</li>
<li><strong>browser.tabs.insertRelatedAfterCurrent</strong>: if <strong>true </strong>firefox will open every new tab next to the current working tab on your tab bar. If <strong>false</strong> firefox will open every new tab at the far end of your tab bar.</li>
</ul>
<p>These are just some options I modified to optimize my personal behavior but you can use this <strong>about:config</strong> page to modify more settings but be aware of what settings you modify.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dimitri.eu/firefox-tab-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My trip to Lanzarote</title>
		<link>http://www.dimitri.eu/my-trip-to-lanzarote/</link>
		<comments>http://www.dimitri.eu/my-trip-to-lanzarote/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 11:45:48 +0000</pubDate>
		<dc:creator>Dimi</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Cueva de los Verdes]]></category>
		<category><![CDATA[El Golfo]]></category>
		<category><![CDATA[Jameos Del Agua]]></category>
		<category><![CDATA[Jardin de Cactus]]></category>
		<category><![CDATA[La Geria]]></category>
		<category><![CDATA[Lanzarote]]></category>
		<category><![CDATA[Mirador Del Rio]]></category>
		<category><![CDATA[tapas]]></category>
		<category><![CDATA[Timanfaya National Park]]></category>

		<guid isPermaLink="false">http://www.dimitri.eu/?p=135</guid>
		<description><![CDATA[In the first week of december I made a trip of to Lanzarote together with my travel partner from Thomas Cook/Neckermann. The idea of this trip was to see the entire Island and its beautiful volcanic nature. With approximately 60 kilometers from north to south it hasn&#8217;t been a problem to discover about every aspect [...]]]></description>
			<content:encoded><![CDATA[<p>In the first week of december I made a trip of to Lanzarote together with my travel <a title="Tom De Mesel" href="http://www.facebook.com/profile.php?id=665520887" target="_blank">partner from Thomas Cook/Neckermann</a>. The idea of this trip was to see the entire Island and its beautiful volcanic nature. With approximately 60 kilometers from north to south it hasn&#8217;t been a problem to discover about every aspect this island has to offer.</p>
<p><a href="http://www.dimitri.eu/gallery2/v/lanzarote/IMG_1270.JPG.html" target="_blank"><img class="alignnone" title="lanzarote01" src="http://www.dimitri.eu/gallery2/d/24377-2/IMG_1270.JPG" alt="" width="150" height="150" /></a> <a href="http://www.dimitri.eu/gallery2/v/lanzarote/IMG_1314.JPG.html" target="_blank"><img class="alignnone" title="lanzarote02" src="http://www.dimitri.eu/gallery2/d/24467-2/IMG_1314.JPG" alt="" width="150" height="150" /></a> <a href="http://www.dimitri.eu/gallery2/v/lanzarote/IMG_1342.JPG.html" target="_blank"><img class="alignnone" title="lanzarote03" src="http://www.dimitri.eu/gallery2/d/24533-2/IMG_1342.JPG" alt="" width="150" height="150" /></a></p>
<p>As we had a rental car we were not bound to excursions organised by our tour operator so we had the freedom to explore the island on our own rate and combine different excursions. The first trip we made was to the <em>Jardin de Cactus</em>, created by the island&#8217;s main architect César Manrique. This is a garden which has over more than 1000 types op cactuses from over the entire planet. It&#8217;s a beautiful thing to see all these kinds of cactuses which you couldn&#8217;t imagine they existed.</p>
<p><span id="more-135"></span></p>
<p><a href="http://www.dimitri.eu/gallery2/v/lanzarote/IMG_1275.JPG.html" target="_blank"><img class="alignnone" title="lanzarote05" src="http://www.dimitri.eu/gallery2/d/24392-2/IMG_1275.JPG" alt="" width="150" height="150" /></a> <a href="http://www.dimitri.eu/gallery2/v/lanzarote/IMG_1276.JPG.html" target="_blank"><img class="alignnone" title="lanzarote06" src="http://www.dimitri.eu/gallery2/d/24395-2/IMG_1276.JPG" alt="" width="150" height="150" /></a> <a href="http://www.dimitri.eu/gallery2/v/lanzarote/IMG_1283.JPG.html" target="_blank"><img class="alignnone" title="lanzarote07" src="http://www.dimitri.eu/gallery2/d/24413-2/IMG_1283.JPG" alt="" width="150" height="150" /></a></p>
<p>As I mentioned before César Manrique is the main architect of the island Lanzarote and his architectural ideas were used as a standard all over the island. We visited his home where he used to live until his fatal car accident in 1992 and I must say that his home was impressive. This house was build on and even through a coagulated lava field as you can see in the following images.</p>
<p><a href="http://www.dimitri.eu/gallery2/v/lanzarote/IMG_1297.JPG.html" target="_blank"><img class="alignnone" title="lanzarote09" src="http://www.dimitri.eu/gallery2/d/24443-2/IMG_1297.JPG" alt="" width="150" height="150" /></a> <a href="http://www.dimitri.eu/gallery2/v/lanzarote/IMG_1298.JPG.html" target="_blank"><img class="alignnone" title="lanzarote10" src="http://www.dimitri.eu/gallery2/d/24446-2/IMG_1298.JPG" alt="" width="150" height="150" /></a> <a href="http://www.dimitri.eu/gallery2/v/lanzarote/IMG_1302.JPG.html" target="_blank"><img class="alignnone" title="lanzarote11" src="http://www.dimitri.eu/gallery2/d/24452-2/IMG_1302.JPG" alt="" width="150" height="150" /></a></p>
<p>Another trip we made was to the <em>Timanfaya National Park</em> whis is a large area mainly populated with coagulated lava and craters from volcano eruptions. This was impressive to see but personally I wasn&#8217;t very keen on the mandatory bus tour. Tourists cannot explore this area on their own so you need to take a bus tour which only stops at certain times but doesn&#8217;t let you leave the bus. This same day we also went to <em>El Golfo</em> which is a crater and laguna located in the west of Lanzarote. Personally this was one of my Lanzarote-favorites as you can see in the next images. I could stand there all day just to watch the water move and clank to the rocks.</p>
<p><a href="http://www.dimitri.eu/gallery2/v/lanzarote/IMG_1341.JPG.html" target="_blank"><img class="alignnone" title="lanzarote12" src="http://www.dimitri.eu/gallery2/d/24530-2/IMG_1341.JPG" alt="" width="150" height="150" /></a> <a href="http://www.dimitri.eu/gallery2/v/lanzarote/IMG_1344.JPG.html" target="_blank"><img class="alignnone" title="lanzarote14" src="http://www.dimitri.eu/gallery2/d/24539-2/IMG_1344.JPG" alt="" width="150" height="150" /></a> <a href="http://www.dimitri.eu/gallery2/v/lanzarote/IMG_1352.JPG.html" target="_blank"><img class="alignnone" title="lanzarote15" src="http://www.dimitri.eu/gallery2/d/24557-2/IMG_1352.JPG" alt="" width="150" height="150" /></a></p>
<p>After these trips we decided to go on another kind of tour of Lanzarote; the wine-tour. <em>La Geria</em> is a zone of vineyards in the centre of Lanzarote and has 7 bodega&#8217;s where you can taste some wines, created in these vineyards. Out of these 7 bodega&#8217;s, 6 are located within a zone of 500 metres and we checked afterwards to notice that it took us about 3 hours to get past of this zone. But in the meanwhile we had tasted a lot of different wines <em>La Geria</em> has to offer. I&#8217;m not a wine connoisseur but I tasted a lot of difference between the wines and I loved it <img src='http://www.dimitri.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>On our last day of trips we went to <em>Jameos Del Agua</em> which is a small cave known for its white blind crabs. Personally this was somewhat of a disappointment. It is a small dark cave, you can see the very tiny crabs but after 5 minutes you have seen it all and the museum attached to this place is in my opinion only built to justify the 8 euros entry fee. Afterwards we headed to <em>Cueva de los Verdes</em> which is a cave of approximately 6 to 7 kilometers built by a large lava-stream underneath the island. This is very impressive to see but the most impressive part of the day came later on as we visited the <em>Mirador Del Rio</em>, a viewpoint in the very north of Lanzarote. The view up there is amazing but in this case images speak louder than words.</p>
<p><a href="http://www.dimitri.eu/gallery2/v/lanzarote/IMG_1447.JPG.html" target="_blank"><img class="alignnone" title="lanzarote16" src="http://www.dimitri.eu/gallery2/d/24734-2/IMG_1447.JPG" alt="" width="150" height="150" /></a> <a href="http://www.dimitri.eu/gallery2/v/lanzarote/IMG_1448.JPG.html" target="_blank"><img class="alignnone" title="lanzarote17" src="http://www.dimitri.eu/gallery2/d/24737-2/IMG_1448.JPG" alt="" width="150" height="150" /></a> <a href="http://www.dimitri.eu/gallery2/v/lanzarote/IMG_1451.JPG.html" target="_blank"><img class="alignnone" title="lanzarote18" src="http://www.dimitri.eu/gallery2/d/24740-2/IMG_1451.JPG" alt="" width="150" height="150" /></a></p>
<p>Previous information was only the nature-part of our holiday but you cannot go to spain without eating some tapas and in our case, a lot of tapas. We visited tapas bars every day and we can say that we found some very good ones. My favorites were <em>Bodega</em>, located in the center of <em>Puerto Del Carmen</em> (Calle del Roque Nublo 5, to be more specific) and a small one in the center of <em>Yaïza</em> (I&#8217;m not sure but I believe it was called <em>La Terracita</em>).</p>
<p>Other than this we also enjoyed the weather which was averaged to a bit more than 20 degrees during our stay of a week. For me it was awkward to walk between christmas decoration wearing sunglasses and a t-shirt.</p>
<p>If you want to see more images than provided in this article you can always check the entire collection at <a title="Gallery" href="http://www.dimitri.eu/gallery2/v/lanzarote/" target="_blank">http://www.dimitri.eu/gallery2/v/lanzarote/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dimitri.eu/my-trip-to-lanzarote/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to configure Lighttpd with PHP5 and MySQL5</title>
		<link>http://www.dimitri.eu/how-to-configure-lighttpd-with-php5-and-mysql5/</link>
		<comments>http://www.dimitri.eu/how-to-configure-lighttpd-with-php5-and-mysql5/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 23:00:15 +0000</pubDate>
		<dc:creator>Dimi</dc:creator>
				<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.dimitri.eu/?p=82</guid>
		<description><![CDATA[Over the years Apache has become somewhat of a standard web-server on unix servers but since the end of 2007 a worthy alternative to apache was born, called Lighttpd. Lighttpd has been proven to handle webrequests more efficiently than apache, resulting in a smaller memory footprint and a lower cpu load. For the moment a [...]]]></description>
			<content:encoded><![CDATA[<p>Over the years Apache has become somewhat of a standard web-server on unix servers but since the end of 2007 a worthy alternative to apache was born, called Lighttpd. <a href="http://www.lighttpd.net/" target="_blank">Lighttpd</a> has been proven to handle webrequests more efficiently than apache, resulting in a smaller memory footprint and a lower cpu load. For the moment a lot of large websites (more than 10 millions requests per day) are running on a lighttpd webserver, a few examples of these sites are:</p>
<ul>
<li><a href="http://www.imageshack.us" target="_blank">imageshack.us</a></li>
<li><a href="http://www.wikipedia.org" target="_blank">wikipedia.org</a></li>
<li><a href="http://www.mininova.org" target="_blank">mininova.org</a></li>
<li><a href="http://www.myspace.com" target="_blank">myspace.com</a></li>
<li><a href="http://www.youtube.com" target="_blank">youtube.com</a></li>
<li><a href="http://www.sourceforge.net" target="_blank">sourceforge.net</a></li>
</ul>
<p>This already is a fine curriculum so I thought it was time to configure a lighttpd server (with MySQL5 and PHP5 support) myself although I don&#8217;t come across any customers (I work at a hosting provider) who are using this at the moment.</p>
<p>We start of knowing that I usually work on debian-servers so some commands will not work on fedora, red-hat, and others.</p>
<p><span id="more-82"></span>First of all we check if apache isn&#8217;t already installed which it is in a lot of cases.</p>
<pre class="brush:bash; gutter: false; toolbar:false">dpkg -l | grep apache

ii  apache2-doc            2.2.3-4+etch6    documentation for apache2
ii  apache2-mpm-prefork    2.2.3-4+etch6    Traditional model for Apache
ii  apache2-utils          2.2.3-4+etch6    utility programs for webservers
ii  apache2.2-common       2.2.3-4+etch6    Next generation, scalable,</pre>
<p>If apache seems to be installed we will need to remove it to avoid conflicts on port 80.</p>
<pre class="brush:bash; gutter: false; toolbar:false">apt-get remove apache2-doc apache2-mpm-prefork apache2-utils apache2.2-common</pre>
<p>Now we will install MySQL (The &#8220;-y&#8221; parameter avoids questions during the install by answering &#8220;yes&#8221; to every question.</p>
<pre class="brush:bash; gutter: false; toolbar:false">apt-get install –y mysql-server mysql-client</pre>
<p>We start MySQL.</p>
<pre class="brush:bash; gutter: false; toolbar:false">/etc/init.d/mysql start</pre>
<p>We configure the MySQL root password.</p>
<pre class="brush:bash; gutter: false; toolbar:false">mysqladmin -u root password ''password_of_your_choice''</pre>
<p>After the succesfull installation of MySQL we continue the configuration by installing lighttpd.</p>
<pre class="brush:bash; gutter: false; toolbar:false">apt-get install -y lighttpd</pre>
<p>Just as a test we can now surf to the hostname or ip-address of your server to verify the succesfull installation.</p>
<p><img class="size-full wp-image-104 alignnone" title="lighttpd" src="http://www.dimitri.eu/wp-content/uploads/2009/10/lighttpd.jpg" alt="lighttpd" width="598" height="381" /></p>
<p>The default document root is /var/www/ and the configuration file is /etc/lighttpd/lighttpd.conf.</p>
<p>We will now install PHP5 as a fastCGI module, we will also add some other PHP5-modules so that these can also be addressed by PHP..</p>
<pre class="brush:bash; gutter: false; toolbar:false">apt-get install -y php5-cgi php5-mysql php5-curl ...</pre>
<p>After this installation we will need to modify the configuration files of PHP and lighttpd. In the PHP configuration file (eg. /etc/php5/cgi/php.ini) we add the following line (preferably at the end of the file.</p>
<pre class="brush:bash; gutter: false; toolbar:false">cgi.fix_pathinfo = 1</pre>
<p>In the lighttpd configuration file (/etc/lighttpd/lighttpd.conf) we modify &#8220;server.modules&#8221; by adding a new line</p>
<pre class="brush:bash; gutter: false; toolbar:false">"mod_fastcgi",</pre>
<p>At the end of this file we also need to add a few lines to tell the webserver that all files with the .php extension need to be handled by the FastCGI module.</p>
<pre class="brush:php; gutter: false; toolbar:false">fastcgi.server = ( ".php" =&gt;((
"bin-path" =&gt; "/usr/bin/php5-cgi",
"socket" =&gt; "/tmp/php.socket"
)))</pre>
<p>After saving this configuration file we can restart the lighttpd service.</p>
<pre class="brush:bash; gutter: false; toolbar:false">/etc/init.d/lighttpd restart</pre>
<p>We can now test be creating a basic php-file like info.php with the following content</p>
<pre class="brush:php; gutter: false; toolbar:false">&lt;?php phpinfo(); ?&gt;</pre>
<p>We can now witness a working lighttpd webserver with PHP5 loaded.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dimitri.eu/how-to-configure-lighttpd-with-php5-and-mysql5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hacking: iFrames containing .cn domains / meta redirects</title>
		<link>http://www.dimitri.eu/hacking-iframes-containing-cn-domains-meta-redirects/</link>
		<comments>http://www.dimitri.eu/hacking-iframes-containing-cn-domains-meta-redirects/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 13:02:52 +0000</pubDate>
		<dc:creator>Dimi</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[.cn]]></category>
		<category><![CDATA[iframes]]></category>
		<category><![CDATA[meta redirects]]></category>

		<guid isPermaLink="false">http://www.dimitri.eu/?p=64</guid>
		<description><![CDATA[Because of my job as a support engineer with a hosting provider I often come across websites and servers that are hacked. These hackings can even be divided into trends as I can state that most of the hacked sites in 2008 were hacked due to flaws in scripts, placed on the hostings and servers. [...]]]></description>
			<content:encoded><![CDATA[<p>Because of my job as a support engineer with a hosting provider I often come across websites and servers that are hacked. These hackings can even be divided into trends as I can state that most of the hacked sites in 2008 were hacked due to flaws in scripts, placed on the hostings and servers. But the year 2009 brought along a new trend of hacking.</p>
<p>This year, websitefiles were modified by making a FTP connection towards the hosting or server and adding malicious code within the webserver&#8217;s default documents (index.html, index.php, index.asp, default.html,&#8230;). As a hosting provider we were very annoyed with this situation because we couldn&#8217;t figure out the cause of these hacks at first.<br />
Within normal circumstances we check the logfiles of the webserver (if present) and in 95% of the cases we are able to find the specific cause but now we weren&#8217;t able to find any information. We could only notice that every website that was hacked had iFrames which contained redirects towards websites ending with the .cn extension.</p>
<p><span id="more-64"></span></p>
<p>Until we stumbeled upon the website<a title="unmaskparasites.com" href="http://www.unmaskparasites.com" target="_blank"> www.unmaskparasites.com</a>&#8230; this website has detailed information about this specific issue and we gained more information on the cause of this new trend. Apparently a virus, present on your computer, makes use of a known vulnerability in adobe acrobat reader to retrieve the FTP credentials of your hosting or server and this virus uses these credentials to connect, without you knowing, and modify your default website files.</p>
<p>The injection of iFrames was just one way to hack websites because a few weeks ago another method gained popularity: Meta Redirects. The same virus that abuses the adobe acrobat reader vulnerability gains access to the hosting or server and uploads a PHP script. This script is then used to abuse security flaws of the system-software (PHP, Apache, Linux,&#8230;) so that visitors of a website are ridirected towards webistes such as goscanpark.com, goscansome.com, and many others that look like correct antivirus websites.</p>
<p>If you notice one of these kinds of abuse on your website(s) you should follow the next steps to prevent this issue from escalating:</p>
<ul>
<li>Scan your computer with anti-virus and anti-spyware tools.</li>
<li>Once these scans have cleaned your computer you should modify the FTP-password(s) of your website(s).</li>
<li>Remove the malicious code (iFrames) and malicious scrpts. You can erase the current files and replace them with a recent clean backup.</li>
<li>Contact your hostingprovider or server administrator so they can do a double-check of your hosting or server. This suggestion is very important because some cases are known where scripts are running under a &#8220;crontab&#8221; (or other) user and these can be identified by the hosting provider.</li>
</ul>
<p>You can find more information about these kind of issues on the pages:</p>
<ul>
<li><a href="http://blog.unmaskparasites.com/2009/04/15/malicious-income-iframes-from-cn-domains/" target="_blank">http://blog.unmaskparasites.com/2009/04/15/malicious-income-iframes-from-cn-domains/</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/07/23/goscanpark-13-facts-about-malicious-server-wide-meta-redirects/" target="_blank">http://blog.unmaskparasites.com/2009/07/23/goscanpark-13-facts-about-malicious-server-wide-meta-redirects/</a></li>
</ul>
<p>I hope this information was helpfull.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dimitri.eu/hacking-iframes-containing-cn-domains-meta-redirects/feed/</wfw:commentRss>
		<slash:comments>101</slash:comments>
		</item>
		<item>
		<title>Mac OSX slow, caused by aslmanager</title>
		<link>http://www.dimitri.eu/mac-osx-slow-caused-by-aslmanager/</link>
		<comments>http://www.dimitri.eu/mac-osx-slow-caused-by-aslmanager/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 16:13:41 +0000</pubDate>
		<dc:creator>Dimi</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[aslmanager]]></category>

		<guid isPermaLink="false">http://www.dimitri.eu/?p=51</guid>
		<description><![CDATA[For a while I had been experiencing random slowness on my iMac. This slowness could only been solved by a reboot of my iMac but this was just a temporary solution. I didn&#8217;t look for a specific cause until it began bothering me for a while and I had the time to look into the [...]]]></description>
			<content:encoded><![CDATA[<p>For a while I had been experiencing random slowness on my iMac. This slowness could only been solved by a reboot of my iMac but this was just a temporary solution. I didn&#8217;t look for a specific cause until it began bothering me for a while and I had the time to look into the issue. I opened my activity monitor (be sure to select &#8220;All processes&#8221; from the dropdown) and I noticed that a certain process called &#8220;aslmanager&#8221; was using all of my resources.</p>
<p>The &#8220;aslmanager&#8221; process is Apple&#8217;s System Logfile manager which will be used as a replacement for syslogd in future versions of Mac OSX. But this is a rather new service which contains a few bugs that cause the application to use more than 2GB of virtual memory.</p>
<p><span id="more-51"></span>The solution to this issue isn&#8217;t to kill this process as it can cause data corruption but to restart the process after cleaning out the &#8220;data store&#8221; (where the process keeps its files). This can be done by following these few steps:</p>
<ul>
<li>open the terminal utility</li>
<li>stop the syslog with the following command: sudo launchctl stop com.apple.syslogd</li>
<li>stop the aslmanager with the following command: sudo launchctl stop com.apple.aslmanager</li>
<li>create a new folder on your desktop with a random name like &#8220;temp&#8221;</li>
<li>move all of the files from the folder /var/log/asl/ towards the new folder on your desktop, this can be done with the command: mv /var/log/asl/* ∼Desktop/temp/</li>
<li>you can now start the syslogd with the following command: sudo launchctl start com.apple.syslogd</li>
</ul>
<p>You may have noticed that we didn&#8217;t start the aslmanager manually because this process will be started automatically when this is needed by the syslogd.</p>
<p>This was a solution to the high load on my Mac and I haven&#8217;t encountered this issue until now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dimitri.eu/mac-osx-slow-caused-by-aslmanager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conclusion and Photos</title>
		<link>http://www.dimitri.eu/conclusion-and-photos/</link>
		<comments>http://www.dimitri.eu/conclusion-and-photos/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 22:36:35 +0000</pubDate>
		<dc:creator>Dimi</dc:creator>
				<category><![CDATA[Mexico]]></category>
		<category><![CDATA[gallery]]></category>

		<guid isPermaLink="false">http://www.dimitri.eu/?p=49</guid>
		<description><![CDATA[So, I am back from my trip to Mexico since friday morning and I had some time to recover and arrange my photos. The last days in Mexico were the days of relaxing and snorkeling at the beach. We still made one excursion to Isla Mujeres which is a small Island from about 8 km [...]]]></description>
			<content:encoded><![CDATA[<p>So, I am back from my trip to Mexico since friday morning and I had some time to recover and arrange my photos.</p>
<p>The last days in Mexico were the days of relaxing and snorkeling at the beach. We still made one excursion to Isla Mujeres which is a small Island from about 8 km in length and 1 km in width. We explored this island by golfcart which is the best and coolest way to travel there.</p>
<p>I won&#8217;t bother you with a rather long post but I will just point you to the large amount of photos that were taken during this trip. These photos can be viewed by going to my <a title="Gallery" href="http://www.dimitri.eu/gallery" target="_blank">gallery</a>.</p>
<p>Have fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dimitri.eu/conclusion-and-photos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>El mundo Maya</title>
		<link>http://www.dimitri.eu/el-mundo-maya/</link>
		<comments>http://www.dimitri.eu/el-mundo-maya/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 04:24:15 +0000</pubDate>
		<dc:creator>Dimi</dc:creator>
				<category><![CDATA[Mexico]]></category>
		<category><![CDATA[coba]]></category>
		<category><![CDATA[maya]]></category>

		<guid isPermaLink="false">http://www.dimitri.eu/?p=37</guid>
		<description><![CDATA[It has been a few days since my last post and a lot has happened in between. I have met the Mexican culture in it&#8217;s different aspects. The first one is the Mayan culture which is still alive among the Mexican people. I have noticed this while visiting some of the ancient beauty that was [...]]]></description>
			<content:encoded><![CDATA[<p>It has been a few days since my last post and a lot has happened in between.<br />
I have met the Mexican culture in it&#8217;s different aspects.</p>
<p>The first one is the Mayan culture which is still alive among the Mexican people. I have noticed this while visiting some of the ancient beauty that was left by the Mayan people. I visited <a title="Chizen Itza" href="http://en.wikipedia.org/wiki/Chichen_Itza" target="_blank">Chichen Itza</a>, which is one of the seven wonders of the world, and I must say that it is truly amazing to see how the Mayans were able to build such a fantastic city.<br />
Later that day we visited the city Valladolid which is an authentic Mexican city without tourist-based buildings and restaurants so we were able to eat some real Mexican food.</p>
<p><span id="more-37"></span></p>
<p>Today`s program had some more animals in it as we first visited Coba as an ancient Mayan site in the jungle (we could now climb a big temple,  which isn&#8217;t allowed in Chichen Itza) and later on we went to the nearest lake for a meet and greet with some wild crocodiles.<br />
Later on we went to Punta Laguna to see some other animals in their natural habitat. Punta Laguna is a nature reserve in the jungle which isn&#8217;t well known by tourists. Within this reserve we saw spider-monkeys, woodpeckers, bats and other animals. This was truly amazing.</p>
<p>Between these excursion days we got to know another part of the Mexican culture, being the night life. Playa del Carmen has some great spots to go out, drink and meet new people. I went to Señor Frogs and Dubai Club but I am sure that there are more to come.</p>
<p>I will close this post by telling you that I arrived in my second hotel yesterday which has luxury written all over it; from the bellboy who parks our car, over the venetion gondola and the pool bar, to the jacuzzi in the room.</p>
<p>Adios</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dimitri.eu/el-mundo-maya/feed/</wfw:commentRss>
		<slash:comments>77</slash:comments>
		</item>
		<item>
		<title>Tequila por favor?</title>
		<link>http://www.dimitri.eu/tequila-por-favor/</link>
		<comments>http://www.dimitri.eu/tequila-por-favor/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 01:19:22 +0000</pubDate>
		<dc:creator>Dimi</dc:creator>
				<category><![CDATA[Mexico]]></category>
		<category><![CDATA[beach]]></category>
		<category><![CDATA[cancun]]></category>
		<category><![CDATA[maya]]></category>
		<category><![CDATA[tequila]]></category>

		<guid isPermaLink="false">http://www.dimitri.eu/categories/personal/mexico/tequila-por-favor</guid>
		<description><![CDATA[I have to say, Mexico really is the land of tequila and it&#8217;s not that hard to prove it. I had tequila when &#8230; &#8230; visiting some local shops in Cancun. &#8230; going out in the corona bar in Cancun. &#8230; being a judge in a bikini contest on our hotel&#8217;s beach (Q: do you [...]]]></description>
			<content:encoded><![CDATA[<p>I have to say, Mexico really is the land of tequila and it&#8217;s not that hard to prove it.<br />
I had tequila when &#8230;<br />
&#8230; visiting some local shops in Cancun.<br />
&#8230; going out in the corona bar in Cancun.<br />
&#8230; being a judge in a bikini contest on our hotel&#8217;s beach (Q: do you have pictures; A: yes I have).<br />
&#8230; standing in a line at our hotel&#8217;s Mexican buffet.<br />
They even showed &#8220;A shot at love with Tila Tequila&#8221; on MTV.<br />
The city where we are staying &#8220;Playa del Carmen&#8221; even has a special tequila store with over 100 different kinds and brands of tequila.</p>
<p><span id="more-36"></span></p>
<p>Off course there were times when I wasn&#8217;t drinking tequila and this was when I was just enjoying the beautiful beach with the clear blue water which changes colours every time a ray of sun touches it.</p>
<p>This day we visited the city Tulum and more specific it&#8217;s wonderful Mayan site. It was wonderful to see the pieces of ancient art which were the houses the Mayan people of the Yacatan area lived in. This site also has a marvelous beach which I can&#8217;t describe, you will have to wait for the pictures.</p>
<p>Later that day we went to visit one of the cenotes (a limestone sinkhole filled with water) near our hotel but yet again, it&#8217;s beauty cannot be described in words.</p>
<p>I will conclude this post but I will keep you posted within a few days.</p>
<p><a href="http://www.dimitri.eu/wp-content/uploads/2009/04/l-1600-1200-028b2cb5-9e46-4532-94a3-531b28c1038b.jpeg"><img class="alignnone size-full wp-image-364" src="http://www.dimitri.eu/wp-content/uploads/2009/04/l-1600-1200-028b2cb5-9e46-4532-94a3-531b28c1038b.jpeg" alt="" width="300" height="225" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dimitri.eu/tequila-por-favor/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

