Archive for the ‘Other’ category

WebGUI ACME Code Contest

March 28th, 2007

Screenshot of my WebGUI ACME Code submission

Inactivity Reminder

Collapsible javascript side-menu

March 21st, 2007

I was reading about CSS floating and margins today, and started playing. I came up with this, which would make a nice collapsible side-menu. I’ve seen it done as a full-blown mac style fisheye in similar style, didn’t realise it was so easy to do though! All I did was give the image a negative margin-left value based on the mouse coordinates:


<body onmousemove="handleMove(event)">

var xLimit = 80;
 function handleMove(oEvent) {
 var img1 = document.getElementById("img1");
 var x = oEvent.clientX;

if (x < xLimit) {
 img1.style.marginLeft = -x;
 } else {
 img1.style.marginLeft = -xLimit;
 }
 }

Intelligent Design Sort

February 27th, 2007

List sorting in constant time, in-place, with no additional memory. Wow.

Clifford Brown’s last ever recording

February 2nd, 2007

I just found a snippet of Clifford Brown’s last ever recording before his tragic death in a car accident at age 25. The song is Miles Davis’ bebop standard Donna Lee, made famous by Jaco Pastorius, Charlie Parker and others. It’s breathtaking stuff, and gut-wrenching to think what Clifford would have gone on to do if he hadn’t died at such a young age.

Listen here.