<?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>Daniele Madama &#187; Work stuff</title>
	<atom:link href="http://www.danysoft.org/blog/category/my-it-world/work-stuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danysoft.org/blog</link>
	<description>Some pieces of me</description>
	<lastBuildDate>Thu, 02 Sep 2010 20:58:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Creating software RAID on living CentOS</title>
		<link>http://www.danysoft.org/blog/2010/05/17/creating-software-raid-on-living-centos/</link>
		<comments>http://www.danysoft.org/blog/2010/05/17/creating-software-raid-on-living-centos/#comments</comments>
		<pubDate>Mon, 17 May 2010 13:56:14 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[Work stuff]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[RAID]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=203</guid>
		<description><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2010/05/17/creating-software-raid-on-living-centos/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2010/05/17/creating-software-raid-on-living-centos/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p></p>
<p>Hi,<br />
I need to add a software RAID 1 to our development server. Actually it is a used server so I cannot do it during installation phase. After searching a bit into the web I found a very nice guide <a href="http://www.geroleo.com/?p=524">here</a>.</p>
<p></p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2010/05/17/creating-software-raid-on-living-centos/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2010/05/17/creating-software-raid-on-living-centos/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p></p>
<p>Hi,<br />
I need to add a software RAID 1 to our development server. Actually it is a used server so I cannot do it during installation phase. After searching a bit into the web I found a very nice guide <a href="http://www.geroleo.com/?p=524">here</a>.</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2010/05/17/creating-software-raid-on-living-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New web vocalization service</title>
		<link>http://www.danysoft.org/blog/2010/02/22/new-web-vocalization-service/</link>
		<comments>http://www.danysoft.org/blog/2010/02/22/new-web-vocalization-service/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 10:12:38 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[Work stuff]]></category>
		<category><![CDATA[Phiware]]></category>
		<category><![CDATA[tts]]></category>
		<category><![CDATA[vocalization]]></category>
		<category><![CDATA[voice]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=192</guid>
		<description><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2010/02/22/new-web-vocalization-service/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2010/02/22/new-web-vocalization-service/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p><br />
In the last months <a href="http://www.phiware.com">we</a> released under our brand name the <a href="http://voice.phiware.com">web vocalization service</a>. This service is able to read your site only adding a link/form on your pages. In the next days you can find on our site the various pricing, initially only three version will be available: Free (with advertising), Basic and Plus.<br />
We have in development some platforms integration too, for now <a href="http://www.wordpress.org">Wordpress</a> (soon available on this blog obviously) and <a href="http://www.drupal.org">Drupal</a>, in the next months some other platforms will be take in care (if you need some specific platform integration does not hesitate to ask).</p>
<p>Let me to know your feedback.</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2010/02/22/new-web-vocalization-service/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2010/02/22/new-web-vocalization-service/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p><br />
In the last months <a href="http://www.phiware.com">we</a> released under our brand name the <a href="http://voice.phiware.com">web vocalization service</a>. This service is able to read your site only adding a link/form on your pages. In the next days you can find on our site the various pricing, initially only three version will be available: Free (with advertising), Basic and Plus.<br />
We have in development some platforms integration too, for now <a href="http://www.wordpress.org">Wordpress</a> (soon available on this blog obviously) and <a href="http://www.drupal.org">Drupal</a>, in the next months some other platforms will be take in care (if you need some specific platform integration does not hesitate to ask).</p>
<p>Let me to know your feedback.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2010/02/22/new-web-vocalization-service/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Increase disk size of Xen VM</title>
		<link>http://www.danysoft.org/blog/2009/11/21/increase-disk-size-of-xen-vm/</link>
		<comments>http://www.danysoft.org/blog/2009/11/21/increase-disk-size-of-xen-vm/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 23:18:47 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[My IT world]]></category>
		<category><![CDATA[Work stuff]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=180</guid>
		<description><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2009/11/21/increase-disk-size-of-xen-vm/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2009/11/21/increase-disk-size-of-xen-vm/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p><br />
Looking for a fast and safe mode to increase the size of a Xen VM I find <a href="http://old.nabble.com/AW:-Increase-size-of-file-based-diskimage-%28with-MBR,-partitions-%2B-fs%29-td19756922.html">this</a> link that match exactly my situation: a image disk with only two partitions, the root partition and a swap partition.</p>
<p>So this is the steps that I followed to reach my goal:</p>
<blockquote>
<ol>
<li>create a backup of the diskimage that you want to modify</li>
<li>shutdown domU</li>
<li>add extra space to the image by entering: dd if=/dev/zero bs=1M count=1024 >> /path/to/diskimage    (this would add another 1024M to the DomU image)</li>
<li>boot domU</li>
<li>disable swap partitions by entering: swapoff /dev/xvda2 (or what corresponds to your setup)</li>
<li>fdisk /dev/xvda (or what corresponds to your setup)</li>
<li>press p + enter so see the whole disksetup</li>
<li>delete the second swap partition by entering d + enter and then 2 + enter</li>
<li>delete the system partion by entering d + enter and then 1+enter</li>
<li>recreate the system partition with the same start cylinder than the older one but an end-cylinder bigger than the old cylinder value. press n &lt;enter&gt; p &lt;enter&gt; 1 &lt;enter&gt; and then enter the values</li>
<li>recreate the swap partition (with n &lt;enter&gt; p &lt;enter&gt; 2 &lt;enter&gt; and appropriate values</li>
<li>chance the partition type of partition 2 to swap by pressing: t &lt;enter&gt; 2 &lt;enter&gt; 82 &lt;enter&gt;</li>
<li>exit fdisk by pressing w &lt;enter&gt;</li>
<li>execute: mkswap /dev/xvda2 to make the swap space ready</li>
<li>reboot domU</li>
<li>execute: resize2fs /dev/xvda1</li>
</ol>
</blockquote>
<p><b>Be aware that if you have a different partition schema this would not work!</b></p>
<p></p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2009/11/21/increase-disk-size-of-xen-vm/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2009/11/21/increase-disk-size-of-xen-vm/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p><br />
Looking for a fast and safe mode to increase the size of a Xen VM I find <a href="http://old.nabble.com/AW:-Increase-size-of-file-based-diskimage-%28with-MBR,-partitions-%2B-fs%29-td19756922.html">this</a> link that match exactly my situation: a image disk with only two partitions, the root partition and a swap partition.</p>
<p>So this is the steps that I followed to reach my goal:</p>
<blockquote>
<ol>
<li>create a backup of the diskimage that you want to modify</li>
<li>shutdown domU</li>
<li>add extra space to the image by entering: dd if=/dev/zero bs=1M count=1024 >> /path/to/diskimage    (this would add another 1024M to the DomU image)</li>
<li>boot domU</li>
<li>disable swap partitions by entering: swapoff /dev/xvda2 (or what corresponds to your setup)</li>
<li>fdisk /dev/xvda (or what corresponds to your setup)</li>
<li>press p + enter so see the whole disksetup</li>
<li>delete the second swap partition by entering d + enter and then 2 + enter</li>
<li>delete the system partion by entering d + enter and then 1+enter</li>
<li>recreate the system partition with the same start cylinder than the older one but an end-cylinder bigger than the old cylinder value. press n &lt;enter&gt; p &lt;enter&gt; 1 &lt;enter&gt; and then enter the values</li>
<li>recreate the swap partition (with n &lt;enter&gt; p &lt;enter&gt; 2 &lt;enter&gt; and appropriate values</li>
<li>chance the partition type of partition 2 to swap by pressing: t &lt;enter&gt; 2 &lt;enter&gt; 82 &lt;enter&gt;</li>
<li>exit fdisk by pressing w &lt;enter&gt;</li>
<li>execute: mkswap /dev/xvda2 to make the swap space ready</li>
<li>reboot domU</li>
<li>execute: resize2fs /dev/xvda1</li>
</ol>
</blockquote>
<p><b>Be aware that if you have a different partition schema this would not work!</b></p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2009/11/21/increase-disk-size-of-xen-vm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force time to a AWS Instance</title>
		<link>http://www.danysoft.org/blog/2009/11/20/force-time-to-a-aws-instance/</link>
		<comments>http://www.danysoft.org/blog/2009/11/20/force-time-to-a-aws-instance/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 16:19:10 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[My IT world]]></category>
		<category><![CDATA[Work stuff]]></category>
		<category><![CDATA[Amazon Web Services]]></category>
		<category><![CDATA[AMI]]></category>
		<category><![CDATA[AWS]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=144</guid>
		<description><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2009/11/20/force-time-to-a-aws-instance/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2009/11/20/force-time-to-a-aws-instance/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p><br />
<i>echo 1 > /proc/sys/xen/independent_wallclock</i></p>
<p>Now you can force the host date.</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2009/11/20/force-time-to-a-aws-instance/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2009/11/20/force-time-to-a-aws-instance/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p><br />
<i>echo 1 > /proc/sys/xen/independent_wallclock</i></p>
<p>Now you can force the host date.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2009/11/20/force-time-to-a-aws-instance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To create a CentOS 5.3 EC2 AMI</title>
		<link>http://www.danysoft.org/blog/2009/10/25/how-to-create-a-centos-5-3-ec2-ami/</link>
		<comments>http://www.danysoft.org/blog/2009/10/25/how-to-create-a-centos-5-3-ec2-ami/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 23:32:06 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[Work stuff]]></category>
		<category><![CDATA[Amazon Web Services]]></category>
		<category><![CDATA[AMI]]></category>
		<category><![CDATA[AWS]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[S3]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=85</guid>
		<description><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2009/10/25/how-to-create-a-centos-5-3-ec2-ami/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2009/10/25/how-to-create-a-centos-5-3-ec2-ami/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p></p>
<p>Hi,</p>
<p>after looking <a href="http://docs.amazonwebservices.com/AWSEC2/latest/DeveloperGuide/index.html?ami-via-loopback.html">some</a> <a href="http://www.udfi.biz/2009/05/creating-a-centos-53-amazon-ami/">usefull</a> <a href="http://www.onwebconsulting.com/content/creating-amazon-ec2-ami-cent-os-5-vmware-image?page=626">guides</a> to create Amazon Machine Image based on CentOS distribution, I decide to write the steps that i followed.</p>
<p>First of all we need of a CentOS machine, if you don&#8217;t have it use a virtual machine program (on my Kubuntu based laptop I use VirtualBox), once we have it login and start:</p>
<ul>
<li>
    create image file (in this case about 1,1GB of space reserved), take in mind that this will be the size of your / mountpoint on AWS, so if you want to use the whole size use 10GB (count=10240)<br />
    <code><br />
      dd if=/dev/zero of=base-server.fs bs=1M count=1024<br />
    </code>
  </li>
<li>
    then create the file system<br />
    <code><br />
      mke2fs -F -j base-server.fs<br />
    </code>
  </li>
<li>
    create a mount point and mount the image file<br />
    <code><br />
      mkdir /mnt/ec2-fs<br />
      mount -o loop base-server.fs /mnt/ec2-fs<br />
    </code>
  </li>
<li>
    prepare a base filesystem structure<br />
    <code><br />
      mkdir /mnt/ec2-fs/dev<br />
      /sbin/MAKEDEV -d /mnt/ec2-fs/dev/ -x console<br />
      /sbin/MAKEDEV -d /mnt/ec2-fs/dev/ -x null<br />
      /sbin/MAKEDEV -d /mnt/ec2-fs/dev/ -x zero<br />
      mkdir /mnt/ec2-fs/etc<br />
      mkdir /mnt/ec2-fs/proc<br />
      mount -t proc none /mnt/ec2-fs/proc<br />
    </code>
  </li>
<li>
    create a <i>yum-xen.conf</i> file with the repository info (in this case for i386 32bit architecture)<br />
    <code><br />
      [main]<br />
      cachedir=/var/cache/yum<br />
      debuglevel=2<br />
      logfile=/var/log/yum.log<br />
      exclude=*-debuginfo<br />
      gpgcheck=0<br />
      obsoletes=1<br />
      pkgpolicy=newest<br />
      distroverpkg=redhat-release<br />
      tolerant=1<br />
      exactarch=1<br />
      reposdir=/dev/null<br />
      metadata_expire=1800<br />
      [base]<br />
      name=CentOS-5.3 – Base<br />
      baseurl=http://mirror.centos.org/centos/5.3/os/i386/<br />
      gpgcheck=1<br />
      gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5<br />
      priority=1<br />
      protect=1<br />
      #released updates<br />
      [update]<br />
      name=CentOS-5.3 – Updates<br />
      baseurl=http://mirror.centos.org/centos/5.3/updates/i386/<br />
      gpgcheck=1<br />
      gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5<br />
      priority=1<br />
      protect=1<br />
      #packages used/produced in the build but not released<br />
      [addons]<br />
      name=CentOS-5.3 – Addons<br />
      baseurl=http://mirror.centos.org/centos/5.3/addons/i386/<br />
      gpgcheck=1<br />
      gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5<br />
      priority=1<br />
      [extras]<br />
      name=CentOS 5.3 Extras $releasever – $basearch<br />
      baseurl=http://mirror.centos.org/centos/5.3/extras/i386/<br />
      enabled=1<br />
    </code>
  </li>
<li>
    install all packages in &#8220;Core&#8221; group (optionally use &#8220;Base&#8221; or whatever you want)<br />
    <code><br />
      yum -c yum-xen.conf --installroot=/mnt/ec2-fs -y groupinstall Core<br />
    </code>
  </li>
<li>
    edit network interface configuration file <i>/mnt/ec2-fs/etc/sysconfig/network-scripts/ifcfg-eth0</i><br />
    <code><br />
      DEVICE=eth0<br />
      BOOTPROTO=dhcp<br />
      ONBOOT=yes<br />
      TYPE=Ethernet<br />
      USERCTL=yes<br />
      PEERDNS=yes<br />
      IPV6INIT=no<br />
    </code>
  </li>
<li>
    turn on networking editing file <i>/mnt/ec2-fs/etc/sysconfig/network</i><br />
    <code><br />
      NETWORKING=yes<br />
    </code>
  </li>
<li>
    create the file /etc/hosts and add at least the localhost interface<br />
    <code><br />
      echo "127.0.0.1       localhost.localdomain   localhost" > /etc/hosts<br />
    </code>
  </li>
<li>
    copy your resolv.conf, when boot from AWS DHCP was used<br />
    <code><br />
      cp /etc/resolv.conf /mnt/ec2-fs/etc/resolv.conf<br />
    </code>
  </li>
<li>
    edit the file <i>/mnt/ec2-fs/etc/fstab</i> (32 bit linux machine match only m1.small and c1.medium instance with this mount points)<br />
    <code><br />
      /dev/sda1  /         ext3    defaults        1 1<br />
      none       /dev/pts  devpts  gid=5,mode=620  0 0<br />
      none       /dev/shm  tmpfs   defaults        0 0<br />
      none       /proc     proc    defaults        0 0<br />
      none       /sys      sysfs   defaults        0 0<br />
      /dev/sda2  /mnt      ext3    defaults        0 0<br />
      /dev/sda3  swap      swap    defaults        0 0<br />
    </code>
  </li>
<li>
    if you need more packages install now with yum<br />
    <code><br />
      yum -c yum-xen.conf --installroot=/mnt/ec2-fs -y install wget<br />
      yum -c yum-xen.conf --installroot=/mnt/ec2-fs -y install curl<br />
    </code>
  </li>
<li>
    disable selinux in <i>/mnt/ec2-fs/etc/selinux/config</i> by setting <i>SELINUX=disabled</i>
  </li>
<li>
    move TLS library out of the way (if you have it)<br />
    <code><br />
      mv /mnt/ec2-fs/lib/tls /mnt/ec2-fs/lib/tls.disabled<br />
    </code>
  </li>
<li>
    put your ssh public key for root user (if you want to use another user, create it) in <i>/root/.ssh/authorized_keys</i> or read the following step if you prefer to use the AWS assigned key-pair
  </li>
<li>
    create the file <i>/usr/local/sbin/get-aws-credentials.sh</i> (have you installed curl? is needed for this script)<br />
    <code><br />
      #!/bin/sh<br />
      if [ ! -d /root/.ssh ] ;<br />
        then mkdir -p /root/.ssh<br />
        chmod 700 /root/.ssh<br />
      fi<br />
      # Fetch public key using HTTP<br />
      curl -f http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key > /tmp/my-key<br />
      if [ $? -eq 0 ] ;<br />
      then<br />
        cat /tmp/my-key >> /root/.ssh/authorized_keys<br />
        chmod 600 /root/.ssh/authorized_keys<br />
        rm -f /tmp/my-key<br />
      fi<br />
    </code><br />
    make it executable<br />
    <code><br />
      chmod +x /usr/local/sbin/get-aws-credentials.sh<br />
    </code><br />
    add it to <i>/etc/rc.local</i><br />
    <code><br />
      # get AWS credentials<br />
      /usr/local/sbin/get-aws-credentials.sh<br />
    </code>
  </li>
<p>  <!--li></p>
<p>    <code></p>
<p>    </code>
  </li>
<li>
<p>    <code></p>
<p>    </code>
  </li>
<li>
<p>    <code></p>
<p>    </code>
  </li>
<li>
<p>    <code></p>
<p>    </code>
  </li>
<li>
<p>    <code></p>
<p>    </code>
  </li>
<li>
<p>    <code></p>
<p>    </code>
  </li>
<li>
<p>    <code></p>
<p>    </code>
  </li-->
<li>
    chroot into your image<br />
    <code><br />
      chroot /mnt/ec2-fs /bin/bash<br />
    </code>
  </li>
<li>
    start your services at desired run level<br />
    <code><br />
      chkconfig --level 345 sshd on<br />
    </code><br />
    then exit from chroot<br />
    <code><br />
      exit<br />
    </code>
  </li>
<li>
    umount image file<br />
    <code><br />
      umount /mnt/ec2-fs/proc<br />
      umount -d /mnt/ec2-fs<br />
    </code>
  </li>
</ul>
<p>Now your image file is ready, simply create bundle volume and upload to S3</p>
<ul>
<li>
    install ruby, download ec2-ami-tools and install it<br />
    <code><br />
      yum install ruby<br />
      wget http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.noarch.rpm<br />
      rpm -Uvh ec2-ami-tools.noarch.rpm<br />
    </code>
  </li>
<li>
    create bundle volume (put file in /tmp)<br />
    <code><br />
      ec2-bundle-image -i base-server.fs -c my-cert.pem -k my-private-key.pem -u 1234-5678-9101 (amazon account id)<br />
    </code>
  </li>
<li>
    upload to Amazon S3<br />
    <code><br />
      ec2-upload-bundle -b base-server -m /tmp/base-server.fs.manifest.xml -a my-aws-access-key-id -s my-secret-key-id<br />
    </code>
  </li>
</ul>
<p>Now you can register an AMI and launch your instance.</p>
<p>Enjoy!</p>
<p></p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2009/10/25/how-to-create-a-centos-5-3-ec2-ami/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2009/10/25/how-to-create-a-centos-5-3-ec2-ami/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p></p>
<p>Hi,</p>
<p>after looking <a href="http://docs.amazonwebservices.com/AWSEC2/latest/DeveloperGuide/index.html?ami-via-loopback.html">some</a> <a href="http://www.udfi.biz/2009/05/creating-a-centos-53-amazon-ami/">usefull</a> <a href="http://www.onwebconsulting.com/content/creating-amazon-ec2-ami-cent-os-5-vmware-image?page=626">guides</a> to create Amazon Machine Image based on CentOS distribution, I decide to write the steps that i followed.</p>
<p>First of all we need of a CentOS machine, if you don&#8217;t have it use a virtual machine program (on my Kubuntu based laptop I use VirtualBox), once we have it login and start:</p>
<ul>
<li>
    create image file (in this case about 1,1GB of space reserved), take in mind that this will be the size of your / mountpoint on AWS, so if you want to use the whole size use 10GB (count=10240)<br />
    <code><br />
      dd if=/dev/zero of=base-server.fs bs=1M count=1024<br />
    </code>
  </li>
<li>
    then create the file system<br />
    <code><br />
      mke2fs -F -j base-server.fs<br />
    </code>
  </li>
<li>
    create a mount point and mount the image file<br />
    <code><br />
      mkdir /mnt/ec2-fs<br />
      mount -o loop base-server.fs /mnt/ec2-fs<br />
    </code>
  </li>
<li>
    prepare a base filesystem structure<br />
    <code><br />
      mkdir /mnt/ec2-fs/dev<br />
      /sbin/MAKEDEV -d /mnt/ec2-fs/dev/ -x console<br />
      /sbin/MAKEDEV -d /mnt/ec2-fs/dev/ -x null<br />
      /sbin/MAKEDEV -d /mnt/ec2-fs/dev/ -x zero<br />
      mkdir /mnt/ec2-fs/etc<br />
      mkdir /mnt/ec2-fs/proc<br />
      mount -t proc none /mnt/ec2-fs/proc<br />
    </code>
  </li>
<li>
    create a <i>yum-xen.conf</i> file with the repository info (in this case for i386 32bit architecture)<br />
    <code><br />
      [main]<br />
      cachedir=/var/cache/yum<br />
      debuglevel=2<br />
      logfile=/var/log/yum.log<br />
      exclude=*-debuginfo<br />
      gpgcheck=0<br />
      obsoletes=1<br />
      pkgpolicy=newest<br />
      distroverpkg=redhat-release<br />
      tolerant=1<br />
      exactarch=1<br />
      reposdir=/dev/null<br />
      metadata_expire=1800<br />
      [base]<br />
      name=CentOS-5.3 – Base<br />
      baseurl=http://mirror.centos.org/centos/5.3/os/i386/<br />
      gpgcheck=1<br />
      gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5<br />
      priority=1<br />
      protect=1<br />
      #released updates<br />
      [update]<br />
      name=CentOS-5.3 – Updates<br />
      baseurl=http://mirror.centos.org/centos/5.3/updates/i386/<br />
      gpgcheck=1<br />
      gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5<br />
      priority=1<br />
      protect=1<br />
      #packages used/produced in the build but not released<br />
      [addons]<br />
      name=CentOS-5.3 – Addons<br />
      baseurl=http://mirror.centos.org/centos/5.3/addons/i386/<br />
      gpgcheck=1<br />
      gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5<br />
      priority=1<br />
      [extras]<br />
      name=CentOS 5.3 Extras $releasever – $basearch<br />
      baseurl=http://mirror.centos.org/centos/5.3/extras/i386/<br />
      enabled=1<br />
    </code>
  </li>
<li>
    install all packages in &#8220;Core&#8221; group (optionally use &#8220;Base&#8221; or whatever you want)<br />
    <code><br />
      yum -c yum-xen.conf --installroot=/mnt/ec2-fs -y groupinstall Core<br />
    </code>
  </li>
<li>
    edit network interface configuration file <i>/mnt/ec2-fs/etc/sysconfig/network-scripts/ifcfg-eth0</i><br />
    <code><br />
      DEVICE=eth0<br />
      BOOTPROTO=dhcp<br />
      ONBOOT=yes<br />
      TYPE=Ethernet<br />
      USERCTL=yes<br />
      PEERDNS=yes<br />
      IPV6INIT=no<br />
    </code>
  </li>
<li>
    turn on networking editing file <i>/mnt/ec2-fs/etc/sysconfig/network</i><br />
    <code><br />
      NETWORKING=yes<br />
    </code>
  </li>
<li>
    create the file /etc/hosts and add at least the localhost interface<br />
    <code><br />
      echo "127.0.0.1       localhost.localdomain   localhost" > /etc/hosts<br />
    </code>
  </li>
<li>
    copy your resolv.conf, when boot from AWS DHCP was used<br />
    <code><br />
      cp /etc/resolv.conf /mnt/ec2-fs/etc/resolv.conf<br />
    </code>
  </li>
<li>
    edit the file <i>/mnt/ec2-fs/etc/fstab</i> (32 bit linux machine match only m1.small and c1.medium instance with this mount points)<br />
    <code><br />
      /dev/sda1  /         ext3    defaults        1 1<br />
      none       /dev/pts  devpts  gid=5,mode=620  0 0<br />
      none       /dev/shm  tmpfs   defaults        0 0<br />
      none       /proc     proc    defaults        0 0<br />
      none       /sys      sysfs   defaults        0 0<br />
      /dev/sda2  /mnt      ext3    defaults        0 0<br />
      /dev/sda3  swap      swap    defaults        0 0<br />
    </code>
  </li>
<li>
    if you need more packages install now with yum<br />
    <code><br />
      yum -c yum-xen.conf --installroot=/mnt/ec2-fs -y install wget<br />
      yum -c yum-xen.conf --installroot=/mnt/ec2-fs -y install curl<br />
    </code>
  </li>
<li>
    disable selinux in <i>/mnt/ec2-fs/etc/selinux/config</i> by setting <i>SELINUX=disabled</i>
  </li>
<li>
    move TLS library out of the way (if you have it)<br />
    <code><br />
      mv /mnt/ec2-fs/lib/tls /mnt/ec2-fs/lib/tls.disabled<br />
    </code>
  </li>
<li>
    put your ssh public key for root user (if you want to use another user, create it) in <i>/root/.ssh/authorized_keys</i> or read the following step if you prefer to use the AWS assigned key-pair
  </li>
<li>
    create the file <i>/usr/local/sbin/get-aws-credentials.sh</i> (have you installed curl? is needed for this script)<br />
    <code><br />
      #!/bin/sh<br />
      if [ ! -d /root/.ssh ] ;<br />
        then mkdir -p /root/.ssh<br />
        chmod 700 /root/.ssh<br />
      fi<br />
      # Fetch public key using HTTP<br />
      curl -f http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key > /tmp/my-key<br />
      if [ $? -eq 0 ] ;<br />
      then<br />
        cat /tmp/my-key >> /root/.ssh/authorized_keys<br />
        chmod 600 /root/.ssh/authorized_keys<br />
        rm -f /tmp/my-key<br />
      fi<br />
    </code><br />
    make it executable<br />
    <code><br />
      chmod +x /usr/local/sbin/get-aws-credentials.sh<br />
    </code><br />
    add it to <i>/etc/rc.local</i><br />
    <code><br />
      # get AWS credentials<br />
      /usr/local/sbin/get-aws-credentials.sh<br />
    </code>
  </li>
<p>  <!--li></p>
<p>    <code></p>
<p>    </code>
  </li>
<li>
<p>    <code></p>
<p>    </code>
  </li>
<li>
<p>    <code></p>
<p>    </code>
  </li>
<li>
<p>    <code></p>
<p>    </code>
  </li>
<li>
<p>    <code></p>
<p>    </code>
  </li>
<li>
<p>    <code></p>
<p>    </code>
  </li>
<li>
<p>    <code></p>
<p>    </code>
  </li-->
<li>
    chroot into your image<br />
    <code><br />
      chroot /mnt/ec2-fs /bin/bash<br />
    </code>
  </li>
<li>
    start your services at desired run level<br />
    <code><br />
      chkconfig --level 345 sshd on<br />
    </code><br />
    then exit from chroot<br />
    <code><br />
      exit<br />
    </code>
  </li>
<li>
    umount image file<br />
    <code><br />
      umount /mnt/ec2-fs/proc<br />
      umount -d /mnt/ec2-fs<br />
    </code>
  </li>
</ul>
<p>Now your image file is ready, simply create bundle volume and upload to S3</p>
<ul>
<li>
    install ruby, download ec2-ami-tools and install it<br />
    <code><br />
      yum install ruby<br />
      wget http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.noarch.rpm<br />
      rpm -Uvh ec2-ami-tools.noarch.rpm<br />
    </code>
  </li>
<li>
    create bundle volume (put file in /tmp)<br />
    <code><br />
      ec2-bundle-image -i base-server.fs -c my-cert.pem -k my-private-key.pem -u 1234-5678-9101 (amazon account id)<br />
    </code>
  </li>
<li>
    upload to Amazon S3<br />
    <code><br />
      ec2-upload-bundle -b base-server -m /tmp/base-server.fs.manifest.xml -a my-aws-access-key-id -s my-secret-key-id<br />
    </code>
  </li>
</ul>
<p>Now you can register an AMI and launch your instance.</p>
<p>Enjoy!</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2009/10/25/how-to-create-a-centos-5-3-ec2-ami/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Distribute application with Ant</title>
		<link>http://www.danysoft.org/blog/2008/07/30/distribute-application-with-ant/</link>
		<comments>http://www.danysoft.org/blog/2008/07/30/distribute-application-with-ant/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 12:42:31 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[My IT world]]></category>
		<category><![CDATA[Work stuff]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[one-jar]]></category>
		<category><![CDATA[uberjar]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=77</guid>
		<description><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2008/07/30/distribute-application-with-ant/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2008/07/30/distribute-application-with-ant/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p>Hi guys,</p>
<p>yesterday I spent some of my time looking for a tool to make a better distribution of <a href="http://www.phiware.ch" title="Phiware" target="_blank">our</a> java application. No, I&#8217;m not talking about a java installer or something else, but only a way to distribute our internal tools in a single jar.</p>
<p>In the paste I&#8217;ve used <a href="http://classworlds.codehaus.org/uberjar.html" target="_blank">Uberjar</a> with <a href="http://maven.apache.org/" target="_blank">maven</a> but now I&#8217;m using <a href="http://ant.apache.org/" target="_blank">ant</a> and after a lot of try I choose <a href="http://one-jar.sourceforge.net/" target="_blank">One-Jar</a>; but it works only with ant, probably the best solution is to try a way that work with maven too. Have you a suggest for me? <img src='http://www.danysoft.org/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2008/07/30/distribute-application-with-ant/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2008/07/30/distribute-application-with-ant/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p>Hi guys,</p>
<p>yesterday I spent some of my time looking for a tool to make a better distribution of <a href="http://www.phiware.ch" title="Phiware" target="_blank">our</a> java application. No, I&#8217;m not talking about a java installer or something else, but only a way to distribute our internal tools in a single jar.</p>
<p>In the paste I&#8217;ve used <a href="http://classworlds.codehaus.org/uberjar.html" target="_blank">Uberjar</a> with <a href="http://maven.apache.org/" target="_blank">maven</a> but now I&#8217;m using <a href="http://ant.apache.org/" target="_blank">ant</a> and after a lot of try I choose <a href="http://one-jar.sourceforge.net/" target="_blank">One-Jar</a>; but it works only with ant, probably the best solution is to try a way that work with maven too. Have you a suggest for me? <img src='http://www.danysoft.org/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2008/07/30/distribute-application-with-ant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW TO&#8230; become an efficient coder</title>
		<link>http://www.danysoft.org/blog/2008/04/25/how-to-become-an-efficient-coder/</link>
		<comments>http://www.danysoft.org/blog/2008/04/25/how-to-become-an-efficient-coder/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 09:03:58 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[My IT world]]></category>
		<category><![CDATA[Work stuff]]></category>
		<category><![CDATA[dixero]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=76</guid>
		<description><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2008/04/25/how-to-become-an-efficient-coder/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2008/04/25/how-to-become-an-efficient-coder/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><div align="center">
<div class="youtube-video"><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/ZYw9t_5HWls&amp;amp;hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/ZYw9t_5HWls&amp;amp;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></div>
</div>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2008/04/25/how-to-become-an-efficient-coder/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2008/04/25/how-to-become-an-efficient-coder/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><div align="center">
<div class="youtube-video"><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/ZYw9t_5HWls&amp;amp;hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/ZYw9t_5HWls&amp;amp;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2008/04/25/how-to-become-an-efficient-coder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Releasing Dixero&#8230;</title>
		<link>http://www.danysoft.org/blog/2008/04/12/releasing-dixero/</link>
		<comments>http://www.danysoft.org/blog/2008/04/12/releasing-dixero/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 00:21:49 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[My IT world]]></category>
		<category><![CDATA[Work stuff]]></category>
		<category><![CDATA[dixero]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=75</guid>
		<description><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2008/04/12/releasing-dixero/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2008/04/12/releasing-dixero/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p>Hola guy, in this days <a href="http://www.phiware.ch">we</a> are releasing another beta of <a href="http://www.dixero.com">Dixero</a>, especially we have started to release public accounts.</p>
<p><em>&#8220;Dixero is a free and innovative Web-based tool which allows you to listen to your favorite RSS feeds directly online, on your computer as a Podcast, or using a portable device, like an iPod!<br />
At last, with Dixero, you can aggregate your favorite feeds from the most recognized media companies and blogs, transforming posts into audio with different voices&#8221;</em></p>
<p>So, if you are interested to listen your preferred feeds on your iPod (or your mp3 portable player), or simple listen it also on the web with your browser don&#8217;t hesitate to <a href="http://www.dixero.com/login">join</a> and enjoy <img src='http://www.danysoft.org/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p>Thanks to <a href="http://www.sketchin.ch">Sketchin</a> guys for the effort needed to reach this goal and for this promo <img src='http://www.danysoft.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p align="center">
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/7AjUgssMKRs&#038;hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/7AjUgssMKRs&#038;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2008/04/12/releasing-dixero/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2008/04/12/releasing-dixero/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p>Hola guy, in this days <a href="http://www.phiware.ch">we</a> are releasing another beta of <a href="http://www.dixero.com">Dixero</a>, especially we have started to release public accounts.</p>
<p><em>&#8220;Dixero is a free and innovative Web-based tool which allows you to listen to your favorite RSS feeds directly online, on your computer as a Podcast, or using a portable device, like an iPod!<br />
At last, with Dixero, you can aggregate your favorite feeds from the most recognized media companies and blogs, transforming posts into audio with different voices&#8221;</em></p>
<p>So, if you are interested to listen your preferred feeds on your iPod (or your mp3 portable player), or simple listen it also on the web with your browser don&#8217;t hesitate to <a href="http://www.dixero.com/login">join</a> and enjoy <img src='http://www.danysoft.org/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p>Thanks to <a href="http://www.sketchin.ch">Sketchin</a> guys for the effort needed to reach this goal and for this promo <img src='http://www.danysoft.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p align="center">
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/7AjUgssMKRs&#038;hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/7AjUgssMKRs&#038;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2008/04/12/releasing-dixero/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>I&#8217;m still alive&#8230;</title>
		<link>http://www.danysoft.org/blog/2007/03/21/im-still-alive/</link>
		<comments>http://www.danysoft.org/blog/2007/03/21/im-still-alive/#comments</comments>
		<pubDate>Wed, 21 Mar 2007 16:33:38 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[Cocoon]]></category>
		<category><![CDATA[Me and my life]]></category>
		<category><![CDATA[My IT world]]></category>
		<category><![CDATA[Work stuff]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=68</guid>
		<description><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2007/03/21/im-still-alive/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2007/03/21/im-still-alive/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p>Yes, I know, I don&#8217;t blog from a lot of time, but in the last months I don&#8217;t have much time&#8230;<br /> From 15th January I was in <a href="http://en.wikipedia.org/wiki/Lugano">Lugano</a> for follow an interesting project based on <a href="http://cocoon.apache.org/2.1/">Cocoon</a> framework with a very nice <a href="http://en.wikipedia.org/wiki/Ajax_%28programming%29">AJAX</a> client. <br /> During this project I tried to port some <a href="http://cocoon.apache.org/2.1/userdocs/flow/api.html">flowscript</a> to <a href="http://jakarta.apache.org/commons/sandbox/javaflow/">Javaflow</a>, but in Cocoon 2.1 the Javaflow implementation is not complete and the are some boring issues. So the porting was put in pause, waiting for a official 2.2 release.<br />In the meanwhile we need some features like the possibility to load some selectionlist values into <a href="http://cocoon.apache.org/2.1/userdocs/widgetconcepts/selectionlists.html">CForms</a> widgets during the bind (not at declaration time). For this I wrote two components that during the bindLoad() phase load into the widget the model&#8217;s collection</p>
<p>&#8230;<br />
  &lt;fb:selectionlist-value id=&#8221;l-country&#8221; path=&#8221;detail/country/id&#8221;&gt;<br />
    &lt;fb:selection-list path=&#8221;allCountries&#8221; value=&#8221;id&#8221; label=&#8221;name&#8221;/&gt;<br />
  &lt;/fb:selectionlist-value&gt;<br />
&#8230;<br/><br />
I think that this can be a common issue, so I will clean the code and contribute it.</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2007/03/21/im-still-alive/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2007/03/21/im-still-alive/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p>Yes, I know, I don&#8217;t blog from a lot of time, but in the last months I don&#8217;t have much time&#8230;<br /> From 15th January I was in <a href="http://en.wikipedia.org/wiki/Lugano">Lugano</a> for follow an interesting project based on <a href="http://cocoon.apache.org/2.1/">Cocoon</a> framework with a very nice <a href="http://en.wikipedia.org/wiki/Ajax_%28programming%29">AJAX</a> client. <br /> During this project I tried to port some <a href="http://cocoon.apache.org/2.1/userdocs/flow/api.html">flowscript</a> to <a href="http://jakarta.apache.org/commons/sandbox/javaflow/">Javaflow</a>, but in Cocoon 2.1 the Javaflow implementation is not complete and the are some boring issues. So the porting was put in pause, waiting for a official 2.2 release.<br />In the meanwhile we need some features like the possibility to load some selectionlist values into <a href="http://cocoon.apache.org/2.1/userdocs/widgetconcepts/selectionlists.html">CForms</a> widgets during the bind (not at declaration time). For this I wrote two components that during the bindLoad() phase load into the widget the model&#8217;s collection</p>
<p>&#8230;<br />
  &lt;fb:selectionlist-value id=&#8221;l-country&#8221; path=&#8221;detail/country/id&#8221;&gt;<br />
    &lt;fb:selection-list path=&#8221;allCountries&#8221; value=&#8221;id&#8221; label=&#8221;name&#8221;/&gt;<br />
  &lt;/fb:selectionlist-value&gt;<br />
&#8230;<br/><br />
I think that this can be a common issue, so I will clean the code and contribute it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2007/03/21/im-still-alive/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Selenium test without X server</title>
		<link>http://www.danysoft.org/blog/2006/08/11/selenium-test-without-x-server/</link>
		<comments>http://www.danysoft.org/blog/2006/08/11/selenium-test-without-x-server/#comments</comments>
		<pubDate>Fri, 11 Aug 2006 12:34:10 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[Work stuff]]></category>
		<category><![CDATA[cruisecontrol]]></category>
		<category><![CDATA[selenium]]></category>
		<category><![CDATA[vnc]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=47</guid>
		<description><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2006/08/11/selenium-test-without-x-server/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2006/08/11/selenium-test-without-x-server/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p>I&#8217;ve the need to execute some <a href="http://www.openqa.org/selenium/">Selenium</a> test on a server without the X server up. This test are managed by <a href="http://cruisecontrol.sourceforge.net/">CruiseControl</a>, so the are auto-executed in a batch mode.<br />
A browser instance is needed by Selenium, so I&#8217;ve two choice for execute it without X: use of the <a href="http://www.xfree86.org/4.4.0/Xvfb.1.html">X Virtual Frame Buffer</a> or use of the <a href="http://en.wikipedia.org/wiki/VNC">VNC</a>. I&#8217;ve choosed the second!</p>
<p>For doing this I need only of this some commands:</p>
<p>a) vncserver :1 -geometry 1024&#215;768 -depth 16<br />
<i>This command start a server with a size of 1024&#215;768 and 16bit for the color on display addressed by &#8220;:1&#8243;.<br />
If you want to use a particular windows manager edit the .vnc/xstartup file.</i></p>
<p>2) execute &#8216;export DISPLAY=:1&#8242; for using the correct display from CruiseControl</p>
<p>3) start CruiseControl</p>
<p>4) have fun! </p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2006/08/11/selenium-test-without-x-server/" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http://www.danysoft.org/blog/2006/08/11/selenium-test-without-x-server/', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/themes/voice/images/button.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p>I&#8217;ve the need to execute some <a href="http://www.openqa.org/selenium/">Selenium</a> test on a server without the X server up. This test are managed by <a href="http://cruisecontrol.sourceforge.net/">CruiseControl</a>, so the are auto-executed in a batch mode.<br />
A browser instance is needed by Selenium, so I&#8217;ve two choice for execute it without X: use of the <a href="http://www.xfree86.org/4.4.0/Xvfb.1.html">X Virtual Frame Buffer</a> or use of the <a href="http://en.wikipedia.org/wiki/VNC">VNC</a>. I&#8217;ve choosed the second!</p>
<p>For doing this I need only of this some commands:</p>
<p>a) vncserver :1 -geometry 1024&#215;768 -depth 16<br />
<i>This command start a server with a size of 1024&#215;768 and 16bit for the color on display addressed by &#8220;:1&#8243;.<br />
If you want to use a particular windows manager edit the .vnc/xstartup file.</i></p>
<p>2) execute &#8216;export DISPLAY=:1&#8242; for using the correct display from CruiseControl</p>
<p>3) start CruiseControl</p>
<p>4) have fun! </p>
]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2006/08/11/selenium-test-without-x-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
