<?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, 16 Aug 2010 13:21:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.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>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/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/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/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/07/java-mortgage-payment-calculator/" title="Java: Mortgage Payment Calculator">Java: Mortgage Payment Calculator</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></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/0VlEm6pbZfgdWs3KHeQjTGCk8sM/0/da"><img src="http://feedads.g.doubleclick.net/~a/0VlEm6pbZfgdWs3KHeQjTGCk8sM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/0VlEm6pbZfgdWs3KHeQjTGCk8sM/1/da"><img src="http://feedads.g.doubleclick.net/~a/0VlEm6pbZfgdWs3KHeQjTGCk8sM/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/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/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/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/07/java-mortgage-payment-calculator/" title="Java: Mortgage Payment Calculator">Java: Mortgage Payment Calculator</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></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/Yw2Pjp8cIVYK6zBw5nldePihnBQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/Yw2Pjp8cIVYK6zBw5nldePihnBQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Yw2Pjp8cIVYK6zBw5nldePihnBQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/Yw2Pjp8cIVYK6zBw5nldePihnBQ/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/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/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/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/07/java-mortgage-payment-calculator/" title="Java: Mortgage Payment Calculator">Java: Mortgage Payment Calculator</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></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/94lhUH0YXXS8Lt5uXoNX39cmPqs/0/da"><img src="http://feedads.g.doubleclick.net/~a/94lhUH0YXXS8Lt5uXoNX39cmPqs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/94lhUH0YXXS8Lt5uXoNX39cmPqs/1/da"><img src="http://feedads.g.doubleclick.net/~a/94lhUH0YXXS8Lt5uXoNX39cmPqs/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/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/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/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/07/java-mortgage-payment-calculator/" title="Java: Mortgage Payment Calculator">Java: Mortgage Payment Calculator</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></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/PXTzHLLYhETJ9QC33ClpjY4FpaM/0/da"><img src="http://feedads.g.doubleclick.net/~a/PXTzHLLYhETJ9QC33ClpjY4FpaM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/PXTzHLLYhETJ9QC33ClpjY4FpaM/1/da"><img src="http://feedads.g.doubleclick.net/~a/PXTzHLLYhETJ9QC33ClpjY4FpaM/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>
		<item>
		<title>WordPress: Catch A Spam Comment With Statcounter</title>
		<link>http://www.snippetit.com/2009/12/wordpress-catch-a-spamm-comment-with-statcounter/</link>
		<comments>http://www.snippetit.com/2009/12/wordpress-catch-a-spamm-comment-with-statcounter/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 17:21:59 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Earning with Website and Blogging]]></category>
		<category><![CDATA[New and Happening]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[anti spam software]]></category>
		<category><![CDATA[spam comment]]></category>
		<category><![CDATA[spam filter]]></category>
		<category><![CDATA[Statcounter]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=349</guid>
		<description><![CDATA[Sometime your WordPress' anti spam software (e.g. Akismet) may not able to stop all the comment spam because the comment looks too real to it and to human too. In this case, you will need to identify the comment whether it is actually a real comment or it is automatically submitted by software. Someone who [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime your WordPress' anti spam software (e.g. Akismet) may not able to stop all the comment spam because the comment looks too real to it and to human too. In this case, you will need to identify the comment whether it is actually a real comment or it is automatically submitted by software.</p>
<p>Someone who made a comment must have visited your site. That's it, if he or she has not visited your site but his or her comment is posted on one of your post. Then it is very high possibility that the comment is a spam comment.</p>
<p>How do you ensure someone who left a comment on your blog actually visited your site? The best way to do it is by looking at the IP address where the computer submitted the comment.</p>
<p><span id="more-349"></span></p>
<p>In WordPress, when someone has made a comment, his computer's IP address is recorded. With the IP address, you can check the IP address against the IP address recorded in your website's stats counter.</p>
<p>One of the stats counter software that allows you to look up an IP address is <a href="http://www.statcounter.com" target="_blank">Statcounter</a>. After you have logged in into Statcounter, select your blog website's statistic and then click on the "Look Up IP address" link on the left.</p>
<p>Key in the IP address where your WordPress comment entry came from and click "Search!". If an entry is matched, that means he or she who submitted the comment has actually visited your website before.</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+Catch+A+Spam+Comment+With+Statcounter+-+http://b2l.me/becpb&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-catch-a-spamm-comment-with-statcounter/&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-catch-a-spamm-comment-with-statcounter/&amp;submitHeadline=Wordpress%3A+Catch+A+Spam+Comment+With+Statcounter&amp;submitSummary=Sometime%20your%20Wordpress%27%20anti%20spam%20software%20%28e.g.%20Akismet%29%20may%20not%20able%20to%20stop%20all%20the%20comment%20spam%20because%20the%20comment%20looks%20too%20real%20to%20it%20and%20to%20human%20too.%20In%20this%20case%2C%20you%20will%20need%20to%20identify%20the%20comment%20whether%20it%20is%20actually%20a%20real%20comment%20or%20it%20is%20automatically%20submitted%20by%20software.%0D%0A%0D%0AS&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-catch-a-spamm-comment-with-statcounter/&amp;title=Wordpress%3A+Catch+A+Spam+Comment+With+Statcounter" 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-catch-a-spamm-comment-with-statcounter/&amp;title=Wordpress%3A+Catch+A+Spam+Comment+With+Statcounter" 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-catch-a-spamm-comment-with-statcounter/&amp;Title=Wordpress%3A+Catch+A+Spam+Comment+With+Statcounter" 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-catch-a-spamm-comment-with-statcounter/&amp;title=Wordpress%3A+Catch+A+Spam+Comment+With+Statcounter" 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-catch-a-spamm-comment-with-statcounter/" 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/12/wordpress-version-2-9/" title="Wordpress: Version 2.9">Wordpress: Version 2.9</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/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/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/04/how-to-add-advertisement-code-to-wordpress-themes-sidebar/" title="How to Add Advertisement Code to Wordpress Theme&#8217;s Sidebar">How to Add Advertisement Code to Wordpress Theme&#8217;s Sidebar</a></li><li><a href="http://www.snippetit.com/2009/02/wordpress-271/" title="WordPress 2.7.1">WordPress 2.7.1</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/7yrhbKuOS_gCP04Aq_EZOdio4bA/0/da"><img src="http://feedads.g.doubleclick.net/~a/7yrhbKuOS_gCP04Aq_EZOdio4bA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/7yrhbKuOS_gCP04Aq_EZOdio4bA/1/da"><img src="http://feedads.g.doubleclick.net/~a/7yrhbKuOS_gCP04Aq_EZOdio4bA/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=g8I2LyWNuPY:C4Uw09YC7iM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=g8I2LyWNuPY:C4Uw09YC7iM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=g8I2LyWNuPY:C4Uw09YC7iM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=g8I2LyWNuPY:C4Uw09YC7iM:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=g8I2LyWNuPY:C4Uw09YC7iM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=g8I2LyWNuPY:C4Uw09YC7iM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=g8I2LyWNuPY:C4Uw09YC7iM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=g8I2LyWNuPY:C4Uw09YC7iM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=g8I2LyWNuPY:C4Uw09YC7iM:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/12/wordpress-catch-a-spamm-comment-with-statcounter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Short URL: Top 5 Websites That Provide Free Short URL Service</title>
		<link>http://www.snippetit.com/2009/12/short-url-top-5-websites-that-provide-free-short-url-service/</link>
		<comments>http://www.snippetit.com/2009/12/short-url-top-5-websites-that-provide-free-short-url-service/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 17:56:55 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Earning with Website and Blogging]]></category>
		<category><![CDATA[Programming and Scripting]]></category>
		<category><![CDATA[Search Engine Optimization and Internet Marketing]]></category>
		<category><![CDATA[short URL]]></category>
		<category><![CDATA[tiny URL]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=347</guid>
		<description><![CDATA[What is a "short URL"? Short URL or tiny URL is an URL used to represent a long URL For example, http://tinyurl.com/45lk7x can be used to represent and will be used to redirect to http://www.snippetit.com/2008/10/implement-your-own-short-url. Why people use short URL? First, because it is easy to remember. Imagine when you read an article on a [...]]]></description>
			<content:encoded><![CDATA[<p>What is a "short URL"? Short URL or tiny URL is an URL used to represent a long URL For example, http://tinyurl.com/45lk7x can be used to represent and will be used to redirect to <a href="http://www.snippetit.com/2008/10/implement-your-own-short-url/">http://www.snippetit.com/2008/10/implement-your-own-short-url</a>.</p>
<p>Why people use short URL? First, because it is easy to remember. Imagine when you read an article on a magazine or newspaper that shows you a site with 100 characters and complicated URL. How can you remember the long URL, put down the magazine or newspaper, sit in front of your computer and type out the URL at web browser correctly? When the URL is short, for example <em>tinyurl.com/45lk7x</em>, you can do it easily.</p>
<p>Second, short URL is more portable. For instance, when you want to send your friend a SMS that contains some message and an URL, with short URL you can save a lot of space and give you more space to type your message.</p>
<p><span id="more-347"></span></p>
<p>Most short URL services are free and easy to use. You just need to provide the long URL and it will generate a new short URL for you. Here are the list of most popular short URL websites sorted by its traffic rank (by Alexa):</p>
<ol>
<li>bit.ly (Alexa traffic rank: 220)</li>
<li>tinyurl.com (Alexa traffic rank: 660)</li>
<li>is.gd (Alexa traffic rank: 10,833)</li>
<li>ff.im (Alexa traffic rank: 45,395)</li>
<li>twurl.nl (Alexa traffic rank: 120,846)</li>
</ol>
<p>If you are good in computer programming language, you interested in <a title="short URL" href="http://www.snippetit.com/2008/10/implement-your-own-short-url/">implementing your own short URL</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=Short+URL%3A+Top+5+Websites+That+Provide+Free+Short+URL+Service+-+http://b2l.me/bbu7t&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/short-url-top-5-websites-that-provide-free-short-url-service/&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/short-url-top-5-websites-that-provide-free-short-url-service/&amp;submitHeadline=Short+URL%3A+Top+5+Websites+That+Provide+Free+Short+URL+Service&amp;submitSummary=What%20is%20a%20%22short%20URL%22%3F%20Short%20URL%20or%20tiny%20URL%20is%20an%20URL%20used%20to%20represent%20a%20long%20URL%20For%20example%2C%20http%3A%2F%2Ftinyurl.com%2F45lk7x%20can%20be%20used%20to%20represent%20and%20will%20be%20used%20to%20redirect%20to%20http%3A%2F%2Fwww.snippetit.com%2F2008%2F10%2Fimplement-your-own-short-url.%0D%0A%0D%0AWhy%20people%20use%20short%20URL%3F%20First%2C%20because%20it%20is%20easy%20to&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/short-url-top-5-websites-that-provide-free-short-url-service/&amp;title=Short+URL%3A+Top+5+Websites+That+Provide+Free+Short+URL+Service" 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/short-url-top-5-websites-that-provide-free-short-url-service/&amp;title=Short+URL%3A+Top+5+Websites+That+Provide+Free+Short+URL+Service" 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/short-url-top-5-websites-that-provide-free-short-url-service/&amp;Title=Short+URL%3A+Top+5+Websites+That+Provide+Free+Short+URL+Service" 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/short-url-top-5-websites-that-provide-free-short-url-service/&amp;title=Short+URL%3A+Top+5+Websites+That+Provide+Free+Short+URL+Service" 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/short-url-top-5-websites-that-provide-free-short-url-service/" 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/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/2008/10/implement-your-own-short-url/" title="Implement your own short URL">Implement your own short URL</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/OETKTG5-GaMx1c3MSJ6q8EqIcZA/0/da"><img src="http://feedads.g.doubleclick.net/~a/OETKTG5-GaMx1c3MSJ6q8EqIcZA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/OETKTG5-GaMx1c3MSJ6q8EqIcZA/1/da"><img src="http://feedads.g.doubleclick.net/~a/OETKTG5-GaMx1c3MSJ6q8EqIcZA/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=8hqzq-0JlwI:hzAm1vft4-g:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=8hqzq-0JlwI:hzAm1vft4-g:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=8hqzq-0JlwI:hzAm1vft4-g:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=8hqzq-0JlwI:hzAm1vft4-g:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=8hqzq-0JlwI:hzAm1vft4-g:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=8hqzq-0JlwI:hzAm1vft4-g:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=8hqzq-0JlwI:hzAm1vft4-g:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=8hqzq-0JlwI:hzAm1vft4-g:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=8hqzq-0JlwI:hzAm1vft4-g:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/12/short-url-top-5-websites-that-provide-free-short-url-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SherWeb: Hosted Exchange, Web Hosting, SharePoint Hosting, Hosted CRM</title>
		<link>http://www.snippetit.com/2009/12/sherweb-hosted-exchange-web-hosting-sharepoint-hosting-hosted-crm/</link>
		<comments>http://www.snippetit.com/2009/12/sherweb-hosted-exchange-web-hosting-sharepoint-hosting-hosted-crm/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 05:54:36 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Software and Hardware]]></category>
		<category><![CDATA[hosting]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=352</guid>
		<description><![CDATA[SherWeb is a hosting provider that delivers high quality service at the reasonable price. SherWeb guarantees 99.9% uptime at both application level and network level. That means you will have less downtime on using both software and hardware. SherWeb provides a wide range of hosting service including web hosting, exchange server hosting, SharePoint hosting and [...]]]></description>
			<content:encoded><![CDATA[<p>SherWeb is a hosting provider that delivers high quality service at the reasonable price. SherWeb guarantees 99.9% uptime at both application level and network level. That means you will have less downtime on using both software and hardware.</p>
<p>SherWeb provides a wide range of hosting service including <a href="http://www.sherweb.com/web-hosting" target="_blank">web hosting</a>, <a href="http://www.sherweb.com/hosted-exchange/exchange-infrastructure" target="_blank">exchange server hosting</a>, <a href="http://www.sherweb.com/sharepoint-hosting" target="_blank">SharePoint hosting </a>and <a href="http://www.sherweb.com/hosted-microsoft-crm" target="_blank">hosted CRM</a>. You can sign up their packages with risk free because all Web Hosting and Hosted Exchange packages include a 30 day money back guarantee.</p>
<p><span id="more-352"></span></p>
<p><strong><a href="http://www.sherweb.com/web-hosting" target="_blank">Web Hosting</a></strong><br />
There are various tiers of web hosting to accommodate customer with different needs. Web hosting packages' price start from $7.25/month only, run on Linux servers, in addition to supporting PHP, ASP, RoR, Python and MySQL database applications.</p>
<p><strong><a href="http://www.sherweb.com/hosted-exchange">Hosted Exchange</a></strong><br />
Hosted exchange price is $8.95/month per mailbox. No minimum number of users required. You will have 3Gb of storage per mailbox and free setup (mobile synchronization, antivirus, copy of Outlook 2007 and SharePoint) when you signed up the package. Take a look at their <a href="http://images.sherweb.com/swf/demoExchange/EN/Launch.html" target="_blank">exchange demo</a> to see what it can do for you.</p>
<p><strong><a href="http://www.sherweb.com/sharepoint-hosting">SharePoint Hosting</a></strong><br />
SharePoint provides you or your business an environment for collaboration, document sharing and also mobile access. The plans' affordable price start from $8.95/month. All SharePoint plans include unlimited users, unlimited subsites, free webparts and exchange link.</p>
<p><strong><a href="ttp://www.sherweb.com/hosted-microsoft-crm" target="_blank">Hosted CRM</a></strong><br />
CRM or client relationship management system is one of the essential tools to a business. With start from only $29.95 per month from SherWeb, you can get a quality hosted CRM for your business. SherWeb hosted CRM plans range from entry level online CRM or a comprehensive system fully customizable to your complex business needs. Contact Sherweb to design a perfect package for you!</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=SherWeb%3A+Hosted+Exchange%2C+Web+Hosting%2C+SharePoint+Hosting%2C+Hosted+CRM+-+http://b2l.me/a7q7r&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/sherweb-hosted-exchange-web-hosting-sharepoint-hosting-hosted-crm/&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/sherweb-hosted-exchange-web-hosting-sharepoint-hosting-hosted-crm/&amp;submitHeadline=SherWeb%3A+Hosted+Exchange%2C+Web+Hosting%2C+SharePoint+Hosting%2C+Hosted+CRM&amp;submitSummary=SherWeb%20is%20a%20hosting%20provider%20that%20delivers%20high%20quality%20service%20at%20the%20reasonable%20price.%20SherWeb%20guarantees%2099.9%25%20uptime%20at%20both%20application%20level%20and%20network%20level.%20That%20means%20you%20will%20have%20less%20downtime%20on%20using%20both%20software%20and%20hardware.%0D%0A%0D%0ASherWeb%20provides%20a%20wide%20range%20of%20hosting%20service%20inclu&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/sherweb-hosted-exchange-web-hosting-sharepoint-hosting-hosted-crm/&amp;title=SherWeb%3A+Hosted+Exchange%2C+Web+Hosting%2C+SharePoint+Hosting%2C+Hosted+CRM" 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/sherweb-hosted-exchange-web-hosting-sharepoint-hosting-hosted-crm/&amp;title=SherWeb%3A+Hosted+Exchange%2C+Web+Hosting%2C+SharePoint+Hosting%2C+Hosted+CRM" 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/sherweb-hosted-exchange-web-hosting-sharepoint-hosting-hosted-crm/&amp;Title=SherWeb%3A+Hosted+Exchange%2C+Web+Hosting%2C+SharePoint+Hosting%2C+Hosted+CRM" 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/sherweb-hosted-exchange-web-hosting-sharepoint-hosting-hosted-crm/&amp;title=SherWeb%3A+Hosted+Exchange%2C+Web+Hosting%2C+SharePoint+Hosting%2C+Hosted+CRM" 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/sherweb-hosted-exchange-web-hosting-sharepoint-hosting-hosted-crm/" 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/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/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/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/07/java-mortgage-payment-calculator/" title="Java: Mortgage Payment Calculator">Java: Mortgage Payment Calculator</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></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/f6q2ycXqCoqTDBGLda7LO4WsVWA/0/da"><img src="http://feedads.g.doubleclick.net/~a/f6q2ycXqCoqTDBGLda7LO4WsVWA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/f6q2ycXqCoqTDBGLda7LO4WsVWA/1/da"><img src="http://feedads.g.doubleclick.net/~a/f6q2ycXqCoqTDBGLda7LO4WsVWA/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=lGRd3x5sWFg:6huG7lFPcaA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=lGRd3x5sWFg:6huG7lFPcaA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=lGRd3x5sWFg:6huG7lFPcaA:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=lGRd3x5sWFg:6huG7lFPcaA:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=lGRd3x5sWFg:6huG7lFPcaA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=lGRd3x5sWFg:6huG7lFPcaA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=lGRd3x5sWFg:6huG7lFPcaA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=lGRd3x5sWFg:6huG7lFPcaA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=lGRd3x5sWFg:6huG7lFPcaA:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/12/sherweb-hosted-exchange-web-hosting-sharepoint-hosting-hosted-crm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: How To Add Table Into A Post</title>
		<link>http://www.snippetit.com/2009/11/wordpress-how-to-add-table-into-a-post/</link>
		<comments>http://www.snippetit.com/2009/11/wordpress-how-to-add-table-into-a-post/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 16:23:41 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Programming and Scripting]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=337</guid>
		<description><![CDATA[WordPress' WYSIWYG post editor does not come with the functionality that allows user to create table when editing a post (like what you can do in Microsoft word). However, putting a table into a post in WordPress editor is not as hard as writing a software codes. What you need to know is to familiar [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress' WYSIWYG post editor does not come with the functionality that allows user to create table when editing a post (like what you can do in Microsoft word).</p>
<p><span id="more-337"></span>However, putting a table into a post in WordPress editor is not as hard as writing a software codes. What you need to know is to familiar yourself with some HTML tags.</p>
<p>To create a table in post, you will need to switch your editor to HTML mode. Simply click on the <em>HTML</em> tab on the top-right of your WordPress editor and then insert the table codes into the position where you want the table appear.</p>
<p>Here is a simple table:<br />
<code></p>
<pre>&lt;table border="1" cellspacing="1" cellpadding="1" width="100"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Column 1&lt;/td&gt;
&lt;td&gt;Column 2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data 1&lt;/td&gt;
&lt;td&gt;Data 2&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;</pre>
<p></code></p>
<p>And it looks like this:</p>
<table border="1" cellspacing="1" cellpadding="1" width="100">
<tbody>
<tr>
<td>Column 1</td>
<td>Column 2</td>
</tr>
<tr>
<td>Data 1</td>
<td>Data 2</td>
</tr>
</tbody>
</table>
<p>You can change the table width by changing the <em>width</em> parameter to a certain value, either in pixels (without unit) or percentage (with %). You can also change the border size (<em>border</em>), cell's padding (<em>cellpadding</em>) and cell's spacing (<em>cellspacing</em>). Border size, cell's padding and cell's spacing are in unit pixels.</p>
<p>After you have put the code, change back to visual mode to preview your table. At that time, you can apply format (e.g. color, bold, link and etc) to your text in the table.</p>
<p>Another table with 2 columns in a row are merged:<br />
<code></p>
<pre>&lt;table border="1" cellspacing="1" cellpadding="1" width="100"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td colspan="2"&gt;2 Columns merged&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data 1&lt;/td&gt;
&lt;td&gt;Data 2&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;</pre>
<p></code></p>
<p>And it looks like this:</p>
<table border="1" cellspacing="1" cellpadding="1" width="100">
<tbody>
<tr>
<td colspan="2">2 Columns merged</td>
</tr>
<tr>
<td>Data 1</td>
<td>Data 2</td>
</tr>
</tbody>
</table>
<p>Another table with 2 rows in a column are merged:<br />
<code></p>
<pre>&lt;table border="1" cellspacing="1" cellpadding="1" width="100"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td rowspan="2"&gt;Column 1&lt;/td&gt;
&lt;td&gt;Column 2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data 2&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;</pre>
<p></code></p>
<p>And it looks like this:</p>
<table border="1" cellspacing="1" cellpadding="1" width="100">
<tbody>
<tr>
<td rowspan="2">Column 1</td>
<td>Column 2</td>
</tr>
<tr>
<td>Data 2</td>
</tr>
</tbody>
</table>
<p>It is easy and fun, right? You always have to trial and error to create the table you want. Once you have understood the basic, you can easily create tables with the design you want.</p>
<p>Have fun!;</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+How+To+Add+Table+Into+A+Post+-+http://b2l.me/atfk4&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/11/wordpress-how-to-add-table-into-a-post/&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/11/wordpress-how-to-add-table-into-a-post/&amp;submitHeadline=Wordpress%3A+How+To+Add+Table+Into+A+Post&amp;submitSummary=Wordpress%27%20WYSIWYG%20post%20editor%20does%20not%20come%20with%20the%20functionality%20that%20allows%20user%20to%20create%20table%20when%20editing%20a%20post%20%28like%20what%20you%20can%20do%20in%20Microsoft%20word%29.%0D%0A%0D%0AHowever%2C%20putting%20a%20table%20into%20a%20post%20in%20Wordpress%20editor%20is%20not%20as%20hard%20as%20writing%20a%20software%20codes.%20What%20you%20need%20to%20know%20is%20to%20famil&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/11/wordpress-how-to-add-table-into-a-post/&amp;title=Wordpress%3A+How+To+Add+Table+Into+A+Post" 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/11/wordpress-how-to-add-table-into-a-post/&amp;title=Wordpress%3A+How+To+Add+Table+Into+A+Post" 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/11/wordpress-how-to-add-table-into-a-post/&amp;Title=Wordpress%3A+How+To+Add+Table+Into+A+Post" 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/11/wordpress-how-to-add-table-into-a-post/&amp;title=Wordpress%3A+How+To+Add+Table+Into+A+Post" 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/11/wordpress-how-to-add-table-into-a-post/" 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/04/how-to-add-advertisement-code-to-wordpress-themes-sidebar/" title="How to Add Advertisement Code to Wordpress Theme&#8217;s Sidebar">How to Add Advertisement Code to Wordpress Theme&#8217;s Sidebar</a></li><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/wordpress-version-2-9/" title="Wordpress: Version 2.9">Wordpress: Version 2.9</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/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-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/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></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/OS6ekNWBXFIcGMYs1LJmjrkLsGg/0/da"><img src="http://feedads.g.doubleclick.net/~a/OS6ekNWBXFIcGMYs1LJmjrkLsGg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/OS6ekNWBXFIcGMYs1LJmjrkLsGg/1/da"><img src="http://feedads.g.doubleclick.net/~a/OS6ekNWBXFIcGMYs1LJmjrkLsGg/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=LR73BgrRng4:v-LfyPbGPBA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=LR73BgrRng4:v-LfyPbGPBA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=LR73BgrRng4:v-LfyPbGPBA:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=LR73BgrRng4:v-LfyPbGPBA:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=LR73BgrRng4:v-LfyPbGPBA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=LR73BgrRng4:v-LfyPbGPBA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=LR73BgrRng4:v-LfyPbGPBA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=LR73BgrRng4:v-LfyPbGPBA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=LR73BgrRng4:v-LfyPbGPBA:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/11/wordpress-how-to-add-table-into-a-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Chromium OS</title>
		<link>http://www.snippetit.com/2009/11/google-chromium-os/</link>
		<comments>http://www.snippetit.com/2009/11/google-chromium-os/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 13:29:16 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[New and Happening]]></category>
		<category><![CDATA[Programming and Scripting]]></category>
		<category><![CDATA[Search Engine Optimization and Internet Marketing]]></category>
		<category><![CDATA[Software and Hardware]]></category>
		<category><![CDATA[Chome OS]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Chromium]]></category>
		<category><![CDATA[Chromium OS]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Chrome]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=332</guid>
		<description><![CDATA[Google Chromium OS or Chrome OS is an open source project created by Google that aims to build an operating system that provide fast, simple and more secure computing experience. The new OS is target for people who spend most of their time on the web. The following videos explain in detailed what Chrome OS [...]]]></description>
			<content:encoded><![CDATA[<p>Google <strong>Chromium OS</strong> or <strong>Chrome OS</strong> is an open source project created by Google that aims to build an operating system that provide fast, simple and more secure computing experience. The new OS is target for people who spend most of their time on the web.</p>
<p>The following videos explain in detailed what Chrome OS is:</p>
<p><strong>What is Google Chrome OS?</strong><br />
<object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/0QRO3gKj3qw&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/0QRO3gKj3qw&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object><span id="more-332"></span></p>
<p><strong>Chrome OS Security</strong><br />
<object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/A9WVmNfgjtQ&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/A9WVmNfgjtQ&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object></p>
<p><strong>Chromium OS &amp; Open Source</strong><br />
<object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/KA5RQv9mBoY&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/KA5RQv9mBoY&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object></p>
<p><strong>Chromium OS Fast Boot</strong><br />
<object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/mTFfl7AjNfI&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/mTFfl7AjNfI&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object></p>
<p>The basic architecture of Google Chromium OS is pretty simple. Instead of loading all the stuffs by ordinary operating systems (like drivers, detecting hardware, kernel and etc.), the computer that runs Chromium OS directly load the necessary softwares (in this case, the Chrome browser and other multimedia stuffs) and does not need to load other inessential stuffs.</p>
<p>It is pretty interesting to go through how why Google builds up the Chromium OS. Although the project is still in very early stage, you can get involve in the project or to download the source code to have a test run. You can join them at the <a href="http://www.chromium.org/chromium-os" target="_blank">Chromium Projects website for Chromium OS</a>.</p>
<p>Chrome OS will be available for consumers around end of next year. If you can't wait for the final release of Chrome OS, you can download <a href="http://discuss.gdgt.com/google/chrome-os/general/Download-Chrome-OS-VMWare-image/" target="_blank">Chrome OS VMWare/VirtualBox image</a> and run it as virtual machine on top of your current operating system (Windows, Mac, Linux).</p>
<p>Download it at your own risk because it is still in early development stage. However it should not have much risk since everything will be running in a virtual enviroment.</p>
<p>Stay updated with Google Chromium by visiting <a href="http://googleblog.blogspot.com" target="_blank">The Google Official Blog</a> and <a href="http://www.chromium.org/" target="_blank">The Chromium Projects</a> 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+Chromium+OS+-+http://b2l.me/aqnp4&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/11/google-chromium-os/&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/11/google-chromium-os/&amp;submitHeadline=Google+Chromium+OS&amp;submitSummary=Google%20Chromium%20OS%20or%20Chrome%20OS%20is%20an%20open%20source%20project%20created%20by%20Google%20that%20aims%20to%20build%20an%20operating%20system%20that%20provide%20fast%2C%20simple%20and%20more%20secure%20computing%20experience.%20The%20new%20OS%20is%20target%20for%20people%20who%20spend%20most%20of%20their%20time%20on%20the%20web.%0D%0A%0D%0AThe%20following%20videos%20explain%20in%20detailed%20what&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/11/google-chromium-os/&amp;title=Google+Chromium+OS" 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/11/google-chromium-os/&amp;title=Google+Chromium+OS" 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/11/google-chromium-os/&amp;Title=Google+Chromium+OS" 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/11/google-chromium-os/&amp;title=Google+Chromium+OS" 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/11/google-chromium-os/" 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/sitestimator-com-new-badge-released/" title="Sitestimator.com: New Badge Released">Sitestimator.com: New Badge Released</a></li><li><a href="http://www.snippetit.com/2009/06/bing-a-new-search-engine-from-microsoft/" title="Bing: A New Search Engine from Microsoft">Bing: A New Search Engine from Microsoft</a></li><li><a href="http://www.snippetit.com/2009/05/google-desktop-google-reader-a-new-gadget-for-your-google-desktop/" title="Google Desktop: Google Reader, A New Gadget for Your Google Desktop">Google Desktop: Google Reader, A New Gadget for Your Google Desktop</a></li><li><a href="http://www.snippetit.com/2009/05/google-chrome-how-to-stop-youtube-loading-data-from-the-internet/" title="Google Chrome: How to Stop Youtube Loading Data from the Internet">Google Chrome: How to Stop Youtube Loading Data from the Internet</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/04/system-architecture-analysis-google-chrome-vs-internet-explore-8/" title="System Architecture Analysis &#8211; Google Chrome vs Internet Explore 8">System Architecture Analysis &#8211; Google Chrome vs Internet Explore 8</a></li><li><a href="http://www.snippetit.com/2009/02/get-the-url-of-a-photo-in-different-sizes-in-flickrcom/" title="Get the URL of a photo in different sizes in flickr.com">Get the URL of a photo in different sizes in flickr.com</a></li><li><a href="http://www.snippetit.com/2008/10/google-chrome-bug/" title="Google Chrome Bug?">Google Chrome Bug?</a></li><li><a href="http://www.snippetit.com/2008/04/google-adsense-search-result-in-worpress/" title="Google Adsense Search Result in Worpress">Google Adsense Search Result in Worpress</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/5X5SFsZc9OS-ZT7-XkvvLUSm8S4/0/da"><img src="http://feedads.g.doubleclick.net/~a/5X5SFsZc9OS-ZT7-XkvvLUSm8S4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/5X5SFsZc9OS-ZT7-XkvvLUSm8S4/1/da"><img src="http://feedads.g.doubleclick.net/~a/5X5SFsZc9OS-ZT7-XkvvLUSm8S4/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=Aug2ZpU3HlQ:OhbKF9h7RRM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Aug2ZpU3HlQ:OhbKF9h7RRM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=Aug2ZpU3HlQ:OhbKF9h7RRM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Aug2ZpU3HlQ:OhbKF9h7RRM:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Aug2ZpU3HlQ:OhbKF9h7RRM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=Aug2ZpU3HlQ:OhbKF9h7RRM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Aug2ZpU3HlQ:OhbKF9h7RRM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=Aug2ZpU3HlQ:OhbKF9h7RRM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=Aug2ZpU3HlQ:OhbKF9h7RRM:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/11/google-chromium-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss><!-- Dynamic page generated in 2.823 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-09-06 20:04:54 -->
