Articles

Rock the Job Episode 2: Keg Stands

In episode 2 of Rock the Job, Nick and I discuss the negative impact of keg stands on your career.

Quack Attack: Making Your Code More Rubyish

I’ve been doing some FFI work recently, which means that I’ve needed to wrap underlying C libraries so that I can call them from Ruby. While I won’t get into how the low level wrappers work, I can show you what the raw API calls look like for just a few functions:

Web Hosting Services Which Support Ruby on Rails - added www.rubyserve.com

NOTE: kindly add new entries at its correct alphabetical position in the list and try to keep them to one paragraph of around 30 words or less.

United States of America

* A Small Orange (one of the first shared hosts to support Ruby on Rails back in early 2006) now runs RoR with Passenger/mod_rails! gem installs of helpers and libraries are supported upon request. All hosting plans support Rails, and start at $2.50 per month.

Double Shot #470

I’m sure something happened in Rails-land yesterday, but I didn’t see it, so just one link today. More tomorrow, I expect.

acts_as_good_style

Originally published in 2007, this article is updated on a semi-regular basis and republished when I add something new...

Rails Idiom
There are a number of small pieces of rails idiom that contribute to better rails code. I've been collecting them at work as they come to me (often by reading other people's code).

获取 Cygwin

你同样可以选择将 Ruby On Rails 安装到 cygwin。自从cygwin作为在PC上的类Linux/Mac环境,这变得非常有意义。

* 下载 cygwin.
* 选择安装cygwin的根目录. (默认: c:\cygwin)
* 选择cygwin本地安装文件包目录. (example: c:\cygwin-files)
* 确定你已经选择了以下包:
* Interpreters -> ruby
* Devel -> git, git-completion, gitk

Configure environment.rb to not look for pluralized table names - Formating my last edit

notice: if your database supports views..you can alias your table names and column names to rails conventions, and the legacy schema is not an issue..

----------

possible inclussion*
set_primary_key is extremely useful for legacy databases. But when you come to test your program. Can you rename the primary key for the test environment? I think this is necessary, testing my application seems to completely fail, probably because of this. I can’t see a work around.

The Future of Ruby is Fail!

The Future of Ruby is Fail!

Preamble

Thanks to Ilya Grigorik for initiating the discussion in the Indian Ruby / Rails community around the premise “Future of Ruby is Fail” (yes, somewhat tongue in cheek, but also serious), trying to get a feel for the concerns in the community. The focus of this discussion would be on the Indian market / geographical area.

Interview: Author David Black

Our Book Promotion: “The Well-Grounded Rubyist” starts today. Win one of four books to be given out for active participation. The coolest thing? Author David A. Black will be on site to answer questions! Click here for more details. Here, in this brief interview, Satish Talim of RubyLearning talks to David A. Black.

The Unexpected Consequences of Consumerism

I’m reading Vagabonding: An Uncommon Guide to the Art of Long-Term World Travel by Rolf Potts. I’m only a quarter of the way through it and it’s already worth the price. In the third chapter, Rolf talks about the American reaction to the Exxon Valdez oil spill in the late 80s. The nation suddenly became, on the average, much more environmentally minded. So what did we do?

RailsLab: Scaling Your Database – Part 2 | Rails Fire

RailsLab: Scaling Your Database – Part 2

In the first Scaling your Database screencast we learned how to scale our database if our website is read heavy, but how do we scale if our website is write heavy? Also, if you’re running MySQL do you know which database engine your website is using? and why? If you want the answers to these questions, or you just want to learn more about database scaling, it’s time to watch the 18th episode of the Scaling Rails screencast series.


Summary

In this screencast we first learn the difference between MyISAM and InnoDB storage engines. We then take a look at two strategies for scaling your database writes on a system, the first by using master master replication and the second by sharding your database. Along the way we’ll learn about some useful tools for scaling your database, and look at how some big websites like eBay and New Relic shard their database.

Don’t forget to subscribe to the screencast RSS feed or grab it on ITunes to avoid missing any of these episodes. FYI, These videos look great on an iPhone / iPod if you want something to watch on the go.

Images: