December, 2006



Laura on AOL Music

Check out my wife’s contributions to AOL Music’s “The Glamourous Life: 2006″ feature:

  1. on Britney Spears
  2. on Gwen Stefani
  3. on Fergie from the Black Eyed Peas

The gist of the piece is that AOL asked a bunch of high-profile bloggers to sound off about their favourite celebrity-related moments of 2006.

Run PHP as a cron-job

To run a php-script as a regular job, point to the PHP-CLI installation on your server with the path to your script:

/usr/local/bin/php /home/username/public_html/scripts/your_script.php #

Don’t Mess With WeLoveCelebs.com

Out of all the celebrity news sites on the Internet, picking WeLoveCelebs.com to scrape in order to fill your Adsense spam blog with quick and easy content is a bad idea.

GossipHeadlines.com has scraped 5,000+ posts from various celebrity sites over the last few days, and unleashed a torrent of trackback spam upon our site1; both practices that qualify it as a spam blog in every sense of the phrase.

Continue reading ‘Don’t Mess With WeLoveCelebs.com’

Banning Badly Behaving Bots

This code makes up the file XXXX.php, and will ban the IP address of anything that accesses it (so don’t go typing random URLs into the address bar!). I have disallowed the file in robots.txt, and it is linked to from a file in the main index of my server. Any bots that follow this link will be behaving badly, and will be banned via .htaccess; the IP address will also be sent to me via email each time this happens.

<?php
$i = getenv('REMOTE_ADDR');
$handle = fopen("../.htaccess", "a");
fwrite($handle, "Deny from $i\n");
fclose($handle);
echo "You've just got $i banned from this domain.
You are a very bad person.";
mail("webmaster@example.com", "Banned IP", "Deny from $i");
?>

(via Bigbold.com.)

Adventus

Receiving a chocolate-filled advent calendar from one’s much missed family back home never gets boring, even when you are 26 years old.

Advent Calendar

Nglayout.initialpaint.delay in Firefox

Firefox’s Nglayout.initialpaint.delay setting (found in about:config) controls the delay between receiving data from a website and displaying it in the browser. On faster connections this delay can leave you feeling like you’re taking a nostalgic trip down dial-up lane.

In about:config, right click and select new -> Integer. Call it Nglayout.initialpaint.delay and give it a value of 0. This will set the delay to zero.

(Via Mozillazine Knowledge Base).

CSS Browser Selector

CSS Browser Selector - javascript that allows you to implement different CSS rules depending on (you guessed it) which browser a user has.

Usable Type




About

You are currently browsing the Quad Lasers weblog archives for December, 2006.

Archives