Monthly Archives: June 2009

Fight evil, or be evil?

I’ve set up a little thing while playing with wildcard DNS on this domain. A faux-news story that you can modify by changing the sub-domain in the URL. Here is an excerpt from Bill Gates and Steve Jobs:

METROPOLIS – In the slums of Metropolis Bill Gates’s villainous deeds have been put to a stop for the foreseeable future. The hero, Steve Jobs has been credited for this tremendous feet.

It all transpired a few days ago when Bill Gates robbed First Banana Bank on the corner of 4th and Pacific.

Now how it works:
http://bill.gates.steve-jobs.sh.rrbits.com/

To modify it, simply change these two pieces of the URL. As you can see here, the hero’s name is given right before the .sh portion of the URL with hyphens (or dashes if you call them that) replaced with spaces and the villain’s name before that separated by periods.  So to make it the opposite, you’d make the URL http://steve.jobs.bill-gates.sh.rrbits.com/ try it out with your friend’s names or with off-the-wall names and send it to your friends.

Easily import sitewide comments – WPMU

One of my work responsibilities is the administration and development of a WordPress MU installation, Puget Sound Blogs. Someone suggested adding a feed of the most recent comments onto the front page, but obviously this isn’t terribly easy to do with WPMU, unless you have the sitewide comments plugin. http://wpmudev.org/project/Sitewide-recent-comments

Now the problem with this plugin becomes: What do I do to import my old comments. It’s fairly easy to simply export and re-import the comments, but I found this to be rather time consuming. So I wrote this script to do it all for me. Keep in mind that you’ll need to change which tables you use if they are different and whatnot, but it sure saved me a lot of time anyway.

Continue reading