But I Am Using the New Routing DSL!!!
I upgraded a Rails 3 app to the first release candidate. I got this error running my tests:DEPRECATION WARNING: You are using the old router DSL which will be removed in Rails 3.1. Please check how to...
View Article"Calling a method in Rails::Application is deprecated..."
I already described how I got rid of a DEPRECATION WARNING when upgrading from a Rails 3 beta to the latest release candidate. That DEPRECATION WARNING involved the router DSL, and I'd like to point...
View ArticleTab Candy for Firefox
It's a bad name because it's not just about making things look good. "Tabs on Steroids" would be better. Whatever we call it, it looks awesome.Tab Candy is a way of organizing tabs in the Firefox...
View ArticleUpgrading to Rails 3 and RSpec 2, Part 1: Introduction
Over the last couple of days I've been upgrading a Rails app from 2.3.8 to the 3.0 release candidate. (Update, August 15: see the Rails 3 branch itself and a comparison of the Rails 3 branch with the...
View ArticleUpgrading to Rails 3 and RSpec 2, Part 2: Controllers
In Part 1, I pointed out some resources to upgrade a Rails app to Rails 3. In this part, I'm going to talk about the some of the changes I had to make to my controllers and their specs.One important...
View ArticleUpgrading to Rails 3 and RSpec 2, Part 3: Router
I my continuing series about upgrading RSpec for Rails 3 (previously: "Part 1: Introduction" and "Part 2: Controllers"). Today, it's testing my routes.But first, I finally pushed my rails3 branch to...
View ArticleUse Prerelease Mongrel with Rails 3 Release Candidate and Ruby 1.9.2
The official, stable release of Mongrel seems to work fine with Rails 3 and Ruby 1.8.7. On one of my projects, I'm using Rails 3 with Ruby 1.9.2, and then you need the prerelease of Mongrel: gem...
View ArticleParallel Programming the Functional Way
I've got two presentations to recommend. The first one I watched a few weeks ago, and it's an interesting watch to see how parallelism can be done in Haskell pretty easily. The second presentation was...
View ArticleUpgrading to Rails 3 and RSpec 2, Part 4a: Views
I continue my series on upgrading the RSpec examples for a Rails 3 app. Today it's about testing the views. (Previously: an introduction, controller specs, and router specs.) I have a lot to say about...
View ArticleUpgrading to Rails 3 and RSpec 2, Part 4b: Recursive Rendering
Today's "upgrading to RSpec 2 for Rails 3" episode is a direct continuation from the previous episode on upgrading the view specs. That post got quite long, and this part seemed the best to pull out...
View ArticleUpgrading to Rails 3 and RSpec 2, Part 5: Cucumber
My final part of my series on upgrading a Rails app to Rails 3 and RSpec 2 describes some of the issues encountered when upgrading Cucumber.I upgraded to cucumber 0.8.5 and cucumber-rails...
View ArticleTypesetting with LaTeX
When I taught at Calvin College, I had some web pages where I discussed my love of LaTeX (and my hatred of Microsoft Word). Since those web pages are no more and since the material would work better on...
View ArticleLaTeX Anecdote #1: The Large, Multi-Author Document
This is a continuation of my series on LaTeX.I Hate MS WordOne of the biggest frustrations I ever experienced was putting together a rather large document (over 100 pages) for the Computer Science...
View ArticleLaTeX Anecdote #2: My Dissertation
This is a continuation of my series on LaTeX (introduction and anecdote #1). Much of this particular article is based on a rant I had on my webpages at Calvin.One Minute LaTeXI used emacs and LaTeX to...
View ArticleTar Archive Problems Upgrading RVM to 1.0.2
When I tried to upgrade RVM yesterday and this morning, I got this result: $ rvm update rvm 1.0.1 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/] info: fetching...
View ArticleI'm Male and 26--35 Years Old, and I Write Happy
Apparently, I write like I'm male and 26--35 years old. A bit off on the age (by five years, let's say). My writing is also "personal and happy"; if you say so...I discovered these wonderful facts from...
View ArticleFunny Code Comments
"Top funny source code comments" by Vinícius Krolow at cObaia.net is worth your time. There are some straight up jokes (like the comments about recursion) and some about the code (e.g., "They made me...
View ArticleEmployed Again!
The short story: I got a job as a Senior Rails Developer at a company named Centro in downtown Chicago starting October 4.The Longer StoryTwo years ago, I decided to leave teaching at the college...
View ArticleLong Time, No Type
So it's been a rather long time since I blogged here. [Checks the date on the previous post.] Okay, a really long time. Recently I started writing a story, and in the past two weeks I've written...
View ArticleUsing Ruby? Pass an Argument to break and next!
I've been enjoying Avdi Grimm's Ruby Tapas. The screencasts themselves are reasonable short (always less than 5 minutes), and they deal with programming on multiple levels, from high-level TDD to...
View ArticleFilter First
I wrote last week about next in Ruby taking an argument:(1..5).map do |i| next :q if i % 4 == 0 i + 1 end # => [2, 3, 4, :q, 6] I made an off-the-cuff remark that I'd think about passing an argument...
View ArticleEven Better Enumeration Processing
In a previous blog post I talked about filtering your data before transforming it. I ended with this code:(1..5). reject { |i| i % 4 == 0 }. map { |i| i + 1 } While I prefer this much more than the...
View ArticleRuby 1.9: method and variable names are now symbols
I upgraded one of our apps at work to run on Ruby 1.9. We had a fair amount of metaprogramming going on, so I got to discover one of the differences between Ruby 1.8 and 1.9: names of method and...
View ArticleCan't add a new key into hash during iteration
I recently discovered something interesting about hashes in Ruby 1.9. Consider this code:h = { 1 => 2 } h.each do |k, v| h[v] = v * 2 end Think through the code first. For each key-value pair in the...
View ArticleThis blog has moved!
The blog now has it's own domain, and I'm off blogger/blogspot. Check it out at www.programming-during-recess.net.
View Article
More Pages to Explore .....