Feb 29

Here is a simple javascript for a prompt box

<html>
<head>
<script type=”text/javascript”>
function disp()
{
var name=prompt(”Please enter your name”);
if (name==”ramanean”&&name=”Ramanean”)
{
document.write(”Hello ” + name + “Are you fine?”);
}
}
</script>
</head>
<body>

<input type=”button” onclick=”disp” value=”Display a prompt box” />

</body>
</html>

The above code will display a prompt box “Hello Ramanean Are you fine?” when display prompt box is clicked

Feb 27

Adam Gilchrist: Pigeon among the cats
Matthew Hayden: Crass and uneducated, close to moron status and will end up as an imbecile
James Hopes: The blugeoning buffoon who thinks he is a bowler
Ricky Ponting: Bush Clone, only he looks stupider
Michael Clarke: The cunning convict
Andrew Symonds: Pitiable excuse for a human being
Michael Hussey: Genetically similar to Gilchrist
Brad Haddin: Who the hell is this guy ?
Brett Lee: Nice guy .. honestly speaking
Nathan Bracken: Long haired … looks as dunce like as ever
Mitchell Johnson: His teeth looks bigger than his brain … needs teeth shortening ASAP
Brad Hogg: As obnoxious as his surname means in Hindi

source: I got this from a forwarded mail

Feb 27

After seeing him in his first match ,I though India had got a genuine fast bowler who can bowl at 140-150 KMPH consistently and his yorker to remove Hoggard in his first test match still remains in my mind.After few matches which he did well ,he got injured and came back after a lay off.

Once he returned to intenational scene he looked like a ordinary Indian bowler bowling at 125-130 KMPH and also due to absence of swing he suffered a lot at the hands of batsman and also his fielding his very worse than any otherplayer.Though he is economical ,he gives away nearly 15 odd extra runs in the field which can be crucial in tight situations.

When you see Australian players like Glen McGrath with great fitness levels ,you may wonder why Munaf is not doing the same even though he is younger than Glen.

I think Board needs to tell him to improve his fitness ,otherwise you may be dropped as nowdays fielding is more important than batting and bowling

Feb 26

here is a simple javascript for an alert box

<script type=”text/javascript”>

alert(”My name is ramanean”);

</script>

When the above javascript is executed , a alert box will appear with the text “My name is Ramanean”

<script type=”text/javascript”>

alert(”My name is ramanean,My blog is www.ramanean.com,It has useful resources”);
</script>

When the above javascript is executed , a alert box will appear with the text “My name is ramanean,My blog is www.ramanean.com,It has useful resources” on a same line

Here you can you use line breaks(\n) to move the text to a new line

Below there is a simple example of javascript using line breaks

<script type=”text/javascript”>

alert(”My name is ramanean”+’\n\n’+My blog is www.ramanean.com,+’\n\n’+It has useful resources”);
</script>

Now the text will appear in 3 different lines,when the script is executed

Feb 25

here is a simple javascript that can be used for redirecting a user to a fresh page or another web page

<script type=”text/javascript”>

window.location=”http://www.livepr.info/internal-pages-page-rank3.php”;

</script>

When this script is executed the page will be redirected to http://www.livepr.info/internal-pages-rank3.php
Most webmasters user javascript for redirection as it works on all kind of browsers

Feb 23

Here is a simple Javascript

<script type=”text/javascript”> document.write(”Hello World!”); </script>

Output:

Hello world

Also you can test this in your browser also

Just Copy this code and paste it in your browser

javascript: document.write(”Hello World!”);

Paste this in your address bar

Feb 23

From Today onwards , I have decided to learn javascript which is a widely used language in web scripting ,now days it is hard to find a webpage without javascript.

A little about Javascript from wikipedia:

JavaScript is a scripting language most often used for client-side web development. It was the originating dialect of the ECMAScript standard. As such, it is a dynamic, weakly typed, prototype-based language with first-class functions.

JavaScript was influenced by many languages and was designed to have a similar look to Java, but be easier for non-programmers to work with.[1] The language is best known for its use in websites (as client-side JavaScript), but is also used to enable scripting access to objects embedded in other applications (for example Microsoft Gadgets in Windows Vista Sidebar).

And also most people often confuse javascript with java but in real time javascript is entirely unrelated to java.Also we can say that Javascript is independent of java.

Another advantageis that we can use javascript with any programming language provided the user’s browser has enabled javascripts

Feb 22

Many of us may not know how to download youtube videos

Here is simple way to download youtube videos

First Go to youtube.com and Search for your Video and note down it’s url

Here is an example here is my one of my favourite videos

http://www.youtube.com/watch?v=SFqGQ54WT9Y

To Download it First download FLV player (you can download it from here)

Then go to http://www.downloadyoutubevideos.com/ and paste the url in the box and click on download and then follow and instructions and click on save it as to save to your PC.

It will get saved as a html document ,to play it ,right click it and select open with FLV player

that’s it

Feb 22

Always know between Managed and UnManaged Servers

I will try to put from an newbie’s perspective

For Example:think you ordering a dedicated server with these specifications

250GB Diskspace

2000GB Bandwidth

4 GB RAM

Processor-Dual Core

OS:Windows 2003

Control Panel:Plesk

They will setup the server after which they will give you login credentials

These are the common steps for setting up a webserver

After this only there is real difference between Managed and UnManaged Servers

Managed Server:

They will set up domain for you.They will create Database and other details like FTP that are needed by you.Suppose if you do n’t know how to create a database in plesk you can always approach them for help and also you can ask them to set up a new domain for you.Basically you can ask any help from them relating to the server and website configuration,they will guide you through.

UnManaged Server:

They will give you login credentials to plesk and then you have to set up your own domain and configure your server.if you are having an unmanaged server then you can get into a lot of problems while setting up DNS for a domain.And also no one will help you in creating SQL databases etc., and also with your scripts and also you have to find out way to solve the errors you may encounter in setting up a domain.

So for a newbie it is always good to Go with a managed server.Though it costs a few bucks for you,its will give good dividends in initial stages

Feb 22

 
 
Wrong mail ID - too good… Crackeeeee
 
 
 A man checked into a hotel. There was a computer in his room,

 

so he decided to send an e-mail to his wife.

 

However, he accidentally typed a wrong e-mail address, and without

realizing his error, he sent the e-mail.

 

 

 

 

Meanwhile….Somewhere in Houston , a widow had just returned from her

 

husband’s funeral.

 

The widow decided to check her e-mail, expecting condolence

 

messages from relatives and friends.

 

 

 

After reading the first message, she fainted. The

 

widow’s son rushed into the room, found his mother on the floor, and saw

the

 

computer screen which read:

 

 

 

To: My Loving Wife

 

 

Subject: I’ve Reached

 

 

 

Date: 16 May 2004

 

 

 

I know you’re surprised to hear from me. They have computers here, and we

are allowed to send e-mails to loved ones.

 

 

 

 

I’ve just reached and have been checked in.

 

 

I see that everything has been prepared for your arrival   tomorrow.

 

 

Looking forward to seeing you TOMORROW!