Insights on Ruby, Git, jQuery, Cappuccino, WordPress, Debian and OS X. Please subscribe if you find something useful!

Testing Cappuccino Notifications

Posted: January 7th, 2010 | Author: Jerod | Filed under: Cappuccino | Tags: | View Comments

Writing a web app using Cappuccino has a lot of benefits, one of which is a really nice message passing system wherein certain objects can register to observe events and take action when other objects post notifications of those events.

Here is a very basic way to test if your app is posting event notifications as you expect it to. First, create an Observer class inside a test helper file, which will be included into your tests:
Read the rest of this entry »


Rubular

Posted: December 2nd, 2009 | Author: Jerod | Filed under: Ruby | View Comments

Most of the online regular expression testers I’ve used just aren’t that useful, but Rubular is the exception. It uses AJAX appropriately, has a clean aesthetic, and the quick reference at the bottom of the page is so useful it hurts. Plus, it has great features such as match extraction and the ability to create permalinks to your results.

rubular

Rubular is only for Ruby regexes. I wish somebody would make one for JavaScript. Jubular, anyone?


280 Atlas Introductory Screencast

Posted: November 16th, 2009 | Author: Jerod | Filed under: Cappuccino | Tags: , | View Comments

The much anticipated 280 Atlas developer beta is under way and I recorded a brief screencast introducing the basic concepts of creating applications with Atlas.

In it I build a simplified version of the payment calculator from chapter 2 of Cocoa Design Patterns.

Topics covered include creating a Cib-based project, laying out an interface and binding outlets/actions to working code.

Hope it helps!

280 Atlas Introductory Screencast from Jerod Santo on Vimeo.

Related Posts:


Ad Hoc Command-Line Notifications with Twitter

Posted: November 14th, 2009 | Author: Jerod | Filed under: Ruby, Tools | Tags: | View Comments

Have you ever spent way too much time babysitting a long-running command? Code compilation, large file transfers, software upgrades and other time consuming tasks can trash productivity by requiring intermittent attention.

I have a novel idea; let’s not do that anymore!

Read the rest of this entry »


Managing Broken Symlinks

Posted: November 5th, 2009 | Author: Jerod | Filed under: Bash | Tags: , , | View Comments

I just added two new functions to my bashrc which make it super-simple to find & remove broken symbolic links on your system.

They’re simple wrappers around the ever-useful “find” utility:

function find_broken_symlinks() { find -x -L "${1-.}" -type l; }
function rm_broken_symlinks() { find -x -L "${1-.}" -type l -exec rm {} +; }

You can call the functions with a specific path:

jerod@mbp:~$ find_broken_symlinks /usr/local/bin

Or you can call them sans argument to search your current working directory:

jerod@mbp:~$ find_broken_symlinks

Enjoy!