Ruby Weekly News 26th June - 2nd July 2006

Use the link above for a nicer version of this newsletter that’s
for the web, including links to threads and other sites. You can also
subscribe to a newsletter-only mailing list, or to RSS/Atom feeds.

Ruby Weekly News 26th June - 2nd July 2006

Ruby Weekly News is a summary of the week’s activity on the
ruby-talk mailing list / the comp.lang.ruby newsgroup / Ruby forum,
brought to you by Tim S…

[ Contribute to the next newsletter ]

Articles and Announcements

 * European Rails Conf -- talk proposals now being accepted 


   David A. Black: "We're now accepting proposals for talks at the
   European Rails Conference, to be held September 14-15 in London.
   Accepted speakers will get free admission to the conference."

   Proposals must be submitted by July 21, 2006.

   "David, for Ruby Central, Inc. and Skills Matter, Ltd., 

of the 2006 European Rails Conference".

User Group News

 * European Rubyists (ruby-talk)

   Austin Z. is taking a vacation in Europe soon, and would 

like to
meet up with European Rubyists.

 * Munich.rb -- User Group Meeting in Munich, Germany (ruby-talk)

   Urban H.'s trying to organise a meeting in Munich on July 

15th or
16th, in response to Austin’s message that he’d be in Munich some
in July. Is anyone else interested?

 * Ruby Ireland - Irish ruby and rails user group (comp.lang.ruby)

   Aidan F. has formed a mailing list for Irish Ruby users who are 

on forming Ruby and/or Rails groups.

 * Northern Virginia Ruby user's group meeting 6/28/06 (ruby-talk)

   The NovaRUG group (Northern Virginia, U.S.) met on the 28th June. 

next meeting is on July 19.


RAA and web services? (ruby-talk)

Daniel B.: “Does the RAA have any sort of web service backend? I
hints that it might be added at some point but nothing definite.”

There were not yet any replies.

Iconv and incompatible encodings (ruby-talk)

Alex Y. wanted to “lossily convert between partially incompatible
encodings”, such as from UTF-8 to 7-bit ASCII.

Paul B. said that the iconv library has “//IGNORE” and
options for ignoring or transliterating unconvertable characters. He
the example of converting “caffè” into “caff” or “caff`e”, and also
how to turn it into “caffe” with the Unicode library.

Why is there no Smalltalk-like IDE for Ruby? (comp.lang.ruby)

See also the same topic in ruby-talk.

Joseph M.: “I shout my question to the entire Ruby + Smalltalk
community: Smalltalk has had amazing IDEs for decades, why not Ruby?
Smalltalkers, Ruby needs your help!”

There were many replies.

The Smalltalk language itself has a high level of integration with
development environment, rather than the IDE being bolted-on as an

In Ruby (as with most languages) the entire world' of the program is re-created each time it is run, whereas a Smalltalk program is image-based (in most implementations), and evolves over time, preserving its state even when it isrestarted’.

So, for example, in order for a Ruby IDE to work out what methods a
has, it must perform complex analysis of the static source code text
since methods may be conditionally defined at runtime, this is
to do perfectly in all cases). In Smalltalk, the system knows what
the class has: it just needs to look at its current state.

Some advantages of Ruby’s `re-create world from plain-text sources
and in general having a separation between development environment
language runtime, were also put forward.

m17n and unicode (ruby-talk)

The difference between m17n and unicode, as described by Logan

Unicode says, lets make ONE universal character set and map all our
strings into it.

m17n says not every language is the same, not every concept of a
character is the same, let’s support all the languages and
sets we can.

Ruby’s m17n will have support for Unicode, but it will be an option
an encoding, not the only encoding.

Summer of code: ruby-breakpoint GUI client (ruby-talk)

Florian G.’ Google Summer of Code project (ruby-breakpoint
improvements) was discussed, particularly regarding a GUI vs web
for visualising Ruby objects.

Florian: “I still think that a real GUI client will be able to do
that are hard to do with a web one, though, so I’ll focus on the GUI

