Recently used PHP’s simpleXML to parse through a blogs RSS feed. The parsing worked great and it was simple and clean. Only problem was that the XML nodes that contained colons in the name were being discarded by simpleXML. Example:
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
Not sure if this is a bug, error, or what but it was causing me grief. I haven’t been able to find others on the web complaining of this but my own solution was to remove the colons and traverse accordingly. I wrote a function that takes the feed as a string and returns the string with all colons inside tag names removed.
function removeColonsFromRSS($feed) {
// pull out colons from start tags
// (<\w+):(\w+>)
$pattern = '/(<\w+):(\w+>)/i';
$replacement = '$1$2';
$feed = preg_replace($pattern, $replacement, $feed);
// pull out colons from end tags
// (<\/\w+):(\w+>)
$pattern = '/(<\/\w+):(\w+>)/i';
$replacement = '$1$2';
$feed = preg_replace($pattern, $replacement, $feed);
return $feed;
}

Had a great time this weekend attending the HTML5.tx developer conference. Lots of great developers and designers in the Austin area. Was fun to meet people, learn, and review technologies and techniques for building better experiences online. Some of the things discussed at the conference were
- HTML5 & DOM APIs
- Advanced CSS selectors
- HTML5 Video
- LESS (css)
- Modernizer, Yepnope, and Polyfills
- CSS3 and animations
- Building for experience not browser
I’m excited to start using the things I learned and explore some new features and tools that I learned about.
Tired of Google Chrome cacheing resources while you are trying to build a web app or site?
Here is how you can disable the Google Chrome cache:
- open developer console
- click settings gear in bottom right
- check “Disable cache” under Network heading

This is as of version 14
If you have set up a Graphite server and played with it like I have, you have some data in there cluttering up your interface.

You can get rid of any of the data or folders by deleting them from the server. The data is stored in files found starting at
/opt/graphite/storage/whisper/
Happy deleting!