Selenium-RC and Snow Leopard

Selenium-RC was having issues on Snow Leopard:

 
dyld: Library not loaded: /usr/lib/libsqlite3.dylib
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Reason: Incompatible library version: Security requires version 9.0.0 or later, but libsqlite3.dylib provides version 1.0.0

Web searches produced a lot of information including some workarounds that didn’t. Finally I read that Selenium-RC 1.x has some hardcoded paths in it that mean it won’t [...]

RubyMine not recognizing cucumber features

If RubyMine isn’t recognizing cucumber features, ensure the following:

Cucumber gem is attached to project: RM | Settings | Ruby SDK and Gems | Attach gems.
If you edited *.feature files in early version of RubyMine it may be mapped on Text file. So you should check that *.feature extension is mapped on “Cucumber scenario files” in [...]

Superstar Developers

Zed Shaw is at it again. This is an excellent post, that contains much truth: 3 Simple Rules That Will Make You a ‘Superstar’ Developer.
Which also provoked a great comment.

Easy rspec matchers

http://rspec.rubyforge.org/rspec/1.2.9/classes/Spec/Matchers.html

Strongbox for ActiveRecord encryption

This looks really handy:
First spotted in a teachmetocode.com screencast.
Which references Spike’s original post.

Google Calendar and iCalendar X-WR-CALNAME

I just figured out another Goggle Calendar idiosyncrasy:
When building an iCalendar (RFC 2445 / RFC 5545) feed, if you want to subscribe to that feed with Google Calendar, and you want to give your calendar a name, Google Calendar accepts the X-WR-CALNAME extension to the iCalendar standard, but it will only allow a text name [...]

Replacing folders with submodules in Git

I recently ran across the following problem:

Multiple people are developing on the same project, pushing commits into the same (e.g. GitHub) repo.
Developer A is working, and commits locally.
Developer B converts a folder into a Git submodule.
Developer A tries to git pull… BOOM – unresolveable conflict, local repo is left in a mess.

The problem is that [...]

TextMate here document syntax highlighting

If you use a language name, e.g. “SQL” as the symbol for your ‘here’ document in TextMate, it will actually syntax highlight the text in the here document.
Very impressive, but I’m not switching from RubyMine.

git feature branch

It has been a while since I used git. To remind me, and perhaps you:

 
git checkout -b <feature_name>

Develop feature: code test commit rinse repeat.

 
git checkout master
git merge <feature_name>
git branch -d <feature_name>

How to stop ActiveRecord putting attribute name in validation message

Use http://github.com/gumayunov/custom-err-msg/tree/master
Put a ^ at the start of the :message => option:
Non-base messages are prefixed with the attribute name as usual UNLESS they begin with ‘^’
in which case the attribute name is omitted.