Rational about the Gem package format? (ruby-talk)

Why is the gem package format a tarball containing files
“data.tar.gz” and
“metadata.gz” (plus now two corresponding “.sig” files)?

“Why not just have the metadata stored in with the data and not worry
about double layers?”, asked Trans.

Mauricio F. explained that to extract a single file from a
(gzipped tarball), you must first decompress the entire file, so if
was necessary then extracting the meta-data would be slow and use a
lot of
memory. (Although he noted that RubyGems currently decompresses the
file into memory anyway.)

The format is also easy to extend - simply add more files to the
layer. As well, the “data.tar.gz” can be constructed before
enabling the latter to easily store a cryptographic digest of the

Regex Comparison Causing Massive Memory Usage (ruby-talk)

A regular expression in Charset.is_utf8(str) from the SOAP library
examined after Mike H. reported that passing in a 200 KB string
resulted in memory usage exceeding 2 GB.

Xavier N. said that the regex could potentially cause a lot of
unnecessary backtracking, and Florian G. proposed a change to
the problem.

QInputDialog syntax (ruby-talk)

Graham S. was having trouble converting between the C++ syntax
used in
the Qt documentation, and what is needed for QtRuby.
(Qt is a multi-platform GUI toolkit, used most prominently in KDE.)

Ed Borasky highly recommended the “Rapid GUI Development with QtRuby”
PDF from the Pragmatic Bookshelf. It’s written by Caleb T. and
US$8.50 (it’s a “Friday” book).

Pau Garcia i Quiles seconded the recommendation, and also said
“C++ GUI Programming with Qt3” is a good book if you’re going to be
doing serious Qt development (even though it is C++ oriented).

Your editor stopped halfway through writing this summary to buy the
and it does indeed look like a nice introduction :slight_smile:

Time To Pick the Mongrel BUGS Mascot! (ruby-talk)

