2

I often have need to perform a bulk import of CSV files into MySQL for different projects. Recently, I made the move to the JRuby platform for one of my projects and have benefited from some great performance improvements for the types of work the code needs to perform. I decided that it was time [...]

Continue Reading

Why I Selected JRuby For My Ruby Project

Published on 31 May 2011 by in Blog, Java, Ruby

6

For those working on the Ruby platform, this is an interesting time. We have Ruby 1.9 YARV, Rubinius, and JRuby as the most popular Ruby Virtual Machines available right now. Each one has its strengths and weaknesses, which have been documented already. While each benchmark comparison may show a particular VM better than another, there is another assessment that needs to be made when selecting the target VM for your next Ruby project: best fit for what your project needs to do.

Continue Reading

37signals on Rails Optimizations

Published on 08 August 2008 by 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. [...]

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 [...]

Continue Reading

Ruby Microframework Footprints

Published on 11 July 2008 by 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 [...]

Continue Reading

Subdomains and Rails

Published on 25 April 2008 by 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 [...]

Continue Reading

Make RESTful Authentication XHR-aware

Published on 08 April 2008 by in Blog, Ruby

1

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 salt: 7e3041ebc2fc05a40c60028e2c4901a81035d3cd crypted_password: [...]

Continue Reading

Austin-American Statesman on Rails

Published on 30 January 2008 by 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. [...]

Continue Reading

Reddit for Ruby Hackers

Published on 28 January 2008 by 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