Snippet IT IT News, Programming, Internet and Blogging

13Apr/090

How Do You Know When Your Site Get Indexed in Google Search Engine?

How do you know when your site get indexed in Google search engine. You can actually use Google search engine to find out how your site is indexed. For example:

  • to know the indexed pages in www.snipetit.com, simply query site:www.snippetit.com at Google search engine.
  • to know the pages that link to your www.snipetit.com's front page, simply query link:www.snippetit.com at Google search engine.
  • to know the current cache of www.snipetit.com's front page, simply query link:www.snippetit.com at Google search engine.
  • to know the information of www.snipetit.com's front page, simply query info:www.snippetit.com at Google search engine.
  • to know the pages that are similar to www.snippetit.com, simply query related:www.snippetit.com at Google search engine.
12Apr/090

Java: Randomly sort values in a array (the generic way) in single pass

Few years back (yes, about 4 years back), I wrote an article about randomly sort query results in MySQL. The main problem in randomly sort query results is that when you have a very large data in your database and the statement to sort the result may change the data execution plan causing DMBS does not choose the right plan. Therefore, sometime it is more wise to sort it in your own program instead of too depending on DBMS's decision which may affect the overall performance of a program.

15Feb/090

Get the URL of a photo in different sizes in flickr.com

When writing a blog post, you may want to put some photo in the post but host it on flickr.com. How will you get an photo URL in flickr.com? Browse to the photo page, view the HTML source code and look for the photo URL?

11Feb/090

Regular Expression Test Tool

When writing a software, you may need to use regular expression to filter some string values or to validate some input strings. It is quite troublesome to test the correctness of the regular expression pattern that you have designed. You will need to compile you source code, execute the compiled binary, perform some steps until to the point that make use of the regular expression. It takes a lot of time to do the trial and error especially if you are not very familiar with regular expression.

7Feb/095

C# – Loop all files in directory and it’s sub-directories

Recently I need to write some code to read all files in a directory and it's sub-directories. There are simple way and difficult way (Not very difficult actually). The simple way will be writing a function that reads all files in the directory and call the function again recursively for each sub-directory in that directory.

6Feb/090

Gmail’s Labels menu

Gmail's Labels menu now comes with auto-complete and a "move to" features. The new "Labels" button makes labeling messages even easier and auto-complete will take it from there. The "Move to" button if for label and archive in just one step, just like moving the message to a folder.

22Jan/093

Website value evaluation tool

The are a few website value evaluation tools available on the Internet to evaluate how much a website worth.

22Jan/091

Share LAN connection over Wireless Network in Windows Vista

Few months ago I was in New Zealand for working holiday, my friends and I were staying in a room with only one LAN point but 3 of us have a notebook and need to access to the Internet.

7Oct/080

Implement your own short URL

Short URL or tiny URL is an URL used to represent a long URL. For example, http://tinyurl.com/45lk7x will be redirect to http://www.snippetit.com/2008/10/implement-your-own-short-url.

2Aug/080

5 must have plug-ins for WordPress

As a blogger who using WordPress for blogging, I would highly recommend the following plug-ins for WordPress user.