Mac Subversion client: ZigVersion!

Posted by Daniel Wed, 08 Aug 2007 19:43:00 GMT

If you work with designers and others on projects and you store all the work artifacts in Subversion (which a lot of folks consider a requirement for safety and agility) have a look at ZigVersion. It is by far, the best Mac client I’ve used. Getting started is painless and common functions are easy and quick.



I did experience a crash ro two with an imported working copy, but that might be something strange in that working copy. We’ll see.

I do wish there was a simplified interface for the truly non-savvy that eliminated some of the choices and options. Something that totally centers around getting the project, and updating it (whether by adding or modifying. Acts which should be transparent to that type of user.) But short of that, this is a nice clean client, and I’ll be testing it with my wife this evening.

Posted in , , ,  | no comments | no trackbacks

IRB history and completion

Posted by Daniel Wed, 08 Aug 2007 14:19:00 GMT

Who knew? Why & Others did apparently.
require 'irb/completion'
require 'irb/ext/save-history'
ARGV.concat [ "--readline", "--prompt-mode", "simple" ]
IRB.conf[:SAVE_HISTORY] = 200
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"
Give it a shot by adding those lines to your .irbrc file (home directory). Try typing Date:: and hitting tab twice... Note that this will break the existing filesystem completion, so e.g. File.open('..tab..> will no longer work.

Posted in  | no comments | no trackbacks

3 Script/Console scraps (YAML, Rails, app.class, reload)

Posted by Daniel Tue, 07 Aug 2007 01:41:00 GMT

I was playing around with script/console for a few minutes at the end of the day at work… and I wanted to check a couple of assumptions… one is that YAML is available! So hard to read ActiveRecord objects like this:

=> #"", "updated_at"=>"2007-06-05 21:11:37", "route"=>"", "title"=>"test",
 "ride_type"=>"road", "id"=>"1", "elapsed_time"=>"21:11:00",
 "created_at"=>"2006-06-05 16:55:00", "mileage"=>nil}>

can be displayed like this

--- !ruby/object:Ride 
attributes: 
  partners: ""
  updated_at: 2007-06-05 21:11:37
  route: ""
  title: test
  ride_type: road
  id: "1"
  elapsed_time: "21:11:00"
  created_at: 2006-06-05 16:55:00
  mileage: 

simply by typing this: y Ride.find(1)

Naturally it works with any object…

Second cool thing I looked up was Mike Clark’s post about the app.class for experiencing your app and exercising controllers…

And the last thing is is that if you need to change your code, instead of killing and restarting the console you can type “reload!” and it will do just that.

Posted in , , ,  | no comments | no trackbacks