October 2006
3 posts
4 tags
BBEdit "Projects" in Applescript
I really, really can’t decide between TextMate and BBEdit, the majority of reasons of which I should leave for another post. But anyway, one of the most annoying things that I thought was left out of BBEdit was the ability to save the contents of the Documents Drawer for easy retrieval. I like to keep my work logically separated by window, and it’s a pain to drag all the documents I need where I...
Oct 31st
Command line utility to interrogate models
If you run the script with no arguments, it prints a little tree showing the object hierarchy: # show_model ActionMailer::Base Notifier ActiveRecord::Base Tag Posting Comment Entry Preferences User Group Note that, in this example, comments and entries are subclasses of Postings (using single table inheritance). More useful, though, is getting a quick...
Oct 19th
3 tags
offsetHeight especially slow in Firefox for Mac
At thoughtbot, we’re working on an exciting piece of code that will someday be shared with the rest of the world. Suffice to say, its a very intensive bit of javascript code that stresses the boundaries of all browsers. After initially solving a lot of the performance problems by offloading a lot of the calculations to CSS instead of javascript (lots of the elements on the page effect the...
Oct 14th