After a discussion today on rspec-users, I confirmed that it would be nice if you could structure specs like this, to break your behaviour descriptions down into related groups:

1
2
3
4
5
6
7
8
9
10
11
describe MyClass do
  facet "my_method" do
    it "should do this" 
    
    facet "some stuff" do
      it "should do that"
    end
  end
  
  it "should do the other"
end
Read the rest of this entry

Code highlighting in Mephisto

October 16th, 2007

I assumed this would be really obvious but I had to scour the internet to find instructions.

I wanted to use the included server side highlighting, as described on the Mephisto wiki. It turns out, though, that the correct tag is "filter:code", eg:

Read the rest of this entry

The GetBundle TextMate bundle

October 15th, 2007

If you haven't seen GetBundle, I recommend you give it a look. It makes it easier to browse and install the available bundles (based on what's in the MacroMates repo).

I noticed a couple of issues. If you have bundles checked out from another repo, or you have any bundles checked out with a recent version of Subversion (GetBundle includes its own svn binary), you may have issues.

Here is a modified version of the Update Installed Bundles command that (I think) plays nice in both these situations. I've posted to textmate-dev so hopefully will find out soon enough if it works as I think it does.

Read the rest of this entry

In reply to a post today on ruby-talk, I came up with this monkey-patch that lets you write long initialize methods in one line:

Read the rest of this entry

Well, kinda.

I've been following the Getting Things Done process for a month or so now, and it has pretty much transformed the way I work. I've bought pretty much every intray Tesco has had in stock - twice - and stacked up with foolscap files and white labels. I can say I am never wanting of anything from Staples, because I bought half the shop last time I was in there.

But the relatively small cash investment has already paid itself back in time at least five times over.

Read the rest of this entry

So, I was finishing off the list of programs I use on my Mac, which started off just as bullet-pointed plain text (I typed each program in as I installed it). This being the interweb, I figured it'd be a bit flash if you could click on the program names and be shown their web sites.

Half way down the page, doing this by hand, I got very bored.

Goal: I want to select a URL, select Shiira > Services > Markdown URL and have the title of the page at that URL used as the name of a Markdown link. (For some reason, I started using Markdown, not Textile.)

Easy? Well it is if you know how.

Read the rest of this entry

I thought this would be straightforward, but actually there are a couple of minor issues. (Updated with a tip on fixing the problem where moving focus back to the host machine would cancel dialog boxes.)

Read the rest of this entry