<?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 &#187; Computer</title>
	<atom:link href="http://www.iliveinperego.com/category/computer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iliveinperego.com</link>
	<description>Yes !</description>
	<lastBuildDate>Tue, 31 Jan 2012 22:06:52 +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>Backup Mysql Database on remote FTP Server</title>
		<link>http://www.iliveinperego.com/2011/06/backup-mysql-ftp-server/</link>
		<comments>http://www.iliveinperego.com/2011/06/backup-mysql-ftp-server/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 20:42:39 +0000</pubDate>
		<dc:creator>hpatoio</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.iliveinperego.com/?p=291</guid>
		<description><![CDATA[Here a simple script to backup all your mysql database on a remote FTP server. The script weekly overwrite the backup so you have full backup of your DBs for the last 6 days and your FTP server doesn&#039;t run out of space. #!/bin/sh &#160; BACKUP=&#34;/path/to/temp/dir/$$&#34; &#160; DAY=$&#40;date +&#34;%a&#34;&#41; &#160; ### MySQL Setup ### MUSER=&#34;root&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>Here a simple script to backup <strong>all</strong> your mysql database on a remote FTP server. The script weekly overwrite the backup so you have full backup of your DBs for the last 6 days and your FTP server doesn&#039;t run out of space.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #007800;">BACKUP</span>=<span style="color: #ff0000;">&quot;/path/to/temp/dir/$$&quot;</span>
&nbsp;
<span style="color: #007800;">DAY</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #ff0000;">&quot;%a&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">### MySQL Setup ###</span>
<span style="color: #007800;">MUSER</span>=<span style="color: #ff0000;">&quot;root&quot;</span>
<span style="color: #007800;">MPASS</span>=<span style="color: #ff0000;">&quot;your_root_password&quot;</span>
<span style="color: #007800;">MHOST</span>=<span style="color: #ff0000;">&quot;localhost&quot;</span>
<span style="color: #007800;">MYSQL</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$(which mysql)</span>&quot;</span>
<span style="color: #007800;">MYSQLDUMP</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$(which mysqldump)</span>&quot;</span>
<span style="color: #007800;">GZIP</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$(which gzip)</span>&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">### FTP server Setup ###</span>
<span style="color: #007800;">FTPUSER</span>=<span style="color: #ff0000;">&quot;ftp_username&quot;</span>
<span style="color: #007800;">FTPPASS</span>=<span style="color: #ff0000;">&quot;ftp_password&quot;</span>
<span style="color: #007800;">FTPHOST</span>=<span style="color: #ff0000;">&quot;ftp_host&quot;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #007800;">$BACKUP</span>
&nbsp;
<span style="color: #666666; font-style: italic;">### Start MySQL Backup ###</span>
<span style="color: #666666; font-style: italic;"># Get all databases name</span>
<span style="color: #007800;">DBS</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$($MYSQL -u $MUSER -h $MHOST -p$MPASS -Bse 'show databases')</span>&quot;</span>
<span style="color: #000000; font-weight: bold;">for</span> db <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$DBS</span>
<span style="color: #000000; font-weight: bold;">do</span>
 <span style="color: #007800;">FILE</span>=<span style="color: #007800;">$BACKUP</span><span style="color: #000000; font-weight: bold;">/</span>$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #ff0000;">&quot;%a&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>-<span style="color: #007800;">$db</span>.gz
 <span style="color: #007800;">$MYSQLDUMP</span> <span style="color: #660033;">-u</span> <span style="color: #007800;">$MUSER</span> <span style="color: #660033;">-h</span> <span style="color: #007800;">$MHOST</span> -p<span style="color: #007800;">$MPASS</span> <span style="color: #007800;">$db</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #007800;">$GZIP</span> <span style="color: #660033;">-9</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$FILE</span>
 <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Saving &quot;</span><span style="color: #007800;">$db</span><span style="color: #ff0000;">&quot; to &quot;</span><span style="color: #007800;">$FILE</span>
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
<span style="color: #666666; font-style: italic;">### Dump backup using FTP ###</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Sending file via FTP&quot;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">ftp</span> <span style="color: #660033;">-ni</span> <span style="color: #007800;">$FTPHOST</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>ftp.worked <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>ftp.failed <span style="color: #000000; font-weight: bold;">&lt;&lt;</span>END_SCRIPT
quote USER <span style="color: #007800;">$FTPUSER</span>
quote PASS <span style="color: #007800;">$FTPPASS</span>
lcd <span style="color: #007800;">$BACKUP</span>
binary
mput <span style="color: #000000; font-weight: bold;">*</span>.gz
quit
END_SCRIPT
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>ftp.failed <span style="color: #7a0874; font-weight: bold;">&#93;</span> 
<span style="color: #000000; font-weight: bold;">then</span>
   <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Problem while sendig file ... &quot;</span>
   <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>ftp.failed <span style="color: #000000; font-weight: bold;">|</span> mail <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot;Problem while backup&quot;</span> yourmail<span style="color: #000000; font-weight: bold;">@</span>yourdomain.com
<span style="color: #000000; font-weight: bold;">else</span>
   <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;File sent successfully ... &quot;</span>
   <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Deleting temporary backup direatory&quot;</span>
   <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$BACKUP</span>
   <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #007800;">$BACKUP</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<p>Once you have set the parameters and saved the file edit your cron for a nightly backup and add a line like</p>
<pre>
# FTP backup
0 2 * * * /path/to/your/file/do_backup.sh > /path/to/your/file/cron.log
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.iliveinperego.com/2011/06/backup-mysql-ftp-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress + Nginx + Cache &#8211; Automatically purge cache</title>
		<link>http://www.iliveinperego.com/2010/10/wordpress-nginx-cache-purge/</link>
		<comments>http://www.iliveinperego.com/2010/10/wordpress-nginx-cache-purge/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 08:02:10 +0000</pubDate>
		<dc:creator>hpatoio</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.iliveinperego.com/?p=282</guid>
		<description><![CDATA[I&#039;ve just published a new WordPress plugin that allow you to control NGINX cache. You ca download it here. More details and info are coming. If you are using it and you have whatever kind of problem or want to suggest something just leave a comment. To make this plugin works you must install  ngx_cache_purge [...]]]></description>
			<content:encoded><![CDATA[<p>I&#039;ve just published a new WordPress plugin that allow you to control <a title="Nginx homepage" href="http://nginx.org/">NGINX</a> cache. You ca download it <a title="Nginx Manager" href="http://wordpress.org/extend/plugins/nginx-manager/">here</a>. More details and info are coming.</p>
<p>If you are using it and you have whatever kind of problem or want to suggest something just leave a comment.</p>
<p>To make this plugin works you must install  ngx_cache_purge plugin from FRiCKLE Labs. <a title="FRiCKLE Labs / nginx / ngx_cache_purge" href="http://labs.frickle.com/nginx_ngx_cache_purge/">Download it here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iliveinperego.com/2010/10/wordpress-nginx-cache-purge/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<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 [...]]]></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>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 [...]]]></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" rel="lightbox[195]"><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" rel="lightbox[195]"><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>65</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>CSV export from MySQL</title>
		<link>http://www.iliveinperego.com/2007/09/csv-export-from-mysql/</link>
		<comments>http://www.iliveinperego.com/2007/09/csv-export-from-mysql/#comments</comments>
		<pubDate>Sat, 15 Sep 2007 15:17:36 +0000</pubDate>
		<dc:creator>simone</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Things I forget]]></category>

		<guid isPermaLink="false">http://www.iliveinperego.com/csv-export-from-mysql</guid>
		<description><![CDATA[If you have access on the machine with MySQL and you need to export all tables in a database you can use: hpatoio@namazu:~$ mysqldump -uroot -p DATABASE_NAME -T '/home/simone/export_csv' --fields-terminated-by "," --fields-enclosed-by '"' --lines-terminated-by "\n" the script will create a files for each table of the DB and will place it in export_csv. If you [...]]]></description>
			<content:encoded><![CDATA[<p>If you have access on the machine with MySQL and you need to export all tables in a database you can use:</p>
<p><code>hpatoio@namazu:~$ mysqldump -uroot -p DATABASE_NAME -T '/home/simone/export_csv' --fields-terminated-by "," --fields-enclosed-by '"' --lines-terminated-by "\n"</code></p>
<p>the script will create a files for each table of the DB and will place it in <em>export_csv</em>.</p>
<p>If you need to export a custom resultset or you need to export data from a remote MySQL server on your machine you can use this command :</p>
<p><code>hpatoio@namazu:~$ mysql -uroot -h HOSTNAME -p DATABASE_NAME -B -e "select field1,field2 ... fieldX from \`TABLE_NAME\`;" | sed 's/\t/","/g;s/^/"/;s/$/"/;s/\n//g' &gt; my_export.csv</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iliveinperego.com/2007/09/csv-export-from-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finally ! What you see is what you mean</title>
		<link>http://www.iliveinperego.com/2007/08/finally-what-you-see-is-what-you-mean/</link>
		<comments>http://www.iliveinperego.com/2007/08/finally-what-you-see-is-what-you-mean/#comments</comments>
		<pubDate>Sun, 05 Aug 2007 17:47:47 +0000</pubDate>
		<dc:creator>simone</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[English]]></category>

		<guid isPermaLink="false">http://www.iliveinperego.com/finally-what-you-see-is-what-you-mean</guid>
		<description><![CDATA[I was looking for a good and clean editor for one of my customers, and I end up to WYMeditor ! That&#039;s the way I like, that&#039;s the way I meant !]]></description>
			<content:encoded><![CDATA[<p>I was looking for a good and clean editor for one of my customers, and I end up to <a href="http://www.wymeditor.org/en/">WYMeditor</a> !</p>
<p>That&#039;s the way I like, that&#039;s the way I meant !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iliveinperego.com/2007/08/finally-what-you-see-is-what-you-mean/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add days to a date in javascript</title>
		<link>http://www.iliveinperego.com/2007/05/add-days-to-a-date-in-javascript/</link>
		<comments>http://www.iliveinperego.com/2007/05/add-days-to-a-date-in-javascript/#comments</comments>
		<pubDate>Wed, 30 May 2007 15:20:57 +0000</pubDate>
		<dc:creator>simone</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Things I forget]]></category>

		<guid isPermaLink="false">http://www.iliveinperego.com/add-days-to-a-date-in-javascript</guid>
		<description><![CDATA[shiftDay = 10 var myDate = new Date(); myDate.setDate(myDate.getUTCDate() + shiftDay) day   = myDate.getUTCDate() month = myDate.getUTCMonth()*1 + 1 year  = myDate.getUTCFullYear() This code is quite easy: shiftDay hold the number of days you want to add, if you need to go backwards you can set it to a negative value. myDate is set to [...]]]></description>
			<content:encoded><![CDATA[<p><code>shiftDay = 10<br />
var myDate = new Date();<br />
myDate.setDate(myDate.getUTCDate() + shiftDay)<br />
day   = myDate.getUTCDate()<br />
month = myDate.getUTCMonth()*1 + 1<br />
year  = myDate.getUTCFullYear()</code></p>
<p>This code is quite easy<em>: </em></p>
<ul>
<li><em>shiftDay</em> hold the number of days you want to add, if you need to go backwards you can set it to a negative value.</li>
<li><em>myDate</em> is set to the current date</li>
<li>At the end we will have the data we need in <em>day</em>, <em>month</em> and <em>year.</em></li>
<li><em>getUTCMonth</em> return the current month shifted back by one (January is 0, February is 1 and so on) that&#039;s why we add 1. We multiply the value returned by <em>getUTCMonth</em> by one to cast it to integer.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.iliveinperego.com/2007/05/add-days-to-a-date-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails API with the AJAX flavor</title>
		<link>http://www.iliveinperego.com/2007/05/rails-api-with-the-ajax-flavor/</link>
		<comments>http://www.iliveinperego.com/2007/05/rails-api-with-the-ajax-flavor/#comments</comments>
		<pubDate>Thu, 10 May 2007 07:47:30 +0000</pubDate>
		<dc:creator>simone</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Travelling on Rails]]></category>

		<guid isPermaLink="false">http://www.iliveinperego.com/rails-api-with-the-ajax-flavor</guid>
		<description><![CDATA[http://www.railsbrain.com/]]></description>
			<content:encoded><![CDATA[<p>http://www.railsbrain.com/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iliveinperego.com/2007/05/rails-api-with-the-ajax-flavor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

