Archive for July, 2008

Creating a Google Sitemap

This item was filled under [ SEO/Adsense ]

Google Sitemaps allows you to provide additional information about your pages, including when they were last updated, so that the crawler exactly knows when does the page need to be indexed again. It is also useful for websites that have content which may other wise be ignored, such as flash based navigation interfaces etc.
To create [...]

Continue reading...

Get more relevant Ads!

This item was filled under [ SEO/Adsense ]

Often your page displays irrelevant advertisement specially when there are many topics on a single page. In such case, use Google’s section targeting technique. Implementation is very simple. You just need to place an HTML tag over the content that either needs more attention or needs to be ignored. Like Google states:
To implement section targeting, [...]

Continue reading...

Get notified when Google crawls your website

This item was filled under [ PHP, SEO/Adsense ]

Ever wanted to know when Google crawls your website? Here is a simple PHP script which emails you whenever GoogleBot crawls your site.
<?php
if(strpos($_SERVER['HTTP_USER_AGENT'], 'Googlebot') !== false)
{
$email = 'you@domain.com';
mail($email,'Googlebot Alert', 'Googlebot has crawled your page: '.$_SERVER['REQUEST_URI']);
}
?>

Continue reading...

Consuming a Web Service through Console application

This item was filled under [ .Net ]

In my last post, I created a basic web service using ASP.Net/C#. Now, I will simply consume it. The basic advantage of Web Services is that it can be consumed through any language/platform.
1. Create a new Console Application Project in .Net
2. After creating the project, right click your project name from the “Solution Explorer” and [...]

Continue reading...

Creating a basic Web Service

This item was filled under [ .Net ]

A lot can be found on the internet regarding web services. Here am just gonna create a basic Web Service using ASP.Net/C#:
1. Run your Microsoft Visual Studio 2005
2. Create a new ASP.Net Web Service from File > New > Web Site > ASP.Net Web Service
3. Choose the language of your choice, enter a project name [...]

Continue reading...

View MySQL Processes

This item was filled under [ MySQL ]

To view MySQL connections, query:
> SHOW PROCESSLIST;
The above query won’t be useful for web applications that use a single user for DB. However, “mytop” (a console based tool) can be used for monitoring the threads and performance of MySQL.

To learn more about mytop, click here.

Continue reading...

Running ASP.Net on Windows Server 2003

This item was filled under [ .Net ]

I deployed an ASP.Net 2.0 application on Windows Server 2003 and was continously getting:
HTTP Error 404 - File or directory not found
I Googled for it, but couldn’t find much as most of the users faced the same issue deploying ASP.Net applications on Server 2003. Microsoft suggests re-checking ASP.Net installation, as it is not automatically installed [...]

Continue reading...