Yearly Archives: 2012


grub rescue

When in grub rescue, you only got insmod, ls, set, unset (I think). Thus, you must insmod the required modules in order to be able to do anything substantial. do: set root=<whatever> set prefix=<whatever>/boot/grub where <whatever> is like (md0) or (hd2,1). the /boot/grub is by default where modules are, so that insmod will work. If […]


svn tunneling

subversion uses ssh. If ssh blocked from A to C, but A-> B and B->C is not blocked, setup tunneing:   1. on A: /etc/subversion/config in the [tunnel] section, add: ssh = $SVN_SSH ssh -o ControlMaster=no <machine B’s hostname> ssh -o ControlMaster=no   2. on B: /etc/ssh/ssh_config HostbasedAuthentication yes EnableSSHKeysign yes   3. on C […]


A Musing on WordPress and Website Hacking

Introduction As an owner of a software and IT company, I love to solve technical problems. That’s why when recently sites I own and run, as well as my customers’ sites, were seemingly infected with malware (through no fault of mine or the company’s, more on this later), and having swiftly removed the said malware, […]


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