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

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!


Learning Cappuccino: A Linked List

Posted: November 1st, 2009 | Author: Jerod | Filed under: Cappuccino | View Comments

Picking up a new framework can be a daunting task, especially if you’re simultaneously learning a new language. I’ve done this before when I learned Ruby & Rails all in one fell swoop. It was not easy. I’m doing it again with Objective-J and Cappuccino.

Along the way I’ve compiled a list of valuable resources. I believe many others will be taking this same journey in the coming days (especially once Atlas drops), so I’m sharing my findings for the benefit of all.

Read the rest of this entry »


A WordPress Skeleton Key

Posted: October 29th, 2009 | Author: Jerod | Filed under: Projects, WordPress | View Comments

File this one under “scratching my own itch”

A Problem

I often use WordPress as a CMS and have a couple of sites with many users contributing. I rarely go a week without an email or phone call from a user who needs help posting. When it comes to remote support there is no substitute for seeing what they’re seeing.

However, if you want to login to the site with their user account you have to either ask for their password (tacky & insecure) or reset their password temporarily (amateurish & annoying).

A Solution

Read the rest of this entry »


Cheating on Rails

Posted: October 20th, 2009 | Author: Jerod | Filed under: Tools | View Comments

Fellow command-line junkies either love the cheat gem by Chris Wanstrath or they’ve never heard of it.

What “cheat” offers is a plethora (currently 601) of text-based cheat sheets at the tip of your fingers. Go ahead, give it a try:
Read the rest of this entry »