May 2013 M T W T F S S « Apr 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 -
Recent Posts
Recent Comments
- Behzodbek on Phonon-Xine is dead. Long live Phonon-GStreamer.
- Simon Lewis on A fresh new KMix
- T. Fischer on The Volume Slider Compromise
- Robert on The Volume Slider Compromise
- Maximilian Schander on The Volume Slider Compromise
Categories
- Freedom (3)
- Internet (2)
- Linux (92)
- Other (132)
- Planet Caminus (6)
- Opencraft (3)
- Programming (11)
- Uncategorized (6)
- wm161.net (4)
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 …
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 …
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 …
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 …
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 …
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 …
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 …
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 …
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 …
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 …
