<?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, 11 Jan 2010 17:05:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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>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 inherit [...]]]></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>
<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/jpmmbsRg2hrpsdAllOaIWyvBPhw/0/da"><img src="http://feedads.g.doubleclick.net/~a/jpmmbsRg2hrpsdAllOaIWyvBPhw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/jpmmbsRg2hrpsdAllOaIWyvBPhw/1/da"><img src="http://feedads.g.doubleclick.net/~a/jpmmbsRg2hrpsdAllOaIWyvBPhw/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 this new [...]]]></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>
<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/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/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><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/01/website-value-evaluation-tool/" title="Website value evaluation tool">Website value evaluation tool</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/2S6_ranNo9KAdPMNNxT-Uwv2Stw/0/da"><img src="http://feedads.g.doubleclick.net/~a/2S6_ranNo9KAdPMNNxT-Uwv2Stw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/2S6_ranNo9KAdPMNNxT-Uwv2Stw/1/da"><img src="http://feedads.g.doubleclick.net/~a/2S6_ranNo9KAdPMNNxT-Uwv2Stw/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 for [...]]]></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>
<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/O1LuRlCwUXiyWS1RKiIKDliHNz4/0/da"><img src="http://feedads.g.doubleclick.net/~a/O1LuRlCwUXiyWS1RKiIKDliHNz4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/O1LuRlCwUXiyWS1RKiIKDliHNz4/1/da"><img src="http://feedads.g.doubleclick.net/~a/O1LuRlCwUXiyWS1RKiIKDliHNz4/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>0</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.
Most Commented PostsGoogle Wave Invitation GiveawayWordpress Plugin &#8211; Blogtal TrackbackWordpress Plugin &#8211; Default TrackbacksWordpress: Make [...]]]></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>
<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/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/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><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/01/website-value-evaluation-tool/" title="Website value evaluation tool">Website value evaluation tool</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/JTCXsjifSMx1Eqs-DYCzGS9yfTw/0/da"><img src="http://feedads.g.doubleclick.net/~a/JTCXsjifSMx1Eqs-DYCzGS9yfTw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/JTCXsjifSMx1Eqs-DYCzGS9yfTw/1/da"><img src="http://feedads.g.doubleclick.net/~a/JTCXsjifSMx1Eqs-DYCzGS9yfTw/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 can be [...]]]></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>
<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/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/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><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/01/website-value-evaluation-tool/" title="Website value evaluation tool">Website value evaluation tool</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/mT620Kb5oqzzo75mDUYsGqYV4_c/0/da"><img src="http://feedads.g.doubleclick.net/~a/mT620Kb5oqzzo75mDUYsGqYV4_c/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/mT620Kb5oqzzo75mDUYsGqYV4_c/1/da"><img src="http://feedads.g.doubleclick.net/~a/mT620Kb5oqzzo75mDUYsGqYV4_c/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” feature - [...]]]></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>
<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/FTvJEPgEvE1b42QPqaABsi7QTKw/0/da"><img src="http://feedads.g.doubleclick.net/~a/FTvJEPgEvE1b42QPqaABsi7QTKw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/FTvJEPgEvE1b42QPqaABsi7QTKw/1/da"><img src="http://feedads.g.doubleclick.net/~a/FTvJEPgEvE1b42QPqaABsi7QTKw/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 disk.

