A hack to parse RSS feeds with php

Just happened to assemble this script hack recently, out of the requirement for a quick’n'dirty feed parsing feature:

$feed_contents = file_get_contents($feed_url);
$xml = simplexml_load_string($feed_contents, LIBXML_NOCDATA);
$feed_array = json_decode(json_encode($xml));
print_r($feed_array); // Surprise!!

Now this evidently is not SimplePie or Magpie RSS or whatever feed reader library tickles your fancy*, but assuming the feed will never be malformed, it can save you lots of time! Isn’t that what php was meant for? :-P
(more…)

ffmpeg on Mac Os X Lion

Now that I’m using a Mac (with Mac OS) at work I’m sorely missing truly essential tools such as ffmpeg. The only binary build I could find (without having to download fink and a ton more packages that I don’t really need) was a build from 2006. Two thousand and six! Which in ffmpeg terms is like the Pleistocene.

So given that I have XCode installed anyway, I decided to build ffmpeg myself, just as I had done back in 2007. It should be as doable as back then!
(more…)

Make Chromium/Chrome blend seamlessly with Gnome 3

“Thanks to the power of CSS” you just need to install these extensions:

With compliments to mr.doob for revealing me the secret!

More posts...