JJB Blog

Archive for November 2006

Documentation for Ruby exceptions per-method?

Is it just me, or does the Ruby documentation not include which exceptions a method might throw? In order to find out what ios.write throws when it cannot write to the specified path, I had to break it on purpose and look at the output!

Multiple Arbitrary Simultaneous Carets (MASC) — a very handy TextMate Bundle

Here’s a small and handy TextMate bundle, Multiple Arbitrary Simultaneous Carets. I’m not sure if I’m using the best TextMate Bundle terminology, but this is how I would describe it: it lets you insert multiple cursors and then enter text at all of them at once, just like the behavior that is built into traditional [...]

One-liner for deleting all unknown files from an SVN working copy

Have an SVN working copy that looks like this? [code] $ svn status ? projectname.tmproj ? svncommitconflict.tmp ? app/controllers/unneedefile_controller.rb ? app/views/notneeded ? tmp/sessions/ruby_sess.be20aac7aff763cf ? doc/all X vendor/rails $ [/code] Clean it up with this!! [code] $ svn status | grep '^?' | cut -c 8- | xargs -d '\n' rm -rvf $ svn status X [...]

← Before After →