# Ruby Weekly News 21st - 27th November 2005

**URL:** <https://rubytalk.org/t/ruby-weekly-news-21st-27th-november-2005/22871>\
**Category:** ruby-talk\
**Created:** [30 November 2005 12:17 UTC](https://rubytalk.org/t/ruby-weekly-news-21st-27th-november-2005/22871 "2005-11-30T12:17:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Sutherland1](https://avatars.discourse-cdn.com/v4/letter/t/8e7dd6/32.png) [@Tim\_Sutherland1](https://rubytalk.org/u/Tim_Sutherland1)\
**Post date:** [30 November 2005 12:17 UTC](https://rubytalk.org/t/ruby-weekly-news-21st-27th-november-2005/22871/1 "2005-11-30T12:17:31Z")

</div>

[http://www.rubyweeklynews.org/20051127.html](http://www.rubyweeklynews.org/20051127.html)

Ruby Weekly News 21st - 27th November 2005

> **···**
>
> ==========================================
> 
> &nbsp;&nbsp;&nbsp;Ruby Weekly News is a summary of the week's activity on the ruby-talk  
> &nbsp;&nbsp;&nbsp;mailing list / the comp.lang.ruby newsgroup, brought to you by Anonymous.  
> &nbsp;&nbsp;&nbsp;(Thanks whoever it was, this week's newsletter would have been a no-show  
> &nbsp;&nbsp;&nbsp;without you.)
> 
> &nbsp;&nbsp;&nbsp;[Contribute to the next newsletter.]
> 
> # Articles and Announcements
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* The Ruby Grammar Project  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--------------------------
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MenTaLguY announced the creation of The Ruby Grammar Project, the goal  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;of which is to produce a formal specification for Ruby's syntax and an  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ANTLR grammar. His aim is to describe the language as it exists,  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rather than proposing new syntax.
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Distributing Rails Applications (tutorial)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--------------------------------------------
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Erik Veenstra announces a new version of his tutorial, Distributing  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rails Applications, updated for rails 0.14.3.
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Frappr! map for ruby-lang  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---------------------------
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Daniel Cremer has created a Frappr! map for ruby-lang.
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* RailsConf 2006, June 22-25, Chicago IL  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;----------------------------------------
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> Ruby Central, Inc. is pleased to announce the First International  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> Rails Conference ([http://railsconf.org](http://railsconf.org)). The conference will be held  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> in Chicago, IL, USA from June 22-25, 2006.  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> Brought to you by the same organization that has driven RubyConf for  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> five years running, RailsConf is destined to be a one-of-a-kind  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> affair.  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> We already have David Heinemeier Hansson, the creator of Rails as  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> well as Dave Thomas, of The Pragmatic Programmers, lined up as  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> keynote speakers. Watch this space for more, exciting speaker  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> announcements as we get closer to the event.  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> Registration will be limited, so be sure to subscribe to our RSS  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> feed to be notified when registration opens. We're expecting the  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> conference to sell out. Don't let yourself be one of the unlucky  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> ones that misses the cutoff!  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> This is your chance to be part of history. Be there for the FIRST  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> one. Get the t-shirt. 😉
> 
> # User Group News
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Not-yet Phoenix.rb  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--------------------
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;James Britt writes:
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> The 2nd meeting of Refresh Phoenix will be held on Tuesday, December  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> 6, at the Common Ground coffee house in Scottsdale, AZ.  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> Refresh Phoenix is a community of designers and developers working  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> to refresh the creative, technical, and professional culture of  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> Internet developers in the Phoenix metropolitan area.  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> At the first meeting earlier this month there was strong showing of  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> people either currently using Ruby, or looking to get started.  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> Refresh Phoenix isn't specifically about Ruby, but is a means for  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> helping designers and developers organize projects and meetings, and  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> I plan to use this next meeting to reboot the Phoenix Ruby Users  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> Group (AKA Phoenix.rb).  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> Where:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> Common Grounds Coffee House  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> 8658 E Shea Blvd # 1, Scottsdale, AZ  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> (480) 222-4870  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> [http://rubyurl.com/qck](http://rubyurl.com/qck)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> When:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> On Tuesday, December, 6th from 6-8pm, though the semi-official stuff  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> starts around 7pm.  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> More info:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> [http://refreshphoenix.org/](http://refreshphoenix.org/)
> 
> # Quote of the Week
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MenTaLguY on the Ruby Grammar Project:
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> Don't like -\>{} ? Don't look at us. If matz says we get stabby  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> blocks, we get stabby blocks.
> 
> # Threads
> 
> &nbsp;&nbsp;warning: default `to\_a' will be obsolete  
> &nbsp;&nbsp;----------------------------------------
> 
> &nbsp;&nbsp;&nbsp;David Corbin wonders what to use in place of foo.to\_a, now that  
> &nbsp;&nbsp;&nbsp;Object#to\_a is being obsoleted.
> 
> &nbsp;&nbsp;&nbsp;Christian Neukirchen suggests [\*foo].
> 
> &nbsp;&nbsp;&nbsp;James Edward Gray II recommends Array( foo ).
> 
> &nbsp;&nbsp;&nbsp;Either one works identically to the former foo.to\_a, returning the same  
> &nbsp;&nbsp;&nbsp;object if it is already an array.
> 
> &nbsp;&nbsp;&nbsp;Trans belatedly recommends Array[foo] instead, but Markus Koenig points  
> &nbsp;&nbsp;&nbsp;out that his suggestion is equivalent to [foo], not to [\*foo].
> 
> &nbsp;&nbsp;system() on windows  
> &nbsp;&nbsp;-------------------
> 
> &nbsp;&nbsp;&nbsp;system() can behave very differently on Windows; different Rubyists  
> &nbsp;&nbsp;&nbsp;present explanations and workarounds.
> 
> &nbsp;&nbsp;PLATFORM tests  
> &nbsp;&nbsp;--------------
> 
> &nbsp;&nbsp;&nbsp;Kaspar Schiess raises the prospect writing of a library which can be used  
> &nbsp;&nbsp;&nbsp;to test platform strings to determine whether the program is running on  
> &nbsp;&nbsp;&nbsp;some flavor of Windows or Unix, since there are so many possible  
> &nbsp;&nbsp;&nbsp;variations.
> 
> &nbsp;&nbsp;&nbsp;Several other posters point out that it is better to test for specific  
> &nbsp;&nbsp;&nbsp;features and fall back as needed, rather than make assumptions based on  
> &nbsp;&nbsp;&nbsp;the platform string (which can be misleading or ambiguous).
> 
> &nbsp;&nbsp;&nbsp;As Kero succinctly puts it: "Duck platforming"
> 
> &nbsp;&nbsp;problem with .each do  
> &nbsp;&nbsp;---------------------
> 
> &nbsp;&nbsp;&nbsp;Lady Michelle Bhaal writes in concerning a Net::HTTP snippet:
> 
> &nbsp;&nbsp;&nbsp;\> Hiya. The book does things this way, so why doesn't it work for me?  
> &nbsp;&nbsp;&nbsp;\> What's going on?
> 
> &nbsp;&nbsp;&nbsp;Lloyd Zusman replies:
> 
> &nbsp;&nbsp;&nbsp;\> It turns out that Net::Http#get no longer returns a pair of values. It  
> &nbsp;&nbsp;&nbsp;\> has changed between ruby version 1.6 (from the edition of the book that  
> &nbsp;&nbsp;&nbsp;\> you probably have) and 1.8. This is explained in the method's latest  
> &nbsp;&nbsp;&nbsp;\> documentation...  
> &nbsp;&nbsp;&nbsp;\>  
> &nbsp;&nbsp;&nbsp;\> In version 1.1 (ruby 1.6), this method returns a pair of objects, a  
> &nbsp;&nbsp;&nbsp;\> Net::HTTPResponse object and the entity body string. In version 1.2  
> &nbsp;&nbsp;&nbsp;\> (ruby 1.8), this method returns a Net::HTTPResponse object.
> 
> &nbsp;&nbsp;recursion  
> &nbsp;&nbsp;---------
> 
> &nbsp;&nbsp;&nbsp;cyberco writes:
> 
> &nbsp;&nbsp;&nbsp;\> I'm trying to print every combination of three characters from the range  
> &nbsp;&nbsp;&nbsp;\> (a..z). I thought recursion would be the most elegant solution, but that  
> &nbsp;&nbsp;&nbsp;\> got me quite confused 🙂 Any suggestions?
> 
> &nbsp;&nbsp;&nbsp;Erik Terpstra responds:
> 
> ('aaa'..'zzz').to\_a
> 
> &nbsp;&nbsp;&nbsp;\> Or 'a'..'zzz' if you want every combination `up to' 3 characters.
> 
> &nbsp;&nbsp;&nbsp;Not recursive, but certainly elegant.
> 
> &nbsp;&nbsp;&nbsp;Other posters presented a variety of recursive solutions.
> 
> &nbsp;&nbsp;Symbol#inspect bug?  
> &nbsp;&nbsp;-------------------
> 
> &nbsp;&nbsp;&nbsp;Dominik Bathon notices that Symbol#inspect doesn't always return a valid  
> &nbsp;&nbsp;&nbsp;symbol literal. For example:
> 
> irb(main):001:0\> p :"9"  
> :9  
> =\> nil  
> irb(main):002:0\> :9  
> SyntaxError: compile error  
> (irb):2: syntax error  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from (irb):2
> 
> &nbsp;&nbsp;&nbsp;matz reports that this is fixed in Ruby 1.8.4.
> 
> &nbsp;&nbsp;valgrind and embedded ruby  
> &nbsp;&nbsp;--------------------------
> 
> &nbsp;&nbsp;&nbsp;Heiko Leberer notices that Ruby is producing warnings under valgrind when  
> &nbsp;&nbsp;&nbsp;allocation exceeds a certain threshold. He wonders whether he is doing  
> &nbsp;&nbsp;&nbsp;something wrong, or whether this is a Ruby bug.
> 
> &nbsp;&nbsp;&nbsp;The answer appears to be the warnings are a side-effect of the marking  
> &nbsp;&nbsp;&nbsp;process used by Ruby's garbage collector, and are harmless.
> 
> # New Releases
> 
> &nbsp;&nbsp;Turing 0.0.7  
> &nbsp;&nbsp;------------
> 
> &nbsp;&nbsp;&nbsp;Michal announces Turing 0.0.7, an easy-to-use and extensible Captcha  
> &nbsp;&nbsp;&nbsp;implementation. Turing provides not only image-based Captchas, but also a  
> &nbsp;&nbsp;&nbsp;textual Turing::Challenge which should be more friendly to  
> &nbsp;&nbsp;&nbsp;visually-impaired users.
> 
> &nbsp;&nbsp;ruby/audio 0.1.0  
> &nbsp;&nbsp;----------------
> 
> &nbsp;&nbsp;&nbsp;ruby/audio is a convenience wrapper around NArray and libsndfile. It  
> &nbsp;&nbsp;&nbsp;should make audio work in Ruby much, much easier.
> 
> &nbsp;&nbsp;Puppet Beta Two  
> &nbsp;&nbsp;---------------
> 
> &nbsp;&nbsp;&nbsp;Luke Kanies announced the second beta release of Puppet, a Ruby-based  
> &nbsp;&nbsp;&nbsp;server automation framework.
> 
> &nbsp;&nbsp;&nbsp;\> It lets you centrally manage every important aspect of your system using  
> &nbsp;&nbsp;&nbsp;\> a cross-platform specification language that manages all the separate  
> &nbsp;&nbsp;&nbsp;\> elements normally aggregated in different files, like users, cron jobs,  
> &nbsp;&nbsp;&nbsp;\> and hosts, along with obviously discrete elements like packages,  
> &nbsp;&nbsp;&nbsp;\> services, and files.
> 
> &nbsp;&nbsp;&nbsp;The new version boasts significantly expanded functionality and cfengine  
> &nbsp;&nbsp;&nbsp;integration to ease migration.
> 
> &nbsp;&nbsp;Rant 0.5.0  
> &nbsp;&nbsp;----------
> 
> &nbsp;&nbsp;&nbsp;Rant is a flexible build tool written entirely in Ruby, similar to Rake.
> 
> &nbsp;&nbsp;RRobots 0.1  
> &nbsp;&nbsp;-----------
> 
> &nbsp;&nbsp;&nbsp;Following on fron last week's thread, Simon Kröger introduces RRobots, his  
> &nbsp;&nbsp;&nbsp;Ruby variation on the fighting-code-robots theme.
> 
> &nbsp;&nbsp;&nbsp;\> RRobots is a simulation environment for robots, these robots have a  
> &nbsp;&nbsp;&nbsp;\> scanner and a gun, can move forward and backwards and are entirely  
> &nbsp;&nbsp;&nbsp;\> controlled by ruby scripts. All robots are equal (well at the moment,  
> &nbsp;&nbsp;&nbsp;\> maybe this will change) except for the ai.
> 
> &nbsp;&nbsp;xampl 0.1.0  
> &nbsp;&nbsp;-----------
> 
> &nbsp;&nbsp;&nbsp;Xampl is a tool for developing Ruby programs. It facilitates the `M' part  
> &nbsp;&nbsp;&nbsp;of an MVC architecture. It is meant to be very easy to use, supportive of  
> &nbsp;&nbsp;&nbsp;idiomatic Ruby usage, and mostly invisible. It is similar to some parts of  
> &nbsp;&nbsp;&nbsp;J2EE.
> 
> &nbsp;&nbsp;win32-service 0.5.0  
> &nbsp;&nbsp;-------------------
> 
> &nbsp;&nbsp;&nbsp;win32-service is a library for writing Windows services in Ruby, and is  
> &nbsp;&nbsp;&nbsp;part of the Win32Utils project.
> 
> &nbsp;&nbsp;&nbsp;This version introduces a service\_init hook which can be used for  
> &nbsp;&nbsp;&nbsp;long-running initialization tasks which would otherwise cause the service  
> &nbsp;&nbsp;&nbsp;to timeout on startup. is a library for writing Windows services in Ruby,  
> &nbsp;&nbsp;&nbsp;and is part of the Win32Utils project.
> 
> &nbsp;&nbsp;&nbsp;This version introduces a service\_init hook which can be used for  
> &nbsp;&nbsp;&nbsp;long-running initialization tasks which would otherwise cause the service  
> &nbsp;&nbsp;&nbsp;to timeout on startup.
> 
> &nbsp;&nbsp;RWB 0.2.0  
> &nbsp;&nbsp;---------
> 
> &nbsp;&nbsp;&nbsp;Pat Eyler announces the release of Ruby Web Bench 0.2.0. RWB is "a Ruby  
> &nbsp;&nbsp;&nbsp;library designed to let you run performance/load tests against a  
> &nbsp;&nbsp;&nbsp;webserver/website."
