Monthly Archives: June 2012


MP3 streaming for apple iphone with php readfile file_get_contents fail

For the actual content, see:  http://mobiforge.com/developing/story/content-delivery-mobile-devices   But I must jot the solution down, as I spent a great deal of time struggling with setting headers and calling readfile($filename) with php to make ipod/iphone/ipad play/stream mp3, to no avail. On a related note, I had to do header(“location: <url to mp3>”) as a workaround for […]


Setting up Hadoop Cluster with ubuntu

Installation Install hadoop: https://ccp.cloudera.com/display/CDHDOC/CDH3+Installation (optional) Links to installing hive/pig/hbase are on the bottom of the link in step 2. Configuration Hive:  by default it does not allow multiple users, because by default it uses a local derby metastore. So, if you wish to have multiple users connect to it, install mysql, and configure /etc/hive/conf/hive-site.xml.  See […]


Check Image Resource’s Expiration from Browser

Speed hack, set expiration on header of certain files, like images and js. To check the expiration of downloaded files, in chrome, go to the browser cache and poke around.  i.e.   about:cache or chrome://cache/   then, find your resource, and click on it, and it will show you. For example: chrome://view-http-cache/http://www.openskyradio.com/images/forum/903cafe.jpg will show: HTTP/1.1 200 […]