Archive for February 15th, 2006

Internet companies

This is just hilarious. Matt Cutts takes a picture of the butler in the Ask Jeeves office while nobody is there.
Then Ask Jeeves posts a picture of him on their blog!

I’m slipping

On Monday, I wasn’t yet prepared for my first computer science midterm, so I skipped my tennis class in order to study more. On Tuesday, I was planning to wake up in time for 9am breakfast, but I overslept and was even a few minutes late for my 9:30am class. It was okay, though, because the person I was going to meet at breakfast didn’t make it either.

Continue reading ‘I’m slipping’

Simple PHP Caching

Awesome stuff.

< ?php
$cachefile = ‘cache/index-cached.html’;
$cachetime = 5 * 60;
// Serve from the cache if it is younger than $cachetime
if (file_exists($cachefile) && time() - $cachetime < filemtime($cachefile)) {
include($cachefile);
echo “\n”;
exit;
}
ob_start(); // Start the output buffer

Continue reading ‘Simple PHP Caching’