RubyURL through QuickSilver
When Chris Griffin saw this post, he wanted to do the same with RubyURL. Since the ShortURL gem was broken, I didn’t get a chance to dive into it. However, with the shorturl command now working again with RubyURL, we get QuickSilver and RubyURL working together really quickly.
First, you’ll need a recent version of the ShortURL gem installed.
sudo gem install shorturl
Then you will want to add the following to ~/Library/Scripts/rubyurl.scpt. You will need to create this file.
#
# Change accordingly if shorturl is not under /usr/bin/shorturl
#
set shorturl_cmd to "/opt/local/bin/shorturl"
tell application "Safari"
set original_url to URL of front document
end tell
set cmd to shorturl_cmd & " " & original_url
set ruby_url to do shell script cmd
set the clipboard to ruby_url as text
beep
Then you can add this script to run through QuickSilver. For details, jump to the setup process on this post.
This will make it much easier to paste RubyURLs into my Twitter client, IRC, etc.
I’ll try to post a more thorough tutorial soon, but wanted to share in the meantime.
Collaborative Bookmarking... UNLEASHED 11
Like many… I’ve been using del.icio.us for several years and so have some of my closest colleagues. A few of us at PLANET ARGON have been using the for:username tag to send each other links, which has been a great productivity hack as we don’t need to copy URLs and paste them into emails, IMs, or IRC channel windows anymore. One of the things that del.icio.us doesn’t have a totally perfect implementation is sending to a group. There are people in your network, but to my knowledge, there isn’t a way to send everyone in a network the same link without selecting everyone individually. This was adding more time to the process of saving a link for ourselves and our fellow team members. So, we came up with a clever hack… a new delicious user account.
Over the past four months, our team has bookmarked almost four hundred links on topics ranging from Rails plugins, Interaction Design, Business processes, cool new web applications, to any variety of things that we find relevant to our team.

So, all of the links are being sent to a fake user. How do we see the links for that user without having to logout of our current user and into the planetargon account? Well, what we’ve done is take the delicious RSS feed and pipe it through feedburner and given everyone the URL that feedburner provides. Now, we’re all able to subscribe to the same feed and check out links when each of us has time for it.
...and this is what I get to see show up in my RSS reader. :-)

How is your team managing bookmarks? :-)
The Zen of Auto Rspec 9
Several months ago, I heard that people were using a program called autotest to have their tests continue to run as you made changes to your code base, which comes with ZenTest. It’s a really nice tool written by Ryan Davis and I hadn’t gotten a chance to play with it as of yet. Well, our team isn’t spending too much time in the test/ directory these days as we jumped ship near the end of last summer and found ourselves hanging out on the Isle of BDD. The locals are quite thoughtful about these sorts of things.
I just started working on a project that has been under development for several months and as I’m getting to learn the ins/outs of the system, I find myself having to rerun the specs, which can take quite a bit of time watching. Watching your specs or tests run sometimes is as productive as watching your code compile. Oddly enough, this is as close to compilation as we really get when working with Ruby on Rails… and it’s a productivity killer for me.
There Must Be a Better Way!
So, I did a quick google search and found an announcement for Rails that ran specs through ZenTest. This was exactly what I was searching for!
Some requirements
Please makes sure that you have the following gems installed in your development environment as they are dependencies to make this all work.
- zentest
- diff-lcs
$ sudo gem install zentest diff-lcs
note I’m going to assume that you have rspec and rspec for rails installed… if not… tsk. ;-)
Install RSpec autotest
$ script/plugin install http://svn.caldersphere.net/svn/main/plugins/rspec_autotest
If you’re using subversion, you might consider installing it as an external.
$ script/plugin install -x http://svn.caldersphere.net/svn/main/plugins/rspec_autotest
Running RSpec autotest
This is where it gets tricky. ;-)
$ rake spec:autotest
Now, you can keep a terminal window open and autotest will watch your application and detect when files change. When they change, it’ll attempt to rerun your specs (specifically those that changed). This helps save you the time of having to rerun all your specs throughout the development process and keep your spec:all sanity checks for when you’re about to commit code to your repository.
I’ll post another entry in the next few days to show you how you can use Growl with RSpec Autotest to keep you from having to look at your terminal all the time.
Until then… have fun!
Just Go With The Flow
Jacob Harris, a very nice guy that I have the pleasure of chatting with online almost every day during the week. Not only is he a hosting customer… he’s my East Coast buddy that I hope to meet in person for the first time in a few months… should he make it out to Portland for OSCON 2006! The PLANET ARGON team loves harrisj!
Earlier this evening, I noticed that today he wrote a blog entry titled, Are You Happy?
He gives a good introduction into something that I actually had not heard of before… Flow.
Jacob says, “Trying to find happiness through artificially increasing productivity is like putting the cart before the horse.”
...trust me… read the post. :-)





