Brandon Dimcheff
Brandon Dimcheff
Home
Posts
Talks
Recipes
Contact
Light
Dark
Automatic
Posts
Play in the Sandbox
I needed to test some code that reads and writes files on the filesystem. I got sick of manually setting up a scratch area for my test files and cleaning them up when I was done, so I created Sandbox to keep my tests DRY.
Last updated on Oct 15, 2017
1 min read
How to learn Ruby
UPDATE 4/20/2010: Well Grounded Rubyist is not prerelease anymore. Corrected. UPDATE 6/30/2011: Fix links to _why’s poignant guide, since he vanished from the earth. Add a bit about finding live people to help you.
Last updated on Oct 15, 2017
6 min read
Sinatra block parameters!
The latest master Sinatra now supports optional block parameters. It captures any parameters in the URL and passes them into the block that defines the action: get '/hello/:name' do |n| "Hello #{n}!
Last updated on Oct 15, 2017
1 min read
Run specs with autotest, er, autospec!
It seems that it’s not well publicized, but if you want to run your RSpec files with autotest try autospec instead. It looks inside the spec/ directory for files named “*_spec.
Last updated on Oct 15, 2017
1 min read
Gearing up for CodeMash
I’m getting all packed for CodeMash! Hope too see a lot of you there. I’m a little bit disappointed by the dearth of Ruby sessions, but there are enough of us that the open sessions will be rockin’.
Last updated on Oct 15, 2017
1 min read
Commit a linear git history to subversion
Update: Deskin points out that there is a commit to git that fixes this problem by adding a --root option to rebase --onto. So when you get a new build of git, you can probably ignore everything here.
Last updated on Oct 15, 2017
4 min read
Use Capistrano to set your production database password
This is a Capistrano recipe I use to configure my production database.yml. Before deploy:setup executes, this recipe will prompt for a database password and save a new database.yml file to the shared directory on your server.
Last updated on Oct 15, 2017
1 min read
Resolutions
I generally think that new year resolutions are silly, but since it’s the new year and I have some goals I’d like to set, I guess I might as well call them resolutions.
Last updated on Oct 15, 2017
1 min read
Ruby Hoedown Videos Online
Ruby Hoedown 2008 videos are now live. There are a lot of good talks. I highly recommend checking them out. I’ve set up a torrent of all the videos for your convenience.
Last updated on Oct 15, 2017
1 min read
Make RubyMate work with MacPorts Ruby
To make TextMate’s RubyMate work with MacPorts (or any other non-default ruby install) just set TM_RUBY environment variable to be the path to your custom ruby interpreter in TextMate’s preferences. Custom environmental variable settings are located under ‘Advanced’->‘Shell Variables’ in TM’s prefs.
Last updated on Oct 15, 2017
1 min read
«
»