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 […]


Linux rescue from grub busybox

When SOL and linux won’t boot (i.e. like /etc/fstab is misconfigured, which prevents you from booting and correctly configuring /etc/fstab…chicken and the egg type of situation…), you could in theory boot with a live cd or something along those lines. Otherwise, you can, from grub (i.e. grub menu -> find the entry you’re booting with, […]


Ubuntu Black Magic

Shrinking Root with Software Array, then Replacing Root with another Root Image 0. Start console.  This is a hardware thing, whereby you can monitor the system console even during a reboot.  For example: ssh console@slcradar03-sp.con.slc.ebay.com start /SP/console escape + ( gets out of the console.  then, you can do a “reset/SYS” to reboot   Take […]


Integrate facebook with facebook cononect with phpbb

I have the code, which involves a fair number of files, so it makes no sense to post them all here.  In general, the concept is: 1. authentiacate the user with facebok connect (i.e. button -> launch page [probably with javascript] for user to accept allowing your app) 2. upon successful login to facebook, create […]


Date Time System Clock in a VirtualBox Debian ubuntu Guest Wrong

By default, the system clock in Debian is set to UTC (Universal Time), and then adjusted to your local time, based on your time zone and daylight savings time.  This can be a problem if you are running a Debian VirtualBox guest machine, because VirtualBox sets the virtual machine’s system clock to local time when […]


ldap on ubuntu

FIRST OF ALL, it would be uber helpful if you first stop the naming service.  Otherwise, it will screw you up and confuse you.  Thus: service nscd stop   /etc/ldap.conf is used for authentication /etc/ldap/ldap.conf is used by other programs to contact the ldap server (pam) To connect to Active directory, you need to map […]


RAID 0, RAID 1, RAID 5, RAID 10 Explained with Diagrams

RAID stands for Redundant Array of Inexpensive (Independent) Disks. On most situations you will be using one of the following four levels of RAIDs. RAID 0 RAID 1 RAID 5 RAID 10 (also known as RAID 1+0) This article explains the main difference between these raid levels along with an easy to understand diagram. In […]