JavaScript [...]]]></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>
<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/mTvzXadqyxOmnA1EDmeuBOn7P-8/0/da"><img src="http://feedads.g.doubleclick.net/~a/mTvzXadqyxOmnA1EDmeuBOn7P-8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/mTvzXadqyxOmnA1EDmeuBOn7P-8/1/da"><img src="http://feedads.g.doubleclick.net/~a/mTvzXadqyxOmnA1EDmeuBOn7P-8/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 can [...]]]></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>
<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/sO15ppeLZGNqB8-WgjcqMzquQ9Q/0/da"><img src="http://feedads.g.doubleclick.net/~a/sO15ppeLZGNqB8-WgjcqMzquQ9Q/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/sO15ppeLZGNqB8-WgjcqMzquQ9Q/1/da"><img src="http://feedads.g.doubleclick.net/~a/sO15ppeLZGNqB8-WgjcqMzquQ9Q/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 made [...]]]></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>
<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/6SEMUNTtzbbR1Ffky67Hv_Hp5Zg/0/da"><img src="http://feedads.g.doubleclick.net/~a/6SEMUNTtzbbR1Ffky67Hv_Hp5Zg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/6SEMUNTtzbbR1Ffky67Hv_Hp5Zg/1/da"><img src="http://feedads.g.doubleclick.net/~a/6SEMUNTtzbbR1Ffky67Hv_Hp5Zg/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 magazine [...]]]></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>
<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/KG4gEbhiir6Rg_xe58VlOqkOm-4/0/da"><img src="http://feedads.g.doubleclick.net/~a/KG4gEbhiir6Rg_xe58VlOqkOm-4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/KG4gEbhiir6Rg_xe58VlOqkOm-4/1/da"><img src="http://feedads.g.doubleclick.net/~a/KG4gEbhiir6Rg_xe58VlOqkOm-4/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 hosted [...]]]></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>
<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/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/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><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/01/website-value-evaluation-tool/" title="Website value evaluation tool">Website value evaluation tool</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/1sS8oBD2uZoryPZt8PDhnvVKMB4/0/da"><img src="http://feedads.g.doubleclick.net/~a/1sS8oBD2uZoryPZt8PDhnvVKMB4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/1sS8oBD2uZoryPZt8PDhnvVKMB4/1/da"><img src="http://feedads.g.doubleclick.net/~a/1sS8oBD2uZoryPZt8PDhnvVKMB4/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 yourself [...]]]></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>
<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/J0LmNMX0njWJf5XghlKe86METwQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/J0LmNMX0njWJf5XghlKe86METwQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/J0LmNMX0njWJf5XghlKe86METwQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/J0LmNMX0njWJf5XghlKe86METwQ/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 is:
What [...]]]></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>
<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/fevPETTjN2vkX113Nnt7JN7WDto/0/da"><img src="http://feedads.g.doubleclick.net/~a/fevPETTjN2vkX113Nnt7JN7WDto/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/fevPETTjN2vkX113Nnt7JN7WDto/1/da"><img src="http://feedads.g.doubleclick.net/~a/fevPETTjN2vkX113Nnt7JN7WDto/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>
		<item>
		<title>JavaScript: Overcome Slow Loading JavaScript On A Web Page</title>
		<link>http://www.snippetit.com/2009/11/javascript-overcome-slow-loading-javascript-on-a-web-page/</link>
		<comments>http://www.snippetit.com/2009/11/javascript-overcome-slow-loading-javascript-on-a-web-page/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 11:37:34 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Programming and Scripting]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=330</guid>
		<description><![CDATA[Sometime a web page may load slowly due to loading a third party JavaScript source file from other domain. Most of the time, a web site comes with advertisement scripts or scripts for keep tracking visitors and these scripts are normally provided by third parties like Google Adsense, Statcounter, Amazon and etc. When these scripts' [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime a web page may load slowly due to loading a third party JavaScript source file from other domain. Most of the time, a web site comes with advertisement scripts or scripts for keep tracking visitors and these scripts are normally provided by third parties like Google Adsense, Statcounter, Amazon and etc. When these scripts' loading speed is extremely slow, it blocks the whole page from loading.</p>
<p><span id="more-330"></span></p>
<p>One of the way to overcome the slow loading of JavaScript problems is to move the code that load the JavaScript file to the end of the website before the <code>body</code> tag. For example, <code>&lt;script type='text/javascript' src='http://www.example.com/some_script.js'&gt;&lt;/script&gt;</code>. This is so that the browser can load and render the whole page and then only load and run the script.</p>
<p>But this does not actually solve most of the problem. This is because in most time, in most JavaScript, the programmers will use the <code>document.write()</code> method to render the HTML code at the position where the JavaScript is loaded. For example, if you move the source line that load a advertisement to the bottom of the page and left the parameters on top, the advertisement will be loaded at the bottom of the page.</p>
<p>To solve this problem, we can implement a simple tricks with little JavaScript code. The idea is like this:</p>
<ul>
<li>Put a <strong>empty </strong><code>div</code> place holder at the place where you originally want to put and give it a unique name, let's say <code>ads1_ori</code>.</li>
<li>Put a <strong>hidden </strong><code>div</code> place holder at the bottom, put the scripts that load slowly inside the place hold and give it a unique name, let's say <code>ads1_new</code>.</li>
<li>At bottom of the page, right before the <code>body</code> tag, write a few line of JavaScript code to load the HTML content from <code>ads1_ori</code> to <code>ads1_new</code>.</li>
</ul>
<p>Example of implementation:</p>
<p><code></p>
<pre>&lt;html&gt;
  &lt;head&gt;&lt;title&gt;Some Web Site&lt;/title&gt;&lt;/head&gt;
  &lt;/body&gt;

  ....

  &lt;div id="ads1_ori "&gt;&lt;/div&gt;

  ...

  &lt;div id="ads1_new" style="display:none"&gt;
    &lt;!-- advertisement --&gt;
    &lt;script type="text/javascript"&gt;
      paramenter = "abcdefg";
    &lt;/script&gt;
    &lt;script type="text/javascript" src="http://www.example.com/some_script.js"&gt;&lt;/script&gt;
    &lt;!-- advertisement --&gt;
  &lt;/div&gt;

  &lt;script type="text/javascript"&gt;
    document.getElementById('ads1_ori').innerHTML = document.getElementById('ads1_new').innerHTML;
  &lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;</pre>
<p></code></p>
<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/12/adobe-acrobat-reader-possible-security-vulnerability-when-acrobat-javascript-is-enabled/" title="Adobe Acrobat Reader: Possible Security Vulnerability When Acrobat JavaScript Is Enabled">Adobe Acrobat Reader: Possible Security Vulnerability When Acrobat JavaScript Is Enabled</a></li></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/HFa3UBg3RNQ6_bPUKhpTV5aZgyo/0/da"><img src="http://feedads.g.doubleclick.net/~a/HFa3UBg3RNQ6_bPUKhpTV5aZgyo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/HFa3UBg3RNQ6_bPUKhpTV5aZgyo/1/da"><img src="http://feedads.g.doubleclick.net/~a/HFa3UBg3RNQ6_bPUKhpTV5aZgyo/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=3eJ70BOOTfc:VeDPytfn3rI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=3eJ70BOOTfc:VeDPytfn3rI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=3eJ70BOOTfc:VeDPytfn3rI:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=3eJ70BOOTfc:VeDPytfn3rI:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=3eJ70BOOTfc:VeDPytfn3rI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=3eJ70BOOTfc:VeDPytfn3rI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=3eJ70BOOTfc:VeDPytfn3rI:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=3eJ70BOOTfc:VeDPytfn3rI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=3eJ70BOOTfc:VeDPytfn3rI:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/11/javascript-overcome-slow-loading-javascript-on-a-web-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>.NET: Microsoft to Open Source .NET Micro Framework</title>
		<link>http://www.snippetit.com/2009/11/net-microsoft-to-open-source-net-micro-framework/</link>
		<comments>http://www.snippetit.com/2009/11/net-microsoft-to-open-source-net-micro-framework/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 17:34:07 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Programming and Scripting]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=327</guid>
		<description><![CDATA[Microsoft has just announced the release of .NET Micro Framework version 4.0. The new .NET Micro Framework's source code will be made available under the Apache 2.0 license.

All of the source of .NET Micro Framework will be made available, including Base Class Libraries which were implemented for .NET Micro Framework and the CLR code itself.
The TCP/IP [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft has just announced the release of .NET Micro Framework version 4.0. The new .NET Micro Framework's source code will be made available under the <a href="http://www.apache.org/licenses/LICENSE-2.0.html" target="_blank">Apache 2.0 license</a>.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2715/4115445348_48fe1eca0a.jpg" alt="Dot Net Framework" width="300" height="169" /></p>
<p><span id="more-327"></span>All of the source of .NET Micro Framework will be made available, including Base Class Libraries which were implemented for .NET Micro Framework and the CLR code itself.</p>
<p>The TCP/IP stack library in .NET Framework is a third party software (EBSNet) so Microsoft does not have the rights to distribute that source code. Developers who needs the source code for TCP/IP stack will need to get it from EBSNet.</p>
<p>The Cryptography library is not included in the source code because they are being used outside of the scope of the .NET Micro Framework.</p>
<p>Read more at <a href="http://arstechnica.com/open-source/news/2009/11/microsoft-to-open-source-net-micro-framework.ars" target="_blank">ars technica</a>.</p>
<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><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></ul>
<p><a href="http://feedads.g.doubleclick.net/~a/FovmHRNYqVhCvZYImgmWdsqY_iY/0/da"><img src="http://feedads.g.doubleclick.net/~a/FovmHRNYqVhCvZYImgmWdsqY_iY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/FovmHRNYqVhCvZYImgmWdsqY_iY/1/da"><img src="http://feedads.g.doubleclick.net/~a/FovmHRNYqVhCvZYImgmWdsqY_iY/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snippetit?a=2o9py47s1vQ:hyK9TH2uIY4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=2o9py47s1vQ:hyK9TH2uIY4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snippetit?i=2o9py47s1vQ:hyK9TH2uIY4:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=2o9py47s1vQ:hyK9TH2uIY4:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/snippetit?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=2o9py47s1vQ:hyK9TH2uIY4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snippetit?i=2o9py47s1vQ:hyK9TH2uIY4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=2o9py47s1vQ:hyK9TH2uIY4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/snippetit?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snippetit?a=2o9py47s1vQ:hyK9TH2uIY4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/snippetit?i=2o9py47s1vQ:hyK9TH2uIY4:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/11/net-microsoft-to-open-source-net-micro-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss><!-- Dynamic page generated in 0.674 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-03-12 10:51:59 -->
