Positive Attitude...

Sunday, June 25, 2006

Here's something which shows the possibilities of having a possitive attitude. You might have read this before, somewhere or the other. But, still I thought of blgging it. Here it goes:

Father : "I want you to marry a girl of my choice"
Son : "I will choose my own bride!"
Father : "But the girl is Bill Gates's daughter."
Son : "Well, in that case...ok"

Next - Father approaches Bill Gates.

Father : "I have a husband for your daughter."
Bill Gates: "But my daughter is too young to marry!"
Father : "But this young man is a vice-president of the World Bank."
Bill Gates: "Ah, in that case...ok"

Finally Father goes to see the president of the World Bank.

Father : "I have a young man to be recommended as a vice-president."
President : "But I already have more vice- presidents than I need!"
Father : "But this young man is Bill Gates's son-in-law."
President : "Ah, in that case...ok"

This is how business is done!!

Moral: Even If you have nothing, You can get Anything. But your attitude should be positive...

Hope you all liked this one.

Another Wierd Windows Bug

Wednesday, June 21, 2006

I just got to know about another wierd thing in Windows and thought of blogging it:

Bush Hid The Facts

Try this:

1.) Open an empty notepad file
2.) Type "Bush hid the facts" (without the quotes)
3.) Save it as whatever you want
4.) Close it, and re-open it

Did Bush hid the facts like the hidden text??? Really Wierd

JavaScript to Change Color of Selected Row

Saturday, June 17, 2006

Here's a small JavaScript to change the colour of the row you select by a radio button:

Search Engine Marketing - Build Static Pages<script language="JavaScript">
var gbTrow;
var callit;
callit = false;

function chgcolor(tr1)
trow = document.getElementById("trid"+tr1);

if (callit==false)
callit = true;
gbTrow.bgColor = "red";

trow.bgColor = "green";
gbTrow = trow;
return true;

Here's the structure of the table to test this script:

<table width=18% border=1 align="center" cellpadding=2 cellspacing=2>
<td width="10%">radio</td>
<td width="90%">options</td>
<tr bgcolor='red' id='trid1'>
<td><input type=radio name=rd id='rd1' value='' onClick="return
<td>Option 1</td>
<tr bgcolor='red' id='trid2'>
<td><input type=radio name=rd id='rd2' value='' onClick="return
<td>Option 2</td>
<tr bgcolor='red' id='trid3'>
<td><input type=radio name=rd id='rd3' value='' onClick="return
<td>Option 3</td>

400th Shahidi Purab of Guru Arjan Dev Ji

Friday, June 16, 2006

WebStats Couldn't Have Been Better

Monday, June 12, 2006

Google Analytics, another great service from Google, provides the best free website statistics available on the internet. Before using Google Analytics, I had used many stat programs such as statcounter and some server hosted programs such as webanalyser and awstats (the new version of awstat is also good). But after seeing Google Analytics, I couldn't believed the large variety of features it provides.

To start with Google provides different set of views for Executive, Marketer and Webmaster; all supported by easy to understand graphical representation of statistics. Apart from these it shows the Marketing Optimization and Content Optimization Reports, both incorporating a large set of reports in graphical format.

The Executive view consists of the summary of conversions, marketing and content. One of the most unique feature of Google Analytics is the Site Overlay, which allows you to navigate your site while viewing traffic and conversion data for each link.

The Marketer Overview shows you your CPC conversions (another unique feature here), keyword conversions, campaign conversions, entry/exit pages and Defined Funnel Navigation (another great feature which shows, at what point do visitors who begin a defined funnel process abandon it).

Host 6 Domains on 1 Account
The Webmaster view is a boon for the webmasters. It provides multitude of features which would help him in making the website more visitor friendly. This statistics include Browser Versions, Platform Versions, Browser & Platform Combos, Screen Resolutions, Screen Colors, Languages, Java Enabled, Flash Version, Connection Speed.

Apart from these features, there are some account related featured too. You could add users to your accounts and specify access for each user. A filter manager is also available which enable you to include or exclude certain visits or clicks from your reports. You can currently add 5 website profiles to view stats. This number would be increased as Google increases its capacity.

This free version of Google Analytics is limited to 5 million pageviews a month - however, users with an active Google AdWords account are given unlimited pageview tracking. In addition, Google Analytics is completely integrated into the AdWords front-end and with your AdWords campaign, making it easy to track your AdWords ROI.

Overall, Google Analytics provide you with a whole lot of statistics which no other statistics program could offer. No doubts, it a service from Google.


Simple Hit Counter in ASP

Wednesday, June 07, 2006

These days I'm trying my hand on .Net technologies (ASP, VB, C#) and some other web scripting. So, would frequently post some scripts for you to learn. If you have any problem in understanding these scripts, write a comment on the post and I'll surely reply to it.

So, here is a script of a simple hit counter programmed in ASP:


dim hits
dim filename
dim confile
dim myserver
dim filepath
dim maxhits

set hits = server.CreateObject("scripting.filesystemobject")
filepath = server.MapPath("1")
filepath = mid(filepath,1,len(filepath)-1)
filename = server.MapPath("hits.txt")

set confile = hits.OpenTextFile(filename,1,true)
if not confile.atendofstream then
myserver = confile.readline
end if

if len(myserver)=0 then myserver="0"

if cint(myserver) > cint(Application("hits")) then
Application("hits") = myserver
myserver = Application("hits")
end if

Application("hits") = Application("hits") + 1

Response.Write "visted: " & Application("hits")

set tfile = hits.CreateTextFile(filepath+"hits.txt",true)
maxhits = Application("hits")
set tfile=nothing


Finally... Google & MS Windows in Punjabi

Thursday, June 01, 2006

So, here comes the much awaited Punjabi version of Google. Click here to experience it yourself.

So now, 'Google Te Labho' with the new Punjabi interface.

If there is a Punjabi version for Google, Microsoft can't be left behind. Microsoft also released its Punjabi version for Windows XP on April 21, 2006.

Click here to download the Microsoft Punjabi Pack.