<?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>Technical Tips, Tricks and Articles</title>
	<atom:link href="http://techboard.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://techboard.wordpress.com</link>
	<description></description>
	<lastBuildDate>Fri, 24 Jun 2011 13:54:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='techboard.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Technical Tips, Tricks and Articles</title>
		<link>http://techboard.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://techboard.wordpress.com/osd.xml" title="Technical Tips, Tricks and Articles" />
	<atom:link rel='hub' href='http://techboard.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Quickstart &#8211; log4j</title>
		<link>http://techboard.wordpress.com/2011/04/29/quickstart-log4j/</link>
		<comments>http://techboard.wordpress.com/2011/04/29/quickstart-log4j/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 16:12:01 +0000</pubDate>
		<dc:creator>..alee</dc:creator>
				<category><![CDATA[configurations]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[quickstart]]></category>
		<category><![CDATA[log4j]]></category>
		<category><![CDATA[properties]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://techboard.wordpress.com/?p=83</guid>
		<description><![CDATA[There are like 100 of log4j tutorials on the internet. I am not going to put another one, just a compilation of few resources which are good to go and will add couple of notes, which I wasn&#8217;t able to find online or they took forever. This particular link is pretty decent. It talks about [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=83&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are like 100 of <a href="http://logging.apache.org/log4j/1.2/manual.html">log4j </a>tutorials on the internet. I am not going to put another one, just a compilation of few resources which are good to go and will add couple of notes, which I wasn&#8217;t able to find online or they took forever.</p>
<p>This particular <a href="http://www.vaannila.com/log4j/log4j-tutorial/log4j-tutorial.html">link </a>is pretty decent. It talks about basics, <a href="http://www.vaannila.com/log4j/log4j-example-multiple-appender.html">MulitpleAppenders</a>, <a href="http://www.vaannila.com/log4j/log4j-file-appender-example-1.html">FileAppenders </a>and then <a href="http://www.vaannila.com/log4j/log4j-xml-configuration.html">log4j xml configurations</a>.</p>
<p>One of the thing that is missed in above tutorial is configuring your XML based configurations for specific class hierarchy. Lets talk about <code>vaanila.admin</code> and <code>vaanila.report</code> class heirarchy mentioned in <a href="http://www.vaannila.com/log4j/log4j-file-appender-example-1.html">FileAppenders </a> example. In given example, following piece of lines were handling specific logging based on classes in .properties file</p>
<blockquote>
<div><code>log4j.logger.com.vaannila.admin=WARN,AdminFileAppender</code></div>
<div><code>log4j.logger.com.vaannila.report=DEBUG,ReportFileAppender</code></div>
</blockquote>
<p>What would be their equvialent in XML ?</p>
<pre style="color:#000000;background-color:#ffffff;font-size:9pt;font-family:'Courier New';"><span style="color:#888888;">01 </span><span style="color:#a52a2a;">&lt;logger</span> <span style="color:#0000ff;">name</span>=<span style="color:#ff00ff;">"vaanila.admin"</span><span style="color:#a52a2a;">&gt;</span>
<span style="color:#888888;">02 </span>	<span style="color:#a52a2a;">&lt;level</span> <span style="color:#0000ff;">value</span>=<span style="color:#ff00ff;">"WARN"</span><span style="color:#a52a2a;">/&gt;</span>
<span style="color:#888888;">03 </span>	<span style="color:#a52a2a;">&lt;appender-ref</span> <span style="color:#0000ff;">ref</span>=<span style="color:#ff00ff;">"AdminFileAppender"</span><span style="color:#a52a2a;">/&gt;</span>
<span style="color:#888888;">04 </span><span style="color:#a52a2a;">&lt;/logger&gt;</span></pre>
<p>and similarly, for vaanila.report the configuration would be</p>
<pre style="color:#000000;background-color:#ffffff;font-size:9pt;font-family:'Courier New';"><span style="color:#888888;">01 </span><span style="color:#a52a2a;">&lt;logger</span> <span style="color:#0000ff;">name</span>=<span style="color:#ff00ff;">"vaanila.report"</span><span style="color:#a52a2a;">&gt;</span>
<span style="color:#888888;">02 </span>	<span style="color:#a52a2a;">&lt;level</span> <span style="color:#0000ff;">value</span>=<span style="color:#ff00ff;">"WARN"</span><span style="color:#a52a2a;">/&gt;</span>
<span style="color:#888888;">03 </span>	<span style="color:#a52a2a;">&lt;appender-ref</span> <span style="color:#0000ff;">ref</span>=<span style="color:#ff00ff;">"ReportFileAppender"</span><span style="color:#a52a2a;">/&gt;</span>
<span style="color:#888888;">04 </span><span style="color:#a52a2a;">&lt;/logger&gt;</span></pre>
<p>One of the thing, that these tutorials didn&#8217;t help me was how can I log specific logging based on application modules i.e. if I have multiple .ear files, then how can I separate the loggings for each .ear file? Definitely, the class level logging wouldn&#8217;t help me because there could be a scenario where there are &#8220;shared&#8221; classes. The solution to this question is log4j version 3.2.4 and higher. Using that log4j you can use following configuration to log based on ear files.</p>
<p>Assuming I have an application and one of the ear module is named as some.ear. The settings would look like something</p>
<pre style="color:#000000;background-color:#ffffff;font-size:9pt;font-family:'Courier New';"><span style="color:#888888;">01 </span><span style="color:#a52a2a;">&lt;appender</span> <span style="color:#0000ff;">name</span>=<span style="color:#ff00ff;">"some"</span> <span style="color:#0000ff;">class</span>=<span style="color:#ff00ff;">"org.apache.log4j.FileAppender"</span><span style="color:#a52a2a;">&gt;</span>
<span style="color:#888888;">02 </span>	<span style="color:#a52a2a;">&lt;errorHandler</span> <span style="color:#0000ff;">class</span>=<span style="color:#ff00ff;">"org.jboss.logging.util.OnlyOnceErrorHandler"</span><span style="color:#a52a2a;">&gt;&lt;/errorHandler&gt;</span>
<span style="color:#888888;">03 </span>	<span style="color:#a52a2a;">&lt;param</span> <span style="color:#0000ff;">name</span>=<span style="color:#ff00ff;">"Append"</span> <span style="color:#0000ff;">value</span>=<span style="color:#ff00ff;">"false"</span><span style="color:#a52a2a;">/&gt;</span>
<span style="color:#888888;">04 </span>	<span style="color:#a52a2a;">&lt;param</span> <span style="color:#0000ff;">name</span>=<span style="color:#ff00ff;">"File"</span> <span style="color:#0000ff;">value</span>=<span style="color:#ff00ff;">"./log/some.log"</span><span style="color:#a52a2a;">/&gt;</span>
<span style="color:#888888;">05 </span>	<span style="color:#a52a2a;">&lt;layout</span> <span style="color:#0000ff;">class</span>=<span style="color:#ff00ff;">"org.apache.log4j.PatternLayout"</span><span style="color:#a52a2a;">&gt;</span>
<span style="color:#888888;">06 </span>		<span style="color:#a52a2a;">&lt;param</span> <span style="color:#0000ff;">name</span>=<span style="color:#ff00ff;">"ConversionPattern"</span> <span style="color:#0000ff;">value</span>=<span style="color:#ff00ff;">"%d{ABSOLUTE} %-5p [%c{1}] %m%n"</span><span style="color:#a52a2a;">/&gt;</span>
<span style="color:#888888;">07 </span>	<span style="color:#a52a2a;">&lt;/layout&gt;</span>
<span style="color:#888888;">08 </span>	<span style="color:#a52a2a;">&lt;filter</span> <span style="color:#0000ff;">class</span>=<span style="color:#ff00ff;">"org.jboss.logging.filter.TCLFilter"</span><span style="color:#a52a2a;">&gt;</span>
<span style="color:#888888;">09 </span>		<span style="color:#a52a2a;">&lt;param</span> <span style="color:#0000ff;">name</span>=<span style="color:#ff00ff;">"AcceptOnMatch"</span> <span style="color:#0000ff;">value</span>=<span style="color:#ff00ff;">"true"</span><span style="color:#a52a2a;">/&gt;</span>
<span style="color:#888888;">10 </span>		<span style="color:#a52a2a;">&lt;param</span> <span style="color:#0000ff;">name</span>=<span style="color:#ff00ff;">"DeployURL"</span> <span style="color:#0000ff;">value</span>=<span style="color:#ff00ff;">"some.ear"</span><span style="color:#a52a2a;">/&gt;</span>
<span style="color:#888888;">11 </span>	<span style="color:#a52a2a;">&lt;/filter&gt;</span>
<span style="color:#888888;">12 </span><span style="color:#a52a2a;">&lt;/appender&gt;</span>
<span style="color:#888888;">13 </span>
<span style="color:#888888;">14 </span>...
<span style="color:#888888;">15 </span>
<span style="color:#888888;">16 </span><span style="color:#a52a2a;">&lt;root&gt;</span>
<span style="color:#888888;">17 </span>	<span style="color:#a52a2a;">&lt;appender-ref</span> <span style="color:#0000ff;">ref</span>=<span style="color:#ff00ff;">"CONSOLE"</span><span style="color:#a52a2a;">&gt;&lt;/appender-ref&gt;</span>
<span style="color:#888888;">18 </span>	<span style="color:#a52a2a;">&lt;appender-ref</span> <span style="color:#0000ff;">ref</span>=<span style="color:#ff00ff;">"FILE"</span><span style="color:#a52a2a;">&gt;&lt;/appender-ref&gt;</span>
<span style="color:#888888;">19 </span>	<span style="color:#a52a2a;">&lt;appender-ref</span> <span style="color:#0000ff;">ref</span>=<span style="color:#ff00ff;">"some"</span><span style="color:#a52a2a;">&gt;&lt;/appender-ref&gt;</span>
<span style="color:#888888;">20 </span><span style="color:#a52a2a;">&lt;/root&gt;</span></pre>
<p>I hope that will be helpful.</p>
<br />Filed under: <a href='http://techboard.wordpress.com/category/programming/configurations/'>configurations</a>, <a href='http://techboard.wordpress.com/category/miscellaneous/'>Miscellaneous</a>, <a href='http://techboard.wordpress.com/category/programming/quickstart/'>quickstart</a> Tagged: <a href='http://techboard.wordpress.com/tag/log4j/'>log4j</a>, <a href='http://techboard.wordpress.com/tag/properties/'>properties</a>, <a href='http://techboard.wordpress.com/tag/quickstart/'>quickstart</a>, <a href='http://techboard.wordpress.com/tag/xml/'>xml</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techboard.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techboard.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techboard.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techboard.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techboard.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techboard.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techboard.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techboard.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techboard.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techboard.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techboard.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techboard.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techboard.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techboard.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=83&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techboard.wordpress.com/2011/04/29/quickstart-log4j/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/598508c7ef12ece4ca6c1c0f542e5dcd?s=96&#38;d=identicon" medium="image">
			<media:title type="html">..alee</media:title>
		</media:content>
	</item>
		<item>
		<title>Text messages Time Issue</title>
		<link>http://techboard.wordpress.com/2010/09/03/text-messages-time-issue/</link>
		<comments>http://techboard.wordpress.com/2010/09/03/text-messages-time-issue/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 08:04:55 +0000</pubDate>
		<dc:creator>..alee</dc:creator>
				<category><![CDATA[Andriod]]></category>
		<category><![CDATA[Cell Phone]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[FIDO]]></category>
		<category><![CDATA[Rogers]]></category>

		<guid isPermaLink="false">http://techboard.wordpress.com/?p=80</guid>
		<description><![CDATA[I have been using FIDO for almost a year. Earlier, I was using it with Nokia N97 mini and recently I got HTC Desire. FIDO/Rogers and I guess T-Mobile as well, have an issue in which incoming messages are 4 hours behind from the given time. If you are not using threaded view SMS then [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=80&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been using FIDO for almost a year. Earlier, I was using it with Nokia N97 mini and recently I got HTC Desire. FIDO/Rogers and I guess T-Mobile as well, have an issue in which incoming messages are 4 hours behind from the given time. If you are not using threaded view SMS then this would not be an issue but if you are using iOS/Andriod then you will not be able to see threaded conversation.</p>
<p>The incoming messages will pile up on top of the screen and your outgoing messages will stack up at the bottom of the screen. It will get worst when you have 20-30+ text messages.</p>
<p>Few people suggested to adjust the time zone to GMT 0 and the issue would be resolved. But this will mess up with your calendar entries. An easies solution that I found is to use the <a title="SMS Time Fix for Andriod" href="http://www.androidzoom.com/android_applications/tools/sms-time-fix_cwbe.html" target="_blank">SMS Time Fix for Andriod</a>. After installation, set the application to add +4:00 hours to incoming messages in order to adjust the time and your conversation will be visible in threaded view.</p>
<br />Filed under: <a href='http://techboard.wordpress.com/category/blogroll/cell-phone/andriod/'>Andriod</a>, <a href='http://techboard.wordpress.com/category/blogroll/cell-phone/'>Cell Phone</a>, <a href='http://techboard.wordpress.com/category/google/'>Google</a> Tagged: <a href='http://techboard.wordpress.com/tag/andriod/'>Andriod</a>, <a href='http://techboard.wordpress.com/tag/cell-phone/'>Cell Phone</a>, <a href='http://techboard.wordpress.com/tag/fido/'>FIDO</a>, <a href='http://techboard.wordpress.com/tag/google/'>Google</a>, <a href='http://techboard.wordpress.com/tag/rogers/'>Rogers</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techboard.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techboard.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techboard.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techboard.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techboard.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techboard.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techboard.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techboard.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techboard.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techboard.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techboard.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techboard.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techboard.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techboard.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=80&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techboard.wordpress.com/2010/09/03/text-messages-time-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/598508c7ef12ece4ca6c1c0f542e5dcd?s=96&#38;d=identicon" medium="image">
			<media:title type="html">..alee</media:title>
		</media:content>
	</item>
		<item>
		<title>Google Chrome OS</title>
		<link>http://techboard.wordpress.com/2009/07/08/google-chrome-os/</link>
		<comments>http://techboard.wordpress.com/2009/07/08/google-chrome-os/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 14:30:24 +0000</pubDate>
		<dc:creator>..alee</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[Operating System]]></category>

		<guid isPermaLink="false">http://techboard.wordpress.com/2009/07/08/google-chrome-os/</guid>
		<description><![CDATA[Way back, I posted series of articles (article 1, article 2) about the future of OS and now Google is about to take it’s initial steps towards it. The news isn’t surprising for me since the hype of Google OS was in market from quite a while. As stated on Google blog, Google is redefining [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=75&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p align="justify">Way back, I posted series of articles (<a href="http://techboard.wordpress.com/2006/12/19/web-os-a-new-breed-of-operating-systems/" target="_blank">article 1</a>, <a href="http://techboard.wordpress.com/2008/06/11/a-new-breed-to-os-websoft/" target="_blank">article 2</a>) about the future of OS and now Google is about to take it’s initial steps towards it. The news isn’t surprising for me since the hype of Google OS was in market from quite a while. </p>
<p align="justify">As stated on <a href="http://googleblog.blogspot.com/2009/07/introducing-google-chrome-os.html" target="_blank">Google blog</a>, Google is redefining the concepts of OS. Their focus is “Speed, simplicity and security”. One of the thing that really got my attention is that Google isn’t focusing on some high-end hi-fi kind OS. Their “initial” focus is to provide a platform which should be secure and simple enough to help the user to leverage from web applications. Google had made this point quite clear in post</p>
<div align="justify">
<blockquote>
<p><em>All web-based applications will automatically work and new applications can be written using your favorite web technologies. And of course, these apps will run not only on Google Chrome OS, but on any standards-based browser on Windows, Mac and Linux thereby giving developers the largest user base of any platform.</em></p>
</blockquote></div>
<p align="justify">This does make sense, since there are almost every kind of <a href="http://techboard.wordpress.com/2008/06/11/a-new-breed-to-os-websoft/" target="_blank">applications</a> available on internet now, all you need is web browser and a decent internet connection. Google knows that it’s time for RIA and Google is providing almost every possible medium to make as much as user friendly and accessible. </p>
<br />Posted in Google, OS Tagged: Google, Operating System, OS <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techboard.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techboard.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techboard.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techboard.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techboard.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techboard.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techboard.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techboard.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techboard.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techboard.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techboard.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techboard.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techboard.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techboard.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=75&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techboard.wordpress.com/2009/07/08/google-chrome-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/598508c7ef12ece4ca6c1c0f542e5dcd?s=96&#38;d=identicon" medium="image">
			<media:title type="html">..alee</media:title>
		</media:content>
	</item>
		<item>
		<title>Comparing Wrapper objects values in range &#8211;128 to 127</title>
		<link>http://techboard.wordpress.com/2009/07/05/comparing-wrapper-objects-values-in-range-127-to-127/</link>
		<comments>http://techboard.wordpress.com/2009/07/05/comparing-wrapper-objects-values-in-range-127-to-127/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 13:06:05 +0000</pubDate>
		<dc:creator>..alee</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[interview]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://techboard.wordpress.com/2009/07/05/comparing-wrapper-objects-values-in-range-127-to-127/</guid>
		<description><![CDATA[While debugging through a bug that I encountered in one of my ongoing project. I came to know a strange behavior of Java. Consider the following code segment 1 Integer a = 10; 2 Integer b = 10; 3 4 if (a == b){ 5 System.out.println("Two values are equal"); 6 } If you look closely [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=72&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p align="justify">While debugging through a bug that I encountered in one of my ongoing project. I came to know a strange behavior of Java. Consider the following code segment</p>
<div>
<blockquote>
<pre style="background-color:#ffffff;font-family:'Courier New';color:#000000;font-size:10pt;"><span style="color:#000000;">1 </span><span style="color:#7f0055;font-weight:bold;">Integer</span> a <span style="color:#000000;">=</span> <span style="color:#000000;">10</span><span style="color:#000000;">;</span>
<span style="color:#000000;">2 </span><span style="color:#7f0055;font-weight:bold;">Integer</span> b <span style="color:#000000;">=</span> <span style="color:#000000;">10</span><span style="color:#000000;">;</span>
<span style="color:#000000;">3 </span>
<span style="color:#000000;">4 </span><span style="color:#7f0055;font-weight:bold;">if</span> <span style="color:#000000;">(</span>a <span style="color:#000000;">==</span> b<span style="color:#000000;">){</span>
<span style="color:#000000;">5 </span>	<span style="color:#7f0055;font-weight:bold;">System</span><span style="color:#000000;">.</span>out<span style="color:#000000;">.</span><span style="color:#000000;">println</span><span style="color:#000000;">(</span><span style="color:#0000ff;">"Two values are equal"</span><span style="color:#000000;">);</span>
<span style="color:#000000;">6 </span>	<span style="color:#000000;">}</span></pre>
</blockquote>
</div>
<p align="justify">If you look closely at line no 4, then you would realize that the code is actually comparing “Java objects”. Since “a” and “b” are not wrapper classes not primitive types.  But even then the condition is being true. Ok, some how this makes sense (at least till now unless you read this code segment)</p>
<div>
<blockquote>
<pre style="background-color:#ffffff;font-family:'Courier New';color:#000000;font-size:10pt;"><span style="color:#000000;">1 </span><span style="color:#7f0055;font-weight:bold;">Integer</span> a <span style="color:#000000;">=</span> <span style="color:#000000;">150</span><span style="color:#000000;">;</span>
<span style="color:#000000;">2 </span><span style="color:#7f0055;font-weight:bold;">Integer</span> b <span style="color:#000000;">=</span> <span style="color:#000000;">150</span><span style="color:#000000;">;</span>
<span style="color:#000000;">3 </span>
<span style="color:#000000;">4 </span><span style="color:#7f0055;font-weight:bold;">if</span> <span style="color:#000000;">(</span>a <span style="color:#000000;">==</span> b<span style="color:#000000;">){</span>
<span style="color:#000000;">5 </span>	<span style="color:#7f0055;font-weight:bold;">System</span><span style="color:#000000;">.</span>out<span style="color:#000000;">.</span><span style="color:#000000;">println</span><span style="color:#000000;">(</span><span style="color:#0000ff;">"Two values are equal"</span><span style="color:#000000;">);</span>
<span style="color:#000000;">6 </span>	<span style="color:#000000;">}</span></pre>
</blockquote>
</div>
<p align="justify">Astonishingly, for the above code, the if statement would not execute true. Why?</p>
<p align="justify">Well, ever since Java has introduced “auto-boxing” feature, you’ll face this issue. Why is it so? Actually, compiler try to optimize things as much it can. For this, Java has a pool of values from –128 to 127. Whenever, there is some auto-boxing between these values, the reference object for the wrapper class will get the same memory location. In both cases, we are comparing “object references” but in first case, since the value was in the range for both objects hence, Java assigned the same reference location to both objects, making the condition “true” on comparing memory location for two objects.</p>
<p align="justify">Now, the question is why between –128 to 127?. Well, the smallest range of values for smallest wrapper class is between –128 to 127 i.e. Byte.</p>
<br />Posted in code, interview, java, programming Tagged: code, interview, java <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techboard.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techboard.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techboard.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techboard.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techboard.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techboard.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techboard.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techboard.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techboard.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techboard.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techboard.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techboard.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techboard.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techboard.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=72&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techboard.wordpress.com/2009/07/05/comparing-wrapper-objects-values-in-range-127-to-127/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/598508c7ef12ece4ca6c1c0f542e5dcd?s=96&#38;d=identicon" medium="image">
			<media:title type="html">..alee</media:title>
		</media:content>
	</item>
		<item>
		<title>How to retrieve MSN Messenger display pictures</title>
		<link>http://techboard.wordpress.com/2009/07/01/how-to-retrieve-msn-messenger-display-pictures/</link>
		<comments>http://techboard.wordpress.com/2009/07/01/how-to-retrieve-msn-messenger-display-pictures/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 11:07:34 +0000</pubDate>
		<dc:creator>..alee</dc:creator>
				<category><![CDATA[msn]]></category>
		<category><![CDATA[pictures]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://techboard.wordpress.com/2009/07/01/how-to-retrieve-msn-messenger-display-pictures/</guid>
		<description><![CDATA[One of my friend asked me that he needs to copy the display picture he had in his MSN Messenger display. He has tried searching but could not located it. Here is some detail about MSN way of storing display pictures. Please browse to the following path %userprofile%\Local Settings\Application Data\Microsoft\Messenger Here you will see folders [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=71&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of my friend asked me that he needs to copy the display picture he had in his MSN Messenger display. He has tried searching but could not located it. Here is some detail about MSN way of storing display pictures.</p>
<p>Please browse to the following path</p>
<blockquote><p><code>%userprofile%\Local Settings\Application Data\Microsoft\Messenger</code></p></blockquote>
<p>Here you will see folders against each email id that signed in to the msn messenger on that particular machine. Follow the steps to retrieve the display picture.</p>
<ul>
<li>
<div>Browse to the desired email id whose DP you want to retrieve</div>
</li>
<li>
<div>Open ObjectStore and then open UserTile folder.</div>
</li>
<li>
<div>You&#8217;ll see some files in it with some weird  names ending with either DT2 extension or ID2. (notice the file size of both files. the DT2 will be slightly larger than ID2).</div>
</li>
</ul>
<p>The DT2 is actually that thumbnail of your display picture. You have to open it using any photo viewer software:</p>
<ul>
<li>
<div>Right click on the file</div>
</li>
<li>
<div>Select open</div>
</li>
<li>
<div>A pop up will come up asking you to search for the desired program from internet or choose</div>
</li>
<li>
<div>Select on choose and then use any photo editing software</div>
<ul>
<li>
<div>For basic users select “windows pictures and fax viewer”</div>
</li>
</ul>
</li>
<li>
<div>Now you can save this picture at your favorite location.</div>
</li>
</ul>
<br />Posted in msn Tagged: msn, pictures, Tips <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techboard.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techboard.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techboard.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techboard.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techboard.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techboard.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techboard.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techboard.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techboard.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techboard.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techboard.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techboard.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techboard.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techboard.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=71&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techboard.wordpress.com/2009/07/01/how-to-retrieve-msn-messenger-display-pictures/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/598508c7ef12ece4ca6c1c0f542e5dcd?s=96&#38;d=identicon" medium="image">
			<media:title type="html">..alee</media:title>
		</media:content>
	</item>
		<item>
		<title>Syntax highlighting on blogs</title>
		<link>http://techboard.wordpress.com/2009/03/13/syntax-highlighting-on-blogs/</link>
		<comments>http://techboard.wordpress.com/2009/03/13/syntax-highlighting-on-blogs/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 09:15:42 +0000</pubDate>
		<dc:creator>..alee</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://techboard.wordpress.com/?p=60</guid>
		<description><![CDATA[syntax highlighting on blogs<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=60&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Syntax highlighting is always been a desired things on blogs, specially for those who post their code so often on blogs. Not only it adds to the look of the blog but also, it makes the code more readable.  From quite a few days, i was trying to search for something by which i can paste my codes in formatted highlighted form on the blog, but whatever plug-in i found was not integrateable into wordpress free service.</p>
<p style="text-align:justify;">The earlier solutions that came to my mind was taking a snapshot of the code window and post here. But it includes few extra steps for me (taking a snapshopt, croping it and the uploading it) and for reader, they just can&#8217;t COPY-PASTE the code if they want to.</p>
<p style="text-align:justify;"><a href="http://techboard.files.wordpress.com/2009/03/highlight.jpg" target="_blank"><img class="alignleft size-thumbnail wp-image-63" style="border:0 none;margin:10px;" title="highlight" src="http://techboard.files.wordpress.com/2009/03/highlight.jpg?w=128&#038;h=87" alt="highlight" width="128" height="87" /></a>So if you are one of those who are looking for some syntax highlighting thing for your blog, here is some great tool, named <strong><a title="Highlighted" href="http://www.andre-simon.de/index.html" target="_blank">Highlight</a></strong>. The tools come with some default styles, including eclipse, emacs and other well know editors. You can configure the style if you wish so and the you can export it in your desired format i.e (html &#8211; with inline CSS, RTF, XHTML, LaTeX, SVG, XML etc).  See the below snippet that I formatted/highlighted using the it. it&#8217;s pretty clean and easy to incorporate <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<blockquote>
<pre style="color:#000000;background-color:#ffffff;font-size:10pt;font-family:'Courier New';"><span style="color:#000000;">
1 </span><span style="color:#7f0055;font-weight:bold;">package</span> com<span style="color:#000000;">.</span>e2e<span style="color:#000000;">.</span>test<span style="color:#000000;">;</span>
<span style="color:#000000;">2 </span>
<span style="color:#000000;">3 </span><span style="color:#7f0055;font-weight:bold;">import</span> javax<span style="color:#000000;">.</span>microedition<span style="color:#000000;">.</span>lcdui<span style="color:#000000;">.</span>Alert<span style="color:#000000;">;</span>
<span style="color:#000000;">4 </span><span style="color:#7f0055;font-weight:bold;">import</span> javax<span style="color:#000000;">.</span>microedition<span style="color:#000000;">.</span>lcdui<span style="color:#000000;">.</span>Command<span style="color:#000000;">;</span>
<span style="color:#000000;">5 </span><span style="color:#7f0055;font-weight:bold;">import</span> javax<span style="color:#000000;">.</span>microedition<span style="color:#000000;">.</span>lcdui<span style="color:#000000;">.</span>CommandListener<span style="color:#000000;">;</span>
<span style="color:#000000;">6 </span><span style="color:#7f0055;font-weight:bold;">import</span> javax<span style="color:#000000;">.</span>microedition<span style="color:#000000;">.</span>lcdui<span style="color:#000000;">.</span>Display<span style="color:#000000;">;</span>
<span style="color:#000000;">7 </span><span style="color:#7f0055;font-weight:bold;">import</span> javax<span style="color:#000000;">.</span>microedition<span style="color:#000000;">.</span>lcdui<span style="color:#000000;">.</span>Displayable<span style="color:#000000;">;</span>
<span style="color:#000000;">8 </span><span style="color:#7f0055;font-weight:bold;">import</span> javax<span style="color:#000000;">.</span>microedition<span style="color:#000000;">.</span>lcdui<span style="color:#000000;">.</span>Form<span style="color:#000000;">;</span>
<span style="color:#000000;">9 </span><span style="color:#7f0055;font-weight:bold;">import</span> javax<span style="color:#000000;">.</span>microedition<span style="color:#000000;">.</span>lcdui<span style="color:#000000;">.</span>StringItem<span style="color:#000000;">;</span>
<span style="color:#000000;">10 </span><span style="color:#7f0055;font-weight:bold;">import</span> javax<span style="color:#000000;">.</span>microedition<span style="color:#000000;">.</span>lcdui<span style="color:#000000;">.</span>TextBox<span style="color:#000000;">;</span>
<span style="color:#000000;">11 </span><span style="color:#7f0055;font-weight:bold;">import</span> javax<span style="color:#000000;">.</span>microedition<span style="color:#000000;">.</span>midlet<span style="color:#000000;">.</span>MIDlet<span style="color:#000000;">;</span>
<span style="color:#000000;">12 </span><span style="color:#7f0055;font-weight:bold;">import</span> javax<span style="color:#000000;">.</span>microedition<span style="color:#000000;">.</span>midlet<span style="color:#000000;">.</span>MIDletStateChangeException<span style="color:#000000;">;</span>
<span style="color:#000000;">13 </span>
<span style="color:#000000;">14 </span><span style="color:#7f0055;font-weight:bold;">public class</span> Test <span style="color:#7f0055;font-weight:bold;">extends</span> MIDlet <span style="color:#7f0055;font-weight:bold;">implements</span> CommandListener<span style="color:#000000;">,</span> <span style="color:#7f0055;font-weight:bold;">Runnable</span><span style="color:#000000;">{</span>
<span style="color:#000000;">15 </span>
<span style="color:#000000;">16 </span>    <span style="color:#7f0055;font-weight:bold;">private</span> Display mDisplay<span style="color:#000000;">;</span>
<span style="color:#000000;">17 </span>    <span style="color:#7f0055;font-weight:bold;">private</span> Command mExitCommand<span style="color:#000000;">,</span> mFindCommand<span style="color:#000000;">,</span> mCancelCommand<span style="color:#000000;">;</span>
<span style="color:#000000;">18 </span>
<span style="color:#000000;">19 </span>    <span style="color:#7f0055;font-weight:bold;">private</span> TextBox mSubmitBox<span style="color:#000000;">;</span>
<span style="color:#000000;">20 </span>    <span style="color:#7f0055;font-weight:bold;">private</span> Form mProgressForm<span style="color:#000000;">;</span>
<span style="color:#000000;">21 </span>    <span style="color:#7f0055;font-weight:bold;">private</span> StringItem mProgressString<span style="color:#000000;">;</span>
<span style="color:#000000;">22 </span>
<span style="color:#000000;">23 </span>    <span style="color:#7f0055;font-weight:bold;">public</span> <span style="color:#000000;">Test</span><span style="color:#000000;">() {</span>
<span style="color:#000000;">24 </span>        mExitCommand <span style="color:#000000;">=</span> <span style="color:#7f0055;font-weight:bold;">new</span> <span style="color:#000000;">Command</span><span style="color:#000000;">(</span><span style="color:#0000ff;">"Exit"</span><span style="color:#000000;">,</span> Command<span style="color:#000000;">.</span>EXIT<span style="color:#000000;">,</span> <span style="color:#000000;">0</span><span style="color:#000000;">);</span>
<span style="color:#000000;">25 </span>        mFindCommand <span style="color:#000000;">=</span> <span style="color:#7f0055;font-weight:bold;">new</span> <span style="color:#000000;">Command</span> <span style="color:#000000;">(</span><span style="color:#0000ff;">"Find"</span><span style="color:#000000;">,</span> Command<span style="color:#000000;">.</span>SCREEN<span style="color:#000000;">,</span> <span style="color:#000000;">0</span><span style="color:#000000;">);</span>
<span style="color:#000000;">26 </span>        mCancelCommand <span style="color:#000000;">=</span> <span style="color:#7f0055;font-weight:bold;">new</span> <span style="color:#000000;">Command</span> <span style="color:#000000;">(</span><span style="color:#0000ff;">"Cancel"</span><span style="color:#000000;">,</span> Command<span style="color:#000000;">.</span>CANCEL<span style="color:#000000;">,</span> <span style="color:#000000;">0</span><span style="color:#000000;">);</span>
<span style="color:#000000;">27 </span>
<span style="color:#000000;">28 </span>        mSubmitBox <span style="color:#000000;">=</span> <span style="color:#7f0055;font-weight:bold;">new</span> <span style="color:#000000;">TextBox</span><span style="color:#000000;">(</span><span style="color:#0000ff;">"Test"</span><span style="color:#000000;">,</span> <span style="color:#0000ff;">""</span><span style="color:#000000;">,</span> <span style="color:#000000;">32</span><span style="color:#000000;">,</span> <span style="color:#000000;">0</span><span style="color:#000000;">);</span>
<span style="color:#000000;">29 </span>        mSubmitBox<span style="color:#000000;">.</span><span style="color:#000000;">addCommand</span><span style="color:#000000;">(</span>mExitCommand<span style="color:#000000;">);</span>
<span style="color:#000000;">30 </span>        mSubmitBox<span style="color:#000000;">.</span><span style="color:#000000;">addCommand</span><span style="color:#000000;">(</span>mFindCommand<span style="color:#000000;">);</span>
<span style="color:#000000;">31 </span>        mSubmitBox<span style="color:#000000;">.</span><span style="color:#000000;">setCommandListener</span><span style="color:#000000;">(</span><span style="color:#7f0055;font-weight:bold;">this</span><span style="color:#000000;">);</span>
<span style="color:#000000;">32 </span>
<span style="color:#000000;">33 </span>        mProgressForm <span style="color:#000000;">=</span> <span style="color:#7f0055;font-weight:bold;">new</span> <span style="color:#000000;">Form</span> <span style="color:#000000;">(</span><span style="color:#0000ff;">"Lookup Progress"</span><span style="color:#000000;">);</span>
<span style="color:#000000;">34 </span>        mProgressString <span style="color:#000000;">=</span> <span style="color:#7f0055;font-weight:bold;">new</span> <span style="color:#000000;">StringItem</span><span style="color:#000000;">(</span>null<span style="color:#000000;">,</span> null<span style="color:#000000;">);</span>
<span style="color:#000000;">35 </span>        mProgressForm<span style="color:#000000;">.</span><span style="color:#000000;">append</span><span style="color:#000000;">(</span>mProgressString<span style="color:#000000;">);</span>
<span style="color:#000000;">36 </span>    <span style="color:#000000;">}</span>
<span style="color:#000000;">37 </span>
<span style="color:#000000;">38 </span>    <span style="color:#7f0055;font-weight:bold;">protected</span> <span style="color:#7f0055;font-weight:bold;">void</span> <span style="color:#000000;">destroyApp</span><span style="color:#000000;">(</span><span style="color:#7f0055;font-weight:bold;">boolean</span> arg0<span style="color:#000000;">)</span> <span style="color:#7f0055;font-weight:bold;">throws</span>
<span style="color:#000000;">39 </span>                              MIDletStateChangeException <span style="color:#000000;">{</span>
<span style="color:#000000;">40 </span>        <span style="color:#2f9956;">// TODO Auto-generated method stub</span>
<span style="color:#000000;">41 </span>
<span style="color:#000000;">42 </span>    <span style="color:#000000;">}</span>
<span style="color:#000000;">43 </span>
<span style="color:#000000;">44 </span>    <span style="color:#7f0055;font-weight:bold;">protected</span> <span style="color:#7f0055;font-weight:bold;">void</span> <span style="color:#000000;">pauseApp</span><span style="color:#000000;">() {</span>
<span style="color:#000000;">45 </span>        <span style="color:#2f9956;">// TODO Auto-generated method stub</span>
<span style="color:#000000;">46 </span>
<span style="color:#000000;">47 </span>    <span style="color:#000000;">}</span>
<span style="color:#000000;">48 </span>
<span style="color:#000000;">49 </span>    <span style="color:#7f0055;font-weight:bold;">protected</span> <span style="color:#7f0055;font-weight:bold;">void</span> <span style="color:#000000;">startApp</span><span style="color:#000000;">()</span> <span style="color:#7f0055;font-weight:bold;">throws</span> MIDletStateChangeException <span style="color:#000000;">{</span>
<span style="color:#000000;">50 </span>        mDisplay <span style="color:#000000;">=</span> Display<span style="color:#000000;">.</span><span style="color:#000000;">getDisplay</span><span style="color:#000000;">(</span><span style="color:#7f0055;font-weight:bold;">this</span><span style="color:#000000;">);</span>
<span style="color:#000000;">51 </span>        mDisplay<span style="color:#000000;">.</span><span style="color:#000000;">setCurrent</span><span style="color:#000000;">(</span>mSubmitBox<span style="color:#000000;">);</span>
<span style="color:#000000;">52 </span>    <span style="color:#000000;">}</span>
<span style="color:#000000;">53 </span>
<span style="color:#000000;">54 </span>    <span style="color:#7f0055;font-weight:bold;">public</span> <span style="color:#7f0055;font-weight:bold;">void</span> <span style="color:#000000;">commandAction</span><span style="color:#000000;">(</span>Command c<span style="color:#000000;">,</span> Displayable d<span style="color:#000000;">) {</span>
<span style="color:#000000;">55 </span>        <span style="color:#7f0055;font-weight:bold;">if</span> <span style="color:#000000;">(</span>c <span style="color:#000000;">==</span> mExitCommand<span style="color:#000000;">){</span>
<span style="color:#000000;">56 </span>            <span style="color:#7f0055;font-weight:bold;">try</span> <span style="color:#000000;">{</span>
<span style="color:#000000;">57 </span>                <span style="color:#000000;">destroyApp</span><span style="color:#000000;">(</span>false<span style="color:#000000;">);</span>
<span style="color:#000000;">58 </span>            <span style="color:#000000;">}</span> <span style="color:#7f0055;font-weight:bold;">catch</span> <span style="color:#000000;">(</span>MIDletStateChangeException e<span style="color:#000000;">) {</span>
<span style="color:#000000;">59 </span>                <span style="color:#7f0055;font-weight:bold;">System</span><span style="color:#000000;">.</span>out<span style="color:#000000;">.</span><span style="color:#000000;">println</span><span style="color:#000000;">(</span><span style="color:#0000ff;">"exception @ destroyApp(false);"</span><span style="color:#000000;">);</span>
<span style="color:#000000;">60 </span>            <span style="color:#000000;">}</span>
<span style="color:#000000;">61 </span>            <span style="color:#000000;">notifyDestroyed</span><span style="color:#000000;">();</span>
<span style="color:#000000;">62 </span>        <span style="color:#000000;">}</span>
<span style="color:#000000;">63 </span>        <span style="color:#7f0055;font-weight:bold;">else if</span> <span style="color:#000000;">(</span>c <span style="color:#000000;">==</span> mFindCommand<span style="color:#000000;">){</span>
<span style="color:#000000;">64 </span>            mDisplay<span style="color:#000000;">.</span><span style="color:#000000;">setCurrent</span><span style="color:#000000;">(</span>mProgressForm<span style="color:#000000;">);</span>
<span style="color:#000000;">65 </span>            <span style="color:#7f0055;font-weight:bold;">Thread</span> t <span style="color:#000000;">=</span> <span style="color:#7f0055;font-weight:bold;">new</span> <span style="color:#7f0055;font-weight:bold;">Thread</span><span style="color:#000000;">(</span><span style="color:#7f0055;font-weight:bold;">this</span><span style="color:#000000;">);</span>
<span style="color:#000000;">66 </span>            t<span style="color:#000000;">.</span><span style="color:#000000;">start</span><span style="color:#000000;">();</span>
<span style="color:#000000;">67 </span>        <span style="color:#000000;">}</span>
<span style="color:#000000;">68 </span>    <span style="color:#000000;">}</span>
<span style="color:#000000;">69 </span>
<span style="color:#000000;">70 </span>    <span style="color:#7f0055;font-weight:bold;">public</span> <span style="color:#7f0055;font-weight:bold;">void</span> <span style="color:#000000;">run</span><span style="color:#000000;">() {</span>
<span style="color:#000000;">71 </span>        <span style="color:#7f0055;font-weight:bold;">String</span> word <span style="color:#000000;">=</span> mSubmitBox<span style="color:#000000;">.</span><span style="color:#000000;">getString</span><span style="color:#000000;">();</span>
<span style="color:#000000;">72 </span>        <span style="color:#7f0055;font-weight:bold;">String</span> definition<span style="color:#000000;">;</span>
<span style="color:#000000;">73 </span>        <span style="color:#7f0055;font-weight:bold;">try</span><span style="color:#000000;">{</span>
<span style="color:#000000;">74 </span>            definition <span style="color:#000000;">=</span> <span style="color:#000000;">lookup</span><span style="color:#000000;">(</span>word<span style="color:#000000;">);</span>
<span style="color:#000000;">75 </span>        <span style="color:#000000;">}</span>
<span style="color:#000000;">76 </span>        <span style="color:#7f0055;font-weight:bold;">catch</span> <span style="color:#000000;">(</span><span style="color:#7f0055;font-weight:bold;">Exception</span> ie<span style="color:#000000;">){</span>
<span style="color:#000000;">77 </span>            Alert report <span style="color:#000000;">=</span> <span style="color:#7f0055;font-weight:bold;">new</span> <span style="color:#000000;">Alert</span><span style="color:#000000;">(</span><span style="color:#0000ff;">"Sorry"</span><span style="color:#000000;">,</span> <span style="color:#0000ff;">"Something went wrong"</span><span style="color:#000000;">,</span> null<span style="color:#000000;">,</span>
<span style="color:#000000;">78 </span>                           null<span style="color:#000000;">);</span>
<span style="color:#000000;">79 </span>            report<span style="color:#000000;">.</span><span style="color:#000000;">setTimeout</span><span style="color:#000000;">(</span>Alert<span style="color:#000000;">.</span>FOREVER<span style="color:#000000;">);</span>
<span style="color:#000000;">80 </span>            mDisplay<span style="color:#000000;">.</span><span style="color:#000000;">setCurrent</span><span style="color:#000000;">(</span>report<span style="color:#000000;">,</span> mSubmitBox<span style="color:#000000;">);</span>
<span style="color:#000000;">81 </span>            <span style="color:#7f0055;font-weight:bold;">return</span><span style="color:#000000;">;</span>
<span style="color:#000000;">82 </span>        <span style="color:#000000;">}</span>
<span style="color:#000000;">83 </span>        Alert report <span style="color:#000000;">=</span> <span style="color:#7f0055;font-weight:bold;">new</span> <span style="color:#000000;">Alert</span> <span style="color:#000000;">(</span><span style="color:#0000ff;">"Definition"</span><span style="color:#000000;">,</span> definition<span style="color:#000000;">,</span> null<span style="color:#000000;">,</span> null<span style="color:#000000;">);</span>
<span style="color:#000000;">84 </span>        report<span style="color:#000000;">.</span><span style="color:#000000;">setTimeout</span><span style="color:#000000;">(</span>Alert<span style="color:#000000;">.</span>FOREVER<span style="color:#000000;">);</span>
<span style="color:#000000;">85 </span>        mDisplay<span style="color:#000000;">.</span><span style="color:#000000;">setCurrent</span><span style="color:#000000;">(</span>report<span style="color:#000000;">,</span> mSubmitBox<span style="color:#000000;">);</span>
<span style="color:#000000;">86 </span>
<span style="color:#000000;">87 </span>    <span style="color:#000000;">}</span>
<span style="color:#000000;">88 </span>
<span style="color:#000000;">89 </span>    <span style="color:#7f0055;font-weight:bold;">private</span> <span style="color:#7f0055;font-weight:bold;">String</span> <span style="color:#000000;">lookup</span><span style="color:#000000;">(</span><span style="color:#7f0055;font-weight:bold;">String</span> word<span style="color:#000000;">) {</span>
<span style="color:#000000;">90 </span>        <span style="color:#7f0055;font-weight:bold;">if</span> <span style="color:#000000;">(</span>word<span style="color:#000000;">.</span><span style="color:#000000;">equalsIgnoreCase</span><span style="color:#000000;">(</span><span style="color:#0000ff;">"1"</span><span style="color:#000000;">)){</span>
<span style="color:#000000;">91 </span>            <span style="color:#7f0055;font-weight:bold;">throw new</span> <span style="color:#7f0055;font-weight:bold;">RuntimeException</span><span style="color:#000000;">(</span><span style="color:#0000ff;">"exception thrown"</span><span style="color:#000000;">);</span>
<span style="color:#000000;">92 </span>        <span style="color:#000000;">}</span>
<span style="color:#000000;">93 </span>        <span style="color:#7f0055;font-weight:bold;">return</span> <span style="color:#0000ff;">"hardcoded definition"</span><span style="color:#000000;">;</span>
<span style="color:#000000;">94 </span>    <span style="color:#000000;">}</span>
<span style="color:#000000;">95 </span>
<span style="color:#000000;">96 </span><span style="color:#000000;">}</span></pre>
</blockquote>
<br />Posted in Miscellaneous Tagged: code, syntax, Tip, Tips, wordpress <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techboard.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techboard.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techboard.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techboard.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techboard.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techboard.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techboard.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techboard.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techboard.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techboard.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techboard.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techboard.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techboard.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techboard.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=60&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techboard.wordpress.com/2009/03/13/syntax-highlighting-on-blogs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/598508c7ef12ece4ca6c1c0f542e5dcd?s=96&#38;d=identicon" medium="image">
			<media:title type="html">..alee</media:title>
		</media:content>

		<media:content url="http://techboard.files.wordpress.com/2009/03/highlight.jpg?w=128" medium="image">
			<media:title type="html">highlight</media:title>
		</media:content>
	</item>
		<item>
		<title>Postbox &#8211; an awesome mail client</title>
		<link>http://techboard.wordpress.com/2009/02/12/postbox-an-awesome-mail-client/</link>
		<comments>http://techboard.wordpress.com/2009/02/12/postbox-an-awesome-mail-client/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 16:24:27 +0000</pubDate>
		<dc:creator>..alee</dc:creator>
				<category><![CDATA[Application]]></category>
		<category><![CDATA[Review]]></category>

		<guid isPermaLink="false">http://techboard.wordpress.com/?p=56</guid>
		<description><![CDATA[When it comes to email, I am stick to GMail. There is nothing else that i like more than GMail. But sometime, you just need a desktop application when you are in professional environment. Microsoft Outlook is a big choice, however, i was using Mozilla Thunderbird from quite a while. Which is light weight, have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=56&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">When it comes to email, I am stick to GMail. There is nothing else that i like more than GMail.</p>
<p style="text-align:justify;">But sometime, you just need a desktop application when you are in professional environment. Microsoft Outlook is a big choice, however, i was using Mozilla Thunderbird from quite a while. Which is light weight, have option to subscribe to the newsgroups, global address book. But still there were lot of things missing which i found in <a title="postbox" href="http://www.postbox-inc.com" target="_blank">postbox. </a></p>
<p style="text-align:justify;">The software has really nice <a title="features" href="http://www.postbox-inc.com/features" target="_blank">features</a>, besides having all those features of thunderbird, it has integration with GMail (POP3, IMAP). You can have very easy TODO management, Threaded emails (even for GMail).</p>
<p style="text-align:justify;">One of the really impressing feature of this software is that it manages your attachments, images at one place.</p>
<p style="text-align:justify;"><img class="alignnone size-full wp-image-57" title="toolbar-image" src="http://techboard.files.wordpress.com/2009/02/toolbar-image.jpg?w=700&#038;h=68" alt="toolbar-image" width="700" height="68" /></p>
<p style="text-align:justify;">Clicking on the image button will open a new tab name <em>images. </em>It will index the images of your configured mail account once and then your images will be accessible at one place. Same goes to <em>attachments.</em></p>
<p style="text-align:justify;">Anyone, who is using Mozilla ThunderBird should try this one. You&#8217;ll definitely love it.</p>
<br />Posted in Application, Review  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techboard.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techboard.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techboard.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techboard.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techboard.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techboard.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techboard.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techboard.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techboard.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techboard.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techboard.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techboard.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techboard.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techboard.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=56&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techboard.wordpress.com/2009/02/12/postbox-an-awesome-mail-client/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/598508c7ef12ece4ca6c1c0f542e5dcd?s=96&#38;d=identicon" medium="image">
			<media:title type="html">..alee</media:title>
		</media:content>

		<media:content url="http://techboard.files.wordpress.com/2009/02/toolbar-image.jpg" medium="image">
			<media:title type="html">toolbar-image</media:title>
		</media:content>
	</item>
		<item>
		<title>Error starting eclipse</title>
		<link>http://techboard.wordpress.com/2009/01/30/error-starting-eclipse/</link>
		<comments>http://techboard.wordpress.com/2009/01/30/error-starting-eclipse/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 16:11:42 +0000</pubDate>
		<dc:creator>..alee</dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://techboard.wordpress.com/?p=37</guid>
		<description><![CDATA[Solution of error that is received while starting eclipse on fresh install.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=37&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">You might face an error while starting eclipse on a freshly installed system, or on the system which has undergone a fresh upgrade. The error message will be like</p>
<blockquote><p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Eclipse<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
JVM terminated. Exit code=-1<br />
-Dosgi.requiredJavaVersion=1.5<br />
-Xms40m<br />
-Xmx512m<br />
-XX:MaxPermSize=256M<br />
-Djava.class.path=D:\eclipse-jee-ganymede-win32\eclipse\plugins\org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar<br />
-os win32<br />
-ws win32<br />
-arch x86<br />
-showsplash D:\eclipse-jee-ganymede-win32\eclipse\\plugins\org.eclipse.platform_3.3.100.v200806172000\splash.bmp<br />
-launcher D:\eclipse-jee-ganymede-win32\eclipse\eclipse.exe<br />
-name Eclipse<br />
&#8211;launcher.library D:\eclipse-jee-ganymede-win32\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.100.v20080509-1800\eclipse_1114.dll<br />
-startup D:\eclipse-jee-ganymede-win32\eclipse\plugins\org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar<br />
-framework plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar<br />
-vm C:\Program Files\Java\jre1.6.0\bin\client\jvm.dll<br />
-vmargs<br />
-Dosgi.requiredJavaVersion=1.5<br />
-Xms40m<br />
-Xmx512m<br />
-XX:MaxPermSize=256M<br />
-Djava.class.path=D:\eclipse-jee-ganymede-win32\eclipse\plugins\org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
OK<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p></blockquote>
<p style="text-align:justify;">Actually, eclipse is trying to get the version of java that is installed on system. you might have installed that latest one but there are possibilities that any upgradation of later softwares has replaced the java.exe files in system32 folder with older version. All you need to do is to run eclipse with clean parameters. Create a batch file in the directory where eclipse.exe is and write this line in it <code>eclipse -clean -vmargs -Xmx256m</code></p>
<br />Posted in java  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techboard.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techboard.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techboard.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techboard.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techboard.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techboard.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techboard.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techboard.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techboard.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techboard.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techboard.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techboard.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techboard.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techboard.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=37&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techboard.wordpress.com/2009/01/30/error-starting-eclipse/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/598508c7ef12ece4ca6c1c0f542e5dcd?s=96&#38;d=identicon" medium="image">
			<media:title type="html">..alee</media:title>
		</media:content>
	</item>
		<item>
		<title>your own personal code repository</title>
		<link>http://techboard.wordpress.com/2009/01/23/your-own-personal-code-repository/</link>
		<comments>http://techboard.wordpress.com/2009/01/23/your-own-personal-code-repository/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 16:15:57 +0000</pubDate>
		<dc:creator>..alee</dc:creator>
				<category><![CDATA[code website]]></category>

		<guid isPermaLink="false">http://techboard.wordpress.com/?p=34</guid>
		<description><![CDATA[Social Coding Hub - To save your code repository online.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=34&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">are you crazy about coding? are you the one who use to write code for others or sometime your written utilities are so good that you actually want to share them and want to release the later versions of it?</p>
<p style="text-align:justify;">If you are one of that guy then this site is really gona rock your coding experience. The site is <strong><a title="github social coding" href="https://github.com/" target="_blank">github social coding </a></strong>.</p>
<p style="text-align:justify;">Here you can make your profile and can create your own repository. For free users, there are limits (100 mb space, no ssl etc). But even then it&#8217;s really great to get things started.</p>
<p style="text-align:justify;">Get going coders</p>
<br />Posted in code website  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techboard.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techboard.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techboard.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techboard.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techboard.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techboard.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techboard.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techboard.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techboard.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techboard.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techboard.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techboard.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techboard.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techboard.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=34&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techboard.wordpress.com/2009/01/23/your-own-personal-code-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/598508c7ef12ece4ca6c1c0f542e5dcd?s=96&#38;d=identicon" medium="image">
			<media:title type="html">..alee</media:title>
		</media:content>
	</item>
		<item>
		<title>Manage your TODO with GMail</title>
		<link>http://techboard.wordpress.com/2008/09/17/manage-your-todo-with-gmail/</link>
		<comments>http://techboard.wordpress.com/2008/09/17/manage-your-todo-with-gmail/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 12:16:39 +0000</pubDate>
		<dc:creator>..alee</dc:creator>
				<category><![CDATA[GMail]]></category>
		<category><![CDATA[GMail Labs]]></category>

		<guid isPermaLink="false">http://techboard.wordpress.com/?p=28</guid>
		<description><![CDATA[I wonder, what was the life before GMail. Gmail was already awesome and day by day it&#8217;s getting really great. Today, I am going to write simple tips which will help you to turn your GMail into your TODO Task Manager. Actually, there are 2 ways that i find great and I am going to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=28&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">I wonder, what was the life before GMail. Gmail was already awesome and day by day it&#8217;s <a title="getting really great" href="http://gmailblog.blogspot.com/2008/06/introducing-gmail-labs.html" target="_blank">getting really great</a>. Today, I am going to write simple tips which will help you to turn your GMail into your TODO Task Manager. Actually, there are 2 ways that i find great and I am going to explain you both.</p>
<ol style="text-align:justify;">
<li>This tip is going to use 2 GMail Lab (<a title="quicklinks" href="http://techboard.wordpress.com/2008/06/19/gmail-labs-tips-review/" target="_blank">quicklinks</a> and superstars) and ofcourse the google&#8217;s legendary search capability. First of all, enable both of these labs by going to your lab settings and selecting <strong>Enable</strong> against each of the lab. Now, make a decision about any of your favorite superstar for your todo list. I selected <strong>red-bang</strong> (don&#8217;t forget to read their names by hovering your mouse on each superstar in your mail settings &gt; general tab).
<div id="attachment_29" class="wp-caption alignnone" style="width: 222px"><a href="http://techboard.files.wordpress.com/2008/09/red-bang1.jpg"><img class="size-thumbnail wp-image-29" title="red-bang" src="http://techboard.files.wordpress.com/2008/09/red-bang1.jpg?w=212&#038;h=39" alt="red-bang" width="212" height="39" /></a><p class="wp-caption-text">red-bang</p></div>
<p>Now, we need to create a quickview so that it may sort out <strong>TODO</strong> for us. Type this string in GMail search box <span style="font-size:medium;"><code>is:unread AND has:red-bang</code></span> and <a title="add it to quickview" href="http://techboard.wordpress.com/2008/06/19/gmail-labs-tips-review/" target="_self">add it to quickview</a> and name it <strong>TODO</strong>. Now all you have to do is to mark all your <strong>TODO</strong> items with this <strong>red-bang</strong> star by click on <strong>star</strong> icon against emails and whenever you want to view your <strong>TODO</strong>, just click on the <strong>TODO</strong> linkview from your quickview.</li>
<li> In second method, we are going to use GMail freedom of email aliases. May be you people know that in GMail <em>youremail@gmail.com</em> is same as <em>youremail+anytag@gmail.com</em>. So what we are going to do is to create a filter on <strong>TO</strong> field i.e; apply label <strong>TODO </strong>to all those emails whose <strong>TO</strong> field is <em>youremail+todo@gmail.com<strong>. </strong></em>Now, whenever an email has been sent to <em>youremail+todo@gmail.com </em>it&#8217;ll be automatically added to your <strong>TODO </strong>label list.</li>
</ol>
<p style="text-align:justify;">The benefit of method 2 over method 1 is that you can ask your friends to email at <em>youremail+todo@gmail.com</em> whenever there is something pending on you and GMail will manage it as your <strong>TODO</strong> list in your inbox.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/techboard.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/techboard.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techboard.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techboard.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techboard.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techboard.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techboard.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techboard.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techboard.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techboard.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techboard.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techboard.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techboard.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techboard.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techboard.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techboard.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techboard.wordpress.com&amp;blog=412818&amp;post=28&amp;subd=techboard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techboard.wordpress.com/2008/09/17/manage-your-todo-with-gmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/598508c7ef12ece4ca6c1c0f542e5dcd?s=96&#38;d=identicon" medium="image">
			<media:title type="html">..alee</media:title>
		</media:content>

		<media:content url="http://techboard.files.wordpress.com/2008/09/red-bang1.jpg?w=128" medium="image">
			<media:title type="html">red-bang</media:title>
		</media:content>
	</item>
	</channel>
</rss>
