[#140645] Pimki 1.7 — "Assaph Mehr" <assaph@...>
Hi All,
[#140649] Ruby-GetText-Package-0.9.0 — Masao Mutoh <mutoh@...>
Hi,
[#140653] Newbie Question About files — Jeff Singer <jsinger@...>
I am still fairly new to ruby, and have been working on a fairly small
[#140660] collections with values of fixed classes/lengths — Eric Mahurin <eric_mahurin@...>
Anybody know of any collection (i.e. Array/Hash) classes where
[#140667] Thinking of creating a small mini-language-interpreter using Ruby — Glenn Smith <glenn.ruby@...>
Always something I've wanted to write - an interpreter of my own. Now
On 5/2/05, Robert Klemme <bob.news@gmx.net> wrote:
Sounds like I need to craft a "Richard Stallman" style beard then!!
[#140686] Stats comp.lang.ruby (last 7 days) — Balwinder Singh Dheeman <bsd.SANSPAM@...>
Stats comp.lang.ruby (last 7 days)
On 5/1/05, Balwinder Singh Dheeman <bsd.SANSPAM@cto.homelinux.net> wrote:
[#140697] Re: Inverting a regular expression? — "Harry Ohlsen" <Harry_Ohlsen@...>
> From: Eric Mahurin [mailto:eric_mahurin@yahoo.com]
Well, if you want an academic answer... :)
[#140700] Consequences of not calling ruby_finalize()? — ptkwt@... (Phil Tomson)
Instead of embedding Ruby into a C program with a main() function I want
>>>>> "P" == Phil Tomson <ptkwt@aracnet.com> writes:
On Mon, 2 May 2005, ts wrote:
[#140714] Ruby, Rails and now og — "Andrew Ballantine" <andrew.ballantine@...>
Hi,
Andrew Ballantine wrote:
> What I like about this is I can write and evolve my application
David,
> During the development phase you can alter your
[#140735] Re: collections with values of fixed classes/lengths — Eric Mahurin <eric_mahurin@...>
> > I still think a more general extension would be nice. And
[#140750] enum in ruby ? — Andreas Habel <mail@...>
Hi,
[#140774] MMU-less systems and vfork. — Brian Mitchell <binary42@...>
I have an upcoming project that will be on an MMU-less platform
On 5/3/05, Brian Mitchell <binary42@gmail.com> wrote:
[#140775] "Bounty" approach for small pieces of code? — Hal Fulton <hal9000@...>
I seem to recall there was some discussion here of
[#140808] Re: "Bounty" approach for small pieces of code? — Hal Fulton <hal9000@...>
Molitor, Stephen L wrote:
On 5/2/05, Hal Fulton <hal9000@hypermetrics.com> wrote:
On 5/2/05, Richard Lyman <lymans@gmail.com> wrote:
On 5/2/05, Joe Van Dyk <joevandyk@gmail.com> wrote:
[#140814] KirbyBase 2.2 — Jamey Cribbs <jcribbs@...>
I would like to announce version 2.2 of KirbyBase, a simple, pure-Ruby
* Jamey Cribbs wrote:
[#140824] ruby executable — Derek Haskin <DHaskin@...>
Derek Haskin wrote:
[#140844] Has anyone used Ruby for validated FDA applications? — Simon Crase <simon_crase@...>
I'm considering using Ruby for a project for a medical application; the
[#140856] Bug Tracker — Andy Stone <xsltguru@...>
Hello all,
Andy Stone wrote:
In article <1115131538.406428.180220@g14g2000cwa.googlegroups.com>,
[#140883] [Solution] Barrel of monkeys — Brian Schrer <ruby.brian@...>
Hello Group,
[#140886] Re: FXRuby 1.2.6 using rubygems — Daniel Sperl <redgeREM0VETHIS@...>
Thanks for your quick supply!!!
[#140888] I rock. — Eric Hodel <drbrain@...7.net>
Yup, rb_intern needs to be cached. Yup, the __self thing is wrong (it
In article <dd6604df17395617d9dd5740c057200a@segment7.net>,
On 03 May 2005, at 11:09, Phil Tomson wrote:
On 5/4/05, Eric Hodel <drbrain@segment7.net> wrote:
[#140890] un_metaclass — "Ara.T.Howard" <Ara.T.Howard@...>
On 5/3/05, Ara.T.Howard <Ara.T.Howard@noaa.gov> wrote:
On Wed, 4 May 2005, Mark Hubbart wrote:
[#140910] Typo-checking instead of static typing — Ben Giddings <bg-rubytalk@...>
Once again, static typing reared its head on the mailing list, and once
On 03 May 2005, at 12:27, Ben Giddings wrote:
Ben Giddings wrote:
On 5/4/05, Jon A. Lambert <jlsysinc@alltel.net> wrote:
On Wednesday 04 May 2005 12:21, Joe Van Dyk wrote:
Hi,
On Thu, May 05, 2005 at 03:49:30AM +0900, Ben Giddings wrote:
[#140915] Question about unit tests — "Vincent Foley" <vfoley@...>
Hello all,
[#140926] traits-0.0.0 — "Ara.T.Howard" <Ara.T.Howard@...>
[#140928] Re: [ANN] traits-0.0.0 — "Berger, Daniel" <Daniel.Berger@...>
> -----Original Message-----
On Wed, 4 May 2005, Berger, Daniel wrote:
Ara.T.Howard@noaa.gov wrote:
On Wed, 4 May 2005, Joel VanderWerf wrote:
[#140943] mapping an array to a hash? — Nick Woolley <nickwoolley@...>
Hi,
[#140949] Any Rubyists in Oslo? — Chris Pine <glyconis@...>
Hello all,
[#140953] Re: Ruby, Rails and now og — "Molitor, Stephen L" <Stephen.L.Molitor@...>
>> You write a few methods, add a few columns, write some more methods,
[#140979] C Extensions using MingW (invalid address LoadError) — "Kian Wright" <kianw@...>
Hi
[#140987] Debian: coexistence of debs and gems? — Michael Schuerig <michael@...>
[#140997] Re: Inverting a regular expression? — "Harry Ohlsen" <Harry_Ohlsen@...>
> From: Dan Doel [mailto:dolio@case.edu]
[#141010] Ruby Weekly News delayed — timsuth@... (Tim Sutherland)
The Ruby Weekly News for last week has been delayed. (The edition for
[#141015] writing to a file with gsub! — Ralf Mler <r_mueller@...>
Hi,
Ralf Mler wrote:
On Wed, 4 May 2005 22:30:07 +0900
On May 4, 2005, at 8:59 AM, Ralf Mler wrote:
[#141023] Object#inside_metaclass? — "Ara.T.Howard" <Ara.T.Howard@...>
Ara.T.Howard wrote:
On 5/4/05, Ilias Lazaridis <ilias@lazaridis.com> wrote:
Ara.T.Howard <Ara.T.Howard@noaa.gov> wrote:
On Wed, 4 May 2005, Martin DeMello wrote:
Ara.T.Howard@noaa.gov schrieb:
On Thu, 5 May 2005, Christoph wrote:
[Ara.T.Howard@noaa.gov, 2005-05-04 20.44 CEST]
On Thu, 5 May 2005, Carlos wrote:
On Wed, 4 May 2005, Ara.T.Howard wrote:
David A. Black wrote:
Hi,
Yukihiro Matsumoto wrote:
In message "Re: [RCR] Object#inside_metaclass?"
Yukihiro Matsumoto wrote:
Yukihiro Matsumoto wrote:
Hi --
[#141053] Bug or on purpose? — Joao Pedrosa <joaopedrosa@...>
Hi,
On 5/4/05, Joao Pedrosa <joaopedrosa@gmail.com> wrote:
On 5/4/05, Austin Ziegler <halostatue@gmail.com> wrote:
[#141057] Fixnum's binary representation — camsight@...
Hi, people!
[#141117] traits (the other ones) vs. mixins — "Ara.T.Howard" <Ara.T.Howard@...>
Ara.T.Howard wrote:
[#141125] object reference handle (like perl's reference to scalar) — Eric Mahurin <eric_mahurin@...>
In ruby, is there a way to get a handle of an object reference?
[#141143] Re: object reference handle (like perl's reference to scalar) — Eric Mahurin <eric_mahurin@...>
> > In ruby, is there a way to get a handle of an object
[#141149] rails+ajax slowness in IE — "Sam Williams" <samuel.williams@...>
I'm trying out a very simple bit of Ajax using the Rails helper. While
[#141154] Class#singleton_of — "Ara.T.Howard" <Ara.T.Howard@...>
[#141163] Float to Rational — Luke Galea <lgalea@...>
Hi All,
Luke Galea wrote:
Jannis Harder wrote:
[#141165] Ruby Editor Plugin for jEdit 0.6 - method completion release — "Rob ." <rob.02004@...>
Version 0.6 of jEdit's Ruby Editor Plugin has been released and is
-----BEGIN PGP SIGNED MESSAGE-----
Alexandru Popescu wrote:> Rob . said:> > Version 0.6 of jEdit's Ruby Editor Plugin has been released and is> > available for download!> >> > http://www.jedit.org/ruby/> > Great job Rob!Mulmesc!
On Thu, 2005-05-05 at 18:38 +0900, Rob . wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Alex, I don't get an exception in this case, but I see what you mean.
I am also getting an exception ...
Belorion a 馗rit :
[#141167] How to interface with an API written in C++? — Derek Haskin <DHaskin@...>
Derek Haskin, May 5:
Piers Harding, May 5:
[#141178] Tkmenubar and checkbuttons — Joe Van Dyk <joevandyk@...>
I have this snippet as part of my Tk menu bar spec:
[#141180] Rails developmnet environment on Windows — Igor Anic <ianic@4dva.hr>
Just started my first Rails project.
[#141196] Whats so different about a Hash? — Andrew Walrond <andrew@...>
Consider:
On 05/05/05, Andrew Walrond <andrew@walrond.org> wrote:
Hi Brian,
Andrew Walrond wrote:
On Thursday 05 May 2005 13:54, Florian Growrote:
Andrew Walrond wrote:
On Thursday 05 May 2005 15:41, Florian Growrote:
[#141208] Re: Fwd: Re: Whats so different about a Hash? — Andrew Walrond <andrew@...>
On Thursday 05 May 2005 13:57, ts wrote:
[#141245] ruby/irb within texmacs — Thomas Adam <thomas_adam16@...>
Hello all -
[#141249] Ruby Editor Plugin for jEdit 0.6 installation question — Brian Buckley <briankbuckley@...>
Hi all,
[#141276] Transaction::Simple 1.3.0 — Austin Ziegler <halostatue@...>
I am pleased to announce the release of Transaction::Simple 1.3.0.
[#141284] Re: object reference handle (like perl's reference to scalar) — Eric Mahurin <eric_mahurin@...>
> > The original intent was to have a way to modify these
To me, this looks more Rubyish. Is there some benefit I'm missing in
[#141290] Re: [ANN] Transaction::Simple 1.3.0 — "John Lam" <jlam@...>
Yes - what you're saying does make sense.
[#141299] another Tk question — Joe Van Dyk <joevandyk@...>
In Tk, what's the best way to show a large table of data that gets
From: Joe Van Dyk <joevandyk@gmail.com>
On 5/5/05, Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> wrote:
From: Joe Van Dyk <joevandyk@gmail.com>
On 5/8/05, Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> wrote:
On 5/8/05, Joe Van Dyk <joevandyk@gmail.com> wrote:
On 5/9/05, Joe Van Dyk <joevandyk@gmail.com> wrote:
[#141304] .. and ... aren't operators, maybe they should be? — Logan Capaldo <logancapaldo@...>
I was just wondering if maybe the range construction syntax could be
[#141307] String Manipulation Nuby Question — Chris Roos <chris@...>
I have a Person with title, forename and surname (all of which are
"#{title} #{forename} #{surname}".strip
[#141311] Ruby Editor Plugin for jEdit 0.6.1 - method completion release II — "Rob ." <rob.02004@...>
Version 0.6.1 of jEdit's Ruby Editor Plugin has been released and is
Karl von Laudermann wrote:
[#141321] Ruby-tk question — Joe Van Dyk <joevandyk@...>
What's the easiest way to rotate a Tk Canvas Polygon?
From: Joe Van Dyk <joevandyk@gmail.com>
On 5/5/05, Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> wrote:
From: Joe Van Dyk <joevandyk@gmail.com>
[#141334] RCR 303: nil should accept missing methods and return nil — John Carter <john.carter@...>
A very simple and generic way of improving the reliability of Ruby
On 5/6/05, John Carter <john.carter@tait.co.nz> wrote:
Luke Graham wrote:
On Fri, 6 May 2005, Hal Fulton wrote:
On 5/5/05, John Carter <john.carter@tait.co.nz> wrote:
On Friday 06 May 2005 12:07 am, Austin Ziegler wrote:
On 5/6/05, Jim Weirich <jim@weirichhouse.org> wrote:
Hi,
On Fri, 6 May 2005, Yukihiro Matsumoto wrote:
On Fri, 6 May 2005, Luke Graham wrote:
On Fri, 6 May 2005, Alexey Verkhovsky wrote:
Hi --
On Sat, 07 May 2005 02:28:18 +0900, Austin Ziegler wrote:
On 5/6/05, Cyent <cyent@xtra.co.nz> wrote:
[#141349] What sound does no duck make? — John Carter <john.carter@...>
Imagine a flock of ducks in the sky. Listen.
[#141359] Help with installing gem in my home directory — "Vincent Foley" <vfoley@...>
Hi everyone,
On 5/6/05, Vincent Foley <vfoley@gmail.com> wrote:
[#141365] Array#squeeze — Martin DeMello <martindemello@...>
The recent mention of String#squeeze made me wonder if it would not be a
[#141368] Re: compiler error: argument of type "VALUE *" is incompatible with parameter of type "VALUE" — me2faster@...
On May 5, 2005, at 2:44 PM, me2faster@excite.com wrote:
[#141371] Can't build Ruby 1.8.2 on Sparc Solaris 10 — "Park Heesob" <phasis68@...>
Hi all,
[#141380] WxRuby or FxRuby — Jens Riedel <JensRie@...>
Hello,
[#141393] unit test — Brian Buckley <briankbuckley@...>
Hello all,=20
Brian Buckley wrote:
[#141402] Amazing Mazes (#31) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
[#141448] [OG] - 0.16.0 with automated table evolution — Ilias Lazaridis <ilias@...>
I've finished a non-intrusive extension to og (addition of one file,
[#141492] new to ruby - please help w/ code structure? — "Corey" <corey_s@...>
[#141529] [NITRO] - Mr. George Moschovitis applies Censorship on Public Project Forum — Ilias Lazaridis <ilias@...>
To understand further the _real_ difference between Nitro/Og and
Ilias,
Friday wrote:
Hi!
Josef 'Jupp' SCHUGT wrote:
Ilias Lazaridis, May 9:
[#141530] [NITRO] - Mr. Moschovitis Revolutionary Redefinition of an Open Source Project — Ilias Lazaridis <ilias@...>
George Moschovitis wrote
On 5/7/05, Ilias Lazaridis <ilias@lazaridis.com> wrote:
Bill Guindon wrote:
On Saturday 07 May 2005 20:34, Ilias Lazaridis wrote:
Is there a way of moderating Mr. Lazardis' comments to the group so that
Shalev NessAiver, May 13:
Nikolai Weibull wrote:
[#141558] FXRuby on OS X Tiger — "Hans Fugal" <fugalh@...>
I'm new to the OS X scene, and while I used Panther for a week or two
[#141576] HighLine 0.4.0 — James Edward Gray II <james@...>
HighLine 0.4.0 Released
Hello James,
On May 7, 2005, at 4:19 PM, Vincent Foley wrote:
Indeed, I read it just after I posted :) Sorry about that. However, I
On May 9, 2005, at 3:09 PM, Vincent Foley wrote:
How did you handle the noecho thing on different platforms? I looked
On May 9, 2005, at 5:24 PM, Vincent Foley wrote:
Vincent Foley wrote:
On May 7, 2005, at 4:48 PM, Ryan Leavengood wrote:
James Edward Gray II wrote:
On May 7, 2005, at 6:49 PM, Ryan Leavengood wrote:
James Edward Gray II wrote:
On May 7, 2005, at 8:10 PM, Ryan Leavengood wrote:
[#141598] Vacation - email me when Ilias is gone or people FINALLY stop responding to him — Ryan Davis <ryand-ruby@...>
The signal:noise ratio on this list is terrible. I'm taking a
Hi,
Depending on what sort of hooks you have for filtering: Emails usually
Francis Hwang, May 8:
[#141615] - Sterile Classes / Sterile Meta Classes — Ilias Lazaridis <ilias@...>
Another suggestion for the "Ruby Singleton Classes" or "Exclusive Classes":
In message "Re: [ETYMOLOGY] - Sterile Classes / Sterile Meta Classes"
Yukihiro Matsumoto wrote:
Hi,
[Yukihiro Matsumoto <matz@ruby-lang.org>, 2005-05-08 17.13 CEST]
Carlos wrote:
Hi,
Hi --
Hi,
Hi,
On May 9, 2005, at 1:36 AM, Yukihiro Matsumoto wrote:
ES <ruby-ml@magical-cat.org> writes:
Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
On 05/08/2005 08:43 PM, Yukihiro Matsumoto wrote:
[#141620] Re: [ETYMOLOGY] - Sterile Classes / Sterile Meta Classes — Thomas Adam <thomas_adam16@...>
[#141652] Problem with Math module in extension. — Ernest Ellingson <erne@...>
I'm trying to do something real simple find the sin of an angle in an
Charles Mills wrote:
[#141655] No Thing Here vs Uninitialized and RCR 303 — Cyent <cyent@...>
I'm observing a general trend in the responses to RCR 303.
Cyent a 馗rit :
This isn't about changing programming habits. Having nil return nil
On Mon, 9 May 2005, Bill Atkins wrote:
Bill Atkins wrote:
James Britt schrieb:
Pit Capitain wrote:
On 05/09/2005 04:21 AM, Bill Atkins wrote:
[#141662] RACC - one click installer/cygwin package — "Jon A. Lambert" <jlsysinc@...>
I have both the one-click installer and also the cygwin package. What
[#141672] Dir.glob and File.fnmatch — Thomas Leitner <thomas_leitner@...>
Hi,
[#141685] Re: [ETYMOLOGY] - Sterile Classes / Sterile Meta Classes — Thomas Adam <thomas_adam16@...>
[#141693] Representing Undirected Edges (advice, please) — Gavin Kistner <gavin@...>
Summary
[#141701] Re: Representing Undirected Edges (advice, please) — Nuralanur@...
Dear Gavin,
[#141707] Singleton class terminology — Hal Fulton <hal9000@...>
Just expressing my opinion here.
[#141718] Query about the top level object — Gavri Fernandez <gavri.fernandez@...>
Hi everyone,
[#141744] Analysis of IORCC Entries? — Ryan Leavengood <mrcode@...>
So, I was been browsing http://iorcc.dyndns.org/ and looking at the 2005
[#141764] OT: Small RCR 303 type Joke... — John Carter <john.carter@...>
I have just realized that I have, in all seriousness and in good faith,
[#141776] Stats comp.lang.ruby (last 7 days) — Balwinder Singh Dheeman <bsd.SANSPAM@...>
Stats comp.lang.ruby (last 7 days)
[#141793] Strange segfault on Linux with test-unit — "Daniel Berger" <djberg96@...>
Hi all,
[#141843] An idiom I like... modifiable defaults — Hal Fulton <hal9000@...>
Just thought I'd share a little concept that I find
Hal Fulton wrote:
[#141869] Re: RCR 304: reference/pointer concept — Eric Mahurin <eric_mahurin@...>
Here are a couple of things this might be useful for (I just
[#141875] How to extract texts from html source? — "Sam Kong" <sam.s.kong@...>
Hi, all!
Sam Kong wrote:
[#141879] Ruby Newbie !!! — "Kanthi Kiran Narisetti" <TechAlerts@...>
Hi ALL,
> http://www.ruby-doc.org/ has quite some pointers to documentation. If you
[#141896] fastcgi + lighttpd ? — oxman <no@...>
Hello,
[#141900] Still umlauts — Bertram Scharpf <lists@...>
Hi,
[#141904] Re: Representing Undirected Edges (advice, please) — Nuralanur@...
Dear Jacob,
[#141921] HighLine 0.5.0 — James Edward Gray II <james@...>
HighLine 0.5.0 Released
[#141954] Testing a user application — "Vincent Foley" <vfoley@...>
Hi everyone,
[#141958] Redesign 2005, Round Two — why the lucky stiff <ruby-talk@...>
I'm happy to say that our little redesign team has come to accord on a
why the lucky stiff ha scritto:
gabriele renzi wrote:
James Britt ha scritto:
why the lucky stiff wrote:
On 5/10/05, Ilias Lazaridis <ilias@lazaridis.com> wrote:
Mark Hubbart, May 11:
Nikolai Weibull ha scritto:
Hi --
David A. Black wrote:
James Britt wrote:
Hi --
David A. Black wrote:
James Britt wrote:
Which song?
On 5/11/05, John W. Long <ng@johnwlong.com> wrote:
> > Which song?
vruz, May 13:
On Thursday 12 May 2005 19:33, Nikolai Weibull wrote:
On 5/12/05, Ben Giddings <bg-rubytalk@infofiend.com> wrote:
Mark Hubbart wrote:
Joel VanderWerf wrote:
Alan Garrison, May 13:
I like this redesign alot. Very beautiful... like Ruby!
Thanks Jeff, I wholeheartedly agree with your comments. I lot of what I
[#141959] sumbit form in rails — Igor Anic <ianic@4dva.hr>
Is there a way in rails to choose controller action to which form will
[#141967] NegaPosi Compiler — SASADA Koichi <ko1@...>
Hi,
[#141972] help with reading part of textfile into matrix — rgilaard@...
Dear all,
[#141995] Re: Representing Undirected Edges (advice, please) — Nuralanur@...
Dear Jacob,
On 5/10/05, Nuralanur@aol.com <Nuralanur@aol.com> wrote:
On Wed, May 11, 2005 at 02:57:48AM +0900, Jacob Fugal wrote:
[#142000] Fwd: Enumerating only months in a Date range? — John Lam <drjflam@...>
Is there a straight-forward way to list all of the months in a Date
On 5/10/05, John Lam <drjflam@gmail.com> wrote:
Thanks, Mark!
[#142013] Problems with rubytalk.com — Wes Moxam <wildwildwes@...>
I was searching for some ruby info via google, and clicked a link to
[#142018] traits-0.1.0 — "Ara.T.Howard" <Ara.T.Howard@...>
[#142023] http-proxy in Ruby? — Michael Schuerig <michael@...>
[#142039] Problems with Amrita2 and HTTP headers. — Wayne Pierce <shalofin@...>
I'm experimenting with different Ruby-based web development tools, but
[#142040] Does any Ruby parser exist ? — Lothar Scholz <mailinglists@...>
Hello ruby-talk,
[#142045] Instiki/Redcloth Escaping — James Edward Gray II <james@...>
I need to use * in my wiki, set to use Textile. How can I escape it,
[#142054] String Hashing Algorithms — "Phrogz" <gavin@...>
Summary
Phrogz wrote:
Joel VanderWerf wrote:
[#142129] options parsing: required and conflict — Kirill Shutemov <k.shutemov@...>
Can I define options dependencies using OptionParser?
Kirill Shutemov wrote:
Is that true, OptionParse has no support of it?
Kirill Shutemov wrote:
Hi,
> I'd had similar idea in the early days, but abandoned it soon.
On 5/24/05, Eric Hodel <drbrain@segment7.net> wrote:
[#142133] ruby vs. java? — "Franz Hartmann" <porschefranz@...>
Hello all,
Franz Hartmann wrote:
Hello Michael and all of you,
Franz Hartmann wrote:
On 5/11/05, Franz Hartmann <porschefranz@hotmail.com> wrote:
Hello Logan,
Ralf,
> (physician = Arzt, physicist = Physiker) :-)))
let me explain honey :-) :
well now, i have to work my way thru quite a lot of very kind mails...
Franz Hartmann a 馗rit :
Hello Jaypee,
Franz Hartmann a 馗rit :
On Wed, 11 May 2005 17:57:10 +0900
[#142148] Re: ruby vs. java? — Steve Callaway <sjc2000_uk@...>
Franz,
[#142195] RubyForge downtime — Tom Copeland <tom@...>
Hello all -
On Wed, 2005-05-11 at 09:38 -0400, Tom Copeland wrote:
On 12/05/05, Tom Copeland <tom@infoether.com> wrote:
[#142199] Standard Library patches - rational, delegate — "Dave Burt" <dave@...>
Hi,
[#142213] defining a custom to_yaml method to inline hashes — "Ara.T.Howard" <Ara.T.Howard@...>
[#142224] alternatives to ? : contruct — "John-Mason P. Shackelford" <jpshack@...>
As an alternative to:
I don't believe one can use _else_ with an expression modifier. If we
On May 11, 2005, at 2:37 PM, John-Mason P. Shackelford wrote:
On 5/11/05, John-Mason P. Shackelford <jpshack@gmail.com> wrote:
[#142244] How to force a method redefinition ? — dm1 <dmertz@...>
Hello,
[#142258] Ruby Challenge — Pit Capitain <pit@...>
Hi Quizzers,
Ruby can get you through a few pages. But pretty soon you run into a
Indeed, you'll import that. pick hill. ;)
[#142260] Re: object loops and what they return — Eric Mahurin <eric_mahurin@...>
That sure looks ugly. I don't see any advantage of this over:
Eric Mahurin wrote:
Brian Schrer wrote:
On May 12, 2005, at 7:35 AM, Robert Klemme wrote:
* Jim Weirich <jim@weirichhouse.org> [2005-05-12 23:32:52 +0900]:
On Thursday 12 May 2005 10:32, Jim Weirich wrote:
Hi --
On Thursday 12 May 2005 13:38, David A. Black wrote:
Ben Giddings wrote:
[#142268] Request for advice on applying a license — Nikolai Weibull <mailing-lists.ruby-talk@...>
Hi!
On Wednesday 11 May 2005 18:59, Nikolai Weibull wrote:
Ben Giddings <bg-rubytalk@infofiend.com> writes:
On May 12, 2005, at 9:16 AM, Christian Neukirchen wrote:
James Edward Gray II, May 12:
Nikolai Weibull <mailing-lists.ruby-talk@rawuncut.elitemail.org> writes:
Christian Neukirchen, May 13:
Nikolai Weibull <mailing-lists.ruby-talk@rawuncut.elitemail.org> writes:
On Thursday 12 May 2005 10:16, Christian Neukirchen wrote:
[#142287] Ruby: No such file to load -- ubygems (LoadError) — "Brian Takita" <brian.takita@...>
Hello,
Mark, thank you for your response.
I tried performing the command "gem install rubygems"
On 5/12/05, Brian Takita <brian.takita@gmail.com> wrote:
I removed the RUBYOPT, but irb was still able to run.
[#142295] Continued Strings — James Edward Gray II <james@...>
Here's an interesting code fragment from a Ruby Quiz solution this week:
[#142301] Unresolved symbols dlclose, dlopen, dlerror, dlsym — me2faster@...
I'm getting unresolved symbols from the linker related to the dl
[#142342] Go through directories recursively — Jens Riedel <JensRie@...>
Hello,
Jens Riedel wrote:
On Thu, 12 May 2005, Robert Klemme wrote:
[#142378] Amazing Mazes (#31) — Ruby Quiz <james@...>
Wow, these solutions are great fun to play with. I think next week's quiz needs
Ruby Quiz wrote:
Hi Clifford!
Glenn M. Lewis wrote:
Clifford Heath wrote:
[#142388] ruby-dev summary 26090-26127 — Takaaki Tateishi <ttate@...>
Here is a ruby-dev summaries:
[#142399] sqlite-ruby gem not building extension — Jim Freeze <jim@...>
Hi all
On Fri, 13 May 2005, Jim Freeze wrote:
* Ara.T.Howard@noaa.gov <Ara.T.Howard@noaa.gov> [2005-05-13 01:35:28 +0900]:
[#142404] We need a comprehensive test suite — Daniel Berger <djberge@...>
All,
[#142440] More informative return value for Regexp — Logan Capaldo <logancapaldo@...>
Is there a way to get a Regexp to tell you if it didn't match because
[#142462] Get back data from a child (with exec) — Lawrence Oluyede <raims@...>
[#142469] Nuby: 'importing shell script variables' eval/proc/binding — Dany Cayouette <danyc@...>
Greetings,
[#142473] rubycocoa - uninitalized constant NSObject — Kevin Lanik <kevinl@...>
I'm new to ruby and trying to embed it in some objective-c using
[#142493] ruby smtp and gmail — ruby talk <rubytalk@...>
[code]
[#142515] Earn money searching the Web. It really works. — alandavis91310@...
Hey, any of you checked this out? Basically, you register & each time
[#142533] Cows and Bulls (#32) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
[#142546] strange error from soap server — jm <jeffm@...>
I came across this with a larger program to expose the functionality of
[#142554] Ruby Central, Inc. Donation and Pledge Site (including RubyConf sponsorship) — "David A. Black" <dblack@...>
Dear Rubyists,
Can we have at least partial control over how our donation is spent?
Hi --
David A. Black ha scritto:
[#142593] Customing the Exception class — Daniel Berger <djberge@...>
Hi all,
[#142613] RoR on WinXP/Apache — "gander" <ganderso@...>
I'm trying to get typo up on my local box (WinXP).
[#142620] ruby in WinXP as an automation tool — "kevin.gc@..." <kevin.gc@...>
Can anyone tell me if it can be done?
ruby talk <rubytalk@gmail.com> wrote:
Martin DeMello schrieb:
On 5/17/05, Pit Capitain <pit@capitain.de> wrote:
[#142623] Ruby indenting in jEdit — Jay Levitt <jay+news@...>
For some reason, jEdit 4.3pre2 (JRE5, Windows XP SP2) wants to indent
[#142629] Possible bug in Date/ParseDate — Matthew Keene <dfg778@...>
I have found what appears to be a bug in either the Date or the
[#142650] how to keep hash sort from YAML — dave <dave.m@...>
[#142654] Net::NNTP Client Library 0.0.2 (beta) is released — Dr Balwinder S Dheeman <bsd.SANSPAM@...>
URLS
[#142655] re-opening STDIN after it's been closed? — David Vincelli <micologist@...>
here's a summary of a script I just wrote:
[#142657] RAA down? — "Daniel Berger" <djberg96@...>
Hi all,
[#142668] Rant 0.3.8 — Stefan Lang <langstefan@...>
Rant is a flexible build tool written entirely in Ruby,
Stefan Lang wrote:
[#142671] infinite number of singleton_classes — Lionel Thiry <lthiryidontwantspam@...>
Hello!
On Sun, 15 May 2005, Lionel Thiry wrote:
Ara.T.Howard@noaa.gov a 馗rit :
Lionel Thiry wrote:
Hal Fulton a 馗rit :
On Mon, 16 May 2005, Lionel Thiry wrote:
Ara.T.Howard@noaa.gov schrieb:
On Tue, 17 May 2005, Christoph wrote:
Hi --
David A. Black schrieb:
Hi --
David A. Black schrieb:
Hi --
David A. Black schrieb:
David A. Black a 馗rit :
[#142688] Formatting date without leading zeros — "Tom Reinhart" <alltom@...>
I've tried to do the best research I can into this before posting here,
Tom,
Hi,
Hi --
[#142689] compiling opengl — altern <enrike@...>
hi
[#142697] Strange behaviour of class Fixnum in exponentation —
The german Ruby forum recognized a strange behaviour of the Fixnum class.
[#142704] Why is this DRb code so slow? — Jim Freeze <jim@...>
Ok, I'm stumped. I have a simple drb example, and it is
[#142705] I can't establish network connections with Ruby. — meaneyedcat@...
For some reason, I am unable to establish network connections anymore
[#142735] Precedence 0.6 — Farrel Lifson <farrel.lifson@...>
I've made the initial release of Precedence which is a small API to
[#142737] Ruby/Odeum vs. Lucene Performance — "Zed A. Shaw" <zedshaw@...>
Hi All,
[#142764] Stats comp.lang.ruby (last 7 days) — Balwinder Singh Dheeman <bsd.SANSPAM@...>
Stats comp.lang.ruby (last 7 days)
[#142765] Class.forName ? — baalbek <rcs@...>
In Java there is a construct like this:
[#142794] determining common characters from start of two strings? — "Bill Kelly" <billk@...>
Hi,
[#142806] IRB, Mac OS X, command-line require via "-r" and Bus Errors — "James Adam" <james.adam@...>
Hey All,
James Adam <james.adam@gmail.com> wrote:
[#142808] Ruby Weekly News 2nd - 15th May 2005 — timsuth@... (Tim Sutherland)
http://www.rubyweeklynews.org/20050515.html
I've got some rails code that is failing in a very strange way. It is
Markus,
On May 23, 2005, at 2:30 PM, Markus wrote:
On Mon, 2005-05-23 at 13:46, Jamis Buck wrote:
On May 23, 2005, at 4:24 PM, Markus wrote:
[#142811] Newbie: pinpoint my mistake please.. — "dobest03" <dobest03@...>
Hello.
[#142834] Doubt about GC — "Eustaquio Rangel de Oliveira Jr." <eustaquiorangel@...>
-----BEGIN PGP SIGNED MESSAGE-----
[#142850] rb_gc_mark question — "Ara.T.Howard" <Ara.T.Howard@...>
[#142858] Alternatives to Meetup.com? — "James G. Britt " <ruby.talk.list@...>
I've received E-mail from Meetup.com that the Phoenix Ruby Group is
> I've received E-mail from Meetup.com that the Phoenix Ruby Group is
[#142863] Rails on Altix ia64 — "Adam P. Jenkins" <ajenkins@...>
Has anyone successfully run a Rails application on an Altix, or other
In article <SpednduBRbQs3jrfRVn-qA@rcn.net>,
[#142870] Extending an Instance only Once — Gavin Kistner <gavin@...>
I have a method that requires that the arguments passed to it have
> I have a method that requires that the arguments passed to it have been
[#142871] freenode call for coders — Martin DeMello <martindemello@...>
Just passing this along
[#142879] Ruby/TK on Mac OS X Tiger? — "Tom Nakamura" <imifumei@...>
Can anyone do a quick test to see if "require 'tk'" work by default on
Hi,
Mark Hubbart wrote:
Hi --
On 5/18/05, Dave Baldwin <dave.baldwin@3dlabs.com> wrote:
[#142901] Help regarding def wrapper — Nikolai Weibull <mailing-lists.ruby-talk@...>
I窶囘 like to have a def that I can scope in one go, i.e.,
On May 17, 2005, at 7:52 AM, Nikolai Weibull wrote:
Hello Nikolai,
[#142910] ruby postgresql library: time out error — rgilaard@...
Dear all,
[#142932] "Verbose" backtracing — Imobach Gonz疝ez Sosa <imobachgs@...>
Hi all,
[#142971] OSX Mail.app performance — tsuraan <tsuraan@...>
Sorry about the OT, but this is the only high-volume list I'm on that
[#142976] Noobie ... Simple Inheriting from Hash Question .. — "Neville Burnell" <Neville.Burnell@...>
Hi,
[#143002] RMagick on MacOS X (can't read a JPG) — Gavin Kistner <gavin@...>
I am trying to automate a bunch of thumbnail creations, and thought
[#143021] Why's (Poignant) Guide to Ruby, Chapter Six: Downtown — why the lucky stiff <ruby-talk@...>
Ruby-Talk, I have a new hunk of pages for you.
[#143041] Compiling MySQL-Ruby on Tiger — "pat allan" <pat.allan@...>
Hi all
Possibly avoiding the issue, one workaround might be building your own
ToddG wrote:
> ToddG wrote:
Hi Jonathon
[#143062] syntax sugar: treating an object like a method — Eric Mahurin <eric_mahurin@...>
I'm thinking of yet another RCR and would like to see if
On 5/18/05, Eric Mahurin <eric_mahurin@yahoo.com> wrote:
[#143076] Re: howto make something like Errno::##, for my C ext, or do I need to? — "Berger, Daniel" <Daniel.Berger@...>
> -----Original Message-----
[#143080] Re: syntax sugar: treating an object like a method — Eric Mahurin <eric_mahurin@...>
--- "David A. Black" <dblack@wobblini.net> wrote:
[#143087] (newbie Q) opposite of inspect for strings — "Basile Starynkevitch [news]" <basile-news@...>
[#143107] Building Ruby in IRIX64 — Joe Van Dyk <joevandyk@...>
Hi,
[#143112] accessing each character of a string — Boris Glawe <boris@...>
Hi,
[#143125] Re: accessing each character of a string — "Pe, Botp" <botp@...>
[#143167] Idiomatic way for collecting elements using REXML? — John Lam <drjflam@...>
I'm writing some REST-ian code to talk to the Amazon Web Services
[#143182] Re: syntax sugar: treating an object like a method — Eric Mahurin <eric_mahurin@...>
--- Christian Neukirchen <chneukirchen@gmail.com> wrote:
[#143193] Win32API question - pathstriptoroot — "Berger, Daniel" <Daniel.Berger@...>
Hi all,
On 5/19/05, Berger, Daniel <Daniel.Berger@qwest.com> wrote:
On 19/05/05, Austin Ziegler <halostatue@gmail.com> wrote:
The api call is just taking the char buffer you're sending it, dropping a null after the path to terminate it just like a normal Windows application would expect. I would have thought that the Win32API module would take care of this sort of thing for you, but that doesn't seem to be the case.
[#143208] Tiling Turmoil (#33) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
[#143209] Re: [QUIZ] Tiling Turmoil (#33) — Jason Bailey <azrael@...>
Is there an assumption that this is a square or can it be a rectangle?
[#143211] Multiple return and parallel assignement — "jean" <g.castaldi@...>
Hi,
[#143225] Re: Multiple return and parallel assignement — Eric Mahurin <eric_mahurin@...>
David A. Black <dblack@wobblini.net> wrote:
Michael Ulm wrote:
[#143229] Web services and Ruby — Luke Kanies <luke@...>
Hi all,
[#143251] Anonymous module undefined method error — "johng" <jgoalby@...>
Hi all
Hi,
[#143252] HighLine 0.6.0 -- Now with menus! — James Edward Gray II <james@...>
HighLine 0.6.0 Released
Wow, I go away for about a week and BAM, all the work's done! I guess
I get an install error on termios. Highline does not install (regardless of
You do not need termios for Windows, so you might try:
On 5/22/05, Greg Brown <greg7224@gmail.com> wrote:
[#143263] Ruby smile — baalbek <rcs@...>
Mostly for the newbies who stumbles into this NG, wondering what Ruby is
[#143297] Determining what file contains a module/class — Nicholas Wieland <nicholas_wieland@...>
Hi *,
[#143302] Ruby and CGI error 500 — "greyfade@..." <greyfade@...>
this is a problem that's been driving me nuts ever since i first tried
[#143305] join not in Enumerable — Logan Capaldo <logancapaldo@...>
Just a few minutes ago I was playing with irb as I am wont to do, and
[#143312] Ruby Debugger. Remove catchpoint? — David Corbin <dcorbin@...>
Is there someway to remove a catchpoint while in the debugger? Better yet, is
[#143325] Ruby/Tk and BWidget — nornagon <nornagon@...>
Hi. I'm scratching my head over how to get BWidget working
[#143328] Vim's Ruby indenting — "Vincent Foley" <vfoley@...>
Hi to all the vim users,
> method(foo,
Yes, I do. And I have this version installed.
Ah no, I did not. Thought I did. I used the new version and it fixed
Vincent Foley wrote:
On 23/05/05, Nikolai Weibull
[#143337] Uniform vector class, inheriting from Array: How to make sure that methods return a Vector and not an Array? — Thomas <sanobast-2005a@...>
Hi folks,
On 22/05/05, Thomas <sanobast-2005a@yahoo.de> wrote:
> I'm quite shure you don't need to do what you are doing, because this
On 5/23/05, Thomas <sanobast-2005a@yahoo.de> wrote:
[#143345] Gem Dependancies — James Edward Gray II <james@...>
With HighLine, we've recently moved over to using termios... on Unix
On Sunday 22 May 2005 01:27 pm, James Edward Gray II wrote:
[#143366] Stats comp.lang.ruby (last 7 days) — Balwinder Singh Dheeman <bsd.SANSPAM@...>
Stats comp.lang.ruby (last 7 days)
On 5/22/05, Balwinder Singh Dheeman <bsd.SANSPAM@cto.homelinux.net> wrote:
Hi --
[#143375] sciTe editor IRB window getting double characters — "soxinbox" <faker@...>
Has any one had a problem with the latest release of Ruby and the included
Here's some solutions for scite configuration mistakes from another list:
David Boyd:
[#143411] HighLine 0.6.1 — James Edward Gray II <james@...>
HighLine 0.6.1 Released
[#143431] Endian packing errors. — Brian Mitchell <binary42@...>
I have a number I must convert to a network long. I have been using
* Brian Mitchell <binary42@gmail.com> [2005-05-24 02:53:52 +0900]:
On 5/23/05, Jim Freeze <jim@freeze.org> wrote:
[#143433] RDoc and SWIG — Gennady Bystritksy <gfb@...>
Hi, rubyists
[#143448] UDP select()/recvfrom() delay under Windows? — David Holroyd <ruby-talk@...>
I have the following snippet of code in a UDP client I'm knocking
David Holroyd <ruby-talk@badgers-in-foil.co.uk> writes:
[#143457] Re: loop over array with indices — "Berger, Daniel" <Daniel.Berger@...>
> -----Original Message-----
[#143460] Tk read-only text box — nornagon <nornagon@...>
Another Tk question.
From: nornagon <nornagon@gmail.com>
[#143479] Making a scripting tutorial — "Vincent Foley" <vfoley@...>
Hello everyone,
Vincent Foley wrote:
[#143515] if __FILE_ == $0 executed twice — Han Holl <han.holl@...>
Hello,
On Tue, 24 May 2005, Han Holl wrote:
Hi,
On 5/25/05, nobuyoshi nakada <nobuyoshi.nakada@ge.com> wrote:
[#143519] Tk::BWidget::NoteBook: retrieve current page — nornagon <nornagon@...>
Yet Another Tk Question.
From: nornagon <nornagon@gmail.com>
[#143542] Re: Killing a Process started with Kernel.system — "Berger, Daniel" <Daniel.Berger@...>
[#143550] new article — pat eyler <pat.eyler@...>
Sorry for posting about my own article, but I'm interested in feedback,
On 24/05/05, pat eyler <pat.eyler@gmail.com> wrote:
On 5/24/05, Brian Schrer <ruby.brian@gmail.com> wrote:
Hi,
[#143584] Re: Tk read-only text box — "Pe, Botp" <botp@...>
Hidetoshi NAGAI [mailto:nagai@ai.kyutech.ac.jp] wrote:
From: "Pe, Botp" <botp@delmonte-phil.com>
[#143611] Browsing with Cookies — Jim Van Fleet <jim@...>
I am writing an app that takes in some basic data and then scours some
[#143630] Zerofy — "aartist" <aartist@...>
How I can zerofy the day and month. I like to add 0 in the beginning.
On Wed, 2005-05-25 at 14:25, aartist wrote:
[#143655] A different perspective on Ruby. — ES <ruby-ml@...>
ES wrote:
On 26/05/05, gsinclair@gmail.com <gsinclair@gmail.com> wrote:
Brian Schrer wrote:
On Thursday 26 May 2005 04:11 pm, Glenn Parker wrote:
Joe Van Dyk <joevandyk@gmail.com> writes:
> First, an OT question: Is there a Firefox extension that lets me
[#143688] Tiling Turmoil (#33) — Ruby Quiz <james@...>
The quiz mentioned a mathematical proof (by Solomon Golomb), that could be used
I am a bit late with my solution, but it's my first Ruby Quiz, and my
>1) Style in general. What have I done that is 'unrubyish'? Are there
[#143694] Re: [ANN] cursor-0.6 — Eric Mahurin <eric_mahurin@...>
--- Caleb Clausen <vikkous@gmail.com> wrote:
Eric Mahurin wrote:
--- Caleb Clausen <vikkous@gmail.com> wrote:
On 5/28/05, Eric Mahurin <eric_mahurin@yahoo.com> wrote:
[#143699] Language corrections — Joe Van Dyk <joevandyk@...>
Every so often, I see a post that either starts or ends with
[#143702] metaclass in python, role in perl and AOP in ruby — Lionel Thiry <lthiryidontwantspam@...>
Hello!
Lionel Thiry ha scritto:
[#143705] Intellisense and the psychology of typing — andrew.queisser@...
Yesterday I typed in some C++ code that called a function with two
On Fri, May 27, 2005 at 01:35:19AM +0900, andrew.queisser@hp.com wrote:
Hello Thomas,
Lothar Scholz wrote:
On 5/30/05, Richard Cole <rcole@itee.uq.edu.au> wrote:
Hello Austin,
On 5/31/05, Lothar Scholz <mailinglists@scriptolutions.com> wrote:
Austin Ziegler wrote:
On 5/31/05, Caleb Clausen <vikkous@gmail.com> wrote:
--- Austin Ziegler <halostatue@gmail.com> wrote:
On 5/31/05, Eric Mahurin <eric_mahurin@yahoo.com> wrote:
I have rapidly skimmed over the few responses here. Auto completion is
[#143714] MySQL-Ruby — Marcelo Paniagua <paniagua@...>
Hi there!
[#143735] Broken IRB in Windows? — Robert Mannl <ro@...>
Hello!
[#143737] Licensing Question — Zach Dennis <zdennis@...>
I wrote a suite of tools, webstar-tools,
[#143741] hash of hash and complex data structure — ngoc <ngoc@...>
Hi
[#143755] ADV: Rail Beta Book now available — Dave Thomas <dave@...>
Folks:
On Fri, 27 May 2005, Dave Thomas wrote:
[#143776] Methods with lots of arguments — Dido Sevilla <dido.sevilla@...>
Just went through a bit of refactoring on a bit of Ruby code that I've
[#143778] ruby-termios: Patch to make it work under both 1.8 and 1.9 — Lloyd Zusman <ljz@...>
[#143799] Plz comment — Dr Balwinder S Dheeman <bsd.SANSPAM@...>
Dear Rubiest!
* On May 27 23:45, Dr Balwinder S Dheeman (ruby-talk@ruby-lang.org) wrote:
Dr Balwinder S Dheeman wrote:
[#143804] Difference between 'def self.…' and module_function … — Nikolai Weibull <mailing-lists.ruby-talk@...>
I thought I new the difference between writing
[#143812] Ruby on Rails interest in comp.lang.python — Stephen Kellett <snail@...>
A heads up to the Rails folks.
"Stephen Kellett" <snail@objmedia.demon.co.uk> wrote:
Which makes me think of... is there a ruby equivalent of Twisted ?
[#143820] RI Conceptional Showstopper Bug. — Lothar Scholz <mailinglists@...>
Hello ,
Hello ,
[#143825] How to build an index of phrases in a phrase/sentence? — Dan Fitzpatrick <dan@...>
I am trying to build an indexing structure on some phrases. Most phrases
On May 27, 2005, at 1:39 PM, Dan Fitzpatrick wrote:
[#143842] Coercion and ranges — Philipp Kern <trash@...>
Dear Ruby fellows,
[#143869] Useless hack of the saturday morning — gabriele renzi <surrender_it@...>
Hi gurus and nubys,
gabriele renzi <surrender_it@remove-yahoo.it> writes:
Christian Neukirchen ha scritto:
gabriele renzi <surrender_it@remove-yahoo.it> writes:
what about a more Ruby-like extension:
[#143884] preventing Object#send from dispatching to a global method? — Francis Hwang <sera@...>
Is there a way to prevent Object#send from dispatching to a global
Okay, thanks for the tip, that's definitely giving me some ideas.
On Saturday 28 May 2005 11:05 pm, Francis Hwang wrote:
Francis Hwang wrote:
On May 30, 2005, at 9:02 PM, Glenn Parker wrote:
[#143900] IO with external program — "Danny Beaudoin" <beaudoin_danny@...>
Hi!
[#143962] How to find ruby? — Mark Probert <probertm@...>
[#143975] Ruby-VTK-0.2.0 was released — Seiya Nishizawa <seiya@...>
Hi everyone,
Hi!
On 5/31/05, Josef 'Jupp' SCHUGT <jupp@gmx.de> wrote:
[#143976] Stats comp.lang.ruby (last 7 days) — Balwinder Singh Dheeman <bsd.SANSPAM@...>
Stats comp.lang.ruby (last 7 days)
On Mon, 30 May 2005, Balwinder Singh Dheeman wrote:
On 5/31/05, David A. Black <dblack@wobblini.net> wrote:
pat eyler wrote:
On 05/31/2005 11:44 PM, James Britt wrote:
On May 31, 2005, at 6:15 PM, Dr Balwinder S Dheeman wrote:
On May 31, 2005, at 6:26 PM, James Edward Gray II wrote:
On Wed, 2005-06-01 at 23:31 +0900, James Edward Gray II wrote:
On 6/1/05, Tom Copeland <tom@infoether.com> wrote:
[#143978] RubyGems HackFest Weekend #1 is complete! — Ryan Davis <ryand-ruby@...>
http://blog.zenspider.com/archives/2005/05/rubygems_hackfe.html
Ryan Davis <ryand-ruby@zenspider.com> wrote:
[#143998] WIN32API — Wolfgang <wollez@...>
Hello,
[#144004] creating variable with eval — "Geert Fannes" <Geert.Fannes@...>
Hello, what is the scope of a variable created inside an eval()
Robert Klemme wrote:
[#144042] RubyGems and the FreeBSD ports tree — Jonathan Weiss <jw@...>
Cheers
[#144043] Local variables and functions — Robert Mannl <ro@...>
Hi!
[#144050] rb_f_lambda vs. rb_block_proc : what are the issues? — Jeremy Henty <jeremy@...>
Now that I'm maintaining Ruby/FLTK, I'm seeing lots of "rb_f_lambda()
[#144058] Ruby in C# — "PD" <dragoonEX@...>
Hi.
[#144077] Ruby Weekly News 23rd - 29th May 2005 — timsuth@... (Tim Sutherland)
http://www.rubyweeklynews.org/20050529.html
[#144082] Where to get the RubyGems documentation — Lothar Scholz <mailinglists@...>
Hello ruby-talk,
[#144096] parseargs-0.0.0 — "Ara.T.Howard" <Ara.T.Howard@...>
Ara.T.Howard wrote:
Hal Fulton wrote:
On Wed, 1 Jun 2005, Joel VanderWerf wrote:
Hello,
On Wed, 1 Jun 2005, Zev Blut wrote:
Hello,
Zev Blut wrote:
On Thu, 2 Jun 2005, Zev Blut wrote:
Ara.T.Howard schrieb:
On Fri, 3 Jun 2005, Pit Capitain wrote:
[#144111] Gnome's Guide to WEBrick — James Edward Gray II <james@...>
I can't seem to find Gnome's Guide to WEBrick. I know if moved
[#144123] mswin32-ruby17.dll, which distribution contains it — jcb@...
I just downloaded SOAP4r. I get an error stating that
[SUMMARY] Barrel of Monkeys (#30)
Before I begin my analysis of others solutions, let me share two
things I learned, in the hopes that it will help someone else:
1) I procrastinate. (I didn't learn this - I already knew it.) I
discovered this manifesting itself in my code as I repeatedly put off
the hard part of actually creating the playlist, and ended up
refactoring my classes about 6 times, and spending a full half hour
on just cleaning up the names of the songs. I learned the importance
of doing a 'red thread' spike - lay down the core functionality
first, get it working, and then make it pretty later.
If you run out of time on a project, it's arguably better to have
SOMETHING working, than a really nice solution that's only half
implemented, and doesn't do anything.
2) Premature Optimization is the Root of All Evil[1] - I had plans to
implement my solution in the most brain-dead simple way possible, and
only then (if necessary) optimize it. Somewhere along the way I
wandered off the path, and ended up using 'ugly' hashes of hashes for
speed sake and a single recursive function. In the end, I did need to
do a bit of optimization to get it to run reasonably (see below). But
even before that, the damage to my code was severe enough that when I
wanted to try out a variation on the algorithm, my own code was ugly
enough to deter me from messing with it. Even after my optimization,
however, the algorithm was pretty brain-dead stupid, and STILL
finished in a tenth of a second.
Moral - don't kill yourself on optimization until you're sure it's
necessary.
So, on to the code analysis. Every solution needed to do four things
to succeed:
1) Decide the parameters for the playlist to create (user input).
2) Load in the information for a song library.
3) Find a valid "Barrel of Monkeys" playlist based on the library and
the playlist parameters.
4) Display the resulting solution.
Let's look at the solutions for each of these, spending the most time
on the #3
==========================
Decide the Playlist Parameters
==========================
Ilmari, Pedro and I all picked songs at random from the library to
make a path between. None of our solutions had any customization in
terms of types of playlist to create. So much for the value of the
Highline quiz ... it seems that UI is still an afterthought when it
comes to solving a problem :)
Brian's solution does support different kinds of playlists (any path,
shortest path, and best time fill) but he didn't have time to create
a user UI, so his solution hard codes a few start and end points and
then solves them.
James' solution assumed that you would supply two command-line
arguments, the names of the first and last songs. I hadn't know about
the Enumerable#find method, so it was nice to see it used here
(finding the first song which had the supplied substring somewhere in
the song title). Beyond that, his solution had no further parameters
needed for a playlist.
Dave didn't let you pick the specific songs to start and end with
(you pick a letter for the first song should start with and a letter
for the last song to end with), but otherwise went all out on the
options - his solution supports finding playlists with minimum,
maximum, and target number of songs and/or playlist duration. The
console input provides defaults while entering, making things
particularly convenient. So, apparently the Highline quiz was
valuable after all :)
==========================
Load in the Song Library
==========================
The provided song library was an XML file. There were three
approaches to handling this, with very different speed results:
Gavin, James, Ilmari and Brian all read the XML file using REXML, and
then used it's access methods to create instances of a Song class.
(Ilmari actually used zlib to load the gzipped version directly, with
roughly no performance hit. Nice!)
Time to load the XML file into an REXML Document: ~4s
Time to scrape the information from that into Song instances:
Gavin: 28s (I did a lot of name cleaning during song
initialization)
James: 12s
Ilmari: 4.5s
Brian: 2.6s
Dave converted the library into YAML (how, I'm not sure) and loaded
that directly.
Time to load the YAML file of Songs: 1.5s
Pedro went hardcore and simply used regular expressions on each line
of the XML file.
Time to read the file and use regexp to find information: 0.2s
Gavin and Ilmari both dumped their libraries to a binary file using
Marshal after parsing it the first time. I know that for me, this
turned out to be a great decision, shaving 30+ seconds off every test
iteration I had to do.
Time to load a Marshalled file of songs: 0.1s
It appears that I was the only one who tried to do something about
all the terribly-named songs in the song library I supplied. I used
one of the solutions from the English Numerals quiz to turn integers
into english words. I tried to intelligently remove various "remix"
and "live" and "edit" variations on the name. In the end, I wish I
hadn't - the english numerals were a nice touch (and let me use songs
with names like "18" or "'74-'75"), but the rest was an exercise in
futility. Any reasonable playlist system should assume that it's
going to have a really nice, cleaned playlist fed to it. Regexp
heuristics to clean up messy names just aren't a substitute for a few
hours spent fixing one's ID3 tags :)
==========================
Create the Playlist
==========================
So, as the astute may have noticed, this quiz is really just a path-
finding in fancy clothes. Just as Mapquest creates directions from
point A to point B using roads connecting intersections, so this quiz
is about finding your way from song A to song B. There are just a
hell of a lot more roads connecting the intersections.
I'll cover my approach in depth, and then look at the code other
participants supplied.
As I mentioned above, I decided that I would first try a really brain-
dead algorithm and see how it performed. (I intended to try a
solution on my own and later do research into optimized algorithms in
this field, but never got around to the latter.)
After reading in all the songs, I partitioned them off into a Hash
that mapped each letter of the alphabet to the songs that started
with that letter. For each of those songs, I then figured out all the
unique end letters that you could get to. For simplicity sake,
whenever there were multiple songs with the same start/end letters
(e.g. "All Out of Love" and "A
Whiter Shade of Pale") I simply picked one of them at random and
threw out the rest.
I also threw out all the cases where songs started with and ended
with the same letter. These might be very useful in determining
specific-length playlists, but I didn't want to deal with them.
The end result looked something like this:
@song_links = {
'a' => { 'c' => <Song 'Aerodynamic'>, 'd' => <Song 'All I
Need'>, ... },
'b' => { 'a' => <Song 'Bawitdaba'>, 'e' => <Song 'Brother of
Mine'>, ... },
...
}
This hash of hashes was then my roadmap, telling me what
intersections I could get to for each letter, and what songs I
travelled along to take that path.
To walk 50 steps, you first have to walk 49 and then take the last
step. Similarly, I decided that I would write a recursive function
that checked to see if two songs could be linked together. If they
could, that was the path. If not, take one 'step' forward - see if a
path to the last song existed from each of the songs which connected
to the first.
My first brain-dead approach just let me wander along each
possibility until I found each match, and stored all the successes.
(My idea was to find all the solutions and then select the shortest
one from the list.) I quickly ran into neverending loops as I visited
the same song again and again. So, I started passing along a string
of all the letters I had already tried. Before taking a step to a new
song, I checked to make sure it wasn't in this list.
NOW I WAS COOKING! Along with some debug output, I watched as my code
began traverse the possibility path. And watch, and watch. I started
thinking about it.
With 5000 songs evenly distributed across all the letters, and paths
that can go 26 levels deep, my back-of-the-envelope calculations led
me to realize there there were (very roughly) something like
878406105516319579477535398778457892291056669879055897379772997878407474
708480000000000 possible paths. Ooops. That would take a while to
search the entire possibility tree. After waiting for 20 minutes, I
realized I might have to wait a really long time.
So, I made one more adjustment - whenever I found a valid path, I
stored the length of that path in an instance variable. Any time my
recursive function tried to go deeper than than, I bailed out. (If
know one route to get to the mall that takes 3 miles, and you start
down a strange road looking for a shortcut, after you've gone more
than 3 miles you know it's time to head home. You might be able to
get to the mall by driving across the country and back, but it's not
the solution you're looking for.)
And WHAM...my brain-dead solution went from taking longer than the
universe has existed, to finding solutions in less than a second.
Usually less than 1/10th of a second.
Take THAT, optimized algorithms! :)
[As a disclaimer, in the cases where no such path exists the code has
to end up searching the entire possibility space, so...it essentially
hangs when it can't find the right path.]
I had visions of using the same sort of solution to find a specific-
length playlist: I would accumulate time as I recursed, and bail out
once I had passed the limit. And then I went to bed instead. :)
So, on to looking at others' solutions, as best I can.
Pedro's solution appears to use recursion, like mine. I can't quite
tell how it's preventing infinite circular lists, or how it goes so
fast. It stores a list of possible solutions, and when finished it
yields the list of all found solutions to a passed-in proc to
determine which solution is correct.
So, for example, the line:
result=search(songs, first, last, &min_dur)
picks the playlist with the shortest duration from those it found,
while:
result=search(songs, first, last, &min_len)
picks the playlist with the fewest songs.
Because Pedro's solution didn't do any song name cleaning, it can
produce some interesting results:
Proudest Monkey - Dave Matthews Band - 551 ms ===> 'Round The World
With The Rubber Duck - C.W. McCall - 247 ms
Proudest Monkey - Dave Matthews Band - 551 ms
You May Be Right - Billy Joel - 255 ms
Teacher, Teacher - .38 Special - 193 ms
Rock Me - ABBA - 185 ms
Eden - 10,000 Maniacs - 250 ms
North - Afro Celt Sound System - 409 ms
Here Without You - 3 Doors Down - 238 ms
Under Attack - ABBA - 227 ms
Kelly Watch The Stars - Air [French Band] - 226 ms
Saguaro - A Small, Good Thing - 353 ms
Ostrichism - A Small, Good Thing - 152 ms
Mamma Mia - ABBA - 212 ms
All I Need - Air [French Band] - 268 ms
Does Your Mother Know - ABBA - 195 ms
When You're Falling - Afro Celt Sound System - 314 ms
God Must Have Spent A Little.. - Alabama - 203 ms
... to calm a turbulent soul - Falling You - 469 ms
Losing Grip - Avril Lavigne - 233 ms
Preacher in this Ring, Part I - Bruce Hornsby - 302 ms
Intergalactic - Beastie Boys - 231 ms
CDJ - Pizzicato Five - 344 ms
Jumpin' Jumpin' - Destiny's Child - 229 ms
'Round The World With The Rubber Duck - C.W. McCall - 247 ms
(Note the linkage of songs with apostrophes or periods. :)
However it traverses the results, it's speediness seems to be
mitigated by results that aren't quite as short as possible. For
example (after I hacked Pedro's code to ignore everything but spaces
and letters in a title) it thinks that the shortest playlist between
"Que Sera" and "Zaar" is:
Que Sera - Ace of Base - 227 ms ===> Zaar - Peter Gabriel - 178 ms
Que Sera - Ace of Base - 227 ms
Angeleyes - ABBA - 259 ms
Second Chance - .38 Special - 271 ms
Eden - 10,000 Maniacs - 250 ms
North - Afro Celt Sound System - 409 ms
Hold On Loosely - .38 Special - 279 ms
You May Be Right - Billy Joel - 255 ms
Teacher Teacher - .38 Special - 193 ms
Release It Instrumental - Afro Celt Sound System - 387 ms
Little Bird - Annie Lennox - 279 ms
Dont Talk - 10,000 Maniacs - 321 ms
Keepin Up - Alabama - 185 ms
Pluto - Bjk - 199 ms
Ostrichism - A Small, Good Thing - 152 ms
Mountain Music - Alabama - 252 ms
Caught Up In You - .38 Special - 276 ms
Unknown Track - Boards of Canada - 311 ms
in the Morning - LL Cool J - 222 ms
Get Me Off - Basement Jaxx - 289 ms
Fine and Mellow - Billie Holiday - 220 ms
Waltz - Gabriel Yared - 118 ms
Zaar - Peter Gabriel - 178 ms
while my code discovered this path (after I stole the code from James
to pick start and end songs):
Looking for a path between 'Que Sera' and 'Zaar'
#0 - Ace of Base :: Que Sera :: 3:47
#1 - Eric Serra :: A Bomb In The Hotel :: 2:15
#2 - Duke Ellington :: Limbo Jazz :: 5:14
#3 - Peter Gabriel :: Zaar :: 2:59
+0.2s to create playlist
James did a nice two-way search for his solution - instead of walking
an ever-broadening possibility tree going from the start to the
finish, he has the finish also start branching out at the same time
until they meet. From a geometric perspective, a circle centered on
the start point and touching the end point will cover twice the area
of two circles centered on each point which just touch each other.
This would seem to me to be an obvious benefit from both a speed and
memory standpoint. (I had originally thought I would do something
like this, but couldn't come up with a clear idea of how to implement
it.)
I particularly like the incredible simplicity of James' code that
does the work:
until (join_node = start.touch?(finish))
start.grow
finish.grow
end
Ruby code can be so simple and expressive when done right! Another
nice line (from Brian's code):
connections = starts & endings
Unfortunately, when I asked James' code to find the same path as
above, it took a very long time (almost half an hour) to produce a
result. I wish I had more domain knowledge (and time) to research why
this was the case, with an algorithm that I though would be a better
performer. (It does come up with a nice terse path, however:
1: Que Sera by Ace of Base <<227422>>
2: All Through the Night by Cyndi Lauper <<269740>>
3: These Are Days by 10,000 Maniacs <<293067>>
4: Santa Cruz by David Qualey <<131053>>
5: Zaar by Peter Gabriel <<293355>>
I wanted to play more with Brian and Dave's solutions, but they also
took a very long time to finish. The first time I ran Dave's solution
it took over 2 hours and 400MB of RAM, and eventually dumped out
every playlist it could find that matched the criteria I supplied. (A
1-3 song playlist between two letters that I forget, with no time
constraints.)
As noted earlier, Dave's solution gives you the power to limit number
of songs (min, max, and target) and playlist duration (again, min,
max, and target). I wish I had thought of this - being able to take
the number of recursive depths from 26 to something like 10 helps
tremendously in terms of search space. Dave also notes that his code
is a depth-first recursion, and seeing his exclamation point in the
comment
# (recursively, depth-first(!))
makes me realize that when searching for a shortest-path algorithm, a
breadth-first search would almost certainly prove a better performer.
Damn. :)
One thing I found particularly interesting in Dave's code was his way
to specify Infinity as a starting point for a minimum-value algorithm:
result.inject(1.0/0.0) do |memo, pl|
[ memo, (pl.total_duration - target_duration).abs ].min
end
In Javascript I've done stuff like that starting out with values like
var theMin = Number.MAX_VALUE;
or
var theMin = Infinity;
and had wished for a way to do the same in Ruby. I still wish for a
nice portable Infinity constant, but Dave's solution here will do
nicely for me for the future. Thanks Dave! :)
Brian's solution version quickly finds a few shortest playlists, but
when it goes on to find an a->z playlist that's as close to 30
minutes as possible, it ... well, it's been over 3 hours and it still
hasn't finished, though it occasionally spits out progress which
looks like it found a new playlist that is a slightly better match
than the last.
Brian's code looks quite nice, however. Brian genericized his
solution to allow for any type of minimization, using his
BasicMatchEvaluator class. While the code is not documented, it would
appear that his PlaytimeEvaluator subclass uses the square of the
difference between the desired time and the actual playlist to
determine fitness. But if that's all it did, it would require finding
every solution - as it is, the #continue? method looks to be designed
to provide a customizable way to determine early on if a path is a
'dead end'.
Ilmari's solution is fast! I don't have the expertise to analyze his
implementation of "Dijkstra's graph search algorithm with a block-
customizable edge cost", but whatever it is, it works. Every solution
took less than 1 second, usually under 1/2 a second.
One optimization that I had thought of, but that nobody implemented
(as far as I could tell) was to find 'gaps'. For example, no song in
the supplied playlist ended with a 'q', so all songs that started
with 'q' could be removed. Similarly for songs beginning with 'x'.
==========================
Show the Result!
==========================
Finally, we get to the end - showing off the end result.
A few people (Gavin, Brian, Ilmari) took the messy milliseconds
duration and made them into something more human readable. Ilmari's
solution stands out in this department as particularly attractive:
Trying to find playlist from "Que Sera" to "Zaar"
Found playlist:
Que Sera (3:47) by Ace of Base
And Now Little Green Bag (0:15) by Steven Wright
Good Friends Are for Keeps (1:08) by The Carpenters
Santa Cruz (2:11) by David Qualey
Zaar (4:53) by Peter Gabriel
(Needs a fixed-width font to display as intended.)
==========================
Summary
==========================
As I noted, I spent far too much time working on petty details, and
didn't get to personally spend as much time playing with algorithms
and research as I would have liked. I'm quite pleased to see all the
solutions everyone submitted, because they showcase various nice Ruby-
isms and programming styles. (Blocks and procs, or custom classes,
used to turn a specific algorithm into a nice generic solution that
can use all sorts of criteria for what a good playlist is.)
I've focused on performance a lot during this summary. The point was
certainly not to write the fastest solution possible; however, in
playing with these sorts of NP-complete[2] problems you sometimes
HAVE to think about speed just to get a solution in a time that isn't
measured in years.
I hope you all had fun playing with this very common, very difficult
problem, even if it was disguised in sheep's clothing. :)
[1] http://c2.com/cgi/wiki?PrematureOptimization
[2] http://en.wikipedia.org/wiki/NP-complete : Some flavors of this
quiz (such as "shortest playlist") are not NP-complete, but I think
other flavors ("playlist closest to 30 minutes") are.