20120121 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 [...]
20100612 Using jQuery’s inline Datepicker within a form
When you use the inline version of jQuery UI’s Datepicker within a form, it doesn’t submit its value back to the server, since there’s no form element in it. And that’s a pity, because I find the inline mode way more comfortable for users: rather than having to click a button in order to open [...]
20090210 Mac mini as a headless server
Last week our humble home server decided it wouldn’t boot any more, and as I had been postponing the migration to a new home server for too long (around six months I think), it was the moment to really do it. We had been warned several times already: it wouldn’t turn on sometimes. Other times [...]
20080307 Fix for the notice errors on simplepie.inc line 5463
If you have errors like these ones… locate the function get_enclosures(), then add this before anything else: foreach(explode(’,', ‘url,type,length,bitrate,channels,expression,framerate,height,lang,medium,samplingrate,width’) as $var_name) { $$var_name = null; } This is for version 1.1! I would post this in their support forums if only I hadn’t to sign into yahoo groups and register to [...]
20061012 I definitely rule
I received one of those stupid lastminute emails in the new address that I tried to enter even if the system didn’t allow me to do that. So that it means that it worked. I am so good! – yeah, I’m not even going to wait for your appreciation, thanks anyway. Update: Oh-my-god, I’m still [...]