[#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,

Re: [QUIZ] Word Search (#107)

From: Mariano Kamp <mariano.kamp@...>
Date: 2007-01-01 15:46:44 UTC
List: ruby-talk #232010
Hi,

   nice quiz ... Not too time intensive ;-)

On Dec 29, 2006, at 5:06 PM, Ruby Quiz wrote:
> Today's quiz would've been most useful in elementary school, where =20
> over half of
> the homework assignments were word search puzzles. The concept of =20
> these puzzles
> is simple enough that an elementary school student could understand =20=

> it:  given a
> box of letters, find a line containing the letters of a specified =20
> word in order.

I attached my solution. See test_ruby_quiz. Please be gentle ;-)

> 	* An output format superior to the one given. The output format =
given
> 	  should remain the default unless both formats don't differ on =
a
> 	  textual basis. That should sound cryptic until pondered, I =
can't
> 	  give too much away!
I like the current format.

> 	* Allow for "snaking" of answers, in other words, the letters
> 	  composing a word don't have to be in a straight line.
It allows for snaking, see "test_snake", and also for matches that =20
leave the field on one side and comes back on another, e.g. YRUB. See =20=

test_overflow.

> 	* An option to give a hint, i.e., "The word ruby traverses the =
bottom
> 	  left and bottom right quadrants."
nah.

> 	* Decide what to do with accented letters.
Didn't implement that either.

> 	* Allow for wildcard letters.
Didn't go all the way like using regexp, but  "*" is allowed as a =20
wild card character.

Funny enough, my Sudoku solution took less lines than this one ...

Cheers,
Mariano

=EF=BF=BC=EF=BF=BC=

Attachments (2)

word_search_test.rb (2.74 KB, text/x-ruby-script)
require 'test/unit'
require 'word_search'
class WordSearchTest < Test::Unit::TestCase
  def test_parse
    input = <<-INPUT
    XXXRXXX
    XXXUXXX
    XXXBXXX
    XXXYXXX
    
    RUBY
    INPUT
    
    word_search = WordSearch.new input
    assert_equal 1, word_search.words.size
    assert_equal 4, word_search.rows.size
    assert_equal 7, word_search.row_length
  end
  
  def test_multiple_words_and_case_insensitivity_of_words
    word_search = WordSearch.new <<-INPUT
    XXXXX
    
    one, TWO, ThrEe
    INPUT
    assert_equal ["one", "two", "three"], word_search.words
  end
  
  def test_unused_char
    input = <<-INPUT
    RUBY
    RUBY
    RUBY
      
    a
    INPUT
    begin
      WordSearch.new(input).solve
      fail
    rescue RuntimeError => e
      assert_equal "Word a not found", e.message
    end
  end
  
  def test_ruby_quiz
    input = <<-INPUT
    UEWRTRBHCD
    CXGZUWRYER
    ROCKSBAUCU
    SFKFMTYSGE
    YSOOUNMZIM
    TCGPRTIDAN
    HZGHQGWTUV
    HQMNDXZBST
    NTCLATNBCE
    YBURPZUXMS
    
    Ruby, rocks, DAN, matZ
    INPUT
   
    # If any word isn't found an exception will be raised
    WordSearch.new(input).solve
  end
  
  def test_snake
    input = <<-INPUT
    SxExxx
    xNxKxx
    xxAxxx
    
    Snake
    INPUT
    output = <<-OUTPUT
    S+E+++
    +N+K++
    ++A+++
    OUTPUT
    
    assert_equal output.gsub(' ',''), WordSearch.new(input).solve
  end
  
  def test_overflow
    input = []
    input << "BYRU\n"
    input << "YRUB\n"
    input << <<-INPUT
    U
    B
    Y
    R
    INPUT
    input << <<-INPUT
    xxxx
    xxRX
    xxxU
    Bxxx
    xYxx
    INPUT
    input << <<-INPUT
    Bxxxxx
    xYxxxx
    xxxxRx
    xxxxxU
    INPUT
    
    begin
      input.each do |tc_input|
        @tc_input = tc_input
        assert WordSearch.new(tc_input + "\nruby\n").solve
      end
    rescue
      puts "\n#{@tc_input} failed."
      fail
    end
  end
  
  def test_find
    input = <<-INPUT
    xxxRxxx
    xxxUxxx
    xxxBxxx
    xxxYxxx
    
    RUBY
    INPUT
    
    output = <<-OUTPUT
    +++R+++
    +++U+++
    +++B+++
    +++Y+++
    OUTPUT
    
    word_search = WordSearch.new input
    assert_equal output.gsub(/ /, ''), word_search.solve
  end

  def test_find_with_wildcard
    input = <<-INPUT
    xxxRxxx
    xxxUxxx
    xxxBxxx
    xxxYxxx
    
    R*BY
    INPUT
    
    assert WordSearch.new(input)
  end
  
  def test_neighbours
    word_search = WordSearch.new <<-INPUT
    ABCD
    EFGH
    IJKL
    MNOP
    
    foo, bar
    INPUT
    
    assert_equal "abc"+"eg"+"ijk", neighbour_values(word_search.field(1,1))
    assert_equal ("bd"+"efh"+"mnp").sort.join, neighbour_values(word_search.field(0,0))
  end
  
  
  private
  def neighbour_values(field)
    field.neighbours.collect{|f|f.value}.sort.join
  end
