[#114484] Secret Santas (#2) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

56 messages 2004/10/01
[#114675] Secret Santas (#2) — Robo <robo@...> 2004/10/03

I'm still new to Ruby, but giving this a crack anyway.

[#114496] Community size — Dave Thomas <dave@...>

Folks:

15 messages 2004/10/01

[#114646] Kernel#eval taking a block — "trans. (T. Onoma)" <transami@...>

Is there a reason Kernel#eval won't take a block? I wrote this to overcome:

14 messages 2004/10/03
[#114729] Re: Kernel#eval taking a block — nobu.nokada@... 2004/10/04

Hi,

[#114654] Feature Request: Truly Indented Here-Docs — James Edward Gray II <james@...>

Ruby's here-doc syntax baffles me. I don't get the indent the end tag

11 messages 2004/10/03

[#114708] Thinking about Threaded IO — James Edward Gray II <james@...>

I've not used Ruby's threads before, so I have what will probably be

13 messages 2004/10/03

[#114824] A ruby course — Brian Schrer <ruby@...>

Hello List,

42 messages 2004/10/04
[#115001] Re: A ruby course — Gavin Sinclair <gsinclair@...> 2004/10/05

On Tuesday, October 5, 2004, 3:17:47 AM, Brian wrote:

[#115042] Re: A ruby course — Brian Schrer <ruby@...> 2004/10/05

Hello Group,

[#114890] New [] Semantics — Bill Atkins <batkins57@...>

Currently, the following code

97 messages 2004/10/04
[#114910] Re: [RCR] New [] Semantics — Charles Comstock <cc1@...> 2004/10/05

Bill Atkins wrote:

[#114925] Re: [RCR] New [] Semantics — "trans. (T. Onoma)" <transami@...> 2004/10/05

On Monday 04 October 2004 09:09 pm, Charles Comstock wrote:

[#114938] Re: [RCR] New [] Semantics — Markus <markus@...> 2004/10/05

The ideas I'm (slowly) playing with for ranges:

[#114959] Re: [RCR] New [] Semantics — "trans. (T. Onoma)" <transami@...> 2004/10/05

On Tuesday 05 October 2004 01:25 am, Markus wrote:

[#115120] Range behavior (Re: [RCR] New [] Semantics) — Yukihiro Matsumoto <matz@...> 2004/10/06

Hi,

[#115128] Re: Range behavior (Re: [RCR] New [] Semantics) — "trans. (T. Onoma)" <transami@...> 2004/10/06

On Tuesday 05 October 2004 08:19 pm, Yukihiro Matsumoto wrote:

[#115159] Re: Range behavior (Re: [RCR] New [] Semantics) — Brian Candler <B.Candler@...> 2004/10/06

On Wed, Oct 06, 2004 at 11:18:50AM +0900, trans. (T. Onoma) wrote:

[#115196] Re: Range behavior (Re: [RCR] New [] Semantics) — "trans. (T. Onoma)" <transami@...> 2004/10/06

On Wednesday 06 October 2004 05:15 am, Brian Candler wrote:

[#115345] Re: Range behavior (Re: [RCR] New [] Semantics) — Martin DeMello <martindemello@...> 2004/10/07

Yukihiro Matsumoto <matz@ruby-lang.org> wrote:

[#115404] Re: Range behavior (Re: [RCR] New [] Semantics) — "trans. (T. Onoma)" <transami@...> 2004/10/07

matz wrote:

[#115413] Re: Range behavior (Re: [RCR] New [] Semantics) — Brian Candler <B.Candler@...> 2004/10/07

On Thu, Oct 07, 2004 at 11:11:11PM +0900, trans. (T. Onoma) wrote:

[#115424] Re: Range behavior (Re: [RCR] New [] Semantics) — "trans. (T. Onoma)" <transami@...> 2004/10/07

Brian, you make some excellent points, and clarify the issues. Thanks.

[#115514] Re: Range behavior (Re: [RCR] New [] Semantics) — Yukihiro Matsumoto <matz@...> 2004/10/08

Hi,

[#115527] Re: Range behavior (Re: [RCR] New [] Semantics) — "trans. (T. Onoma)" <transami@...> 2004/10/08

On Thursday 07 October 2004 08:08 pm, Yukihiro Matsumoto wrote:

[#115543] Re: Range behavior (Re: [RCR] New [] Semantics) — Yukihiro Matsumoto <matz@...> 2004/10/08

Hi,

[#115553] Re: Range behavior (Re: [RCR] New [] Semantics) — "trans. (T. Onoma)" <transami@...> 2004/10/08

On Thursday 07 October 2004 11:42 pm, Yukihiro Matsumoto wrote:

[#115569] Re: Range behavior (Re: [RCR] New [] Semantics) — Yukihiro Matsumoto <matz@...> 2004/10/08

Hi,

[#115626] Re: Range behavior (Re: [RCR] New [] Semantics) — "trans. (T. Onoma)" <transami@...> 2004/10/08

On Friday 08 October 2004 04:31 am, Yukihiro Matsumoto wrote:

[#115800] Re: Range behavior (Re: [RCR] New [] Semantics) — Yukihiro Matsumoto <matz@...> 2004/10/09

Hi,

[#115802] Re: Range behavior (Re: [RCR] New [] Semantics) — "Randy W. Sims" <ml-ruby@...> 2004/10/09

On 10/9/2004 4:28 AM, Yukihiro Matsumoto wrote:

[#115807] Re: Range behavior (Re: [RCR] New [] Semantics) — Yukihiro Matsumoto <matz@...> 2004/10/09

Hi,

[#115809] Re: Range behavior (Re: [RCR] New [] Semantics) — "Randy W. Sims" <ml-ruby@...> 2004/10/09

On 10/9/2004 5:08 AM, Yukihiro Matsumoto wrote:

[#115811] Re: Range behavior (Re: [RCR] New [] Semantics) — Yukihiro Matsumoto <matz@...> 2004/10/09

Hi,

[#115814] Re: Range behavior (Re: [RCR] New [] Semantics) — "Randy W. Sims" <ml-ruby@...> 2004/10/09

On 10/9/2004 5:33 AM, Yukihiro Matsumoto wrote:

[#115817] Re: Range behavior (Re: [RCR] New [] Semantics) — gabriele renzi <rff_rff@...> 2004/10/09

Randy W. Sims ha scritto:

[#115820] Re: Range behavior (Re: [RCR] New [] Semantics) — Brian Candler <B.Candler@...> 2004/10/09

On Sat, Oct 09, 2004 at 08:14:42PM +0900, gabriele renzi wrote:

[#114892] RubyGems and RPA — James Edward Gray II <james@...>

Having just read the RubyGems chapter in the Pickaxe II, I'm curious

31 messages 2004/10/04
[#114895] Re: RubyGems and RPA — Bill Atkins <batkins57@...> 2004/10/04

RPA and RubyGems both solve the same problem (automatic installation

[#114977] Re: RubyGems and RPA — Eivind Eklund <eeklund@...> 2004/10/05

Association disclaimer: I'm the original architect of the RPA vision

[#115194] Re: RubyGems and RPA — Chad Fowler <chadfowler@...> 2004/10/06

On Tue, 5 Oct 2004 20:09:10 +0900, Eivind Eklund <eeklund@gmail.com> wrote:

[#115224] Re: RubyGems and RPA — Eivind Eklund <eeklund@...> 2004/10/06

On Wed, 6 Oct 2004 22:48:07 +0900, Chad Fowler <chadfowler@gmail.com> wrote:

[#115251] Re: RubyGems and RPA — Richard Kilmer <rich@...> 2004/10/06

[#115260] Re: RubyGems and RPA — Austin Ziegler <halostatue@...> 2004/10/06

On Thu, 7 Oct 2004 03:00:45 +0900, Richard Kilmer <rich@infoether.com> wrote:

[#114924] Regexp match question on interpolated strings... — Richard Kilmer <rich@...>

If I had the source for a string:

13 messages 2004/10/05

[#114927] Ruby-esque Inversion of Control — Jamis Buck <jgb3@...>

First, let me just say THANK-YOU to everyone who gave me feedback on my

13 messages 2004/10/05
[#115046] Re: Ruby-esque Inversion of Control — Paul Brannan <pbrannan@...> 2004/10/05

I still don't think that Copland is in any way useful to me (I just

[#115095] Large disc-based "hash"? — Robert Feldt <feldt@...>

Hi,

13 messages 2004/10/05

[#115195] quality of error messages — Joachim Wuttke <Joachim_Wuttke@...>

Hi Ruby developers,

101 messages 2004/10/06
[#115200] Re: quality of error messages — Brian Candler <B.Candler@...> 2004/10/06

On Wed, Oct 06, 2004 at 10:48:49PM +0900, Joachim Wuttke wrote:

[#115207] Re: quality of error messages — Joachim Wuttke <Joachim_Wuttke@...> 2004/10/06

Encouraged by your quick response, I try to explain better

[#115212] Re: quality of error messages — Gavin Sinclair <gsinclair@...> 2004/10/06

On Thursday, October 7, 2004, 12:49:33 AM, Joachim wrote:

[#115264] Re: quality of error messages — Charles Hixson <charleshixsn@...> 2004/10/06

Gavin Sinclair wrote:

[#115268] Re: quality of error messages — Brian Candler <B.Candler@...> 2004/10/06

On Thu, Oct 07, 2004 at 04:30:38AM +0900, Charles Hixson wrote:

[#115286] Re: quality of error messages — Joachim Wuttke <Joachim_Wuttke@...> 2004/10/06

Thank you, Brian.

[#115289] Re: quality of error messages — Markus <markus@...> 2004/10/06

On Wed, 2004-10-06 at 15:19, Joachim Wuttke wrote:

[#115460] Re: quality of error messages — Mark Hubbart <discordantus@...> 2004/10/07

On Thu, 7 Oct 2004 07:39:04 +0900, Markus <markus@reality.com> wrote:

[#115484] Re: quality of error messages — Brian Schrer <ruby@...> 2004/10/07

Mark Hubbart wrote:

[#115511] Re: quality of error messages — Yukihiro Matsumoto <matz@...> 2004/10/07

Hi,

[#115596] Re: quality of error messages — Brian Candler <B.Candler@...> 2004/10/08

On Fri, Oct 08, 2004 at 08:06:27AM +0900, Yukihiro Matsumoto wrote:

[#116200] Re: quality of error messages — Austin Ziegler <halostatue@...> 2004/10/11

On Fri, 8 Oct 2004 20:26:55 +0900, Brian Candler <b.candler@pobox.com> wrote:

[#116211] Re: quality of error messages — Hal Fulton <hal9000@...> 2004/10/12

Austin Ziegler wrote:

[#116215] Ruby Directions (was Re: quality of error messages) — Austin Ziegler <halostatue@...> 2004/10/12

On Tue, 12 Oct 2004 09:21:16 +0900, Hal Fulton <hal9000@hypermetrics.com> wrote:

[#116216] Re: Ruby Directions (was Re: quality of error messages) — "David A. Black" <dblack@...> 2004/10/12

Hi --

[#116256] Re: Ruby Directions (was Re: quality of error messages) — "Robert Klemme" <bob.news@...> 2004/10/12

[#116299] Re: Ruby Directions (was Re: quality of error messages) — Gavin Sinclair <gsinclair@...> 2004/10/12

On Tuesday, October 12, 2004, 5:09:37 PM, Robert wrote:

[#115493] Re: quality of error messages — Austin Ziegler <halostatue@...> 2004/10/07

On Thu, 7 Oct 2004 07:39:04 +0900, Markus <markus@reality.com> wrote:

[#115513] Re: quality of error messages — markus@... 2004/10/07

On Fri, 8 Oct 2004, Austin Ziegler wrote:

[#115285] Bit of the Matz Interview (in Rubyist Magazine) — <ume@...>

I haven't translated it all yet (it's quite long to translate, and I'm just

38 messages 2004/10/06
[#115293] Re: Bit of the Matz Interview (in Rubyist Magazine) — Jamis Buck <jgb3@...> 2004/10/06

ume@lightsider.com wrote:

[#115299] Re: Bit of the Matz Interview (in Rubyist Magazine) — Yukihiro Matsumoto <matz@...> 2004/10/06

Hi,

[#115301] Re: Bit of the Matz Interview (in Rubyist Magazine) — Chad Fowler <chadfowler@...> 2004/10/06

On Thu, 7 Oct 2004 08:27:08 +0900, Yukihiro Matsumoto

[#115360] ndb Object-Relational Mapper — "George Moschovitis" <george.moschovitis@...>

= n/db README

25 messages 2004/10/07
[#115368] Re: [ANN] ndb Object-Relational Mapper — Brian Candler <B.Candler@...> 2004/10/07

On Thu, Oct 07, 2004 at 08:14:53PM +0900, George Moschovitis wrote:

[#115407] Re: [ANN] ndb Object-Relational Mapper — "Kirk Haines" <khaines@...> 2004/10/07

On Thu, 7 Oct 2004 21:20:37 +0900, Brian Candler wrote

[#115430] Re: [ANN] ndb Object-Relational Mapper — Brian Candler <B.Candler@...> 2004/10/07

On Thu, Oct 07, 2004 at 11:31:37PM +0900, Kirk Haines wrote:

[#115583] Re: [ANN] ndb Object-Relational Mapper — George Moschovitis <gm@...> 2004/10/08

> I wrote a system once which incorporated this concept, but since it had a

[#115427] Sth. wrong with File.file? (or with me) — Michael Weller <michael@...>

Hi!

114 messages 2004/10/07
[#115435] Re: Sth. wrong with File.file? (or with me) — Mohammad Khan <mkhan@...> 2004/10/07

On Thu, 2004-10-07 at 12:30, Michael Weller wrote:

[#118265] true? & false? — Mohammad Khan <mkhan@...> 2004/10/29

Wouldn't it be nice to have two more methods true? and false? like nil?

[#118266] Re: true? & false? — Bill Atkins <batkins57@...> 2004/10/29

Why would that be nice? :)

[#118268] Re: true? & false? — Mohammad Khan <mkhan@...> 2004/10/29

I prefer something like,

[#118270] Re: true? & false? — James Edward Gray II <james@...> 2004/10/29

On Oct 29, 2004, at 10:16 AM, Mohammad Khan wrote:

[#118276] Re: true? & false? — Mohammad Khan <mkhan@...> 2004/10/29

On Fri, 2004-10-29 at 11:22, James Edward Gray II wrote:

[#118294] Re: true? & false? — Austin Ziegler <halostatue@...> 2004/10/29

On Sat, 30 Oct 2004 00:47:31 +0900, Mohammad Khan <mkhan@lextranet.com> wrote:

[#118295] Re: true? & false? — Mohammad Khan <mkhan@...> 2004/10/29

On Fri, 2004-10-29 at 13:43, Austin Ziegler wrote:

[#118298] Another scrach on head — Mohammad Khan <mkhan@...> 2004/10/29

[#118299] Re: Another scrach on head — Jamis Buck <jgb3@...> 2004/10/29

Mohammad Khan wrote:

[#118304] Re: Another scrach on head — Mohammad Khan <mkhan@...> 2004/10/29

On Fri, 2004-10-29 at 14:05, Jamis Buck wrote:

[#118306] Re: Another scrach on head — Mohammad Khan <mkhan@...> 2004/10/29

On Fri, 2004-10-29 at 14:16, Mohammad Khan wrote:

[#118308] Re: Another scrach on head — Jamis Buck <jgb3@...> 2004/10/29

Mohammad Khan wrote:

[#118345] Re: Another scrach on head — Yukihiro Matsumoto <matz@...> 2004/10/30

Hi,

[#118596] Re: Another scrach on head — Mohammad Khan <mkhan@...> 2004/11/01

On Sat, 2004-10-30 at 00:03, Yukihiro Matsumoto wrote:

[#118598] Re: Another scrach on head — "David A. Black" <dblack@...> 2004/11/01

Hi --

[#118602] Re: Another scrach on head — Ara.T.Howard@... 2004/11/01

On Tue, 2 Nov 2004, David A. Black wrote:

[#118627] Re: Another scrach on head — "Jim Weirich" <jim@...> 2004/11/01

[#118629] Re: Another scrach on head — Austin Ziegler <halostatue@...> 2004/11/01

On Tue, 2 Nov 2004 05:47:18 +0900, Jim Weirich <jim@weirichhouse.org> wrote:

[#119859] Re: true? & false? — "Robert Klemme" <bob.news@...> 2004/11/11

[#119879] Re: true? & false? — Mohammad Khan <mkhan@...> 2004/11/11

The main reason I brought up this issue is:

[#119938] Re: true? & false? — Austin Ziegler <halostatue@...> 2004/11/11

On Fri, 12 Nov 2004 00:28:35 +0900, Mohammad Khan

[#119888] Re: true? & false? — "Robert Klemme" <bob.news@...> 2004/11/11

[#119917] Re: true? & false? — Jean-Hugues ROBERT <jean_hugues_robert@...> 2004/11/11

Hi there,

[#119937] Re: true? & false? — Logan Capaldo <logancapaldo@...> 2004/11/11

Well I have written true? and false? methods in the past. Forgetting

[#119939] Re: true? & false? — Austin Ziegler <halostatue@...> 2004/11/11

On Fri, 12 Nov 2004 04:47:27 +0900, Logan Capaldo

[#115455] RubyConf 2004 sessions available (audio/mp3) — Richard Kilmer <rich@...>

All,

24 messages 2004/10/07
[#115572] Re: [ANN] RubyConf 2004 sessions available (audio/mp3) — Mathieu Blondel <matt@...> 2004/10/08

[#115457] dev-utils v1.0 — Gavin Sinclair <gsinclair@...>

Hi all,

15 messages 2004/10/07

[#115544] Re: quality of error messages — "Pe, Botp" <botp@...>

Yukihiro Matsumoto [mailto:matz@ruby-lang.org] wrote:

16 messages 2004/10/08
[#115545] Re: quality of error messages — Yukihiro Matsumoto <matz@...> 2004/10/08

Hi,

[#115546] Re: quality of error messages — Jamis Buck <jgb3@...> 2004/10/08

Yukihiro Matsumoto wrote:

[#115551] Re: quality of error messages — Yukihiro Matsumoto <matz@...> 2004/10/08

Hi,

[#115586] rails vs Java Struts — Armin Roehrl <armin@...>

Hi,

26 messages 2004/10/08

[#115614] Geodesic Dome Faces (#3) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

31 messages 2004/10/08

[#115652] Problems with my first multithreaded Rupy programm — "Tassilo Horn" <heimdall@...>

Hi,

11 messages 2004/10/08

[#115684] ANN: Free-form-operators patch — Markus <markus@...>

All --

102 messages 2004/10/08
[#115698] Re: ANN: Free-form-operators patch — gabriele renzi <rff_rff@...> 2004/10/08

Markus ha scritto:

[#115699] Re: ANN: Free-form-operators patch — Hal Fulton <hal9000@...> 2004/10/08

gabriele renzi wrote:

[#115705] Re: ANN: Free-form-operators patch — Markus <markus@...> 2004/10/08

On Fri, 2004-10-08 at 11:54, Hal Fulton wrote:

[#115713] Re: ANN: Free-form-operators patch — Hal Fulton <hal9000@...> 2004/10/08

Markus wrote:

[#115719] Re: ANN: Free-form-operators patch — Markus <markus@...> 2004/10/08

On Fri, 2004-10-08 at 12:43, Hal Fulton wrote:

[#115726] Re: ANN: Free-form-operators patch — Hal Fulton <hal9000@...> 2004/10/08

Markus wrote:

[#115830] Re: ANN: Free-form-operators patch — "David A. Black" <dblack@...> 2004/10/09

Hi --

[#115796] Re: ANN: Free-form-operators patch — gabriele renzi <rff_rff@...> 2004/10/09

Markus ha scritto:

[#115872] Re: ANN: Free-form-operators patch — Charles Hixson <charleshixsn@...> 2004/10/09

gabriele renzi wrote:

[#115955] Re: ANN: Free-form-operators patch — Brian Candler <B.Candler@...> 2004/10/10

On Sun, Oct 10, 2004 at 04:19:30AM +0900, Charles Hixson wrote:

[#115971] Re: ANN: Free-form-operators patch — "trans. (T. Onoma)" <transami@...> 2004/10/10

On Sunday 10 October 2004 05:48 am, Brian Candler wrote:

[#115988] Re: ANN: Free-form-operators patch — Markus <markus@...> 2004/10/10

On Sun, 2004-10-10 at 02:48, Brian Candler wrote:

[#116087] Re: ANN: Free-form-operators patch — Yukihiro Matsumoto <matz@...> 2004/10/11

Hi,

[#115702] Re: ANN: Free-form-operators patch — Markus <markus@...> 2004/10/08

On Fri, 2004-10-08 at 11:44, gabriele renzi wrote:

[#115704] Re: ANN: Free-form-operators patch — "Jason Voegele" <jason@...> 2004/10/08

Markus said:

[#115728] Re: ANN: Free-form-operators patch — Charles Hixson <charleshixsn@...> 2004/10/08

Jason Voegele wrote:

[#115752] Re: ANN: Free-form-operators patch — "Jim Weirich" <jim@...> 2004/10/08

[#115774] Re: ANN: Free-form-operators patch — Markus <markus@...> 2004/10/09

On Fri, 2004-10-08 at 15:39, Jim Weirich wrote:

[#115707] TempFile — Matt Maycock <ummaycoc@...>

[ummaycoc@localhost ummaycoc]$ ruby -v

18 messages 2004/10/08
[#115771] Re: TempFile — Ara.T.Howard@... 2004/10/09

On Sat, 9 Oct 2004, Matt Maycock wrote:

[#115881] Re: TempFile — Matt Maycock <ummaycoc@...> 2004/10/09

Nope :-(

[#115787] Definitive method for managing ruby installations — Carl Youngblood <carl.youngblood@...>

It seems like most ruby programmers build and install ruby from

13 messages 2004/10/09

[#115806] Re: Ruby is a slow performer — gabriele renzi <rff_rff@...>

Sergei Gnezdov ha scritto:

20 messages 2004/10/09
[#119298] Re: Ruby is a slow performer — Christian Szegedy <szegedy@...> 2004/11/05

gabriele renzi wrote:

[#119302] Re: Ruby is a slow performer — "David G. Andersen" <dga@...> 2004/11/05

On Sat, Nov 06, 2004 at 06:23:41AM +0900, Christian Szegedy scribed:

[#119366] Re: Ruby is a slow performer — Christian Szegedy <szegedy@...> 2004/11/06

David G. Andersen wrote:

[#115856] Hypergraph? — Hal Fulton <hal9000@...>

I've looked a little at Hypergraph (http://hypergraph.sourceforge.net) and I

26 messages 2004/10/09
[#115899] Re: Hypergraph? — Kaspar Schiess <eule@...> 2004/10/09

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

[#115885] Ruby VM Projects — "Mark Wassell" <mwassel@...>

There are a number of RubyVM machine projects some just starting, some

23 messages 2004/10/09

[#115954] DI service change notifications (Syringe) — leon breedt <bitserf@...>

hi,

14 messages 2004/10/10

[#116007] Putting some code out to DRY — "trans. (T. Onoma)" <transami@...>

13 messages 2004/10/10

[#116039] Ruby programming styles and new program? — Bill <bi11@...>

Hello,

17 messages 2004/10/11
[#116092] Re: Ruby programming styles and new program? — Eivind Eklund <eeklund@...> 2004/10/11

On Mon, 11 Oct 2004 09:04:40 +0900, Bill <bi11@lynxview.com> wrote:

[#116096] case based on object class — George Moschovitis <gm@...>

Hello everyone,

14 messages 2004/10/11
[#116098] Re: [Q] case based on object class — Hal Fulton <hal9000@...> 2004/10/11

George Moschovitis wrote:

[#116226] documentation as source — "Randy W. Sims" <ml-ruby@...>

Are there any Ruby modules that allow documentation to act as source

59 messages 2004/10/12
[#116281] Re: documentation as source — Bil Kleb <Bil.Kleb@...> 2004/10/12

Randy W. Sims wrote:

[#116284] Re: documentation as source — Florian Gross <flgr@...> 2004/10/12

Bil Kleb wrote:

[#116566] Re: documentation as source — Nathaniel Talbott <nathaniel@...> 2004/10/14

On Oct 12, 2004, at 07:39, Florian Gross wrote:

[#116693] Re: documentation as source — "trans. (T. Onoma)" <transami@...> 2004/10/15

On Wednesday 13 October 2004 09:19 pm, Nathaniel Talbott wrote:

[#116983] Re: documentation as source — Massimiliano Mirra - bard <mmirra@...> 2004/10/18

Eivind Eklund <eeklund@gmail.com> writes:

[#117022] Re: documentation as source — Eivind Eklund <eeklund@...> 2004/10/19

On Tue, 19 Oct 2004 05:09:22 +0900, Massimiliano Mirra - bard

[#117025] Re: documentation as source — Bil Kleb <Bil.Kleb@...> 2004/10/19

Eivind Eklund wrote:

[#117026] Re: documentation as source — Eivind Eklund <eeklund@...> 2004/10/19

On Tue, 19 Oct 2004 22:33:57 +0900, Bil Kleb <bil.kleb@nasa.gov> wrote:

[#117029] Re: documentation as source — Peter Hickman <peter@...> 2004/10/19

Eivind Eklund wrote:

[#117033] Re: documentation as source — Mauricio Fern疣dez <batsman.geo@...> 2004/10/19

On Tue, Oct 19, 2004 at 11:08:35PM +0900, Peter Hickman wrote:

[#116271] "nan".to_f ? — Thomas Fini Hansen <beast@...>

I ran into this difference:

29 messages 2004/10/12
[#116276] Re: "nan".to_f ? — Stephan K舂per <Stephan.Kaemper@...> 2004/10/12

Hi Thomas, hi Rubyists

[#116340] Re: "nan".to_f ? — Markus <markus@...> 2004/10/12

[#116343] Re: "nan".to_f ? — Mikael Brockman <mikael@...> 2004/10/12

Markus <markus@reality.com> writes:

[#116354] Re: "nan".to_f ? — Stephan K舂per <Stephan.Kaemper@...> 2004/10/12

Mikael Brockman wrote:

[#116318] dev-utils v1.0.1 — Gavin Sinclair <gsinclair@...>

Hi folks,

13 messages 2004/10/12

[#116408] eRuby for Windows — Gavin Kistner <gavin@...>

I have a situation where I need to create/write static web pages using

15 messages 2004/10/13

[#116474] Gems Install Problem — jim@...

Hi

14 messages 2004/10/13

[#116478] Sharing variables across methods — David Garamond <lists@...6.isreserved.com>

When writing short scripts (several pages long) I often want to share

17 messages 2004/10/13
[#116484] Re: Sharing variables across methods — Jamis Buck <jgb3@...> 2004/10/13

David Garamond wrote:

[#116546] using the RSS standard lib — Francis Hwang <sera@...>

Is anybody out there using the RSS standard lib that comes with Ruby

22 messages 2004/10/13
[#116552] Re: using the RSS standard lib — Nikolai Weibull <ruby-talk@...> 2004/10/13

* Francis Hwang <sera@fhwang.net> [Oct 13, 2004 23:10]:

[#116608] To all people writing BBS on Rails: let's join forces — Alexey Verkhovsky <alex@...>

I've noticed lately that there are at least four different projects

22 messages 2004/10/14

[#116615] Rounding to X digits — Eric Anderson <eric@...>

This seems like such a basic question yet I can't really find the answer

26 messages 2004/10/14
[#116662] Re: Rounding to X digits — Markus <markus@...> 2004/10/14

Here's mine (with a few extras):

[#116739] Re: Rounding to X digits — "trans. (T. Onoma)" <transami@...> 2004/10/15

On Thursday 14 October 2004 01:55 pm, Markus wrote:

[#116652] Eating sandwiches in the park — Markus <markus@...>

30 messages 2004/10/14
[#116657] Re: Eating sandwiches in the park — Eivind Eklund <eeklund@...> 2004/10/14

On Fri, 15 Oct 2004 02:13:35 +0900, Markus <markus@reality.com> wrote:

[#116661] Re: Eating sandwiches in the park — Brian Wisti <brianwisti@...> 2004/10/14

[#116701] drb, Session::Bash & FreeBSD — benny <listen@...>

Dear list,

17 messages 2004/10/15

[#116707] Can one simulate go to in Ruby? Is it possible? — Roman K9 <litleguy@...>

Hi,

18 messages 2004/10/15

[#116721] Again some problem with my multithreaded teadrinker app — "Tassilo Horn" <heimdall@...>

Hi,

12 messages 2004/10/15

[#117127] A concise description of Ruby? — "Curt Hibbs" <curt@...>

Yesterday, a co-worker came into my office and saw the shiny, new pickaxe II

91 messages 2004/10/20
[#117150] Re: A concise description of Ruby? — James Edward Gray II <james@...> 2004/10/20

On Oct 20, 2004, at 7:47 AM, Curt Hibbs wrote:

[#117161] Re: A concise description of Ruby? — James Britt <jamesUNDERBARb@...> 2004/10/20

I like most of the suggestions so far.

[#117192] Re: A concise description of Ruby? — Edgardo Hames <ehames@...> 2004/10/20

On Thu, 21 Oct 2004 00:59:50 +0900, James Britt

[#117199] Re: A concise description of Ruby? — "Curt Hibbs" <curt@...> 2004/10/20

Edgardo Hames wrote:

[#117200] Python vs. Ruby (Re: A concise description of Ruby?) — Jamis Buck <jgb3@...> 2004/10/20

Curt Hibbs wrote:

[#117231] Re: Python vs. Ruby (Re: A concise description of Ruby?) — Eivind Eklund <eeklund@...> 2004/10/20

On Thu, 21 Oct 2004 04:06:35 +0900, Jamis Buck <jgb3@email.byu.edu> wrote:

[#117233] Re: Python vs. Ruby (Re: A concise description of Ruby?) — gabriele renzi <rff_rff@...> 2004/10/20

Eivind Eklund ha scritto:

[#117165] Re: A concise description of Ruby? — Simon Strandgaard <neoneye@...> 2004/10/20

On Wednesday 20 October 2004 14:47, Curt Hibbs wrote:

[#117166] Re: A concise description of Ruby? — James Britt <jamesUNDERBARb@...> 2004/10/20

Simon Strandgaard wrote:

[#117170] Re: A concise description of Ruby? — "Curt Hibbs" <curt@...> 2004/10/20

James Britt wrote:

[#117273] CamelCase issues — Michael Neumann <mneumann@...>

Hi,

30 messages 2004/10/21

[#117331] A little help on finding the closest match — "trans. (T. Onoma)" <transami@...>

Better way to find the closest match?

14 messages 2004/10/22

[#117459] RubyForge has been slow today because... — Richard Kilmer <rich@...>

Some freaking dork at the following IP address(s) was continually

76 messages 2004/10/24
[#117463] Garden Spam (was: RubyForge has been slow today because...) — "trans. (T. Onoma)" <transami@...> 2004/10/24

Speaking of attacks, I jumped over to the Garden Wiki just now and see that

[#117464] Re: Garden Spam — David Ross <dross@...> 2004/10/24

trans. (T. Onoma) wrote:

[#117474] Re: Garden Spam — gabriele renzi <rff_rff@...> 2004/10/24

David Ross ha scritto:

[#117485] Re: Garden Spam — "trans. (T. Onoma)" <transami@...> 2004/10/24

On Sunday 24 October 2004 06:29 am, gabriele renzi wrote:

[#117495] Re: Garden Spam — David Ross <dross@...> 2004/10/24

trans. (T. Onoma) wrote:

[#117509] Re: Garden Spam — "trans. (T. Onoma)" <transami@...> 2004/10/24

On Sunday 24 October 2004 10:52 am, David Ross wrote:

[#117517] Re: Garden Spam — Jamis Buck <jgb3@...> 2004/10/24

trans. (T. Onoma) wrote:

[#117586] Re: Garden Spam — Austin Ziegler <halostatue@...> 2004/10/25

On Mon, 25 Oct 2004 02:24:51 +0900, Jamis Buck <jgb3@email.byu.edu> wrote:

[#117588] Re: Garden Spam — Joey Gibson <joey@...> 2004/10/25

Austin Ziegler wrote:

[#117591] Re: Garden Spam — Jamis Buck <jgb3@...> 2004/10/25

Joey Gibson wrote:

[#117595] Re: Garden Spam — "trans. (T. Onoma)" <transami@...> 2004/10/25

On Monday 25 October 2004 11:35 am, Jamis Buck wrote:

[#117483] String#first / String#last — Simon Strandgaard <neoneye@...>

problem:

30 messages 2004/10/24
[#117538] Re: [rcr] String#first / String#last — djberg96@... (Daniel Berger) 2004/10/24

Simon Strandgaard <neoneye@adslhome.dk> wrote in message news:<200410241718.48182.neoneye@adslhome.dk>...

[#117543] Re: [rcr] String#first / String#last — Hal Fulton <hal9000@...> 2004/10/25

Daniel Berger wrote:

[#117557] Re: [rcr] String#first / String#last — Yukihiro Matsumoto <matz@...> 2004/10/25

Hi,

[#117540] Writing documentation in YAML - any advice? — "Its Me" <itsme213@...>

It will be a decent sized document. WinXP platform.

15 messages 2004/10/24

[#117598] Server Programming — Andy Stone <xsltguru@...>

Hello all,

20 messages 2004/10/25
[#117676] Re: Server Programming — Francis Hwang <sera@...> 2004/10/25

Hi Andy,

[#117685] Re: Server Programming — Andy Stone <xsltguru@...> 2004/10/26

Hello Francis,

[#117689] Re: Server Programming — Joel VanderWerf <vjoel@...> 2004/10/26

Andy Stone wrote:

[#117675] Errors in line numbers reported? — Hal Fulton <hal9000@...>

Has anyone ever seen Ruby report incorrect line numbers

37 messages 2004/10/25
[#117696] Re: Errors in line numbers reported? — Yukihiro Matsumoto <matz@...> 2004/10/26

Hi,

[#117698] Re: Errors in line numbers reported? — Hal Fulton <hal9000@...> 2004/10/26

Yukihiro Matsumoto wrote:

[#117778] Re: Errors in line numbers reported? — nobu.nokada@... 2004/10/26

Hi,

[#117699] Re: Errors in line numbers reported? — Ara.T.Howard@... 2004/10/26

On Tue, 26 Oct 2004, Yukihiro Matsumoto wrote:

[#117705] Re: Errors in line numbers reported? — Yukihiro Matsumoto <matz@...> 2004/10/26

Hi,

[#117712] Re: Errors in line numbers reported? — Ara.T.Howard@... 2004/10/26

On Tue, 26 Oct 2004, Yukihiro Matsumoto wrote:

[#117721] Re: Errors in line numbers reported? — Markus <markus@...> 2004/10/26

On Mon, 2004-10-25 at 20:54, Ara.T.Howard@noaa.gov wrote:

[#117731] Re: Errors in line numbers reported? — ts <decoux@...> 2004/10/26

>>>>> "M" == Markus <markus@reality.com> writes:

[#117811] New RCRchive is open — "David A. Black" <dblack@...>

Dear Rubyists --

14 messages 2004/10/26

[#117836] Auto-completion editor/IDE — "Eli Tucker" <eli-news@...>

Does anyone have any info on an IDE or editor that supports

17 messages 2004/10/26

[#117839] New RubyGarden article: "Reflections on Rails" — Chad Fowler <chadfowler@...>

Rubyists,

10 messages 2004/10/27

[#117854] Name Dropping — "Curt Hibbs" <curt@...>

I'm in the final leg of preparing for a presentation I'm giving on Friday to

18 messages 2004/10/27

[#117929] The real Ruby vs. Python. — Abe Vionas_MailingList <mailinglist_abe@...>

What it comes down to is what it's coming down to for

71 messages 2004/10/27
[#117937] Re: The real Ruby vs. Python. — Alexander Kellett <ruby-lists@...> 2004/10/27

On Wed, Oct 27, 2004 at 11:11:19PM +0900, Abe Vionas_MailingList wrote:

[#117967] Gems as key? Re: The real Ruby vs. Python. — "Its Me" <itsme213@...> 2004/10/27

[#118026] Re: Gems as key? Re: The real Ruby vs. Python. — "Its Me" <itsme213@...> 2004/10/27

"Eivind Eklund" <eeklund@gmail.com> wrote in message

[#118046] Re: Gems as key? Re: The real Ruby vs. Python. — Mauricio Fern疣dez <batsman.geo@...> 2004/10/27

On Thu, Oct 28, 2004 at 05:49:02AM +0900, Its Me wrote:

[#118054] Re: Gems as key? Re: The real Ruby vs. Python. — "trans. (T. Onoma)" <transami@...> 2004/10/28

Then it sounds like that RubyGems needs to adopt the framework of RPA, and

[#118058] Re: Gems as key? Re: The real Ruby vs. Python. — David Ross <dross@...> 2004/10/28

You can create your own packages with RPA as well. RPA doesnt have an

[#118073] Re: Gems as key? Re: The real Ruby vs. Python. — Andreas Schwarz <usenet@...> 2004/10/28

David Ross wrote:

[#118097] Re: Gems as key? Re: The real Ruby vs. Python. — Mauricio Fern疣dez <batsman.geo@...> 2004/10/28

On Thu, Oct 28, 2004 at 01:44:00PM +0900, Andreas Schwarz wrote:

[#118098] Re: Gems as key? Re: The real Ruby vs. Python. — "David A. Black" <dblack@...> 2004/10/28

On Thu, 28 Oct 2004, Mauricio Fern疣dez wrote:

[#118106] Re: Gems as key? Re: The real Ruby vs. Python. — Mauricio Fern疣dez <batsman.geo@...> 2004/10/28

On Thu, Oct 28, 2004 at 09:08:08PM +0900, David A. Black wrote:

[#117982] Rounding error, (100.0 * 9.95).to_i == 994 — Dan Janowski <danj@3skel.com>

I can understand floating point errors, but this one seems too small

84 messages 2004/10/27
[#117984] Re: Rounding error, (100.0 * 9.95).to_i == 994 — Walter Szewelanczyk <walter@...> 2004/10/27

Dan Janowski wrote:

[#117987] Re: Rounding error, (100.0 * 9.95).to_i == 994 — Bill Atkins <batkins57@...> 2004/10/27

OK, that would make sense if v's value was 994.5, but it seems to be

[#117993] Re: Rounding error, (100.0 * 9.95).to_i == 994 — Jamis Buck <jgb3@...> 2004/10/27

Bill Atkins wrote:

[#118005] Re: Rounding error, (100.0 * 9.95).to_i == 994 — Jason DiCioccio <jd@...> 2004/10/27

Hello!

[#118006] Re: Rounding error, (100.0 * 9.95).to_i == 994 — "David G. Andersen" <dga@...> 2004/10/27

On Thu, Oct 28, 2004 at 04:49:28AM +0900, Jason DiCioccio scribed:

[#118020] Re: Rounding error, (100.0 * 9.95).to_i == 994 — Hal Fulton <hal9000@...> 2004/10/27

David G. Andersen wrote:

[#118053] Re: Rounding error, (100.0 * 9.95).to_i == 994 — markus@... 2004/10/28

On Thu, 28 Oct 2004, Hal Fulton wrote:

[#118055] Re: Rounding error, (100.0 * 9.95).to_i == 994 — "trans. (T. Onoma)" <transami@...> 2004/10/28

On Wednesday 27 October 2004 08:22 pm, markus@reality.com wrote:

[#118126] Re: Rounding error, (100.0 * 9.95).to_i == 994 — Markus <markus@...> 2004/10/28

On Wed, 2004-10-27 at 17:40, trans. (T. Onoma) wrote:

[#118215] Re: Rounding error, (100.0 * 9.95).to_i == 994 — "trans. (T. Onoma)" <transami@...> 2004/10/29

On Thursday 28 October 2004 12:13 pm, Markus wrote:

[#118216] Re: Rounding error, (100.0 * 9.95).to_i == 994 — Hal Fulton <hal9000@...> 2004/10/29

trans. (T. Onoma) wrote:

[#118341] Re: Rounding error, (100.0 * 9.95).to_i == 994 — "trans. (T. Onoma)" <transami@...> 2004/10/30

On Friday 29 October 2004 03:00 am, Hal Fulton wrote:

[#118344] Re: Rounding error, (100.0 * 9.95).to_i == 994 — Hal Fulton <hal9000@...> 2004/10/30

trans. (T. Onoma) wrote:

[#118349] Re: Rounding error, (100.0 * 9.95).to_i == 994 — "trans. (T. Onoma)" <transami@...> 2004/10/30

On Saturday 30 October 2004 12:00 am, Hal Fulton wrote:

[#118019] Re: Rounding error, (100.0 * 9.95).to_i == 994 — Hal Fulton <hal9000@...> 2004/10/27

Jason DiCioccio wrote:

[#118025] Re: Rounding error, (100.0 * 9.95).to_i == 994 — "trans. (T. Onoma)" <transami@...> 2004/10/27

On Wednesday 27 October 2004 04:36 pm, Hal Fulton wrote:

[#118028] Re: Rounding error, (100.0 * 9.95).to_i == 994 — Hal Fulton <hal9000@...> 2004/10/27

trans. (T. Onoma) wrote:

[#118029] Re: Rounding error, (100.0 * 9.95).to_i == 994 — Jamis Buck <jgb3@...> 2004/10/27

trans. (T. Onoma) wrote:

[#118086] Re: Rounding error, (100.0 * 9.95).to_i == 994 — Mark Hubbart <discordantus@...> 2004/10/28

On Thu, 28 Oct 2004 05:57:53 +0900, Jamis Buck <jgb3@email.byu.edu> wrote:

[#118113] Re: Rounding error, (100.0 * 9.95).to_i == 994 — Dan Janowski <danj@3skel.com> 2004/10/28

I just want to thank all of you for a stimulating, interesting and, in

[#118125] Re: Rounding error, (100.0 * 9.95).to_i == 994 — "trans. (T. Onoma)" <transami@...> 2004/10/28

On Thursday 28 October 2004 11:06 am, Dan Janowski wrote:

[#118132] Re: Rounding error, (100.0 * 9.95).to_i == 994 — Charles Mills <cmills@...> 2004/10/28

On Oct 28, 2004, at 9:12 AM, trans. (T. Onoma) wrote:

[#118141] Re: Rounding error, (100.0 * 9.95).to_i == 994 — Guillaume Marcais <guslist@...> 2004/10/28

On Thu, 2004-10-28 at 04:23, Mark Hubbart wrote:

[#118153] Re: Rounding error, (100.0 2000 2001 Desktop Money Projects Protege.png Protege_2.1 Q3.DIR Quicken RCS Screenshot-1.png Screenshot-2.png Screenshot-3.png Screenshot.png afs-backup afshome amixer.works b basic.edl bin bruin-woods c4isr.owl c4isr.pprj cellphones.sxc comedi comedilib config config-n6uni config.austin conv-factors.sxc debian drvinfo.txt dry.xml ds-tools emachines evolution float.sxc fnfix foomatic-db-current.tar.gz grp-backup iFog-Aqua20-1.tar.gz id_dsa.pub income jimo-core-sjenkins job-search ken-cole latex2docbook letters lfront log mbse modules n6uni-etc.tar.gz n6uni-home.tar.gz n6uni.tar.gz nasa nisotr old-ruby-tools openafs photos pickaxe2.pdf rdtmerge resume rexml.sxc ruby-bug ruby-oscon.sxi ruby-tidal ruby-tools smbmount.3.0.7 software themes tidal-3-11 tidal-3-5-patches tidal-cvsroot-archive tidal-data tidal-head tidal-poster-corrected.ppt tidal-poster.ppt tidal-web tidal-xdemo tidalsim.tar.gz uuid vim-ruby-snapshot-2003-10-12 wet.xml yepp 9.95).to_i == 994 — Steven Jenkins <steven.jenkins@...> 2004/10/28

Guillaume Marcais wrote:

[#118169] Re: Rounding error, (100.0 2000 2001 Desktop Money Projects Protege.png Protege_2.1 Q3.DIR Quicken RCS Screenshot-1.png Screenshot-2.png Screenshot-3.png Screenshot.png afs-backup afshome amixer.works b basic.edl bin bruin-woods c4isr.owl c4isr.pprj cellphones.sxc comedi comedilib config config-n6uni config.austin conv-factors.sxc debian drvinfo.txt dry.xml ds-tools emachines evolution float.sxc fnfix foomatic-db-current.tar.gz grp-backup iFog-Aqua20-1.tar.gz id_dsa.pub income jimo-core-sjenkins job-search ken-cole latex2docbook letters lfront log mbse modules n6uni-etc.tar.gz n6uni-home.tar.gz n6uni.tar.gz nasa nisotr old-ruby-tools openafs photos pickaxe2.pdf rdtmerge resume rexml.sxc ruby-bug ruby-oscon.sxi ruby-tidal ruby-tools smbmount.3.0.7 software themes tidal-3-11 tidal-3-5-patches tidal-cvsroot-archive tidal-data tidal-head tidal-poster-corrected.ppt tidal-poster.ppt tidal-web tidal-xdemo tidalsim.tar.gz uuid vim-ruby-snapshot-2003-10-12 wet.xml yepp 9.95).to_i == 994 — Guillaume Marcais <guslist@...> 2004/10/28

On Thu, 2004-10-28 at 14:29, Steven Jenkins wrote:

[#118211] Thread::list and GC — "Ara.T.Howard" <Ara.T.Howard@...>

15 messages 2004/10/29

[#118249] RubyGarden wiki patch — Chad Fowler <chadfowler@...>

FYI, I've just implemented this

33 messages 2004/10/29
[#118252] Re: RubyGarden wiki patch — David Ross <dross@...> 2004/10/29

Chad Fowler wrote:

[#118387] Re: RubyGarden wiki patch — Brian =?ISO-8859-15?Q?Schr=F6der?= <ruby@...> 2004/10/30

On Fri, 29 Oct 2004 22:13:51 +0900

[#118388] Re: RubyGarden wiki patch — David Ross <dross@...> 2004/10/30

Brian Schrer wrote:

[#118392] Re: RubyGarden wiki patch — Mikael Brockman <mikael@...> 2004/10/30

David Ross <dross@code-exec.net> writes:

[#118395] Re: RubyGarden wiki patch — David Ross <dross@...> 2004/10/30

Mikael Brockman wrote:

[#118360] Ruby on Rails presentation added to the WhyRuby repository — "Curt Hibbs" <curt@...>

I just added my presentation of Ruby on Rails to the WhyRuby repository.

13 messages 2004/10/30

[#118423] Flea vs RubyGarden — "Phlip" <phlip_cpp@...>

Rubistas:

15 messages 2004/10/30

[#118447] New Ruby conditional semantics thoughts — Brian Mitchell <binary42@...>

The basic background was begun by someone asking a question about

12 messages 2004/10/30

Re: TempFile

From: Matt Maycock <ummaycoc@...>
Date: 2004-10-10 20:54:57 UTC
List: ruby-talk #116017
> Can you show us error reproducing "whole" script?
> I don't think of any reason of your problem from your code chunk.
> 
>                                                         matz.

You asked for it :-)

Here's the script, with all code it calls being included (thus, really
long post)

#------------------------------------------------------------#
#--- COMMAND LINE Script I Use        --- #
#--- requires ext/default_plotter and --- #
#---   ext/enum_from - they follow    --- #
# reads in a list of csv files that my boss gave me, and takes out
# some experiment data, and adds it into the default plotter to make
# graphs!  Not really that complicated.

ls *.csv | ruby -r ext/default_plotter -r ext/enum_from -ne '
  lines = File.readlines(chomp).map {|i| i.chomp.split(/\t/)}
  header = lines.shift

  plotter = `which gnuplot`.chomp

  lines.inject([]) {|arr, line|
    arr << header.inject(Hash.new) {|h, f| h[f] = line.shift; h}
  }.each {|row|
    id   = row["cloneid"].gsub(/\//, "_")
    file = "../../results/#{chomp.gsub(/\.csv$/, "")}/#{id}.png"
 
    Dir.mkdir(File.dirname(file)) unless FileTest.exists?(File.dirname(file))

    control, deprived = * %w{CON DEP}.map {|tag|
      [0, *[3,6,9,12].map {|i| row["#{i}_#{tag}"].to_f - row["0_CON"].to_f}]
    }

    xlabel, ylabel, xtics, ytics, xrange, yrange = nil
    xlabel = ["Gene Title", "Gene Symbol"].map {|k| "#{k}: #{row[k]}"}
    xlabel << ""
    table = [%w{Time Control Deprived}]
    [0, 3, 6, 9, 12].each_with_index {|e, i|
      table << [e.to_s.rjust(3), control[i], deprived[i]].map {|i| i.to_s}
    }

    frac = /^(-?\d*)(\.?\d*)$/
    ilens = (1..2).map {|i|
      table.map {|a| a[i] =~ frac ? $1.length : 0}.max
    }
    flens = (1..2).map {|i|
      table.map {|a| a[i] =~ frac ? $2.length : 0}.max
    }

    (1..2).each {|i|
      table.each {|a|
        a[i] = "#{$1.rjust(ilens[i-1])}#{$2.ljust(flens[i-1])}" if a[i] =~ frac
      }
    }

    lens  = (0...(table[0].length)).map {|i| table.map {|a| a[i].length}.max}
    dlens = (0...(table[0].length)).map {|i| table.from(1).map {|a|
a[i].length}.max}
    table.each_with_index {|arr, ai|
      index = 0
      if ai == 0 then
        xlabel << arr.map {|item|
          actualmax = lens[index]
          item.center(actualmax+2)
        }.join("  ")
        next
      end

      xlabel << arr.map {|item|
        actualmax = lens[index]
        datamax   = dlens[index]
        v = item.rjust(datamax+1)
        v.center(actualmax+1)
        index += 1
        v
      }.join("  ")
    }

    xlabel = xlabel.join("\\n")

    DefaultPlotter.data {|files|
      [control, deprived].each {|arr|
        files.add {|filehandle|
          arr.each_with_index {|e, i|
            filehandle.puts(e, i*3)
          }
        }
      }

      DefaultPlotter.plot(file, plotter, id, xlabel, ylabel, xtics,
ytics, xrange, yrange, "png") {|plot|
        files.each_path_with_index {|path, idx|
          plot.add(File.expand_path(path), %w{Control Deprived}[idx],
"lines", "2:1")
        }
      }
    }
  }
'

#------------------------------------------------------------#
#--- ext/enum_from --- #
# Allows you to take a nth tail...
module Enumerable
  def from(index)
    result = []
    self.each_with_index {|e, i|
      next unless i >= index
      yield e if block_given?
      result << e
    }

    result
  end
end

#------------------------------------------------------------#
#--- ext/default_plotter ---#
#--- requires ext/gnuplot - which follows ---#
# Just an alias for a `plotting' object.
require "ext/gnuplot"
DefaultPlotter = GnuPlot

#------------------------------------------------------------#
#--- ext/gnuplot ---#
#--- requires ext/plot and ext/singleton_class - which follow ---#
# Set up to use gnuplot to make wonderful graphs.
require 'ext/plot'
require 'ext/singleton_class'
require 'tempfile'

module GnuPlot
end

# Take an output (`file' to write to, basically)
#      a  title  (what to call graph)
#      an xlabel (what to call x-axis)
#      a  ylabel (what to call y-axis)
#      an xtics  (how to mark x-axis)
#      a  ytics  (how to mark y-axis)
#      an xrange (what part of x-axis to show)
#      a  yrange (what part of y-axis to show)
#      a  format (what to write `as' - png, gif, eps, etc)
#      block - takes the `plot' object and interacts with it.
#
#  the plot object the block gets has the following methods:
#    close :  closes the plot command file - now useable for making gnuplots!
#    add(path, title, style, use) :  add the data from the file with
path, use title and style, with columns use
#    path :  gives the path of the file containing the gnuplot commands
def GnuPlot.plotter(output, title=nil, xlabel=nil, ylabel=nil,
xtics=nil, ytics=nil, xrange=nil, yrange=nil, format=nil, &block)
  raise ArgumentException, "No block given" if block.nil?

  if Hash === output then
    h = output
    syms = [:output, :title, :xlabel, :ylabel, :xtics, :ytics,
:xrange, :yrange, :format]
    make_gnuplot(*syms.map {|sym| h[sym]}, &block)
  end
  raise ArgumentException, "Cannot accept nil output destination." if
output.nil?

  gpcmd = Tempfile.new('run_gnuplot_cmds_script')
  [["set terminal #{format}",      false],
   ["set output \"#{output}\"",    false],
   ["set pointsize 1.4",           false],
   ["set title \"#{title}\"",      title.nil?],
   ["set xlabel \"#{xlabel}\"",    xlabel.nil?],
   ["set ylabel \"#{ylabel}\"",    ylabel.nil?],
   ["set xrange [#{xrange}]",      xrange.nil?],
   ["set yrange [#{yrange}]",      yrange.nil?],
   ["set xtics (#{xtics})",        xtics.nil?],
   ["set ytics (#{ytics})",        ytics.nil?]].each {|str, skip|
    gpcmd.puts str unless skip
  }

  handle = Object.new
  closed = false
  gpcmds = []

  handle.singleton_def(:close) {
    next if closed
    closed = true

    index = 0
    space = ' ' * 'plot'.length

    cmds = []
    gpcmds.each_with_index {|c, i|
      cmds << "#{i == 0 ? 'plot' : space} #{c}"
    }

    gpcmd.puts cmds.join(",\\\n")
    gpcmd.close
  }

  handle.singleton_def(:add) {|path, title, style, using|
    cmd = path.inspect
    if using.nil? then
      cmd += ' using 1:2'
    else
      cmd += " using #{using}"
    end

    if title.nil? then
      cmd += ' notitle'
    else
      cmd += " title #{title.inspect}"
    end

    cmd += " with #{style}" unless style.nil?
    gpcmds << cmd
  }
  
  handle.singleton_def(:path) {
    gpcmd.path
  }

  result = nil
  begin
    result = block[handle]
    gpcmd.unlink
  rescue Exception
    begin
      gpcmd.unlink
    rescue Exception
    end
    raise
  end
  result
end

# Turns a set of points into something gnuplot understands as separate
coordinates.
def GnuPlot.make_point(*points)
  points.join("\t")
end

# Make GnuPlot a plot!
GnuPlot.extend(Plot)

# Make a gnuplot range!  here, we have a name for the range (x?, y?),
and the ends.
# the ends can be numbers, or nolow nohigh...
def GnuPlot.make_range(name, a, b, errorp=nil)
  error = errorp.nil? ? Proc.new{|exc, msg|
    raise exc, msg
  } : Proc.new {|exc, msg|
    errorp[exc, msg]
    return
  }

  a = a.strip.downcase
  b = b.strip.downcase
  error[ArgumentError, "#{name}:  both points are #{a.upcase}."]  if a
=~ /^no(low|high)$/ && a == b
  return make_range[name, b, a] if b == 'nolow' || a == 'nohigh'

  floata, floatb = *[a, b].map {|c|
!(/^(-|\+)?(\d+)?\.?(\d+)?$/.match(c).nil? || /\d/.match(c).nil?)}
  noa, nob       = *[a, b].map {|c| ['nolow', 'nohigh'].include?(c)}
  error[ArgumentError, "Invalid points: #{a}, #{b}."] if !(floata ||
noa) && !(floatb || nob)
  a = (a == 'nolow') ? '' : a.to_f
  b = (b == 'nohigh') ? '' : b.to_f
  a, b = b, a if Float === a && Float === b && b < a
  a, b = a.to_s, b.to_s
  "#{a}:#{b}"
end

#------------------------------------------------------------#
#--- ext/plot ---#
#--- requires ext/singleton_class - which follows ---#
require 'tempfile'
require 'ext/singleton_class'

module Plot
  # Output is `where' to go with the graph (file)
  # plotter is the actual command to invoke.
  # the rest, except errorp and debugp are the same as gnuplot.plotter args
  # errorp and debugp are procs toc all with error and debug information.
  #
  # Needs a block - that block is passed a plot object who's sole method is add,
  # which is the same as the add method from the object yieled by
plotter's block.
  def plot(output, plotter, title=nil, xlabel=nil, ylabel=nil,
xtics=nil, ytics=nil, xrange=nil, yrange=nil, format=nil, errorp=nil,
debugp=nil)
    error = errorp.nil? ? Proc.new{|exc, msg|
      raise exc, msg
    } : Proc.new {|exc, msg|
      errorp[exc, msg]
      return
    }
    debug = debugp.nil? ? Proc.new {} : debugp

    error[ArgumentError, 'Block not given for Plot # plot.  A block is
required.'] unless block_given?
      
    plotargs  = [output, title, xlabel, ylabel, xtics, ytics, xrange,
yrange, format]
    plotblock = Proc.new {|plot_handle|
      yield(Object.new.singleton_def(:add) {|*args| plot_handle.add(*args)})
      plot_handle.close

      debug[:command_file, File.readlines(plot_handle.path).map {|i| i.chomp}]

      `#{plotter} #{plot_handle.path}`
    }

    plotter(*plotargs, &plotblock)
  end

  # Basically, make an object that is a database of plotting files.
  # errorp and debugp are the same as above.
  # Takes a block - this block gets the `database'
  # this database has the following methods:
  #    add - calling this gets you a filehandle back in the block add gets
  #          this filehandle can be given points to add, and when the block
  #          is done, the file gets added to the end of the list of data files
  #    use_file(fname) - adds fname to the end of the list of data files
  #    each_path_with_index - use block to go over each file in the list of
  #          of data files and have the index in the list, too
  #    each_path - same as above, no index
  # at the end of the block, the database's files are `cleared'
  def data(errorp=nil, debugp=nil)
    error = errorp.nil? ? Proc.new{|exc, msg|
      raise exc, msg
    } : Proc.new {|exc, msg|
      errorp[exc, msg]
      return
    }
    debug = debugp.nil? ? Proc.new {} : debugp
    
    error[ArgumentError, 'Block not given for Plot # data.  A block is
required.'] unless block_given?
    handle = Object.new

    files = []

    done  = Proc.new {files.each {|f| f.unlink}}
    add   = Proc.new {|file| files << file}
    enum  = Proc.new {|block, index|
      files.each_with_index {|f, i|
        block[f.path, i] if index
        block[f.path]    unless index
      }
    }
    point = Proc.new {|*args| make_point(*args)}

    handle.instance_eval {
      @done,  @add,   @enum,
      @error, @debug, @point = done,  add,   enum,
                               error, debug, point
    }

    def handle.add
      unless block_given? then
        @done[]
        @error[ArgumentError, 'Block not given for Plot # data #
handle.add.  A block is required.']
      end

      file       = Tempfile.new('plotdata')
      filehandle, point = Object.new, @point
      filehandle.singleton_def(:puts) {|*points|
        file.puts(point[*points])
      }

      yield filehandle
      file.close(false)

      @debug[:data_file, File.readlines(file.path).map {|l| l.chomp}]
      @add[file]
    end

    def handle.use_file(fname)
      @error[ArgumentError, "File #{fname} does not exist."] unless
FileTest.exists?(fname)
      @error[ArgumentError, "File #{fname} isn't a file."]   unless
FileTest.file?(fname)
      @error[ArgumentError, "File #{fname} isn't readable."] unless
FileTest.readable?(fname)
      @add[File.open(fname).singleton_def(:unlink) {self.close}]
    end

    def handle.each_path_with_index(&block)
      if block.nil? then
        @done[]
        @error[ArgumentError, 'Block not given for Plot # data #
handle.each_path_with_index.  A block is required']
      end

      @enum[block, true]
    end

    def handle.each_path(&block)
      if block.nil? then
        @done[]
        @error[ArgumentError, 'Block not given for Plot # data #
handle.each_path.  A block is required']
      end

      @enum[block, false]
    end

    yield handle

    files.each {|f| f.unlink}
    files.clear

    nil
  end
end

#------------------------------------------------------------#
#--- ext/singleton_class ---#
class Object
  def singleton_class
    class << self
      self
    end
  end
  
  def singleton_def(sym, &block)
    self.singleton_class.send(:define_method, sym, &block)
    self
  end
end

-- 
There's no word in the English language for what you do to a dead
thing to make it stop chasing you.

In This Thread