<?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>Lost In Transition</title>
	<atom:link href="http://jaydeepm.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jaydeepm.wordpress.com</link>
	<description></description>
	<lastBuildDate>Thu, 05 Jan 2012 12:42:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jaydeepm.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Lost In Transition</title>
		<link>http://jaydeepm.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jaydeepm.wordpress.com/osd.xml" title="Lost In Transition" />
	<atom:link rel='hub' href='http://jaydeepm.wordpress.com/?pushpress=hub'/>
		<item>
		<title>GWT Designer is now free! Yippee!</title>
		<link>http://jaydeepm.wordpress.com/2010/09/26/gwt-designer-is-now-free-yippee/</link>
		<comments>http://jaydeepm.wordpress.com/2010/09/26/gwt-designer-is-now-free-yippee/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 16:50:36 +0000</pubDate>
		<dc:creator>jaydeepm</dc:creator>
				<category><![CDATA[GWT]]></category>
		<category><![CDATA[GWT-Ext]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[GWT Designer]]></category>
		<category><![CDATA[Instantiations]]></category>

		<guid isPermaLink="false">http://jaydeepm.wordpress.com/?p=241</guid>
		<description><![CDATA[GWT Designer is a powerful UI development tool for GWT. It is based on the Eclipse framework. Initially a paid tool, it has been re-launched as a free product after Google's acquisition's of Instantiations. Read further for details... <a href="http://jaydeepm.wordpress.com/2010/09/26/gwt-designer-is-now-free-yippee/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=241&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is great news for the GWT developer community. In August, Google acquired Instantiations &#8211; the company which developed GWT Designer. All the products of Instantiations have now been re-launched as free tools by Google. </p>
<p>For more info on GWT Designer, check out the below links:</p>
<p><a href="http://code.google.com/webtoolkit/tools/gwtdesigner/index.html">http://code.google.com/webtoolkit/tools/gwtdesigner/index.html</a></p>
<p><a href="http://giantflyingsaucer.com/blog/?p=1593">http://giantflyingsaucer.com/blog/?p=1593</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jaydeepm.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jaydeepm.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jaydeepm.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jaydeepm.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jaydeepm.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jaydeepm.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jaydeepm.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jaydeepm.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jaydeepm.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jaydeepm.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jaydeepm.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jaydeepm.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jaydeepm.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jaydeepm.wordpress.com/241/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=241&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jaydeepm.wordpress.com/2010/09/26/gwt-designer-is-now-free-yippee/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>18.520469 73.856621</georss:point>
		<geo:lat>18.520469</geo:lat>
		<geo:long>73.856621</geo:long>
		<media:content url="http://1.gravatar.com/avatar/1236a341c413d29cbe61e722bde4ca44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jaydeepm</media:title>
		</media:content>
	</item>
		<item>
		<title>Apache POI and Open Office document formats</title>
		<link>http://jaydeepm.wordpress.com/2010/09/26/apache-poi-and-open-office-document-formats/</link>
		<comments>http://jaydeepm.wordpress.com/2010/09/26/apache-poi-and-open-office-document-formats/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 16:39:35 +0000</pubDate>
		<dc:creator>jaydeepm</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[.xlsx]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[open office]]></category>
		<category><![CDATA[openoffice]]></category>
		<category><![CDATA[openoffice.org]]></category>
		<category><![CDATA[poi]]></category>
		<category><![CDATA[reading excel documents in java]]></category>

		<guid isPermaLink="false">http://jaydeepm.wordpress.com/?p=198</guid>
		<description><![CDATA[Apache POI provides a very simple yet powerful API for creating/modifying/reading Excel documents. Prior to the 3.6 release, POI was able read/write Excel documents only in Microsoft's OLE Compound Document format. 3.6 onwards, POI has included the support for Microsoft's OOXML (Open Office.org) standard for creating and reading Excel documents. Read on to figure out how seamlessly it integrates with Open Office documents. <a href="http://jaydeepm.wordpress.com/2010/09/26/apache-poi-and-open-office-document-formats/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=198&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Apache POI from version 3.6 onwards has support for SpreadSheetML (Microsoft&#8217;s Open Office XML standard). With SpreadSheetML you can generate Excel files as XML. The XML file needs to be compliant with the OOXML schema. The file extension for &#8220;.xlsx&#8221;.</p>
<p>To create a Excel document using OOXML use the command:</p>
<p><pre class="brush: java;">
Workbook wb = new XSSFWorkbook();
</pre></p>
<p>To create in binary (OLE) format, use the below constructor for creating the workbook:</p>
<p><pre class="brush: java;">
Workbook wb = new HSSFWorkbook();
</pre></p>
<p>That&#8217;s all! All further processing is the same for both XSSF and HSSF workbook formats.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jaydeepm.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jaydeepm.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jaydeepm.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jaydeepm.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jaydeepm.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jaydeepm.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jaydeepm.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jaydeepm.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jaydeepm.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jaydeepm.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jaydeepm.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jaydeepm.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jaydeepm.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jaydeepm.wordpress.com/198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=198&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jaydeepm.wordpress.com/2010/09/26/apache-poi-and-open-office-document-formats/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<georss:point>18.520469 73.856621</georss:point>
		<geo:lat>18.520469</geo:lat>
		<geo:long>73.856621</geo:long>
		<media:content url="http://1.gravatar.com/avatar/1236a341c413d29cbe61e722bde4ca44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jaydeepm</media:title>
		</media:content>
	</item>
		<item>
		<title>If&#8230;</title>
		<link>http://jaydeepm.wordpress.com/2010/04/09/if/</link>
		<comments>http://jaydeepm.wordpress.com/2010/04/09/if/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 09:54:12 +0000</pubDate>
		<dc:creator>jaydeepm</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://jaydeepm.wordpress.com/?p=211</guid>
		<description><![CDATA[If you can keep your head when all about you Are losing theirs and blaming it on you; If you can trust yourself when all men doubt you, But make allowance for their doubting too; If you can wait and &#8230; <a href="http://jaydeepm.wordpress.com/2010/04/09/if/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=211&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you can keep your head when all about you<br />
Are losing theirs and blaming it on you;<br />
If you can trust yourself when all men doubt you,<br />
But make allowance for their doubting too;<br />
If you can wait and not be tired by waiting,<br />
Or, being lied about, don&#8217;t deal in lies,<br />
Or, being hated, don&#8217;t give way to hating,<br />
And yet don&#8217;t look too good, nor talk too wise;</p>
<p>If you can dream &#8211; and not make dreams your master;<br />
If you can think &#8211; and not make thoughts your aim;<br />
If you can meet with triumph and disaster<br />
And treat those two imposters just the same;<br />
If you can bear to hear the truth you&#8217;ve spoken<br />
Twisted by knaves to make a trap for fools,<br />
Or watch the things you gave your life to broken,<br />
And stoop and build &#8216;em up with wornout tools;</p>
<p>If you can make one heap of all your winnings<br />
And risk it on one turn of pitch-and-toss,<br />
And lose, and start again at your beginnings<br />
And never breath a word about your loss;<br />
If you can force your heart and nerve and sinew<br />
To serve your turn long after they are gone,<br />
And so hold on when there is nothing in you<br />
Except the Will which says to them: &#8220;Hold on&#8221;;</p>
<p>If you can talk with crowds and keep your virtue,<br />
Or walk with kings &#8211; nor lose the common touch;<br />
If neither foes nor loving friends can hurt you;<br />
If all men count with you, but none too much;<br />
If you can fill the unforgiving minute<br />
With sixty seconds&#8217; worth of distance run -<br />
Yours is the Earth and everything that&#8217;s in it,<br />
And &#8211; which is more &#8211; you&#8217;ll be a Man my son!</p>
<p>~Rudyard Kipling</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jaydeepm.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jaydeepm.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jaydeepm.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jaydeepm.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jaydeepm.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jaydeepm.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jaydeepm.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jaydeepm.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jaydeepm.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jaydeepm.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jaydeepm.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jaydeepm.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jaydeepm.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jaydeepm.wordpress.com/211/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=211&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jaydeepm.wordpress.com/2010/04/09/if/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>18.520469 73.856621</georss:point>
		<geo:lat>18.520469</geo:lat>
		<geo:long>73.856621</geo:long>
		<media:content url="http://1.gravatar.com/avatar/1236a341c413d29cbe61e722bde4ca44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jaydeepm</media:title>
		</media:content>
	</item>
		<item>
		<title>Thought provoking&#8230;</title>
		<link>http://jaydeepm.wordpress.com/2010/02/01/thought-provoking/</link>
		<comments>http://jaydeepm.wordpress.com/2010/02/01/thought-provoking/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 09:02:20 +0000</pubDate>
		<dc:creator>jaydeepm</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Nostalgia]]></category>

		<guid isPermaLink="false">http://jaydeepm.wordpress.com/?p=195</guid>
		<description><![CDATA[A thought provoking mail that I recently received... <a href="http://jaydeepm.wordpress.com/2010/02/01/thought-provoking/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=195&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A mail(fwd) that I recently received&#8230;</p>
<p>I wish to go back to the time,<br />
when getting high, meant on a swing.<br />
When drinking meant Bournvita.<br />
When dad was the only hero.<br />
When love was mummy’s hug.<br />
When dad&#8217;s shoulder was the highest place on earth.<br />
When your worst enemies were your siblings.<br />
When the only thing that could hurt were wounded knees.<br />
When the only things broken were toys and<br />
When good byes meant only till tomorrow&#8230;&#8230;<br />
Now we realize, life has changed so much!!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jaydeepm.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jaydeepm.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jaydeepm.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jaydeepm.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jaydeepm.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jaydeepm.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jaydeepm.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jaydeepm.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jaydeepm.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jaydeepm.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jaydeepm.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jaydeepm.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jaydeepm.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jaydeepm.wordpress.com/195/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=195&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jaydeepm.wordpress.com/2010/02/01/thought-provoking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1236a341c413d29cbe61e722bde4ca44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jaydeepm</media:title>
		</media:content>
	</item>
		<item>
		<title>Go, Kiss the World</title>
		<link>http://jaydeepm.wordpress.com/2009/11/25/go-kiss-the-world/</link>
		<comments>http://jaydeepm.wordpress.com/2009/11/25/go-kiss-the-world/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 10:43:03 +0000</pubDate>
		<dc:creator>jaydeepm</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://jaydeepm.wordpress.com/?p=191</guid>
		<description><![CDATA[Welcome Address by Subroto Bagchi, Chief Operating Officer, MindTree Consulting India to the Class of 2006 on July 2, 2004 at IIM Bangalore on defining success. <a href="http://jaydeepm.wordpress.com/2009/11/25/go-kiss-the-world/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=191&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Reproduced below, is an amazing speech by Subroto Bagchi, COO, MindTree Consulting India on the guiding principles of his life. Really inspiring and very touching. A tad lengthy, but worth the read. </p>
<p>I delivered this speech to the Class of 2006 at the IIM, Bangalore on defining success. This was the first time I shared the guiding principles of my life with young professionals.</p>
<p>I was the last child of a small-time government servant, in a family of five brothers. My earliest memory of my father is as that of a District Employment Officer in Koraput, Orissa. It was and remains as back of beyond as you can imagine. There was no electricity; no primary school nearby and water did not flow out of a tap. As a result, I did not go to school until the age of eight; I was home-schooled. My father used to get transferred every year. The family belongings fit into the back of a jeep &#8211; so the family moved from place to place and, without any trouble, my Mother would set up an establishment and get us going. Raised by a widow who had come as a refugee from the then East Bengal, she was a matriculate when she married my Father. My parents set the foundation of my life and the value system which makes me what I am today and largely defines what success means to me today.</p>
<p>As District Employment Officer, my father was given a jeep by the government. There was no garage in the Office, so the jeep was parked in our house. My father refused to use it to commute to the office. He told us that the jeep is an expensive resource given by the government &#8211; he reiterated to us that it was not &#8216;his jeep&#8217; but the government&#8217;s jeep. Insisting that he would use it only to tour the interiors, he would walk to his office on normal days. He also made sure that we never sat in the government jeep &#8211; we could sit in it only when it was stationary. That was our early childhood lesson in governance &#8211; a lesson that corporate managers learn the hard way, some never do.</p>
<p>The driver of the jeep was treated with respect due to any other member of my Father&#8217;s office. As small children, we were taught not to call him by his name. We had to use the suffix &#8216;dada&#8217; whenever we were to refer to him in public or private. When I grew up to own a car and a driver by the name of Raju was appointed &#8211; I repeated the lesson to my two small daughters. They have, as a result, grown up to call Raju, &#8216;Raju Uncle&#8217; &#8211; very different from many of their friends who refer to their family drivers as &#8216;my driver&#8217;. When I hear that term from a school- or college-going person, I cringe. To me, the lesson was significant &#8211; you treat small people with more respect than how you treat big people. It is more important to respect your subordinates than your superiors.</p>
<p>Our day used to start with the family huddling around my Mother&#8217;s chulha &#8211; an earthen fire place she would build at each place of posting where she would cook for the family. There was no gas, nor electrical stoves. The morning routine started with tea. As the brew was served, Father would ask us to read aloud the editorial page of The Statesman&#8217;s &#8216;muffosil&#8217; edition &#8211; delivered one day late. We did not understand much of what we were reading. But the ritual was meant for us to know that the world was larger than Koraput district and the English I speak today, despite having studied in an Oriya medium school, has to do with that routine. After reading the newspaper aloud, we were told to fold it neatly. Father taught us a simple lesson. He used to say, &#8220;You should leave your newspaper and your toilet, the way you expect to find it&#8221;. That lesson was about showing consideration to others. Business begins and ends with that simple precept.</p>
<p>Being small children, we were always enamored with advertisements in the newspaper for transistor radios &#8211; we did not have one. We saw other people having radios in their homes and each time there was an advertisement of Philips, Murphy or Bush radios, we would ask Father when we could get one. Each time, my Father would reply that we did not need one because he already had five radios &#8211; alluding to his five sons. We also did not have a house of our own and would occasionally ask Father as to when, like others, we would live in our own house. He would give a similar reply, &#8220;We do not need a house of our own. I already own five houses&#8221;. His replies did not gladden our hearts in that instant. Nonetheless, we learnt that it is important not to measure personal success and sense of well being through material possessions.</p>
<p>Government houses seldom came with fences. Mother and I collected twigs and built a small fence. After lunch, my Mother would never sleep. She would take her kitchen utensils and with those she and I would dig the rocky, white ant infested surrounding. We planted flowering bushes. The white ants destroyed them. My mother brought ash from her chulha and mixed it in the earth and we planted the seedlings all over again. This time, they bloomed. At that time, my father&#8217;s transfer order came. A few neighbors told my mother why she was taking so much pain to beautify a government house, why she was planting seeds that would only benefit the next occupant. My mother replied that it did not matter to her that she would not see the flowers in full bloom. She said, &#8220;I have to create a bloom in a desert and whenever I am given a new place, I must leave it more beautiful than what I had inherited&#8221;. That was my first lesson in success. It is not about what you create for yourself, it is what you leave behind that defines success.<br />
My mother began developing a cataract in her eyes when I was very small. At that time, the eldest among my brothers got a teaching job at the University in Bhubaneswar and had to prepare for the civil services examination. So, it was decided that my Mother would move to cook for him and, as her appendage, I had to move too. For the first time in my life, I saw electricity in homes and water coming out of a tap. It was around 1965 and the country was going to war with Pakistan. My mother was having problems reading and in any case, being Bengali, she did not know the Oriya script. So, in addition to my daily chores, my job was to read her the local newspaper &#8211; end to end. That created in me a sense of connectedness with a larger world. I began taking interest in many different things. While reading out news about the war, I felt that I was fighting the war myself. She and I discussed the daily news and built a bond with the larger universe. In it, we became part of a larger reality. Till date, I measure my success in terms of that sense of larger connectedness.</p>
<p>Meanwhile, the war raged and India was fighting on both fronts. Lal Bahadur Shastri, the then Prime Minster, coined the term &#8220;Jai Jawan, Jai Kishan&#8221; and galvanized the nation in to patriotic fervor. Other than reading out the newspaper to my mother, I had no clue about how I could be part of the action. So, after reading her the newspaper, every day I would land up near the University&#8217;s water tank, which served the community. I would spend hours under it, imagining that there could be spies who would come to poison the water and I had to watch for them. I would daydream about catching one and how the next day, I would be featured in the newspaper. Unfortunately for me, the spies at war ignored the sleepy town of Bhubaneswar and I never got a chance to catch one in action. Yet, that act unlocked my imagination. Imagination is everything. If we can imagine a future, we can create it, if we can create that future, others will live in it. That is the essence of success.</p>
<p>Over the next few years, my mother&#8217;s eyesight dimmed but in me she created a larger vision, a vision with which I continue to see the world and, I sense, through my eyes, she was seeing too. As the next few years unfolded, her vision deteriorated and she was operated for cataract. I remember when she returned after her operation and she saw my face clearly for the first time, she was astonished. She said, &#8220;Oh my God, I did not know you were so fair&#8221;. I remain mighty pleased with that adulation even till date. Within weeks of getting her sight back, she developed a corneal ulcer and, overnight, became blind in both eyes.</p>
<p>That was 1969. She died in 2002. In all those 32 years of living with blindness, she never complained about her fate even once. Curious to know what she saw with blind eyes, I asked her once if she sees darkness. She replied, &#8220;No, I do not see darkness. I only see light even with my eyes closed&#8221;. Until she was eighty years of age, she did her morning yoga every day, swept her own room and washed her own clothes. To me, success is about the sense of independence; it is about not seeing the world but seeing the light.<br />
Over the many intervening years, I grew up, studied, joined the industry and began to carve my life&#8217;s own journey. I began my life as a clerk in a government office, went on to become a Management Trainee with the DCM group and eventually found my life&#8217;s calling with the IT industry when fourth generation computers came to India in 1981. Life took me places &#8211; I worked with outstanding people, challenging assignments and traveled all over the world. In 1992, while I was posted in the US, I learnt that my father, living a retired life with my eldest brother, had suffered a third degree burn injury and was admitted in the Safderjung Hospital in Delhi. I flew back to attend to him &#8211; he remained for a few days in critical stage, bandaged from neck to toe. The Safderjung Hospital is a cockroach infested, dirty, inhuman place. The overworked, under-resourced sisters in the burn ward are both victims and perpetrators of dehumanized life at its worst. One morning, while attending to my Father, I realized that the blood bottle was empty and fearing that air would go into his vein, I asked the attending nurse to change it. She bluntly told me to do it myself. In that horrible theater of death, I was in pain and frustration and anger. Finally when she relented and came, my Father opened his eyes and murmured to her, &#8220;Why have you not gone home yet?&#8221; Here was a man on his deathbed but more concerned about the overworked nurse than his own state. I was stunned at his stoic self. There I learnt that there is no limit to how concerned you can be for another human being and what is the limit of inclusion that you can create. My father died the next day.</p>
<p>He was a man whose success was defined by his principles, his frugality, his universalism and his sense of inclusion. Above all, he taught me that success is your ability to rise above your discomfort, whatever may be your current state. You can, if you want, raise your consciousness above your immediate surroundings. Success is not about building material comforts &#8211; the transistor that he never could buy or the house that he never owned. His success was about the legacy he left, the mimetic continuity of his ideals that grew beyond the smallness of an ill-paid, unrecognized government servant&#8217;s world.</p>
<p>My father was a fervent believer in the British Raj. He sincerely doubted the capability of the post-independence Indian political parties to govern the country. To him, the lowering of the Union Jack was a sad event. My Mother was the exact opposite. When Subhash Bose quit the Indian National Congress and came to Dacca, my mother, then a schoolgirl, garlanded him. She learnt to spin khadi and joined an underground movement that trained her in using daggers and swords. Consequently, our household saw diversity in the political outlook of the two. On major issues concerning the world, the Old Man and the Old Lady had differing opinions. In them, we learnt the power of disagreements, of dialogue and the essence of living with diversity in thinking. Success is not about the ability to create a definitive dogmatic end state; it is about the unfolding of thought processes, of dialogue and continuum.</p>
<p>Two years back, at the age of eighty-two, Mother had a paralytic stroke and was lying in a government hospital in Bhubaneswar. I flew down from the US where I was serving my second stint, to see her. I spent two weeks with her in the hospital as she remained in a paralytic state. She was neither getting better nor moving on. Eventually I had to return to work. While leaving her behind, I kissed her face. In that paralytic state and a garbled voice, she said, &#8220;Why are you kissing me, go kiss the world.&#8221; Her river was nearing its journey, at the confluence of life and death, this woman who came to India as a refugee, raised by a widowed Mother, no more educated than high school, married to an anonymous government servant whose last salary was Rupees Three Hundred, robbed of her eyesight by fate and crowned by adversity &#8211; was telling me to go and kiss the world!</p>
<p>Success to me is about Vision. It is the ability to rise above the immediacy of pain. It is about imagination. It is about sensitivity to small people. It is about building inclusion. It is about connectedness to a larger world existence. It is about personal tenacity. It is about giving back more to life than you take out of it. It is about creating extra-ordinary success with ordinary lives.</p>
<p>Thank you very much; I wish you good luck and Godspeed. Go, kiss the world.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jaydeepm.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jaydeepm.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jaydeepm.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jaydeepm.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jaydeepm.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jaydeepm.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jaydeepm.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jaydeepm.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jaydeepm.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jaydeepm.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jaydeepm.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jaydeepm.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jaydeepm.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jaydeepm.wordpress.com/191/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=191&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jaydeepm.wordpress.com/2009/11/25/go-kiss-the-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1236a341c413d29cbe61e722bde4ca44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jaydeepm</media:title>
		</media:content>
	</item>
		<item>
		<title>GWT Quick Tip: How to check whether a GWT application is running in Hosted Mode</title>
		<link>http://jaydeepm.wordpress.com/2009/11/06/gwt-quick-tip-how-to-check-whether-a-gwt-application-is-running-in-hosted-mode/</link>
		<comments>http://jaydeepm.wordpress.com/2009/11/06/gwt-quick-tip-how-to-check-whether-a-gwt-application-is-running-in-hosted-mode/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 10:45:13 +0000</pubDate>
		<dc:creator>jaydeepm</dc:creator>
				<category><![CDATA[GWT]]></category>
		<category><![CDATA[GWT-Ext]]></category>
		<category><![CDATA[Detect Hosted Mode]]></category>
		<category><![CDATA[GWT Hosted Mode]]></category>
		<category><![CDATA[Hosted Mode]]></category>

		<guid isPermaLink="false">http://jaydeepm.wordpress.com/?p=180</guid>
		<description><![CDATA[Sometimes, at runtime, you need to detect whether the application is running in Hosted Mode or not. E.g. you might decide to enable client side logging using GWT-Log only when the application is executing in Hosted Mode. The logging should &#8230; <a href="http://jaydeepm.wordpress.com/2009/11/06/gwt-quick-tip-how-to-check-whether-a-gwt-application-is-running-in-hosted-mode/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=180&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes, at runtime, you need to detect whether the application is running in Hosted Mode or not. E.g. you might decide to enable client side logging using GWT-Log only when the application is executing in Hosted Mode. The logging should be disabled once the application is deployed.</p>
<p>To check whether the application is executing in Hosted Mode, use the below API:</p>
<p><pre class="brush: java;">
boolean isExecutingInHostedMode = GWT.isScript();
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jaydeepm.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jaydeepm.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jaydeepm.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jaydeepm.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jaydeepm.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jaydeepm.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jaydeepm.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jaydeepm.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jaydeepm.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jaydeepm.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jaydeepm.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jaydeepm.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jaydeepm.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jaydeepm.wordpress.com/180/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=180&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jaydeepm.wordpress.com/2009/11/06/gwt-quick-tip-how-to-check-whether-a-gwt-application-is-running-in-hosted-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1236a341c413d29cbe61e722bde4ca44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jaydeepm</media:title>
		</media:content>
	</item>
		<item>
		<title>Java Design Patterns &#8211; A Short Writeup</title>
		<link>http://jaydeepm.wordpress.com/2009/09/22/java-design-patterns-a-short-writeup/</link>
		<comments>http://jaydeepm.wordpress.com/2009/09/22/java-design-patterns-a-short-writeup/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 18:55:02 +0000</pubDate>
		<dc:creator>jaydeepm</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Design Patterns]]></category>

		<guid isPermaLink="false">http://jaydeepm.wordpress.com/?p=171</guid>
		<description><![CDATA[A design pattern is a general, language-independent technique used to solve a class of related problems. A design pattern is a widely accepted solution to a recurring design problem. It is a guideline rather than a specific solution. An idiom, &#8230; <a href="http://jaydeepm.wordpress.com/2009/09/22/java-design-patterns-a-short-writeup/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=171&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A <strong>design pattern</strong> is a general, language-independent technique used to solve a class of related problems. A design pattern is a widely accepted solution to a recurring design problem. It is a guideline rather than a specific solution.</p>
<p>An <strong>idiom</strong>, by contrast, is a low-level pattern that is specific to a programming language. </p>
<p>There are three basic classification of patterns: Creational, Structural and Behavioural.</p>
<p><strong>Creational Patterns</strong><br />
Creational patterns provide/deal with different mechanisms for creation of objects. Creational patterns create the objects for you, rather than you having to instantiate them yourselves. This gives your program more flexibility in deciding which objects need to be created for a given case.</p>
<p><strong>Structural Patterns</strong><br />
Structural Patterns describe how to compose objects and classes to form structures. They are broadly classified as object patterns and class patterns. Class patterns describe relationships with the help of inheritance. Object patterns describe how objects can be composed to form larger structures.</p>
<p><strong>Behavioural Patterns</strong><br />
Behavioural patterns describe various means of communication between collaborating objects in the system. This ensures that the objects are loosely coupled thus avoiding hard-coding and dependencies. They also define how the flow is controlled in a complex application.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jaydeepm.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jaydeepm.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jaydeepm.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jaydeepm.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jaydeepm.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jaydeepm.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jaydeepm.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jaydeepm.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jaydeepm.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jaydeepm.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jaydeepm.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jaydeepm.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jaydeepm.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jaydeepm.wordpress.com/171/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=171&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jaydeepm.wordpress.com/2009/09/22/java-design-patterns-a-short-writeup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1236a341c413d29cbe61e722bde4ca44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jaydeepm</media:title>
		</media:content>
	</item>
		<item>
		<title>Number of Days Since 1900</title>
		<link>http://jaydeepm.wordpress.com/2009/09/21/number-of-days-since-1900/</link>
		<comments>http://jaydeepm.wordpress.com/2009/09/21/number-of-days-since-1900/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 14:02:53 +0000</pubDate>
		<dc:creator>jaydeepm</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[No of days since 1900]]></category>

		<guid isPermaLink="false">http://jaydeepm.wordpress.com/?p=167</guid>
		<description><![CDATA[Here is a simple Orace query to calculate the number of days since 1900. Thanks to Ari Kaplan for the query!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=167&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is a simple Orace query to calculate the number of days since 1900. </p>
<p><pre class="brush: sql;">
select to_char(sysdate,'J') - to_char(to_date('01/01/1900','DD/MM/YYYY'),'J') from dual;
</pre></p>
<p>Thanks to <a href="http://www.arikaplan.com/oracle/ari100199b.html">Ari Kaplan</a> for the query!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jaydeepm.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jaydeepm.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jaydeepm.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jaydeepm.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jaydeepm.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jaydeepm.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jaydeepm.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jaydeepm.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jaydeepm.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jaydeepm.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jaydeepm.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jaydeepm.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jaydeepm.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jaydeepm.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=167&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jaydeepm.wordpress.com/2009/09/21/number-of-days-since-1900/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1236a341c413d29cbe61e722bde4ca44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jaydeepm</media:title>
		</media:content>
	</item>
		<item>
		<title>Get the Last Day of The Month in Java</title>
		<link>http://jaydeepm.wordpress.com/2009/09/21/get-the-last-day-of-the-month-in-java/</link>
		<comments>http://jaydeepm.wordpress.com/2009/09/21/get-the-last-day-of-the-month-in-java/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 13:13:30 +0000</pubDate>
		<dc:creator>jaydeepm</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[getActualMaximum]]></category>
		<category><![CDATA[java.util.Calendar]]></category>
		<category><![CDATA[last day of month]]></category>

		<guid isPermaLink="false">http://jaydeepm.wordpress.com/?p=161</guid>
		<description><![CDATA[Use the getActualMaximum(int field) method of the Calendar class to retrieve the last day of the month. See the below code for usage details. The code retrieves the last date for Feb 2009 as an example. You can modify the &#8230; <a href="http://jaydeepm.wordpress.com/2009/09/21/get-the-last-day-of-the-month-in-java/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=161&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Use the <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Calendar.html#getActualMaximum(int)"><strong>getActualMaximum(int field)</strong></a> method of the <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Calendar.html">Calendar</a> class to retrieve the last day of the month. </p>
<p>See the below code for usage details. The code retrieves the last date for <em>Feb 2009</em> as an example. You can modify the code to accept any valid date. </p>
<p><pre class="brush: java;">
import java.util.Calendar;

public class GetLastDayOfMonth {
	public static void main(String[] args) {
		// Setup a Calendar instance.
		Calendar cal = Calendar.getInstance();
		cal.setLenient(false);
		// Set the year as 2009
		cal.set(Calendar.YEAR, 2009);
		// Set the month as February (can be set as 1 or Calendar.FEBRUARY)
		cal.set(Calendar.MONTH, 1);
		// Set the date as 1st - optional
		cal.set(Calendar.DATE, 1);
		System.out.println(&quot;Input date: &quot; + cal.getTime());
		int lastDateOfMonth = cal.getActualMaximum(Calendar.DATE);
		cal.set(Calendar.DATE, lastDateOfMonth);
		System.out.println(&quot;Output Date: &quot; + cal.getTime());
	}
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jaydeepm.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jaydeepm.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jaydeepm.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jaydeepm.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jaydeepm.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jaydeepm.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jaydeepm.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jaydeepm.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jaydeepm.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jaydeepm.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jaydeepm.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jaydeepm.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jaydeepm.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jaydeepm.wordpress.com/161/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=161&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jaydeepm.wordpress.com/2009/09/21/get-the-last-day-of-the-month-in-java/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1236a341c413d29cbe61e722bde4ca44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jaydeepm</media:title>
		</media:content>
	</item>
		<item>
		<title>URL Connection via Proxy (the Java 1.5 way)</title>
		<link>http://jaydeepm.wordpress.com/2009/08/08/url-connection-via-proxy-the-java-1-5-way/</link>
		<comments>http://jaydeepm.wordpress.com/2009/08/08/url-connection-via-proxy-the-java-1-5-way/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 11:57:58 +0000</pubDate>
		<dc:creator>jaydeepm</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Java 1.5]]></category>
		<category><![CDATA[java.net Enum Proxy.Type]]></category>
		<category><![CDATA[java.net.Proxy]]></category>
		<category><![CDATA[java.net.Proxy.NO_PROXY]]></category>
		<category><![CDATA[Proxy class]]></category>
		<category><![CDATA[URL Connection via proxy]]></category>

		<guid isPermaLink="false">http://jaydeepm.wordpress.com/?p=136</guid>
		<description><![CDATA[In enterprises/corporate environments, more often than not, connection to external servers/resources is via a proxy server. While developing applications for such environments, developers need to make sure that their code connects to external sites/resources via the proxy. In this post, &#8230; <a href="http://jaydeepm.wordpress.com/2009/08/08/url-connection-via-proxy-the-java-1-5-way/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=136&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In enterprises/corporate environments, more often than not, connection to external servers/resources is via a proxy server.  While developing applications for such environments, developers need to make sure that their code connects to external sites/resources via the proxy. </p>
<p>In this post, I restrict myself to the HTTP protocol. </p>
<p>The Java development platform provides multiple methods to make HTTP connections via a proxy server. However, prior to Java 1.5, there was just one way available: by <strong>setting System properties</strong>.</p>
<p>There are two steps involved:</p>
<p>1. Set the http.proxyHost, http.proxyPort, http.proxySet properties as follows:<br />
<pre class="brush: java;">
Properties props = System.getProperties();
props.put(&quot;http.proxyPort&quot;,&quot;8080&quot;); //proxy port
props.put(&quot;http.proxyHost&quot;,&quot;proxy.xyz.co.in&quot;); //the proxy server name or IP
props.put(&quot;http.proxySet&quot;, &quot;true&quot;);
</pre></p>
<p>2. Connect to the remote server. The properties set above would be automatically picked up by the JVM.<br />
<pre class="brush: java;">
URLConnection urlConn = null;
BufferedReader reader = null;
String response = &quot;&quot;;
String output = &quot;&quot;;
URL url = new URL(&quot;www.google.com&quot;);
urlConn = url.openConnection();
urlConn.connect();
reader = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
response = reader.readLine();
while (response!=null) {
	output+= response;
	response = reader.readLine();
}	
System.out.println(&quot;Output: &quot; + output);
</pre></p>
<p>For FTP, HTTPS and SOCKS the following system properties need to be set:<br />
<pre class="brush: java;">
ftp.proxHost
ftp.proxyPort
ftp.nonProxyHosts 

htttps.proxyHost
https.proxyPort 

socksProxyHost
socksProxyPort
</pre></p>
<p> Although, this approach is very simple, there are some obvious drawbacks.<br />
1. This is a all or none approach. Once the properties are set, till the time the properties are removed, all connections would happen via the same proxy server.<br />
2. The properties are set VM-wide. This might causing site effects to other parts of the application that might not need the use of the proxy server.<br />
3. If the corporate environment has the restriction that internal systems need to be accessed directly, whereas the external systems need to be accessed via the proxy, then this approach will fail. </p>
<p>With Java 1.5, the developer is provided with a more powerful and flexible approach via the <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/net/Proxy.html">Proxy</a> class. </p>
<p>To define a HTTP proxy using this class, the following code is required:<br />
<pre class="brush: java;">
String proxyHost = &quot;proxy.xyz.co.in&quot;; //replace with your proxy server name or IP
int proxyPort = 8080; //your proxy server port
SocketAddress addr = new InetSocketAddress(proxyHost, proxyPort);
Proxy httpProxy = new Proxy(Proxy.Type.HTTP, addr);
</pre></p>
<p>Now, we need to use the above defined proxy while opening a URL Connection. For this, the <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/net/URL.html">URL</a> class provides a new overloaded method <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/net/URL.html#openConnection(java.net.Proxy)">openConnection(Proxy proxy)</a> that accepts a Proxy instance.</p>
<p>Below is the code for the same:<br />
<pre class="brush: java;">
String proxyHost = &quot;proxy.xyz.co.in&quot;; //replace with your proxy server name or IP
int proxyPort = 8080; //your proxy server port
SocketAddress addr = new InetSocketAddress(proxyHost, proxyPort);
Proxy httpProxy = new Proxy(Proxy.Type.HTTP, addr);

URLConnection urlConn = null;
BufferedReader reader = null;
String response = &quot;&quot;;
String output = &quot;&quot;;
URL url = new URL(&quot;www.google.com&quot;);
//Pass the Proxy instance defined above, to the openConnection() method
urlConn = url.openConnection(httpProxy); 
urlConn.connect();
reader = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
response = reader.readLine();
while (response!=null) {
	output+= response;
	response = reader.readLine();
}	
System.out.println(&quot;Output: &quot; + output);
</pre></p>
<p>That&#8217;s all. No system-wide settings are required. </p>
<p>If, for a particular connection, you want to connect directly (and not go via the proxy) &#8211; this would be required for connecting to internal servers, then use the following:<br />
<pre class="brush: java;">
URL intranetURL = new URL(&quot;http://internal.xyz.co.in/&quot;);
URLConnection conn = intranetURL.openConnection(Proxy.NO_PROXY);
</pre><br />
The <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/net/Proxy.html#NO_PROXY">Proxy.NO_PROXY</a> static member forces the connection to retrieve the defined URL directly bypassing all proxy settings.</p>
<p>The proxy class also allows you to define a SOCKS proxy by using the type <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/net/Proxy.Type.html#SOCKS">Proxy.Type.SOCKS</a>.</p>
<p>Thus, as you can see, with Java 1.5 and above, the developer has more control while connecting via proxies. </p>
<p>Java 1.5 provides another class called the <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/net/ProxySelector.html">Proxy Selector</a> which gives even more control by allowing dynamic selection of proxies. I will cover that in another post.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jaydeepm.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jaydeepm.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jaydeepm.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jaydeepm.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jaydeepm.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jaydeepm.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jaydeepm.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jaydeepm.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jaydeepm.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jaydeepm.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jaydeepm.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jaydeepm.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jaydeepm.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jaydeepm.wordpress.com/136/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jaydeepm.wordpress.com&amp;blog=7311079&amp;post=136&amp;subd=jaydeepm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jaydeepm.wordpress.com/2009/08/08/url-connection-via-proxy-the-java-1-5-way/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1236a341c413d29cbe61e722bde4ca44?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jaydeepm</media:title>
		</media:content>
	</item>
	</channel>
</rss>
