<?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>A Java Droplet</title>
	<atom:link href="http://dijomon.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dijomon.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 08 Sep 2010 11:03:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dijomon.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/edf4643f2471ffbca2ff88874ce5d2cd?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>A Java Droplet</title>
		<link>http://dijomon.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dijomon.wordpress.com/osd.xml" title="A Java Droplet" />
	<atom:link rel='hub' href='http://dijomon.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Hadoop in amazon cloud</title>
		<link>http://dijomon.wordpress.com/2010/09/08/hadoop-in-amazon-cloud/</link>
		<comments>http://dijomon.wordpress.com/2010/09/08/hadoop-in-amazon-cloud/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 08:05:12 +0000</pubDate>
		<dc:creator>Dijomon</dc:creator>
				<category><![CDATA[computing]]></category>
		<category><![CDATA[Parallel Processing]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[apace map reduce]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[distributed computing]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[hadoop]]></category>
		<category><![CDATA[map reduce]]></category>
		<category><![CDATA[parallel processing]]></category>

		<guid isPermaLink="false">http://dijomon.wordpress.com/?p=21</guid>
		<description><![CDATA[Hadoop is Apache&#8217;s open-source software for reliable, scalable, distributed computing. Hadoop includes Apache&#8217;s map reduce frame work to do distributed computing. Please see Apache hadoop Why amazon EC2(Elastic Cloud Computing)? Amazon cloud  provides hardware and software resources at low cost. The charge is based on usage. In compared to its real software and hardware cost, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dijomon.wordpress.com&amp;blog=11961150&amp;post=21&amp;subd=dijomon&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hadoop is Apache&#8217;s open-source software for reliable, scalable, distributed computing. Hadoop includes Apache&#8217;s map reduce frame work to do distributed computing.</p>
<p>Please see <span style="color:#008000;"><a href="http://hadoop.apache.org/">Apache hadoop</a></span></p>
<p><strong><span style="text-decoration:underline;">Why amazon EC2(Elastic Cloud Computing)?</span></strong></p>
<p>Amazon cloud  provides hardware and software resources at low cost. The charge is based on usage. In compared to its real software and hardware cost, this is marginally low.</p>
<p>In amazon there are software instance available in ready to use mode. The only thing we have to do is create an account in amazon cloud. Select the instance that we are going to use. Start the instance. The payment is based on how many instances we are using.</p>
<p><strong><span style="text-decoration:underline;">Why Hadoop</span></strong></p>
<p>Hadoop helps to configure multiple processing nodes as a single entity. And we can share a complex problem over this frame work.  So this integrates number of processing nodes together.</p>
<p>In Hadoop the main processing node is called name node and all other slave nodes are called data node. Each name node and data node have their own storage area for storing processing data.</p>
<p>Hadoop will work on single node cluster mode and multi-node cluster. All is configured in hadoop configuration files located in hadoop&#8217;s configuration folder.</p>
<p><strong><span style="text-decoration:underline;">How to use hadoop in EC2</span></strong></p>
<p>Follow the following steps</p>
<ol>
<li>Register an account in Amazon EC2</li>
<li>Select a hadoop installed EC2 Image</li>
<li>Make five instances from the selected Image.</li>
<li>You can use putty to connect to all these instances.</li>
<li>By using some FTP client(WinSCP) you can transfer files to these instances</li>
</ol>
<p>Here is the one best available tutorial to configure hadoop instances in Multi-Node cluster</p>
<p><span style="color:#008000;"><strong><a href="http://www.michael-noll.com/wiki/Running_Hadoop_On_Ubuntu_Linux_%28Multi-Node_Cluster%29">Multi-Node_Cluster Configuration</a></strong></span></p>
<p><strong><span style="text-decoration:underline;">Some important things in hadoop configuration</span></strong></p>
<ul>
<li> In Multi-Node configuration once the configuration is done we have to start only the Name node and all other data node(slave) will start automatically.</li>
<li>Before configuring hadoop make sure that all the machines are accessible each other</li>
<li>If not create and distribute SSH keys to access each other.</li>
<li>Configure <strong>dfs.data.dir</strong> and <strong>dfs.name.dir</strong> location in all the nodes(name and data nodes). data directory is different for different nodes. All the slaves uses their own data directory.</li>
</ul>
<p>In configuration file core-site.xml,  property name<strong> fs.default.name</strong> is the file system of name(master) node. This is same as for slaves (data node)also.</p>
<p><strong><span style="text-decoration:underline;">Map Reduce Frame work over hadoop</span></strong></p>
<p>This frame work you can download from Apache&#8217;s site and install in all your hadoop instances. This contains some sample applications to perform the map reduce task. By using map reduce libraries you can write your own map reduce programs.</p>
<p>For more details please see<span style="color:#008000;"><a href="http://hadoop.apache.org/common/docs/r0.20.2/mapred_tutorial.html"> Map Reduce Tutorial</a></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dijomon.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dijomon.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dijomon.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dijomon.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dijomon.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dijomon.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dijomon.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dijomon.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dijomon.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dijomon.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dijomon.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dijomon.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dijomon.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dijomon.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dijomon.wordpress.com&amp;blog=11961150&amp;post=21&amp;subd=dijomon&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dijomon.wordpress.com/2010/09/08/hadoop-in-amazon-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d3f37c22131ed47efba8c1fde339dc63?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dijomonmd</media:title>
		</media:content>
	</item>
		<item>
		<title>Vertical Text Using Java2D</title>
		<link>http://dijomon.wordpress.com/2010/03/01/vertical-text-using-java2d/</link>
		<comments>http://dijomon.wordpress.com/2010/03/01/vertical-text-using-java2d/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 13:18:34 +0000</pubDate>
		<dc:creator>Dijomon</dc:creator>
				<category><![CDATA[Java2D]]></category>
		<category><![CDATA[transformation]]></category>
		<category><![CDATA[vertical text]]></category>

		<guid isPermaLink="false">http://dijomon.wordpress.com/?p=16</guid>
		<description><![CDATA[Drawing a vertically TEXT in java2D is simple but beginners may experienced some problems with transformation.  So this is for explaining how to do transformations in Java2D. below noted some questions and its answers How to write TEXT vertically? By using rotation transformation How to use rotation transformation? a) Set the translation point, means the rotation is happening based [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dijomon.wordpress.com&amp;blog=11961150&amp;post=16&amp;subd=dijomon&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Drawing a vertically TEXT in java2D is simple but beginners may experienced some problems with transformation.  So this is for explaining how to do transformations in Java2D.</p>
<p>below noted some questions and its answers</p>
<p><strong>How to write TEXT vertically?</strong></p>
<p>By using rotation transformation</p>
<p><strong>How to use rotation transformation?</strong></p>
<p>a) Set the translation point, means the rotation is happening based on this point.</p>
<p>b) Rotate  <strong>- PI/2 </strong>(minus PI/2, it is 3.14 in Math api)</p>
<p>c) Write the TEXT String.</p>
<p><strong>After vertical text drawing, Why my existing graphical content is changed or new graphical content is not showing properly? (It is just a fundamental graphical drawing technique only)</strong></p>
<p>After translation and rotation we have to do the reverse process for incorporating the new graphical changes.  The whole process looks like,</p>
<p>a) translate to x,y<br />
b) rotate to -Math.PI/2<br />
c) draw the TEXT string<br />
d) do reverse rotate, rotate to Math.PI/2<br />
e) do a reverse translation, translate to -x,-y</p>
<p><strong>Example code</strong></p>
<p>g2d.translate(x, y);<br />
g2d.rotate(-Math.PI/2);<br />
g2d.drawString(text, 0,0);<br />
g2d.rotate(Math.PI/2);<br />
g2d.translate(-x, -y);</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dijomon.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dijomon.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dijomon.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dijomon.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dijomon.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dijomon.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dijomon.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dijomon.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dijomon.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dijomon.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dijomon.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dijomon.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dijomon.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dijomon.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dijomon.wordpress.com&amp;blog=11961150&amp;post=16&amp;subd=dijomon&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dijomon.wordpress.com/2010/03/01/vertical-text-using-java2d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d3f37c22131ed47efba8c1fde339dc63?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dijomonmd</media:title>
		</media:content>
	</item>
		<item>
		<title>How to do complex graphics in GWT</title>
		<link>http://dijomon.wordpress.com/2010/03/01/how-to-do-complex-graphics-in-gwt/</link>
		<comments>http://dijomon.wordpress.com/2010/03/01/how-to-do-complex-graphics-in-gwt/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 11:58:28 +0000</pubDate>
		<dc:creator>Dijomon</dc:creator>
				<category><![CDATA[GWT]]></category>
		<category><![CDATA[Java2D]]></category>
		<category><![CDATA[GWT graphics]]></category>

		<guid isPermaLink="false">http://dijomon.wordpress.com/?p=12</guid>
		<description><![CDATA[In GWT (GWT Canvas) it is difficult do complex graphical operation like translation, rotation, scaling, text drawing etc. One solution for this is,                       a) Write a servlet  and use java2D for drawing.                       b) This servlet returns graphics as any image file format.                       c) Create a widget that is capable of displaying image [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dijomon.wordpress.com&amp;blog=11961150&amp;post=12&amp;subd=dijomon&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In GWT (GWT Canvas) it is difficult do complex graphical operation like translation, rotation, scaling, text drawing etc.</p>
<p>One solution for this is,</p>
<p>                      a) Write a servlet  and use java2D for drawing.</p>
<p>                      b) This servlet returns graphics as any image file format.</p>
<p>                      c) Create a widget that is capable of displaying image from this servlet (You can use GWTCanvas for displaying image)</p>
<p>                       d) Invoke the servlet from the widget.</p>
<p><strong> </strong></p>
<p><strong>Servlet Sample code:</strong></p>
<p> BufferedImage bufferedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);<br />
 Graphics2D g2d = bufferedImage.createGraphics();<br />
 g2d.setColor(Color.black);<br />
 g2d.fillRect(0, 0, width, height);</p>
