37signals on Rails Optimizations

Published on 08 August 2008 by James in Architecture, Blog, Ruby

0

There is a great post at the 37signals blog about how they optimized Basecamp using New Relic. One thing I found most interesting:
MySQL optimizations: We’ve been working with a MySQL performance consultant to help us optimize our database calls and queries. We’re still early in the process but we’ve learned a lot so far.
As with [...]

Continue Reading

0

Clemens Kofler has a great post about when to raise exceptions within your Rails application:
Over the years I’ve come up with a little rule of thumb for exceptions:
Libraries Should Raise, Applications Should Not Raise.
Yes, it’s as simple as that. To understand the reasons for my rule of thumb, we have to switch to the world [...]

Continue Reading

Ruby Microframework Footprints

Published on 11 July 2008 by James in Blog, Ruby

0

I’ve been looking for a microframework for Ruby that is simple like Camping but supports RESTful resources like Rails. A tip from the Denver Rails UG pointed me to Sinatra via Adam @ Heroku’s Blog:
Sinatra apps are typically written in a single file. It starts up and shuts down nearly instantaneously. It doesn’t use much [...]

Continue Reading

Subdomains and Rails

Published on 25 April 2008 by James in Blog, Ruby

0

I was trying to setup the proper environment settings in Rails 2 to support cross-subdomain cookie sharing (so the user doesn’t have to login again if they manage multiple subdomain accounts). I was experiencing some inconsistencies when trying to make sure it was working. Here is a tip:
Clear your cookies (the Firefox Web Developer plug-in [...]

Continue Reading

Make RESTful Authentication XHR-aware

Published on 08 April 2008 by James in Blog, Ruby

0

I’ve been working on a project that uses a little XHR mixed into the app to update DIVs on a page. The problem with the RESTful Authentication plugin is that it will always send a redirect back to the browser if the user is no longer logged in, but the XHR callback will simply try [...]

Continue Reading

0

I’m working on a new project that is using the RESTful Authentication generator with Rails 2. As I started to take advantage of the label references capability in Rails 2, I ran into some problems. The default fixtures provided by RESTful Authentication look like this:

quentin:
id: 1
login: quentin
email: quentin@example.com
[...]

Continue Reading

Austin-American Statesman on Rails

Published on 30 January 2008 by James in Ruby

0

I hear some founders say that one technology is the same as another when launching a startup. Scott Abel, chief executive of Austin-based software company Spiceworks Inc, says differently:

Choosing correctly was key, Abel said.
“You pick the right one, and everybody wants to be on your team; the cool, super-smart people flock to you. It’s huge [...]

Continue Reading

Reddit for Ruby Hackers

Published on 28 January 2008 by James in Ruby

0

A new Reddit page dedicated to Ruby is now available: http://reddit.com/r/ruby/. You can subscribe using RSS. Just keep in mind that it is early.

Continue Reading

Lone Star Ruby Conference 2007 on Pownce

Published on 07 September 2007 by James in Conferences, Ruby

0

If you want to follow my notes from the Lone Star Ruby Conference 2007, you can subscribe to my Pownce page. For those at the conference, I’m seated against the wall stage left, near the middle set of double doors. Feel free to stop and chat!
[tags]LSRC2007, Lone Star Ruby Conference 2007[/tags]

Continue Reading

Attending the Lone Star Ruby Conference 2007

Published on 05 September 2007 by James in Conferences, Ruby

0

I’ll be at the Lone Star Ruby Conference on Fri Sept 7th and Sat Sept 8th, so if you will be there, drop me a comment or note and let me know so that we can meet up.
[tags]Lone Star Ruby Conference, LSRC[/tags]

Continue Reading