end
word_search.rb (3.95 KB, text/x-ruby-script)
class WordSearch
  attr_reader :rows, :row_length, :words
  
  def initialize(input)
    input_lines = input.to_a
    
    raise "At least three lines must be entered" if input_lines.size < 3
    
    @words = input_lines.pop.downcase.gsub(/\s/, '').split(',')
    raise "Words need to be specified" if @words.empty?
    
    input_lines.pop # remove empty line

    raise "No rows provided" if input_lines.empty?

    @chars = {} # starting points
    row_index = -1
    @rows = Array.new(input_lines.size) do
      row_index += 1
      col_index = -1
      input_lines.shift.strip.downcase.scan(/./).map do |char| 
        col_index += 1
        field = Field.new char, row_index, col_index, self
        (@chars[char] ||= []) << field
        field
      end
    end

    @row_length= rows.first.size
    raise "All rows need to have the same number of columns" if @rows.any? {|r| r.size != @row_length}
  end
  
  def field(row_idx, col_idx)
    @rows[row_idx][col_idx]
  end
  
  def solve
    fields = @words.collect do |word| 
      result = find_word(word) || find_word(word.reverse)
      raise "Word #{word} not found" unless result
      result
    end.flatten.uniq
    
    all_fields = Array.new(rows.size) {"+"*row_length}
    fields.each do |field|
      all_fields[field.row_idx][field.col_idx] = field.value
    end
    (all_fields.join("\n")+"\n").upcase
  end
  
  private 
  def find_word(word, try_field = nil, visited_fields = [])
    visited_fields = visited_fields.dup
    
    # Iter over the hash associated with characters to find starting points
    if try_field.nil? 
      first_char = word[0..0]
      starting_points = @chars[first_char]
      return false unless starting_points
      
      starting_points.each do |field|
        result = find_word(word, field)
        return result if result
      end
      return false

    else # find_word with a starting point called
      
      visited_fields << try_field    

      found_word = visited_fields.collect{|f|f.value}.join

      # check partial match wrt wildcards
      search_word = word[0..found_word.length-1]

      search_word.scan(/./).each_with_index do |char, index|
        if char == '*'
          found_char = found_word[index..index]
          search_word[index..index] = found_char
        end 
      end
      
      if found_word == search_word && found_word.length == word.length # match?
         return visited_fields
      end
      
      if visited_fields.length < word.length # Stop deepening?
              
        # Deepening
        # Recursively try neighbouring fields
        next_char = word[visited_fields.length..visited_fields.length]
    
        try_field.neighbours.select do |neighbour|
          (next_char == '*' || neighbour.value == next_char) && (!visited_fields.include? neighbour)
        end.each do |neighbour|
          # Broadening
          result = find_word(word, neighbour, visited_fields)
          return result if result
        end      
      end
      return false
    end
  end
end

class Field
  attr_reader :value, :row_idx, :col_idx, :word_search
  
  NEIGHBOUR_COORDINATES = [-1, -1], [-1, 0],[0, -1],
                          [+1, +1], [+1, 0],[0, +1],
                          [+1, -1], [-1, +1]
                          
  def initialize(value, row_idx, col_idx, word_search)
    @value, @row_idx, @col_idx, @word_search = value, row_idx, col_idx, word_search
  end
  
  def neighbours 
    @neighbours ||= NEIGHBOUR_COORDINATES.map do |row_mod,col_mod|
      # Using mod to handle overflowing and negative coordinates
      row = (@row_idx + row_mod) % @word_search.rows.size
      col = (@col_idx + col_mod) % @word_search.row_length
      @word_search.field(row, col)
    end
  end
end

if __FILE__ == $0
  puts "Enter text (empty line when finished):"
  input = []
  loop do 
    input << line = readline
    break if line.gsub(/\s/, '').empty?
  end
  puts "Enter words now (comma separated): "
  input << readline
  puts "Here is the result:"
  puts WordSearch.new(input).solve
end

In This Thread