December, 2006
Check out my wife’s contributions to AOL Music’s “The Glamourous Life: 2006″ feature:
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.
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
3 Comments Published December 13th, 2006 @ 15:54:32 in Feature, Geek, Hack, Laura, RSS, WordpressOut 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.
Banning Badly Behaving Bots
0 Comments Published December 13th, 2006 @ 12:26:34 in Hack, PHP, htaccessThis 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.)
Nglayout.initialpaint.delay in Firefox
1 Comment Published December 5th, 2006 @ 00:05:53 in Firefox, SoftwareFirefox’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 itNglayout.initialpaint.delayand give it a value of0. This will set the delay to zero.
(Via Mozillazine Knowledge Base).
CSS Browser Selector - javascript that allows you to implement different CSS rules depending on (you guessed it) which browser a user has.
Search
About
You are currently browsing the Quad Lasers weblog archives for December, 2006.
