Jun 25
Python is a wonderful language such that once you learn it you will say it as the best one as it’s faster than many other applications..
So how to try python
Here is the link that will give you step by step description how to install python your PC and also how to install it on local server
http://www.richarddooling.com/index.php/2006/03/14/python-on-xp-7-minutes-to-hello-world/
and this link will tel you
how to configure a httpd file for Cgi-bin to run python scripts on your local server
Jun 20
All of you would have visited a IP address lookup site to know the ip address of your competitor site or anyother site.Here is another simple way to find out IP address of a website using your command prompt which is one of the easiest one
Just go to your command prompt
If you do n’t know how to go to your command prompt
Click on start->run->Type cmd and Click on ok button…
and enter cd.. to be at c:\>
After that enter nslookup followed by the domain name (www.site.com) for which you need to find the IP Address.
This is a cool tip and it’s also very useful
Jun 18
I downloaded firefox 3 today and when compared to firefox 2 it’s somewhat better than the latter in all aspects,but the problem is most of the toolbars are not working .For example Take Google .their Google toolbar is not compatible with firefox 3,So most of the userswho downloaded would not have used Google toolbar so they may be losing atleast a million in search revenue as Google toolbar generates a lot of revenue for them in searches and same can be said about others.
Other than compatibility no others issues are there…
Jun 15
Here is a simple code in php that will split a string…
<?php
$str = “Hello Friend”;
$arr1 = str_split($str);
$arr2 = str_split($str, 3);
print_r($arr1);
print_r($arr2);
?>
The above example will output:
Array
(
[0] => H
[1] => e
[2] => l
[3] => l
[4] => o
[5] =>
[6] => F
[7] => r
[8] => i
[9] => e
[10] => n
[11] => d
)
Array
(
[0] => Hel
[1] => lo
[2] => Fri
[3] => end
)
Jun 09
I searched php.net for array search function but I did n’t find any so I thought about writing my own function for it
Here is a preview of the function:
Suppose if there is an array of names -John,Charles,Richard,Richard and Bill.
You want to find how many times Richard is in the array and in which array placethe name”Richard” is…(Richard is displayed 2 times in the array and it is 2,3)
Here is the array function which will help you to find these attributes
<?
function arraysearch($search,$array)
{
$cc=count($array);
for($i=0;$i<$cc;$i++)
{
$d1=$array[$i];
if($d1==$search)
{
$array1=($d1.",".$array1);
$array2=($i.",".$array2);
}
}
echo"<pre>";
/*echo $array1;
echo"<BR>";
echo $array2;
echo"<BR>";
*/
$array1=explode(",",$array1);
$c1=count($array1);
//print_r($array1);
unset($array1[$c1-1]);
$array2=explode(",",$array2);
//print_r($array2);
$c2=count($array2);
unset($array2[$c2-1]);
$c2=count($array2);
//echo $c1;
if(!search)
{
}
else
{
echo "No of $search is $c2";
}
//return($array1);
echo"<BR>";
$array2=implode(",",$array2);
return($array2);
}
$q = stripslashes ($HTTP_GET_VARS['q']);
$c = stripslashes ($HTTP_GET_VARS['c']);
$c=explode(",",$c);
$a1= arraysearch($q,$c);
//print_r($a1);
echo"</pre>";
?>
Jun 08
To find the string length in php
just use
<?
$a=”shanmugam”;
$b=strlen($a);
echo $b; //will display length of the string
?>
Output:
9
Jun 03
At the start of the tournament Rajasthan was considered as a weak team by many pundits and they gave them 10% chance of wining the IPL.But as the tournament progressed many cricket pundits were made to eat their own words by the Rajasthan Royals as they won match after match with ease.Suddenly in the middle of tournament ,these cricket pundits retracked their words and now started saying Rajasthan as the favourites to win the tournament…….
That is why cricket is called as a game of uncertainities and also though this has been a good team effort ,all praises should go to their inspirational captain Shane Warne who inspired youngsters like Asnodkar to a great level.This is what a inspirational captain or leader can do to a team,they can bring the best out in each and every person.
A leader should be such that he should be able to inspire each and every one of his team and also he should be able to extract their skills and talents hidden in them in way that will help realize common goals..