[#231977] General Programming Books — Mark Woodward <markonlinux@...>

Hi all,

17 messages 2007/01/01

[#232004] Re: Status of Cardinal (was Re: Proposal to create a new mailing list) — "Martin DeMello" <martindemello@...>

On 12/31/06, M. Edward (Ed) Borasky <znmeb@cesmail.net> wrote:

8 messages 2007/01/01

[#232143] Detecting holidays — "Daniel Berger" <djberg96@...>

Hi all,

22 messages 2007/01/02

[#232198] Any projects need rdoc documentation help? — Jay Bornhoft <jbornhoft@...>

As part of my effort to become increasingly more involved in the Ruby

13 messages 2007/01/02

[#232214] Calculating roman numerals — "Shiloh Madsen" <shiloh.madsen@...>

Ok, I'm having trouble with another exercise in this book. It has

13 messages 2007/01/02

[#232335] Problem in Unit Testing Methods that start new threads — Hemant Kumar <gethemant@...>

I have a bit of doubt, in Unit Testing Programs that start new threads.

13 messages 2007/01/03

[#232347] Memory Leak Madness — Brandon Casci <brandon@...>

I'm having one hell of a time trying to find and stop a memory leak in a

19 messages 2007/01/03

[#232374] Scriptable text editor with Ruby? — "Dolazy" <francis.rammeloo@...>

Hi all!

37 messages 2007/01/03

[#232694] How can I do this better? — "Sam Kong" <sam.s.kong@...>

Hi,

14 messages 2007/01/05

[#232719] Word Blender (#108) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

57 messages 2007/01/05
[#233040] Re: [QUIZ] Word Blender (#108) — Daniel Finnie <danfinnie@...> 2007/01/07

I made two this time. One plays a game and one just picks the word.

[#233042] Re: [QUIZ] Word Blender (#108) — "Fedor Labounko" <fedor.labounko@...> 2007/01/07

On 1/7/07, Daniel Finnie <danfinnie@optonline.net> wrote:

[#232806] removing Ruby success stories page from Ruby-lang.org — "Rahul" <vrahul@...>

38 messages 2007/01/05
[#232808] Re: removing Ruby success stories page from Ruby-lang.org — dblack@... 2007/01/05

Hi --

[#232821] Re: removing Ruby success stories page from Ruby-lang.org — "Jeremy McAnally" <jeremymcanally@...> 2007/01/05

Notable stories that should be added that I'm aware of:

[#232839] Re: removing Ruby success stories page from Ruby-lang.org — James Britt <james.britt@...> 2007/01/05

Jeremy McAnally wrote:

[#232865] SparseFile — "Erik Veenstra" <erikveen@...>

I had to send huge files over a network to another machine.

13 messages 2007/01/06

[#233008] Sending SMS Messages With Ruby — James Edward Gray II <james@...>

I'm going to need to send SMS messages from a Ruby server I am

11 messages 2007/01/07

[#233037] a most undangerous Hash#store! — "Trans" <transfire@...>

Hi--

32 messages 2007/01/07
[#233054] Re: a most undangerous Hash#store! — Florian Gross <florgro@...> 2007/01/08

On 2007-01-08 02:00:10 +0100, dblack@wobblini.net said:

[#233059] Re: a most undangerous Hash#store! — dblack@... 2007/01/08

Hi --

[#233095] Re: a most undangerous Hash#store! — Robert Klemme <shortcutter@...> 2007/01/08

On 08.01.2007 02:59, dblack@wobblini.net wrote:

[#233096] Re: a most undangerous Hash#store! — Mauricio Fernandez <mfp@...> 2007/01/08

On Mon, Jan 08, 2007 at 08:20:05PM +0900, Robert Klemme wrote:

[#233098] Re: a most undangerous Hash#store! — dblack@... 2007/01/08

Hi --

[#233107] Re: a most undangerous Hash#store! — Mauricio Fernandez <mfp@...> 2007/01/08

On Mon, Jan 08, 2007 at 09:37:05PM +0900, dblack@wobblini.net wrote:

[#233133] Tattle - The Ruby Census — "Chad Fowler" <chad@...>

Greetings and Happy New Year, Rubyists!

118 messages 2007/01/08
[#233181] Re: [ANN] Tattle - The Ruby Census — Pit Capitain <pit@...> 2007/01/09

Chad Fowler schrieb:

[#233245] Re: [ANN] Tattle - The Ruby Census — Ryan Davis <ryand-ruby@...> 2007/01/09

[#233253] Re: [ANN] Tattle - The Ruby Census — Ben Bleything <ben@...> 2007/01/09

On Wed, Jan 10, 2007, Ryan Davis wrote:

[#233261] Re: [ANN] Tattle - The Ruby Census — Eric Hodel <drbrain@...7.net> 2007/01/09

On Jan 9, 2007, at 09:31, Ben Bleything wrote:

[#233265] Re: [ANN] Tattle - The Ruby Census — Ben Bleything <ben@...> 2007/01/09

On Wed, Jan 10, 2007, Eric Hodel wrote:

[#233278] Re: [ANN] Tattle - The Ruby Census — Eric Hodel <drbrain@...7.net> 2007/01/09

On Jan 9, 2007, at 10:42, Ben Bleything wrote:

[#233284] Re: [ANN] Tattle - The Ruby Census — Ben Bleything <ben@...> 2007/01/09

On Wed, Jan 10, 2007, Eric Hodel wrote:

[#233393] Re: [ANN] Tattle - The Ruby Census — Eric Hodel <drbrain@...7.net> 2007/01/10

On Jan 9, 2007, at 13:03, Ben Bleything wrote:

[#233333] Re: [ANN] Tattle - The Ruby Census — Ryan Davis <ryand-ruby@...> 2007/01/10

[#233338] Re: [ANN] Tattle - The Ruby Census — Ben Bleything <ben@...> 2007/01/10

On Wed, Jan 10, 2007, Ryan Davis wrote:

[#233345] Re: [ANN] Tattle - The Ruby Census — Ryan Davis <ryand-ruby@...> 2007/01/10

[#233352] Re: Tattle - The Ruby Census — Evan Weaver <eweaver.spamtrap@...> 2007/01/10

Ryan Davis wrote:

[#233399] Re: Tattle - The Ruby Census — Eric Hodel <drbrain@...7.net> 2007/01/10

On Jan 10, 2007, at 02:02, Evan Weaver wrote:

[#233416] Re: Tattle - The Ruby Census — Evan Weaver <eweaver.spamtrap@...> 2007/01/10

Eric Hodel wrote:

[#233456] Re: Tattle - The Ruby Census — "Austin Ziegler" <halostatue@...> 2007/01/10

On 1/10/07, Evan Weaver <eweaver.spamtrap@gmail.com> wrote:

[#233586] Re: Tattle - The Ruby Census — "Daniel Berger" <djberg96@...> 2007/01/11

[#233625] Re: Tattle - The Ruby Census — "Gregory Brown" <gregory.t.brown@...> 2007/01/12

On 1/11/07, Daniel Berger <djberg96@gmail.com> wrote:

[#233633] Re: Tattle - The Ruby Census — "Jeremy McAnally" <jeremymcanally@...> 2007/01/12

But the question is would the hoe developers use this? They seem

[#233665] Re: Tattle - The Ruby Census — "Austin Ziegler" <halostatue@...> 2007/01/12

On 1/12/07, Jeremy McAnally <jeremymcanally@gmail.com> wrote:

[#233769] Re: Tattle - The Ruby Census — "Chris Carter" <cdcarter@...> 2007/01/13

On 1/12/07, Austin Ziegler <halostatue@gmail.com> wrote:

[#233158] Why is there a seperate Math class? — Daniel Finnie <danfinnie@...>

Why does everything have to be Math.<func>(num)? Isn't num.func more

22 messages 2007/01/09

[#233180] Problems with Posting to comp.lang.ruby, due to gateway to Ruby-Talk — Ronald Fischer <ronaldf@...>

Hello

11 messages 2007/01/09

[#233189] inheritance concept in ruby — Kumar Tnj <senvenit2003@...>

Hi,

19 messages 2007/01/09

[#233209] sortung a structured array on more than one criteria — Josselin <josselin@...>

I can sort an array like that :

11 messages 2007/01/09

[#233238] Elements of Ruby Style — "Jeremy McAnally" <jeremymcanally@...>

Hello all,

14 messages 2007/01/09

[#233285] Re: String performance — "Gavin Kistner" <gavin.kistner@...>

From: Vincent Fourmond

11 messages 2007/01/09

[#233386] return_on — "Trans" <transfire@...>

Sometimes i do this:

24 messages 2007/01/10

[#233424] building Ruby with dmalloc — Young Hyun <youngh@...>

Has anyone managed to build Ruby with dmalloc support? I'm having

11 messages 2007/01/10

[#233584] Finding path to ruby script argument — "Matthew Hailstone" <matthew.hailstone@...>

When I execute a ruby script by the following:

11 messages 2007/01/11

[#233640] Why doesn't Ruby allow for overloaded methods within a class — Wes Gamble <weyus@...>

(from a Java refugee)

12 messages 2007/01/12

[#233671] Number Spiral (#109) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

29 messages 2007/01/12

[#233676] DRY gsub... — Josselin <josselin@...>

I wrote the following ruby statements.. I get the result I need , I

33 messages 2007/01/12

[#233714] RCR again (Integer#succ!, Integer#pred!) — "Robert Dober" <robert.dober@...>

I am definitely in an RCR mood ;)

13 messages 2007/01/12

[#233763] Running Webrick alongside IIS on port 80 — Prashant Deva <prashant.deva@...>

Hi,

12 messages 2007/01/12

[#233889] checking if a string matches a regexp - am I missing something? — "Rob Sanheim" <rsanheim@...>

I figure that I must be missing something really obvious with this

11 messages 2007/01/14

[#233914] Hoe poisoned in Rubyforge — Eric Hodel <drbrain@...7.net>

Somehow hoe-1.1.7 has become poisoned in the RubyGems index:

50 messages 2007/01/14
[#233958] Re: Hoe poisoned in Rubyforge — "Chris Carter" <cdcarter@...> 2007/01/14

On 1/14/07, Eric Hodel <drbrain@segment7.net> wrote:

[#233961] Re: Hoe poisoned in Rubyforge — SonOfLilit <sonoflilit@...> 2007/01/14

So if I have a RubyForge account I can upload a modified gem, of, say,

[#233993] Re: Hoe poisoned in Rubyforge — Tom Copeland <tom@...> 2007/01/14

On Mon, 2007-01-15 at 00:56 +0900, SonOfLilit wrote:

[#233999] Re: Hoe poisoned in Rubyforge — Tom Copeland <tom@...> 2007/01/14

On Sun, 2007-01-14 at 13:20 -0500, Tom Copeland wrote:

[#233938] "soemthing".pluralize/at/from/... -> NoMethodError — David Krmpotic <david.krmpotic@...>

Hello,

11 messages 2007/01/14

[#233963] possible to un-warn? — "David Chelimsky" <dchelimsky@...>

Hi all,

12 messages 2007/01/14

[#233969] how to translate base 10 number into base 2 number — chen li <chen_li3@...>

Hi all,

15 messages 2007/01/14

[#234052] keybox 1.0.0 Released — Jeremy Hinegardner <jeremy@...>

keybox version 1.0.0 has been released.

15 messages 2007/01/15

[#234063] Can anyone try to solve this problems? — Cyrus Gabilla <gabilla19992004@...>

Hi to everybody.

20 messages 2007/01/15
[#234160] Re: Can anyone try to solve this problems? — David Madden <moose56@...> 2007/01/15

[#234170] Q: How can a Rake task know the caller's directory? — James Britt <james.britt@...>

I'm increasingly using rake files for common system tasks. Since Rake

20 messages 2007/01/15

[#234183] Hi all! — Mustapha! <mail_gw_ruby@...>

Hi! I hate america!

23 messages 2007/01/15

[#234254] Ruby and E.V.E. Paradox — GD <garthy_lmkltybr@...>

I have been using Ruby for several years. Most importantly I have been using

30 messages 2007/01/16
[#234269] Re: Ruby and E.V.E. Paradox — "gga" <GGarramuno@...> 2007/01/16

[#234434] RubyGems 0.9.1 — Eric Hodel <drbrain@...7.net>

= Announce: RubyGems Release 0.9.1

19 messages 2007/01/16

[#234529] Intensive computing: Ruby? Ruby/C? Pure C++? — "Shot (Piotr Szotkowski)" <shot@...>

Hello, ruby-talk. I have a question about choosing between Ruby, Ruby

20 messages 2007/01/17

[#234646] Struggling With RubyGems — James Edward Gray II <james@...>

I can't seen to query or install gems over here. Is anyone else

18 messages 2007/01/17
[#234649] RubyGems 0.9.1 problem (was Re: Struggling With RubyGems) — Gregory Seidman <gsslist+ruby@...> 2007/01/17

On Thu, Jan 18, 2007 at 06:29:09AM +0900, James Edward Gray II wrote:

[#234655] Re: RubyGems 0.9.1 problem (was Re: Struggling With RubyGems) — James Edward Gray II <james@...> 2007/01/17

On Jan 17, 2007, at 3:42 PM, Gregory Seidman wrote:

[#234659] Re: RubyGems 0.9.1 problem (was Re: Struggling With RubyGems) — "David Goodlad" <dgoodlad@...> 2007/01/17

On 1/17/07, James Edward Gray II <james@grayproductions.net> wrote:

[#234667] Re: RubyGems 0.9.1 problem (was Re: Struggling With RubyGems) — James Edward Gray II <james@...> 2007/01/17

On Jan 17, 2007, at 4:17 PM, David Goodlad wrote:

[#234668] Re: RubyGems 0.9.1 problem (was Re: Struggling With RubyGems) — "Tim Pease" <tim.pease@...> 2007/01/17

On 1/17/07, James Edward Gray II <james@grayproductions.net> wrote:

[#234732] Ruby text editor for beginner — "Shawn Wa..." <shawnw@...>

I'm looking for a simple text editor for Ruby to work under WinXP SP2.

29 messages 2007/01/18

[#234744] Ruby and Python, questions (not a flamewar!) — Drew Olson <olsonas@...>

I've been using ruby for the past 6 months and I must say I am extremely

19 messages 2007/01/18

[#234800] auto assign arguments? — "David Chelimsky" <dchelimsky@...>

I see where to put bugs and patches, but this is a feature request. Is

35 messages 2007/01/18
[#234826] Re: auto assign arguments? — "Daniel Berger" <djberg96@...> 2007/01/18

[#234830] Re: auto assign arguments? — James Edward Gray II <james@...> 2007/01/18

On Jan 18, 2007, at 3:35 PM, Daniel Berger wrote:

[#234832] Re: auto assign arguments? — "Gregory Brown" <gregory.t.brown@...> 2007/01/18

On 1/18/07, James Edward Gray II <james@grayproductions.net> wrote:

[#234839] Re: auto assign arguments? — gwtmp01@... 2007/01/18

[#234842] Re: auto assign arguments? — "David Chelimsky" <dchelimsky@...> 2007/01/18

Wow. You guys are all coming up w/ great alternatives, but would

[#234919] Re: auto assign arguments? — dblack@... 2007/01/19

Hi --

[#234922] Re: auto assign arguments? — "Robert Dober" <robert.dober@...> 2007/01/19

On 1/19/07, dblack@wobblini.net <dblack@wobblini.net> wrote:

[#234925] Re: auto assign arguments? — Yukihiro Matsumoto <matz@...> 2007/01/19

Hi,

[#234889] rubyforge.org questions — Peter Szinek <peter@...>

Hello,

15 messages 2007/01/19
[#234901] Re: rubyforge.org questions — "Jan Svitok" <jan.svitok@...> 2007/01/19

On 1/19/07, Peter Szinek <peter@rubyrailways.com> wrote:

[#234908] Re: rubyforge.org questions — Vincent Fourmond <vincent.fourmond@9online.fr> 2007/01/19

Jan Svitok wrote:

[#234902] OFFTOPIC: How to pronounce Ruby? — Peter Szinek <peter@...>

Is it more similar to 'dummy' or 'dubi(ous)'? (or neither :-)

13 messages 2007/01/19

[#234949] Minor Change Proposal for Classes 'Object' and 'Method' — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <wonado@...>

Minor Change Proposal for Classes 'Object' and 'Method'

98 messages 2007/01/19
[#234953] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/19

Hi,

[#234972] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/19

Hi,

[#235124] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Robert Klemme <shortcutter@...> 2007/01/20

On 19.01.2007 19:33, Yukihiro Matsumoto wrote:

[#235126] Re: Minor Change Proposal for Classes 'Object' and 'Method' — "Phrogz" <gavin@...> 2007/01/20

Robert Klemme wrote:

[#235137] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Robert Klemme <shortcutter@...> 2007/01/20

On 20.01.2007 18:54, Phrogz wrote:

[#235144] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/20

Hi --

[#235148] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Wolfgang N疆asi-Donner <wonado@...> 2007/01/20

dblack@wobblini.net schrieb:

[#235150] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/20

Hi --

[#235153] Re: Minor Change Proposal for Classes 'Object' and 'Method' — gwtmp01@... 2007/01/20

[#235155] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/20

Hi --

[#235166] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/20

Hi --

[#235192] Re: Minor Change Proposal for Classes 'Object' and 'Method' — gwtmp01@... 2007/01/21

[#235238] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/21

Hi --

[#235254] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Wolfgang N疆asi-Donner <wonado@...> 2007/01/21

dblack@wobblini.net schrieb:

[#235262] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/21

Hi --

[#235274] Re: Minor Change Proposal for Classes 'Object' and 'Method' — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <wonado@...> 2007/01/21

dblack@wobblini.net schrieb:

[#235280] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/21

Hi --

[#235347] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/22

Hi,

[#235352] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/22

Hi --

[#235354] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/22

Hi,

[#235361] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/22

Hi --

[#235388] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/22

Hi,

[#235443] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/22

Hi --

[#235448] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/22

Hi,

[#235567] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/23

Hi --

[#235575] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/23

Hi,

[#235578] Re: Minor Change Proposal for Classes 'Object' and 'Method' — ara.t.howard@... 2007/01/23

On Tue, 23 Jan 2007, Yukihiro Matsumoto wrote:

[#235653] Re: Minor Change Proposal for Classes 'Object' and 'Method' — "Robert Dober" <robert.dober@...> 2007/01/23

On 1/23/07, ara.t.howard@noaa.gov <ara.t.howard@noaa.gov> wrote:

[#235680] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Pit Capitain <pit@...> 2007/01/23

Robert Dober schrieb:

[#235684] Re: Minor Change Proposal for Classes 'Object' and 'Method' — ara.t.howard@... 2007/01/23

On Wed, 24 Jan 2007, Pit Capitain wrote:

[#235013] I don't get rspec — "nicknameoptional" <dorrenchen@...>

I just discovered rspec today, reading the example and tutorials,

45 messages 2007/01/19
[#235021] Re: I don't get rspec — James Britt <james.britt@...> 2007/01/19

nicknameoptional wrote:

[#235035] Re: I don't get rspec — "nicknameoptional" <dorrenchen@...> 2007/01/20

> There is a good Google video about rspec and Behavior Driven

[#235492] Re: I don't get rspec — Christian Neukirchen <chneukirchen@...> 2007/01/22

"nicknameoptional" <dorrenchen@gmail.com> writes:

[#235539] test/spec -- was Re: I don't get rspec — Joel VanderWerf <vjoel@...> 2007/01/22

Christian Neukirchen wrote:

[#235747] Re: test/spec -- was Re: I don't get rspec — Christian Neukirchen <chneukirchen@...> 2007/01/23

Joel VanderWerf <vjoel@path.berkeley.edu> writes:

[#235770] Re: test/spec -- was Re: I don't get rspec — "David Chelimsky" <dchelimsky@...> 2007/01/23

On 1/23/07, Christian Neukirchen <chneukirchen@gmail.com> wrote:

[#235031] Learning Japanese — "Gerardo Santana Gez Garrido" <gerardo.santana@...>

Thanks to Ruby I've learned a lot recently about programming languages

11 messages 2007/01/20

[#235046] "postgres" module needs work, author gone, patch included — Jeff Davis <ruby@...>

The "postgres" module is old and it's been a long time since there's

12 messages 2007/01/20

[#235141] FreeRIDE - Way too many warnings — Ab Cd <grauenwolf@...>

Whenever I start FreeRIDE I get a ton of warnings. It takes a long time

29 messages 2007/01/20
[#235145] Re: FreeRIDE - Way too many warnings — matt <matt@...> 2007/01/20

On Sun, 2007-01-21 at 03:32 +0900, Ab Cd wrote:

[#235172] Re: FreeRIDE - Way too many warnings — Jonathan Allen <grauenwolf@...> 2007/01/20

matt wrote:

[#235173] Re: FreeRIDE - Way too many warnings — matt <matt@...> 2007/01/20

On Sun, 2007-01-21 at 08:43 +0900, Jonathan Allen wrote:

[#235181] Re: FreeRIDE - Way too many warnings — Jonathan Allen <grauenwolf@...> 2007/01/21

[#235184] Re: FreeRIDE - Way too many warnings — Timothy Hunter <TimHunter@...> 2007/01/21

Jonathan Allen wrote:

[#235191] Re: FreeRIDE - Way too many warnings — matt <matt@...> 2007/01/21

On Sun, 2007-01-21 at 10:41 +0900, Timothy Hunter wrote:

[#235198] Re: FreeRIDE - Way too many warnings — Jonathan Allen <grauenwolf@...> 2007/01/21

matt wrote:

[#235180] Hash pairs at? — "Trans" <transfire@...>

Seesm like there should be a mehtod for this:

32 messages 2007/01/21

[#235197] Getting the version number for rubygems? — "Gregory Brown" <gregory.t.brown@...>

Hi,

22 messages 2007/01/21
[#235202] Re: Getting the version number for rubygems? — Eric Hodel <drbrain@...7.net> 2007/01/21

On Jan 20, 2007, at 20:11, Gregory Brown wrote:

[#235203] Re: Getting the version number for rubygems? — "Gregory Brown" <gregory.t.brown@...> 2007/01/21

On 1/20/07, Eric Hodel <drbrain@segment7.net> wrote:

[#235204] Re: Getting the version number for rubygems? — "Jeremy McAnally" <jeremymcanally@...> 2007/01/21

require 'rubygems'

[#235205] Re: Getting the version number for rubygems? — "Gregory Brown" <gregory.t.brown@...> 2007/01/21

On 1/21/07, Jeremy McAnally <jeremymcanally@gmail.com> wrote:

[#235206] Re: Getting the version number for rubygems? — Devin Mullins <twifkak@...> 2007/01/21

Gregory Brown wrote:

[#235208] Re: Getting the version number for rubygems? — "Gregory Brown" <gregory.t.brown@...> 2007/01/21

On 1/21/07, Devin Mullins <twifkak@comcast.net> wrote:

[#235248] uninstalling the mac tiger version of ruby — "libsfan01" <mcyi2mr3@...>

hi all

20 messages 2007/01/21
[#235251] Re: uninstalling the mac tiger version of ruby — "libsfan01" <mcyi2mr3@...> 2007/01/21

My reason for wanting to uninstall is that ive tried to install the

[#235258] Re: uninstalling the mac tiger version of ruby — Timothy Hunter <TimHunter@...> 2007/01/21

libsfan01 wrote:

[#235287] Re: uninstalling the mac tiger version of ruby — "libsfan01" <mcyi2mr3@...> 2007/01/21

[#235294] Re: uninstalling the mac tiger version of ruby — Timothy Hunter <TimHunter@...> 2007/01/21

libsfan01 wrote:

[#270097] Re: uninstalling the mac tiger version of ruby — Aaron Massey <amassey@...> 2007/09/20

I have a similar problem. I installed a manually compiled version of

[#270098] Re: uninstalling the mac tiger version of ruby — "Peter Cooper" <peter@...> 2007/09/20

On 9/20/07, Aaron Massey <amassey@csoft.net> wrote:

[#235283] module global variables — Stefano Zacchiroli <zack@...>

Is there a way to define per-module global variables? My best

14 messages 2007/01/21
[#235289] Re: module global variables — "Trans" <transfire@...> 2007/01/21

[#235290] Re: module global variables — Stefano Zacchiroli <zack@...> 2007/01/21

On Mon, Jan 22, 2007 at 02:52:58AM +0900, Trans wrote:

[#235384] Can't install rubygems — lijie <cpunion@...>

The rubygems installer can't finish, and CPU is 100% used in several hours.

14 messages 2007/01/22

[#235460] ebedded: calling a C function from script. — Shea Martin <shea@...>

I have my embedded interpreter running my scipt. Now I would like my

12 messages 2007/01/22

[#235464] Method notation question — "Avdi Grimm" <avdi@...>

I've been using Ruby for years, and it just occurred to me to ask:

15 messages 2007/01/22

[#235574] Placing tabs in strings in irb — "Michael W. Ryder" <_mwryder@...>

Is there any reason I cannot embed tabs in a string while using irb? I

16 messages 2007/01/23

[#235624] I need a more efficient algorithm for this problem. — "Sam Kong" <sam.s.kong@...>

Hi,

15 messages 2007/01/23

[#235633] Ruby for massively multi-core chips? — Bil Kleb <Bil.Kleb@...>

How to best evolve Ruby to accommodate 80-core

13 messages 2007/01/23

[#235880] Trickery in the ancestors chain — "Paolo Nusco Perrotta" <paolo.nusco.perrotta@...>

Try this:

12 messages 2007/01/24

[#235938] Ruby IDE for Windows 98? — Bart Braem <bart.braem@...>

Hello,

26 messages 2007/01/24
[#235973] Re: Ruby IDE for Windows 98? — Olivier <o.renaud@...> 2007/01/24

> With Ruby. (We have good reasons, I'll explain them

[#235980] Re: Ruby IDE for Windows 98? — "Robert Dober" <robert.dober@...> 2007/01/24

On 1/24/07, Olivier <o.renaud@laposte.net> wrote:

[#236140] A Ruby Operating System (no bashing please) — "Andr蘂 <andre.nho@...>

Hello,

12 messages 2007/01/25

[#236217] cartesian product of arrays — Thomas Hafner <thomas@...>

Hello,

31 messages 2007/01/26

[#236240] Counting Toothpicks (#111) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

55 messages 2007/01/26
[#236445] Re: [QUIZ] Counting Toothpicks (#111) — "Andrey Falko" <ma3oxuct@...> 2007/01/27

Hi everyone,

[#236489] Re: [QUIZ] Counting Toothpicks (#111) — James Edward Gray II <james@...> 2007/01/28

On Jan 27, 2007, at 12:21 PM, Andrey Falko wrote:

[#236241] simple question about Ruby Regext — Peter Bailey <pbailey@...>

Hi,

22 messages 2007/01/26

[#236243] Rubygem install "Invalid argument - sources-0.0.1.gem" — Jeremy Lecour <jeremy.lecour@...>

Hi,

16 messages 2007/01/26
[#236475] Re: Rubygem install "Invalid argument - sources-0.0.1.gem" — Eric Hodel <drbrain@...7.net> 2007/01/27

On Jan 26, 2007, at 06:05, Jeremy Lecour wrote:

[#236530] Re: Rubygem install "Invalid argument - sources-0.0.1.gem" — Jeremy Lecour <jeremy.lecour@...> 2007/01/28

Eric Hodel wrote:

[#236333] pass by reference? — Andy Koch <andy.koch@...>

Hello,

46 messages 2007/01/26
[#236335] Re: pass by reference? — Vincent Fourmond <vincent.fourmond@9online.fr> 2007/01/26

Andy Koch wrote:

[#236342] Re: pass by reference? — "Phrogz" <gavin@...> 2007/01/27

On Jan 26, 4:32 pm, Vincent Fourmond <vincent.fourm...@9online.fr>

[#236344] Re: pass by reference? — "Martin C. Martin" <martin@...> 2007/01/27

[#236346] Re: pass by reference? — dblack@... 2007/01/27

Hi --

[#236491] Net::HTTP Closes STDIN — James Edward Gray II <james@...>

Kenneth Kalmer has brought up a HighLine issue and I'm trying to look

30 messages 2007/01/28
[#236947] Re: Net::HTTP Closes STDIN — gwtmp01@... 2007/01/30

[#236950] Re: Net::HTTP Closes STDIN — ara.t.howard@... 2007/01/30

On Wed, 31 Jan 2007 gwtmp01@mac.com wrote:

[#236611] Ruby << is ambiguos — Neville Franks <subs@...>

Hi, I working on syntax highlighting for ED4W and have problem with <<

18 messages 2007/01/28

[#236687] FastRI 0.3.0: standalone mode (qri, DRb not needed), additional search methods, extended class info — Mauricio Fernandez <mfp@...>

13 messages 2007/01/29
[#236727] Re: [ANN] FastRI 0.3.0: standalone mode (qri, DRb not needed), additional search methods, extended class info — Pe, Botp <botp@...> 2007/01/29

From: Mauricio Julio Fern疣dez Pradier

[#236800] Sane #hash implementation? — "Shot (Piotr Szotkowski)" <shot@...>

I have a Set subclass, Block. I need two blocks to be considered the

18 messages 2007/01/29
[#236833] Re: Sane #hash implementation? — Eric Hodel <drbrain@...7.net> 2007/01/30

On Jan 29, 2007, at 14:38, Shot (Piotr Szotkowski) wrote:

[#236988] tinderbox 1.0.0 Released — Eric Hodel <drbrain@...7.net>

tinderbox version 1.0.0 has been released!

18 messages 2007/01/31

[#237012] Ruby and an efficiency — "Miroslaw Maziarz" <miroslaw.maziarz@...>

Hi,

15 messages 2007/01/31

[#237036] proper usr/bin/env ruby shebang — "Rob Sanheim" <rsanheim@...>

I'm trying to convert some bash scripts to use /usr/bin/env ruby

23 messages 2007/01/31
[#237040] Re: proper usr/bin/env ruby shebang — Nobuyoshi Nakada <nobu@...> 2007/01/31

Hi,

[SUMMARY] Method Auto Completion (#112)

From: Ruby Quiz <james@...>
Date: 2007-01-25 12:25:01 UTC
List: ruby-talk #236055
by Robert Dober

First of all I would like to thank all submitters.

One of the best features of the Ruby Quiz is it tolerance brings up new ideas so
often.

In order to honor this feature I will first present Daniel Finnie's solution. It
just abbreviates all defined methods. This very useful a feature which I will
demonstrate after discussion of the code.

	class Object
	    def method_missing(method, *args, &blk)
	        # Gather all possible methods it could be. 
	        possibleMethods = self.methods.select {|x|
	          x =~ /^#{Regexp.escape(method.to_s)}/
	        }
	        
	        case possibleMethods.size
	        # No matching method.
	        when 0
	            raise NoMethodError.new(
	              "undefined method `#{method}' for " +
	              "#{self.inspect}:#{self.class.name}"
	            )
	        
	        # One matching method, call it.
	        when 1 
	            method = possibleMethods.first
	            send(method, *args, &blk)
	        
	        # Multiple possibilities, return an array of the possibilities.
	        else
	            "Ambigous abbreviation #{method} ->  " +
	            "#{ possibleMethods.join(", ")}"
	        end
	    end
	end 

Nothing very complicated there, just define method_missing in Object as a catch
all for undefined methods in any object. Than he creates an array of all methods
which are legal completions of a potential abbreviation. In case there are none
an original NoMethodError is mimicked. In case there is exactly one it is
executed via send, please note the (method, *args, &blk) syntax, the &blk part
has been forgotten in some solutions but is vital in #method_missing. And
eventually if there are more Daniel returned an array of all completions for
testing. I will discuss this later.

I have adapted this to return a message explaining what completions exist for
the abbreviation. Why?  Well I just fired up my irb and requested Daniel's
solution, see what I got, much less typing for free. Here are some excerpts of
my irb session.

	irb(main):001:0> require 'sol2'
	=> true
	irb(main):002:0> "a".le
	=> 1
	irb(main):003:0> "abba".le
	=> 4
	irb(main):004:0> "Hello World".spl 
	=> ["Hello", "World"]
	irb(main):005:0> "Hi there Daniel".sp
	=> ["Hi", "there", "Daniel"]
	irb(main):006:0> "Hi there Daniel".s 
	=> "Ambigous abbreviation s ->  select, slice, sub!, squeeze, send, split,
	size, strip, succ!, squeeze!, sub, slice!, scan, sort, swapcase, swapcase!,
	sum, singleton_methods, succ, sort_by, strip!" 
	irb(main):007:0> 12.x
	NoMethodError: undefined method `x' for 12:Fixnum
	                from ./sol2.rb:9:in `method_missing'
	                from (irb):7

Quite nice as a side product, no? 

Let us turn towards solutions which respected the idea of defining certain
abbreviations, being interpreted in Command Line Interfaces for example. It was
extremely difficult to chose a solution because most of the solutions had their
strong parts. I eventually decided to comment on Donald Ball's solution as it
was maybe the most readable solution for myself. I had discussed this with James
who favored other solutions for other reasons and I will mention these reasons
shortly.  As always there is something in every solution so take your time and
read them.

Ok here is Donald's code - slightly modified again.

	require 'set'
	
	module AutoComplete 
	    module ClassMethods
	        attr_reader :abbrs
	        def abbrev(*args)
	            # TODO abbrs might be better implemented as a sorted set
	            @abbrs ||= Set.new
	            @abbrs += args 
	        end
	    end
	    module ObjectMethods
	        def method_missing(id, *args, &blk)
	            # if it is an exact match, there is no corresponding
method
	            # or else it would have been called 
	            if self.class.abbrs.include?(id)
	                super
	            end
	            s = id.to_s
	            len = s.length
	            # find all abbreviations which begin with id and have
	            # active methods 
	            matches = self.class.abbrs.select { |abbr|
	              abbr.to_s[0,len] == s && respond_to?(abbr)
	            }
	            if matches.length == 0
	                super
	            elsif matches.length == 1
	                send(matches[0], *args, &blk)
	            else
	                matches
	            end
	        end
	    end
	end
	
	class Object
	    extend AutoComplete::ClassMethods 
	    include AutoComplete::ObjectMethods
	end

Although this can be done more concisely I eventually started to like the
explicit way.

Lots of little details can be changed and they were in other solutions. Not
everybody wanted a NoMethodError thrown in case an abbreviation target was an
abbreviation of a different method and was not there.

Ken Bloom was the first to point out that it was a bad idea to return an array
of abbreviations in case of ambiguities. I completely agree, that was only for
the test code anyway.

A great majority of the solutions follow this idea which is certainly a must
under some circumstances. I imagine a DSL which is not interactive and where the
interpreter has no choice than to throw an Exception, good thinking here.

Ken's solution has three features noteworthy, first he added the list of
possible completions as an attribute of the exception he throws, secondly he
just used the abbrev Standard Library Module and thirdly he used #super in
#method_missing to raise a NoMethodError. super in that case calls
Kernel#method_missing. This took me some time to figure out. I guess the road to
Ruby mastery is not answering quizzes but submitting quizzes and understanding
the solutions. But you will find some of these features in other solutions too.

Let us finish the summary with his code, another astonishing example of how much
can be done with so little code in Ruby.

	require 'abbrev' 
	
	class AmbiguousExpansionError < StandardError
	  attr_accessor :candidates
	  def initialize(name,possible_methods)
	    super("Ambiguous abbreviaton: #{name}\n"+
	          "Candidates: #{possible_methods.join(", ")}")
	    @candidates=possible_methods
	  end
	end
	
	module Abbreviator
	  def method_missing name,*args 
	    abbrevs=methods.abbrev
	    return send(abbrevs[name.to_s],*args) if abbrevs[name.to_s]
	    meths=abbrevs.reject{|key,value| key!~/^#{name}/}.values.uniq
	    raise AmbiguousExpansionError.new(name, meths) if meths.length>1
	    return super(name,*args)
	  end
	end

Many thanx to everyone....

In This Thread

Prev Next