puts Blog.new(”nonsense”)

Archive for March, 2008

Noteworthy Nonsense - March 18, 2008

Posted by Jason Rudolph on 18th March 2008

  • More evidence that 100% test coverage is just a good place to start.

  • And here I thought perhaps it was finally time to drop BASIC from my resume. §

  • Dave Klein takes on a gnarly Oracle schema using the Grails ORM DSL. If you’re dying to see some XML or annotations in use, then well, you need help, and this tutorial simply ain’t for you.

  • Git repo containing the complete Rails source code and it’s entire revision history: 21.9 MB. SVN checkout of the current Rails source code with no history: 23.8 MB. Convinced yet?

  • Safari 3.1 hits the street, now with more cowbell marginally better dev tools. Oh well, it’s still feels like the best fit for day-to-day browsing, but it’s got a long way to go if it’s ever gonna compete with Firebug for some real web developer love.

§Link courtesy of Rob Sanheim.

Link courtesy of Stu Halloway.

Tags: , , , , | No Comments »

Manning up: TextMate Meets Man Pages

Posted by Jason Rudolph on 14th March 2008

Navigating through man pages in a terminal window doesn’t exactly rank as a highlight of this developer’s day. The experience feels like 1971 for a reason, and that means of interaction just leaves something to be desired. Perhaps you could make the argument that A) people that read man pages don’t rank humane interfaces as a top priority, or that B) I could spend more time mastering the ways to navigate via less (the default man page browser in OS X). But, believe it or not, apparently I’m not alone in my crazy desire to consult man pages outside of the terminal. So with web-based solutions, PDF generators, and full-blown apps dedicated solely to “manning up,” where should we turn? Queue The Pragmatic Programmer for some welcome words of wisdom:

Use a Single Editor Well

The editor should be an extension of your hand; make sure your editor is configurable, extensible, and programmable.

For me, that editor is undoubtedly TextMate. I already spend most of my day in TextMate, be it for coding, blogging, editing wiki pages (and other Safari-based content), or sometimes even writing e-mail. So, if I can use TextMate to find my way around a man page, that’s an all-around win.

Goal

While working in the terminal, be able to quickly open a man page in TextMate.

Making it happen

First, install the mate shell command. (Even if you have no interest in viewing man pages in TextMate, this command is simply indispensable for anyone that even occasionally ventures into the land of the terminal.)

Now that we have access to TextMate from the command line, we can assemble a quick script to get us the rest of the way toward achieving our goal. I keep all of my custom scripts in a .scripts directory that I include in my path, so I’ll define this handy scriptbaby in a file named mman (for “mate man”) in that directory.

  1. > ls -l /Users/jason/.scripts/mman
  2. -rwxr-xr-x@ 1 jason  jason  43 Mar 14 15:52 /Users/jason/.scripts/mman


And once we drop a bit of Unix-fu into that file, we’ll be good to go.

  1. #!/usr/bin/env bash
  2.  
  3. man $1 | col -b | mate


To see it in action, just use mman anywhere you would have previously used the vanilla man command.

Running mman in Terminal to open man page in TextMate

Kicking it up a notch?

That approach has served me well for several months now, but in the course of writing this post, I came across an associated TextMate bundle that some folks may find helpful as well. The TextMate Man Pages bundle offers some (minor) syntax highlighting, the ability to open a man page from within TextMate, and the ability to use Command + Shift + T (i.e., “Go To Symbol”) to quickly find and access key sections of the man page by name.

Showing off the TextMate man page bundle

Now go forth and devour some man pages already.

Tags: , | No Comments »

High Marks for Refactotum 2GX; Next Stop RailsConf

Posted by Jason Rudolph on 14th March 2008

Want to know more about just how easy it is to contribute to the many open source projects that you use day in and day out? The Refactotum series is dedicated to showing you how. Coming up at RailsConf in May, Stu, Justin, Rob, and I will be offering up another round of Refactotum open sorcery.

Rails Conf 2008 Logo

What are people saying about Refactotum? The 2GX crowd was pretty psyched…

Showed how you can contribute to open source even if you don’t have a lot of time.

Cool. Time? What’s that?

Very helpful. I’ll definitely follow up by contributing to open source projects.

Right on.

Explaining how to contribute to open source is something that is not usually covered and needs to be taught and evangelized.

And even when the network didn’t cooperate…

It turned out to be a giant “pair” programming exercise instead of individual programming and this turned out to be MUCH better. Some of the ideas discussed were really intriguing.

Grab your seat now before they’re all gone. Hope to see you there!

Tags: , , | No Comments »

Noteworthy Nonsense - March 9, 2008

Posted by Jason Rudolph on 9th March 2008

In the spirit of Andy Glover’s Weekly Bag and Bill Dupre’s frequent batches of Whatever, herein lies the first installment in a (sure-to-be-sporadic) series of Noteworthy Nonsense.

  • iPhone web app authors rejoice! (Yes. You read that right. Web-app authors.) Test your web apps using the official iPhone simulator. (And, oh yeah, you can go native now too…but the lack of RubyCocoa support is a bit of a downer.)

  • A plugin that lets you run Struts 1.x code inside a Grails app? Yeah, I cringed too, but this will surely be a welcome migration path for those folks trapped in the land of *.do.

  • Are SVN users suffering from the Blub paradox? Linus pulls no punches in offering up his take on this matter.

  • Dan Benjamin’s back with the Leopard edition of his definitive “how-to” guide for rolling your own installation of Ruby, Rails, and friends.

  • The last time Glen Smith declared a month o’ Grails, he showed the community just how very much is possible with merely an hour a day. Now Glen’s at it again, but this time it’s MockFor(March). If history is any indicator, expect Glen to blaze new trails in the land of Grails unit testing. Glen: It takes GUTs, but I’m rootin’ for you!

  • Speaking of good unit tests, Jay Fields announced a new version of the expectations gem, complete with a healthy dose of example code. One expectation per test? Saying “goodbye” to cumbersome test names? Jay’s onto something here.

Tags: , , , , , , | No Comments »

Lightning Talks at Tonight’s Agile RTP Meetup

Posted by Jason Rudolph on 3rd March 2008

The Triangle’s local Agile group is hosting a round of lightning talks tonight. I’ll be pitching a quick demo showing just how much Mingle rocks, but it’s an open floor, so everything’s fair game.

From the meeting description…

We’ll be doing a lightning talk night with a rejectconf twist. What that means is that there’s no hard time limit, but talks will get sorted by estimated talk time, shortest to longest. The shorter your talk, the more talks we can see and the more likelihood you’ll get to give it. So start thinking about something quick and cool you could share with us - it’ll be a blast!

The meetup gets underway at 6:30 PM. (See the Agile RTP site for full details.) If you’re nearby, come on out. Hope to see you there!

20080304 Agile RTP Logo

Tags: | No Comments »