Category Archives: code

Fixing Numara Footprint’s addressbook search with a Greasemonkey Userscript

UVM uses Numara Footprints to track client support tickets. When creating tickets from client submitted email, the application automatically fills out the contact information for the client, using their email to search against LDAP. This search fails if the address from the incoming ticket is in the format uid@uvm.edu (as opposed to first.last@uvm.edu). This results [...]

NetNewsWire to FriendFeed

After building an applescript to post items from NetNewsWire to FriendFeed, I settled on using FriendFeed’s own bookmarklet from within NetNewsWire. Here’s the how and why. I’ve been using NetNewsWire’s Clippings feature as a sort of light-weight alternative to posting links to my del.icio.us account. It makes for a one-click bookmarking experience, without having to [...]

Portland RUG

I went to another bang-up meeting of the Portland Ruby Users Group last night. Russ Jones gave a great presentation on Design Patterns with Ruby. I don’t know if he’s planning on publishing the notes from the talk, but it’s worth keeping an eye on his blog to see if he does. The talk itself [...]

Remembering syntax patterns through context

Speaking of array functions in PHP, ExpressionEngine developer Derek Jones shares a trick for remembering which order to send your arguments in when using various php search functions. All array-related functions use needle, haystack and all string-related functions use haystack, needle. There are certain words in the english language which no matter how many times [...]

Brevity and Readability

So I’m cruising along in Ruby one day, when all at once I realize I’ve stopped writing. I’m stuck. I needed to compare two arrays, and trim one so that any records in it would be removed if they existed in the other one. In PHP, one way to do this would be to loop [...]

Burlington PHP Users Group

Last week saw quite a turnout at the Burlington PHP Users Group meeting. The event featured a talk by Matthew Weier O’Phinney, from the Zend Framework team at Zend Technologies. The discussion was lively and informative – there was a really good mix of people there, which made for great conversation. We even had some [...]

WordPress Greatest Hits widget

One of my favorite best practices in blogging is the use of a greatest hits list on the home page. I find myself looking for this list every time I come across a new blog. With that in mind, I’ve been wanting to display a list of my favorite entries from this space for quite [...]

Dummy text at your fingertips

Sometimes I find myself in need of more than just the block of Lorem Ipsum text that magically appears from typing “lorem” and hitting tab in Textmate. Sure, I could use a handy widget, but flipping back and forth from the dashboard gets tiresome after a few iterations.

Fixing UNIX permissions en masse

Every once in a while I need to “fix” the unix permissions on a directory. This is usually a web directory, so all the folders need to be readable and executable (i.e. 755), and the files need to be readable (i.e. 644). A preventative measure might be to set the umask appropriately (i.e. 022), so [...]

Date math and documentation

The other day I found this little nugget in the comments of the date page of PHP manual. The real lesson is in the first paragraph: “One of the most useful skills you can utilize when performing date math is taking full advantage of the UNIX timestamp. The UNIX timestamp was built for this kind [...]