Tuesday, October 28, 2008

Scientific Reasons for ancient Performances...

Putting Coins into the River...

Putting coins into the holy river is considered as one of the spiritual task which is performed from ancient times.There is one scientific reason behind this .
In ancient times the river water was directly used for drinking purpose (Now this water has to flow through different filter process).In that times coins were made up of Copper.Drinking water which is stored in Copper vessel is good for health and it is as good as a medicine. The reason behind the putting the coin into river may be same, so that every one using the water of the river can be benefited with this natural medicine. It is good to drink a liter of water in the early morning which is stored in a clean Copper vessel.
Now the copper coins are replaced by steel, i think now its time to stop this performance..

Tuesday, October 21, 2008

How to use Notepad as a Dairy...

Notepad into a diary!



There is a simple feature in 'Notepad' that can make it work like a personal diary for you. Here is how to go about it:

1. First open a blank Notepad file.

2. Now write .LOG as the first line in the file, and then press enter. Now save the file and close it.

3. Open the notepad file now and you will find that the current date and time has been appended at the end and the cursor is in the next line.

4. Type your notes and then save and close the file.

5. Each time you open the file, Notepad repeats the process that is it appends the date and time to the end of the file and places the cursor below it.

This way you can keep track of all your entries, you can easily maintain what you wrote when. This can work like a personal diary!

Thursday, October 16, 2008

String Map command.. is there any bug..?

String map is widely used command. It helps user to manipulates many operations.
The syntax is as follows- string option arg ?arg ...?
For more details u can refer following link.
http://www.tcl.tk/man/tcl8.4/TclCmd/string.htm

I was using this string map to replace a string say 251 in following code from set of strings (contents of a).
My code was as follows-
set a "251 587 569 485"
set b "251"
set c [string map {$b " "} $a]
after executing the above set of lines i was expecting to get the following result-
i.e. content of variable c must change to " 587 569 485".
But it did not work. because the in string map variable reference is not working.
If i change the code as follows , then it will work-
set a "251 587 569 485"
set c [string map { 251 " "} $a]
Now the content of variable c will be " 587 569 485".
I don't know weather it is a bug or not.. :(

I approached other method to over come this problem.
I wrote following code
set a "251 587 569 485"
set b "251"
regexp -indices " $b " $a var;
c [string replace $a [lindex $var 0] [lindex $var 1] " "]
The above set of code replaces the variable b from variable a with null charecter. :)

Monday, October 6, 2008

Some PJs

Why does a dumb cat falls while walking?

.
.
.
.
.
.
.
.
.
.
.
.
because the cat is dumb so it cant Mew. So Mew(coefficient of friction) is = 0.
So it slips n falls. Ha ha h a



Try to get the next on
e..





Tortoise and rabbit gave Common entrance exam and tortoise got 80% and rabbit got
81%.


Both wanted admission in a good engineering college, cut off was 85%.


Rabbit dint get but tortoise got it¦







How?
.
.
.
.
.
.
.
.
.
.
.
.
.
.

Remember tortoise had won the race when you were in first standard..

So.. Sports quota!!!!
ha ha ha ha ...