Zed S. (the author of the Mongrel Ruby web application server) was
a page of “ugly ugly ugly dogs” by Bradley Taylor, and he just had to
one of them for the Mongrel BUGS mascot (replacing the current

The group sent in their favourite choices. “I like MISS ELLIE” was
James Edward G. II had to say.

RedLetter Ruby Journal (ruby-talk)

The “RedLetter Ruby Journal” faltered without any publications, as
editor Sam Flywheel was apparently unable to attract enough writers.

Several people complained that they had not yet received refunds on
subscriptions despite requesting them, and Pat Eyler noticed Sam had
announced “Tabula: The Journal of MySQL Development”.

PDF::Writer and i18n (comp.lang.ruby)

Pawel Chmielewski asked about representing non-English characters
PDF::Writer, as the library didn’t appear to support UTF-8.

Austin Z., the library’s author, said that PDF::Writer will
support UTF-8 directly, because its not in the PDF standard.

The default character set used by PDF::Writer is similar to Latin-1,
additional characters are supported via “encoding character maps”.
This is
briefly described in the PDF::Writer manual, and the documentation
will be
expanded in the next release.

creating graphical application with video (ruby-talk)

Geert F.: “I have to teach my sister how to create an application
can show pictures and small video files on a windows-based system and
some user input in return. Being able to work fullscreen is optional,
would be nice.”

Ilmari H. suggested Ruby/SDL or Ruby-GNOME2 + gstreamer.

Geert managed to get streaming video working with Ruby/SDL, using the
“smpeg” library, but felt its performance wasn’t very good. He plans
try SDL with “ffmpeg” instead (and hopes there is an existing Ruby
wrapping SDL/ffmpeg).

“The good thing is that I could compile both SDL and ffmpeg using
under Windows.

C-Style Ints (#85) (ruby-talk)

Ruby Q. this week is by Aaron P…

Write a class that can represent a signed or unsigned number with
arbitrary number of bits. This class should support all bitwise
operations ( & ^ ~ | ), basic math operations ( + - / * ), and
comparison operators.

New Releases

RubyScript2Exe 0.4.3 (ruby-talk)

Erik V. made a new RubyScript2Exe release, with improved
support, and followed it up with version 0.4.4 to fix a bug that was

“RubyScript2Exe transforms your Ruby script into a standalone,
Windows, Linux or Mac OS X (Darwin) executable.”

id3lib-ruby 0.4.0 (Unicode fixes) (ruby-talk)

id3lib-ruby by Robin S. now works properly with Unicode frames,
some methods in the API were renamed.

KirbyBase 2.6 (ruby-talk)

Jamey C.: “I would like to announce version 2.6 of KirbyBase, a
pure-Ruby database management system that stores its data in

It no longer over-rides NilClass#method_missing.

na_str-0.0.0 : combining narray with mmap for persistant numerical


na_str is a new library that will intrigue users of NArray (a library
“fast calculation and easy manipulation of large numerical arrays
into the
Ruby language”).

Written by Ara. T. Howard, it provides a way of sharing NArray data
other Ruby objects. An example library, na_map, combines NArray and
so that data can be modified “with no explicit io on the users part
partial change[s] to numerical grids can occur very quickly and

Interestingly, na_str uses rb_str_new4() internally. This creates a
that shares an internal memory region with another.

Mongrel Needs Debuggers (ruby-talk)

Zed S. needs people to test the pre-release.

See also Mongrel Pre-Release-RailsConf, which included a
to try and “reap dead threads as soon as possible,” especially when
are too many open files.

For SciTE Users: Snippets (ruby-talk)

Mitchell Foral created a Lua module for SciTE that mimicks the
editor’s “snippet” system.

From the documentation:

Basically, snippets are pieces of text inserted into a document,
but can
execute shell code at run-time, contain placeholders for additional
information to be added, and make simple transforms on that
This is much more powerful than SciTE’s abbreviation expansion

The website includes screencasts.

RMagick 1.13.0 (comp.lang.ruby)

RMagick, the Ruby library for the ImageMagick and GraphicsMagick
image-manipulation libraries, had some bugs fixed and features added,
including Image#auto_orient to automatically orient an image from its

If you’re using a web hosting service and it has a very old version
RMagick installed, please consider asking your service provider to
upgrade. I’ve fixed several memory leaks in recent releases so if
running into memory usage problems with your web app upgrading
really pay off.

fUnit-0.1.3 - A Fortran Unit Testing Framework (comp.lang.ruby)

Bil K. posted “funit”, a Fortran unit testing framework (where you
tests in Ruby).

Radiant CMS 0.5 - Grindstone (ruby-talk)

John W. Long quietly set loose the first official release of Radiant,
no-fluff content management system designed for small teams.”

Ruby Reports 0.4.11 (ruby-talk)

Ruport 0.4.11, the “Mr. Sparkle” Edition, was released by Gregory
This is a cleanup and bugfix release, and also has a couple of new

In other news, Dudley F. has joined the project as a developer,
documentation will soon be written (including a Ruport cookbook), and
developers now hang out on the #ruport IRC channel on freenode.

RubyGems 0.9.0 Release (ruby-talk)

Jim W. announced the “much anticipated” release of RubyGems

This release includes a number of new features and bug fixes. The
one change is that we can now download the gem index incrementally.
will greatly speed up the gem command when only a few gems are out

Support for authenticating proxies and improved integration with
documentation tools were also added.

mkrf 0.1.0 released (ruby-talk)

Kevin C.'s mkrf had its first release. mkrf is similar in purpose
mkmf (and mkmf2), but creates Rakefiles instead of Makefiles (it is
for building Ruby C extensions).

Asked how it compares with mkmf2, he enumerated advantages of using
Rakefiles over Makefiles (gem packaging, rdoc generation built in
and also said he was keeping the code clean so it could be
into RubyGems at some point.

Ruby-GNOME2-0.15.0 (ruby-talk)

Masao M. released Ruby-GNOME2-0.15.0. It now includes Ruby
to VTE (terminal emulator widget), Poppler (PDF rendering library),
fixes and other improvements.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs