Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

By Peter Cooper / March 19, 2007

Railsforall

Robert Dempsey has launched Rails For All, Inc., a new non-profit Rails advocacy group. Robert says he’s created the non-profit because he feels that the lack of a major corporation to back Rails has led to a hole in the advocacy and networking area. One of Rails For All’s goals is to act as a hub where Rails professionals and businesses wanting to learn more about Rails can come together.

Rails For All is reliant on all Rails advocates for content contributions, such as case studies and application demos, and is also seeking financial sponsorship. If you have a Rails case study to share, or want to get involved in the group in one way or another, visit the official site. Read More

By Peter Cooper / March 15, 2007

Httperfpeepcode

Benchmarking with httperf is a new screencast by Geoffrey Grosenbach in his Peepcode series of Ruby / Rails related videos. It costs $9, but for that you get a bundle of source code and a very high quality video of 53 minutes’ length.

In the video Geoffrey covers a lot of basic theory about statistics (including standard deviation) and shows how to extract useful statistics from Rails log files and httperf, a Web server performance monitoring tool. He demonstrates the actual effects of using the various types of caching available to Rails developers (including what types of caching are faster and by how much) and what effect sessions have on request levels. Read More

By Peter Cooper / March 13, 2007

I’m currently putting together the list of publications that my publisher, Apress, can send and push my book to. Unfortunately Ruby has a rather lacking publishing ecosystem, but I figure I’d try “ruby magazine” in Google none the less.

Rcas
The first relevant result is Ruby Code & Style. This site used to be quite good to read, but about the time that Ruby Inside launched.. it stopped. The last article was published on May 23, 2006. Created by Artima, RC&S had/has an impressive list of names on its advisory board, including DHH, Jamis Buck, James Britt, Hal Fulton, Eric Hodel, matz, and.. Read More

By Peter Cooper / March 13, 2007

SQLDSL, by Jay Fields, is, simply, “a library for creating SQL statements using Ruby code.” Jay posted separately about the pros and cons of SQLDSL on his weblog, although he might be accused of bias with only one con to six pros (compelling as they may be).

Despite being another DSL to learn, SQLDSL follows SQL pretty closely (in contrast to ORM frameworks like ActiveRecord, Sequel, or Og):

Select[:column1].from[:table1].where do
name = person_name
end

And it even affords some clever logical tricks:

Select[:column1].from[:table1, :table2].where do
table1.column1 = table2.table1_id
table1.column2 >= quantity if quantity > 0
end

One major future benefit of SQLDSL is that it provides a programatic abstraction of SQL that’s still pretty close to the database layer, and could allow for easy vendor-specific SQL manipulation in future. Read More

By Peter Cooper / March 11, 2007

Derby

Brian Leonard has put together a fine walkthrough of creating a Rails project in NetBeans 6.0 along with database (powered by Derby). I’m not a Java / Netbeans guy myself, but this is a compelling walkthrough. It looks very slick, especially for an as-yet officially unreleased IDE. Read More

By Peter Cooper / March 9, 2007

Following on from the bumper Ruby interpreter performance tests by Antonio Cangiano two weeks ago, Xue Yong Zhi decided to run the same performance suite on XRuby Ruby to JVM compiler and found that XRuby is faster than the Ruby interpreter in 26 out of 38 tests. It’s interesting to note that the failing tests are the same as those for the official Ruby interpreter on Windows (stack exhaustion?) so in the scope of these performance tests XRuby appears to be more feature complete than interpreters such as Cardinal and Rubinius that fail many of the tests.

While XRuby’s performance is certainly amazing for a project that’s less than 2 years old, and the idea of compiling Ruby directly to Java bytecode is initially appealing, the results for YARV/Rite are still streets ahead in terms of raw performance, and where I’m placing my bets for the next de facto Ruby interpreter. Read More

By Peter Cooper / March 8, 2007

Openid

Decentralized identity system, OpenID, appears to be the latest flavor of kool-aid permeating the Rails universe. OpenID makes it possible for users to identify themselves by using URLs that relate to a site where they have already logged in. Your application can then check this with the remote site and then use that status to tie that confirmed identity to their identity within your system. As much for my own reference as anything else, here are the main bits and pieces floating around regarding Rails and OpenID lately:

