Posts

Showing posts from July, 2009

Interesting Code with replication

// add new browsers in lower case here, separated // by spaces - order is important: from left to // right browser family becomes more precise $browsers = "mozilla msie gecko firefox "; $browsers.= "konqueror safari netscape navigator "; $browsers.= "opera mosaic lynx amaya omniweb"; $browsers = split(" ", $browsers); $nua = strtolower($_SERVER['HTTP_USER_AGENT']); $l = strlen($nua); for ($i=0; $i&ltcount($browsers); $i++) { $browser = $browsers[$i]; $n = stristr($nua, $browser); if(strlen($n)>0){ $GLOBALS["ver"] = ""; $GLOBALS["nav"] = $browser; $j=strpos($nua, $GLOBALS["nav"])+$n+strlen($GLOBALS["nav"])+1; for (; $j<=$l; $j++) { $s = substr ($nua, $j, 1); if(is_numeric($GLOBALS["ver"].$s) ) $GLOBALS["ver"] .= $s; else break; } } }

Kodai clips

Image
That was a fantastic tour. Winds Team To Kodai

Kargin War -99

War is never good. Only an evil person would welcome it. In an ideal world disputes between nations should be solved through dialogue. Is there any dispute greater than the value of human life itself? Hold this thought. In the face of aggression, we have a right to defend ourselves. The Kargil war ‘99 was imposed upon us. Earlier in the year, our Prime Minister went over to Pakistan and signed the Lahore Declaration calling on both sides to resolve everything through dialogue. How naive we were. At the very same time Musharraf and gang where arming the Pakistani infantry and terrorists to invade Kashmir. Cowards. They didn’t even have the guts to wear their uniform. Caught by surprise, our Jawans fought back. From Kerala to Kohima to Kuch, each and every one of them fought on the hills of Kashmir and Ladakh as one. Many laid down their lives. Young officers, just out of the IMA lead from the front. I was in my final year of college, I felt so useless listening to macroeconomics lecture