Why to Install WordPress on your own Computer

Date October 8, 2009

Are you installing wordpress or testing theme or pluging for wordpress on your live domain? Wait… Dont’ try it on your live system, let’s look at some reason why you may want to install WordPress on your local computer.

Reason #1: There is no need to register domain name and buy web hosting to host your website.

Reason #2: If you already registered domain name and host your website its fine but you may still want to install WordPress on your local computer because it will help you to test out WordPress Plugin that you may require on your live domain or test out new WordPress Theme. You may also tweaks WordPress as it installed on your local computer it means run faster.

Reason #3: Are you running Windows XP on your local computer and you have linux based webhosting just install WampServer. WampServer gives you linux environment on Windows. After installing WampServer you’ll have Apache, MySQL and PHP on Windows environment. And remember WamServer is FREE! Download WamServer.

Amazing Sand Animation by Kseniya Simonova

Date September 8, 2009

The girl in following video clips is using grains of sand to draw these amazing animations in front of a live audience. Her canvas is simply a backlighted glass table connected to a projector, not a Microsoft Surface Table.

Her name is Kseniya Simonova and she is a sand animator from Ukraine. This moving animation, that portrays the life of Ukrainians during World War II, won her the Ukraine’s Got Talent show. Simonova won ₴1,000,000 Ukraninan Hryvnia (approx. $125,000) for her first place in the show.

Adsense Section Targeting: Make your blog more profitable using Google Adsense

Date September 1, 2009

If you are not satisfied with the relevancy of your Google Adsense Ads and its CTR, try section targeting. By inserting a start google_ad_section_start and end google_ad_section_end html comment to mark the relevant content sections of your page.

Look into single.php

Most themes will usually consist of single.php. single.php is the file that shows your full content. Look inside, and search for


<?php the_content(); ?>

Add the section targeting codes before and after this line, making it something like this:


<!-- google_ad_section_start -->
<?php the_content(); ?>
<!-- google_ad_section_end -->

Best of Luck

String.Trim() in Javascript

Date September 1, 2009

Trim is a useful String function available in languages like Visual Basic, Java & PHP which removes all leading and traling whitespaces from a String. Unfortunately Javascript does not provide Trim functionality to the String object. But there is solution using Regular Expression. Use following code in top of your Javascript file. Following code will add trim() functionality to String objects.


String.prototype.Trim = function()
{
    text = this.replace(/^\s+/, '');
    return text.replace(/\s+$/, '');
};

First line in code will remove leading spaces from the String and second line code will remove trailing spaces from the String.

Happy Coding

Subscribe to Technology Tips

Subscribe to Saqib-Ansari via RSS

Or, subscribe via email: