<?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>Riding The Breeze</title>
	<atom:link href="http://www.iliveinperego.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iliveinperego.com</link>
	<description>Yes !</description>
	<lastBuildDate>Fri, 12 Feb 2010 09:46:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SVN External with different username</title>
		<link>http://www.iliveinperego.com/2009/12/svn-external-with-different-username/</link>
		<comments>http://www.iliveinperego.com/2009/12/svn-external-with-different-username/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 16:34:33 +0000</pubDate>
		<dc:creator>hpatoio</dc:creator>
				<category><![CDATA[Computer]]></category>

		<guid isPermaLink="false">http://www.iliveinperego.com/?p=262</guid>
		<description><![CDATA[Today I had to add and SVN external project to my wordpress based project, nothing strange but the fact that the external project (NextGen Gallery) is hosted on Google Code and the authentication is different from my main repository.
After a bit of search I&#039;ve found that you can specify the user for external resource by [...]]]></description>
			<content:encoded><![CDATA[<p>Today I had to add and SVN external project to my wordpress based project, nothing strange but the fact that the external project (<a title="NextGen Gallery on GoogleCode" href="http://code.google.com/p/nextgen-gallery/"><em>NextGen Gallery</em></a>) is hosted on <em>Google Code</em> and the authentication is different from my main repository.</p>
<p>After a bit of search I&#039;ve found that you can specify the user for external resource by adding it before the domain with a @ so, for me the sintax was:</p>
<blockquote><p>nextgen-gallery https://<strong>simone.fumagalli</strong>@nextgen-gallery.googlecode.com/svn/trunk/</p></blockquote>
<p>Once you set up the SVN property give an update to the working folder and Eclipse will ask for the password.</p>
<div id="attachment_270" class="wp-caption aligncenter" style="width: 879px"><img class="size-full wp-image-270" title="SVN External with a different username in Eclipse" src="http://www.iliveinperego.com/wp-content/uploads/2009/12/svn-external.jpg" alt="SVN External with a different username in Eclipse" width="869" height="834" /><p class="wp-caption-text">SVN External with a different username in Eclipse</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.iliveinperego.com/2009/12/svn-external-with-different-username/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An illustrated guide to eight ways to kill an idea</title>
		<link>http://www.iliveinperego.com/2009/12/an-illustrated-guide-to-eight-ways-to-kill-an-idea/</link>
		<comments>http://www.iliveinperego.com/2009/12/an-illustrated-guide-to-eight-ways-to-kill-an-idea/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 09:08:03 +0000</pubDate>
		<dc:creator>hpatoio</dc:creator>
				<category><![CDATA[Computer]]></category>

		<guid isPermaLink="false">http://www.iliveinperego.com/?p=256</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;">
<div id="attachment_257" class="wp-caption aligncenter" style="width: 610px"><img class="size-full wp-image-257 " title="An illustrated guide to eight ways to kill an idea" src="http://www.iliveinperego.com/wp-content/uploads/2009/12/ideia.jpg" alt="An illustrated guide to eight ways to kill an idea" width="600" height="1680" /><p class="wp-caption-text">So, tell me, who kills good ideas ?</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.iliveinperego.com/2009/12/an-illustrated-guide-to-eight-ways-to-kill-an-idea/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monday first in MovableType calendar</title>
		<link>http://www.iliveinperego.com/2009/02/monday-first-in-movabletype-calendar/</link>
		<comments>http://www.iliveinperego.com/2009/02/monday-first-in-movabletype-calendar/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 22:24:28 +0000</pubDate>
		<dc:creator>hpatoio</dc:creator>
				<category><![CDATA[MovableType]]></category>

		<guid isPermaLink="false">http://www.iliveinperego.com/?p=218</guid>
		<description><![CDATA[When you display a calendar in Movabletype using tags from Calendar&#039;s set you get a calendar with Sunday as first day of the week.
In many countries (like Italy) weeks start on Monday, so, I needed to change this beahvior. I thought I could change something in the &#034;Settings&#034; panel or in the Config file to [...]]]></description>
			<content:encoded><![CDATA[<p>When you display a calendar in Movabletype using tags from Calendar&#039;s set you get a calendar with Sunday as first day of the week.</p>
<p>In many countries (like Italy) weeks start on Monday, so, I needed to change this beahvior. I thought I could change something in the &#034;Settings&#034; panel or in the Config file to achive this but I was wrong !</p>
<p>After a short searching I realized that I wasn&#039;t the only one with this problem, and I&#039;ve also found this <a title="See the solution." href="http://forums.sixapart.com/lofiversion/index.php/t4095.html">solution</a> that works by shifting by one the day returned by <em>wday_from_ts</em>.</p>
<p>At the beginning everything seemed to works fine but I immediately realized that this hack effected also the result of tags connected to a date like <em>&lt;$mt:EntryDate$&gt;.</em> Basically instead of getting <em><strong>Sunday</strong> February 1th 2009</em> I was getting <em><strong>Saturday</strong> February 1th 2009</em>, as you can imagine, this is quite a big problem, especially for a blog where date matters.</p>
<p>I started to look for another way to solve the problem and I realized that the only possibility was modify the function that handle the calendar tags.</p>
<h3>The Solution</h3>
<p>Open <em>/lib/MT/Template/ContextHandlers.pm </em>and modify these 2 lines from</p>
<p><code>my $pad_start = wday_from_ts($y, $m, 1);<br />
my $pad_end = 6 - wday_from_ts($y, $m, $days_in_month);</code></p>
<p>to</p>
<p><code>my $pad_start_tmp = wday_from_ts($y, $m, 1);<br />
my $pad_start = ($pad_start_tmp == 0) ? 6 : $pad_start_tmp - 1;<br />
my $pad_end = wday_from_ts($y, $m, $days_in_month) + 1;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iliveinperego.com/2009/02/monday-first-in-movabletype-calendar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom thumbnails for NGG galleries</title>
		<link>http://www.iliveinperego.com/2009/01/custom-thumbnails-for-ngg-galleries/</link>
		<comments>http://www.iliveinperego.com/2009/01/custom-thumbnails-for-ngg-galleries/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 22:23:43 +0000</pubDate>
		<dc:creator>hpatoio</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[WP - Plugins]]></category>

		<guid isPermaLink="false">http://www.iliveinperego.com/?p=195</guid>
		<description><![CDATA[[NB] This feature will be available in NGG 1.2 You can already test it by checking out the trunck version from here
This is a small extension for NextGen Gallery, it allow you to specify which area NGG must use to generate the the thumbnail.
Quite often the thumbnails generated by NGG do not show the &#034;right&#034; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>[NB]</strong> <em>This feature will be available in NGG 1.2 You can already test it by checking out the trunck version from <a title="NGG SVN repository" href="http://code.google.com/p/nextgen-gallery/source/checkout">here</a></em></p>
<p>This is a small extension for NextGen Gallery, it allow you to specify which area NGG must use to generate the the thumbnail.</p>
<p>Quite often the thumbnails generated by NGG do not show the &#034;right&#034; part of the picture, this happen especially when you have a gallery with people, where you want to show in the thumb the face and not the belly.</p>
<h3>Demo</h3>
<p><a title="Demo galleries" href="http://www.iliveinperego.com/ngg-custom-thumbnail-test-gallery/">Have a look here</a> where you can see two galleries (same pictures) the first with the standard and the second with custom thumbnails.</p>
<h3>Installation</h3>
<p>First unpack the archive to the NGG root directory, then open <strong><em>manage-images.php</em></strong> and modify line 338 from</p>
<p><code>&lt;img class="thumb" src="&lt;?php echo $picture-&gt;thumbURL; ?&gt;" &lt;?php echo $thumbsize ?&gt; /&gt;</code></p>
<p>to</p>
<p><code>&lt;img class="thumb" id="thumb&lt;?php echo $pid ?&gt;" src="&lt;?php echo $picture-&gt;thumbURL; ?&gt;" &lt;?php echo $thumbsize ?&gt; /&gt;</code></p>
<p>and add this line at the end of <strong><em>nggallery.php</em></strong></p>
<p><code>include_once (dirname (__FILE__)."/admin/custom_thumbnails.php");</code></p>
<h3>Download</h3>
<p>Here the package for the version 0.2 it ONLY works with WP 2.7 and NGG 1.0</p>
<p><a title="Download version 0.1" href="http://www.iliveinperego.com/ngg_custom_thumbnail_02.zip">Download Version 0.2</a></p>
<h3>Screenshots</h3>
<div id="attachment_200" class="wp-caption alignleft" style="width: 310px"><a href="http://www.iliveinperego.com/wp-content/uploads/2009/01/screenshot1.png"><img class="size-medium wp-image-200" title="List with &quot;Edit thumbnail&quot; action" src="http://www.iliveinperego.com/wp-content/uploads/2009/01/screenshot1-300x132.png" alt="List with &quot;Edit thumbnail&quot; action" width="300" height="132" /></a><p class="wp-caption-text">List with &quot;Edit thumbnail&quot; action</p></div>
<div id="attachment_201" class="wp-caption alignleft" style="width: 310px"><a href="http://www.iliveinperego.com/wp-content/uploads/2009/01/screenshot3.png"><img class="size-medium wp-image-201" title="Popup for area selection" src="http://www.iliveinperego.com/wp-content/uploads/2009/01/screenshot3-300x132.png" alt="Popup for area selection" width="300" height="132" /></a><p class="wp-caption-text">Popup for area selection</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.iliveinperego.com/2009/01/custom-thumbnails-for-ngg-galleries/feed/</wfw:commentRss>
		<slash:comments>62</slash:comments>
		</item>
		<item>
		<title>Snow</title>
		<link>http://www.iliveinperego.com/2009/01/snow/</link>
		<comments>http://www.iliveinperego.com/2009/01/snow/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 16:41:31 +0000</pubDate>
		<dc:creator>hpatoio</dc:creator>
				<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://www.iliveinperego.com/?p=186</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div id="attachment_187" class="wp-caption aligncenter" style="width: 614px"><img class="size-full wp-image-187" title="Perego under the snow" src="http://www.iliveinperego.com/wp-content/uploads/2009/01/snow_perego.jpg" alt="Perego under the snow" width="604" height="452" /><p class="wp-caption-text">Perego under the snow</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.iliveinperego.com/2009/01/snow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get back Insert media button in WPMU</title>
		<link>http://www.iliveinperego.com/2008/11/insert-media-button-wpmu-plugin/</link>
		<comments>http://www.iliveinperego.com/2008/11/insert-media-button-wpmu-plugin/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 19:58:14 +0000</pubDate>
		<dc:creator>hpatoio</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[WP - Plugins]]></category>

		<guid isPermaLink="false">http://www.iliveinperego.com/?p=127</guid>
		<description><![CDATA[This is a really simple plugin I always add to my default installation of WPMU. Nowadays embedded media are really commons in blog&#039;s post and all my customers were asking for it.
I found the plugin &#034;Allow Embedded Videos&#034; (http://wpmudev.org/project/Allow-Embedded-Videos) but still the button in the editor didn&#039;t show up.
Download it here 
]]></description>
			<content:encoded><![CDATA[<p>This is a really simple plugin I always add to my default installation of WPMU. Nowadays embedded media are really commons in blog&#039;s post and all my customers were asking for it.</p>
<p>I found the plugin &#034;Allow Embedded Videos&#034; (http://wpmudev.org/project/Allow-Embedded-Videos) but still the button in the editor didn&#039;t show up.</p>
<p><a title="Download the plugin" href="http://www.iliveinperego.com/wp-content/uploads/media_button.php-source">Download it here </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iliveinperego.com/2008/11/insert-media-button-wpmu-plugin/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The chemical wave !</title>
		<link>http://www.iliveinperego.com/2008/07/the-chemical-wave/</link>
		<comments>http://www.iliveinperego.com/2008/07/the-chemical-wave/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 20:46:57 +0000</pubDate>
		<dc:creator>simone</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[Travels]]></category>

		<guid isPermaLink="false">http://www.iliveinperego.com/the-chemical-wave</guid>
		<description><![CDATA[Well, the festival still have to &#034;grow&#034; &#8230; In Arezzo was something else, but I&#039;m sure next year will already better. We were there mainly for the Chemical Brothers but we also got some other cool artists like Bugo and Sud Sound System.
We also went at the Elettrowave, the electronic side of the festival. The [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_za" class="wp-caption aligncenter" style="width: 435px"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="play" value="false" /><param name="src" value="http://www.youtube.com/v/W-Zf-fF8fs8&amp;hl=it&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/W-Zf-fF8fs8&amp;hl=it&amp;fs=1" play="false"></embed></object><br />
<p class="wp-caption-text">The Chemical Brothers - Italia Wave </p></div>
<p>Well, the festival still have to &#034;grow&#034; &#8230; In Arezzo was something else, but I&#039;m sure next year will already better. We were there mainly for the Chemical Brothers but we also got some other cool artists like <a title="Bugo - Official Web Site" href="http://www.bugo-net.it/">Bugo</a> and <a title="Sud Sound System - Official Web Site" href="http://www.sudsoundsystem.com/">Sud Sound System</a>.</p>
<p>We also went at the <em>Elettrowave</em>, the electronic side of the festival. The location couldn&#039;t be better: an old fortress by the sea !</p>
<div id="attachment_126" class="wp-caption aligncenter" style="width: 343px"><img class="size-full wp-image-126" title="Fortezza Vecchia - Livorno - Italia" src="http://www.iliveinperego.com/wp-content/uploads/2008/07/2497210490_3d99462b98.jpg" alt="Fortezza Vecchia - Livorno - Via Flickr thanks to livornoalone" width="333" height="500" /><p class="wp-caption-text">Fortezza Vecchia - Livorno - Via Flickr thanks to livornoalone</p></div>
<p>See you next year Livorno !</p>
<p>PS : Someone told me that the tower of the &#034;Fortezza Vecchia&#034; in Livorno is taller than the tower of Pisa. Is it true ?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iliveinperego.com/2008/07/the-chemical-wave/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Marcus Miller &#8211; EstivalJazz 2008</title>
		<link>http://www.iliveinperego.com/2008/07/marcus-miller-estivaljazz-2008/</link>
		<comments>http://www.iliveinperego.com/2008/07/marcus-miller-estivaljazz-2008/#comments</comments>
		<pubDate>Sat, 05 Jul 2008 20:36:19 +0000</pubDate>
		<dc:creator>simone</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[Party]]></category>
		<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://www.iliveinperego.com/marcus-miller-estivaljazz-2008</guid>
		<description><![CDATA[Yesterday I went up to Chiasso directly after work, there I met Sma and we went together to Lugano to see Marcus Miller  playing at Estivaljazz 2008.
Great show, we also managed to sit in front of the stage. The clarinet/saxophone player on the left was my hero, he was moving like a spring while [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_124" class="wp-caption aligncenter" style="width: 610px"><img class="size-full wp-image-124" title="Marcus Miller - Estivaljazz '08 - Lugano - Picture by Andrea Perotti via Flickr" src="http://www.iliveinperego.com/wp-content/uploads/2008/07/marcus_miller_lugano.jpg" alt="" width="600" height="399" /><p class="wp-caption-text">Marcus Miller - Estivaljazz &#39;08 - Lugano - Picture by Andrea Perotti via Flickr</p></div>
<p>Yesterday I went up to Chiasso directly after work, there I met Sma and we went together to <strong>Lugano</strong> to see <strong>Marcus Miller </strong> playing at <strong>Estivaljazz 2008</strong>.</p>
<p>Great show, we also managed to sit in front of the stage. The clarinet/saxophone player on the left was my hero, he was moving like a spring while blowing like hell and was the only one who could compete with Miller. <strong>Alex Han</strong> his name, and 20 his age !</p>
<p>So, if you pass by Lugano the first weekend of July don&#039;t forget about the <a title="Estivaljazz - Official website" href="http://www.estivaljazz.ch/">EstivalJazz</a> !</p>
<p><em>PS: As usual I didn&#039;t have any camera with me. I took the picture from Flickr, <a href="http://www.flickr.com/photos/andyimage/tags/marcusmiller/">here the complete gallery » </a> &#8211; </em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iliveinperego.com/2008/07/marcus-miller-estivaljazz-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic vHost with Apache</title>
		<link>http://www.iliveinperego.com/2008/05/automatic-vhost-with-apache/</link>
		<comments>http://www.iliveinperego.com/2008/05/automatic-vhost-with-apache/#comments</comments>
		<pubDate>Mon, 19 May 2008 20:41:48 +0000</pubDate>
		<dc:creator>simone</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://www.iliveinperego.com/automatic-vhost-with-apache</guid>
		<description><![CDATA[In my development machine i wanted to have a specific vHost for each project. Something that would allow me to type URL like:

 http://wordpress-test1.lan/
 http://phpmyadmin.lan/
 http://project1.lan/

I started to set for each one a vHost in Apache but after a while I&#039;ve found myself with too many vHost files.
So I started to search for a more [...]]]></description>
			<content:encoded><![CDATA[<p>In my development machine i wanted to have a specific vHost for each project. Something that would allow me to type URL like:</p>
<ul>
<li> http://wordpress-test1.lan/</li>
<li> http://phpmyadmin.lan/</li>
<li> http://project1.lan/</li>
</ul>
<p>I started to set for each one a vHost in Apache but after a while I&#039;ve found myself with too many vHost files.</p>
<p>So I started to search for a more easy and fast way, and here it is:</p>
<p><strong>Note:</strong> you need to install Apache mod_rewrite to make things work.</p>
<p>Preamble:</p>
<ol>
<li>You have Apache installed, and your DocumentRoot is <em>/var/www/</em></li>
<li>You have mod_rewrite installed and enabled</li>
<li>You can modify the <em>/etc/hosts</em> file</li>
</ol>
<p>Let&#039;s say we want to install a test/demo version of Wordpress and access it from the URL http://wp-test.lan/</p>
<ol>
<li>We download and untar Wordpress in <em>/var/www/wp-test/</em></li>
<li>We tell our machine to resolve the domain wp-test.lan with the IP 127.0.0.1. To make this we add a line to our hosts file.<code>hpatoio@namazu:~$ sudo su -<br />
[sudo] password for hpatoio:<br />
root@namazu:~#echo "127.0.0.1 wp-test.lan" &gt;&gt; /etc/hosts<br />
root@namazu:~#exit<br />
hpatoio@namazu:~$</code></li>
<li>Now we have to change Apache config. Open <em>/etc/apache2/sites-anabled/000-default</em> with your favorite editor and add these lines inside the <em>&lt;VirtualHost *&gt;</em> directive:<code>RewriteEngine on<br />
RewriteCond %{HTTP_HOST} ^([^.]+)\.lan$<br />
RewriteRule    ^(.+)$ /%1$1</code> Basically :</p>
<ul>
<li>The first line turns the mod_rewrite on</li>
<li>The second one tells Apache to keep in the host part of the URL (HTTP_HOST) everything that stands before &#034;.lan&#034;</li>
<li>Finally the third line insert the string matched before (%1) between the host and the resource part (directory + file + query string) of the requested URL</li>
</ul>
<li>Restart Apache</li>
<p><code>hpatoio@namazu:~$sudo /etc/init.d/apache2 restart</code><br />
Now if open your browser and you point it to the URL <em>http://wp-test.lan/</em> you should see the WP installation page. Right ?
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.iliveinperego.com/2008/05/automatic-vhost-with-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Carnival !!</title>
		<link>http://www.iliveinperego.com/2008/02/carnival/</link>
		<comments>http://www.iliveinperego.com/2008/02/carnival/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 20:30:18 +0000</pubDate>
		<dc:creator>simone</dc:creator>
				<category><![CDATA[Party]]></category>

		<guid isPermaLink="false">http://www.iliveinperego.com/carnival</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div id="attachment_120" class="wp-caption aligncenter" style="width: 438px"><img class="size-full wp-image-120" title="Carnival" src="http://www.iliveinperego.com/wp-content/uploads/2008/02/carnival__207.jpg" alt="???" width="428" height="640" /><p class="wp-caption-text">???</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.iliveinperego.com/2008/02/carnival/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
