<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" version="2.0">

<channel>
	<title>Snippet IT</title>
	
	<link>http://www.snippetit.com</link>
	<description>IT News, Programming, Internet and Blogging</description>
	<lastBuildDate>Mon, 12 Mar 2012 17:33:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/snippetit" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="snippetit" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nd/2.0/</creativeCommons:license><image><link>http://creativecommons.org/licenses/by-nd/2.0/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">snippetit</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>iOS 5.1 Unable to Update</title>
		<link>http://www.snippetit.com/2012/03/ios-5-1-unable-to-update/</link>
		<comments>http://www.snippetit.com/2012/03/ios-5-1-unable-to-update/#comments</comments>
		<pubDate>Mon, 12 Mar 2012 17:33:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software and Hardware]]></category>
		<category><![CDATA[iOS 5.1]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=412</guid>
		<description><![CDATA[Apple has recently released their latest OS for iPhone/iPad/iPod, the iOS 5.1. However I have difficulty in downloading the updates both from my Macbook or iPhone. It just hang without any response. I tried for a few days but I just can't download the updates. After some trial and error. I found out that actually [...]]]></description>
			<content:encoded><![CDATA[<p>Apple has recently released their latest OS for iPhone/iPad/iPod, the iOS 5.1. However I have difficulty in downloading the updates both from my Macbook or iPhone. It just hang without any response. I tried for a few days but I just can't download the updates.</p>
<p>After some trial and error. I found out that actually the update software cannot find the update server's host name. So to fix this problem, you just need to set you Mac/PC/iPhone's DNS to an open/well know DNS so that the update software can find the exact location of the host name. I use Google's open DNS and I can now download the updates without any issue.</p>
<p>Hope this information helps you too!</p>
<p>&nbsp;</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=iOS+5.1+Unable+to+Update+-+http://bit.ly/yZLf5a&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2012/03/ios-5-1-unable-to-update/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2012/03/ios-5-1-unable-to-update/&amp;submitHeadline=iOS+5.1+Unable+to+Update&amp;submitSummary=Apple%20has%20recently%20released%20their%20latest%20OS%20for%20iPhone%2FiPad%2FiPod%2C%20the%20iOS%205.1.%20However%20I%20have%20difficulty%20in%20downloading%20the%20updates%20both%20from%20my%20Macbook%20or%20iPhone.%20It%20just%20hang%20without%20any%20response.%20I%20tried%20for%20a%20few%20days%20but%20I%20just%20can%27t%20download%20the%20updates.%0D%0A%0D%0AAfter%20some%20trial%20and%20error.%20I%20found%20&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2012/03/ios-5-1-unable-to-update/&amp;title=iOS+5.1+Unable+to+Update" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2012/03/ios-5-1-unable-to-update/&amp;title=iOS+5.1+Unable+to+Update" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2012/03/ios-5-1-unable-to-update/&amp;Title=iOS+5.1+Unable+to+Update" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2012/03/ios-5-1-unable-to-update/&amp;title=iOS+5.1+Unable+to+Update" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2012/03/ios-5-1-unable-to-update/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Most Commented Posts</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/12/google-wave-invitation-giveaway/" title="Google Wave Invitation Giveaway">Google Wave Invitation Giveaway</a></li><li><a href="http://www.snippetit.com/2008/10/implement-your-own-short-url/" title="Implement your own short URL">Implement your own short URL</a></li><li><a href="http://www.snippetit.com/2009/01/website-value-evaluation-tool/" title="Website value evaluation tool">Website value evaluation tool</a></li><li><a href="http://www.snippetit.com/2009/04/wordpress-plugin-blogtal-trackback/" title="Wordpress Plugin &#8211; Blogtal Trackback">Wordpress Plugin &#8211; Blogtal Trackback</a></li><li><a href="http://www.snippetit.com/2009/04/wordpress-plugin-default-trackbacks/" title="Wordpress Plugin &#8211; Default Trackbacks">Wordpress Plugin &#8211; Default Trackbacks</a></li><li><a href="http://www.snippetit.com/2009/02/c-loop-all-files-in-directory-and-its-sub-directories/" title="C# &#8211; Loop all files in directory and it&#8217;s sub-directories">C# &#8211; Loop all files in directory and it&#8217;s sub-directories</a></li><li><a href="http://www.snippetit.com/2009/05/wordpress-make-your-wordpress-a-little-bit-more-secure/" title="Wordpress: Make Your Wordpress A Little Bit More Secure">Wordpress: Make Your Wordpress A Little Bit More Secure</a></li><li><a href="http://www.snippetit.com/2009/05/windows-live-messenger-beware-of-unsolicited-messages-sent-from-your-friends-live-account/" title="Windows Live Messenger: Beware of Unsolicited Messages Sent From Your Friends&#8217; Live Account">Windows Live Messenger: Beware of Unsolicited Messages Sent From Your Friends&#8217; Live Account</a></li><li><a href="http://www.snippetit.com/2009/04/php-short-url-algorithm-implementation/" title="PHP: Short URL Algorithm Implementation">PHP: Short URL Algorithm Implementation</a></li><li><a href="http://www.snippetit.com/2009/07/java-mortgage-payment-calculator/" title="Java: Mortgage Payment Calculator">Java: Mortgage Payment Calculator</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/oL1LqcSmk9nhkdAQ4hxttdmrKqw/0/da"><img src="http://feedads.g.doubleclick.net/~a/oL1LqcSmk9nhkdAQ4hxttdmrKqw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/oL1LqcSmk9nhkdAQ4hxttdmrKqw/1/da"><img src="http://feedads.g.doubleclick.net/~a/oL1LqcSmk9nhkdAQ4hxttdmrKqw/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=jasCh0xpBY8:OSjBDNMSMnE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=jasCh0xpBY8:OSjBDNMSMnE:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=jasCh0xpBY8:OSjBDNMSMnE:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=jasCh0xpBY8:OSjBDNMSMnE:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=jasCh0xpBY8:OSjBDNMSMnE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=jasCh0xpBY8:OSjBDNMSMnE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=jasCh0xpBY8:OSjBDNMSMnE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=jasCh0xpBY8:OSjBDNMSMnE:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=jasCh0xpBY8:OSjBDNMSMnE:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2012/03/ios-5-1-unable-to-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eGenting Programming Competition 2011</title>
		<link>http://www.snippetit.com/2011/09/egenting-programming-competition-2011/</link>
		<comments>http://www.snippetit.com/2011/09/egenting-programming-competition-2011/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 02:34:09 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[New and Happening]]></category>
		<category><![CDATA[Programming and Scripting]]></category>
		<category><![CDATA[EGPC]]></category>
		<category><![CDATA[programming competition]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=407</guid>
		<description><![CDATA[Calling all talent programmers! eGenting Programming Competiton 2011 is now open for registration! Do you dare to come? Below are the details of the event: Competition date: 29 October 2011 (Saturday) Time: 10.00 am to 6.00 pm Venue: Auditorium, 25th Floor Wisma Genting, Jalan Sultan Ismail, 50250 Kuala Lumpur Nature: Open-book handwritten programming task The prices: 1st [...]]]></description>
			<content:encoded><![CDATA[<p>Calling all talent programmers! eGenting Programming Competiton 2011 is now open for registration! Do you dare to come?</p>
<p><a class="tt-flickr tt-flickr-Medium" title="eGenting Programming Competiton 2011" href="http://www.flickr.com/photos/szehau/6142708756/"><img class="aligncenter" src="http://farm7.static.flickr.com/6183/6142708756_bddedcb1df.jpg" alt="eGenting Programming Competiton 2011" width="500" height="135" /></a></p>
<p><span id="more-407"></span></p>
<p>Below are the details of the event:</p>
<ul>
<li>Competition date: 29 October 2011 (Saturday)</li>
<li>Time: 10.00 am to 6.00 pm</li>
<li>Venue: Auditorium, 25th Floor Wisma Genting, Jalan Sultan Ismail, 50250 Kuala Lumpur</li>
<li>Nature: Open-book handwritten programming task</li>
</ul>
<p>The prices:</p>
<ul>
<li>1st Price - RM6,000</li>
<li>2nd Price - RM3,000</li>
<li>3rd Price - RM2,000</li>
</ul>
<p>Register now to book your seat before the closing date (15 October 2011) at <a href="http://egpc.genting.com.my/default.htm">http://egpc.genting.com.my/default.htm</a></p>
<p>Be sure to like our <a href="https://www.facebook.com/egprogc">facebook page</a> as well <img src='http://www.snippetit.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div id="fb-root"></div>
<p><script>(function(d){
  var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
  js = d.createElement('script'); js.id = id; js.async = true;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  d.getElementsByTagName('head')[0].appendChild(js);
}(document));</script></p>
<div class="fb-like-box" data-href="http://www.facebook.com/egprogc" data-width="292" data-show-faces="true" data-stream="true" data-header="true"></div>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=eGenting+Programming+Competition+2011+-+http://bit.ly/o8qgn2&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2011/09/egenting-programming-competition-2011/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2011/09/egenting-programming-competition-2011/&amp;submitHeadline=eGenting+Programming+Competition+2011&amp;submitSummary=Calling%20all%20talent%20programmers%21%20eGenting%20Programming%20Competiton%202011%20is%20now%20open%20for%20registration%21%20Do%20you%20dare%20to%20come%3F%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ABelow%20are%20the%20details%20of%20the%20event%3A%0D%0A%0D%0A%09Competition%20date%3A%2029%20October%202011%20%28Saturday%29%0D%0A%09Time%3A%2010.00%20am%20to%206.00%20pm%0D%0A%09Venue%3A%C2%A0Auditorium%2C%2025th%20Floor%20Wisma%20Genting%2C%20Jalan%20Su&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2011/09/egenting-programming-competition-2011/&amp;title=eGenting+Programming+Competition+2011" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2011/09/egenting-programming-competition-2011/&amp;title=eGenting+Programming+Competition+2011" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2011/09/egenting-programming-competition-2011/&amp;Title=eGenting+Programming+Competition+2011" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2011/09/egenting-programming-competition-2011/&amp;title=eGenting+Programming+Competition+2011" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2011/09/egenting-programming-competition-2011/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Most Commented Posts</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/12/google-wave-invitation-giveaway/" title="Google Wave Invitation Giveaway">Google Wave Invitation Giveaway</a></li><li><a href="http://www.snippetit.com/2008/10/implement-your-own-short-url/" title="Implement your own short URL">Implement your own short URL</a></li><li><a href="http://www.snippetit.com/2009/01/website-value-evaluation-tool/" title="Website value evaluation tool">Website value evaluation tool</a></li><li><a href="http://www.snippetit.com/2009/04/wordpress-plugin-blogtal-trackback/" title="Wordpress Plugin &#8211; Blogtal Trackback">Wordpress Plugin &#8211; Blogtal Trackback</a></li><li><a href="http://www.snippetit.com/2009/04/wordpress-plugin-default-trackbacks/" title="Wordpress Plugin &#8211; Default Trackbacks">Wordpress Plugin &#8211; Default Trackbacks</a></li><li><a href="http://www.snippetit.com/2009/02/c-loop-all-files-in-directory-and-its-sub-directories/" title="C# &#8211; Loop all files in directory and it&#8217;s sub-directories">C# &#8211; Loop all files in directory and it&#8217;s sub-directories</a></li><li><a href="http://www.snippetit.com/2009/05/wordpress-make-your-wordpress-a-little-bit-more-secure/" title="Wordpress: Make Your Wordpress A Little Bit More Secure">Wordpress: Make Your Wordpress A Little Bit More Secure</a></li><li><a href="http://www.snippetit.com/2009/05/windows-live-messenger-beware-of-unsolicited-messages-sent-from-your-friends-live-account/" title="Windows Live Messenger: Beware of Unsolicited Messages Sent From Your Friends&#8217; Live Account">Windows Live Messenger: Beware of Unsolicited Messages Sent From Your Friends&#8217; Live Account</a></li><li><a href="http://www.snippetit.com/2009/04/php-short-url-algorithm-implementation/" title="PHP: Short URL Algorithm Implementation">PHP: Short URL Algorithm Implementation</a></li><li><a href="http://www.snippetit.com/2009/07/java-mortgage-payment-calculator/" title="Java: Mortgage Payment Calculator">Java: Mortgage Payment Calculator</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/B5uuZhAV1qZXeEGsMF6_8QatDFU/0/da"><img src="http://feedads.g.doubleclick.net/~a/B5uuZhAV1qZXeEGsMF6_8QatDFU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/B5uuZhAV1qZXeEGsMF6_8QatDFU/1/da"><img src="http://feedads.g.doubleclick.net/~a/B5uuZhAV1qZXeEGsMF6_8QatDFU/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=_IOIQMwRo2s:k2DX_X1EkY8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=_IOIQMwRo2s:k2DX_X1EkY8:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=_IOIQMwRo2s:k2DX_X1EkY8:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=_IOIQMwRo2s:k2DX_X1EkY8:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=_IOIQMwRo2s:k2DX_X1EkY8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=_IOIQMwRo2s:k2DX_X1EkY8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=_IOIQMwRo2s:k2DX_X1EkY8:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=_IOIQMwRo2s:k2DX_X1EkY8:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=_IOIQMwRo2s:k2DX_X1EkY8:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2011/09/egenting-programming-competition-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Top-Level Domain – Dot Whatever</title>
		<link>http://www.snippetit.com/2011/06/new-top-level-domain-dot-whatever/</link>
		<comments>http://www.snippetit.com/2011/06/new-top-level-domain-dot-whatever/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 15:58:46 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[New and Happening]]></category>
		<category><![CDATA[domain name]]></category>
		<category><![CDATA[ICANN]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=404</guid>
		<description><![CDATA[ICANN (Internet Corporation for Assigned Names and Numbers) has recently approved new top-leve domain name. Currently, the web has .com .net .org or country level TLDs. Soon you can expect to have .whatever domain (whatever means whatever). To have this kind of domain is not cheap. The application alone is $185,000 and the annual fee [...]]]></description>
			<content:encoded><![CDATA[<p>ICANN (Internet Corporation for Assigned Names and Numbers) has recently approved new top-leve domain name. Currently, the web has .com .net .org or country level TLDs. Soon you can expect to have .<strong>whatever</strong> domain (<strong>whatever</strong> means whatever).</p>
<p>To have this kind of domain is not cheap. The application alone is $185,000 and the annual fee is $25,000. I wonder why the application fee and the annual fee is too expensive. I think it is meant to control the number of people that own the domain names.</p>
<p>The application for the new generic will be accepted from January 12, 2012 to April 12, 2010 and the new domain name will be appear on the Internet within a year.</p>
<p>Personally I think this is a great idea because it may cause confusion to most people. People might not be able to differentiate a company domain from a government domain for instance.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=New+Top-Level+Domain+-+Dot+Whatever+-+http://bit.ly/kChPLu&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2011/06/new-top-level-domain-dot-whatever/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2011/06/new-top-level-domain-dot-whatever/&amp;submitHeadline=New+Top-Level+Domain+-+Dot+Whatever&amp;submitSummary=ICANN%20%28Internet%20Corporation%20for%20Assigned%20Names%20and%20Numbers%29%20has%20recently%20approved%20new%20top-leve%20domain%20name.%20Currently%2C%20the%20web%20has%20.com%20.net%20.org%20or%20country%20level%20TLDs.%20Soon%20you%20can%20expect%20to%20have%20.whatever%20domain%20%28whatever%20means%20whatever%29.%0D%0A%0D%0ATo%20have%20this%20kind%20of%20domain%20is%20not%20cheap.%20The%20applicatio&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2011/06/new-top-level-domain-dot-whatever/&amp;title=New+Top-Level+Domain+-+Dot+Whatever" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2011/06/new-top-level-domain-dot-whatever/&amp;title=New+Top-Level+Domain+-+Dot+Whatever" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2011/06/new-top-level-domain-dot-whatever/&amp;Title=New+Top-Level+Domain+-+Dot+Whatever" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2011/06/new-top-level-domain-dot-whatever/&amp;title=New+Top-Level+Domain+-+Dot+Whatever" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2011/06/new-top-level-domain-dot-whatever/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Most Commented Posts</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/12/google-wave-invitation-giveaway/" title="Google Wave Invitation Giveaway">Google Wave Invitation Giveaway</a></li><li><a href="http://www.snippetit.com/2008/10/implement-your-own-short-url/" title="Implement your own short URL">Implement your own short URL</a></li><li><a href="http://www.snippetit.com/2009/01/website-value-evaluation-tool/" title="Website value evaluation tool">Website value evaluation tool</a></li><li><a href="http://www.snippetit.com/2009/04/wordpress-plugin-blogtal-trackback/" title="Wordpress Plugin &#8211; Blogtal Trackback">Wordpress Plugin &#8211; Blogtal Trackback</a></li><li><a href="http://www.snippetit.com/2009/04/wordpress-plugin-default-trackbacks/" title="Wordpress Plugin &#8211; Default Trackbacks">Wordpress Plugin &#8211; Default Trackbacks</a></li><li><a href="http://www.snippetit.com/2009/02/c-loop-all-files-in-directory-and-its-sub-directories/" title="C# &#8211; Loop all files in directory and it&#8217;s sub-directories">C# &#8211; Loop all files in directory and it&#8217;s sub-directories</a></li><li><a href="http://www.snippetit.com/2009/05/wordpress-make-your-wordpress-a-little-bit-more-secure/" title="Wordpress: Make Your Wordpress A Little Bit More Secure">Wordpress: Make Your Wordpress A Little Bit More Secure</a></li><li><a href="http://www.snippetit.com/2009/05/windows-live-messenger-beware-of-unsolicited-messages-sent-from-your-friends-live-account/" title="Windows Live Messenger: Beware of Unsolicited Messages Sent From Your Friends&#8217; Live Account">Windows Live Messenger: Beware of Unsolicited Messages Sent From Your Friends&#8217; Live Account</a></li><li><a href="http://www.snippetit.com/2009/04/php-short-url-algorithm-implementation/" title="PHP: Short URL Algorithm Implementation">PHP: Short URL Algorithm Implementation</a></li><li><a href="http://www.snippetit.com/2009/07/java-mortgage-payment-calculator/" title="Java: Mortgage Payment Calculator">Java: Mortgage Payment Calculator</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/pUlfncj8J5v7SiP9V1VpwzodlIc/0/da"><img src="http://feedads.g.doubleclick.net/~a/pUlfncj8J5v7SiP9V1VpwzodlIc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/pUlfncj8J5v7SiP9V1VpwzodlIc/1/da"><img src="http://feedads.g.doubleclick.net/~a/pUlfncj8J5v7SiP9V1VpwzodlIc/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=vFKtBHKDaq4:D5Eb0lsUaWs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=vFKtBHKDaq4:D5Eb0lsUaWs:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=vFKtBHKDaq4:D5Eb0lsUaWs:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=vFKtBHKDaq4:D5Eb0lsUaWs:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=vFKtBHKDaq4:D5Eb0lsUaWs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=vFKtBHKDaq4:D5Eb0lsUaWs:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=vFKtBHKDaq4:D5Eb0lsUaWs:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=vFKtBHKDaq4:D5Eb0lsUaWs:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=vFKtBHKDaq4:D5Eb0lsUaWs:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2011/06/new-top-level-domain-dot-whatever/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Adsense: Now available for mobile (beta)</title>
		<link>http://www.snippetit.com/2011/03/google-adsense-now-available-for-mobile-beta/</link>
		<comments>http://www.snippetit.com/2011/03/google-adsense-now-available-for-mobile-beta/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 18:58:32 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Earning with Website and Blogging]]></category>
		<category><![CDATA[New and Happening]]></category>
		<category><![CDATA[Google Adsense]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/2011/03/google-adsense-now-available-for-mobile-beta/</guid>
		<description><![CDATA[Google Adsense is now available on mobile. It is still in beta mode and I have tried it now just now, not much feature but it us pretty good. You can see earnings and graphs. However it is great that now you can see your website earning on your phone! Point your browser on your [...]]]></description>
			<content:encoded><![CDATA[<p>Google Adsense is now available on mobile. It is still in beta mode and I have tried it now just now, not much feature but it us pretty good. You can see earnings and graphs.</p>
<p>However it is great that now you can see your website earning on your phone!</p>
<p>Point your browser on your mobile device to <a href="http://www.google.com/adsense">Google Adsense website</a> and it will bring you to the mobile version of Adsense website. </p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Google+Adsense%3A+Now+available+for+mobile+%28beta%29+-+http://bit.ly/hcyLEp&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2011/03/google-adsense-now-available-for-mobile-beta/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2011/03/google-adsense-now-available-for-mobile-beta/&amp;submitHeadline=Google+Adsense%3A+Now+available+for+mobile+%28beta%29&amp;submitSummary=Google%20Adsense%20is%20now%20available%20on%20mobile.%20It%20is%20still%20in%20beta%20mode%20and%20I%20have%20tried%20it%20now%20just%20now%2C%20not%20much%20feature%20but%20it%20us%20pretty%20good.%20You%20can%20see%20earnings%20and%20graphs.%0A%0AHowever%20it%20is%20great%20that%20now%20you%20can%20see%20your%20website%20earning%20on%20your%20phone%21%0A%0APoint%20your%20browser%20on%20your%20mobile%20device%20to%20Go&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2011/03/google-adsense-now-available-for-mobile-beta/&amp;title=Google+Adsense%3A+Now+available+for+mobile+%28beta%29" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2011/03/google-adsense-now-available-for-mobile-beta/&amp;title=Google+Adsense%3A+Now+available+for+mobile+%28beta%29" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2011/03/google-adsense-now-available-for-mobile-beta/&amp;Title=Google+Adsense%3A+Now+available+for+mobile+%28beta%29" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2011/03/google-adsense-now-available-for-mobile-beta/&amp;title=Google+Adsense%3A+Now+available+for+mobile+%28beta%29" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2011/03/google-adsense-now-available-for-mobile-beta/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/06/google-adsense-can-i-place-small-images-next-to-my-google-ads/" title="Google Adsense: Can I place small images next to my Google ads?">Google Adsense: Can I place small images next to my Google ads?</a></li><li><a href="http://www.snippetit.com/2009/06/syssense-view-your-google-adsens-earning-at-desktop/" title="SysSense: View Your Google Adsens Earning at Desktop">SysSense: View Your Google Adsens Earning at Desktop</a></li><li><a href="http://www.snippetit.com/2009/05/wordpress-theme-callisto-glossy-blue-3-column-widget-and-adsense-ready/" title="Wordpress Theme &#8211; Callisto &#8211; Glossy Blue, 3 Column, Widget and Adsense Ready">Wordpress Theme &#8211; Callisto &#8211; Glossy Blue, 3 Column, Widget and Adsense Ready</a></li><li><a href="http://www.snippetit.com/2009/05/google-adsense-google-ad-planner-showcase-your-site/" title="Google Adsense: Google Ad Planner &#8211; Showcase Your Site">Google Adsense: Google Ad Planner &#8211; Showcase Your Site</a></li><li><a href="http://www.snippetit.com/2009/05/google-adsense-integrate-your-adsense-account-with-google-analytics/" title="Google Adsense: Integrate Your Adsense Account with Google Analytics">Google Adsense: Integrate Your Adsense Account with Google Analytics</a></li><li><a href="http://www.snippetit.com/2009/04/how-to-monetize-your-youtube-video/" title="How to Monetize Your Youtube Video">How to Monetize Your Youtube Video</a></li><li><a href="http://www.snippetit.com/2008/10/google-chrome-bug/" title="Google Chrome Bug?">Google Chrome Bug?</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/jIv3aFAUv4gZxp6NQau2QYwq71A/0/da"><img src="http://feedads.g.doubleclick.net/~a/jIv3aFAUv4gZxp6NQau2QYwq71A/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/jIv3aFAUv4gZxp6NQau2QYwq71A/1/da"><img src="http://feedads.g.doubleclick.net/~a/jIv3aFAUv4gZxp6NQau2QYwq71A/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=huylYKSDca4:pdkyzj1UUME:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=huylYKSDca4:pdkyzj1UUME:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=huylYKSDca4:pdkyzj1UUME:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=huylYKSDca4:pdkyzj1UUME:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=huylYKSDca4:pdkyzj1UUME:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=huylYKSDca4:pdkyzj1UUME:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=huylYKSDca4:pdkyzj1UUME:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=huylYKSDca4:pdkyzj1UUME:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=huylYKSDca4:pdkyzj1UUME:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2011/03/google-adsense-now-available-for-mobile-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gmail: Priority Inbox</title>
		<link>http://www.snippetit.com/2010/09/gmail-priority-inbox/</link>
		<comments>http://www.snippetit.com/2010/09/gmail-priority-inbox/#comments</comments>
		<pubDate>Sat, 11 Sep 2010 14:58:03 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[New and Happening]]></category>
		<category><![CDATA[Gmail]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=398</guid>
		<description><![CDATA[Gmail is great and comes with a lot of useful features like labeling and filter to let your organize your mail box. Although these features are great but they work according to preset or static values. They are not smart enough. It becomes a problem when you have too much of unread emails. What if [...]]]></description>
			<content:encoded><![CDATA[<p>Gmail is great and comes with a lot of useful features like labeling and filter to let your organize your mail box. Although these features are great but they work according to preset or static values. They are not smart enough.</p>
<p>It becomes a problem when you have too much of unread emails. What if a bunch of emails come in at the same time? It could be a pain to find out which email is important to read first.<br />
<span id="more-398"></span></p>
<p>Now, Gmail introduces a new feature called "priority inbox". As its' name means, it prioritizes your emails according to how frequent you read the email from a sender, how frequent you reply email to a sender and etc. It's automatic and smart. If anything goes wrong with Gmail's intelligence, you can manually mark the email as important or as not important.</p>
<p>Take a lot at Priority Inbox and try it out!</p>
<p><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/5nt3gE9dGHQ&#038;rel=0&#038;color1=0xb1b1b1&#038;color2=0xd0d0d0&#038;hl=en_US&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/5nt3gE9dGHQ&#038;rel=0&#038;color1=0xb1b1b1&#038;color2=0xd0d0d0&#038;hl=en_US&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="385"></embed></object></p>
<p>[<a href="http://gmailblog.blogspot.com/2010/08/email-overload-try-priority-inbox.html">Read more</a>]</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Gmail%3A+Priority+Inbox+-+http://b2l.me/aq24gp&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2010/09/gmail-priority-inbox/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2010/09/gmail-priority-inbox/&amp;submitHeadline=Gmail%3A+Priority+Inbox&amp;submitSummary=Gmail%20is%20great%20and%20comes%20with%20a%20lot%20of%20useful%20features%20like%20labeling%20and%20filter%20to%20let%20your%20organize%20your%20mail%20box.%20Although%20these%20features%20are%20great%20but%20they%20work%20according%20to%20preset%20or%20static%20values.%20They%20are%20not%20smart%20enough.%0D%0A%0D%0AIt%20becomes%20a%20problem%20when%20you%20have%20too%20much%20of%20unread%20emails.%20What%20i&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2010/09/gmail-priority-inbox/&amp;title=Gmail%3A+Priority+Inbox" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2010/09/gmail-priority-inbox/&amp;title=Gmail%3A+Priority+Inbox" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2010/09/gmail-priority-inbox/&amp;Title=Gmail%3A+Priority+Inbox" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2010/09/gmail-priority-inbox/&amp;title=Gmail%3A+Priority+Inbox" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2010/09/gmail-priority-inbox/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/05/gmail-how-to-search-your-email-quickly-in-gmail/" title="Gmail: How to Search Your Email Quickly in Gmail">Gmail: How to Search Your Email Quickly in Gmail</a></li><li><a href="http://www.snippetit.com/2009/05/gmail-how-to-monitor-your-mail-account-activities/" title="Gmail: How to Monitor Your Mail Account Activities">Gmail: How to Monitor Your Mail Account Activities</a></li><li><a href="http://www.snippetit.com/2009/05/gmail-google-search-in-gmail/" title="Gmail: Google Search in Gmail">Gmail: Google Search in Gmail</a></li><li><a href="http://www.snippetit.com/2009/04/gmail-inserting-images/" title="Gmail: Inserting Images">Gmail: Inserting Images</a></li><li><a href="http://www.snippetit.com/2009/02/gmails-labels-menu/" title="Gmail&#8217;s Labels menu">Gmail&#8217;s Labels menu</a></li><li><a href="http://www.snippetit.com/2008/12/turn-your-gmails-mail-into-google-doc/" title="Turn your Gmail&#8217;s mail into Google Doc">Turn your Gmail&#8217;s mail into Google Doc</a></li><li><a href="http://www.snippetit.com/2008/12/view-pdf-in-gmail/" title="View PDF in Gmail">View PDF in Gmail</a></li><li><a href="http://www.snippetit.com/2008/12/sms-text-messaging-for-chat-in-gmail/" title="SMS Text Messaging for Chat in Gmail">SMS Text Messaging for Chat in Gmail</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/4konzrd5lqy6ByqKtHQsxSMOUDw/0/da"><img src="http://feedads.g.doubleclick.net/~a/4konzrd5lqy6ByqKtHQsxSMOUDw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/4konzrd5lqy6ByqKtHQsxSMOUDw/1/da"><img src="http://feedads.g.doubleclick.net/~a/4konzrd5lqy6ByqKtHQsxSMOUDw/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=lyP4KlJ6FB4:5VbeBWKp-eI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=lyP4KlJ6FB4:5VbeBWKp-eI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=lyP4KlJ6FB4:5VbeBWKp-eI:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=lyP4KlJ6FB4:5VbeBWKp-eI:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=lyP4KlJ6FB4:5VbeBWKp-eI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=lyP4KlJ6FB4:5VbeBWKp-eI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=lyP4KlJ6FB4:5VbeBWKp-eI:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=lyP4KlJ6FB4:5VbeBWKp-eI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=lyP4KlJ6FB4:5VbeBWKp-eI:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2010/09/gmail-priority-inbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix Shell Script: How to Receive Input Right After Echoing A Line</title>
		<link>http://www.snippetit.com/2010/08/unix-shell-script-how-to-receive-input-right-after-echoing-a-line/</link>
		<comments>http://www.snippetit.com/2010/08/unix-shell-script-how-to-receive-input-right-after-echoing-a-line/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 13:21:23 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Programming and Scripting]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=389</guid>
		<description><![CDATA[For example, say I echo a line of text in shell script and I want to receive user input just right after the text (not in the next line). The are several ways to do it: Method 1 echo "Enter a value: \c" read value Method 2 echo -n "Enter a value: " read value [...]]]></description>
			<content:encoded><![CDATA[<p>For example, say I echo a line of text in shell script and I want to receive user input just right after the text (not in the next line). The are several ways to do it:</p>
<p>Method 1</p>
<p><code>echo "Enter a value: \c"<br />
read value</code></p>
<p>Method 2</p>
<p><code>echo -n "Enter a value: "<br />
read value</code></p>
<p>Method 3</p>
<p><code>read -p "Enter a value: " value</code></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Unix+Shell+Script%3A+How+to+Receive+Input+Right+After+Echoing+A+Line+-+http://b2l.me/ahqjs5&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2010/08/unix-shell-script-how-to-receive-input-right-after-echoing-a-line/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2010/08/unix-shell-script-how-to-receive-input-right-after-echoing-a-line/&amp;submitHeadline=Unix+Shell+Script%3A+How+to+Receive+Input+Right+After+Echoing+A+Line&amp;submitSummary=For%20example%2C%20say%20I%20echo%20a%20line%20of%20text%20in%20shell%20script%20and%20I%20want%20to%20receive%20user%20input%20just%20right%20after%20the%20text%20%28not%20in%20the%20next%20line%29.%20The%20are%20several%20ways%20to%20do%20it%3A%0D%0A%0D%0AMethod%201%0D%0A%0D%0Aecho%20%22Enter%20a%20value%3A%20%5Cc%22%0D%0Aread%20value%0D%0A%0D%0AMethod%202%0D%0A%0D%0Aecho%20-n%20%22Enter%20a%20value%3A%20%22%0D%0Aread%20value%0D%0A%0D%0AMethod%203%0D%0A%0D%0Aread%20-p%20%22En&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2010/08/unix-shell-script-how-to-receive-input-right-after-echoing-a-line/&amp;title=Unix+Shell+Script%3A+How+to+Receive+Input+Right+After+Echoing+A+Line" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2010/08/unix-shell-script-how-to-receive-input-right-after-echoing-a-line/&amp;title=Unix+Shell+Script%3A+How+to+Receive+Input+Right+After+Echoing+A+Line" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2010/08/unix-shell-script-how-to-receive-input-right-after-echoing-a-line/&amp;Title=Unix+Shell+Script%3A+How+to+Receive+Input+Right+After+Echoing+A+Line" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2010/08/unix-shell-script-how-to-receive-input-right-after-echoing-a-line/&amp;title=Unix+Shell+Script%3A+How+to+Receive+Input+Right+After+Echoing+A+Line" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2010/08/unix-shell-script-how-to-receive-input-right-after-echoing-a-line/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Most Commented Posts</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/12/google-wave-invitation-giveaway/" title="Google Wave Invitation Giveaway">Google Wave Invitation Giveaway</a></li><li><a href="http://www.snippetit.com/2008/10/implement-your-own-short-url/" title="Implement your own short URL">Implement your own short URL</a></li><li><a href="http://www.snippetit.com/2009/01/website-value-evaluation-tool/" title="Website value evaluation tool">Website value evaluation tool</a></li><li><a href="http://www.snippetit.com/2009/04/wordpress-plugin-blogtal-trackback/" title="Wordpress Plugin &#8211; Blogtal Trackback">Wordpress Plugin &#8211; Blogtal Trackback</a></li><li><a href="http://www.snippetit.com/2009/04/wordpress-plugin-default-trackbacks/" title="Wordpress Plugin &#8211; Default Trackbacks">Wordpress Plugin &#8211; Default Trackbacks</a></li><li><a href="http://www.snippetit.com/2009/02/c-loop-all-files-in-directory-and-its-sub-directories/" title="C# &#8211; Loop all files in directory and it&#8217;s sub-directories">C# &#8211; Loop all files in directory and it&#8217;s sub-directories</a></li><li><a href="http://www.snippetit.com/2009/05/wordpress-make-your-wordpress-a-little-bit-more-secure/" title="Wordpress: Make Your Wordpress A Little Bit More Secure">Wordpress: Make Your Wordpress A Little Bit More Secure</a></li><li><a href="http://www.snippetit.com/2009/05/windows-live-messenger-beware-of-unsolicited-messages-sent-from-your-friends-live-account/" title="Windows Live Messenger: Beware of Unsolicited Messages Sent From Your Friends&#8217; Live Account">Windows Live Messenger: Beware of Unsolicited Messages Sent From Your Friends&#8217; Live Account</a></li><li><a href="http://www.snippetit.com/2009/04/php-short-url-algorithm-implementation/" title="PHP: Short URL Algorithm Implementation">PHP: Short URL Algorithm Implementation</a></li><li><a href="http://www.snippetit.com/2009/07/java-mortgage-payment-calculator/" title="Java: Mortgage Payment Calculator">Java: Mortgage Payment Calculator</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/ZPQ3SOgJ1S1m5ofMes9HxDKCf2M/0/da"><img src="http://feedads.g.doubleclick.net/~a/ZPQ3SOgJ1S1m5ofMes9HxDKCf2M/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ZPQ3SOgJ1S1m5ofMes9HxDKCf2M/1/da"><img src="http://feedads.g.doubleclick.net/~a/ZPQ3SOgJ1S1m5ofMes9HxDKCf2M/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=Bx_NS3JCe_w:iWBaz8F-yHQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Bx_NS3JCe_w:iWBaz8F-yHQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=Bx_NS3JCe_w:iWBaz8F-yHQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Bx_NS3JCe_w:iWBaz8F-yHQ:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Bx_NS3JCe_w:iWBaz8F-yHQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=Bx_NS3JCe_w:iWBaz8F-yHQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Bx_NS3JCe_w:iWBaz8F-yHQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Bx_NS3JCe_w:iWBaz8F-yHQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=Bx_NS3JCe_w:iWBaz8F-yHQ:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2010/08/unix-shell-script-how-to-receive-input-right-after-echoing-a-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Database: CHAR and VARCHAR – What are the differences?</title>
		<link>http://www.snippetit.com/2010/05/database-char-and-varchar-what-are-the-differences/</link>
		<comments>http://www.snippetit.com/2010/05/database-char-and-varchar-what-are-the-differences/#comments</comments>
		<pubDate>Sun, 30 May 2010 15:28:01 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Programming and Scripting]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[DBMS]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[search engine optimization]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=383</guid>
		<description><![CDATA[Most programmers may already know the main different between CHAR and VARCHAR - The first one supports fixed-length data and the second one supports variable-lengths of data. Some people may think, since VARCHAR can do what CHAR does, then why we still need CHAR in our database design. I even have heard one of the [...]]]></description>
			<content:encoded><![CDATA[<p>Most programmers may already know the main different between CHAR and VARCHAR - The first one supports fixed-length data and the second one supports variable-lengths of data.</p>
<p>Some people may think, since VARCHAR can do what CHAR does, then why we still need CHAR in our database design. I even have heard one of the very experienced Oracle database administrator say "Nowadays nobody is using CHAR anymore, you can forget about putting CHAR column in your database design".</p>
<p><span id="more-383"></span></p>
<p>The statement is not totally right. Even though VARCHAR can do what CHAR does, CHAR does has certain level of advantages over VARCHAR in terms of performance, efficiency and space.</p>
<p>I think it is good for a database designer to know how a database is being design. In other words, to think how a database programmer will design the database management system (DBMS) for the best performance and efficiency.</p>
<p>1. When a table column size is quite small, for instance 1 to 4 bytes, using CHAR helps save more space then VARCHAR. This is because DBMS will need additional few bytes (depends on database limitation for VARCHAR) to keep track the length of the data (all the rows) for the VARCHAR column.</p>
<p>2. Since VARCHAR can keep variable size of data, therefore it needs to keep track the length of the data for all the records. Therefore it adds little overhead to the DBMS's performance if compared to CHAR.</p>
<p>3. DBMS (I would say most systems) keeps fixed-length data and index more efficiently. Retrieving and updating data from and to a fixed-length row table is faster then a variable-length row table.</p>
<p>Therefore, I think CHAR is still very useful. We should always use CHAR if the column size is small enough or the data input is always going to be the size of the column (e.g. most of the data is in 10-12 bytes size and the column size is 12 bytes), so that we can get better performance for our application.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Database%3A+CHAR+and+VARCHAR+-+What+are+the+differences%3F+-+http://b2l.me/xx9ja&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2010/05/database-char-and-varchar-what-are-the-differences/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2010/05/database-char-and-varchar-what-are-the-differences/&amp;submitHeadline=Database%3A+CHAR+and+VARCHAR+-+What+are+the+differences%3F&amp;submitSummary=Most%20programmers%20may%20already%20know%20the%20main%20different%20between%20CHAR%20and%20VARCHAR%20-%20The%20first%20one%20supports%20fixed-length%20data%20and%20the%20second%20one%20supports%20variable-lengths%20of%20data.%0D%0A%0D%0ASome%20people%20may%20think%2C%20since%20VARCHAR%20can%20do%20what%20CHAR%20does%2C%20then%20why%20we%20still%20need%20CHAR%20in%20our%20database%20design.%20I%20even%20hav&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2010/05/database-char-and-varchar-what-are-the-differences/&amp;title=Database%3A+CHAR+and+VARCHAR+-+What+are+the+differences%3F" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2010/05/database-char-and-varchar-what-are-the-differences/&amp;title=Database%3A+CHAR+and+VARCHAR+-+What+are+the+differences%3F" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2010/05/database-char-and-varchar-what-are-the-differences/&amp;Title=Database%3A+CHAR+and+VARCHAR+-+What+are+the+differences%3F" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2010/05/database-char-and-varchar-what-are-the-differences/&amp;title=Database%3A+CHAR+and+VARCHAR+-+What+are+the+differences%3F" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2010/05/database-char-and-varchar-what-are-the-differences/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2010/01/java-format-integer-into-fixed-width-string/" title="Java: Format Integer Into Fixed Width String">Java: Format Integer Into Fixed Width String</a></li><li><a href="http://www.snippetit.com/2009/11/java-loading-large-data-into-jtable-or-jlist/" title="Java: Loading Large Data into JTable or JList">Java: Loading Large Data into JTable or JList</a></li><li><a href="http://www.snippetit.com/2009/05/seo-get-higher-ranking-in-search-engines/" title="SEO: Get Higher Ranking in Search Engines">SEO: Get Higher Ranking in Search Engines</a></li><li><a href="http://www.snippetit.com/2009/05/java-least-recently-used-lru-cache/" title="Java: Least Recently Used (LRU) Cache">Java: Least Recently Used (LRU) Cache</a></li><li><a href="http://www.snippetit.com/2009/05/php-how-to-protect-password-in-database-password-hashing/" title="PHP: How to Protect Password in Database &#8211; Password Hashing">PHP: How to Protect Password in Database &#8211; Password Hashing</a></li><li><a href="http://www.snippetit.com/2009/04/java-randomly-sort-values-in-a-array-the-generic-way-in-single-pasas/" title="Java: Randomly sort values in a array (the generic way) in single pass">Java: Randomly sort values in a array (the generic way) in single pass</a></li><li><a href="http://www.snippetit.com/2009/03/java-format-integer-into-number-of-decimal-places-and-performance/" title="Java: Format integer into number of decimal places and performance">Java: Format integer into number of decimal places and performance</a></li><li><a href="http://www.snippetit.com/2008/04/introduction/" title="Introduction">Introduction</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/sK-TkbBqTODuQtJ0oUtpkIEKkGw/0/da"><img src="http://feedads.g.doubleclick.net/~a/sK-TkbBqTODuQtJ0oUtpkIEKkGw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/sK-TkbBqTODuQtJ0oUtpkIEKkGw/1/da"><img src="http://feedads.g.doubleclick.net/~a/sK-TkbBqTODuQtJ0oUtpkIEKkGw/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=UOz062YRsCA:lO2tFTap0DE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=UOz062YRsCA:lO2tFTap0DE:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=UOz062YRsCA:lO2tFTap0DE:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=UOz062YRsCA:lO2tFTap0DE:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=UOz062YRsCA:lO2tFTap0DE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=UOz062YRsCA:lO2tFTap0DE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=UOz062YRsCA:lO2tFTap0DE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=UOz062YRsCA:lO2tFTap0DE:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=UOz062YRsCA:lO2tFTap0DE:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2010/05/database-char-and-varchar-what-are-the-differences/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java: Use ByteBuffer As InputStream</title>
		<link>http://www.snippetit.com/2010/01/java-use-bytebuffer-as-inputstream/</link>
		<comments>http://www.snippetit.com/2010/01/java-use-bytebuffer-as-inputstream/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 17:05:38 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Programming and Scripting]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[ByteBuffer]]></category>
		<category><![CDATA[InputStream]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=381</guid>
		<description><![CDATA[Sometime, your program may need to read data from a ByteBuffer buffer into a InputStream object. There is no class in Java library that provide the facility to do the conversion. Anyway, to use a ByteBuffer object as an InputStream is pretty simple. What you need to do is to write a class wrapper that [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime, your program may need to read data from a <code>ByteBuffer</code> buffer into a <code>InputStream</code> object. There is no class in Java library that provide the facility to do the conversion.</p>
<p>Anyway, to use a <code>ByteBuffer</code> object as an <code>InputStream</code> is pretty simple. What you need to do is to write a class wrapper that inherit <code>InputStream</code> and override the <code>read()</code> function in InputStream.</p>
<p><span id="more-381"></span></p>
<p>Here is the example:</p>
<p><code> </code></p>
<p><code></p>
<pre>public class ByteBufferInputStream extends InputStream {

  private int bbisInitPos;
  private int bbisLimit;
  private ByteBuffer bbisBuffer;

  public ByteBufferInputStream(ByteBuffer buffer) {
    this(buffer, buffer.limit() - buffer.position());
  }

  public ByteBufferInputStream(ByteBuffer buffer, int limit) {
    bbisBuffer = buffer;
    bbisLimit = limit;
    bbisInitPos = bbisBuffer.position();
  }

  @Override
  public int read() throws IOException {
    if (bbisBuffer.position() - bbisInitPos &gt; bbisLimit)
      return -1;
    return bbisBuffer.get();
  }
}</pre>
<p></code></p>
<p>In this class, <code>ByteBufferInputStream</code>, you can specify the limit to read from the <code>ByteBuffer</code> so that you can use the data in ByteBuffer later for other purposes. The read behavior is same as other <code>InputStream</code> class, where when there is no more data to read (or reached the preset limit), the <code>read()</code> function returns negative one.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Java%3A+Use+ByteBuffer+As+InputStream+-+http://b2l.me/dgdbw&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2010/01/java-use-bytebuffer-as-inputstream/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2010/01/java-use-bytebuffer-as-inputstream/&amp;submitHeadline=Java%3A+Use+ByteBuffer+As+InputStream&amp;submitSummary=Sometime%2C%20your%20program%20may%20need%20to%20read%20data%20from%20a%20ByteBuffer%20buffer%20into%20a%20InputStream%20object.%20There%20is%20no%20class%20in%20Java%20library%20that%20provide%20the%20facility%20to%20do%20the%20conversion.%0D%0A%0D%0AAnyway%2C%20to%20use%20a%20ByteBuffer%20object%20as%20an%20InputStream%20is%20pretty%20simple.%20What%20you%20need%20to%20do%20is%20to%20write%20a%20class%20wrapper&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2010/01/java-use-bytebuffer-as-inputstream/&amp;title=Java%3A+Use+ByteBuffer+As+InputStream" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2010/01/java-use-bytebuffer-as-inputstream/&amp;title=Java%3A+Use+ByteBuffer+As+InputStream" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2010/01/java-use-bytebuffer-as-inputstream/&amp;Title=Java%3A+Use+ByteBuffer+As+InputStream" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2010/01/java-use-bytebuffer-as-inputstream/&amp;title=Java%3A+Use+ByteBuffer+As+InputStream" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2010/01/java-use-bytebuffer-as-inputstream/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2010/01/java-format-integer-into-fixed-width-string/" title="Java: Format Integer Into Fixed Width String">Java: Format Integer Into Fixed Width String</a></li><li><a href="http://www.snippetit.com/2009/12/java-continuously-read-data-from-filechannel-without-mappedbytebuffer/" title="Java: Continuously Read Data From FileChannel Without MappedByteBuffer">Java: Continuously Read Data From FileChannel Without MappedByteBuffer</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-rename-permalink-url-with-ease-in-administrator-page/" title="Wordpress: Rename Permalink URL with Ease in Administrator Page">Wordpress: Rename Permalink URL with Ease in Administrator Page</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-schedule-to-publish-a-post/" title="Wordpress: Schedule to Publish a Post">Wordpress: Schedule to Publish a Post</a></li><li><a href="http://www.snippetit.com/2009/11/java-loading-large-data-into-jtable-or-jlist/" title="Java: Loading Large Data into JTable or JList">Java: Loading Large Data into JTable or JList</a></li><li><a href="http://www.snippetit.com/2009/08/java-format-long-integer-into-hexadecimal-string/" title="Java: Format Long Integer Into Hexadecimal String">Java: Format Long Integer Into Hexadecimal String</a></li><li><a href="http://www.snippetit.com/2009/07/java-mortgage-payment-calculator/" title="Java: Mortgage Payment Calculator">Java: Mortgage Payment Calculator</a></li><li><a href="http://www.snippetit.com/2009/06/java-stop-a-thread-correctly/" title="Java: Stop A Thread Correctly">Java: Stop A Thread Correctly</a></li><li><a href="http://www.snippetit.com/2009/05/java-format-bytes-array-into-hexadecimal-string/" title="Java: Format Bytes Array into Hexadecimal String">Java: Format Bytes Array into Hexadecimal String</a></li><li><a href="http://www.snippetit.com/2009/05/java-least-recently-used-lru-cache/" title="Java: Least Recently Used (LRU) Cache">Java: Least Recently Used (LRU) Cache</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/mkFfySau-JRSRG4qgPf6xZhsa9s/0/da"><img src="http://feedads.g.doubleclick.net/~a/mkFfySau-JRSRG4qgPf6xZhsa9s/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/mkFfySau-JRSRG4qgPf6xZhsa9s/1/da"><img src="http://feedads.g.doubleclick.net/~a/mkFfySau-JRSRG4qgPf6xZhsa9s/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=X3m-OyWQKdQ:lq8xtnYY2Uc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=X3m-OyWQKdQ:lq8xtnYY2Uc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=X3m-OyWQKdQ:lq8xtnYY2Uc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=X3m-OyWQKdQ:lq8xtnYY2Uc:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=X3m-OyWQKdQ:lq8xtnYY2Uc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=X3m-OyWQKdQ:lq8xtnYY2Uc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=X3m-OyWQKdQ:lq8xtnYY2Uc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=X3m-OyWQKdQ:lq8xtnYY2Uc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=X3m-OyWQKdQ:lq8xtnYY2Uc:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2010/01/java-use-bytebuffer-as-inputstream/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>100th Posts For Snippet IT</title>
		<link>http://www.snippetit.com/2010/01/100th-posts-for-snippet-it/</link>
		<comments>http://www.snippetit.com/2010/01/100th-posts-for-snippet-it/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 16:53:55 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[New and Happening]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=379</guid>
		<description><![CDATA[Finally, this blog has reached 100 posts! Yeah! It really takes a long time for me to do this because I'm not blogging this site full timely. Second, sometime I'm just out of idea what to blog. I will try work harder to share more information on programming and anything related to information technology in [...]]]></description>
			<content:encoded><![CDATA[<p>Finally, this blog has reached 100 posts! Yeah!</p>
<p>It really takes a long time for me to do this because I'm not blogging this site full timely. Second, sometime I'm just out of idea what to blog.</p>
<p>I will try work harder to share more information on programming and anything related to information technology in this new year. Thanks for reading!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=100th+Posts+For+Snippet+IT+-+http://b2l.me/dgct7&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2010/01/100th-posts-for-snippet-it/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2010/01/100th-posts-for-snippet-it/&amp;submitHeadline=100th+Posts+For+Snippet+IT&amp;submitSummary=Finally%2C%20this%20blog%20has%20reached%20100%20posts%21%20Yeah%21%0D%0A%0D%0AIt%20really%20takes%20a%20long%20time%20for%20me%20to%20do%20this%20because%20I%27m%20not%20blogging%20this%20site%20full%20timely.%20Second%2C%20sometime%20I%27m%20just%20out%20of%20idea%20what%20to%20blog.%0D%0A%0D%0AI%20will%20try%20work%20harder%20to%20share%20more%20information%20on%20programming%20and%20anything%20related%20to%20information%20&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2010/01/100th-posts-for-snippet-it/&amp;title=100th+Posts+For+Snippet+IT" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2010/01/100th-posts-for-snippet-it/&amp;title=100th+Posts+For+Snippet+IT" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2010/01/100th-posts-for-snippet-it/&amp;Title=100th+Posts+For+Snippet+IT" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2010/01/100th-posts-for-snippet-it/&amp;title=100th+Posts+For+Snippet+IT" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2010/01/100th-posts-for-snippet-it/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Most Commented Posts</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/12/google-wave-invitation-giveaway/" title="Google Wave Invitation Giveaway">Google Wave Invitation Giveaway</a></li><li><a href="http://www.snippetit.com/2008/10/implement-your-own-short-url/" title="Implement your own short URL">Implement your own short URL</a></li><li><a href="http://www.snippetit.com/2009/01/website-value-evaluation-tool/" title="Website value evaluation tool">Website value evaluation tool</a></li><li><a href="http://www.snippetit.com/2009/04/wordpress-plugin-blogtal-trackback/" title="Wordpress Plugin &#8211; Blogtal Trackback">Wordpress Plugin &#8211; Blogtal Trackback</a></li><li><a href="http://www.snippetit.com/2009/04/wordpress-plugin-default-trackbacks/" title="Wordpress Plugin &#8211; Default Trackbacks">Wordpress Plugin &#8211; Default Trackbacks</a></li><li><a href="http://www.snippetit.com/2009/02/c-loop-all-files-in-directory-and-its-sub-directories/" title="C# &#8211; Loop all files in directory and it&#8217;s sub-directories">C# &#8211; Loop all files in directory and it&#8217;s sub-directories</a></li><li><a href="http://www.snippetit.com/2009/05/wordpress-make-your-wordpress-a-little-bit-more-secure/" title="Wordpress: Make Your Wordpress A Little Bit More Secure">Wordpress: Make Your Wordpress A Little Bit More Secure</a></li><li><a href="http://www.snippetit.com/2009/05/windows-live-messenger-beware-of-unsolicited-messages-sent-from-your-friends-live-account/" title="Windows Live Messenger: Beware of Unsolicited Messages Sent From Your Friends&#8217; Live Account">Windows Live Messenger: Beware of Unsolicited Messages Sent From Your Friends&#8217; Live Account</a></li><li><a href="http://www.snippetit.com/2009/04/php-short-url-algorithm-implementation/" title="PHP: Short URL Algorithm Implementation">PHP: Short URL Algorithm Implementation</a></li><li><a href="http://www.snippetit.com/2009/07/java-mortgage-payment-calculator/" title="Java: Mortgage Payment Calculator">Java: Mortgage Payment Calculator</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/WNHredjz8RE4iXPizY9hfi152Xg/0/da"><img src="http://feedads.g.doubleclick.net/~a/WNHredjz8RE4iXPizY9hfi152Xg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/WNHredjz8RE4iXPizY9hfi152Xg/1/da"><img src="http://feedads.g.doubleclick.net/~a/WNHredjz8RE4iXPizY9hfi152Xg/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=KUmRsRiKrO0:DrXcWYNMTp8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=KUmRsRiKrO0:DrXcWYNMTp8:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=KUmRsRiKrO0:DrXcWYNMTp8:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=KUmRsRiKrO0:DrXcWYNMTp8:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=KUmRsRiKrO0:DrXcWYNMTp8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=KUmRsRiKrO0:DrXcWYNMTp8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=KUmRsRiKrO0:DrXcWYNMTp8:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=KUmRsRiKrO0:DrXcWYNMTp8:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=KUmRsRiKrO0:DrXcWYNMTp8:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2010/01/100th-posts-for-snippet-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java: Format Integer Into Fixed Width String</title>
		<link>http://www.snippetit.com/2010/01/java-format-integer-into-fixed-width-string/</link>
		<comments>http://www.snippetit.com/2010/01/java-format-integer-into-fixed-width-string/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 17:36:47 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Programming and Scripting]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[format Integer]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=374</guid>
		<description><![CDATA[Sometime, you may want to format an integer or a long value into a fixed width String. You need to display the value in fixed width especially in reports where you want to keep the numbers in aligned (e.g. 3456 as 0003456 and 1234 as 0001234). Other than that, you may also want to format the integer value [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime, you may want to format an <code>integer</code> or a <code>long</code> value into a fixed width <code>String</code>. You need to display the value in fixed width especially in reports where you want to keep the numbers in aligned (e.g. 3456 as <code>0003456</code> and 1234 as <code>0001234</code>).</p>
<p>Other than that, you may also want to format the <code>integer</code> value for a better visibility. For example, to display <code>integer</code> value as a document number (e.g. 12345678 as <code>00-01234-5678</code>), for example an account number.</p>
<p>The <code>Java.format()</code> is not flexible enough to solve my problem. At least it cannot be used to format a fixed length document number in the format I want: <code>XX-XXXX-XXXX</code>. Therefore I decide write my own format function.</p>
<p><span id="more-374"></span></p>
<p>The following function format a <code>integer</code> value into a fixed length <code>String</code>.<br />
<code> </code></p>
<p><code></p>
<pre>public class IntegerUtil {
    public static String formatFixedWidth(int value, int width) {
        char[] chars;
        int i;
        int c;

        chars = new char[width];
        for (i = 0; i &lt; width; i++) {
            c = value % 10;
            chars[width-i-1] = (char)('0' + c);
            value = value / 10;
        }
        return new String(chars);
    }
}</pre>
<p></code></p>
<p>To format the document number like the one I said above, you simply modify the source code above to add one or two lines code to append a "-" to the String when the loop iterate to the place where you want to put the "-". Remember to increase the characters buffer as well.</p>
<p>The following function shows a sample implementation of my document number format.</p>
<p><code> </code></p>
<p><code></p>
<pre>public class IntegerUtil {
  public static String formatDocumentNumber(int value) {
    char[] chars;
    int i;
    int c;
    int size;

    size = 10+2;
    chars = new char[size];
    for (i = 0; i &lt; size; i++) {
      if (i == 4 || i == 9) {
        chars[width-i-1] = '-';
        continue;
      }
      c = value % 10;
      chars[width-i-1] = (char)('0' + c);
      value = value / 10;
    }
    return new String(chars);
  }
}</pre>
<p></code></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Java%3A+Format+Integer+Into+Fixed+Width+String+-+http://b2l.me/cxtz8&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2010/01/java-format-integer-into-fixed-width-string/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2010/01/java-format-integer-into-fixed-width-string/&amp;submitHeadline=Java%3A+Format+Integer+Into+Fixed+Width+String&amp;submitSummary=Sometime%2C%20you%20may%20want%20to%20format%20an%20integer%20or%20a%20long%20value%20into%20a%20fixed%20width%C2%A0String.%20You%20need%20to%20display%20the%20value%20in%20fixed%20width%20especially%20in%20reports%20where%20you%20want%20to%20keep%20the%20numbers%20in%20aligned%20%28e.g.%203456%20as%C2%A00003456%20and%201234%20as%C2%A00001234%29.%0D%0A%0D%0AOther%20than%20that%2C%20you%20may%20also%20want%20to%20format%20the%20i&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2010/01/java-format-integer-into-fixed-width-string/&amp;title=Java%3A+Format+Integer+Into+Fixed+Width+String" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2010/01/java-format-integer-into-fixed-width-string/&amp;title=Java%3A+Format+Integer+Into+Fixed+Width+String" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2010/01/java-format-integer-into-fixed-width-string/&amp;Title=Java%3A+Format+Integer+Into+Fixed+Width+String" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2010/01/java-format-integer-into-fixed-width-string/&amp;title=Java%3A+Format+Integer+Into+Fixed+Width+String" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2010/01/java-format-integer-into-fixed-width-string/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/08/java-format-long-integer-into-hexadecimal-string/" title="Java: Format Long Integer Into Hexadecimal String">Java: Format Long Integer Into Hexadecimal String</a></li><li><a href="http://www.snippetit.com/2009/03/java-format-integer-into-number-of-decimal-places-and-performance/" title="Java: Format integer into number of decimal places and performance">Java: Format integer into number of decimal places and performance</a></li><li><a href="http://www.snippetit.com/2009/11/java-loading-large-data-into-jtable-or-jlist/" title="Java: Loading Large Data into JTable or JList">Java: Loading Large Data into JTable or JList</a></li><li><a href="http://www.snippetit.com/2009/04/java-randomly-sort-values-in-a-array-the-generic-way-in-single-pasas/" title="Java: Randomly sort values in a array (the generic way) in single pass">Java: Randomly sort values in a array (the generic way) in single pass</a></li><li><a href="http://www.snippetit.com/2009/12/java-continuously-read-data-from-filechannel-without-mappedbytebuffer/" title="Java: Continuously Read Data From FileChannel Without MappedByteBuffer">Java: Continuously Read Data From FileChannel Without MappedByteBuffer</a></li><li><a href="http://www.snippetit.com/2009/06/java-stop-a-thread-correctly/" title="Java: Stop A Thread Correctly">Java: Stop A Thread Correctly</a></li><li><a href="http://www.snippetit.com/2009/05/java-format-bytes-array-into-hexadecimal-string/" title="Java: Format Bytes Array into Hexadecimal String">Java: Format Bytes Array into Hexadecimal String</a></li><li><a href="http://www.snippetit.com/2009/05/java-least-recently-used-lru-cache/" title="Java: Least Recently Used (LRU) Cache">Java: Least Recently Used (LRU) Cache</a></li><li><a href="http://www.snippetit.com/2009/05/jsp-how-to-declare-methods-and-inner-class-in-jsp/" title="JSP: How to Declare Methods and Inner Class in JSP">JSP: How to Declare Methods and Inner Class in JSP</a></li><li><a href="http://www.snippetit.com/2009/04/php-format-integer-into-number-of-decimal-places/" title="PHP: Format integer into number of decimal places">PHP: Format integer into number of decimal places</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/MMP_Fq9akngOBE4jEnzKgUpK9GI/0/da"><img src="http://feedads.g.doubleclick.net/~a/MMP_Fq9akngOBE4jEnzKgUpK9GI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/MMP_Fq9akngOBE4jEnzKgUpK9GI/1/da"><img src="http://feedads.g.doubleclick.net/~a/MMP_Fq9akngOBE4jEnzKgUpK9GI/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=Eoo5lRu3UzE:8-22lcWJv4U:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Eoo5lRu3UzE:8-22lcWJv4U:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=Eoo5lRu3UzE:8-22lcWJv4U:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Eoo5lRu3UzE:8-22lcWJv4U:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Eoo5lRu3UzE:8-22lcWJv4U:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=Eoo5lRu3UzE:8-22lcWJv4U:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Eoo5lRu3UzE:8-22lcWJv4U:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Eoo5lRu3UzE:8-22lcWJv4U:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=Eoo5lRu3UzE:8-22lcWJv4U:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2010/01/java-format-integer-into-fixed-width-string/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Happy Holidays from your Google team!</title>
		<link>http://www.snippetit.com/2009/12/happy-holidays-from-your-google-team/</link>
		<comments>http://www.snippetit.com/2009/12/happy-holidays-from-your-google-team/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 14:40:20 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[New and Happening]]></category>
		<category><![CDATA[Google Team]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=372</guid>
		<description><![CDATA[I just got a greeting card from Google Team. Do you have one? The email entitles  "Happy Holidays from your Google team!". Opps... when do I have a Google Team that works for me? Ha ha. Anyway thank you Google! Happy Holiday too. Tweet This! Post on Google Buzz Buzz up! Share this on del.icio.us [...]]]></description>
			<content:encoded><![CDATA[<p>I just got a greeting card from Google Team. Do you have one?</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2708/4203554864_df4c03a1c6.jpg" alt="Happy Holidays from Google - Card" width="500" height="453" /></p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm5.static.flickr.com/4007/4202797821_005db96929.jpg" alt="Happy Holidays from Google - Earth" width="500" height="339" /></p>
<p>The email entitles  "Happy Holidays from your Google team!". Opps... when do I have a Google Team that works for me? Ha ha.</p>
<p>Anyway thank you Google! Happy Holiday too.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Happy+Holidays+from+your+Google+team%21+-+http://b2l.me/bxvrj&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2009/12/happy-holidays-from-your-google-team/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2009/12/happy-holidays-from-your-google-team/&amp;submitHeadline=Happy+Holidays+from+your+Google+team%21&amp;submitSummary=I%20just%20got%20a%20greeting%20card%20from%20Google%20Team.%20Do%20you%20have%20one%3F%0D%0A%0D%0A%0D%0AThe%20email%20entitles%20%C2%A0%22Happy%20Holidays%20from%20your%20Google%20team%21%22.%20Opps...%20when%20do%20I%20have%20a%20Google%20Team%20that%20works%20for%20me%3F%20Ha%20ha.%0D%0A%0D%0AAnyway%20thank%20you%20Google%21%20Happy%20Holiday%20too.&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2009/12/happy-holidays-from-your-google-team/&amp;title=Happy+Holidays+from+your+Google+team%21" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2009/12/happy-holidays-from-your-google-team/&amp;title=Happy+Holidays+from+your+Google+team%21" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2009/12/happy-holidays-from-your-google-team/&amp;Title=Happy+Holidays+from+your+Google+team%21" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2009/12/happy-holidays-from-your-google-team/&amp;title=Happy+Holidays+from+your+Google+team%21" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2009/12/happy-holidays-from-your-google-team/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Most Commented Posts</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/12/google-wave-invitation-giveaway/" title="Google Wave Invitation Giveaway">Google Wave Invitation Giveaway</a></li><li><a href="http://www.snippetit.com/2008/10/implement-your-own-short-url/" title="Implement your own short URL">Implement your own short URL</a></li><li><a href="http://www.snippetit.com/2009/01/website-value-evaluation-tool/" title="Website value evaluation tool">Website value evaluation tool</a></li><li><a href="http://www.snippetit.com/2009/04/wordpress-plugin-blogtal-trackback/" title="Wordpress Plugin &#8211; Blogtal Trackback">Wordpress Plugin &#8211; Blogtal Trackback</a></li><li><a href="http://www.snippetit.com/2009/04/wordpress-plugin-default-trackbacks/" title="Wordpress Plugin &#8211; Default Trackbacks">Wordpress Plugin &#8211; Default Trackbacks</a></li><li><a href="http://www.snippetit.com/2009/02/c-loop-all-files-in-directory-and-its-sub-directories/" title="C# &#8211; Loop all files in directory and it&#8217;s sub-directories">C# &#8211; Loop all files in directory and it&#8217;s sub-directories</a></li><li><a href="http://www.snippetit.com/2009/05/wordpress-make-your-wordpress-a-little-bit-more-secure/" title="Wordpress: Make Your Wordpress A Little Bit More Secure">Wordpress: Make Your Wordpress A Little Bit More Secure</a></li><li><a href="http://www.snippetit.com/2009/05/windows-live-messenger-beware-of-unsolicited-messages-sent-from-your-friends-live-account/" title="Windows Live Messenger: Beware of Unsolicited Messages Sent From Your Friends&#8217; Live Account">Windows Live Messenger: Beware of Unsolicited Messages Sent From Your Friends&#8217; Live Account</a></li><li><a href="http://www.snippetit.com/2009/04/php-short-url-algorithm-implementation/" title="PHP: Short URL Algorithm Implementation">PHP: Short URL Algorithm Implementation</a></li><li><a href="http://www.snippetit.com/2009/07/java-mortgage-payment-calculator/" title="Java: Mortgage Payment Calculator">Java: Mortgage Payment Calculator</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/kh5WXaK1aCHHPjL7cO2izrAWthI/0/da"><img src="http://feedads.g.doubleclick.net/~a/kh5WXaK1aCHHPjL7cO2izrAWthI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/kh5WXaK1aCHHPjL7cO2izrAWthI/1/da"><img src="http://feedads.g.doubleclick.net/~a/kh5WXaK1aCHHPjL7cO2izrAWthI/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=jgY4svbDyPw:Qks7uc5TCxs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=jgY4svbDyPw:Qks7uc5TCxs:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=jgY4svbDyPw:Qks7uc5TCxs:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=jgY4svbDyPw:Qks7uc5TCxs:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=jgY4svbDyPw:Qks7uc5TCxs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=jgY4svbDyPw:Qks7uc5TCxs:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=jgY4svbDyPw:Qks7uc5TCxs:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=jgY4svbDyPw:Qks7uc5TCxs:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=jgY4svbDyPw:Qks7uc5TCxs:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/12/happy-holidays-from-your-google-team/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Wave Invitation Giveaway</title>
		<link>http://www.snippetit.com/2009/12/google-wave-invitation-giveaway/</link>
		<comments>http://www.snippetit.com/2009/12/google-wave-invitation-giveaway/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 12:20:12 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[New and Happening]]></category>
		<category><![CDATA[Programming and Scripting]]></category>
		<category><![CDATA[Software and Hardware]]></category>
		<category><![CDATA[Google Wave]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=365</guid>
		<description><![CDATA[I got my free Google Wave invitation from LiewCf, thanks for the invitation! Ok, now is my turn to give you guys, my blog readers, the free invitations. First impression to Google Wave To me, Google Wave is like a chatting program (e.g. MSN) where a few people can have collaboration in a channel (the Wave). Everything [...]]]></description>
			<content:encoded><![CDATA[<p>I got my free Google Wave invitation from <a href="http://www.liewcf.com/archives/2009/11/free-google-wave-invites-giveaway/" target="_blank">LiewCf</a>, thanks for the invitation! Ok, now is my turn to give you guys, my blog readers, the free invitations.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm5.static.flickr.com/4042/4199247557_f5ddebe157.jpg" alt="Google Wave Invitation" width="500" height="394" /></p>
<p><span id="more-365"></span><strong>First impression to Google Wave</strong></p>
<p>To me, Google Wave is like a chatting program (e.g. MSN) where a few people can have collaboration in a channel (the Wave). Everything can be happened in real time (e.g. the message you type) and everyone in the Wave can see the chances in real time (almost). And it is also like a social website (e.g. Facebook) too where you can put in applications (Gadgets) and use it within a group of people.</p>
<p><strong>How to Get a Free Google Wave Invitation?</strong></p>
<p>It's very simple. All you need to do is to leave a comment in this post (with your email address) and state that you want to have a free Google Wave Invitation.</p>
<p>You will not need to do anything else in order to get the invitation but it would be appreciated, if you could subscribe to my blog feed. Thanks.</p>
<p>Be hurry, I only have 8 invitations in total. First come first served.</p>
<p><strong>Invitations left: 1</strong></p>
<p>Note: It may take some time to get the invitation arrive to you inbox (as according to Google Wave).</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Google+Wave+Invitation+Giveaway+-+http://b2l.me/bvy3r&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2009/12/google-wave-invitation-giveaway/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2009/12/google-wave-invitation-giveaway/&amp;submitHeadline=Google+Wave+Invitation+Giveaway&amp;submitSummary=I%20got%20my%20free%20Google%20Wave%20invitation%20from%20LiewCf%2C%20thanks%20for%20the%20invitation%21%20Ok%2C%20now%20is%20my%20turn%20to%20give%20you%20guys%2C%20my%20blog%20readers%2C%20the%20free%20invitations.%0D%0A%0D%0AFirst%20impression%20to%20Google%20Wave%0D%0A%0D%0ATo%20me%2C%20Google%20Wave%20is%20like%20a%20chatting%20program%20%28e.g.%20MSN%29%20where%20a%20few%20people%20can%20have%C2%A0collaboration%C2%A0in%20a%20cha&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2009/12/google-wave-invitation-giveaway/&amp;title=Google+Wave+Invitation+Giveaway" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2009/12/google-wave-invitation-giveaway/&amp;title=Google+Wave+Invitation+Giveaway" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2009/12/google-wave-invitation-giveaway/&amp;Title=Google+Wave+Invitation+Giveaway" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2009/12/google-wave-invitation-giveaway/&amp;title=Google+Wave+Invitation+Giveaway" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2009/12/google-wave-invitation-giveaway/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Most Commented Posts</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/12/google-wave-invitation-giveaway/" title="Google Wave Invitation Giveaway">Google Wave Invitation Giveaway</a></li><li><a href="http://www.snippetit.com/2008/10/implement-your-own-short-url/" title="Implement your own short URL">Implement your own short URL</a></li><li><a href="http://www.snippetit.com/2009/01/website-value-evaluation-tool/" title="Website value evaluation tool">Website value evaluation tool</a></li><li><a href="http://www.snippetit.com/2009/04/wordpress-plugin-blogtal-trackback/" title="Wordpress Plugin &#8211; Blogtal Trackback">Wordpress Plugin &#8211; Blogtal Trackback</a></li><li><a href="http://www.snippetit.com/2009/04/wordpress-plugin-default-trackbacks/" title="Wordpress Plugin &#8211; Default Trackbacks">Wordpress Plugin &#8211; Default Trackbacks</a></li><li><a href="http://www.snippetit.com/2009/02/c-loop-all-files-in-directory-and-its-sub-directories/" title="C# &#8211; Loop all files in directory and it&#8217;s sub-directories">C# &#8211; Loop all files in directory and it&#8217;s sub-directories</a></li><li><a href="http://www.snippetit.com/2009/05/wordpress-make-your-wordpress-a-little-bit-more-secure/" title="Wordpress: Make Your Wordpress A Little Bit More Secure">Wordpress: Make Your Wordpress A Little Bit More Secure</a></li><li><a href="http://www.snippetit.com/2009/05/windows-live-messenger-beware-of-unsolicited-messages-sent-from-your-friends-live-account/" title="Windows Live Messenger: Beware of Unsolicited Messages Sent From Your Friends&#8217; Live Account">Windows Live Messenger: Beware of Unsolicited Messages Sent From Your Friends&#8217; Live Account</a></li><li><a href="http://www.snippetit.com/2009/04/php-short-url-algorithm-implementation/" title="PHP: Short URL Algorithm Implementation">PHP: Short URL Algorithm Implementation</a></li><li><a href="http://www.snippetit.com/2009/07/java-mortgage-payment-calculator/" title="Java: Mortgage Payment Calculator">Java: Mortgage Payment Calculator</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/Mt1xv8fqRJauP3MosOpri7U1Gt8/0/da"><img src="http://feedads.g.doubleclick.net/~a/Mt1xv8fqRJauP3MosOpri7U1Gt8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Mt1xv8fqRJauP3MosOpri7U1Gt8/1/da"><img src="http://feedads.g.doubleclick.net/~a/Mt1xv8fqRJauP3MosOpri7U1Gt8/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=2yqdD8Ek1Fc:Wdh0CSQLo9A:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=2yqdD8Ek1Fc:Wdh0CSQLo9A:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=2yqdD8Ek1Fc:Wdh0CSQLo9A:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=2yqdD8Ek1Fc:Wdh0CSQLo9A:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=2yqdD8Ek1Fc:Wdh0CSQLo9A:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=2yqdD8Ek1Fc:Wdh0CSQLo9A:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=2yqdD8Ek1Fc:Wdh0CSQLo9A:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=2yqdD8Ek1Fc:Wdh0CSQLo9A:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=2yqdD8Ek1Fc:Wdh0CSQLo9A:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/12/google-wave-invitation-giveaway/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>WordPress: Version 2.9</title>
		<link>http://www.snippetit.com/2009/12/wordpress-version-2-9/</link>
		<comments>http://www.snippetit.com/2009/12/wordpress-version-2-9/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 11:58:35 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Earning with Website and Blogging]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress plugin]]></category>
		<category><![CDATA[wordpress theme]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=363</guid>
		<description><![CDATA[The latest WordPress version 2.9 is now available for download. The new WordPress has a new codename - Carmen - which is named in honor of magical jazz vocalist Carmen McRae (whom were added to the Last.fm WP release station). Here are the cool stuffs from user point of view and feature highlights: Global undo/”trash” [...]]]></description>
			<content:encoded><![CDATA[<p>The latest WordPress version 2.9 is now available for <a href="http://wordpress.org/download/" target="_blank">download</a>. The new WordPress has a new codename - <em>Carmen</em> - which is named in honor of magical jazz vocalist Carmen McRae (whom were added to the <a href="http://www.last.fm/tag/wordpress-release-jazz" target="_blank">Last.fm WP release station</a>).</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2583/4196537395_88f6afb349.jpg" alt="Wordpress Version 2.9" width="500" height="219" /></p>
<p><span id="more-363"></span>Here are the cool stuffs from user point of view and feature highlights:</p>
<ul>
<li><strong>Global undo/”trash” feature</strong> -  trash is added to the blogging system where you can temporary put the unwanted things (e.g. post and comment) in the trash. You can undo the action by restoring the deleted item from the trash too.</li>
<li><strong>Built-in image editor</strong> - This is pretty cool when you want to have control over you images. You can edit, rotate and etc like how you do it in an image editing software.</li>
<li><strong>Batch plugin update and compatibility checking</strong> - Update all you plugins at once without having clicks for each one. It is also now support compatibility checking to see if the plugin compatible with your current version of WordPress.</li>
<li><strong>Easier video embeds</strong> - Inserting videos to post is now much easier. Instead of copying codes and paste it to your post under HTML mode. You can now simply copy the URL of the video to WordPress and it will do the rest for you. The following websites are supported: YouTube, Daily Motion, Blip.tv, Flickr, Hulu, Viddler, Qik, Revision3, Scribd, Google Video, Photobucket, PollDaddy, and WordPress.tv</li>
</ul>
<p>There are a lot more features have been added to the new version of WordPress such as to support better SEO, new TinyMCE and etc.  Visit WordPress Blog for <a href="http://wordpress.org/development/2009/12/wordpress-2-9/" target="_blank">WordPress Version 2.9</a> to read more about it.</p>
<p>To start upgrade, simply click on the upgrade link on top of the admin page after you have logged in as an administrator. If you don't see the link, you can kick start the upgrade by clicking the "Tools -&gt; Upgrade on your left side bar of admin page to check for unpgrade.</p>
<p>If you are new to WordPress, you can <a href="http://wordpress.org/download/" target="_blank">download the latest WordPress here</a>.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Wordpress%3A+Version+2.9+-+http://b2l.me/bt8gf&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2009/12/wordpress-version-2-9/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2009/12/wordpress-version-2-9/&amp;submitHeadline=Wordpress%3A+Version+2.9&amp;submitSummary=The%20latest%20Wordpress%20version%202.9%20is%20now%20available%20for%20download.%20The%20new%20Wordpress%20has%20a%20new%20codename%20-%20Carmen%20-%20which%20is%20named%20in%20honor%20of%20magical%20jazz%20vocalist%20Carmen%20McRae%20%28whom%20were%20added%20to%20the%20Last.fm%20WP%20release%20station%29.%0D%0A%0D%0AHere%20are%20the%20cool%20stuffs%20from%20user%20point%20of%20view%20and%20feature%20highlight&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2009/12/wordpress-version-2-9/&amp;title=Wordpress%3A+Version+2.9" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2009/12/wordpress-version-2-9/&amp;title=Wordpress%3A+Version+2.9" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2009/12/wordpress-version-2-9/&amp;Title=Wordpress%3A+Version+2.9" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2009/12/wordpress-version-2-9/&amp;title=Wordpress%3A+Version+2.9" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2009/12/wordpress-version-2-9/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/07/wordpress-2-8-1/" title="Wordpress: 2.8.1">Wordpress: 2.8.1</a></li><li><a href="http://www.snippetit.com/2009/06/wordpress-version-2-8/" title="WordPress: Version 2.8">WordPress: Version 2.8</a></li><li><a href="http://www.snippetit.com/2009/12/wordpress-catch-a-spamm-comment-with-statcounter/" title="Wordpress: Catch A Spam Comment With Statcounter">Wordpress: Catch A Spam Comment With Statcounter</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-how-to-add-table-into-a-post/" title="Wordpress: How To Add Table Into A Post">Wordpress: How To Add Table Into A Post</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-rename-permalink-url-with-ease-in-administrator-page/" title="Wordpress: Rename Permalink URL with Ease in Administrator Page">Wordpress: Rename Permalink URL with Ease in Administrator Page</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-schedule-to-publish-a-post/" title="Wordpress: Schedule to Publish a Post">Wordpress: Schedule to Publish a Post</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-version-2-8-6-security-release/" title="Wordpress: Version 2.8.6 Security Release">Wordpress: Version 2.8.6 Security Release</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-plugin-official-statcounter-plugin/" title="Wordpress Plugin: Official StatCounter Plugin">Wordpress Plugin: Official StatCounter Plugin</a></li><li><a href="http://www.snippetit.com/2009/05/wordpress-theme-callisto-glossy-blue-3-column-widget-and-adsense-ready/" title="Wordpress Theme &#8211; Callisto &#8211; Glossy Blue, 3 Column, Widget and Adsense Ready">Wordpress Theme &#8211; Callisto &#8211; Glossy Blue, 3 Column, Widget and Adsense Ready</a></li><li><a href="http://www.snippetit.com/2009/05/wordpress-make-your-wordpress-a-little-bit-more-secure/" title="Wordpress: Make Your Wordpress A Little Bit More Secure">Wordpress: Make Your Wordpress A Little Bit More Secure</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/S15LJ7mg6sQa_205pngWRHjUjtE/0/da"><img src="http://feedads.g.doubleclick.net/~a/S15LJ7mg6sQa_205pngWRHjUjtE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/S15LJ7mg6sQa_205pngWRHjUjtE/1/da"><img src="http://feedads.g.doubleclick.net/~a/S15LJ7mg6sQa_205pngWRHjUjtE/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=J-U7VEgNNMQ:Z8_vjwf92HA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=J-U7VEgNNMQ:Z8_vjwf92HA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=J-U7VEgNNMQ:Z8_vjwf92HA:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=J-U7VEgNNMQ:Z8_vjwf92HA:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=J-U7VEgNNMQ:Z8_vjwf92HA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=J-U7VEgNNMQ:Z8_vjwf92HA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=J-U7VEgNNMQ:Z8_vjwf92HA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=J-U7VEgNNMQ:Z8_vjwf92HA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=J-U7VEgNNMQ:Z8_vjwf92HA:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/12/wordpress-version-2-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Acrobat Reader: Possible Security Vulnerability When Acrobat JavaScript Is Enabled</title>
		<link>http://www.snippetit.com/2009/12/adobe-acrobat-reader-possible-security-vulnerability-when-acrobat-javascript-is-enabled/</link>
		<comments>http://www.snippetit.com/2009/12/adobe-acrobat-reader-possible-security-vulnerability-when-acrobat-javascript-is-enabled/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 16:16:43 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Programming and Scripting]]></category>
		<category><![CDATA[Software and Hardware]]></category>
		<category><![CDATA[Acrobat Reader]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[security vulnerability]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=361</guid>
		<description><![CDATA[It is possible to have security vulnerability in Adobe's Acrobat Reader if the Acrobat Javascript option is enable. When the option is enabled and you open a crafted PDF file with Adobe Reader that allows JavaScript execution, your computer will be exposed to security risk - hacker may able to access your valuable data from your hard [...]]]></description>
			<content:encoded><![CDATA[<p>It is possible to have security vulnerability in Adobe's Acrobat Reader if the Acrobat Javascript option is enable.</p>
<p>When the option is enabled and you open a crafted PDF file with Adobe Reader that allows JavaScript execution, your computer will be exposed to security risk - hacker may able to access your valuable data from your hard disk.</p>
<p><span id="more-361"></span></p>
<p>JavaScript is a scripting language that is tend to be safe to be used in web browsers due to its limitation to access to client computer. Since it is safe, your antivirus software may not able to detect a pdf file with Javascript is actually contain an virus.</p>
<p>To prevent the security vulnerability, you should now check whether your Adobe Acrobat's Javascript option is enabled. If it is enabled, disable it as soon as possible. The default setting for Acrobat Javascript is set to enabled for most of the Acrobat Reader version.</p>
<p>To disable the option, open your Acrobat Reader application, click on Edit -&gt; Preferences and a window will pop up. Select the "JavaScript" option from your left and make sure the "Enable Acrobat JavaScript" option is un-ticked.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2504/4193101414_cdaf1df3e7.jpg" alt="Possible Security Vulnerability  in Adobe Acrobat Reader" width="500" height="413" /></p>
<p>Thanks for Walker for heading up the <a href="http://www.walkernews.net/2009/12/16/disable-adobe-reader-javascript-function-or-take-the-risk/" target="_blank">Acrobat JavaScript</a> issue.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Adobe+Acrobat+Reader%3A+Possible+Security+Vulnerability+When+Acrobat+JavaScript+Is%5B..%5D+-+http://b2l.me/bqshw&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2009/12/adobe-acrobat-reader-possible-security-vulnerability-when-acrobat-javascript-is-enabled/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2009/12/adobe-acrobat-reader-possible-security-vulnerability-when-acrobat-javascript-is-enabled/&amp;submitHeadline=Adobe+Acrobat+Reader%3A+Possible+Security+Vulnerability+When+Acrobat+JavaScript+Is+Enabled&amp;submitSummary=It%20is%20possible%20to%20have%20security%C2%A0vulnerability%C2%A0in%20Adobe%27s%20Acrobat%20Reader%20if%20the%20Acrobat%20Javascript%20option%20is%20enable.%0D%0A%0D%0AWhen%20the%20option%20is%20enabled%20and%20you%20open%20a%20crafted%20PDF%20file%20with%20Adobe%20Reader%20that%20allows%20JavaScript%20execution%2C%20your%20computer%20will%20be%20exposed%20to%20security%20risk%20-%20hacker%20may%20able%20to%20&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2009/12/adobe-acrobat-reader-possible-security-vulnerability-when-acrobat-javascript-is-enabled/&amp;title=Adobe+Acrobat+Reader%3A+Possible+Security+Vulnerability+When+Acrobat+JavaScript+Is+Enabled" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2009/12/adobe-acrobat-reader-possible-security-vulnerability-when-acrobat-javascript-is-enabled/&amp;title=Adobe+Acrobat+Reader%3A+Possible+Security+Vulnerability+When+Acrobat+JavaScript+Is+Enabled" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2009/12/adobe-acrobat-reader-possible-security-vulnerability-when-acrobat-javascript-is-enabled/&amp;Title=Adobe+Acrobat+Reader%3A+Possible+Security+Vulnerability+When+Acrobat+JavaScript+Is+Enabled" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2009/12/adobe-acrobat-reader-possible-security-vulnerability-when-acrobat-javascript-is-enabled/&amp;title=Adobe+Acrobat+Reader%3A+Possible+Security+Vulnerability+When+Acrobat+JavaScript+Is+Enabled" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2009/12/adobe-acrobat-reader-possible-security-vulnerability-when-acrobat-javascript-is-enabled/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/11/javascript-overcome-slow-loading-javascript-on-a-web-page/" title="JavaScript: Overcome Slow Loading JavaScript On A Web Page">JavaScript: Overcome Slow Loading JavaScript On A Web Page</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-version-2-8-6-security-release/" title="Wordpress: Version 2.8.6 Security Release">Wordpress: Version 2.8.6 Security Release</a></li><li><a href="http://www.snippetit.com/2009/05/windows-live-messenger-beware-of-unsolicited-messages-sent-from-your-friends-live-account/" title="Windows Live Messenger: Beware of Unsolicited Messages Sent From Your Friends&#8217; Live Account">Windows Live Messenger: Beware of Unsolicited Messages Sent From Your Friends&#8217; Live Account</a></li><li><a href="http://www.snippetit.com/2009/05/get-paid-to-be-a-hacker/" title="Get Paid to Be a Hacker!">Get Paid to Be a Hacker!</a></li><li><a href="http://www.snippetit.com/2009/05/wordpress-make-your-wordpress-a-little-bit-more-secure/" title="Wordpress: Make Your Wordpress A Little Bit More Secure">Wordpress: Make Your Wordpress A Little Bit More Secure</a></li><li><a href="http://www.snippetit.com/2009/05/gmail-how-to-monitor-your-mail-account-activities/" title="Gmail: How to Monitor Your Mail Account Activities">Gmail: How to Monitor Your Mail Account Activities</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/uJGedweA5X_gV_f0rJHw3rnuVVM/0/da"><img src="http://feedads.g.doubleclick.net/~a/uJGedweA5X_gV_f0rJHw3rnuVVM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/uJGedweA5X_gV_f0rJHw3rnuVVM/1/da"><img src="http://feedads.g.doubleclick.net/~a/uJGedweA5X_gV_f0rJHw3rnuVVM/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=Tvs8tKiXrWs:Qu1yOj16WRQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Tvs8tKiXrWs:Qu1yOj16WRQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=Tvs8tKiXrWs:Qu1yOj16WRQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Tvs8tKiXrWs:Qu1yOj16WRQ:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Tvs8tKiXrWs:Qu1yOj16WRQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=Tvs8tKiXrWs:Qu1yOj16WRQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Tvs8tKiXrWs:Qu1yOj16WRQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Tvs8tKiXrWs:Qu1yOj16WRQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=Tvs8tKiXrWs:Qu1yOj16WRQ:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/12/adobe-acrobat-reader-possible-security-vulnerability-when-acrobat-javascript-is-enabled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java: Continuously Read Data From FileChannel Without MappedByteBuffer</title>
		<link>http://www.snippetit.com/2009/12/java-continuously-read-data-from-filechannel-without-mappedbytebuffer/</link>
		<comments>http://www.snippetit.com/2009/12/java-continuously-read-data-from-filechannel-without-mappedbytebuffer/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 11:46:01 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Programming and Scripting]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[FileChannel]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[MappedByteBuffer]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=359</guid>
		<description><![CDATA[When programmer writes a program to read data from a file continuously and sequentially with a fixed data type reading sequence (e.g. to read three integers then 2 doubles repeatedly), he or she may find the MappedByteBuffer from Java library is useful. MappedByteBuffer is pretty useful because its content is a memory-mapped region of a file. Program [...]]]></description>
			<content:encoded><![CDATA[<p>When programmer writes a program to read data from a file continuously and sequentially with a fixed data type reading sequence (e.g. to read three <code>integer</code>s then 2 <code>double</code>s repeatedly), he or she may find the <code>MappedByteBuffer</code> from Java library is useful.</p>
<p><span id="more-359"></span><code>MappedByteBuffer</code> is pretty useful because its content is a memory-mapped region of a file. Program can access to the position of the file it wants directly. It also does some optimization on loading data from file, where part of the content are loaded into memory before the <em>read</em> action is actually performed. But when the data will be load? It remains unknown and it is operating system dependent. This is the first problem when using <code>MappedByteBuffer</code> - are the data buffered?</p>
<p>The second problem arises when programmer uses <code>MappedByteBuffer</code> to read a big file. <code>MappedByteBuffer</code> only allows data reading up to the maximum value of an integer (2,147,483,648 bytes). If the program needs to read further from that, it will need to re-map the file by calling the <code>FileChannle.map</code> function by parsing in the correct file position. The programmer will need to be very careful in passing the correct file position because some time it can be very confusing.</p>
<p>To overcome these two problems, we can introduce, design and write a new class that ensures the data reading action is buffered for the best performance and also allows continuous of reading without the need of re-mapping the <code>FileChannle</code>. First, let's write out the pseudo code for the <em>read</em> file action:</p>
<p><code></p>
<pre>get data (e.g. get integer)
  ensure the memory buffer has enough data for the requested data type
    if not enough, read data from file
read the data from buffer and return them in the requested data type</pre>
<p></code></p>
<p>Below is the example of implementation:</p>
<p><code></p>
<pre>public class FileChannelReader {

  private final static int BUFFER_SIZE = 64 * 1024; // 64k

  private ByteBuffer readerBuffer;
  private FileChannel readerFileChannel;

  public FileChannelReader(FileChannel fileChannel) {
    readerBuffer = ByteBuffer.allocate(PAGE_SIZE);
    readerFileChannel = fileChannel;
    readerBuffer.clear();
    readerBuffer.flip();
  }

  // Ensure the buffer has enough data
  private void ensureData(int size) throws IOException  {
    if (readerBuffer.remaining() &lt; size) {
      readerBuffer.compact();
      if (readerFileChannel.read(readerBuffer) &lt;= 0)
        throw new IOException("Unexpected end-of-stream");
      readerBuffer.flip();
    }
  }

  // Get current position
  public long position() throws IOException {
    return readerFileChannel.position() - readerBuffer.remaining();
  }

  // Set current position
  public void position(long position) throws IOException {
    readerFileChannel.position(position);
    readerBuffer.clear();
    readerBuffer.flip();
  }

  // Get integer
  public int getInt() throws IOException {
    ensureData(Integer.SIZE/8);
    return readerBuffer.getInt();
  }

  // Get long
  public long getLong() throws IOException {
    ensureData(Long.SIZE/8);
    return readerBuffer.getLong();
  }

  // And so on ...
}</pre>
<p></code><br />
I'm using this technique in my programming projects and it performs pretty well. The data to be read is always ensured to be buffered and it also reduces complexity in writing a program to read data sequentially.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Java%3A+Continuously+Read+Data+From+FileChannel+Without+MappedByteBuffer+-+http://b2l.me/bqdbj&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2009/12/java-continuously-read-data-from-filechannel-without-mappedbytebuffer/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2009/12/java-continuously-read-data-from-filechannel-without-mappedbytebuffer/&amp;submitHeadline=Java%3A+Continuously+Read+Data+From+FileChannel+Without+MappedByteBuffer&amp;submitSummary=When%20programmer%20writes%20a%20program%20to%20read%20data%20from%20a%20file%20continuously%20and%C2%A0sequentially%C2%A0with%20a%20fixed%20data%20type%20reading%20sequence%20%28e.g.%20to%20read%20three%20integers%20then%202%20doubles%20repeatedly%29%2C%20he%20or%20she%20may%20find%20the%20MappedByteBuffer%20from%20Java%20library%20is%20useful.%0D%0A%0D%0AMappedByteBuffer%20is%20pretty%20useful%20because&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2009/12/java-continuously-read-data-from-filechannel-without-mappedbytebuffer/&amp;title=Java%3A+Continuously+Read+Data+From+FileChannel+Without+MappedByteBuffer" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2009/12/java-continuously-read-data-from-filechannel-without-mappedbytebuffer/&amp;title=Java%3A+Continuously+Read+Data+From+FileChannel+Without+MappedByteBuffer" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2009/12/java-continuously-read-data-from-filechannel-without-mappedbytebuffer/&amp;Title=Java%3A+Continuously+Read+Data+From+FileChannel+Without+MappedByteBuffer" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2009/12/java-continuously-read-data-from-filechannel-without-mappedbytebuffer/&amp;title=Java%3A+Continuously+Read+Data+From+FileChannel+Without+MappedByteBuffer" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2009/12/java-continuously-read-data-from-filechannel-without-mappedbytebuffer/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2010/01/java-format-integer-into-fixed-width-string/" title="Java: Format Integer Into Fixed Width String">Java: Format Integer Into Fixed Width String</a></li><li><a href="http://www.snippetit.com/2009/11/java-loading-large-data-into-jtable-or-jlist/" title="Java: Loading Large Data into JTable or JList">Java: Loading Large Data into JTable or JList</a></li><li><a href="http://www.snippetit.com/2009/08/java-format-long-integer-into-hexadecimal-string/" title="Java: Format Long Integer Into Hexadecimal String">Java: Format Long Integer Into Hexadecimal String</a></li><li><a href="http://www.snippetit.com/2009/06/java-stop-a-thread-correctly/" title="Java: Stop A Thread Correctly">Java: Stop A Thread Correctly</a></li><li><a href="http://www.snippetit.com/2009/05/jsp-how-to-declare-methods-and-inner-class-in-jsp/" title="JSP: How to Declare Methods and Inner Class in JSP">JSP: How to Declare Methods and Inner Class in JSP</a></li><li><a href="http://www.snippetit.com/2009/04/java-randomly-sort-values-in-a-array-the-generic-way-in-single-pasas/" title="Java: Randomly sort values in a array (the generic way) in single pass">Java: Randomly sort values in a array (the generic way) in single pass</a></li><li><a href="http://www.snippetit.com/2009/03/java-format-integer-into-number-of-decimal-places-and-performance/" title="Java: Format integer into number of decimal places and performance">Java: Format integer into number of decimal places and performance</a></li><li><a href="http://www.snippetit.com/2009/03/java-static-constructor/" title="Java Static Constructor">Java Static Constructor</a></li><li><a href="http://www.snippetit.com/2010/01/java-use-bytebuffer-as-inputstream/" title="Java: Use ByteBuffer As InputStream">Java: Use ByteBuffer As InputStream</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-how-to-add-table-into-a-post/" title="Wordpress: How To Add Table Into A Post">Wordpress: How To Add Table Into A Post</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/JT-ECNIe7rGflR6KfSALhjPqJhM/0/da"><img src="http://feedads.g.doubleclick.net/~a/JT-ECNIe7rGflR6KfSALhjPqJhM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/JT-ECNIe7rGflR6KfSALhjPqJhM/1/da"><img src="http://feedads.g.doubleclick.net/~a/JT-ECNIe7rGflR6KfSALhjPqJhM/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=Z--JGU1PjPg:K4-B14i0zC0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Z--JGU1PjPg:K4-B14i0zC0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=Z--JGU1PjPg:K4-B14i0zC0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Z--JGU1PjPg:K4-B14i0zC0:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Z--JGU1PjPg:K4-B14i0zC0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=Z--JGU1PjPg:K4-B14i0zC0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Z--JGU1PjPg:K4-B14i0zC0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Z--JGU1PjPg:K4-B14i0zC0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=Z--JGU1PjPg:K4-B14i0zC0:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/12/java-continuously-read-data-from-filechannel-without-mappedbytebuffer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss><!-- Dynamic page generated in 0.965 seconds. --><!-- Cached page generated by WP-Super-Cache on 2012-05-15 02:15:17 -->

