Skip navigation

Tag Archives: programming

I have been trying to get an Android phone to work with LSD, the VJ application I wrote for HTML5 (see my earlier LSD post), so I can hook it up to my pocket projector and have a handheld VJ device for street and guerrilla performances!

However, despite the Android 2 feature list boasting it supports HTML5 video, it has a lot of holes in the implementation. I found this great post from Peter Gasston on making your video work on Android phones, which is a big help. I’ve implemented his recommended workarounds, like removing the “type” attribute on the source tag and manually playing the video with Javascript. If it works, this link should play a test video that is known to work on Android. Then we will see if it actually loads into the canvas, or if Android only supports playing one video at a time, fullscreen in the media player. I guess iPhone is ahead in this regard, but I still have yet to see it play all videos at once.

iPhone: 1 / Android: 8,543,341,231,324,212,378

I just installed TextWrangler (the free version of BBEdit), and am SO GLAD to kiss Aquamacs goodbye.

TextWrangler is so great, it even has a built-in diff comparison and merge tool. The REALLY cool thing is that you can use it as an external diff program with Git!

Here’s how (thanks to Jotlab’s post on How to use FileMerge with Git as a Diff Tool on OSX for giving me the idea):


/usr/bin/twdiff --wait "$2" "$5"

Then, just tell Git to use your script as the external diff editor:

git config --global diff.external ~/

At my office, the ISP blocks all SMTP servers except for theirs… problem is, for some reason my account can’t send email! So I have to end up using webmail (ick), or hack my way around it. It’s very handy to have an SSH server or two lying around. If you do, you can just create an SSH tunnel to your SMTP server, and send your email through that!

I wrote a quick little script to run when you find yourself in this situation: just make sure to run it with admin privileges. Your email client won’t even know the difference!

sudo ./


cp /etc/hosts /etc/hostsBackupSMTP
echo " []" >> /etc/hosts
ssh [username]@[] -L 25:[]:25

#restore once the tunnel is broken
cp /etc/hostsBackupSMTP /etc/hosts

Copy Original To… (de-alias).plist
Download this file

I just wrote my first OnMyCommand droplet: “Copy Original To… (de-alias)”. Ever annoyed by the half-working aliases that the OS X Finder makes? Now you can just right-click any alias and copy the original file it points to to any folder! It’s nice because cp -R doesn’t follow aliases like it does symlinks.

You can download OnMyCommand here. It’s an amazing Finder plugin that lets you write your own scripts to run via contextual menu when clicking on files, etc. Finally someone tried to improve that poor excuse for a file manager. I’ve seen DOS apps that were better.