Tag Archives: Facebook

Twitter Service Directory

With Twitter’s ever growing reach and limitless possibilities, I thought it’d be handy for the world to have a simple little list of all the robots, services, and otherwise non-human twitter users. A few minutes ago I finished just …

Posted in Other | Tagged , , , , | Leave a comment

How They Do It

Earlier today, BoingBoing posted a link to a list of how different people…you know, do it ;) .

It took about an hour or two, but I created an AJAX version of the same list: http://wm161.net/labs/how-they-do-it/. People can add items to …

Posted in Other | Tagged , , , , , | Leave a comment

PHP Automatic Bug Tracker

I’ve hacked together a small but functional bug tracker for my website. My common.php has some code in it now to use my new BugTracker class to report PHP errors and uncaught exceptions.

Well, at least exceptions. I apparently forgot …

Posted in Other | Tagged , , , | Leave a comment

My WPWrapper class

In my previous post, I mentioned that I had a really simple way of using my wordpress themes with regular PHP scripts. Now, according to the Codex, you are supposed to use this method:

include ‘wp-blog-header.php’;
get_header();
/* Do some code */
get_sidebar();
get_footer();

That …

Posted in Other | Tagged , , , , , , | Leave a comment

All WordPress Developers are Poor Coders

In your wordpress’ index.php, add error_reporting(E_ALL | E_STRICT).

Yikes. That’s quite a mess.

I pride myself in being able to develop code that is totally error-free. It is a good feeling to be able to have your code compared to high …

Posted in Other | Tagged , | 1 Comment

PHP5 and 1and1 hosting

I’ve officially moved on. wm161.net is now unable to use PHP4. Thanks to an article at The Code Cave, my root .htaccess has AddHandler x-mapp-php5 .php. Now I don’t have to jump through hoops with wordpress assuming that everybody …

Posted in Other | Tagged , , | Leave a comment

Quiffle Anti-spam upgraded

For anyone keeping tabs on quiffle, spam posts per day has recently peaked at around 50. It makes loading the admin panel after a week of inactivity take forever because I didn’t bother adding paging. My “Clean Spam” button …

Posted in Other | Tagged , , , | Leave a comment

My Wakeup Alarm

#!/usr/bin/env php
<?php
$dom=DOMDocument::load(‘http://weather.yahooapis.com/forecastrss?p=44047′);
$items=$dom->getElementsByTagName(‘item’);
foreach($items as $item) {
foreach($item->childNodes as $child) {
if ($child->namespaceURI==’http://xml.weather.yahoo.com/ns/rss/1.0′) {
if ($child->localName==’forecast’) {
$forecast=”Today’s forecast: “.$child->getAttribute(‘text’).” with a high of “.$child->getAttribute(‘high’);
break 2;
}
}
}
}
echo $forecast.”n”;
?>

Pipe the output through festival –tty. In addition to running this script, the alarm crontab entry also starts up …

Posted in Other | Tagged , , , , | Leave a comment

Quiffle’s recent updates

Quiffle has gotten two new updates recently. The first is RSS feeds. The second is some nice anti-spam measures. The feed is available at /feed and uses FeedCreator to generate a valid feed.

Right now, the feed is a beta …

Posted in Other | Tagged , , , , | Leave a comment

PHP’s $GLOBALS

I went through my stats today and discovered that googling for ‘php $_global’ returns my source.php without explanation. What an entirely unhelpful result. I think some explanation is in order.

What is $_GLOBAL?
A made up variable that holds certain values …

Posted in Other | Tagged , | Leave a comment