<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>BOT-TRONIX</title>
	<atom:link href="http://ravith.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ravith.wordpress.com</link>
	<description>Its all about Technology, Technology and ... Technology</description>
	<lastBuildDate>Sun, 13 Dec 2009 13:57:30 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='ravith.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/b0e792fb20f2c4264d41257558b9437a?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>BOT-TRONIX</title>
		<link>http://ravith.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ravith.wordpress.com/osd.xml" title="BOT-TRONIX" />
		<item>
		<title>Modified Aerocrafts Flying Dove</title>
		<link>http://ravith.wordpress.com/2009/12/13/modified-aerocrafts-flying-dove/</link>
		<comments>http://ravith.wordpress.com/2009/12/13/modified-aerocrafts-flying-dove/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 13:55:59 +0000</pubDate>
		<dc:creator>ravith</dc:creator>
				<category><![CDATA[Model Aircrafts]]></category>
		<category><![CDATA[Balsa Wing]]></category>
		<category><![CDATA[Rubber Powered]]></category>

		<guid isPermaLink="false">http://ravith.wordpress.com/?p=68</guid>
		<description><![CDATA[Today I tested out the new aerofoil on the rubber powered Aerocrafts flying dove, (AC031), and it&#8217;s performance is satisfactory.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=68&subd=ravith&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today I tested out the new aerofoil on the rubber powered Aerocrafts flying dove, (AC031), and it&#8217;s performance is satisfactory.</p>

<a href='http://ravith.wordpress.com/2009/12/13/modified-aerocrafts-flying-dove/photo-6/' title='Wing Comparison'><img width="150" height="57" src="http://ravith.files.wordpress.com/2009/12/photo-6.jpg?w=150&#038;h=57" class="attachment-thumbnail" alt="Comparison of wing sizes." title="Wing Comparison" /></a>
<a href='http://ravith.wordpress.com/2009/12/13/modified-aerocrafts-flying-dove/photo-9/' title='New wing mounted'><img width="150" height="112" src="http://ravith.files.wordpress.com/2009/12/photo-9.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="New wing mounted" title="New wing mounted" /></a>
<a href='http://ravith.wordpress.com/2009/12/13/modified-aerocrafts-flying-dove/photo-10/' title='New wing mounted'><img width="150" height="112" src="http://ravith.files.wordpress.com/2009/12/photo-10.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="New wing mounted" title="New wing mounted" /></a>
<a href='http://ravith.wordpress.com/2009/12/13/modified-aerocrafts-flying-dove/photo-11/' title='New wing mounted (Top View)'><img width="150" height="112" src="http://ravith.files.wordpress.com/2009/12/photo-11.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="New wing mounted (Top View)" title="New wing mounted (Top View)" /></a>

  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ravith.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ravith.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ravith.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ravith.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ravith.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ravith.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ravith.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ravith.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ravith.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ravith.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=68&subd=ravith&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ravith.wordpress.com/2009/12/13/modified-aerocrafts-flying-dove/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f652e1b7f68176eaa47c896c8ce66d0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">botta</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu 9.04 on Acer Aspire 4937G</title>
		<link>http://ravith.wordpress.com/2009/06/29/ubuntu-9-04-on-acer-aspire-4937g/</link>
		<comments>http://ravith.wordpress.com/2009/06/29/ubuntu-9-04-on-acer-aspire-4937g/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 07:22:12 +0000</pubDate>
		<dc:creator>ravith</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ravith.wordpress.com/?p=66</guid>
		<description><![CDATA[I recently purchased an Acer Aspire 4937G, laptop. The configuration is as below.

ntel Core2 Duo T7450 2.13GHz
4GB DDR3 Ram
Nvidia G105M Graphics Adapter
14&#8243; Glossy Display
320GB Harddisk (Though the usable portion is around 270GB)

This laptop comes branded as a Multimedia Laptop which is supposed to have built in DVD player application (embeded), But I couldn&#8217;t yet discover [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=66&subd=ravith&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I recently purchased an Acer Aspire 4937G, laptop. The configuration is as below.</p>
<ul>
<li>ntel Core2 Duo T7450 2.13GHz</li>
<li>4GB DDR3 Ram</li>
<li>Nvidia G105M Graphics Adapter</li>
<li>14&#8243; Glossy Display</li>
<li>320GB Harddisk (Though the usable portion is around 270GB)</li>
</ul>
<p>This laptop comes branded as a Multimedia Laptop which is supposed to have built in DVD player application (embeded), But I couldn&#8217;t yet discover how to get it to work, without Vista. (I may have corrupted the specific application partition (which has a embeded XP) when installing linux as it gives a HAL error when I load it through the GRUB).</p>
<p>The ubuntu installation went on fine, and most of the hardware are working. An important point to note is that the wireless networking adaptor didn&#8217;t work while booting using the ubuntu 9.04 live cd, but worked fine when running from harddisk. Also the spdif out didn&#8217;t give any thing unless the surround volume in alsa is up and unmuted. Also auto matic front muting doesn&#8217;t work when the headphone is plugged to the spdif/headphone out.</p>
<p>I have not yet tested the fingerprint, and currently working on getting the FN+Up and FN+Down to increase and decrease the volume. Will post the progress as things go on</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ravith.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ravith.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ravith.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ravith.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ravith.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ravith.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ravith.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ravith.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ravith.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ravith.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=66&subd=ravith&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ravith.wordpress.com/2009/06/29/ubuntu-9-04-on-acer-aspire-4937g/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f652e1b7f68176eaa47c896c8ce66d0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">botta</media:title>
		</media:content>
	</item>
		<item>
		<title>My Workshop</title>
		<link>http://ravith.wordpress.com/2009/06/13/my-workshop/</link>
		<comments>http://ravith.wordpress.com/2009/06/13/my-workshop/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 08:52:06 +0000</pubDate>
		<dc:creator>ravith</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ravith.wordpress.com/?p=62</guid>
		<description><![CDATA[After about a years construction and refurbishment work finally got my workshop to a  &#8216;almost complete&#8217; stage. The only problem now is from the huge amount of dust and the rats. Got to find a workaround for those 2 problems as well.
Here are the pics.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=62&subd=ravith&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>After about a years construction and refurbishment work finally got my workshop to a  &#8216;almost complete&#8217; stage. The only problem now is from the huge amount of dust and the rats. Got to find a workaround for those 2 problems as well.</p>
<p>Here are the pics.</p>

<a href='http://ravith.wordpress.com/2009/06/13/my-workshop/photo-1/' title='photo-1'><img width="150" height="112" src="http://ravith.files.wordpress.com/2009/06/photo-1.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="" title="photo-1" /></a>
<a href='http://ravith.wordpress.com/2009/06/13/my-workshop/photo-2/' title='photo-2'><img width="150" height="112" src="http://ravith.files.wordpress.com/2009/06/photo-2.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="" title="photo-2" /></a>

  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ravith.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ravith.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ravith.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ravith.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ravith.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ravith.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ravith.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ravith.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ravith.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ravith.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=62&subd=ravith&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ravith.wordpress.com/2009/06/13/my-workshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f652e1b7f68176eaa47c896c8ce66d0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">botta</media:title>
		</media:content>
	</item>
		<item>
		<title>A website for hobbyists in Sri Lanka.</title>
		<link>http://ravith.wordpress.com/2009/01/26/a-website-for-hobbyists-in-sri-lanka/</link>
		<comments>http://ravith.wordpress.com/2009/01/26/a-website-for-hobbyists-in-sri-lanka/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 10:38:25 +0000</pubDate>
		<dc:creator>ravith</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Boats]]></category>
		<category><![CDATA[Model Airplanes]]></category>
		<category><![CDATA[Remote Controlled Cars]]></category>
		<category><![CDATA[Robotics]]></category>
		<category><![CDATA[Robots]]></category>
		<category><![CDATA[Trains]]></category>

		<guid isPermaLink="false">http://ravith.wordpress.com/2009/01/26/a-website-for-hobbyists-in-sri-lanka/</guid>
		<description><![CDATA[Check this out..
http://www.hobbytechlk.net 
It is a knowledge sharing websites for hobbyists interested in Electronics, Robotics, Remote Controlled Cars, Airplanes, Trains, and Robot building.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=59&subd=ravith&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Check this out..</p>
<p><strong><a href="http://www.hobbytechlk.net">http://www.hobbytechlk.net </a></strong></p>
<p>It is a knowledge sharing websites for hobbyists interested in Electronics, Robotics, Remote Controlled Cars, Airplanes, Trains, and Robot building.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ravith.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ravith.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ravith.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ravith.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ravith.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ravith.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ravith.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ravith.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ravith.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ravith.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=59&subd=ravith&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ravith.wordpress.com/2009/01/26/a-website-for-hobbyists-in-sri-lanka/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f652e1b7f68176eaa47c896c8ce66d0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">botta</media:title>
		</media:content>
	</item>
		<item>
		<title>Courier IMAP Login Failed Issue &#8211; Fixed</title>
		<link>http://ravith.wordpress.com/2009/01/19/courier-imap-login-failed-issue-fixed/</link>
		<comments>http://ravith.wordpress.com/2009/01/19/courier-imap-login-failed-issue-fixed/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 03:54:32 +0000</pubDate>
		<dc:creator>ravith</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ravith.wordpress.com/2009/01/19/courier-imap-login-failed-issue-fixed/</guid>
		<description><![CDATA[Recently while configuring a courier-imap I came across a frustrating error where I couldnot login using the correct username and password. I was using authpam module and the server logs just stated Login Failed, and then Logout.
Enabling debug level 2 didn&#8217;t help much, but then figured out that I had set DEFDOMAIN in the imapd [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=58&subd=ravith&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recently while configuring a courier-imap I came across a frustrating error where I couldnot login using the correct username and password. I was using authpam module and the server logs just stated Login Failed, and then Logout.</p>
<p>Enabling debug level 2 didn&#8217;t help much, but then figured out that I had set DEFDOMAIN in the imapd config file which failed the pam authentication.</p>
<p>Also I found out that each change to authdaemonrc takes effect only after I restart courier-authdaemon and not courier-imap or courier-imap-ssl.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ravith.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ravith.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ravith.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ravith.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ravith.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ravith.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ravith.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ravith.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ravith.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ravith.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=58&subd=ravith&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ravith.wordpress.com/2009/01/19/courier-imap-login-failed-issue-fixed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f652e1b7f68176eaa47c896c8ce66d0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">botta</media:title>
		</media:content>
	</item>
		<item>
		<title>Converting .vmdk to a .vdi image.</title>
		<link>http://ravith.wordpress.com/2008/06/23/converting-vmdk-to-a-vdi-image/</link>
		<comments>http://ravith.wordpress.com/2008/06/23/converting-vmdk-to-a-vdi-image/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 06:07:04 +0000</pubDate>
		<dc:creator>ravith</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ravith.wordpress.com/?p=56</guid>
		<description><![CDATA[Recently I came across a situation where I needed to convert a .vmdk (VMware 6) disk image to a .vdi (VirtualBox) image.
I tried the method in http://thedarkmaster.wordpress.com/2007/03/12/vmware-virtual-machine-to-virtual-box-conversion-how-to/ but it didn&#8217;t seem to work for me. The vdi image was not bootable. The VirtualBox VM gave a fatal error saying that no bootable media were found.
The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=56&subd=ravith&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recently I came across a situation where I needed to convert a .vmdk (VMware 6) disk image to a .vdi (VirtualBox) image.</p>
<p>I tried the method in <a href="http://thedarkmaster.wordpress.com/2007/03/12/vmware-virtual-machine-to-virtual-box-conversion-how-to/" target="_blank">http://thedarkmaster.wordpress.com/2007/03/12/vmware-virtual-machine-to-virtual-box-conversion-how-to/</a> but it didn&#8217;t seem to work for me. The vdi image was not bootable. The VirtualBox VM gave a fatal error saying that no bootable media were found.</p>
<p>The following is another workaround which needs only a linux installation / live cd and VirtualBox.</p>
<ol>
<li>Create a new VirtualMachine in VirtualBox, and use an existing linux vdi image or put in a live linux cd in to your physical cdrom drive and set the VM to use the physical cdrom drive.</li>
<li>Create a &#8220;New&#8221; dynamically expanding vdi image (Use the File-&gt;Virtual Disk Manager in Virual Box to do this).</li>
<li>In your virtual machine add this newly created image as a hard disk drive. (primary slave)</li>
<li>Go back to the Virtual Disk Manager and &#8220;Add&#8221; a new disk image, select your vmdk image as the image file.</li>
<li>Add this image to your VM as a hard disk drive (secondary slave).</li>
<li>Boot the VM</li>
<li>Open a terminal and try to mount the secondary slave. In my case it was /dev/sdc2. If it mounts without any errors you are good to proceed.</li>
<div style="border:1px solid blue;">
<pre>#mkdir /mnt/disk

#mount -t ntfs /dev/sdc2 /mnt/disk</pre>
</div>
<li>Dump the secondary slave to the primary slave using dd</li>
<div style="border:1px solid blue;">
<pre># dd if=/dev/sdc of=/dev/sdb</pre>
</div>
<p>This would take some time (for me it took around an hour to dump a 9GB image)</p>
<li>Turn off the VM.</li>
<li>Remove all the hard disk drives from the VM leaving only the newly created vdi (mounted as primary slave)</li>
<li>Make it the primary master</li>
<li>Boot the VM</li>
<li>If every thing went ok then the vm should boot fine with the new vdi image, and would be identical to the  vmware virtual machine using the vmdk image.</li>
</ol>
<h4>Note</h4>
<p>If your vdi image has a Windows OS then you would need to take a look at <a href="http://www.virtualbox.org/wiki/Migrate_Windows">http://www.virtualbox.org/wiki/Migrate_Windows</a>.</p>
<p>Further you may need to enable IO-APIC in the virtual image.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ravith.wordpress.com/56/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ravith.wordpress.com/56/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ravith.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ravith.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ravith.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ravith.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ravith.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ravith.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ravith.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ravith.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ravith.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ravith.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=56&subd=ravith&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ravith.wordpress.com/2008/06/23/converting-vmdk-to-a-vdi-image/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f652e1b7f68176eaa47c896c8ce66d0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">botta</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting the 5-phase stepper to run.</title>
		<link>http://ravith.wordpress.com/2008/02/05/getting-the-5-phase-stepper-to-run/</link>
		<comments>http://ravith.wordpress.com/2008/02/05/getting-the-5-phase-stepper-to-run/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 14:51:46 +0000</pubDate>
		<dc:creator>ravith</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://ravith.wordpress.com/?p=53</guid>
		<description><![CDATA[Recently I bought three stepper motors from a junk seller in &#8216;armour street&#8217;. It costed me Rs. 300 each. The labels on these motors were almost unreadable, but since I selected all three motors of the same type I was able to put the remaining contents of the labels to find out about the motors.
The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=53&subd=ravith&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recently I bought three stepper motors from a junk seller in &#8216;armour street&#8217;. It costed me Rs. 300 each. The labels on these motors were almost unreadable, but since I selected all three motors of the same type I was able to put the remaining contents of the labels to find out about the motors.</p>
<p>The labels stated the following.</p>
<blockquote><p>5-PHASE STEPPING MOTOR<br />
A5729-9115FV<br />
DC 2.0A  0.347 OHMS / PHASE<br />
0.72 * / STEP<br />
FC6-0435  02<br />
ORIENTAL MOTOR CO LTD</p></blockquote>
<p>Each motor has 5 wires coming out, and by disassembling one motor I found it was wound in a penta  wiring (All coils are connected end to end to form a pentagon).</p>
<p>The next job was to get the motor to spin. I searched the web for an appropriate controller but couldn&#8217;t find any that satisfied my need. So I decided to build my own.</p>
<p>I found the energizing sequence <a href="http://www.cs.uiowa.edu/~jones/step/types.html#multiphase">here.</a></p>
<p>I thought of using a PIC16F84 (since I had experimented with this chip and had one in my parts box) as the controller and five IRF540 s and five IRF9540 s as the driver MOSFETs.</p>
<p>I wrote the following code in C in order to spin the motor in a single direction. (My intension was to some how get this motor working)</p>
<pre>#define __16f84

#include"pic/pic16f84.h"// Set the __CONFIG word:

typedef unsigned int word;

word at 0x2007  __CONFIG = 0x3ffa;

const unsigned int excitations[] = {22,18,26,10,11,9,13,5,21,20};

signed char excitation_index = 0;

 void forward(void){

 // increment the index;

 excitation_index++;

 PORTB = excitations[excitation_index%10];

}

void main(void) {

 TRISA = 0x00;

 TRISB = 0x00;

 PORTA = 0x00;

 PORTB = 0x00;

 T0CS = 0;

 T0IE = 0;

 GIE = 0;

 PSA = 0;

 PS0 = 1;

 PS1 = 1;

 PS2 = 1;

 T0IE = 1;

 GIE = 1;

 while(1){

 	// increment port a to indicate that the chip is doing it's job.

 	PORTA = PORTA + 1;

 }

}

void intr_handler(void) interrupt {

 T0IF = 0;

 GIE = 0;

 forward();

 GIE = 0;

}</pre>
<p>I used the SDCC compiler for GNU/Linux to compile and used PIKDEV to burn the hex file to the chip. PIKDEV failed to verify the chip after burining the hex, so I switched to Windows and used ICProg to burn the chip which was successful.</p>
<p>The following is the basic driver schematic I used to run the motor.</p>
<p><a href="http://ravith.files.wordpress.com/2008/02/driver1.png" title="Schematic"><img src="http://ravith.files.wordpress.com/2008/02/driver1.thumbnail.png" alt="Schematic" /></a></p>
<p>The Port B&#8217;s B0-B5 are connected to 1-5 in the diagram respectively. The motor connects to A,B,C,D,E points in the schematic.</p>
<p>I setup my proto board and powered it up with a 300mA power supply. It didnt work as expected. The motor kept vibrating without turning. After hours of checking what was wrong I figured out that the power was not enough to drive the motor.</p>
<p>Then I used a 1000mA 12V power supply to power the motor and the 300mA 12V to  power the uC board.</p>
<p>The motor started to spin with very low torque and very low speed. Also about 2 of the IRF540N s were getting hotter than the others. The investigation is pending.</p>
<p>I think thats because there is no PWM used in this driver. Planing to add a PWM to this driver as the next modification.</p>
<p>By the way I destroyed 2 PIC&#8217;s in the process, one by applying 12Volts to PORTB and another by burning the hex file on to it too many times. ( I had used it for about more than a year and I suppose it went out of the maximum number of times it could be reprogrammed ). Any way I finally got the 5-phase to run. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>See it working in the following video. Sorry about the very bad quality.</p>
<p><span style="text-align:center; display: block;"><a href="http://ravith.wordpress.com/2008/02/05/getting-the-5-phase-stepper-to-run/"><img src="http://img.youtube.com/vi/AIsSol5q_IQ/2.jpg" alt="" /></a></span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ravith.wordpress.com/53/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ravith.wordpress.com/53/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ravith.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ravith.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ravith.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ravith.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ravith.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ravith.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ravith.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ravith.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ravith.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ravith.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=53&subd=ravith&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ravith.wordpress.com/2008/02/05/getting-the-5-phase-stepper-to-run/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f652e1b7f68176eaa47c896c8ce66d0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">botta</media:title>
		</media:content>

		<media:content url="http://ravith.files.wordpress.com/2008/02/driver1.thumbnail.png" medium="image">
			<media:title type="html">Schematic</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/AIsSol5q_IQ/2.jpg" medium="image" />
	</item>
		<item>
		<title>PHP Code Navigation in eclipse PDT</title>
		<link>http://ravith.wordpress.com/2007/09/27/php-code-navigation-in-eclipse-pdt/</link>
		<comments>http://ravith.wordpress.com/2007/09/27/php-code-navigation-in-eclipse-pdt/#comments</comments>
		<pubDate>Thu, 27 Sep 2007 06:14:43 +0000</pubDate>
		<dc:creator>ravith</dc:creator>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://ravith.wordpress.com/2007/09/27/php-code-navigation-in-eclipse-pdt/</guid>
		<description><![CDATA[I just checked out a PHP project (SAHANA), opened it in eclipse PDT, and found out that the code navigation is not working. I couldnt view a function&#8217;s code by just ctrl+click ing on the function call.
Asked Ravindra and this is the solution he gave me. 
What I did was just created a new dummy [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=50&subd=ravith&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I just checked out a PHP project (<a href="http://www.sahana.lk">SAHANA</a>), opened it in eclipse PDT, and found out that the code navigation is not working. I couldnt view a function&#8217;s code by just ctrl+click ing on the function call.</p>
<p>Asked <a href="http://www.r4vi.org" target="_blank">Ravindra</a> and <a href="http://www.r4vi.org/index.html/?q=node/44" target="_blank">this is the solution he gave me. </a></p>
<p>What I did was just created a new dummy PHP project named test in eclipse,</p>
<p>got the .project file which was generated in the project folder (test) and copied it over the .project file I had in the project (sahana).</p>
<p>Opened up the newly copied .project (in sahana) and edited the &lt;name&gt;&lt;/name&gt; to match the name of the project (say sahana-phase 2).</p>
<p>Closed and re-opened eclipse.</p>
<p>BINGO!!! now I have code navigation.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ravith.wordpress.com/50/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ravith.wordpress.com/50/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ravith.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ravith.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ravith.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ravith.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ravith.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ravith.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ravith.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ravith.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ravith.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ravith.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=50&subd=ravith&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ravith.wordpress.com/2007/09/27/php-code-navigation-in-eclipse-pdt/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f652e1b7f68176eaa47c896c8ce66d0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">botta</media:title>
		</media:content>
	</item>
		<item>
		<title>Spring RCP &#8211; Tutorial 1</title>
		<link>http://ravith.wordpress.com/2007/09/08/spring-rcp-tutorial-1/</link>
		<comments>http://ravith.wordpress.com/2007/09/08/spring-rcp-tutorial-1/#comments</comments>
		<pubDate>Sat, 08 Sep 2007 08:39:57 +0000</pubDate>
		<dc:creator>ravith</dc:creator>
				<category><![CDATA[JAVA]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Spring RCP]]></category>

		<guid isPermaLink="false">http://ravith.wordpress.com/2007/09/08/spring-rcp-tutorial-1/</guid>
		<description><![CDATA[Spring RCP Tutorial 1 &#8211; The Basics. 
Note : First of all I have to tell you that what I write here is what I experienced while learning Spring RCP. I am no expert in Spring RCP and there may be mistakes and wrong do’s in this tutorial. Experts are welcome to point them out.
 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=47&subd=ravith&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p class="MsoNormal"><span><strong>Spring RCP Tutorial 1 &#8211; The Basics.</strong> </span></p>
<p class="MsoNormal"><span>Note : First of all I have to tell you that what I write here is what I experienced while learning Spring RCP. I am no expert in Spring RCP and there may be mistakes and wrong do’s in this tutorial. Experts are welcome to point them out.</span></p>
<p><strong><span> Introduction.</span></strong></p>
<p class="MsoNormal"><span> Spring RCP is a platform that can be used to develop high quality swing applications in a very short time. Since this technology is relatively new the  number of tutorials about it is very small. Therefore  I have decided to write my own. </span></p>
<p class="MsoNormal"><span> </span></p>
<p><strong><span>Getting Started.</span></strong></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>You will need too download the Spring RCP 0.2.1 from <a href="http://spring-rich-c.sourceforge.net/">http://spring-rich-c.sourceforge.net/</a></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><strong><span>Start a new Project in NetBeans.</span></strong></p>
<p class="MsoNormal"><span> </span></p>
<ol>
<li><span>Open up Netbeans.</span></li>
<li><span>Select File </span><span style="font-family:Wingdings;"><span>à</span></span><span> New Project</span></li>
<li><span>Enter SpringRCP-1 as the project name and select an appropriate project location.</span></li>
</ol>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><strong><span>Setting up the libraries.</span></strong></p>
<p class="MsoNormal"><span> </span></p>
<ol>
<li><span>On Netbeans select Tools </span><span style="font-family:Wingdings;"><span>à</span></span><span> Library Manager.</span></li>
<li><span>Click New Library and type in the name SpringRCP_0.2.1, select library type as Class Library.</span></li>
<li><span>Click Add Jar/ Folder and browse to the spring-richclient-full-0.2.1.jar file in the downloaded SpringRCP distribution. (spring-richclient-0.2.1\full\spring-richclient-full-0.2.1.jar).</span></li>
<li><span>Also add the following libraries. </span><span>These can be found in the Spring RCP distribution under spring-richclient-0.2.1\lib. </span><span>(version and release numbers were ommited from file names to reduce confusion)</span>
<ul>
<li><span>log4j.jar</span></li>
<li><span>spring-beans.jar</span></li>
<li><span>spring-core.jar</span></li>
<li><span>spring-context.jar</span></li>
<li><span>commons-logging.jar</span></li>
<li><span>looks.jar</span></li>
</ul>
</li>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span> </span></p>
<li><span>Click OK.</span></li>
<li><span>Right Click on the project node on the Projects Tab and select properties.</span>
<p class="MsoNormal"><a href="http://ravith.files.wordpress.com/2007/09/projectnodes1.gif" title="projectnodes1.gif"><img src="http://ravith.files.wordpress.com/2007/09/projectnodes1.thumbnail.gif?w=184&#038;h=124" alt="projectnodes1.gif" height="124" width="184" /></a></p>
</li>
<li><span>Select Libraries :<span>  </span>Add Library and add the SpringRCP_0.2.1 library which we created before to the project.</span></li>
</ol>
<p><strong>Writing the Hello World Application</strong></p>
<p class="MsoNormal"><span>First we need to create an application context xml file which will hold all bean definitions of the application.</span></p>
<p class="MsoNormal"><span> I choose to create the application-context.xml file under src/resources/ directory of the project direcotry structure.</span></p>
<p class="MsoNormal"><span> Create a new xml file named application-context.xml in the above folder. ( you will have to create the resources folder under the src folder first)</span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal"><span>The content of the applicatoin-context.xml is as follows.</span></p>
<pre><span style="font-size:9pt;font-family:'Courier New';">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';">&lt;!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" </span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';">"http://www.springframework.org/dtd/spring-beans.dtd"&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"> &lt;beans&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>&lt;bean name="application" class="org.springframework.richclient.application.Application"&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;constructor-arg&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>            </span>&lt;ref bean="applicationLifecycleAdvisor" /&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;/constructor-arg&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>&lt;/bean&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span></span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>&lt;bean name="applicationLifecycleAdvisor" class="springrcp.tutorial1.HelloWorldLifecycleAdvisor"&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;property name="startingPageId"&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>            </span>&lt;value&gt;helloWorldPage&lt;/value&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;/property&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>&lt;/bean&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span></span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>&lt;bean name="helloWorldPage" class="org.springframework.richclient.application.support.DefaultViewDescriptor"&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;property name="viewClass"&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>            </span>&lt;value&gt;springrcp.tutorial1.HelloWorldView&lt;/value&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>      </span><span>  </span>&lt;/property&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>&lt;/bean&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span></span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>&lt;bean id="serviceLocator" class="org.springframework.richclient.application.ApplicationServicesLocator"&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;property name="applicationServices" ref="applicationServices"/&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>&lt;/bean&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span></span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>&lt;bean id="applicationServices" class="org.springframework.richclient.application.support.DefaultApplicationServices"&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;property name="imageSourceId"&gt;&lt;idref bean="imageSource"/&gt;&lt;/property&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>&lt;/bean&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span></span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>&lt;bean id="imageSource" class="org.springframework.richclient.image.DefaultImageSource"&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;constructor-arg&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>            </span>&lt;ref bean="imageResourcesFactory"/&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;/constructor-arg&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>&lt;/bean&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span></span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>&lt;bean id="imageResourcesFactory" class="org.springframework.context.support.ResourceMapFactoryBean"&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>      </span><span>  </span>&lt;property name="location"&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>            </span>&lt;value&gt;resources/images.properties&lt;/value&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;/property&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;property name="resourceBasePath"&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>            </span>&lt;value&gt;resources/images/&lt;/value&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;/property&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>&lt;/bean&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';">&lt;/beans&gt;</span></pre>
<p class="MsoNormal"> <span>If you are familiar with the spring framwork and AOP (don’t worry if you are not) you will notice that every thing is done through dependency injection.</span></p>
<p class="MsoNormal"><span> I will explain each and every bean definition separately which comes the &lt;beans&gt; element.</span></p>
<pre><span style="font-family:'Courier New';">&lt;bean name="application" class="org.springframework.richclient.application.Application"&gt;</span></pre>
<pre><span style="font-family:'Courier New';"><span>        </span>&lt;constructor-arg&gt;</span></pre>
<pre><span style="font-family:'Courier New';"><span>            </span>&lt;ref bean="applicationLifecycleAdvisor" /&gt;</span></pre>
<pre><span style="font-family:'Courier New';"><span>        </span>&lt;/constructor-arg&gt;</span></pre>
<pre><span>&lt;/bean&gt; </span></pre>
<p class="MsoNormal"><span>This bean is the main bean which defines the actual application. It must be given the name application. (For the time being remember that as a rule. You will know why it is given that name later.)</span></p>
<p class="MsoNormal"><span>If you take a look at the java doc of the class </span><span style="font-family:'Courier New';">org.springframework.richclient.application.Application </span><span>you will see that there are two constructors one which accepts two arguments and another with a single argument. For the moment forget about the constructor with two arguments. We’ll use it in a later tutorial.</span></p>
<p>The constructor with a single argument accepts a <span style="font-size:12pt;">org.springframework.richclient.application.config.ApplicationLifecycleAdvisor.</span></p>
<p class="MsoNormal"><span>An application lifecycle advisor is class which contains methods that will be called at different stateges of the applicatoin such as onStartup, onClose etc. (This concept is<span>  </span>called callbacks, If you want to know more just read some articles on Aspect Oriented Programming (AOP)) </span></p>
<pre><span style="font-family:'Courier New';">&lt;bean name="applicationLifecycleAdvisor" class="springrcp.tutorial1.HelloWorldLifecycleAdvisor"&gt;</span></pre>
<pre><span style="font-family:'Courier New';"><span>    </span>&lt;property name="startingPageId"&gt;</span></pre>
<pre><span style="font-family:'Courier New';"><span>            </span>&lt;value&gt;helloWorldPage&lt;/value&gt;</span></pre>
<pre><span style="font-family:'Courier New';"><span>    </span>&lt;/property&gt;</span></pre>
<pre><span style="font-family:'Courier New';"><span></span>&lt;/bean&gt;</span></pre>
<p class="MsoNormal"><span>Since the class ApplicationLifecyclceAdvisor is abstract I’ll have to write my own life cycle advisor inheriting the above. I’ll name that class HelloworldLifecycelAdvisor.</span></p>
<p class="MsoNormal"><span>The ApplicationLifecycelAdvisor class specifies what page / user interface should be shown when the application is started. This is specified through the property “startingPageId”. I have specified the value as helloWorldPage where it is a view descriptor bean. </span></p>
<p class="MsoNormal"><span>HelloWorldLifecycleAdvisor.java is as follows. </span></p>
<pre><span style="font-size:9pt;font-family:'Courier New';">package springrcp.tutorial1;
</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';">import org.springframework.richclient.application.config.ApplicationLifecycleAdvisor;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';">/**</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span> </span>*</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span> </span>* @author Ravith</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span> </span>*/</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';">public class HelloWorldLifecycleAdvisor extends ApplicationLifecycleAdvisor{</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>/**</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>     </span>* Creates a new instance of HelloWorldLifecycleAdvisor</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>     </span>*/</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>public HelloWorldLifecycleAdvisor() {</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>}<span>     </span></span></pre>
<pre><span>}
</span></pre>
<p><span>Let us now see what a view descriptor is. As the name implies it tells what are the things that make up the view / user interface.</span><span><br />
</span></p>
<pre><span style="font-size:9pt;font-family:'Courier New';">&lt;bean name="helloWorldPage" class="org.springframework.richclient.application.support.DefaultViewDescriptor"&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>&lt;property name="viewClass"&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;value&gt;springrcp.tutorial1.HelloWorldView&lt;/value&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>&lt;/property&gt;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';">&lt;/bean&gt;
</span></pre>
<p><span>The HelloWorldView.java is as follows.</span><span><br />
</span></p>
<pre><span style="font-size:9pt;font-family:'Courier New';">package springrcp.tutorial1;
</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';">import java.awt.BorderLayout;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';">import javax.swing.JComponent;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';">import javax.swing.JLabel;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';">import org.springframework.richclient.application.support.AbstractView;</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';">/**</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span> </span>*</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span> </span>* @author Ravith</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span> </span>*/</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';">public class HelloWorldView extends AbstractView{<span>    </span></span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>/** Creates a new instance of HelloWorldView */</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>public HelloWorldView() {</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>}</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span></span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>protected JComponent createControl() {</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>       </span>JLabel lblHelloWorld = new JLabel();//create a new label</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>       </span>lblHelloWorld.setText("Hello Spring RCP World !"); // set the text</span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>       </span>return lblHelloWorld; // return the label. </span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>}<span>        </span></span></pre>
<pre><span style="font-size:9pt;font-family:'Courier New';">}</span><span>
</span></pre>
<p class="MsoNormal"><span>The HelloWorldView class is a subclass of AbstractView which inturn implements the </span><span style="font-size:9pt;font-family:'Courier New';">org.springframework.richclient.application.View interface</span><span>. We need to override the createControl() method to return our user interface. In the above code I have overridden the method to return a simple text lable with the text “Hello Spring RCP World !”. </span></p>
<p class="MsoNormal"><span>Now let us take a look at the remaining bean definitions. </span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';">&lt;bean id=&#8221;serviceLocator&#8221; class=&#8221;org.springframework.richclient.application.ApplicationServicesLocator&#8221;&gt;<span>    </span>&lt;property name=&#8221;applicationServices&#8221; ref=&#8221;applicationServices&#8221;/&gt;</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';">&lt;/bean&gt;</span></p>
<p class="MsoNormal"><span> This bean is responsible for locating the application services which actually do the business logic of the application. Just remember it as it is. We’ll use it in more detail when we are familiar with things.</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"> I will use the default set of application services because we need to configure a image source for our application. (I’ve tried without this and it fails with an error.)</span></p>
<p>&lt;bean id=&#8221;applicationServices&#8221; class=&#8221;org.springframework.richclient.application.support.DefaultApplicationServices&#8221;&gt;</p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>&lt;property name=&#8221;imageSourceId&#8221;&gt;&lt;idref bean=&#8221;imageSource&#8221;/&gt;&lt;/property&gt;</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';">&lt;/bean&gt;</span></p>
<p class="MsoNormal"><span> The bean imageSource will be responsible for mapping image keys to actual images. Don’t worry abt this right now. U’ll understand it in a minute.</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"> &lt;bean id=&#8221;imageSource&#8221; class=&#8221;org.springframework.richclient.image.DefaultImageSource&#8221;&gt;</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;constructor-arg&gt;</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span>            </span>&lt;ref bean=&#8221;imageResourcesFactory&#8221;/&gt;</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;/constructor-arg&gt;</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span></span>&lt;/bean&gt;</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span></span>&lt;bean id=&#8221;imageResourcesFactory&#8221; class=&#8221;org.springframework.context.support.ResourceMapFactoryBean&#8221;&gt;</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;property name=&#8221;location&#8221;&gt;</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span>            </span>&lt;value&gt;resources/images.properties&lt;/value&gt;</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;/property&gt;</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;property name=&#8221;resourceBasePath&#8221;&gt;</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span>            </span>&lt;value&gt;resources/images/&lt;/value&gt;</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>&lt;/property&gt;</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span></span>&lt;/bean&gt; </span></p>
<p class="MsoNormal"><span>The imageResourcesFactory class is used to load a map of<span>  </span>keys and image file names from a resource bundle properties file, in this case named images.properties.</span></p>
<p class="MsoNormal"><span> The images.properties file is a simple text file with the extention .properties and contains the following line of text.</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"> applicationInfo.image=image1.gif</span></p>
<p class="MsoNormal"><span> The resourceBasePath property of the imageResourceFactory bean is used to append any common path used by all images of our application.</span></p>
<p class="MsoNormal"><span> So .. that means…. You guessed it right.!!</span></p>
<p class="MsoNormal"><span> “image1.gif” will be taken as “resources/images/image1.gif”</span></p>
<p class="MsoNormal"><span> This is how the file structure of the application looks like now.</span></p>
<p class="MsoNormal"><span> </span><a href="http://ravith.files.wordpress.com/2007/09/projectnodes2.gif" title="projectnodes2.gif"><img src="http://ravith.files.wordpress.com/2007/09/projectnodes2.thumbnail.gif" alt="projectnodes2.gif" /></a><span><br />
<!--[if gte vml 1]&amp;gt;                                                  &amp;lt;![endif]--><!--[if !vml]--><br />
<!--[endif]-->So the remaining job is to create a class that will contain the main method to execute our hello world application. </span></p>
<p class="MsoNormal"><span>The Main.java will be as follows. </span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';">package springrcp.tutorial1; </span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';">import org.springframework.context.ApplicationContext;</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';">import org.springframework.context.support.ClassPathXmlApplicationContext;</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';">import org.springframework.richclient.application.ApplicationLauncher;</span></p>
<p><span style="font-size:9pt;font-family:'Courier New';">/**</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span> </span>*</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span> </span>* @author Ravith</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span> </span>*/</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';">public class Main {<span>    </span></span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>/** Creates a new instance of Main */</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>public Main() {</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>}<span>    </span></span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>public static void main(String[] args){</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>String appContextPath = &#8220;resources/application-context.xml&#8221;;</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>ApplicationContext appCtx = new ClassPathXmlApplicationContext(appContextPath);</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span>        </span>new ApplicationLauncher(appCtx);</span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';"><span>    </span>}<span></span></span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:'Courier New';">} </span></p>
<p class="MsoNormal"><span>We need to tell the spring framework to use our application-context.xml file to configure the beans and perform the IOC and AOP functionalities. (Read some spring tutorials if you really want to understand how IOC and AOP works).</span></p>
<p class="MsoNormal"><span> The ClassPathXmlApplicationContext is created by passing the path of the xml configuration file. This ApplicationContext is then passed in to the ApplicationLauncher which will launch the application. </span></p>
<p class="MsoNormal"><span>I hope I didn’t leave you more confused than you started. Any way if there are parts of this tutorial that need to be explained more please drop in a comment. Also point any mistakes if there are any.</span></p>
<p class="MsoNormal"><span> In the next tutorial we will take a look at splash screens and a little advanced scenario.</span></p>
<p class="MsoNormal"><span> Until then you are free to mess up with this example. </span></p>
<p class="MsoNormal">&nbsp;</p>
<ol>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span> </span></p>
</ol>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ravith.wordpress.com/47/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ravith.wordpress.com/47/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ravith.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ravith.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ravith.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ravith.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ravith.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ravith.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ravith.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ravith.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ravith.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ravith.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=47&subd=ravith&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ravith.wordpress.com/2007/09/08/spring-rcp-tutorial-1/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f652e1b7f68176eaa47c896c8ce66d0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">botta</media:title>
		</media:content>

		<media:content url="http://ravith.files.wordpress.com/2007/09/projectnodes1.thumbnail.gif" medium="image">
			<media:title type="html">projectnodes1.gif</media:title>
		</media:content>

		<media:content url="http://ravith.files.wordpress.com/2007/09/projectnodes2.thumbnail.gif" medium="image">
			<media:title type="html">projectnodes2.gif</media:title>
		</media:content>
	</item>
		<item>
		<title>Hibernate Xdoclet many-to-one generates dulicate unique=&#8221;true&#8221; &#8211; SOLVED!</title>
		<link>http://ravith.wordpress.com/2007/04/27/hibernate-xdoclet-many-to-one-generates-dulicate-uniquetrue-solved/</link>
		<comments>http://ravith.wordpress.com/2007/04/27/hibernate-xdoclet-many-to-one-generates-dulicate-uniquetrue-solved/#comments</comments>
		<pubDate>Fri, 27 Apr 2007 02:32:38 +0000</pubDate>
		<dc:creator>ravith</dc:creator>
				<category><![CDATA[JAVA]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://ravith.wordpress.com/2007/04/27/hibernate-xdoclet-many-to-one-generates-dulicate-uniquetrue-solved/</guid>
		<description><![CDATA[While working on my degree project i came across a situation where i needed a one-to-one relationship. Among the two methods to implement such relationship in hibernate, i choose to use the foreign-key method other than the shared primary key method.
I was unable to do a schemaExport because of xdoclet generating two unique=&#8221;true&#8221; attributes in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=46&subd=ravith&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>While working on my degree project i came across a situation where i needed a one-to-one relationship. Among the two methods to implement such relationship in hibernate, i choose to use the foreign-key method other than the shared primary key method.</p>
<p>I was unable to do a schemaExport because of xdoclet generating two unique=&#8221;true&#8221; attributes in the .hbm file.</p>
<p>Google found me this link <a href="http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1665" target="_blank">http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1665</a> where  it is reported as a bug which is open at the time of writing.</p>
<p>After playing around with it for some time i figured out that by adding a @hibernate.column would stop Xdoclet generating two unique=&#8221;true&#8221; attributes which in turn is converted to the mapping xml file which becomes invalid according to the hibernate-3.0.dtd.</p>
<p>Initial xdoclet tag was.</p>
<p>@hibernate.many-to-one<br />
class=&#8221;someClass&#8221;<br />
unique=&#8221;true&#8221;</p>
<p>I was able to get rid of this error by adding a column and setting the unique-key.<br />
@hibernate.many-to-one<br />
class=&#8221;someClass&#8221;<br />
unique=&#8221;true&#8221;<br />
foreign-key=&#8221;myFK&#8221;<br />
@hibernate.column<br />
name=&#8221;fkColumn&#8221;<br />
unique-key=&#8221;myFK&#8221;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ravith.wordpress.com/46/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ravith.wordpress.com/46/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ravith.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ravith.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ravith.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ravith.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ravith.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ravith.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ravith.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ravith.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ravith.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ravith.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ravith.wordpress.com&blog=190536&post=46&subd=ravith&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ravith.wordpress.com/2007/04/27/hibernate-xdoclet-many-to-one-generates-dulicate-uniquetrue-solved/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f652e1b7f68176eaa47c896c8ce66d0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">botta</media:title>
		</media:content>
	</item>
	</channel>
</rss>