1) David Heinemeier Hansson started off by talking about how 37signals are looking at using OpenID. Read More

By Peter Cooper / March 8, 2007

Redmine

redMine is an open source project management and issue tracking Web app, created by Jean Philippe Lang and released under the GPL. There’s a live demo of the system available. Features include multiple user support, SVN and diff browsers, LDAP support, support for several different database systems, and more. Read More

By Peter Cooper / March 6, 2007

On behalf of the whole JRuby team, Thomas Enebo has announced the release of JRuby 0.9.8. Hundreds of minor tweaks, fixes, and features have been added, and now Ruby on Rails is officially supported. The team report a 98% pass rate for Rails 1.2.1′s own unit tests, and if you’ve seen how deep the Rails tests go, that’s pretty good work. It’s pretty clear JRuby isn’t too far from a 1.0 release now from which full compatibility should be available. Read More

By Peter Cooper / March 6, 2007

Andrew Birkett has stumbled across an interesting side effect of using SVN checkouts for deploying Rails applications in that, without adequate protection, SVN metadata is made available for all to see. In many cases this means you can see the revision number, the username of the last person to commit or update, and information about the SVN repository used. Andrew links to SVN files found at 37signals.com, Penny Arcade, and StrongSpace, which, at the time of writing, are all still viewable by the public. Luckily this problem is easily fixed by using svn export or a mod_rewrite rule. (I haven’t tested this yet, but in theory I think this rewrite rule could work: RewriteRule ^.*\.svn.*$ [F] )

I was going to e-mail some of these folks about it, but my mail program is not showing that I have addresses for any of the people at these companies, so.. Read More

By Peter Cooper / March 5, 2007

Robert Dempsey, Founder of Rails For All, Inc. (a new Rails advocacy group), and Gregg Pollack, CTO of ADS, will be presenting a one-hour session for managers and developers at DeVry University’s Orlando campus on Thursday, March 15 as part of the Orlando Ruby Group. There will be a free dinner, provided by Rails For All, so they suggest you arrive hungry! They say the session will focus on the business advantages behind Ruby on Rails and is particularly ideal for managers as well as developers looking for work. More details about the session can be found here. Read More

By Peter Cooper / March 4, 2007

Etexteditor

Over at the O’Reilly Ruby Blog, Jim Alateras laments the recent stalling of development on RadRails, but suggests an alternative solution: E-TextEditor, a “TextMate” alternative for Windows. The initial reports I’ve read about it are that it’s rather good, and after watching the screencast I’d say it looks to be a pretty good editor and I’d give it a try if if used Windows. If you’re a Windows user, give it a look.

Now for the editorial bit.. Read More

By Peter Cooper / March 3, 2007

Heiko Webers writes:

I think many of us share the perception of Rails being a “secure” framework. And that might well be true, because we need less code to get things done and less code means a better overview of what’s happening. But though Rails seems to be safer, doesn’t allow us to lean back. There has been a security bug in Rails last year and even in Ruby itself.

I’ve started a new blog about Ruby on Rails security concerns called “Ruby on Rails Security”. In the next few months I will address the secure configuration of web servers, how to securely set up MySQL, Rails and Subversion. Read More

By Peter Cooper / March 3, 2007

Picture 5
Pledgie is a new Rails-powered Web site that allows anyone to raise funds online for meaningful causes. There is no charge for the service. Instead, Pledgie’s goal is to create an online version of the personal, one-on-one interactions that traditionally are at the heart of successful grassroots volunteerism. Pledgie has recently been successful in helping Rick Olson and Justin Palmer raise some money to support their Mephisto blogging system.

Pledgie was created by Mark Daggett and Garry Dolley. Mark Daggett is a Social Software artist and researcher. Garry Dolley is a professional programmer and open source software advocate. Both are very active in the Ruby community and I took the opportunity to ask them some questions about their Rails development experiences. Read More

By Peter Cooper / March 3, 2007

A month ago, Pat Eyler (On Ruby), Apress, and I launched a Ruby blogging challenge with the question, “How Has Ruby Blown Your Mind?” .. There were 18 solid entries, and one late entry by Sean Hussey that I think would have won if it hadn’t come late. The eventual winner was Ruby Blocks as Closures by Gabe de Silveira, and he wins three Apress books of his choosing. Well done Gabe! Read More

Recently Popular Posts