[#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] Amazing Mazes (#31)
Wow, these solutions are great fun to play with. I think next week's quiz needs
to give me a little man icon and some controls! Throw in some doors, some keys,
and little critters to chase me around and there's simply no chance at all I
would get a summary written next week. Hmm, maybe it's not such a good idea.
Jokes aside, do run the solutions a few times each this week. It's fun to see
what they build. Then peek inside the code and read the comments. Good stuff
in there.
Below, I want to look into Dominik Bathon's code. It is a nice search and
lightning quick! On my machine, it makes and solves quizzes faster than the
other solutions can just make them. Even better, it uses a complex internal
representation (mainly for speed), yet still comes out with clean algorithms. I
was quite impressed by that.
Let's get to the code. Dominik starts off by defining a helper method in Hash:
class Hash
# find the key for with the smallest value, delete it and return it
def delete_min_value
return nil if empty?
minkey=min=nil
each { |k, v|
min, minkey=v, k if !min || v<min
}
delete(minkey)
minkey
end
end
# ...
The comment pretty much explains what's going on there. Each pair of the Hash
is compared by value. The pair with the lowest value is deleted and the key for
that value is returned.
On to the interesting parts. Here's the start of the main class used by the
solution:
# Maze represents the maze ;-)
#
# Cells/positions in the maze are represented by Numbers
# (from 0 to w*h-1), each position corresponds to x/y coordinates,
# you can convert between positions and coordinates by coord2pos
# and pos2coord.
#
# The walls for each position are stored in the String @data. The walls
# for position p are stored in the first two bits of @data[p], the
# other bits are unused. If bit one is set then p has a north wall, if
# bit two is set then p has a west wall.
#
# Maze#generate generates a (random) maze using the method described at
# http://www.mazeworks.com/mazegen/mazetut/
#
# Maze#shortest_path uses Dijkstra's shortest path algorithm, so it can
# not anly find shortest pathes in perfect mazes, but also in mazes
# where different pathes between two position exist.
class Maze
attr_reader :w, :h # width, height
def initialize(w, h)
@w, @h=[w, 1].max, [h, 1].max
@wh=@w*@h
@neighbors_cache={}
set_all_walls
end
# ...
I know that section is mostly a comment, but you'll want to read through it.
It's interesting information and it introduces you to the internal format the
code uses.
After that, we see some readers defined and some simple initialization work.
Set a width and height, ensuring they are both at least 1. Nice use of max()
there. Calculate width times height or the total number of cells, initialize a
cache and call set_all_walls().
That means we need some more code:
# ...
def set_all_walls
# set all bits
@data=3.chr * (@wh)
nil
end
def clear_all_walls
# all except outer border
@data=0.chr * (@wh)
# set north walls of row 0
w.times { |i| @data[i] |= 1 }
# set west walls of col 0
h.times { |i| @data[i*w] |= 2 }
nil
end
# ...
Okay, now we start to get tricky. Remember the initial comment about using bits
for the walls. We're only tracking two walls here, north and west. Of course
cells can still have up to four walls, but your east wall is just your
neighbor's west wall and your south wall is the north wall for the cell below
you.
Now, what do you get if you turn two bits on? 3. The set_all_walls() method
just translates that to a character and duplicates it for every cell. That
gives us a String representing the entire maze with all the walls turned on.
That should make clear_all_walls() more obvious. This time we want no walls so
we don't set any bits. Translate 0 to a character and duplicate. However, we
still need the edges of the maze. All cells in the top row need a north wall
(set the 1 bit). Then all the cells in the first column need a west wall (set
the 2 bit). That makes up the rest of the method.
Ready for the next chunk?
# ...
# positions in path will be printed as "X"
def to_s(path=[])
ph={}
path.each { |i| ph[i]=true }
res=""
h.times { |y|
w.times { |x|
res << "+" << ( (@data[y*w+x] & 1 > 0) ? "---" :
" " )
}
res << "+\n"
w.times { |x|
res << ((@data[y*w+x] & 2 > 0) ? "|" : " ")
res << (ph[y*w+x] ? " X " : " ")
}
res << "|\n"
}
res << ("+---"*w) << "+"
end
def inspect
"#<#{self.class.name} #{w}x#{h}>"
end
# ...
The to_s() method draws mazes. The first two lines fill a Hash with the
solution path, if one is given. The Hash is indexed identically as the maze
String and values can be true (if it's on the path) or the default nil, (when
it's not).
The rest of that method does the drawing. It walks row by row with h.times(),
down the maze drawing cells. The first w.times() call handles the north walls.
First it adds a "+", then it adds "---" if the 1 bit is set or " " if it's
not. Next we need another "+" and a "\n". Now the second w.times() block
handles the west wall and path. First it checks to see if the 2 bit is set for
the current cell, outputting "|" if it is and " " if it's not. Then the path is
checked. If this cell is on the path, it's filled with " X " and if it's not,
the code adds a " ".
The last two lines of the method are important. They ensure a final "|" is
always added to the end of a row and a final "+---" is placed at the end each
column of the maze. This handles the east and south borders of the maze, which
are not covered by the bits.
The other method, inspect(), just returns a class name, width and height.
# ...
# maze positions are cell indices from 0 to w*h-1
# the following functions do conversions to and from coordinates
def coord2pos(x, y)
(y % h)*w+(x % w)
end
def pos2coord(p)
[p % w, (p/w) % h]
end
# ...
These convertors were explained in the initial comment and they are explained
again here. No surprises there.
# returns valid neighbors to p, doesn't care about walls
def neighbors(p)
if ce=@neighbors_cache[p]; return ce; end
res=[p-w, p+w]
res << p-1 if p%w > 0
res << p+1 if p%w < w-1
@neighbors_cache[p] = res.find_all { |t| t>=0 && t<@wh }
end
This returns the indices of the up to four neighboring cells. It caches this
lookup the first time it does it, since it will never change. The first line
just uses the cache if it has already been figured. The second line adds the
cell above and the cell below. Note that these numbers are found by simple math
and could be outside the bounds of the maze. The next two lines add the left
and right cells. We're more careful with our math here, because a wrong answer
could look right: The last cell of the first row is "left" of the first cell of
the second row, in our one dimensional String that holds the maze data. The
final line, stores the indices to the cache and returns them, after using
find_all() to eliminate any bogus number that crept in.
# ...
def wall_between?(p1, p2)
p1, p2=[p1, p2].sort
if p2-p1==w # check north wall of p2
@data[p2] & 1 > 0
elsif p2-p1==1 # check west wall of p2
@data[p2] & 2 > 0
else
false
end
end
def set_wall(p1, p2)
p1, p2=[p1, p2].sort
if p2-p1==w # set north wall of p2
@data[p2] |= 1
elsif p2-p1==1 # set west wall of p2
@data[p2] |= 2
end
nil
end
def unset_wall(p1, p2)
p1, p2=[p1, p2].sort
if p2-p1==w # unset north wall of p2
@data[p2] &= ~1
elsif p2-p1==1 # unset west wall of p2
@data[p2] &= ~2
end
nil
end
# ...
These three methods are all very similar. Given two cells, the first checks if
there is a wall between them, the second sets the wall between them, and the
third unsets it. The if's just figure out if we are talking about a north wall
or a west wall. The rest is bit testing or setting.
On to maze generation:
# ...
# generate a (random) perfect maze
def generate(random=true)
set_all_walls
# (random) depth first search method
visited={0 => true}
stack=[0]
until stack.empty?
n=neighbors(stack.last).reject { |p| visited[p] }
if n.empty?
stack.pop
else
# choose one unvisited neighbor
np=n[random ? rand(n.size) : 0]
unset_wall(stack.last, np)
visited[np]=true
# if all neighbors are visited then here is
# nothing left to do
stack.pop if n.size==1
stack.push np
end
end
self
end
# ...
This algorithm came out very clean, I think. Not a bit operation in sight.
First it turns all the walls on. Then it sets up an Array for tracking visited
cells and another as a stack to drive the process. While there is something on
the stack, the code looks at each not-yet-visited neighbor. If there are no
neighbors in that set, the stack is popped and the routine moves on. However,
if there are, one is chosen at random and the wall is knocked out between them.
If that neighbor was the last unvisited one for this cell, the code pops the
current cell off the stack. The neighbor cell is set to visited and pushed onto
the stack, moving the build process to that location for the next iteration.
That covers creation. Now we need a solver:
# ...
# central part of Dijkstra's shortest path algorithm:
# returns a hash that associates each reachable (from start)
# position p, with the previous position on the shortest path
# from start to p and the length of that path.
# example: if the shortest path from 0 to 2 is [0, 1, 2], then
# prev[2]==[1, 2], prev[1]==[0, 1] and prev[0]==[nil, 0].
# so you can get all shortest paths from start to each reachable
# position out of the returned hash.
# if stop_at!=nil the method stops when the previous cell on the
# shortest path from start to stop_at is found.
def build_prev_hash(start, stop_at=nil)
prev={start=>[nil, 0]} # hash to be returned
return prev if stop_at==start
# positions which we have seen, but we are not yet sure about
# the shortest path to them (the value is length of the path,
# for delete_min_value):
active={start=>0}
until active.empty?
# get the position with the shortest path from the
# active list
cur=active.delete_min_value
return prev if cur==stop_at
newlength=prev[cur][1]+1 # path to cur length + 1
# for all reachable neighbors of cur, check if we found
# a shorter path to them
neighbors(cur).each { |n|
# ignore unreachable
next if wall_between?(cur, n)
if old=prev[n] # was n already visited
# if we found a longer path, ignore it
next if newlength>=old[1]
end
# (re)add new position to active list
active[n]=newlength
# set new prev and length
prev[n]=[cur, newlength]
}
end
prev
end
# ...
I really don't think I need to launch into too deep an explanation here as the
comments guide you right through it. The short story is that this method
branches out from a starting cell, walking to each neighbor and always counting
its steps. While doing this, it is building the Hash described in the first
comment, which points to the cell that came before on the shortest path. Using
that Hash, returned by this method, you can easily construct the shortest path
to any cell the algorithm visited. Handy stuff! Let's see how it gets put to
use:
# ...
def shortest_path(from, to)
prev=build_prev_hash(from, to)
if prev[to]
# path found, build it by following the prev hash from
# "to" to "from"
path=[to]
path.unshift(to) while to=prev[to][0]
path
else
nil
end
end
# ...
Given a starting and ending cell, this returns just what the name implies. It
builds the magic Hash we just looked at on the first line, then just walks the
path in reverse until it reaches the start (nil in the Hash). Again, clean and
simple. Nice coding Dominik.
Let's look at the other search the code provides:
# ...
# finds the longest shortest path in this maze, only works if
# there is at least one position that can only reach one
# neighbor, because we search only starting at those positions.
def longest_shortest_path
startp=endp=nil
max=-1
@wh.times { |p|
# if current p can only reach 1 neighbor
if neighbors(p).reject { |n|
wall_between?(p, n)
}.size==1
prev=build_prev_hash(p)
# search longest path from p
tend, tmax=nil, -1
prev.each { |k, v|
if v[1]>tmax
tend=k
tmax=v[1]
end
}
if tmax>max
max=tmax
startp, endp=p, tend
end
end
}
if startp # path found
shortest_path(startp, endp)
else
nil
end
end
end
# ...
This method walks the maze, looking for cells that are dead-ends. From each of
those, it builds the path Hash and checks the lengths of each path found. In
the end, it will return the longest path it saw.
Just a little more code is needed for human interface:
# ...
if $0 == __FILE__
ARGV.shift if search_longest=ARGV[0]=="-l"
w, h, from, to=ARGV
m=Maze.new(w.to_i, h.to_i)
m.generate
puts "Maze:", m.to_s
if from=~/(\d+),(\d+)/
p1=m.coord2pos($1.to_i, $2.to_i)
else
p1=rand(m.w*m.h)
end
if to=~/(\d+),(\d+)/
p2=m.coord2pos($1.to_i, $2.to_i)
else
p2=rand(m.w*m.h)
end
path=m.shortest_path(p1, p2)
puts "\nShortest path from #{m.pos2coord(p1).inspect} to " \
"#{m.pos2coord(p2).inspect}:", m.to_s(path)
if search_longest
path=m.longest_shortest_path
puts "\nLongest shortest path (from " \
"#{m.pos2coord(path[0]).inspect} to " \
"#{m.pos2coord(path[-1]).inspect}:",
m.to_s(path)
end
end
This is just option parsing and display. The code checks for a special first
"-l" option, which just sets a flag to add the long search.
The next chunk reads a width and height then builds and displays a maze of the
indicated size. The code next reads from and to cells for a solution search,
if they where provided. Random coordinates are used when from or to cells are
absent. Note the use of the coord2pos() convertor in here.
Finally, the shortest path is displayed. The longer search is also added, if
requested. Dominik uses an unusual Ruby idiom here, "string" "string". Ruby
will concatenate these, even without the + between them. (I didn't know this!)
However, the rumor is that this feature may vanish in a future version of Ruby,
so it's probably not a good habit to get into.
My thanks to those who braved the mazes this week. Really interesting (and
fun!) solutions were given by all.
Tomorrow's quiz is a little client and server fun, care of Pat Eyler's
children...