Archive for December, 2007



Cannot open metacafe.com

Anyone else facing the same problem ? I cannot open metacafe.com..

metacafe.com not working

The response header sent is “200 OK”, but no pages are being served..

Are they updating the layout ?? :-?

Updated : Ok, that is a problem with the metacafe cookies. Firefox users goto Tools> Options > Privacy> Show Cookies, find the cookies and delete them. This will solve the problem. IE users find the user@metacafe.com….[]txt cookie from the temporary internet files folder and delete it.

PHP Performance Benchmark Script

/*

PHP Performance Benchmark Script

Copyright 2003 : PHP Consulting

There are two settings:

First, set $file to be the server and page that you want to benchmark.

Secondly, set $iter to be the number of times you want it loaded.

*/

error_reporting(E_ALL ^ E_NOTICE); //For disabling non fatal error outputs

$file = "http://127.0.0.1/Joomla/index.php"; //Location to file

$iter = 5; //No of times to check

function getmtime()

{

$a = explode (' ',microtime());

return(double) $a[0] + $a[1];

}

for ($i = 0; $i < $iter; $i++)

{

$start = getmtime();

file ($file);

$loadtime += getmtime() - $start ;

$intertime = getmtime() - $start ;

echo $intertime . "<br>" ;

$avgload = $loadtime / $iter;

}

echo "<p><b>Average" . $avgload . "</b>" ;

?>

Bible on supersmall chip

Researchers in Israel say they have succeeded in putting a version of the Bible on a chip smaller than a pinhead. Its 300,000 words in Hebrew were inscribed on a silicon surface at the Haifa Institute of Technology. The 0.5sq-mm (0.01sq-in) nano-Bible was written on a silicon surface covered with a thin layer of gold (20 nanometers thick - 0.0002mm).

The 100$ Laptop video

The 100$ Laptop

Remove invalid characters from a filename

<?php
function filename_safe($filename) {
$temp $filename;

// Lower case
$temp strtolower($temp);

// Replace spaces with a ’_’
$temp str_replace(“ ”“_”$temp);

// Loop through string
$result ;
for (
$i=0$i<strlen($temp); $i++) {
if (
preg_match(‘([0-9]|[a-z]|_)’$temp[$i])) {
$result $result $temp[$i];
}
}

// Return filename
return $result;
}
?>

Heat levels in NFS Most Wanted

There are five heat levels in the game (with a hidden sixth and seventh heat level at the end of Career mode and in the Black Edition respectively), three authoritative levels (Civic/Local, State, and Federal Cops), and 10 kindsa police vehicles. You start off Campaign mode only with Heat levels 1 and 2 (City/Local Police)

By defeating Blacklist Rivals, you can then achieve higher heat levels:

5 Heat levels NFS MW cheats

  • Heat level 3 (State Police): Defeat the Blacklist Rival #13.
  • Heat level 4 (Undercover State Troopers): Defeat the Blacklist Rival #9.
  • Heat level 5 (Federal Authorities): Defeat the Blacklist Rival #5.
  • Heat level 6 (Cross Street Racing Unit): Defeat the Blacklist Rival #1 (final level).

After you beat the Rockport’s Most Wanted level, Heat level 5 will then consist of both the Federal Authorities and Cross Street Racing Units.