Using TSort in Ruby for Topological Sorting of ActiveRecord Models

Recently, I was building a project list application in Rails and I needed to be sure that sub-projects showed up in the list somewhere below their parents. A topological sort...

Replacement for script onload in IE

This is an old post from my last blog. Firefox and Safari support an onload event for SCRIPT elements. That is, you can dynamically add a new script to a...