<p> response.setContentType(&#8220;image/png&#8221;);<br />
 OutputStream os = response.getOutputStream();<br />
 ImageIO.write(bufferedImage, &#8220;png&#8221;, os);<br />
 os.close();</p>
<p><strong>GWT Sample Code:</strong></p>
<p>ImageLoader.loadImages({GWT.getModuleBaseURL() + &#8220;/ServletName?rand=&#8221;+Random.nextInt(55555)}, new ImageLoader.CallBack() {<br />
   public void onImagesLoaded(ImageElement[] imageElements) {<br />
    ImageElement img = imageElements[0];<br />
    canvas.setWidth(img.getWidth()+&#8221;px&#8221;);<br />
    canvas.setHeight(img.getHeight()+&#8221;px&#8221;);<br />
    canvas.drawImage(img, 0, 0);<br />
   }});</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dijomon.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dijomon.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dijomon.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dijomon.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dijomon.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dijomon.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dijomon.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dijomon.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dijomon.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dijomon.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dijomon.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dijomon.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dijomon.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dijomon.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dijomon.wordpress.com&amp;blog=11961150&amp;post=12&amp;subd=dijomon&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dijomon.wordpress.com/2010/03/01/how-to-do-complex-graphics-in-gwt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d3f37c22131ed47efba8c1fde339dc63?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dijomonmd</media:title>
		</media:content>
	</item>
		<item>
		<title>GWT Timeline Widget (GWT Historical data display)</title>
		<link>http://dijomon.wordpress.com/2010/03/01/gwt-timeline-widget-gwt-historical-data-display/</link>
		<comments>http://dijomon.wordpress.com/2010/03/01/gwt-timeline-widget-gwt-historical-data-display/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 11:31:56 +0000</pubDate>
		<dc:creator>Dijomon</dc:creator>
				<category><![CDATA[GWT]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[timeline]]></category>

		<guid isPermaLink="false">http://dijomon.wordpress.com/?p=3</guid>
		<description><![CDATA[In GWT&#160;development, &#160;sometimes we faced situations like&#160; display of historical data in an interactive way.&#160;Suppose we want to display past one year data or&#160;want to display major incidents happened and so on. GWTCanvas is not sufficient or in other way&#160;we have to&#160;do lot of work around&#160;for supporting our requirements. One third party widget available&#160;for displaying [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dijomon.wordpress.com&amp;blog=11961150&amp;post=3&amp;subd=dijomon&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In GWT&nbsp;development, &nbsp;sometimes we faced situations like&nbsp; display of historical data in an interactive way.&nbsp;Suppose we want to display past one year data or&nbsp;want to display major incidents happened and so on. GWTCanvas is not sufficient or in other way&nbsp;we have to&nbsp;do lot of work around&nbsp;for supporting our requirements.</p>
<p>One third party widget available&nbsp;for displaying timeline information is SIMILE&#8217;s Timeline widget. It is available&nbsp;at &nbsp;<A href="http://code.google.com/p/gwtsimiletimeline/">http://code.google.com/p/gwtsimiletimeline/</A>. It is easy to incooporate with&nbsp;our applications and also possible to write our own renders for data display. Those features are impressive.&nbsp;&nbsp;The implemenation details are neatly explained in above link.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dijomon.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dijomon.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dijomon.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dijomon.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dijomon.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dijomon.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dijomon.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dijomon.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dijomon.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dijomon.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dijomon.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dijomon.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dijomon.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dijomon.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dijomon.wordpress.com&amp;blog=11961150&amp;post=3&amp;subd=dijomon&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dijomon.wordpress.com/2010/03/01/gwt-timeline-widget-gwt-historical-data-display/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d3f37c22131ed47efba8c1fde339dc63?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dijomonmd</media:title>
		</media:content>
	</item>
	</channel>
</rss>
