[#124921] One-Click Installer 182-14 Final -- Happy New Year! — "Curt Hibbs" <curt@...>

Finally, after what seemed to be an endless series

36 messages 2005/01/01
[#125109] Re: [ANN] One-Click Installer 182-14 Final -- Happy New Year! — "Johan Nilsson" <johan.nilsson@...> 2005/01/04

[#125120] Re: [ANN] One-Click Installer 182-14 Final -- Happy New Year! — "Curt Hibbs" <curt@...> 2005/01/04

Johan Nilsson wrote:

[#125147] Re: [ANN] One-Click Installer 182-14 Final -- Happy New Year! — "Johan Nilsson" <johan.nilsson@...> 2005/01/05

[#125263] Re: [ANN] One-Click Installer 182-14 Final -- Happy New Year! — Mark Smith <maslists@...> 2005/01/06

Johan Nilsson said the following on 1/5/2005 2:08 AM:

[#125300] Re: [ANN] One-Click Installer 182-14 Final -- Happy New Year! — "Curt Hibbs" <curt@...> 2005/01/06

Mark Smith wrote:

[#125355] Re: [ANN] One-Click Installer 182-14 Final -- Happy New Year! — Stephan K舂per <Stephan.Kaemper@...> 2005/01/06

Curt Hibbs wrote:

[#124940] RubyGems 0.8.4 — Chad Fowler <chadfowler@...>

= Announce: RubyGems Release 0.8.4

54 messages 2005/01/01
[#125112] Re: [ANN] RubyGems 0.8.4 — Paul Duncan <pabs@...> 2005/01/04

* Chad Fowler (chadfowler@gmail.com) wrote:

[#125114] Ruby JOBS all around the world — MiG <mig@1984.cz> 2005/01/04

[#125122] Re: Ruby JOBS all around the world — Lothar Scholz <mailinglists@...> 2005/01/04

Hello MiG,

[#125152] Re: Ruby JOBS all around the world — Premshree Pillai <premshree.pillai@...> 2005/01/05

On Wed, 5 Jan 2005 07:47:49 +0900, Lothar Scholz

[#125155] Re: Ruby JOBS all around the world — "Eustaquio Rangel de Oliveira Jr." <eustaquiorangel@...> 2005/01/05

-----BEGIN PGP SIGNED MESSAGE-----

[#125166] Re: Ruby JOBS all around the world — Mikael Brockman <mikael@...> 2005/01/05

"Eustaquio Rangel de Oliveira Jr." <eustaquiorangel@yahoo.com> writes:

[#125172] Re: Ruby JOBS all around the world — "Eustaquio Rangel de Oliveira Jr." <eustaquiorangel@...> 2005/01/05

-----BEGIN PGP SIGNED MESSAGE-----

[#125066] Seeking info on keyword parameters — "itsme213" <itsme213@...>

Will 2.0 make the names of keyword parameters available via reflection?

26 messages 2005/01/04
[#125067] Re: Seeking info on keyword parameters — Yukihiro Matsumoto <matz@...> 2005/01/04

Hi,

[#125073] Re: Seeking info on keyword parameters — gabriele renzi <rff_rff@...> 2005/01/04

Yukihiro Matsumoto ha scritto:

[#125075] Re: Seeking info on keyword parameters — Yukihiro Matsumoto <matz@...> 2005/01/04

Hi,

[#125142] what's the Ruby way to do this? — Miles Keaton <mileskeaton@...>

What's the Ruby way to do this?

16 messages 2005/01/05

[#125159] foxGUIb - Interactive Fox GUI Builder and Code Generator — "henon (meinrad recheis)" <meinrad.recheis__nospam__@...>

foxGUIb is an interactive gui builder for fxruby written entirely in Ruby.

36 messages 2005/01/05
[#125171] Re: [ANN] foxGUIb - Interactive Fox GUI Builder and Code Generator — "Luis G. Gez" <lgomez@...> 2005/01/05

I get:

[#125206] Ruby Data Structure Query Abstractions/Patterns — Nicholas Van Weerdenburg <vanweerd@...>

Hi all,

16 messages 2005/01/05

[#125234] Shopping cart ... — Sarah Tanembaum <sarahtanembaum@...>

Is there any good(secure) Ruby shopping cart program example? Thanks

29 messages 2005/01/05

[#125236] Image decompression, eruby — Belorion <belorion@...>

I am working on a website with a MySQL backend. The site allows

15 messages 2005/01/05

[#125237] Return from a block? — Howard Lewis Ship <hlship@...>

I've had a couple of places where I really needed to just return from

17 messages 2005/01/05

[#125271] Ruby design question: lazy construction of object graph containing forward references — "itsme213" <itsme213@...>

Seeking help, Ruby gurus ...

11 messages 2005/01/06

[#125399] Collecting list of most wanted libraries and apps to port to ruby — Thursday <nospam@...>

I think it might be a good idea for us to collect feedback on the most

42 messages 2005/01/07
[#125451] Re: Collecting list of most wanted libraries and apps to port to ruby — PA <petite.abeille@...> 2005/01/07

[#125427] LCD Numbers (#14) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

28 messages 2005/01/07

[#125460] Ruby on AIX? — Andreas Semt <as@...>

Hello list!

20 messages 2005/01/07

[#125474] RubyForge themes — Tom Copeland <tom@...>

Howdy -

23 messages 2005/01/07

[#125528] Construct [*nil] works differently in 1.6 and 1.8 — Gennady Bystritksy <gfb@...>

Hi, rubyists

13 messages 2005/01/07

[#125594] Type inference in ruby — "Trevor Andrade" <trevor.andrade@...>

Hello all,

25 messages 2005/01/08

[#125682] Python vs Ruby — Lethalman <lethalman@...>

(sorry for my poor English)

93 messages 2005/01/09
[#125729] Re: Python vs Ruby — Lothar Scholz <mailinglists@...> 2005/01/09

Hello Lethalman,

[#125730] Re: Python vs Ruby — Premshree Pillai <premshree.pillai@...> 2005/01/09

On Mon, 10 Jan 2005 04:06:40 +0900, Lothar Scholz

[#125736] Re: Python vs Ruby — Lothar Scholz <mailinglists@...> 2005/01/09

Hello Premshree,

[#125767] Serious programmers and syntax (was Re: Python vs Ruby) — David Heinemeier Hansson <david@...> 2005/01/09

> IMHO the different syntax shouldn't be an argument for a "serious"

[#125957] Re: Serious programmers and syntax (was Re: Python vs Ruby) — Douglas Livingstone <rampant@...> 2005/01/10

> > IMHO the different syntax shouldn't be an argument for a "serious"

[#125789] Re: Python vs Ruby — Thursday <nospam@...> 2005/01/10

Lethalman wrote:

[#125810] Re: Python vs Ruby — Premshree Pillai <premshree.pillai@...> 2005/01/10

On Mon, 10 Jan 2005 11:56:22 +0900, Thursday

[#125871] Re: Python vs Ruby — Yukihiro Matsumoto <matz@...> 2005/01/10

Hi,

[#125850] Re: Python vs Ruby — "benjamin.ferrari" <benjamin.ferrari@...> 2005/01/10

[#125734] Ruby Quiz #14 LCD Numbers ( solution #2 ) — email55555 email55555 <email55555@...>

Wow ... Jannis Harder's solution is really short ....

17 messages 2005/01/09

[#125798] Duck Typing as Pattern Matching — "itsme213" <itsme213@...>

I am not a type-system expert, but I started thinking about Ruby-based duck

27 messages 2005/01/10

[#125817] Immediate values — "Eustaquio Rangel de Oliveira Jr." <eustaquiorangel@...>

-----BEGIN PGP SIGNED MESSAGE-----

33 messages 2005/01/10

[#125995] why dosn't ruby support // to comment? — "bin liu" <ruby@3cn.com.cn>

i think use keyboard type "//" is fast than "#" to comment one line code.

28 messages 2005/01/11

[#126015] mod_ruby & rails doc? — Aquila <braempje@...>

Is there a place where I can find information on using mod_ruby? A single

14 messages 2005/01/11

[#126064] Soks - Yet Another Wiki — Thomas Counsell <tamc2@...>

http://rubyforge.org/projects/soks/

33 messages 2005/01/11
[#126065] Re: [ANN] Soks - Yet Another Wiki — Florian Gross <flgr@...> 2005/01/11

Thomas Counsell wrote:

[#126081] Net::SSH 0.9.0 — Jamis Buck <jamis_buck@...>

Net::SSH is a pure-Ruby implementation of an SSH2-compatible client.

12 messages 2005/01/11

[#126103] Comparing two files for equality — Edgardo Hames <ehames@...>

Hi everybody,

13 messages 2005/01/12

[#126112] Ruby on Rails tutorial FAILED on Windows ... — Sarah Tanembaum <sarahtanembaum@...>

I follow the Ruby on Rail documentation, it works up to list method.

10 messages 2005/01/12

[#126136] Nitro + Og 0.8.0 — "George Moschovitis" <george.moschovitis@...>

Hello everyone,

14 messages 2005/01/12

[#126149] Webrick, erb, and .rhtml — Belorion <belorion@...>

I am trying to get a basic Webrick server running to serve up .rhtml

14 messages 2005/01/12

[#126273] Nemo 0.1.0 + Wee 0.4.0 — Michael Neumann <mneumann@...>

Hi Rubyists,

24 messages 2005/01/13

[#126292] Proliferation of web frameworks — Carl Youngblood <carlwork@...>

I don't know about you guys, but I'm starting to be overwhelmed by the

38 messages 2005/01/13
[#126298] Re: Proliferation of web frameworks — "George Moschovitis" <george.moschovitis@...> 2005/01/13

> I don't know about you guys, but I'm starting to be overwhelmed by

[#126303] Re: Proliferation of web frameworks — Lothar Scholz <mailinglists@...> 2005/01/13

Hello George,

[#126304] Re: Proliferation of web frameworks — PA <petite.abeille@...> 2005/01/13

[#126315] Mutable strings — "Mystifier" <mystifier@...>

Hi All,

20 messages 2005/01/13
[#126346] Re: Mutable strings — Nikolai Weibull <mailing-lists.ruby-talk@...> 2005/01/13

* Mystifier (Jan 13, 2005 19:50):

[#126332] Web Testing in Ruby — Laurent Julliard <laurent__nospam__@...>

Sorry if this question has already been asked 200 times... I'm trying

19 messages 2005/01/13
[#126337] Re: [Q] Web Testing in Ruby — stevetuckner <stevetuckner@...> 2005/01/13

Laurent Julliard wrote:

[#126338] Re: [Q] Web Testing in Ruby — Dick Davies <rasputnik@...> 2005/01/13

* stevetuckner <stevetuckner@usfamily.net> [0124 21:24]:

[#126343] ruby-gnome2 : problem with signal "insert-text" — oxman <no@...>

Hello,

22 messages 2005/01/13
[#126434] Re: ruby-gnome2 : problem with signal "insert-text" — Peter Stuifzand <peter.stuifzand@...> 2005/01/14

On Fri, 14 Jan 2005 07:01:14 +0900, oxman <no@in-your-dream.net> wrote:

[#126454] Re: ruby-gnome2 : problem with signal "insert-text" — oxman <no@...> 2005/01/14

Thanks.

[#126538] Re: ruby-gnome2 : problem with signal "insert-text" — oxman <no@...> 2005/01/15

Humm, after many test, I see my code is executed immediately.

[#126554] Re: ruby-gnome2 : problem with signal "insert-text" — "Michael C. Libby" <mcl-ruby-talk@...> 2005/01/15

On Sat, Jan 15, 2005 at 06:36:17PM +0900, oxman wrote:

[#126564] Re: ruby-gnome2 : problem with signal "insert-text" — oxman <no@...> 2005/01/15

It don't work.

[#126569] Re: ruby-gnome2 : problem with signal "insert-text" — "Michael C. Libby" <mcl-ruby-talk@...> 2005/01/15

On Sat, Jan 15, 2005 at 10:21:10PM +0900, oxman wrote:

[#126574] Re: ruby-gnome2 : problem with signal "insert-text" — oxman <no@...> 2005/01/15

The code :

[#126392] A patch for irb, where to submit? — Csaba Henk <csaba@..._for_avoiding_spam.org>

Hi!

12 messages 2005/01/14

[#126411] Duck Typing and automated Conversions — "Robert Klemme" <bob.news@...>

41 messages 2005/01/14

[#126450] Animal Quiz (#15) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

13 messages 2005/01/14

[#126521] Re: why dosn't ruby support // to comment? — E S <eero.saynatkari@...>

> L臧ett臻篋 nobu.nokada@softhome.net

12 messages 2005/01/15

[#126572] Pimki 1.4 — "Assaph Mehr" <assaph@...>

Pimki 1.4.092 highights:

15 messages 2005/01/15

[#126581] Ruby CMS — Luke Galea <lgalea@...>

Hi Rubyists:

20 messages 2005/01/15

[#126639] Fwd: [suby-ruby] Your all time desired fundemental Ruby mod — "trans. (T. Onoma)" <transami@...>

I'm taking a little poll.

94 messages 2005/01/16
[#126681] Re: Fwd: [suby-ruby] Your all time desired fundemental Ruby mod — "David A. Black" <dblack@...> 2005/01/16

Hi --

[#126690] Re: Fwd: [suby-ruby] Your all time desired fundemental Ruby mod — "trans. (T. Onoma)" <transami@...> 2005/01/16

On Sunday 16 January 2005 07:35 am, David A. Black wrote:

[#126694] Re: Fwd: [suby-ruby] Your all time desired fundemental Ruby mod — "David A. Black" <dblack@...> 2005/01/16

Hi --

[#126824] Re: Fwd: [suby-ruby] Your all time desired fundemental Ruby mod — "trans. (T. Onoma)" <transami@...> 2005/01/17

On Sunday 16 January 2005 09:09 am, David A. Black wrote:

[#126842] Re: Fwd: [suby-ruby] Your all time desired fundemental Ruby mod — "David A. Black" <dblack@...> 2005/01/17

Hi --

[#126851] Re: Fwd: [suby-ruby] Your all time desired fundemental Ruby mod — "trans. (T. Onoma)" <transami@...> 2005/01/17

On Monday 17 January 2005 08:20 am, David A. Black wrote:

[#126852] Re: Fwd: [suby-ruby] Your all time desired fundemental Ruby mod — "David A. Black" <dblack@...> 2005/01/17

Hi --

[#126857] Re: Fwd: [suby-ruby] Your all time desired fundemental Ruby mod — "trans. (T. Onoma)" <transami@...> 2005/01/17

On Monday 17 January 2005 09:21 am, David A. Black wrote:

[#126684] Re: [suby-ruby] Your all time desired fundemental Ruby mod — Jim Menard <jimm@...> 2005/01/16

On Jan 15, 2005, at 7:23 PM, trans. (T. Onoma) wrote:

[#126649] Bug#290705: ruby: Ruby is completly vivisected. — Trevor Wennblom <wenn0029@...>

Package: ruby

14 messages 2005/01/16

[#126720] which gui toolkit — thegandhi@..._CUTHERE (Gandhi)

Sorry if this question comes up often,

20 messages 2005/01/16

[#126811] Creating an instance from a variable — Peter Hickman <peter@...>

I have a class like this:

18 messages 2005/01/17

[#126843] is defined? fast? — "George Moschovitis" <george.moschovitis@...>

Hello everyone, I have a simple question:

17 messages 2005/01/17

[#126911] My regexp stupidity needs assistance before loose all my hair! — "trans. (T. Onoma)" <transami@...>

Let me painfully honest: I hate parsing, especially w/ regexp, and I don't

22 messages 2005/01/17
[#126914] Re: My regexp stupidity needs assistance before loose all my hair! — Zach Dennis <zdennis@...> 2005/01/17

trans. (T. Onoma) wrote:

[#126937] Re: Ignoring RUBYOPT ? — E S <eero.saynatkari@...>

14 messages 2005/01/17

[#127002] Ruby Weekly News 10th - 16th January 2005 — timsuth@... (Tim Sutherland)

http://www.rubygarden.org/ruby?RubyNews/2005-01-10

10 messages 2005/01/18

[#127024] Goodle Groups and My New Address — tsawyer@...

Just an FYI I will be moving all my email activity to my gmail address

16 messages 2005/01/18
[#127046] Re: Goodle Groups and My New Address — Craig Moran <craig.m.moran.ruby@...> 2005/01/18

I am using this Google email addy specifically for the Ruby ML and

[#127057] value by reference — Mohammad Khan <mkhan@...>

Before telling my issue, let me show my script:

71 messages 2005/01/18
[#127058] Re: value by reference — "trans." <tsawyer@...> 2005/01/18

I beleive it is by reference, the problem is you need to modify

[#127090] Re: value by reference — "trans." <tsawyer@...> 2005/01/19

Sorry. #succ does not act inplace and nothing does on Fixnum. Its been

[#127121] Re: value by reference — Florian Gross <flgr@...> 2005/01/19

trans. wrote:

[#127127] Re: value by reference — Glenn Parker <glenn.parker@...> 2005/01/19

Florian Gross wrote:

[#127131] Re: value by reference — "David A. Black" <dblack@...> 2005/01/19

Hi --

[#127135] Re: value by reference — Michel Martens <blaumag@...> 2005/01/19

It's easy to accomplish this task with strings:

[#127137] Re: value by reference — "David A. Black" <dblack@...> 2005/01/19

Hi --

[#127139] Re: value by reference — Michel Martens <blaumag@...> 2005/01/19

On Thu, 20 Jan 2005 00:19:13 +0900, David A. Black <dblack@wobblini.net> wrote:

[#127128] Re: value by reference — "trans." <tsawyer@...> 2005/01/19

Right. I'm not suggesting that Ruby change this. I'm just wondering if

[#127147] Re: value by reference — Mohammad Khan <mkhan@...> 2005/01/19

#!/usr/bin/env ruby

[#127064] aeditor-2.1 (megacorp release) — Simon Strandgaard <neoneye@...>

shots:

11 messages 2005/01/18

[#127086] 1.8.2 - conituations memory leak fixed? — "Wilkes" <wilkesjoiner@...>

Is this still an issue with the "official" release?

15 messages 2005/01/19

[#127313] Open Source Licenses against Software Patents — Pit Capitain <pit@...>

Applying for a new RubyForge project is harder than I thought :-), cause I have

15 messages 2005/01/20

[#127316] Confused about variable "declarations" — Graham Nicholls <graham@...>

19 messages 2005/01/20

[#127407] Fwd: OSCON Call For Proposals Now Open — Chad Fowler <chadfowler@...>

Hi All. Attached is the announcement for this year's Oreilly Open

24 messages 2005/01/20
[#127433] Re: OSCON Call For Proposals Now Open — David Heinemeier Hansson <david@...> 2005/01/21

> We want _everyone_ to be talking about the Ruby track this year. :)

[#127437] Ta-da list (Was: Re: OSCON Call For Proposals Now Open) — Jordi Bunster <jordi@...> 2005/01/21

[#127455] Re: [Rails] ONLamp article on Rails — "Curt Hibbs" <curt@...>

Marcel Molina Jr. wrote:

23 messages 2005/01/21

[#127465] Xpath like syntax — Luke Galea <lgalea@...>

Hi all,

18 messages 2005/01/21

[#127512] Paper Rock Scissors (#16) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

30 messages 2005/01/21

[#127513] Refernce objects — Richard Turner <richard@...>

Hi,

14 messages 2005/01/21

[#127580] Installation trouble — Ghislain MARY <nospam@...>

Hi all,

24 messages 2005/01/21

[#127596] Reasons to consider learning Ruby? — Preston Crawford <me@...>

I'm completely new to Ruby and Python. I'd like to learn another language

17 messages 2005/01/21

[#127599] Use of scaffolding in the ONLamp Rails tutorial — Lyle Johnson <lyle.johnson@...>

I'm going through Curt's excellent Rails tutorial (at

10 messages 2005/01/21

[#127657] Ruby for mobile phones? — "cyberco" <cyberco@...>

Hi,

14 messages 2005/01/22

[#127733] looking at ruby... — Sean T Allen <sean@...>

So I'm looking at ruby for both personal and work projects.

32 messages 2005/01/23
[#127744] Re: looking at ruby... — Eric Hodel <drbrain@...7.net> 2005/01/23

On 22 Jan 2005, at 20:03, Sean T Allen wrote:

[#127745] Re: looking at ruby... — Lothar Scholz <mailinglists@...> 2005/01/23

Hello Eric,

[#127821] Re: looking at ruby... — Eric Hodel <drbrain@...7.net> 2005/01/23

On 22 Jan 2005, at 23:57, Lothar Scholz wrote:

[#127780] Self and Ruby Comparisons — "Mystifier" <mystifier@...>

Hi

39 messages 2005/01/23
[#127865] Re: Self and Ruby Comparisons — Csaba Henk <csaba@..._for_avoiding_spam.org> 2005/01/24

On 2005-01-23, Mystifier <mystifier@users.berlios.de> wrote:

[#127790] TCPSocket.new blocks other threads — "christoph.heindl@..." <christoph.heindl@...>

hi,

14 messages 2005/01/23

[#127899] attr — "Trans" <transfire@...>

In the upcoming release of Ruby Carats I have a little lib called

38 messages 2005/01/24

[#127951] New user questions — "brundlefly76" <chris.schoenfeld@...>

I have been a production Perl programmer for about 10 years, and am

19 messages 2005/01/24

[#127966] Convert a Hash into an Array — "Eustaquio Rangel de Oliveira Jr." <eustaquiorangel@...>

-----BEGIN PGP SIGNED MESSAGE-----

22 messages 2005/01/24

[#127973] "Duck Typing" or "No need for abstract classes" — Edgardo Hames <ehames@...>

Hi, you all.

47 messages 2005/01/24
[#128038] Re: "Duck Typing" or "No need for abstract classes" — Mathieu Bouchard <matju@...> 2005/01/25

[#128061] Re: "Duck Typing" or "No need for abstract classes" — Curt Sampson <cjs@...> 2005/01/25

On Tue, 25 Jan 2005, Mathieu Bouchard wrote:

[#128317] Re: "Duck Typing" or "No need for abstract classes" — Mathieu Bouchard <matju@...> 2005/01/26

[#128445] Re: Type Inference — "Robert Klemme" <bob.news@...> 2005/01/27

[#128589] Re: Type Inference — Curt Sampson <cjs@...> 2005/01/27

On Thu, 27 Jan 2005, Robert Klemme wrote:

[#127978] Re: RubyConf '05 — "Harry Ohlsen" <Harry_Ohlsen@...>

> I think we've got date and time figured out,

44 messages 2005/01/24
[#128000] Re: RubyConf '05 — "David A. Black" <dblack@...> 2005/01/25

Hi --

[#128081] Re: RubyConf '05 — Chad Fowler <chadfowler@...> 2005/01/25

On Tue, 25 Jan 2005 10:33:09 +0900, David A. Black <dblack@wobblini.net> wrote:

[#128094] Re: RubyConf '05 — "Jim Weirich" <jim@...> 2005/01/25

[#128122] Re: RubyConf '05 — Austin Ziegler <halostatue@...> 2005/01/25

On Tue, 25 Jan 2005 23:44:33 +0900, Jim Weirich <jim@weirichhouse.org> wrote:

[#128130] Re: RubyConf '05 — Nicholas Van Weerdenburg <vanweerd@...> 2005/01/25

On Wed, 26 Jan 2005 01:00:33 +0900, Austin Ziegler <halostatue@gmail.com> wrote:

[#128526] Re: RubyConf '05 — "martinus" <martin.ankerl@...> 2005/01/27

Consider all Rubyists compressed in one point in space time - this

[#128647] Re: RubyConf '05 — Ralf =?ISO-8859-15?Q?M=FCller?= <r_mueller@...> 2005/01/28

On Fri, 28 Jan 2005 02:50:54 +0900

[#129706] Physics of black holes (Was: RubyConf '05) — "Josef 'Jupp' Schugt" <jupp@...> 2005/02/04

Ralf Mler wrote:

[#129746] Re: [OT] Physics of black holes (Was: RubyConf '05) — Eric Hodel <drbrain@...7.net> 2005/02/05

On 04 Feb 2005, at 15:32, Josef 'Jupp' Schugt wrote:

[#129907] Re: [OT] Physics of black holes (Was: RubyConf '05) — "Josef 'Jupp' Schugt" <jupp@...> 2005/02/06

Eric Hodel wrote:

[#129909] Re: [OT] Physics of black holes (Was: RubyConf '05) — Tim Bates <tim@...> 2005/02/06

Josef 'Jupp' Schugt wrote:

[#128021] top-level object? top-level methods? — "itsme213" <itsme213@...>

Is there a top-level object in any executing Ruby program? Is it the thing

17 messages 2005/01/25
[#128047] Re: top-level object? top-level methods? — Yukihiro Matsumoto <matz@...> 2005/01/25

Hi,

[#128063] Re: top-level object? top-level methods? — Matt Mower <matt.mower@...> 2005/01/25

On Tue, 25 Jan 2005 17:26:29 +0900, Yukihiro Matsumoto

[#128066] Re: top-level object? top-level methods? — ts <decoux@...> 2005/01/25

>>>>> "M" == Matt Mower <matt.mower@gmail.com> writes:

[#128067] Re: top-level object? top-level methods? — Matt Mower <matt.mower@...> 2005/01/25

On Tue, 25 Jan 2005 19:53:18 +0900, ts <decoux@moulon.inra.fr> wrote:

[#128079] Injecting methods from one class into another. — "George Moschovitis" <george.moschovitis@...>

Hello everyone,

28 messages 2005/01/25
[#128082] Re: Injecting methods from one class into another. — ts <decoux@...> 2005/01/25

>>>>> "G" == George Moschovitis <george.moschovitis@gmail.com> writes:

[#128088] Re: Injecting methods from one class into another. — "George Moschovitis" <george.moschovitis@...> 2005/01/25

> What do you expect with this ?

[#128164] A Rubyist's Dream — Benjamin Stiglitz <ben@...>

Hi, everyone. I had a dream last night that drove me to join the list

17 messages 2005/01/25

[#128314] Array::uniq { block } ? — Belorion <belorion@...>

I have an array of arrays. I want to be able to do a uniq operation

26 messages 2005/01/26

[#128318] WWW::Mechanize 0.1.0 available as Gem — Michael Neumann <mneumann@...>

The title says it all:

11 messages 2005/01/26

[#128325] When little languages grow... — Hugh Sasse Staff Elec Eng <hgs@...>

I seem to have run into my parsing problem again. Whatever I'm

53 messages 2005/01/26
[#128341] Re: When little languages grow... (long) — Mark Probert <probertm@...> 2005/01/26

Hi ..

[#128394] Error with bdb installation — Oliver Cromm <lispamateur@...>

I'm trying to use WordNet, database version, with ruby library. [1]

13 messages 2005/01/26

[#128418] Wee 0.5.0 — Michael Neumann <mneumann@...>

Hi,

19 messages 2005/01/27

[#128485] Duping a class causes error — "Trans" <transfire@...>

Maybe someone can offer me a possible reason for this. I have a set of

22 messages 2005/01/27

[#128529] Ten Things Every Java Programmer Should Know About Ruby — "Jim Weirich" <jim@...>

We will be introducing Ruby to our XP Users group in Cincinnati next week.

104 messages 2005/01/27
[#128536] Re: Ten Things Every Java Programmer Should Know About Ruby — Joao Pedrosa <joaopedrosa@...> 2005/01/27

Hi,

[#128560] Re: Ten Things Every Java Programmer Should Know About Ruby — "James G. Britt " <ruby.talk.list@...> 2005/01/27

On Fri, 28 Jan 2005 03:35:11 +0900, Joao Pedrosa <joaopedrosa@gmail.com> wrote:

[#128562] Re: Ten Things Every Java Programmer Should Know About Ruby — Zach Dennis <zdennis@...> 2005/01/27

Some of the things I like in ruby thinking directly about java... being

[#128618] Re: Ten Things Every Java Programmer Should Know About Ruby — Navindra Umanee <navindra@...> 2005/01/28

Zach Dennis <zdennis@mktec.com> wrote:

[#128625] Re: Ten Things Every Java Programmer Should Know About Ruby — Zach Dennis <zdennis@...> 2005/01/28

Navindra Umanee wrote:

[#128662] Re: Ten Things Every Java Programmer Should Know About Ruby — Peter Hickman <peter@...> 2005/01/28

Jim Weirich wrote:

[#128664] Re: Ten Things Every Java Programmer Should Know About Ruby — PA <petite.abeille@...> 2005/01/28

[#128670] Re: Ten Things Every Java Programmer Should Know About Ruby — Joao Pedrosa <joaopedrosa@...> 2005/01/28

Hi,

[#128671] Re: Ten Things Every Java Programmer Should Know About Ruby — PA <petite.abeille@...> 2005/01/28

[#128684] Re: Ten Things Every Java Programmer Should Know About Ruby — James Britt <jamesUNDERBARb@...> 2005/01/28

PA wrote:

[#128695] Re: Ten Things Every Java Programmer Should Know About Ruby — Hugh Sasse Staff Elec Eng <hgs@...> 2005/01/28

On Fri, 28 Jan 2005, James Britt wrote:

[#128709] Re: Ten Things Every Java Programmer Should Know About Ruby — "James G. Britt " <ruby.talk.list@...> 2005/01/28

On Fri, 28 Jan 2005 23:38:14 +0900, Hugh Sasse Staff Elec Eng

[#128804] Re: Ten Things Every Java Programmer Should Know About Ruby — "Keith P. Boruff" <kboruff@...> 2005/01/29

Lothar Scholz wrote:

[#128808] Re: Ten Things Every Java Programmer Should Know About Ruby — "Keith P. Boruff" <kboruff@...> 2005/01/29

Curt Hibbs wrote:

[#128541] Re: Ten Things Every Java Programmer Should Know About Ruby — Edgardo Hames <ehames@...> 2005/01/27

On Fri, 28 Jan 2005 02:55:46 +0900, Jim Weirich <jim@weirichhouse.org> wrote:

[#128550] Re: Ten Things Every Java Programmer Should Know About Ruby — "Jim Weirich" <jim@...> 2005/01/27

[#128573] Re: Ten Things Every Java Programmer Should Know About Ruby — E S <eero.saynatkari@...>

> L臧ett臻篋 "Jim Weirich" <jim@weirichhouse.org>

48 messages 2005/01/27
[#128863] Re: Ten Things Every Java Programmer Should Know About Ruby — Navindra Umanee <navindra@...> 2005/01/29

E S <eero.saynatkari@kolumbus.fi> wrote:

[#128877] Re: Ten Things Every Java Programmer Should Know About Ruby — PA <petite.abeille@...> 2005/01/29

[#128882] Re: Ten Things Every Java Programmer Should Know About Ruby — Navindra Umanee <navindra@...> 2005/01/29

PA <petite.abeille@gmail.com> wrote:

[#128884] Re: Ten Things Every Java Programmer Should Know About Ruby — PA <petite.abeille@...> 2005/01/29

[#128888] Re: Ten Things Every Java Programmer Should Know About Ruby — Navindra Umanee <navindra@...> 2005/01/29

PA <petite.abeille@gmail.com> wrote:

[#128889] Re: Ten Things Every Java Programmer Should Know About Ruby — PA <petite.abeille@...> 2005/01/29

[#128892] Re: Ten Things Every Java Programmer Should Know About Ruby — Florian Frank <flori@...> 2005/01/29

PA wrote:

[#128931] Re: Ten Things Every Java Programmer Should Know About Ruby — Navindra Umanee <navindra@...> 2005/01/29

Florian Frank <flori@nixe.ping.de> wrote:

[#128952] Re: Ten Things Every Java Programmer Should Know About Ruby — Florian Frank <flori@...> 2005/01/30

Navindra Umanee wrote:

[#128973] Re: Ten Things Every Java Programmer Should Know About Ruby — Navindra Umanee <navindra@...> 2005/01/30

Florian Frank <flori@nixe.ping.de> wrote:

[#128668] : How can I find the filename where a class is defined? — "George Moschovitis" <george.moschovitis@...>

Hello everyone,

11 messages 2005/01/28

[#128708] Why csv file processing is so slow? — "mepython" <a@...>

I want to process csv file. Here is small program in python and ruby:

26 messages 2005/01/28

[#128773] FYI: what's OOP's jargons and complexities? — PA <petite.abeille@...>

http://article.gmane.org/gmane.comp.python.general/384636

41 messages 2005/01/28
[#128792] Re: FYI: what's OOP's jargons and complexities? — "Trans" <transfire@...> 2005/01/29

Nice. I look forward to the next installment.

[#128801] Re: FYI: what's OOP's jargons and complexities? — Charles Miller <cmiller@...> 2005/01/29

On 29/01/2005, at 10:30 AM, PA wrote:

[#128832] Re: FYI: what's OOP's jargons and complexities? — James Britt <jamesUNDERBARb@...> 2005/01/29

Charles Miller wrote:

[#128833] Re: FYI: what's OOP's jargons and complexities? — PA <petite.abeille@...> 2005/01/29

[#128890] Logtails 0.4 : the time saving release — Bauduin Raphael <rb@...>

Hi,

15 messages 2005/01/29

[#128967] nil question — Brian Blazer <brian@...>

I am a bit new to this, so please be gentle. I was wondering about the

18 messages 2005/01/30
[#128970] Re: nil question — Sam Roberts <sroberts@...> 2005/01/30

Quoteing brian@brianandkate.com, on Sun, Jan 30, 2005 at 12:57:20PM +0900:

[#129086] 'example.com' == 'example.com.' => false... is this intended? — Sam Roberts <sroberts@...>

16 messages 2005/01/31

[#129144] interacting with ruby program — Navindra Umanee <navindra@...>

Hi,

22 messages 2005/01/31
[#129168] Re: interacting with ruby program — Florian Gross <flgr@...> 2005/01/31

Navindra Umanee wrote:

[SUMMARY] Animal Quiz (#15)

From: Ruby Quiz <james@...>
Date: 2005-01-20 14:49:35 UTC
List: ruby-talk #127345
Quiz creator Jim Weirich shared this wonderful little tidbit with me:

	True and slightly off topic story:
	
	The first time I wrote a version of this program, it was on a simple
	single board Z80 computer using a FORTH-like language to program it.
	I had seeded the program with a single animal (a mouse) and called my
	wife in to try it out.  I explained the program and she ran the
	program.  It printed out the words "Think of an animal ...", and then
	paused for a few seconds.  Then it asked "Is it a mouse?".  My wife
	turned to me with a look of absolute astonishment and said "HOW did it
	know that?".
	
	Yep, she was thinking of a mouse.

Unfortunately, none of the submitted solutions were quite that all-knowing.

Everybody solved this one using pretty much the same technique.  Let's go back
to Jim for an explanation of the strategy:

	There is an easy solution that represents the database as a binary
	tree with questions as interior nodes and possible animals as leaf
	nodes.  Each interior question node has two children corresponding to
	a yes or no answer.  The children are either further questions (which
	will be asked) or an animal (which will be guessed).

Couldn't have said it better myself.  Let's see Jim's own implementation of said
tree:

	#!/usr/bin/env ruby
	
	require 'yaml'
	require 'ui'
	
	def ui
	  $ui ||= ConsoleUi.new
	end
	
	class Question
	  def initialize(question, yes, no)
		@question = question
		@yes = yes
		@no = no
		@question << "?" unless @question =~ /\?$/
		@question.sub!(/^([a-z])/) { $1.upcase }
	  end
	
	  def walk
		if ui.ask_if @question
		  @yes = @yes.walk
		else
		  @no = @no.walk
		end
		self
	  end
	end
	
	class Animal
	  attr_reader :name
	  def initialize(name)
		@name = name
	  end
	
	  def walk
		if ui.ask_if "Is it #{an name}?"
		  ui.say "Yea!  I win!\n\n"
		  self
		else
		  ui.say "Rats, I lose"
		  ui.say "Help me play better next time."
		  new_animal = ui.ask "What animal were you thinking of?"
		  question = ui.ask "Give me a question " +
		"to distinguish a #{an name} from #{an new_animal}."
		  response = ui.ask_if "For #{an new_animal}, " +
		"the answer to your question would be?"
		  ui.say "Thank you\n\n"
		  if response
		Question.new(question, Animal.new(new_animal), self)
		  else
		Question.new(question, self, Animal.new(new_animal))
		  end
		end
	  end
	
	  def an(animal)
		((animal =~ /^[aeiouy]/) ? "an " : "a ") + animal
	  end
	end
	
	if File.exist? "animals.yaml"
	  current = open("animals.yaml") { |f| YAML.load(f.read) }
	else
	  current = Animal.new("mouse")
	end
	
	loop do
	  current = current.walk
	  break unless  ui.ask_if "Play again?"
	  ui.say "\n\n"
	end
	
	open("animals.yaml", "w") do |f| f.puts current.to_yaml end

This is a very straight forward solution.  At the top, you can see that it
brings in YAML for storage (many people did this) and a "ui" library to handle
interface.  It also defines a helper method for the ui library, making it
trivial to change the entire interface just by setting a global variable.

Skip over the class definitions now and have a look at the "main" section.  The
first third loads an existing animal tree, if one is available.  Otherwise, it
creates a new tree by magically predicting what Jim's wife would guess.

The middle third walk()s the tree, saving the result in case a new node is
added.  It then asks if the user would like to play again, using the ui() helper
method.

The last third/line, just saves out the tree as it stands at the end of this
run.  Isn't YAML handy?

To make sense of all this talk about a "tree", you need to go back up and
examine the two classes.  As described in the strategy quote above, Question
objects just hold the question itself, and links to the answer nodes for yes and
no.  The real method of interest here is Question#walk.  walk() asks its
question through ui(), then recurses into @yes.walk() or @no.walk(), depending
on the answer provided.  The trick to note here is that the result of the call
is saved back to the node.  That allows nodes to update themselves, when the
game learns a new animal.

That just leaves Animal, which is even easier to grasp.  Again, the method of
interest is Animal#walk.  walk() guesses the animal over ui() and declares
victory if it's right.  When it's wrong, it asks the clarifying questions to
learn and returns itself and the new animal wrapped in a new Question object. 
This return ensures that the tree is updated, thanks to the saving behavior of
Question#walk.

That leaves only the mystical ui library.  Here's a look at it:

	#!/usr/bin/env ruby
	
	class ConsoleUi
	  def ask(prompt)
		print prompt + " "
		answer = gets
		answer ? answer.chomp : nil
	  end
	
	  def ask_if(prompt)
		answer = ask(prompt)
		answer =~ /^\s*[Yy]/
	  end
	
	  def say(*msg)
		puts msg
	  end
	end

This is just a simple console interface, of course.  ask() handles input, say()
output and ask_if() is a helper method that returns true if it looks like the
user answered with a yes or false otherwise (handy for "if" conditions, thus the
name).  These methods could be replaced with CGI equivalents, GUI routines, or
whatever.  Nice abstraction here.

Now, I did say the tree method was easy, but it's not without its faults.  Once
more, I give you the voice of Jim:

	However, the tree solution has some draw backs.  It is very sensitive
	to the order in which animals are added to the tree and the type of
	questions used. The tree solution works best when the early questions
	divide the set of possible animals into more or less equal groups.
	This keeps the tree nicely balanced and the series of questions
	leading up to any guess are all equally short.  Unfortunately, in real
	life the tree tends to become very unbalanced with individual questions
	targetting a rather specific animal in the yes branch and the no
	branch becoming a long list of more specific questions.
	
	Another small problem with the tree solution is that some questions
	are ambiguous, or the user doesn't have the knowledge to answer the
	question properly.  For example, a question might be "Does it live in
	the water?".  Some people might select a beaver as their animal and
	think "Oh yes, it loves to swim".  Others might say "No, it lives on
	land, it just enjoys swimming".  In actual practice, these ambiguities
	average out and you would get the beaver answer on both yes and no
	nodes of a question, each branch using different questions to narrow
	down the choice.  Although not a fatal flaw, it does put redundant
	answers in the tree and essentially waste a question that could be put
	to better use.

I actually did a fair amount of thinking about other approaches to this problem.
Unfortunately, every time I broke from the tree structure, it became a lot
trickier to add new animals.  I basically had to badger the user for answers to
half of all the questions known about their animal and in doing so it seemed I
ran into even more irrelevancy issues.  Because of that, I eventually abandoned
the approach.  If anybody has or creates another strategy for this, be sure and
send it in!

My thanks to the submitters and Jim, who didn't realize he had already wrote
this summary when he told me I could handle it.

Tomorrow, it's every coder for themselves as we get a little friendly
competition going...

In This Thread

Prev Next