<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Snippet IT &#187; Tips and Tricks</title>
	<atom:link href="http://www.snippetit.com/category/tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.snippetit.com</link>
	<description>IT News, Programming, Internet and Blogging</description>
	<lastBuildDate>Wed, 02 Jun 2010 16:40:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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>


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

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2010/01/java-format-integer-into-fixed-width-string/" title="Java: Format Integer Into Fixed Width String">Java: Format Integer Into Fixed Width String</a></li><li><a href="http://www.snippetit.com/2009/12/java-continuously-read-data-from-filechannel-without-mappedbytebuffer/" title="Java: Continuously Read Data From FileChannel Without MappedByteBuffer">Java: Continuously Read Data From FileChannel Without MappedByteBuffer</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-rename-permalink-url-with-ease-in-administrator-page/" title="Wordpress: Rename Permalink URL with Ease in Administrator Page">Wordpress: Rename Permalink URL with Ease in Administrator Page</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-schedule-to-publish-a-post/" title="Wordpress: Schedule to Publish a Post">Wordpress: Schedule to Publish a Post</a></li><li><a href="http://www.snippetit.com/2009/11/java-loading-large-data-into-jtable-or-jlist/" title="Java: Loading Large Data into JTable or JList">Java: Loading Large Data into JTable or JList</a></li><li><a href="http://www.snippetit.com/2009/08/java-format-long-integer-into-hexadecimal-string/" title="Java: Format Long Integer Into Hexadecimal String">Java: Format Long Integer Into Hexadecimal String</a></li><li><a href="http://www.snippetit.com/2009/07/java-mortgage-payment-calculator/" title="Java: Mortgage Payment Calculator">Java: Mortgage Payment Calculator</a></li><li><a href="http://www.snippetit.com/2009/06/java-stop-a-thread-correctly/" title="Java: Stop A Thread Correctly">Java: Stop A Thread Correctly</a></li><li><a href="http://www.snippetit.com/2009/05/java-format-bytes-array-into-hexadecimal-string/" title="Java: Format Bytes Array into Hexadecimal String">Java: Format Bytes Array into Hexadecimal String</a></li><li><a href="http://www.snippetit.com/2009/05/java-least-recently-used-lru-cache/" title="Java: Least Recently Used (LRU) Cache">Java: Least Recently Used (LRU) Cache</a></li></ul>]]></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>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>


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

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/08/java-format-long-integer-into-hexadecimal-string/" title="Java: Format Long Integer Into Hexadecimal String">Java: Format Long Integer Into Hexadecimal String</a></li><li><a href="http://www.snippetit.com/2009/03/java-format-integer-into-number-of-decimal-places-and-performance/" title="Java: Format integer into number of decimal places and performance">Java: Format integer into number of decimal places and performance</a></li><li><a href="http://www.snippetit.com/2009/11/java-loading-large-data-into-jtable-or-jlist/" title="Java: Loading Large Data into JTable or JList">Java: Loading Large Data into JTable or JList</a></li><li><a href="http://www.snippetit.com/2009/04/java-randomly-sort-values-in-a-array-the-generic-way-in-single-pasas/" title="Java: Randomly sort values in a array (the generic way) in single pass">Java: Randomly sort values in a array (the generic way) in single pass</a></li><li><a href="http://www.snippetit.com/2009/12/java-continuously-read-data-from-filechannel-without-mappedbytebuffer/" title="Java: Continuously Read Data From FileChannel Without MappedByteBuffer">Java: Continuously Read Data From FileChannel Without MappedByteBuffer</a></li><li><a href="http://www.snippetit.com/2009/06/java-stop-a-thread-correctly/" title="Java: Stop A Thread Correctly">Java: Stop A Thread Correctly</a></li><li><a href="http://www.snippetit.com/2009/05/java-format-bytes-array-into-hexadecimal-string/" title="Java: Format Bytes Array into Hexadecimal String">Java: Format Bytes Array into Hexadecimal String</a></li><li><a href="http://www.snippetit.com/2009/05/java-least-recently-used-lru-cache/" title="Java: Least Recently Used (LRU) Cache">Java: Least Recently Used (LRU) Cache</a></li><li><a href="http://www.snippetit.com/2009/05/jsp-how-to-declare-methods-and-inner-class-in-jsp/" title="JSP: How to Declare Methods and Inner Class in JSP">JSP: How to Declare Methods and Inner Class in JSP</a></li><li><a href="http://www.snippetit.com/2009/04/php-format-integer-into-number-of-decimal-places/" title="PHP: Format integer into number of decimal places">PHP: Format integer into number of decimal places</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2010/01/java-format-integer-into-fixed-width-string/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>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>


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

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2010/01/java-format-integer-into-fixed-width-string/" title="Java: Format Integer Into Fixed Width String">Java: Format Integer Into Fixed Width String</a></li><li><a href="http://www.snippetit.com/2009/11/java-loading-large-data-into-jtable-or-jlist/" title="Java: Loading Large Data into JTable or JList">Java: Loading Large Data into JTable or JList</a></li><li><a href="http://www.snippetit.com/2009/08/java-format-long-integer-into-hexadecimal-string/" title="Java: Format Long Integer Into Hexadecimal String">Java: Format Long Integer Into Hexadecimal String</a></li><li><a href="http://www.snippetit.com/2009/06/java-stop-a-thread-correctly/" title="Java: Stop A Thread Correctly">Java: Stop A Thread Correctly</a></li><li><a href="http://www.snippetit.com/2009/05/jsp-how-to-declare-methods-and-inner-class-in-jsp/" title="JSP: How to Declare Methods and Inner Class in JSP">JSP: How to Declare Methods and Inner Class in JSP</a></li><li><a href="http://www.snippetit.com/2009/04/java-randomly-sort-values-in-a-array-the-generic-way-in-single-pasas/" title="Java: Randomly sort values in a array (the generic way) in single pass">Java: Randomly sort values in a array (the generic way) in single pass</a></li><li><a href="http://www.snippetit.com/2009/03/java-format-integer-into-number-of-decimal-places-and-performance/" title="Java: Format integer into number of decimal places and performance">Java: Format integer into number of decimal places and performance</a></li><li><a href="http://www.snippetit.com/2009/03/java-static-constructor/" title="Java Static Constructor">Java Static Constructor</a></li><li><a href="http://www.snippetit.com/2010/01/java-use-bytebuffer-as-inputstream/" title="Java: Use ByteBuffer As InputStream">Java: Use ByteBuffer As InputStream</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-how-to-add-table-into-a-post/" title="Wordpress: How To Add Table Into A Post">Wordpress: How To Add Table Into A Post</a></li></ul>]]></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>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Wordpress%3A+Catch+A+Spam+Comment+With+Statcounter+-+http://b2l.me/becpb&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2009/12/wordpress-catch-a-spamm-comment-with-statcounter/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2009/12/wordpress-catch-a-spamm-comment-with-statcounter/&amp;submitHeadline=Wordpress%3A+Catch+A+Spam+Comment+With+Statcounter&amp;submitSummary=Sometime%20your%20Wordpress%27%20anti%20spam%20software%20%28e.g.%20Akismet%29%20may%20not%20able%20to%20stop%20all%20the%20comment%20spam%20because%20the%20comment%20looks%20too%20real%20to%20it%20and%20to%20human%20too.%20In%20this%20case%2C%20you%20will%20need%20to%20identify%20the%20comment%20whether%20it%20is%20actually%20a%20real%20comment%20or%20it%20is%20automatically%20submitted%20by%20software.%0D%0A%0D%0AS&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2009/12/wordpress-catch-a-spamm-comment-with-statcounter/&amp;title=Wordpress%3A+Catch+A+Spam+Comment+With+Statcounter" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2009/12/wordpress-catch-a-spamm-comment-with-statcounter/&amp;title=Wordpress%3A+Catch+A+Spam+Comment+With+Statcounter" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2009/12/wordpress-catch-a-spamm-comment-with-statcounter/&amp;Title=Wordpress%3A+Catch+A+Spam+Comment+With+Statcounter" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2009/12/wordpress-catch-a-spamm-comment-with-statcounter/&amp;title=Wordpress%3A+Catch+A+Spam+Comment+With+Statcounter" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2009/12/wordpress-catch-a-spamm-comment-with-statcounter/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/12/wordpress-version-2-9/" title="Wordpress: Version 2.9">Wordpress: Version 2.9</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-how-to-add-table-into-a-post/" title="Wordpress: How To Add Table Into A Post">Wordpress: How To Add Table Into A Post</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-rename-permalink-url-with-ease-in-administrator-page/" title="Wordpress: Rename Permalink URL with Ease in Administrator Page">Wordpress: Rename Permalink URL with Ease in Administrator Page</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-schedule-to-publish-a-post/" title="Wordpress: Schedule to Publish a Post">Wordpress: Schedule to Publish a Post</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-version-2-8-6-security-release/" title="Wordpress: Version 2.8.6 Security Release">Wordpress: Version 2.8.6 Security Release</a></li><li><a href="http://www.snippetit.com/2009/07/wordpress-2-8-1/" title="Wordpress: 2.8.1">Wordpress: 2.8.1</a></li><li><a href="http://www.snippetit.com/2009/06/wordpress-version-2-8/" title="WordPress: Version 2.8">WordPress: Version 2.8</a></li><li><a href="http://www.snippetit.com/2009/05/wordpress-make-your-wordpress-a-little-bit-more-secure/" title="Wordpress: Make Your Wordpress A Little Bit More Secure">Wordpress: Make Your Wordpress A Little Bit More Secure</a></li><li><a href="http://www.snippetit.com/2009/04/how-to-add-advertisement-code-to-wordpress-themes-sidebar/" title="How to Add Advertisement Code to Wordpress Theme&#8217;s Sidebar">How to Add Advertisement Code to Wordpress Theme&#8217;s Sidebar</a></li><li><a href="http://www.snippetit.com/2009/02/wordpress-271/" title="WordPress 2.7.1">WordPress 2.7.1</a></li></ul>]]></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>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>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Wordpress%3A+How+To+Add+Table+Into+A+Post+-+http://b2l.me/atfk4&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2009/11/wordpress-how-to-add-table-into-a-post/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2009/11/wordpress-how-to-add-table-into-a-post/&amp;submitHeadline=Wordpress%3A+How+To+Add+Table+Into+A+Post&amp;submitSummary=Wordpress%27%20WYSIWYG%20post%20editor%20does%20not%20come%20with%20the%20functionality%20that%20allows%20user%20to%20create%20table%20when%20editing%20a%20post%20%28like%20what%20you%20can%20do%20in%20Microsoft%20word%29.%0D%0A%0D%0AHowever%2C%20putting%20a%20table%20into%20a%20post%20in%20Wordpress%20editor%20is%20not%20as%20hard%20as%20writing%20a%20software%20codes.%20What%20you%20need%20to%20know%20is%20to%20famil&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2009/11/wordpress-how-to-add-table-into-a-post/&amp;title=Wordpress%3A+How+To+Add+Table+Into+A+Post" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2009/11/wordpress-how-to-add-table-into-a-post/&amp;title=Wordpress%3A+How+To+Add+Table+Into+A+Post" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2009/11/wordpress-how-to-add-table-into-a-post/&amp;Title=Wordpress%3A+How+To+Add+Table+Into+A+Post" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2009/11/wordpress-how-to-add-table-into-a-post/&amp;title=Wordpress%3A+How+To+Add+Table+Into+A+Post" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2009/11/wordpress-how-to-add-table-into-a-post/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/04/how-to-add-advertisement-code-to-wordpress-themes-sidebar/" title="How to Add Advertisement Code to Wordpress Theme&#8217;s Sidebar">How to Add Advertisement Code to Wordpress Theme&#8217;s Sidebar</a></li><li><a href="http://www.snippetit.com/2010/01/java-format-integer-into-fixed-width-string/" title="Java: Format Integer Into Fixed Width String">Java: Format Integer Into Fixed Width String</a></li><li><a href="http://www.snippetit.com/2009/12/wordpress-version-2-9/" title="Wordpress: Version 2.9">Wordpress: Version 2.9</a></li><li><a href="http://www.snippetit.com/2009/12/java-continuously-read-data-from-filechannel-without-mappedbytebuffer/" title="Java: Continuously Read Data From FileChannel Without MappedByteBuffer">Java: Continuously Read Data From FileChannel Without MappedByteBuffer</a></li><li><a href="http://www.snippetit.com/2009/12/wordpress-catch-a-spamm-comment-with-statcounter/" title="Wordpress: Catch A Spam Comment With Statcounter">Wordpress: Catch A Spam Comment With Statcounter</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-rename-permalink-url-with-ease-in-administrator-page/" title="Wordpress: Rename Permalink URL with Ease in Administrator Page">Wordpress: Rename Permalink URL with Ease in Administrator Page</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-schedule-to-publish-a-post/" title="Wordpress: Schedule to Publish a Post">Wordpress: Schedule to Publish a Post</a></li><li><a href="http://www.snippetit.com/2009/11/wordpress-version-2-8-6-security-release/" title="Wordpress: Version 2.8.6 Security Release">Wordpress: Version 2.8.6 Security Release</a></li><li><a href="http://www.snippetit.com/2009/11/java-loading-large-data-into-jtable-or-jlist/" title="Java: Loading Large Data into JTable or JList">Java: Loading Large Data into JTable or JList</a></li><li><a href="http://www.snippetit.com/2009/08/java-format-long-integer-into-hexadecimal-string/" title="Java: Format Long Integer Into Hexadecimal String">Java: Format Long Integer Into Hexadecimal String</a></li></ul>]]></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>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>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=JavaScript%3A+Overcome+Slow+Loading+JavaScript+On+A+Web+Page+-+http://b2l.me/akf7x&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2009/11/javascript-overcome-slow-loading-javascript-on-a-web-page/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2009/11/javascript-overcome-slow-loading-javascript-on-a-web-page/&amp;submitHeadline=JavaScript%3A+Overcome+Slow+Loading+JavaScript+On+A+Web+Page&amp;submitSummary=Sometime%20a%20web%20page%20may%20load%20slowly%20due%20to%20loading%20a%20third%20party%20JavaScript%20source%20file%20from%20other%20domain.%20Most%20of%20the%20time%2C%20a%20web%20site%20comes%20with%20advertisement%20scripts%20or%20scripts%20for%20keep%20tracking%20visitors%20and%20these%20scripts%20are%20normally%20provided%20by%20third%20parties%20like%20Google%20Adsense%2C%20Statcounter%2C%20Am&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2009/11/javascript-overcome-slow-loading-javascript-on-a-web-page/&amp;title=JavaScript%3A+Overcome+Slow+Loading+JavaScript+On+A+Web+Page" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2009/11/javascript-overcome-slow-loading-javascript-on-a-web-page/&amp;title=JavaScript%3A+Overcome+Slow+Loading+JavaScript+On+A+Web+Page" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2009/11/javascript-overcome-slow-loading-javascript-on-a-web-page/&amp;Title=JavaScript%3A+Overcome+Slow+Loading+JavaScript+On+A+Web+Page" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2009/11/javascript-overcome-slow-loading-javascript-on-a-web-page/&amp;title=JavaScript%3A+Overcome+Slow+Loading+JavaScript+On+A+Web+Page" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2009/11/javascript-overcome-slow-loading-javascript-on-a-web-page/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/12/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>]]></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>Wordpress: Rename Permalink URL with Ease in Administrator Page</title>
		<link>http://www.snippetit.com/2009/11/wordpress-rename-permalink-url-with-ease-in-administrator-page/</link>
		<comments>http://www.snippetit.com/2009/11/wordpress-rename-permalink-url-with-ease-in-administrator-page/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 11:48:09 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=325</guid>
		<description><![CDATA[It is quite troublesome every time when blogger wants to rename a post's permalink URL after he or she has renamed the post's title in Wordpress's administrator page. Blogger needs to click the Edit button next to the permalink URL and modify the text accordingly.
Blogger now can do it with a easier way with this simple trick. After [...]]]></description>
			<content:encoded><![CDATA[<p>It is quite troublesome every time when blogger wants to rename a post's permalink URL after he or she has renamed the post's title in Wordpress's administrator page. Blogger needs to click the <em>Edit</em> button next to the permalink URL and modify the text accordingly.</p>
<p><span id="more-325"></span>Blogger now can do it with a easier way with this simple trick. After you have changed the post title, click the <em>Edit</em> button next to permalink's URL, empty the text inside and click <em>Save</em>. Wordpress will automatically write the full permalink URL again for you.</p>
<p>That's all what you need to do to rename the whole permalink URL. Simple right? Have fun!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Wordpress%3A+Rename+Permalink+URL+with+Ease+in+Administrator+Page+-+http://b2l.me/ajgkt&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2009/11/wordpress-rename-permalink-url-with-ease-in-administrator-page/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2009/11/wordpress-rename-permalink-url-with-ease-in-administrator-page/&amp;submitHeadline=Wordpress%3A+Rename+Permalink+URL+with+Ease+in+Administrator+Page&amp;submitSummary=It%20is%20quite%20troublesome%C2%A0every%20time%C2%A0when%20blogger%20wants%20to%20rename%20a%20post%27s%20permalink%20URL%20after%20he%20or%20she%20has%20renamed%20the%20post%27s%20title%20in%20Wordpress%27s%20administrator%20page.%C2%A0Blogger%20needs%20to%20click%20the%20Edit%20button%20next%20to%20the%20permalink%20URL%20and%20modify%20the%20text%20accordingly.%0D%0A%0D%0ABlogger%20now%20can%20do%20it%20with%20a%20&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2009/11/wordpress-rename-permalink-url-with-ease-in-administrator-page/&amp;title=Wordpress%3A+Rename+Permalink+URL+with+Ease+in+Administrator+Page" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2009/11/wordpress-rename-permalink-url-with-ease-in-administrator-page/&amp;title=Wordpress%3A+Rename+Permalink+URL+with+Ease+in+Administrator+Page" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2009/11/wordpress-rename-permalink-url-with-ease-in-administrator-page/&amp;Title=Wordpress%3A+Rename+Permalink+URL+with+Ease+in+Administrator+Page" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2009/11/wordpress-rename-permalink-url-with-ease-in-administrator-page/&amp;title=Wordpress%3A+Rename+Permalink+URL+with+Ease+in+Administrator+Page" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2009/11/wordpress-rename-permalink-url-with-ease-in-administrator-page/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/11/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/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/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/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-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></ul>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/11/wordpress-rename-permalink-url-with-ease-in-administrator-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress: Schedule to Publish a Post</title>
		<link>http://www.snippetit.com/2009/11/wordpress-schedule-to-publish-a-post/</link>
		<comments>http://www.snippetit.com/2009/11/wordpress-schedule-to-publish-a-post/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 12:00:55 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[blogging tips]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=322</guid>
		<description><![CDATA[To publish a post doesn't mean you always need to be in front in your computer. Using Wordpress, you can simply write a post, schedule it and forget it. Wordpress will then publish your scheduled post at the right time!

Here is how you schedule Wordpress to publish your post in future:

Write your post as usual.
On [...]]]></description>
			<content:encoded><![CDATA[<p>To publish a post doesn't mean you always need to be in front in your computer. Using Wordpress, you can simply write a post, schedule it and forget it. Wordpress will then publish your scheduled post at the right time!<br />
<img class="aligncenter" src="http://farm3.static.flickr.com/2527/4111303413_d49964dc11.jpg" alt="Schedule Wordpress to Publish a Post" width="293" height="213" /></p>
<p><span id="more-322"></span>Here is how you schedule Wordpress to publish your post in future:</p>
<ul>
<li>Write your post as usual.</li>
<li>On your right hand side, find the words <em>Publish immediately.</em></li>
<li>Click on the <em>Edit</em> link and change the date and time to any date and time in future.</li>
<li>Make sure you click the <em>OK</em> button.</li>
<li>Then you will see the blue color <em>Publish</em> button has been changed to <em>Schedule</em>.</li>
<li>Press <em>Schedule </em>button once you have done editing your post.</li>
</ul>
<p>That's it. Your post will be published at the date and time you have set.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Wordpress%3A+Schedule+to+Publish+a+Post+-+http://b2l.me/ag6hz&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2009/11/wordpress-schedule-to-publish-a-post/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2009/11/wordpress-schedule-to-publish-a-post/&amp;submitHeadline=Wordpress%3A+Schedule+to+Publish+a+Post&amp;submitSummary=To%20publish%20a%20post%20doesn%27t%20mean%20you%20always%20need%20to%20be%20in%20front%20in%20your%20computer.%20Using%20Wordpress%2C%20you%20can%20simply%20write%20a%20post%2C%20schedule%20it%20and%20forget%20it.%20Wordpress%20will%20then%20publish%20your%20scheduled%20post%20at%20the%20right%20time%21%0D%0A%0D%0A%0D%0AHere%20is%20how%20you%20schedule%20Wordpress%20to%20publish%20your%20post%20in%20future%3A%0D%0A%0D%0A%09Writ&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2009/11/wordpress-schedule-to-publish-a-post/&amp;title=Wordpress%3A+Schedule+to+Publish+a+Post" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2009/11/wordpress-schedule-to-publish-a-post/&amp;title=Wordpress%3A+Schedule+to+Publish+a+Post" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2009/11/wordpress-schedule-to-publish-a-post/&amp;Title=Wordpress%3A+Schedule+to+Publish+a+Post" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2009/11/wordpress-schedule-to-publish-a-post/&amp;title=Wordpress%3A+Schedule+to+Publish+a+Post" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2009/11/wordpress-schedule-to-publish-a-post/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/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/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/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/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-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></ul>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/11/wordpress-schedule-to-publish-a-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Youtube: Stop Youtube From Loading</title>
		<link>http://www.snippetit.com/2009/09/youtube-stop-youtube-from-loading/</link>
		<comments>http://www.snippetit.com/2009/09/youtube-stop-youtube-from-loading/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 14:46:14 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[Youtube]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=304</guid>
		<description><![CDATA[Previously, I wrote a "how to" article on How to stop Youtube loading data from the Internet using Google Chrome. Now you can do it at any browser using this simple trick.

To stop Youtube from loading immediately, simply drag the progress button at the progress bar (at the bottom of the video) to the end [...]]]></description>
			<content:encoded><![CDATA[<p>Previously, I wrote a "how to" article on <a href="http://www.snippetit.com/2009/05/google-chrome-how-to-stop-youtube-loading-data-from-the-internet/">How to stop Youtube loading data from the Internet using Google Chrome</a>. Now you can do it at any browser using this simple trick.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm3.static.flickr.com/2508/3893137528_235cdd06e9.jpg" alt="Stop Youtube From Loading" width="500" height="283" /></p>
<p><span id="more-304"></span>To stop Youtube from loading immediately, simply drag the progress button at the progress bar (at the bottom of the video) to the end (to the right hand side) and Youtube will assume the video has ended and stop loading data from the Internet. That's all what you need to do!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Youtube%3A+Stop+Youtube+From+Loading+-+http://b2l.me/adx7e&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2009/09/youtube-stop-youtube-from-loading/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2009/09/youtube-stop-youtube-from-loading/&amp;submitHeadline=Youtube%3A+Stop+Youtube+From+Loading&amp;submitSummary=Previously%2C%20I%20wrote%20a%20%22how%20to%22%20article%20on%20How%20to%20stop%20Youtube%20loading%20data%20from%20the%20Internet%20using%20Google%20Chrome.%20Now%20you%20can%20do%20it%20at%20any%20browser%20using%20this%20simple%20trick.%0D%0A%0D%0A%0D%0ATo%20stop%20Youtube%20from%20loading%20immediately%2C%20simply%20drag%20the%20progress%20button%20at%20the%20progress%20bar%20%28at%20the%20bottom%20of%20the%20video%29%20&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2009/09/youtube-stop-youtube-from-loading/&amp;title=Youtube%3A+Stop+Youtube+From+Loading" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2009/09/youtube-stop-youtube-from-loading/&amp;title=Youtube%3A+Stop+Youtube+From+Loading" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2009/09/youtube-stop-youtube-from-loading/&amp;Title=Youtube%3A+Stop+Youtube+From+Loading" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2009/09/youtube-stop-youtube-from-loading/&amp;title=Youtube%3A+Stop+Youtube+From+Loading" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2009/09/youtube-stop-youtube-from-loading/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/05/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/04/how-to-monetize-your-youtube-video/" title="How to Monetize Your Youtube Video">How to Monetize Your Youtube Video</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/09/youtube-stop-youtube-from-loading/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>BigDump: Alternative to phpMyAdmin to Import/Restore Large Database</title>
		<link>http://www.snippetit.com/2009/07/bigdump-alternative-to-phpmyadmin-to-importrestore-large-database/</link>
		<comments>http://www.snippetit.com/2009/07/bigdump-alternative-to-phpmyadmin-to-importrestore-large-database/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 15:15:29 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Programming and Scripting]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpMyAdmin]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=291</guid>
		<description><![CDATA[Recently I was facing problem on restoring database with a lot of data into MYSQL using phpMyAdmin. The restoring process keeps interrupted due to the connection between browser and server time's timeout and also due to the timeout in PHP script. Only partial data is restored and I kept dropping the database, increase PHP timeout, [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was facing problem on restoring database with a lot of data into MYSQL using phpMyAdmin. The restoring process keeps interrupted due to the connection between browser and server time's timeout and also due to the timeout in PHP script. Only partial data is restored and I kept dropping the database, increase PHP timeout, increased memory limit, and tried to restore again. But it still failed.</p>
<p><span id="more-291"></span></p>
<p>Then, I found a very useful, free script <a href="http://www.ozerov.de/bigdump.php">BigDump</a> which helps me to solve my problem. The way it work is pretty simple. It simply split the dump data into a few parts and execute it one by one. The script remembers where is the point it ups to in session, execute a portion of data, and then restart itself to continue to process the un-process data.</p>
<p>If you are having problems importing or restoring huge data into MYSQL using phpMyAdmin, you can try using this script. You can either upload your MYSQL dumps from the script page or point it to the MYSQL dumps located in your server.</p>
<p><a href="http://www.ozerov.de/bigdump.php">Download BigDump</a> (about 10kb)</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=BigDump%3A+Alternative+to+phpMyAdmin+to+Import%2FRestore+Large+Database+-+http://b2l.me/adgqf&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2009/07/bigdump-alternative-to-phpmyadmin-to-importrestore-large-database/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2009/07/bigdump-alternative-to-phpmyadmin-to-importrestore-large-database/&amp;submitHeadline=BigDump%3A+Alternative+to+phpMyAdmin+to+Import%2FRestore+Large+Database&amp;submitSummary=Recently%20I%20was%20facing%20problem%20on%20restoring%20database%20with%20a%20lot%20of%20data%20into%20MYSQL%20using%20phpMyAdmin.%20The%20restoring%20process%20keeps%20interrupted%20due%20to%20the%20connection%20between%20browser%20and%20server%20time%27s%20timeout%20and%20also%20due%20to%20the%20timeout%20in%20PHP%20script.%20Only%20partial%20data%20is%20restored%20and%20I%20kept%20dropping%20the&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2009/07/bigdump-alternative-to-phpmyadmin-to-importrestore-large-database/&amp;title=BigDump%3A+Alternative+to+phpMyAdmin+to+Import%2FRestore+Large+Database" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2009/07/bigdump-alternative-to-phpmyadmin-to-importrestore-large-database/&amp;title=BigDump%3A+Alternative+to+phpMyAdmin+to+Import%2FRestore+Large+Database" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2009/07/bigdump-alternative-to-phpmyadmin-to-importrestore-large-database/&amp;Title=BigDump%3A+Alternative+to+phpMyAdmin+to+Import%2FRestore+Large+Database" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2009/07/bigdump-alternative-to-phpmyadmin-to-importrestore-large-database/&amp;title=BigDump%3A+Alternative+to+phpMyAdmin+to+Import%2FRestore+Large+Database" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2009/07/bigdump-alternative-to-phpmyadmin-to-importrestore-large-database/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/05/php-how-to-protect-password-in-database-password-hashing/" title="PHP: How to Protect Password in Database &#8211; Password Hashing">PHP: How to Protect Password in Database &#8211; Password Hashing</a></li><li><a href="http://www.snippetit.com/2009/04/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><li><a href="http://www.snippetit.com/2009/04/php-session_start-no-such-file-or-directory-error/" title="PHP: session_start() &#8211; No such file or directory error">PHP: session_start() &#8211; No such file or directory error</a></li><li><a href="http://www.snippetit.com/2009/04/php-short-url-algorithm-implementation/" title="PHP: Short URL Algorithm Implementation">PHP: Short URL Algorithm Implementation</a></li><li><a href="http://www.snippetit.com/2009/02/regular-expression-test-tool/" title="Regular Expression Test Tool">Regular Expression Test Tool</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><li><a href="http://www.snippetit.com/2008/04/replace-wordpress-more-tag-with-advertisement-code/" title="Replace Wordpress&#8217; more tag with advertisement code">Replace Wordpress&#8217; more tag with advertisement code</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/07/bigdump-alternative-to-phpmyadmin-to-importrestore-large-database/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Gmail: Drag and Drop, Hiding and More</title>
		<link>http://www.snippetit.com/2009/07/gmail-drag-and-drop-hiding-and-more/</link>
		<comments>http://www.snippetit.com/2009/07/gmail-drag-and-drop-hiding-and-more/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 15:53:37 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[New and Happening]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=267</guid>
		<description><![CDATA[Gmail developers make more enhancement to the Gmail labeling. Previously, Gmail has the new label menu added with shortcut keys, now it comes with drag and drop, hiding and more features.

New location for labels
The new labels are now located at your left sidebar (or on the right, for those of you using the Arabic, Hebrew, [...]]]></description>
			<content:encoded><![CDATA[<p>Gmail developers make more enhancement to the Gmail labeling. Previously, Gmail has the <a title="Gmail Labels Menu" href="http://www.snippetit.com/2009/02/gmails-labels-menu/">new label menu</a> added with shortcut keys, now it comes with drag and drop, hiding and more features.</p>
<p style="text-align: center; "><img class="aligncenter" src="http://farm4.static.flickr.com/3641/3682034070_cd32cf2ac2.jpg" alt="Gmail Labels" width="500" height="328" /></p>
<p><span id="more-267"></span><strong>New location for labels</strong></p>
<p>The new labels are now located at your left sidebar (or on the right, for those of you using the Arabic, Hebrew, or Urdu versions of Gmail). The labels are grouped together with other system labels such as inbox and spam.</p>
<p><strong>Label hiding and showing</strong></p>
<p>Instead of showing a long list of labels (if you have a long long list as what I have), Gmail now show only a few labels and you can access to the rest by click the more link.</p>
<p>You may have named your label ++somthing to make it on top previously. Now the control is on yours. You can simple drag and drop to reorder the labels.</p>
<p><strong>Drag and Drop</strong></p>
<p>This is the coolest feature I like the most. You can now drap messages and drop to label or drag label and drop to messages. Drag and drop messages to label is just like using the "Move to" label function. While drag and drop label to messages is just like using the "Label" message function.</p>
<p>Read more at <a href="http://gmailblog.blogspot.com/2009/07/labels-drag-and-drop-hiding-and-more.html" target="_blank">Gmail Blog</a>.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Gmail%3A+Drag+and+Drop%2C+Hiding+and+More+-+http://b2l.me/adnpr&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2009/07/gmail-drag-and-drop-hiding-and-more/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2009/07/gmail-drag-and-drop-hiding-and-more/&amp;submitHeadline=Gmail%3A+Drag+and+Drop%2C+Hiding+and+More&amp;submitSummary=Gmail%20developers%20make%20more%20enhancement%20to%20the%20Gmail%20labeling.%20Previously%2C%20Gmail%20has%20the%20new%20label%20menu%20added%20with%20shortcut%20keys%2C%20now%20it%20comes%20with%20drag%20and%20drop%2C%20hiding%20and%20more%20features.%0D%0A%0D%0A%0D%0ANew%20location%20for%20labels%0D%0A%0D%0AThe%20new%20labels%20are%20now%20located%20at%20your%20left%20sidebar%20%28or%20on%20the%20right%2C%20for%20those%20&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2009/07/gmail-drag-and-drop-hiding-and-more/&amp;title=Gmail%3A+Drag+and+Drop%2C+Hiding+and+More" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2009/07/gmail-drag-and-drop-hiding-and-more/&amp;title=Gmail%3A+Drag+and+Drop%2C+Hiding+and+More" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2009/07/gmail-drag-and-drop-hiding-and-more/&amp;Title=Gmail%3A+Drag+and+Drop%2C+Hiding+and+More" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2009/07/gmail-drag-and-drop-hiding-and-more/&amp;title=Gmail%3A+Drag+and+Drop%2C+Hiding+and+More" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2009/07/gmail-drag-and-drop-hiding-and-more/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Most Commented Posts</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/12/google-wave-invitation-giveaway/" title="Google Wave Invitation Giveaway">Google Wave Invitation Giveaway</a></li><li><a href="http://www.snippetit.com/2009/04/wordpress-plugin-blogtal-trackback/" title="Wordpress Plugin &#8211; Blogtal Trackback">Wordpress Plugin &#8211; Blogtal Trackback</a></li><li><a href="http://www.snippetit.com/2009/04/wordpress-plugin-default-trackbacks/" title="Wordpress Plugin &#8211; Default Trackbacks">Wordpress Plugin &#8211; Default Trackbacks</a></li><li><a href="http://www.snippetit.com/2009/02/c-loop-all-files-in-directory-and-its-sub-directories/" title="C# &#8211; Loop all files in directory and it&#8217;s sub-directories">C# &#8211; Loop all files in directory and it&#8217;s sub-directories</a></li><li><a href="http://www.snippetit.com/2009/05/wordpress-make-your-wordpress-a-little-bit-more-secure/" title="Wordpress: Make Your Wordpress A Little Bit More Secure">Wordpress: Make Your Wordpress A Little Bit More Secure</a></li><li><a href="http://www.snippetit.com/2008/10/implement-your-own-short-url/" title="Implement your own short URL">Implement your own short URL</a></li><li><a href="http://www.snippetit.com/2009/01/website-value-evaluation-tool/" title="Website value evaluation tool">Website value evaluation tool</a></li><li><a href="http://www.snippetit.com/2009/05/windows-live-messenger-beware-of-unsolicited-messages-sent-from-your-friends-live-account/" title="Windows Live Messenger: Beware of Unsolicited Messages Sent From Your Friends&#8217; Live Account">Windows Live Messenger: Beware of Unsolicited Messages Sent From Your Friends&#8217; Live Account</a></li><li><a href="http://www.snippetit.com/2009/07/java-mortgage-payment-calculator/" title="Java: Mortgage Payment Calculator">Java: Mortgage Payment Calculator</a></li><li><a href="http://www.snippetit.com/2009/02/gmails-labels-menu/" title="Gmail&#8217;s Labels menu">Gmail&#8217;s Labels menu</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/07/gmail-drag-and-drop-hiding-and-more/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Adsense: Can I place small images next to my Google ads?</title>
		<link>http://www.snippetit.com/2009/06/google-adsense-can-i-place-small-images-next-to-my-google-ads/</link>
		<comments>http://www.snippetit.com/2009/06/google-adsense-can-i-place-small-images-next-to-my-google-ads/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 08:30:10 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Earning with Website and Blogging]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Google Adsense]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=258</guid>
		<description><![CDATA[You may have seen people to put small images next to Google ads with size Medium Rectangle (300 x 250) and Large Rectangle (336 x 280) to gain more clicks and to get higher click thru rate.

Can you actually do that? The answer is no.
According to Google Adsense, the way you put the images will [...]]]></description>
			<content:encoded><![CDATA[<p>You may have seen people to put small images next to Google ads with size <em>Medium Rectangle (300 x 250)</em> and <em>Large Rectangle (336 x 280) </em>to gain more clicks and to get higher click thru rate.</p>
<p style="text-align: center;"><img class="alignnone" src="http://farm4.static.flickr.com/3543/3652920084_c01fbb0dec.jpg" alt="Google Adsense: Can I place small images next to my Google ads?" width="432" height="295" /></p>
<p><span id="more-258"></span>Can you actually do that? The answer is no.</p>
<p>According to Google Adsense, the way you put the images will mislead the visitor that that the images and the ads are directly associated, or that the advertiser is offering the exact item found in the neighboring image.</p>
<p>They may click the ad expecting to find something that isn't actually being offered. That's not a good experience for users or advertisers.</p>
<p>Read more on <a href="http://adsense.blogspot.com/2006/12/ad-and-image-placement-policy.html" target="_blank">Inside Adsense</a>.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Google+Adsense%3A+Can+I+place+small+images+next+to+my+Google+ads%3F+-+http://b2l.me/adx7h&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2009/06/google-adsense-can-i-place-small-images-next-to-my-google-ads/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2009/06/google-adsense-can-i-place-small-images-next-to-my-google-ads/&amp;submitHeadline=Google+Adsense%3A+Can+I+place+small+images+next+to+my+Google+ads%3F&amp;submitSummary=You%20may%20have%20seen%20people%20to%20put%20small%20images%20next%20to%20Google%20ads%20with%20size%20Medium%20Rectangle%20%28300%20x%20250%29%20and%20Large%20Rectangle%20%28336%20x%20280%29%20to%20gain%20more%20clicks%20and%20to%20get%20higher%20click%20thru%20rate.%0D%0A%0D%0A%0D%0ACan%20you%20actually%20do%20that%3F%20The%20answer%20is%20no.%0D%0A%0D%0AAccording%20to%20Google%20Adsense%2C%20the%20way%20you%20put%20the%20images%20wi&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2009/06/google-adsense-can-i-place-small-images-next-to-my-google-ads/&amp;title=Google+Adsense%3A+Can+I+place+small+images+next+to+my+Google+ads%3F" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2009/06/google-adsense-can-i-place-small-images-next-to-my-google-ads/&amp;title=Google+Adsense%3A+Can+I+place+small+images+next+to+my+Google+ads%3F" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2009/06/google-adsense-can-i-place-small-images-next-to-my-google-ads/&amp;Title=Google+Adsense%3A+Can+I+place+small+images+next+to+my+Google+ads%3F" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2009/06/google-adsense-can-i-place-small-images-next-to-my-google-ads/&amp;title=Google+Adsense%3A+Can+I+place+small+images+next+to+my+Google+ads%3F" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2009/06/google-adsense-can-i-place-small-images-next-to-my-google-ads/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/06/syssense-view-your-google-adsens-earning-at-desktop/" title="SysSense: View Your Google Adsens Earning at Desktop">SysSense: View Your Google Adsens Earning at Desktop</a></li><li><a href="http://www.snippetit.com/2009/05/wordpress-theme-callisto-glossy-blue-3-column-widget-and-adsense-ready/" title="Wordpress Theme &#8211; Callisto &#8211; Glossy Blue, 3 Column, Widget and Adsense Ready">Wordpress Theme &#8211; Callisto &#8211; Glossy Blue, 3 Column, Widget and Adsense Ready</a></li><li><a href="http://www.snippetit.com/2009/05/google-adsense-google-ad-planner-showcase-your-site/" title="Google Adsense: Google Ad Planner &#8211; Showcase Your Site">Google Adsense: Google Ad Planner &#8211; Showcase Your Site</a></li><li><a href="http://www.snippetit.com/2009/05/google-adsense-integrate-your-adsense-account-with-google-analytics/" title="Google Adsense: Integrate Your Adsense Account with Google Analytics">Google Adsense: Integrate Your Adsense Account with Google Analytics</a></li><li><a href="http://www.snippetit.com/2009/04/how-to-monetize-your-youtube-video/" title="How to Monetize Your Youtube Video">How to Monetize Your Youtube Video</a></li><li><a href="http://www.snippetit.com/2008/10/google-chrome-bug/" title="Google Chrome Bug?">Google Chrome Bug?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/06/google-adsense-can-i-place-small-images-next-to-my-google-ads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Chrome: How to Stop Youtube Loading Data from the Internet</title>
		<link>http://www.snippetit.com/2009/05/google-chrome-how-to-stop-youtube-loading-data-from-the-internet/</link>
		<comments>http://www.snippetit.com/2009/05/google-chrome-how-to-stop-youtube-loading-data-from-the-internet/#comments</comments>
		<pubDate>Mon, 25 May 2009 17:36:27 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Software and Hardware]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[bandwidth]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[Youtube]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=225</guid>
		<description><![CDATA[I love Youtube and I believe many people love it too. Many people like to embed the Youtube video into their websites or blogs so they can write something about the video and share with friends.
Sometimes, after I have clicked the play button on the embedded video in somebody's blog but I would like to [...]]]></description>
			<content:encoded><![CDATA[<p>I love Youtube and I believe many people love it too. Many people like to embed the Youtube video into their websites or blogs so they can write something about the video and share with friends.</p>
<p>Sometimes, after I have clicked the play button on the embedded video in somebody's blog but I would like to stop it because I found that the video is not interested to me at all. I can only pause the video and I can't stop it from loading data from Internet because there is no stop button at the embed video.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm4.static.flickr.com/3560/3562885259_11e4eb91a9.jpg" alt="Youtube" width="286" height="96" /></p>
<p><span id="more-225"></span></p>
<p>At the same time, I also feel don't want to leave the page because I haven't finished reading the post content or comments left on the page. But to stop the video from loading, I have to navigate to other page and back to the page again.</p>
<p>It's quite useful to have a stop button at the video because I don't want the Youtube application to keep consuming my network's bandwidth (which is pretty slow in my country). A typical video can have size from a few mega bytes to hundreds of mega bytes.</p>
<p>To solve the problem, I found a really simple trick to stop the Youtube video from loading in Google Chrome browser. I'm not sure whether you can perform it on other browser or not.</p>
<p>Google Chrome runs plug-in in other process. A Youtube video is a Shockwave application which is a plug-in to Google Chrome browser. So to stop the video from loading, you simply kill the Shockwave plug-in process. Please note that killing the process may cause applications (e.g. flash animation) at other tabs in Google Chrome browse not working.</p>
<p>To kill the process, right click on Google Chrome at your windows task bar (or right click Google Chrome Windows' title) and select "Task manager". This is the task manager for Google Chrome only and not for the whole Windows Operating System. After that find the process with name "Plug-in: Shockwave Flash" and click on it. Then click "End process" button to end the process. To reload the video again, simply refresh the page.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://farm4.static.flickr.com/3584/3562885137_2dea901813.jpg" alt="Stop Youtube Loading" width="454" height="236" /></p>
<p style="text-align: center;"> </p>
<p style="text-align: center;"><img class="alignnone" src="http://farm4.static.flickr.com/3316/3562885203_0b9fa01461.jpg" alt="Stop Youtube Loading" width="500" height="101" /></p>
<p>Again, please note that killing the process may cause plug-ins / applications (e.g. flash animation) at other tabs in Google Chrome browse not working.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Google+Chrome%3A+How+to+Stop+Youtube+Loading+Data+from+the+Internet+-+http://b2l.me/adzz5&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2009/05/google-chrome-how-to-stop-youtube-loading-data-from-the-internet/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2009/05/google-chrome-how-to-stop-youtube-loading-data-from-the-internet/&amp;submitHeadline=Google+Chrome%3A+How+to+Stop+Youtube+Loading+Data+from+the+Internet&amp;submitSummary=I%20love%20Youtube%20and%20I%20believe%20many%20people%20love%20it%20too.%20Many%20people%20like%20to%20embed%20the%20Youtube%20video%20into%20their%20websites%20or%20blogs%20so%20they%20can%20write%20something%20about%20the%20video%20and%20share%20with%20friends.%0D%0A%0D%0ASometimes%2C%20after%20I%20have%20clicked%20the%20play%20button%20on%20the%20embedded%20video%20in%20somebody%27s%20blog%20but%20I%20would%20l&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2009/05/google-chrome-how-to-stop-youtube-loading-data-from-the-internet/&amp;title=Google+Chrome%3A+How+to+Stop+Youtube+Loading+Data+from+the+Internet" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2009/05/google-chrome-how-to-stop-youtube-loading-data-from-the-internet/&amp;title=Google+Chrome%3A+How+to+Stop+Youtube+Loading+Data+from+the+Internet" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2009/05/google-chrome-how-to-stop-youtube-loading-data-from-the-internet/&amp;Title=Google+Chrome%3A+How+to+Stop+Youtube+Loading+Data+from+the+Internet" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2009/05/google-chrome-how-to-stop-youtube-loading-data-from-the-internet/&amp;title=Google+Chrome%3A+How+to+Stop+Youtube+Loading+Data+from+the+Internet" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2009/05/google-chrome-how-to-stop-youtube-loading-data-from-the-internet/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/09/youtube-stop-youtube-from-loading/" title="Youtube: Stop Youtube From Loading">Youtube: Stop Youtube From Loading</a></li><li><a href="http://www.snippetit.com/2009/04/how-to-monetize-your-youtube-video/" title="How to Monetize Your Youtube Video">How to Monetize Your Youtube Video</a></li><li><a href="http://www.snippetit.com/2009/11/google-chromium-os/" title="Google Chromium OS">Google Chromium OS</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/2008/10/google-chrome-bug/" title="Google Chrome Bug?">Google Chrome Bug?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/05/google-chrome-how-to-stop-youtube-loading-data-from-the-internet/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Wordpress Theme: How to Enable Gravatar in Wordpress Theme</title>
		<link>http://www.snippetit.com/2009/05/wordpress-theme-how-to-enable-gravatar-in-wordpress-theme/</link>
		<comments>http://www.snippetit.com/2009/05/wordpress-theme-how-to-enable-gravatar-in-wordpress-theme/#comments</comments>
		<pubDate>Thu, 07 May 2009 16:33:13 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Programming and Scripting]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Gravatar]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[wordpress theme]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=160</guid>
		<description><![CDATA[Gravatars are Globally Recognized Avatars. An avatar or gravatar is an icon, or representation, of a user in a shared virtual reality, such as a forum, chat, website, or any other form of online community in which the user(s) wish to have something to distinguish themselves from other users. 
 

To enable Gravatar in your Wordpress theme's comments, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.gravatar.com/">Gravatars</a> are <strong>Globally Recognized Avatars</strong>. An avatar or gravatar is an icon, or representation, of a user in a shared virtual reality, such as a forum, chat, website, or any other form of online community in which the user(s) wish to have something to distinguish themselves from other users. </p>
<p style="text-align: center;"><a class="tt-flickr tt-flickr-Medium" title="Gravatar" href="http://www.flickr.com/photos/szehau/3509979389/"><img class="aligncenter" src="http://farm4.static.flickr.com/3645/3509979389_477b9991b0.jpg" alt="Gravatar" width="500" height="290" /></a> </p>
<p><span id="more-160"></span></p>
<p>To enable Gravatar in your Wordpress theme's comments, you will need to have some knowledge on editing PHP code and a little bit knowledge on Wordpress architecture. The minimum requirement to allow Gravatar to work on your theme is to have Wordpress running at version at least 2.5.</p>
<p>Open and edit the file that contains the code to generate comments (normally comments.php) in your Wordpress theme folder. Find the portion of code where all comments are looped and printed out. For example:</p>
<p><code></p>
<pre>&lt;?php foreach ($comments as $comment) : ?&gt;
  ......
&lt;?php endforeach; /* end for each comment */ ?&gt;</pre>
<p></code></p>
<p>Put the following code in the portion of code above:</p>
<p><code></p>
<pre>&lt;?php echo get_avatar( $comment, $size = '64' );  ?&gt;</pre>
<p></code></p>
<p>Depending on how large is the Gravatar image you want to display on your page, you can adjust the <code>$size = '64'</code> to other value (pixels). The default size if 92 pixels if you don't specified the size value.</p>
<p>Read Wordpress Codex for more on <a href="http://codex.wordpress.org/Using_Gravatars" target="_blank">using Gravatar</a>.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Wordpress+Theme%3A+How+to+Enable+Gravatar+in+Wordpress+Theme+-+http://b2l.me/aeagq&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2009/05/wordpress-theme-how-to-enable-gravatar-in-wordpress-theme/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2009/05/wordpress-theme-how-to-enable-gravatar-in-wordpress-theme/&amp;submitHeadline=Wordpress+Theme%3A+How+to+Enable+Gravatar+in+Wordpress+Theme&amp;submitSummary=Gravatars%20are%C2%A0Globally%20Recognized%20Avatars.%20An%20avatar%20or%20gravatar%20is%20an%20icon%2C%20or%20representation%2C%20of%20a%20user%20in%20a%20shared%20virtual%20reality%2C%20such%20as%20a%20forum%2C%20chat%2C%20website%2C%20or%20any%20other%20form%20of%20online%20community%20in%20which%20the%20user%28s%29%20wish%20to%20have%20something%20to%20distinguish%20themselves%20from%20other%20users.%C2%A0%0D%0A%C2%A0%0D&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2009/05/wordpress-theme-how-to-enable-gravatar-in-wordpress-theme/&amp;title=Wordpress+Theme%3A+How+to+Enable+Gravatar+in+Wordpress+Theme" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2009/05/wordpress-theme-how-to-enable-gravatar-in-wordpress-theme/&amp;title=Wordpress+Theme%3A+How+to+Enable+Gravatar+in+Wordpress+Theme" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2009/05/wordpress-theme-how-to-enable-gravatar-in-wordpress-theme/&amp;Title=Wordpress+Theme%3A+How+to+Enable+Gravatar+in+Wordpress+Theme" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2009/05/wordpress-theme-how-to-enable-gravatar-in-wordpress-theme/&amp;title=Wordpress+Theme%3A+How+to+Enable+Gravatar+in+Wordpress+Theme" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2009/05/wordpress-theme-how-to-enable-gravatar-in-wordpress-theme/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2010/01/java-format-integer-into-fixed-width-string/" title="Java: Format Integer Into Fixed Width String">Java: Format Integer Into Fixed Width String</a></li><li><a href="http://www.snippetit.com/2009/12/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/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/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/wordpress-2-8-1/" title="Wordpress: 2.8.1">Wordpress: 2.8.1</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/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-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></ul>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/05/wordpress-theme-how-to-enable-gravatar-in-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Gmail: How to Search Your Email Quickly in Gmail</title>
		<link>http://www.snippetit.com/2009/05/gmail-how-to-search-your-email-quickly-in-gmail/</link>
		<comments>http://www.snippetit.com/2009/05/gmail-how-to-search-your-email-quickly-in-gmail/#comments</comments>
		<pubDate>Thu, 07 May 2009 15:15:23 +0000</pubDate>
		<dc:creator>szehau</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[Gmail]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://www.snippetit.com/?p=156</guid>
		<description><![CDATA[If your are using Gmail as you email client,  how do you search all your emails from your girl friends with keywords "I love your" for a certain date range for the received emails? 
 

You can use the advanced search options by clicking the "Show search option" next to the search box in Gmail or use [...]]]></description>
			<content:encoded><![CDATA[<p>If your are using Gmail as you email client,  how do you search all your emails from your girl friends with keywords "I love your" for a certain date range for the received emails? </p>
<p style="text-align: center;"><a class="tt-flickr tt-flickr-Medium" title="Gmail Search" href="http://www.flickr.com/photos/szehau/3510522422/"><img class="aligncenter" src="http://farm4.static.flickr.com/3644/3510522422_16200dae53.jpg" alt="Gmail Search" width="500" height="64" /></a> </p>
<p><span id="more-156"></span></p>
<p>You can use the advanced search options by clicking the "Show search option" next to the search box in Gmail or use Gmail's built-in command. You may not notice there are actually a few short comands that let you search your desire emails quickly and these "commands" have been used when you perform an advanced search.</p>
<p>I have discovered a few pretty useful commands by playing around with the advanced search functions in Gmail. The commands are pretty simple and pretty "human" friendly. Link the Google Search, the commands are in <code>action:value</code> format.</p>
<p>There maybe more, but below at those that I have discovered:</p>
<ul>
<li><code>in:folder</code> - The search result will include all the emails in the selected folder. Some of the valid folder name are inbox (Gmail inbox), drafts (Drafts folder), chats (all chat messages), spam (Spam folder), trash (Trash folder) and anywhere (Inbox, Spam and Trash folders).
<p>For example to search all emails in Trash folder with keyword "hello", simply key in <code>in:trash hello</code> in Gmail search box.</li>
<li><code>is:status</code> - The search result will include all the emails in the selected status. Some of the valid status are sent (sent emails), starred (emails that marked with star), read (already read emails) and unread (unread emails).
<p>For example to search all unread emails with keyword "hello", simply key in <code>is:unread hello</code> in Gmail search box.</li>
<li><code>label:label-name</code> - The search result will include all the emails with the specified label. Spaces in label must replaced with dashes(-).<br />
For example to search all emails labeled with "My Girlfriend" with keyword "I love you", simply key in <code>label:My-Girlfriend I love you</code> in Gmail search box.</li>
<li><code>from:name-or-email</code> - The search result will include all the emails sent by the specified name.
<p>For example to search all emails from Kent or kent@example.com with keyword "hello", simply key in <code>from:kent hello</code> or <code>from:kent@example.com hello</code> in Gmail search box.</li>
<li><code>to:name-or-email</code> - The search result will include all the emails sent to the specified name.<br />
For example to search all emails sent to Kent or kent@example.com with keyword "hello", simply key in <code>to:kent hello</code> or <code>to:kent@example.com hello</code> in Gmail search box.</li>
<li><code>subject:(keywords)</code> - The search result will include all the emails with the specified keywords.
<p>For example to search all emails with subject "please return my money", simply key in <code>subject:(please return my money)</code> in Gmail search box.</li>
<li><code>has:attachment</code> - The search result will include all the emails with attachment.</li>
<li><code>after:date</code> - The search result will include all the emails after the specified date. The date format is in yyyy/m/d.
<p>For example to search all emails after the date 2009/5/7, simply key in <code>after:2009/5/7</code> in Gmail search box.</li>
<li><code>before:date</code> - The search result will include all the emails before the specified date. The date format is in yyyy/m/d.
<p>For example to search all emails after the date 2009/5/7, simply key in <code>after:2009/5/7</code> in Gmail search box.</li>
<li>To seach emails without specific keywords, simply put a minus infront of the keyword.
<p>For example to search all emails with keyword "hello" but not "world", <code>in:trash hello -world.</code></li>
</ul>
<p>Have fun with your Gmail search! <img src='http://www.snippetit.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Gmail%3A+How+to+Search+Your+Email+Quickly+in+Gmail+-+http://b2l.me/ajymw&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.snippetit.com/2009/05/gmail-how-to-search-your-email-quickly-in-gmail/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.snippetit.com/2009/05/gmail-how-to-search-your-email-quickly-in-gmail/&amp;submitHeadline=Gmail%3A+How+to+Search+Your+Email+Quickly+in+Gmail&amp;submitSummary=If%20your%20are%20using%20Gmail%20as%20you%20email%20client%2C%20%C2%A0how%20do%20you%20search%20all%20your%20emails%20from%20your%20girl%20friends%20with%20keywords%20%22I%20love%20your%22%20for%20a%20certain%20date%20range%20for%20the%20received%20emails%3F%C2%A0%0D%0A%C2%A0%0D%0A%0D%0A%0D%0A%0D%0AYou%20can%20use%20the%20advanced%20search%20options%20by%20clicking%20the%20%22Show%20search%20option%22%20next%20to%20the%20search%20box%20in%20Gm&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.snippetit.com/2009/05/gmail-how-to-search-your-email-quickly-in-gmail/&amp;title=Gmail%3A+How+to+Search+Your+Email+Quickly+in+Gmail" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.snippetit.com/2009/05/gmail-how-to-search-your-email-quickly-in-gmail/&amp;title=Gmail%3A+How+to+Search+Your+Email+Quickly+in+Gmail" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.snippetit.com/2009/05/gmail-how-to-search-your-email-quickly-in-gmail/&amp;Title=Gmail%3A+How+to+Search+Your+Email+Quickly+in+Gmail" rel="nofollow" class="external" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.snippetit.com/2009/05/gmail-how-to-search-your-email-quickly-in-gmail/&amp;title=Gmail%3A+How+to+Search+Your+Email+Quickly+in+Gmail" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.snippetit.com/2009/05/gmail-how-to-search-your-email-quickly-in-gmail/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<h2  class="related_post_title">Related Articles</h2><ul class="related_post"><li><a href="http://www.snippetit.com/2009/05/gmail-how-to-monitor-your-mail-account-activities/" title="Gmail: How to Monitor Your Mail Account Activities">Gmail: How to Monitor Your Mail Account Activities</a></li><li><a href="http://www.snippetit.com/2009/04/gmail-inserting-images/" title="Gmail: Inserting Images">Gmail: Inserting Images</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/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-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/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/05/wordpress-theme-how-to-enable-gravatar-in-wordpress-theme/" title="Wordpress Theme: How to Enable Gravatar in Wordpress Theme">Wordpress Theme: How to Enable Gravatar in Wordpress Theme</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.snippetit.com/2009/05/gmail-how-to-search-your-email-quickly-in-gmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
