Character Encoding Help

Tom Morris is pulling his hair out dealing with XML character encoding issues. I’ve gone through this myself. I found that the SimplePie feed parser has great logic for dealing with this, so I adapted it to my needs in my PHP class XMLParseIntoArray. I think I’ve expanded on SimplePie’s approach a bit, but it’s… Continue reading Character Encoding Help

PHP command line mode detection

Use a block like this in PHP code to detect whether or not it’s running in command line mode as opposed to web server script mode. // if $_ENV['SHELL'] exists, we're probably in command line mode if (array_key_exists('SHELL', $_ENV)) { $this->setOutputMode(MYSQLICIOUS_OUTPUT_CMD); } else { $this->setOutputMode(MYSQLICIOUS_OUTPUT_HTML); }

Juice-y Python

I use Juice to manage my podcasts. But it doesn’t do everything I need, and it’s a little buggy, and I want to learn Python anyway. So I decided to download the latest source code and see if I could fix some of the bugs I’ve noticed and figure out how to extend it to… Continue reading Juice-y Python

Leash and Feedparser

Maybe I’ll write up something a little more formal in the future. For now, I just want to publish this in case it’s useful to someone. Les Orchard posted a blurb that indicated that he was looking for a PHP class to perform HTTP requests with conditional GET support. Well, a while ago I was… Continue reading Leash and Feedparser

WordPress and JavaScript Hijacking

I read this paper that Bruce Schneier linked to regarding JavaScript hijacking. Seems to me that WordPress plugin developers who piggyback on WordPress’s builtin security features shouldn’t have anything to worry about. Judging from what little buzz there was, I think that’s probably true, but I’m interested in others’ thoughts.

Answer the door

Dave Winer is looking for a developer to work on Share Your OPML. If you’re interested, I strongly urge you to pick up the baton. I can vouch for what Dave says in his post: he’s demanding, but he really invests in the people with whom he works. As long as you’re not a prima… Continue reading Answer the door

A River for NewsGator

Truly re-inspired by Dave’s injection of interest into mobile news reading, I’ve been tinkering with my own custom solution. Since I subscribe to NewsGator, I’m using the NewsGator API for some backend, but I’ve done quite a bit of plumbing myself. The most important things I wanted to be able to do were (1) to… Continue reading A River for NewsGator

Optimal Bugfix

I released a bugfix for Optimal today. The latest version is 0.4c. If you haven’t experienced any weird problems with the 0.4 release, don’t bother updating. Thanks to Chris Pirillo for bringing the problem to my attention and working through it with me.

Optimal OPML Browser Update v. 0.4

I’ve completed a major rewrite of my OPML browser, Optimal. I didn’t manage to document all of the changes, they were so numerous. Highlights are: Object-oriented reimplementation, making it more portable to other applications Same code may be used as a WordPress plugin — replaces the OPML Renderer plugin for WordPress RSS items now include… Continue reading Optimal OPML Browser Update v. 0.4