// archives

Uncategorized

This category contains 8 posts

Pics from Frayed Wire

Frayed Wire went great!  I had so much fun, even though I was running around like a chicken with it’s head cut off (I was producing the event…).  It’s an amazing experience, to be in a room FULL of technologists who are also artists and vice versa.
I posted some frayed wire pictures on flickr here.
Introductory slides for Frayed Wire are here, provides some background on who was there and our goals:
   
We had a *great* set of speakers and workshops, and people had a lot of fun making stuff out of the items from Junque Exchange in the open lab, and there [...]

Hallow

Never drunk email again

Googles mail goggles

Git with Piston

Piston is rad. It lets you import other svn tree’s into a tree of your own and manage updates over time without have to deal with the hassle of all the version, import and update gymnastics.
There seem to be a growing number of projects that are being primarily developed on git so having git support simultaneously in piston and git is great.
To get it working I did:

$ git clone git://github.com/francois/piston.git
$ sudo gem install main open4 log4r mocha
$ cd piston
$ sudo rake install_gem

Rock Music Quality vs. Oil Production

When Ferrari designs a motor cycle

Disable deploying to your database server in Capistrano

Update: I found a better way, see below
I use Capistrano to not only manage deployment tasks, but also to do lots of data management and monitoring tasks. By default Capistrano will try to deploy your code to whatever server you have set to the :db role, and will try to run the migrations there too. I don’t want to hassle with getting our full rails environment working on the db server so this was always a hassle.
A temporary solution was to just set the :db role to the same server as the :app role and the migrations would get run [...]

Complex forms, mass assignment, and the “presenter”

I’m fed up with doing a bunch of complex model aggregation in my controllers. They are too bloated. Here’s a set of links I’m trying to make sense of as I decide what to do:

http://validatable.rubyforge.org/
http://pastie.textmate.org/pastes/134685
http://blog.jayfields.com/2007/02/ruby-forwardable-addition.html
http://www.brynary.com/2007/4/8/fluent-interface-for-ruby-delegation
http://weblog.jamisbuck.org/2007/1/11/moving-associated-creations-to-the-model
http://groups.google.com/group/rubyonrails-core/browse_thread/thread/3c61e00916c365e5?pli=1
http://ryandaigle.com/articles/2008/7/19/what-s-new-in-edge-rails-nested-models

Seems like if you can avoid building an extra Presenter model and keep everything in your Rails models you’re better off, though the situation if complex enough, may dictate breaking such stuff out.
Handy in either scenario is Jay Fields validatable plugin for giving you better control over validations on collections of model objects.
The mass assignment stuff that was in edge but has been removed (dammit) may [...]

Recent Comments

Most Emailed