Ruby Weekly News 29th Nov - 5th Dec 2004

T

Tim Sutherland

http://www.rubygarden.org/ruby?RubyNews/2004-11-29

Ruby Weekly News 29th Nov - 5th Dec 2004
----------------------------------------

A summary of the week's activity on the ruby-talk mailing list / the
comp.lang.ruby newsgroup. This summary is brought to you by Tim Sutherland
(TimSuth).

Articles and Announcements
--------------------------

* [Toronto Ruby User Group meeting 2004-12-05]

Mike Stok announced the next meeting of the Toronto Ruby User
Group, on 2004-12-05 and the meeting was later [summarised on the
group's Wiki].

* [Ruby Central, Inc. Codefest Grant Program]

On behalf of Ruby Central, Inc., David A. Black was pleased to
announce the Ruby Codefest Grant Program. This is a mechanism for
supporting "codefests" at which programmers develop a Ruby
library. US$1500 will be awarded, with up to US$500 per group.
[Applications] must be made by January 15 2005 and these will be
judged by a number of well known Rubyists including Matz. James
Britt suggested that a similar scheme for encouraging
documentation writers would be beneficial.

* [Ruby CVS IRC bot, and Ruby CVS RSS feed]

David Ross wrote "[t]hanks to our wonderful Shugo, there is now
RSS feed and a commit bot for the cvs. Each time there is a cvs
commit, the scripts send information to the correct server for
processing. The IRC bot messages the channel each commit for the
Ruby CVS."

* [KDevelop Technote for Ruby]

Ryan Phillips reported that [Issue 3 of KDevelop TechNotes]
(written by Alexander Dymo) talks about Rapid Application
Development (RAD) with Ruby/Qt/KDE. It shows how to use a GUI
created with the KDevelop forms designer in a Ruby program.

* [Ruby Article at Linux Journal]

pat eyler noticed an [article by Ara Howard] in the Linux Journal.
It describes the use of Ruby Queue ([rq]) for Linux Clustering
and includes some of the Ruby code from the implementation.

* RAD with Ruby

An [article on Slashdot] discussed KDevelop's improved Ruby
support.

Threads
-------

Interesting threads this week included:

[[OT] No-nonsense guide to Use Cases?]
--------------------------------------

Lyle Johnson asked for suggestions from the Ruby Community on good books
for learning about Use Cases. With many Ruby users in favour of agile
software development methodologies like Extreme Programming, it's
interesting to see what books they recommend for this subject.

Lyle had seen Alistair Cockburn's book "Writing Effective Use Cases" get
good reviews on Amazon and a number of people agreed that this is a very
good book. Nicholas Van Weerdenburg's response was typical:

"Cockburn is a great writer, and it's a totally awesome book. I quite
like his treatment of use cases- and his writing is on par with Martin
Fowler, the Pragmatic Programmers, and so on. It's one of top 10
software books I've ever read. I've probably bought six or seven copies
for clients I've worked with."

Sascha Ebach:

"The thing is: After you are done with Cockburn you will not have to read
any other books on use cases, if you are after a practical guide. He is
very concise.
...
The feeling I had after I was finished was comparable to the feeling I
had after Pickaxe 2. ("Damn, that is all I ever need to know about that
to get started really well")"

Kloubakov, Yura thought that "Use Case Modeling" by Kurt Bittner and Ian
Spence is also a good book on Use Cases.

[Ruby Graphing/chart libraries?]
--------------------------------

Chris Williams wanted to programatically generate graphs for his [Rails]
website at work. Stoyan Zhekov gave examples using [ruby-gd] (by Ryuichi
Tamura) and [ruby-gdchart] (by Kouhei Sutou). These are wrappers around C
libraries that provide graphing capabilities. Although Chris had stated he
had decided against SVG for the lack of browser support, Sam Goldman still
thought it could still be a good solution and pointed out Sean Russell's
[SVG::Graph].

[Does anyone have benchmark programs for YARV?]
-----------------------------------------------

SASADA Koichi is developing [YARV] (Yet Another Ruby VM). It requires Ruby
1.9 and a small (~50 lines) patch to eval.c. The rest of the Virtual
Machine is just a C extension. Koichi's aim is to develop the fastest VM
for Ruby and maybe have it become the official version. With this in mind
he asked for benchmarks and several were given. The [results of the
benchmarks were posted] and they were impressive, with many benchmarks 5
or 6 times faster under YARV than in the normal Ruby interpreter.

The RubyGarden Wiki has a page VirtualMachineOptions which lists different
VM implementations.

[[SUMMARY] Banned Words (#9)]
-----------------------------

The summary of last week's [Ruby Quiz] was posted. [The problem] was to
assume that there is a mail filter which rejects mail containing "banned
words". Then we want to determine the list of banned words by sending as
few test emails as we can. The mail filter can be represented by a method
"clean?" rather than sending real emails. Some test cases (dictionary of
words and list of banned words) were posted and people compared solutions.

James Edward Gray II wrote in the summary

"Of course, that's just the basics. Wayne Vucenic found a very clever
optimization. If we check a big list and it gets banned, then we split it up
and check the first half, which comes back clean, we know the second have
would be banned and can skip the check. That could save a significant amount
of messages that we would otherwise need to send.
...
Brian Schroeder made a search for the optimal divisor for the word list, when
breaking it into chunks. Brian landed on 3 as the magic number, but there has
been some follow up discussion on Ruby Talk about his findings and if they are
complete."

[[QUIZ] Crosswords (#10)]
-------------------------

James Edward Gray II chose a classic problem from Knuth as this week's
[Ruby Quiz]. Given a simple crossword puzzle specification, output a
layout for it using spaces, '#' and numbers.

[[SOT]Signatures and one liners]
--------------------------------

After comments in another thread about Brian Mitchell's signature, he
began a thread to discuss Ruby code in signatures.

"This all started with my less than perfect Sierpinski Triangle generator:

ruby -e'32.times{|y|print" "*(31-y);(y+1).times{|x|
rint"#{~y&x==0?"A":"."}"};puts}'

I originally build the sig for my /. account but I use it from time to
time on other things. This was greatly improved to:

ruby -le'32.times{|y|print" "*(31-y),(0..y).map{|x|~y&x>0?" .":" A"}}'

from input by the community."

Christian Neukirchen posted an impressive Ruby Blog CGI server using only
126 characters:

puts"Content-type: text/html\n\n<h1>Blog",Dir["*.entry"].sort_by{|f|-File.
mtime(f).to_i}[0,9].map{|f|"<h2>#{IO.read f}<hr>"}

gabriele renzi posted a four-line Wiki in response.

New Releases
------------

* [Lafcadio 0.5.2, 0.4.3]

Francis Hwang released both a new development version (0.5.2) and
stable branch (0.4.3) for [Lafcadio], an object-relational mapping
library that works with MySQL.

* [Ruby-MemCache 0.0.2]

Michael Granger announced the second release of [Ruby-MemCache], a
Ruby client for memcached (a distributed memory cache system). A
couple of bugs were fixed.

* [Net::SFTP 0.5.0]

Jamis Buck's pure-Ruby implementation of the SFTP client protocol
was updated. He also gave some examples showing how to use the
library.

* [Pimki 1.1]

Assaph Mehr fixed some bugs in [Pimki], a PIM (personal
information manager) based on Instiki.

* [DBC for C 1.3.0]

Charles Mills released a new version of [Design By Contract for
C]. This is a tool that generates contract-testing code for C
programs based off specially-formatted comments in C source. It is
now faster and has better GCC support.

* [DamageControl - Continuous Integration Server in Ruby]

aslak hellesoy made an "unofficial" release of [DamageControl] a
"continuous integration server" developed by several people
including aslak. "In case you are unfamiliar with Continuous
Integration Servers - it is a program that detects when developers
check in files, then builds the software and finally communicates
the results of the build to developers via email, irc or other
channels. It lets teams deal with problems in the code early."

* [uname ruby library]

Stu wrote an extension that provides uname support for *nix and
win32 systems in order to "scratch an itch" that he had. Dan
pointed out the library [sys-uname] that achieves the same thing.
 
W

why the lucky stiff

druby://whytheluckystiff.net:6503

Duck Images Weekly News 29th Nov - 5th Dec 2004
-----------------------------------------------

You are a busy and demanding person. DIWN is here to sift through
all the cruft and get straight to the ducks. Now, sit down.

Articles and Announcements
--------------------------

* [DIE Con '04 Miami, Dec 19th - Dec 20th]
Don't miss this year's Duck Imagery Enthusiast Convention at the
Hotel Radisson in Miami! Talk about the perfect place to shake
hands for hours with other duck guys! Feel the unity that only
comes from drawing ducks in very tight quarters! Share a room
with another guy and stay up late talking about beak design!

Come on out. Seriously. This year's keynote will be delivered
by notable duck imagerist Florian Frank. "When There's Just No
More Ducks To Draw -- A Non-Situation."

* [Just Out From Simon & Schuster: Make a Duck, Make Someone's Day.]
What great timing for the holiday season! This new hardcover
edition explores the therapeutic assistance provided to the world
by graphic duck artists.

Do you think it is a coincidence that every time a new duck is
artfully rendered in text, a new batch of septuplets is delivered?

Do you think it is a coincidence that every time a duck is
discussed via nntp, an aged billionaire in excruciating pain
takes his last breath, leaving his assets to a host of orphans
and their ducks?

AND DO YOU EVER WONDER WHY YOU HAVE THE GRACE OF A GAZELLE?? COME
ON, ONE GUESS!

* [New .duck protocol]
Duck images will now no longer be accepted in traditional image
compression formats. .duck offers chunked, peer-to-peer downloads
and enhanced metadata. Hopefully this will solve future problems
with unlicensed art ducks.

* [Duck Image Legend Powerhouse Dies at 74]
Sadfully, the Duck Allegaince declares and corroborates the
passing of Jack M. Stevenhands. He drew that famous duck with
the leaf on its head.

Threads
-------

Interesting threads this week included:

[Duck Images]
Dave Burt mounted an effort to expose possible duck mascots
for the Ruby programming languages. No one said much in response,
but many ducks were drawn.

One of his ducks was mistaken for a squirrel. And it was also
mistaken for a rabbit. ([Ed. Note] -- Who draws rabbits and
squirrels anymore??) t. onoma offered a name: Type. He also
added bifocals to the duck. (However, in his depictions, you
can't really see the line across the lenses that indicates the
top of the more heavily magnified lens. A small thing, yet
certainly worth mentioning in a small newsletter.)

Michael DeHaan and Pat Eyler were there too. Can't remember
exactly what they did. Drew ducks I guess.

Oh, but, of course, the Grand Wizard Florian Frank was there
to show everyone up. And believe me, people were completely
mortified by such an exquisite duck. It quacked AND tread water.
In real-time. His code was sort of obfuscated, but I don't
think there was any satellite linkup going on. Who knows how
he did it.

Personally, I didn't think we'd advanced that much as a culture.
I was pretty skeptical of mankind. But now. Oh, now my hope
is unabashed. It's a huge universe, kids. And anything is
possible. That is the message of DIE.

Qua-bye!!
 
F

Florian Gross

why said:
druby://whytheluckystiff.net:6503

Duck Images Weekly News 29th Nov - 5th Dec 2004
-----------------------------------------------

Good stuff. Thanks a lot. :)
 
M

Michael DeHaan

Quacktastic.

And to imagine some languages lust after tempermental dromedaries and
legless reptiles.

And Squeak chose a Mouse or something. What was up with that? They
could have been the first duck, with a rubber ducky, no less!

--Michael

druby://whytheluckystiff.net:6503

Duck Images Weekly News 29th Nov - 5th Dec 2004
-----------------------------------------------

You are a busy and demanding person. DIWN is here to sift through
all the cruft and get straight to the ducks. Now, sit down.

Articles and Announcements
--------------------------

* [DIE Con '04 Miami, Dec 19th - Dec 20th]
Don't miss this year's Duck Imagery Enthusiast Convention at the
Hotel Radisson in Miami! Talk about the perfect place to shake
hands for hours with other duck guys! Feel the unity that only
comes from drawing ducks in very tight quarters! Share a room
with another guy and stay up late talking about beak design!

Come on out. Seriously. This year's keynote will be delivered
by notable duck imagerist Florian Frank. "When There's Just No
More Ducks To Draw -- A Non-Situation."

* [Just Out From Simon & Schuster: Make a Duck, Make Someone's Day.]
What great timing for the holiday season! This new hardcover
edition explores the therapeutic assistance provided to the world
by graphic duck artists.

Do you think it is a coincidence that every time a new duck is
artfully rendered in text, a new batch of septuplets is delivered?

Do you think it is a coincidence that every time a duck is
discussed via nntp, an aged billionaire in excruciating pain
takes his last breath, leaving his assets to a host of orphans
and their ducks?

AND DO YOU EVER WONDER WHY YOU HAVE THE GRACE OF A GAZELLE?? COME
ON, ONE GUESS!

* [New .duck protocol]
Duck images will now no longer be accepted in traditional image
compression formats. .duck offers chunked, peer-to-peer downloads
and enhanced metadata. Hopefully this will solve future problems
with unlicensed art ducks.

* [Duck Image Legend Powerhouse Dies at 74]
Sadfully, the Duck Allegaince declares and corroborates the
passing of Jack M. Stevenhands. He drew that famous duck with
the leaf on its head.

Threads
-------

Interesting threads this week included:

[Duck Images]
Dave Burt mounted an effort to expose possible duck mascots
for the Ruby programming languages. No one said much in response,
but many ducks were drawn.

One of his ducks was mistaken for a squirrel. And it was also
mistaken for a rabbit. ([Ed. Note] -- Who draws rabbits and
squirrels anymore??) t. onoma offered a name: Type. He also
added bifocals to the duck. (However, in his depictions, you
can't really see the line across the lenses that indicates the
top of the more heavily magnified lens. A small thing, yet
certainly worth mentioning in a small newsletter.)

Michael DeHaan and Pat Eyler were there too. Can't remember
exactly what they did. Drew ducks I guess.

Oh, but, of course, the Grand Wizard Florian Frank was there
to show everyone up. And believe me, people were completely
mortified by such an exquisite duck. It quacked AND tread water.
In real-time. His code was sort of obfuscated, but I don't
think there was any satellite linkup going on. Who knows how
he did it.

Personally, I didn't think we'd advanced that much as a culture.
I was pretty skeptical of mankind. But now. Oh, now my hope
is unabashed. It's a huge universe, kids. And anything is
possible. That is the message of DIE.

Qua-bye!!
 
G

Gavin Sinclair

Tim Sutherland said:
http://www.rubygarden.org/ruby?RubyNews/2004-11-29

Ruby Weekly News 29th Nov - 5th Dec 2004
[[SOT]Signatures and one liners]
I think Florian's duck sig needs mentioning. From [Duck images]:
s="\033[2J\033[0;0H _\n Quack! >(')____,\n (`
=~~/\nv^v^v^v^v^`---'v^v^v^v^";(1..(1/0.0)).each{|i|s[23,6]=(i%2)==0?"Quack!":"
"*6;s.tr!('>>v^^v<','<^vv^>');puts s;sleep 1}

Sigh... that good is it? I wish it worked on Cygwin...

Gavin
 
B

Brian Schröder

Tim Sutherland said:
http://www.rubygarden.org/ruby?RubyNews/2004-11-29

Ruby Weekly News 29th Nov - 5th Dec 2004
[[SOT]Signatures and one liners]
I think Florian's duck sig needs mentioning. From [Duck images]:
s="\033[2J\033[0;0H _\n Quack! >(')____,\n (`
=~~/\nv^v^v^v^v^`---'v^v^v^v^";(1..(1/0.0)).each{|i|s[23,6]=(i%2)==0?"Quac
k!":"
"*6;s.tr!('>>v^^v<','<^vv^>');puts s;sleep 1}

Sigh... that good is it? I wish it worked on Cygwin...

Gavin

Just scroll up and down eight lines at a time in one second intervals ;)


_
<(')____,
(` =~~/
^v^v^v^v^v`---'^v^v^v^v



_
Quack! >(')____,
(` =~~/
v^v^v^v^v^`---'v^v^v^v^



_
<(')____,
(` =~~/
^v^v^v^v^v`---'^v^v^v^v



_
Quack! >(')____,
(` =~~/
v^v^v^v^v^`---'v^v^v^v^



_
<(')____,
(` =~~/
^v^v^v^v^v`---'^v^v^v^v



_
Quack! >(')____,
(` =~~/
v^v^v^v^v^`---'v^v^v^v^



_
<(')____,
(` =~~/
^v^v^v^v^v`---'^v^v^v^v



_
Quack! >(')____,
(` =~~/
v^v^v^v^v^`---'v^v^v^v^
 
M

Mark Hubbart

Thanks Why that gave me a much needed smile!

Me too :) And I also liked the sponsored links in Gmail's sidebar:

Sponsored Links

Rubber Ducky Factory
Over 400 Styles, Free Shipping Wholesale Price, Custom Imprint

Rubber Ducks
Compare prices on Rubber Ducks at Yahoo! Shopping

Duck Race - Entenrennen
Seit 15 Jahren erfolgreicher Anbieter von Entenrennen.

cheers,
Mark
 
J

Joel VanderWerf

Mark said:
Me too :) And I also liked the sponsored links in Gmail's sidebar:

Sponsored Links

Rubber Ducky Factory
Over 400 Styles, Free Shipping Wholesale Price, Custom Imprint

Rubber Ducks
Compare prices on Rubber Ducks at Yahoo! Shopping

Duck Race - Entenrennen
Seit 15 Jahren erfolgreicher Anbieter von Entenrennen.

cheers,
Mark

Gee, I almost regret not having a side order of ads served up with the
tasty /canard du jour/ in my inbox.
 
H

Henrik Horneber

Brian Schröder wrote:

Just scroll up and down eight lines at a time in one second intervals ;)


Haha, thanks, that really saved my day! :)

Coworkers are still wondering why I was laughing... oh well, I seem to
be easily amused ;)

regards,
Henrik
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top