[#199818] Help please — "Dark Ambient" <sambient@...>

Recently I asked here about where "end" goes, in relation to code

14 messages 2006/07/01

[#199852] How to open a console and ruby a ruby script from ruby? — transfire@...

I know I can do

12 messages 2006/07/01

[#199959] Re: if problem in loop causing weirdness — Nuralanur@...

You can use the break command to stop iterating through a block, eg.

10 messages 2006/07/03

[#199970] About 1.9 #__method__ feature. — transfire@...

I think the name __method__ is probably a poor choice b/c "shadow

102 messages 2006/07/03
[#199978] Re: About 1.9 #__method__ feature. — Yukihiro Matsumoto <matz@...> 2006/07/03

Hi,

[#199983] Re: About 1.9 #__method__ feature. — ara.t.howard@... 2006/07/03

On Tue, 4 Jul 2006, Yukihiro Matsumoto wrote:

[#199991] Re: About 1.9 #__method__ feature. — Yukihiro Matsumoto <matz@...> 2006/07/03

Hi,

[#199994] Re: About 1.9 #__method__ feature. — ara.t.howard@... 2006/07/03

On Tue, 4 Jul 2006, Yukihiro Matsumoto wrote:

[#199988] Re: About 1.9 #__method__ feature. — dblack@... 2006/07/03

Hi --

[#199993] Re: About 1.9 #__method__ feature. — Yukihiro Matsumoto <matz@...> 2006/07/03

Hi,

[#200002] Re: About 1.9 #__method__ feature. — dblack@... 2006/07/03

Hi --

[#200021] Re: About 1.9 #__method__ feature. — Yukihiro Matsumoto <matz@...> 2006/07/03

Hi,

[#200109] Re: About 1.9 #__method__ feature. — dblack@... 2006/07/04

Hi --

[#200126] Re: About 1.9 #__method__ feature. — Yukihiro Matsumoto <matz@...> 2006/07/04

Hi,

[#200135] Re: About 1.9 #__method__ feature. — dblack@... 2006/07/04

Hi --

[#200136] Re: About 1.9 #__method__ feature. — Yukihiro Matsumoto <matz@...> 2006/07/04

Hi,

[#200145] Re: About 1.9 #__method__ feature. — "Austin Ziegler" <halostatue@...> 2006/07/04

On 7/4/06, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:

[#200156] Re: About 1.9 #__method__ feature. — Yukihiro Matsumoto <matz@...> 2006/07/04

Hi,

[#200159] Re: About 1.9 #__method__ feature. — ara.t.howard@... 2006/07/04

On Wed, 5 Jul 2006, Yukihiro Matsumoto wrote:

[#200204] Re: About 1.9 #__method__ feature. — Yukihiro Matsumoto <matz@...> 2006/07/05

Hi,

[#200216] Re: About 1.9 #__method__ feature. — dblack@... 2006/07/05

Hi --

[#200478] Re: About 1.9 #__method__ feature. — Yukihiro Matsumoto <matz@...> 2006/07/06

Hi,

[#200550] Re: About 1.9 #__method__ feature. — dblack@... 2006/07/07

Hi --

[#200553] Re: About 1.9 #__method__ feature. — Yukihiro Matsumoto <matz@...> 2006/07/07

Hi,

[#200557] Re: About 1.9 #__method__ feature. — dblack@... 2006/07/07

Hi --

[#200559] Re: About 1.9 #__method__ feature. — Yukihiro Matsumoto <matz@...> 2006/07/07

Hi,

[#199979] One-Click Ruby Installer 184-18 Release Candidate 3 is available — "Curt Hibbs" <curt.hibbs@...>

Originally, this was planned to be the final 1.8.4 release of the One-Click

11 messages 2006/07/03

[#200056] Retired Ruby Mascott? — "Pawel Szymczykowski" <makenai@...>

Hi all,

22 messages 2006/07/03

[#200140] progress on "Automated Wrapper Generation for Information Extraction" — "A. S. Bradbury" <asbradbury@...>

As you may or may not be aware, I am currently working on one of the 10

8 messages 2006/07/04

[#200172] Parallel Array — "Nasir Khan" <rubylearner@...>

If I have two arrays a=[1,1,1,1] and b=[2,2,2,2] and I want to add each

16 messages 2006/07/05

[#200202] Problem installing gem — Alex Gian <alexgian@...>

Hi, first post here, hope it's the right forum.

15 messages 2006/07/05

[#200294] debugging proposal — "Max Muermann" <max@...>

Hi everybody,

13 messages 2006/07/06

[#200359] A newbie would like some code criticism, please... — "Just Another Victim of the Ambient Morality" <ihatespam@...>

I'm learning Ruby and I'd like some criticism on a program that I wrote.

14 messages 2006/07/06

[#200366] Re: Rails: http://localhost:3000/say/list_rcv OK on FireFox; nil on IE — "Richard" <RichardDummyMailbox58407@...>

Hi Robert,

10 messages 2006/07/06

[#200382] GC oddness — Alex Young <alex@...>

Hi all,

17 messages 2006/07/06
[#200384] Re: GC oddness — nobu@... 2006/07/06

Hi,

[#200392] Float#==. Legacy? — Guillaume Marcais <guslist@...>

As far as my experience goes, using Float#== is always an error. Float

15 messages 2006/07/06

[#200456] Easy Pathname — transfire@...

I find myself always using File.join, and never utilizing Pathname b/c

20 messages 2006/07/06

[#200470] Redefining core classes — Damaris Fuentes <dfl_maradentro@...>

Hi you all,

17 messages 2006/07/06
[#200472] Re: Redefining core classes — "Patrick Hurley" <phurley@...> 2006/07/06

On 7/6/06, Damaris Fuentes <dfl_maradentro@yahoo.es> wrote:

[#200517] ruby-opengl — "John Gabriele" <jmg3000@...>

I've tinkered a bit with Yoshi's original ruby-opengl. My changes are

20 messages 2006/07/07

[#200579] Panagrams (#86) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

40 messages 2006/07/07
[#200631] Re: [QUIZ] Panagrams (#86) — brian.mattern@... 2006/07/07

Is it a spoiler if we post a resulting pangram (no code)?

[#200642] Re: [QUIZ] Panagrams (#86) — James Edward Gray II <james@...> 2006/07/07

On Jul 7, 2006, at 12:34 PM, brian.mattern@gmail.com wrote:

[#200627] instance_exec — ara.t.howard@...

27 messages 2006/07/07

[#200758] Why Ruby over Python? — howachen@...

Besides ROR, can you give me a reason why perfer ruby instead of

106 messages 2006/07/08
[#200766] Re: Why Ruby over Python? — "vasudevram" <vasudevram@...> 2006/07/08

howachen@gmail.com wrote:

[#200791] Re: Why Ruby over Python? — "M. Edward (Ed) Borasky" <znmeb@...> 2006/07/08

vasudevram wrote:

[#200942] Re: Why Ruby over Python? — Daniel Martin <martin@...> 2006/07/09

"M. Edward (Ed) Borasky" <znmeb@cesmail.net> writes:

[#200946] Re: Why Ruby over Python? — "Francis Cianfrocca" <garbagecat10@...> 2006/07/09

On 7/9/06, Daniel Martin <martin@snowplow.org> wrote:

[#200795] Sweet Lord! — Daniel Schierbeck <daniel.schierbeck@...>

Why haven't I thought of this before?

22 messages 2006/07/08
[#200814] Re: Sweet Lord! — "William James" <w_a_x_man@...> 2006/07/08

Daniel Schierbeck wrote:

[#200910] Marshal's handling of floats — Brian Palmer <rubytalk@...>

I was thinking about writing a patch to modify how Marshal handles

15 messages 2006/07/09

[#201158] Real newbie question about methods — "simonh" <simonharrison@...>

Hi all. I'm trying to learn ruby using about 5 books(!) but keep

16 messages 2006/07/10

[#201274] Some questions about serious Ruby development... — "Just Another Victim of the Ambient Morality" <ihatespam@...>

I like Ruby. I like it more than Python. It's my PERL replacement. I

11 messages 2006/07/11

[#201323] Nuby Q: Daemonize (other materials have been read!) — Rogue Amateur <rogueamateur@...>

I've read the other references to daemonizing a process in ruby, but ...

16 messages 2006/07/11
[#201327] Re: Nuby Q: Daemonize (other materials have been read!) — ara.t.howard@... 2006/07/11

On Wed, 12 Jul 2006, Rogue Amateur wrote:

[#201339] Re: Nuby Q: Daemonize (other materials have been read!) — Rogue Amateur <rogueamateur@...> 2006/07/11

First, let me say thank you for the help.

[#201340] Re: Nuby Q: Daemonize (other materials have been read!) — Rogue Amateur <rogueamateur@...> 2006/07/11

Rogue Amateur wrote:

[#201333] Processes and Portability — Name Name <exl2@...>

I would like to run a process concurrently (thus if the process goes to

19 messages 2006/07/11

[#201388] Decent HTML Parser? — Kevin Weller <"http://www.itcrucible.com/contact"@...>

Anybody have experience with a decent HTML parser for a Ruby

18 messages 2006/07/11

[#201503] Help with a regexp — Daniel Schierbeck <daniel.schierbeck@...>

I'm trying to write a regular expression that matches bencoded strings,

36 messages 2006/07/12
[#201553] Re: Help with a regexp — "studlee2@..." <studlee2@...> 2006/07/12

Daniel,

[#201569] Re: Help with a regexp — Daniel Schierbeck <daniel.schierbeck@...> 2006/07/12

studlee2@gmail.com wrote:

[#201513] Appending to a CSV file — Bil Kleb <Bil.Kleb@...>

Just got a call from a telecommuting colleague

15 messages 2006/07/12

[#201636] prototype-0.1.0 — ara.t.howard@...

17 messages 2006/07/12

[#201661] Recursion and Ruby — Glenn Cadman <glenn.cadman@...>

As a practice to learn ruby I tried to create a recursive program

33 messages 2006/07/13
[#201668] Re: Recursion and Ruby — "Erik Veenstra" <erikveen@...> 2006/07/13

You could use "case" as well (see version 2). It's faster.

[#201696] Re: Recursion and Ruby — Daniel Martin <martin@...> 2006/07/13

"Erik Veenstra" <erikveen@gmail.com> writes:

[#201788] challenge — ara.t.howard@...

29 messages 2006/07/13
[#201790] Re: challenge — ara.t.howard@... 2006/07/13

On Fri, 14 Jul 2006 Ara.T.Howard@noaa.gov wrote:

[#201842] Re: challenge — transfire@... 2006/07/14

[#201848] Re: challenge — ara.t.howard@... 2006/07/14

On Fri, 14 Jul 2006 transfire@gmail.com wrote:

[#201852] Re: challenge — "Sean O'Halpin" <sean.ohalpin@...> 2006/07/14

On 7/14/06, ara.t.howard@noaa.gov <ara.t.howard@noaa.gov> wrote:

[#201889] Re: challenge — "Robert Dober" <robert.dober@...> 2006/07/14

On 7/14/06, Sean O'Halpin <sean.ohalpin@gmail.com> wrote:

[#201898] Re: challenge — "Sean O'Halpin" <sean.ohalpin@...> 2006/07/14

On 7/14/06, Robert Dober <robert.dober@gmail.com> wrote:

[#201916] Re: challenge — "Robert Dober" <robert.dober@...> 2006/07/14

[snip]

[#201919] Re: challenge — "Sean O'Halpin" <sean.ohalpin@...> 2006/07/14

On 7/14/06, Robert Dober <robert.dober@gmail.com> wrote:

[#201821] Preferred monkeypatching technique — Tom Werner <tom@...>

Allow me to present a scenario:

56 messages 2006/07/13
[#201837] Re: Preferred monkeypatching technique — dblack@... 2006/07/14

Hi --

[#201853] Re: Preferred monkeypatching technique — Hal Fulton <hal9000@...> 2006/07/14

dblack@wobblini.net wrote:

[#201864] How to speed up ruby and make it as fast as possible — Ben Johnson <bjohnson@...>

Hi,

20 messages 2006/07/14

[#201885] About MyClass#my_method — "Jonas Pfenniger" <zimba.tm@...>

Hi,

15 messages 2006/07/14

[#201903] Negative Sleep (#87) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

24 messages 2006/07/14

[#201950] Re: How to speed up ruby and make it as fast as possible — "Jamal Mazrui" <Jamal.Mazrui@...>

In answer to the multiple messages recommending that I learn C or

14 messages 2006/07/14

[#201990] Re: How to speed up ruby and make it as fast as possible — "Jamal Mazrui" <Jamal.Mazrui@...>

Certainly, Ruby performance is not always a problem. It may not even be

25 messages 2006/07/14
[#202208] Re: How to speed up ruby and make it as fast as possible — "S Wayne" <wrecklass1@...> 2006/07/16

Jamal Mazrui wrote:

[#202042] Mac OSX Ruby Configuration Question — "Steven R." <steverummel@...>

I recently installed Ruby 1.8.4 on my iMac, running OSX 10.4. Ruby,

14 messages 2006/07/14

[#202050] Alternate initializers or alternate class? — transfire@...

Jan Molic recently contacted me about a slighlty modified version of

11 messages 2006/07/14

[#202067] Some questions about Ruby and it's environment... — "Just Another Victim of the Ambient Morality" <ihatespam@...>

I have two issues in Ruby which are bugging me.

15 messages 2006/07/15

[#202091] net/http performance — Luke Burton <luke@...>

15 messages 2006/07/15

[#202109] Who likes Sudoku? — "studlee2@..." <studlee2@...>

Here is the smallest Ruby Sudoku solver I could come up with. I've

21 messages 2006/07/15
[#202113] Re: Who likes Sudoku? — dblack@... 2006/07/15

Hi --

[#202116] Re: Who likes Sudoku? — "studlee2@..." <studlee2@...> 2006/07/15

I'm not really sure about the whole "GOLF" vs. "golf". We'll say

[#202125] Re: Who likes Sudoku? — "studlee2@..." <studlee2@...> 2006/07/15

This is a little smaller.

[#202128] Re: Who likes Sudoku? — "studlee2@..." <studlee2@...> 2006/07/15

Smaller still. Thanks David/Daniel:

[#202250] additional requirements for a Ruby env — "Alexandru Popescu" <the.mindstorm.mailinglist@...>

Hi!

20 messages 2006/07/16
[#202333] Re: additional requirements for a Ruby env — "Alexandru Popescu" <the.mindstorm.mailinglist@...> 2006/07/17

Guys any hints for this? Sorry for pushing it to the top, but I am

[#202340] Re: additional requirements for a Ruby env — Alex Young <alex@...> 2006/07/17

Alexandru Popescu wrote:

[#202280] n00b Q: Obfuscation and locking the source — "Danno" <dh.evolutionnext@...>

I have been doing some Ruby on and off this year, so I am still a n00b.

14 messages 2006/07/17

[#202294] Printing Barcodes from Ruby — listrecv@...

I'd like to be able to generate barcodes from Ruby (to a PDF document).

14 messages 2006/07/17

[#202310] How can I parse binary files? — Fabio Vitale <fabio@...>

I've the need to parse a binary file with the following structure:

24 messages 2006/07/17
[#202317] Re: How can I parse binary files? — Daniel Martin <martin@...> 2006/07/17

Fabio Vitale <fabio@sferaconsulting.it> writes:

[#202338] Re: How can I parse binary files? — Fabio Vitale <fabio@...> 2006/07/17

Daniel Martin wrote:

[#202392] Re: How can I parse binary files? — Daniel Martin <martin@...> 2006/07/17

Fabio Vitale <fabio@sferaconsulting.it> writes:

[#202398] Re: How can I parse binary files? — Daniel Martin <martin@...> 2006/07/17

Daniel Martin <martind@martinhouse.internal> writes:

[#202448] Re: How can I parse binary files? — Fabio Vitale <fabio@...> 2006/07/18

Daniel Martin wrote:

[#202449] Re: How can I parse binary files? — Fabio Vitale <fabio@...> 2006/07/18

Fabio Vitale wrote:

[#202354] irb and readline — listrecv@...

I'm getting funny behavior when using irb (readline) on Windows. When

17 messages 2006/07/17

[#202467] Problems installing rubyzip gem on Debian...can someone help? — "subimage" <subimage@...>

I haven't had issues with it before, but now I am...I go to install

12 messages 2006/07/18

[#202498] One-Click Installer: MinGW? or VC2005? — "Curt Hibbs" <ml.chibbs@...>

The One-Click Ruby Installer for Windows is at a cross-roads. The C++

119 messages 2006/07/18
[#202510] Re: One-Click Installer: MinGW? or VC2005? — ara.t.howard@... 2006/07/18

On Wed, 19 Jul 2006, Curt Hibbs wrote:

[#202512] Re: One-Click Installer: MinGW? or VC2005? — "Curt Hibbs" <ml.chibbs@...> 2006/07/18

On 7/18/06, ara.t.howard@noaa.gov <ara.t.howard@noaa.gov> wrote:

[#202515] Re: One-Click Installer: MinGW? or VC2005? — ara.t.howard@... 2006/07/18

On Wed, 19 Jul 2006, Curt Hibbs wrote:

[#203110] Re: One-Click Installer: MinGW? or VC2005? — "Austin Ziegler" <halostatue@...> 2006/07/21

On 7/18/06, ara.t.howard@noaa.gov <ara.t.howard@noaa.gov> wrote:

[#202524] Re: One-Click Installer: MinGW? or VC2005? — "Francis Cianfrocca" <garbagecat10@...> 2006/07/18

On 7/18/06, Curt Hibbs <ml.chibbs@gmail.com> wrote:

[#202529] Re: One-Click Installer: MinGW? or VC2005? — ara.t.howard@... 2006/07/18

On Wed, 19 Jul 2006, Francis Cianfrocca wrote:

[#202534] Re: One-Click Installer: MinGW? or VC2005? — Francis Cianfrocca <garbagecat10@...> 2006/07/18

unknown wrote:

[#202545] Re: One-Click Installer: MinGW? or VC2005? — Mauricio Fernandez <mfp@...> 2006/07/18

On Wed, Jul 19, 2006 at 03:06:10AM +0900, Francis Cianfrocca wrote:

[#202541] Re: One-Click Installer: MinGW? or VC2005? — Mauricio Fernandez <mfp@...> 2006/07/18

On Wed, Jul 19, 2006 at 12:22:16AM +0900, Curt Hibbs wrote:

[#202741] Re: One-Click Installer: MinGW? or VC2005? — "Sean O'Halpin" <sean.ohalpin@...> 2006/07/19

On 7/18/06, Mauricio Fernandez <mfp@acm.org> wrote:

[#202779] Re: One-Click Installer: MinGW? or VC2005? — Simon Krer <SimonKroeger@...> 2006/07/19

Sean O'Halpin wrote:

[#202784] Re: One-Click Installer: MinGW? or VC2005? — "Curt Hibbs" <ml.chibbs@...> 2006/07/19

On 7/19/06, Simon Kr=F6ger <SimonKroeger@gmx.de> wrote:

[#202789] Re: One-Click Installer: MinGW? or VC2005? — Simon Krer <SimonKroeger@...> 2006/07/19

Curt Hibbs wrote:

[#202807] Re: One-Click Installer: MinGW? or VC2005? — "Sean O'Halpin" <sean.ohalpin@...> 2006/07/19

On 7/19/06, Simon Krer <SimonKroeger@gmx.de> wrote:

[#202810] Re: One-Click Installer: MinGW? or VC2005? — "Curt Hibbs" <ml.chibbs@...> 2006/07/19

On 7/19/06, Sean O'Halpin <sean.ohalpin@gmail.com> wrote:

[#202814] Re: One-Click Installer: MinGW? or VC2005? — "Sean O'Halpin" <sean.ohalpin@...> 2006/07/19

On 7/19/06, Curt Hibbs <ml.chibbs@gmail.com> wrote:

[#202841] Re: One-Click Installer: MinGW? or VC2005? — "Curt Hibbs" <ml.chibbs@...> 2006/07/20

On 7/19/06, Sean O'Halpin <sean.ohalpin@gmail.com> wrote:

[#202915] Re: One-Click Installer: MinGW? or VC2005? — Ryan Raaum <devlists-ruby-talk@...> 2006/07/20

[#202980] Re: One-Click Installer: MinGW? or VC2005? — Reggie Mr <buppcpp@...> 2006/07/20

Ryan Raaum wrote:

[#203063] Re: One-Click Installer: MinGW? or VC2005? — Lothar Scholz <mailinglists@...> 2006/07/21

[#203075] Re: One-Click Installer: MinGW? or VC2005? — "stu" <yakumo9275@...> 2006/07/21

[#202514] more newbie help with classes and methods please — "simonh" <simonharrison@...>

I posted a question a week or so now which I got some great help with.

24 messages 2006/07/18
[#202622] Re: more newbie help with classes and methods please — "S Wayne" <wrecklass1@...> 2006/07/19

A couple of things:

[#202647] Re: more newbie help with classes and methods please — "simonh" <simonharrison@...> 2006/07/19

Thanks for replies. Just to point out, this code is not meant for

[#202653] Re: more newbie help with classes and methods please — "simonh" <simonharrison@...> 2006/07/19

decided to have a go at using the case statement. Why won't this work?

[#202671] Re: more newbie help with classes and methods please — Morton Goldberg <m_goldberg@...> 2006/07/19

There are two forms of case block and you have sort of mixed them up.

[#202673] Re: more newbie help with classes and methods please — dblack@... 2006/07/19

Hi --

[#202683] Net/HTTP is flaky? — "Just Another Victim of the Ambient Morality" <ihatespam@...>

Inexplicably, the following code fails:

13 messages 2006/07/19

[#202684] Time.parse has never visited Singapore? — "Harold Hausman" <hhausman@...>

I suspect that Time.parse is just not understanding the "Malay

11 messages 2006/07/19

[#202723] sandbox 0.0.11 -- taking the i out of eval — why the lucky stiff <ruby-talk@...>

Oh rapture! Oh, delicious zesty snacks! Oh, steamed uncles in a cabbage

14 messages 2006/07/19

[#202731] Beyond threads? Better concurrency methods? — anmus <anmus@...>

Hi All,

30 messages 2006/07/19
[#202853] Re: Beyond threads? Better concurrency methods? — "M. Edward (Ed) Borasky" <znmeb@...> 2006/07/20

anmus wrote:

[#202866] how to split an array in sub arrays of the same length — Paolo Bacchilega <paolo.bacchilega@...>

Hi,

14 messages 2006/07/20

[#202882] return statement where it is usefull ? — pere.noel@... (Une b騅ue)

i've the habit (from java ;-)) to put a return statement in a method

16 messages 2006/07/20

[#202955] Using .each with constructors — "Ben Zealley" <transhumanist@...>

Is there a nice elegant way of creating several named objects of the

31 messages 2006/07/20
[#203002] Re: Using .each with constructors — "Robert Dober" <robert.dober@...> 2006/07/20

On 7/20/06, Ben Zealley <transhumanist@gmail.com> wrote:

[#203021] Re: Using .each with constructors — transfire@... 2006/07/20

[#203033] Re: Using .each with constructors — Logan Capaldo <logancapaldo@...> 2006/07/21

[#203074] opacity of magic enumerator (was: Re: Using .each with constructors) — dblack@... 2006/07/21

Hi --

[#203076] Re: opacity of magic enumerator (was: Re: Using .each with constructors) — "Martin DeMello" <martindemello@...> 2006/07/21

On 7/21/06, dblack@wobblini.net <dblack@wobblini.net> wrote:

[#202958] "" vs '' — Ben Johnson <bjohnson@...>

I know this is a very simply question, but I've seen many different

19 messages 2006/07/20

[#202967] Re: [ANN] Mongoose 0.1.1 — "Berger, Daniel" <Daniel.Berger@...>

> -----Original Message-----

15 messages 2006/07/20
[#202970] Re: [ANN] Mongoose 0.1.1 — Jamey Cribbs <jcribbs@...> 2006/07/20

Berger, Daniel wrote:

[#203124] Meta-Meta-Programming, revisited — "Erik Veenstra" <erikveen@...>

Do you remember the discussion about monitor-functions and

22 messages 2006/07/21

[#203151] Mongoose 0.2.0 — Jamey Cribbs <jcribbs@...>

You can download it from: http://rubyforge.org/projects/mongoose/

19 messages 2006/07/21

[#203171] Newbie Question: delete all non alphanumeric characters — Theallnighter Theallnighter <theallnighter@...>

Hi all,

17 messages 2006/07/21

[#203216] XML2RB - Executing XML — "Erik Veenstra" <erikveen@...>

----------------------------------------------------------------

11 messages 2006/07/21

[#203333] Infinity — "hadley wickham" <h.wickham@...>

irb(main):084:0> (-1.0/0.0)

15 messages 2006/07/22

[#203352] Set an instance variable before and after initialize — Martin Jansson <martialis@...>

If possible, I would like to set a instance variable in an object before

12 messages 2006/07/22

[#203438] Yadda yadda yadda operator — "Son SonOfLilit" <sonoflilit@...>

Hello.

25 messages 2006/07/23

[#203473] I'll have the duck! — transfire@...

I promised myself I'd shut-up for awhile, maybe I still should, but I

102 messages 2006/07/23
[#203528] Re: I'll have the duck! — benjohn@... 2006/07/24

> Now anything that responded to #to_a could use #transform. I'm not

[#203611] Re: I'll have the duck! — Daniel DeLorme <dan-ml@...42.com> 2006/07/24

benjohn@fysh.org wrote:

[#203615] Re: I'll have the duck! — transfire@... 2006/07/24

[#203628] Re: I'll have the duck! — dblack@... 2006/07/24

Hi --

[#203630] Re: I'll have the duck! — Chad Perrin <perrin@...> 2006/07/24

On Tue, Jul 25, 2006 at 05:48:29AM +0900, dblack@wobblini.net wrote:

[#203632] Re: I'll have the duck! — dblack@... 2006/07/24

Hi --

[#203664] Re: I'll have the duck! — "7rans" <transfire@...> 2006/07/25

[#203681] Re: I'll have the duck! — dblack@... 2006/07/25

Hi --

[#203729] Re: I'll have the duck! — "7rans" <transfire@...> 2006/07/25

[#203792] Re: I'll have the duck! — "Phil Tomson" <rubyfan@...> 2006/07/25

On 7/25/06, 7rans <transfire@gmail.com> wrote:

[#203799] Re: I'll have the duck! — ara.t.howard@... 2006/07/25

On Wed, 26 Jul 2006, Phil Tomson wrote:

[#203813] Re: I'll have the duck! — dblack@... 2006/07/25

On Wed, 26 Jul 2006, ara.t.howard@noaa.gov wrote:

[#203475] rb-gnome and gtkglext — "anne001" <anne@...>

I ran the darwinports install instructions on rb-gnome

16 messages 2006/07/23

[#203488] RLisp - Lisp naturally embedded in Ruby — "Tomasz Wegrzanowski" <tomasz.wegrzanowski@...>

Hello :-)

32 messages 2006/07/24
[#203624] Re: RLisp - Lisp naturally embedded in Ruby — "William James" <w_a_x_man@...> 2006/07/24

Tomasz Wegrzanowski wrote:

[#203639] Re: RLisp - Lisp naturally embedded in Ruby — "Tomasz Wegrzanowski" <tomasz.wegrzanowski@...> 2006/07/24

On 7/24/06, William James <w_a_x_man@yahoo.com> wrote:

[#203721] Re: RLisp - Lisp naturally embedded in Ruby — Christian Neukirchen <chneukirchen@...> 2006/07/25

"Tomasz Wegrzanowski" <tomasz.wegrzanowski@gmail.com> writes:

[#203727] Re: RLisp - Lisp naturally embedded in Ruby — "Tomasz Wegrzanowski" <tomasz.wegrzanowski@...> 2006/07/25

On 7/25/06, Christian Neukirchen <chneukirchen@gmail.com> wrote:

[#203803] Re: RLisp - Lisp naturally embedded in Ruby — Christian Neukirchen <chneukirchen@...> 2006/07/25

"Tomasz Wegrzanowski" <tomasz.wegrzanowski@gmail.com> writes:

[#203514] [ANN] Nitro/Og 0.31.0 — gabriele renzi <surrender_itRemove@...>

(forwarding from nitro's list)

25 messages 2006/07/24

[#203526] Autoloading objects — Ruby equivalent for PHP5 "__autoload — "Naum T." <naum@...>

Does there exist a Ruby equivalent to PHP5 "magic" __autoload method

13 messages 2006/07/24

[#203711] Defining a method with an argument with a default value — "Pedro Cte-Real" <pedro@...>

I have this line in a class method to define an initializer:

12 messages 2006/07/25

[#203752] Hash order bug? — Javier Valencia <jvalencia@...01.org>

I have this piece of simple code:

46 messages 2006/07/25
[#203753] Re: Hash order bug? — dblack@... 2006/07/25

Hi --

[#250371] Re: Hash order bug? — Haoqi Haoqi <axgle@126.com> 2007/05/05

[#250372] Re: Hash order bug? — "Nicholas Clare" <nickclare@...> 2007/05/05

On 5/5/07, Haoqi Haoqi <axgle@126.com> wrote:

[#203778] Mongoose 0.2.5 - The "Two Steps Forward, One Step Back" release — Jamey Cribbs <jcribbs@...>

You can download it from: http://rubyforge.org/projects/mongoose/

19 messages 2006/07/25
[#204393] Re: Mongoose 0.2.5 - The "Two Steps Forward, One Step Back" release — GFunk913@... 2006/07/28

Jamey Cribbs wrote:

[#204401] Re: Mongoose 0.2.5 - The "Two Steps Forward, One Step Back" release — Jamey Cribbs <jcribbs@...> 2006/07/28

GFunk913@gmail.com wrote:

[#204406] Re: Mongoose 0.2.5 - The "Two Steps Forward, One Step Back" release — GFunk913@... 2006/07/28

[#203958] For performance, write it in C — Peter Hickman <peter@...>

Whenever the question of performance comes up with scripting languages

157 messages 2006/07/26
[#203962] Re: For performance, write it in C — benjohn@... 2006/07/26

Peter Hickman gave a very good article about prototyping in a scripting

[#203967] Re: For performance, write it in C — "Tomasz Wegrzanowski" <tomasz.wegrzanowski@...> 2006/07/26

On 7/26/06, benjohn@fysh.org <benjohn@fysh.org> wrote:

[#203995] Re: For performance, write it in C — "Charles O Nutter" <headius@...> 2006/07/26

I'll lob a couple of grenades and then duck for cover.

[#203996] Re: For performance, write it in C — James Edward Gray II <james@...> 2006/07/26

On Jul 26, 2006, at 8:57 AM, Charles O Nutter wrote:

[#204041] Re: For performance, write it in C — "David Pollak" <pollak@...> 2006/07/26

Writing code that runs as fast in Java as it does in C is real work,

[#204085] Re: For performance, write it in C — Chad Perrin <perrin@...> 2006/07/26

On Thu, Jul 27, 2006 at 12:42:46AM +0900, David Pollak wrote:

[#204182] Re: For performance, write it in C — "David Pollak" <pollak@...> 2006/07/27

On 7/26/06, Chad Perrin <perrin@apotheon.com> wrote:

[#204191] Re: For performance, write it in C — Chad Perrin <perrin@...> 2006/07/27

On Thu, Jul 27, 2006 at 09:26:45AM +0900, David Pollak wrote:

[#204196] Re: For performance, write it in C — Keith Gaughan <kmgaughan@...> 2006/07/27

On Thu, Jul 27, 2006 at 10:07:00AM +0900, Chad Perrin wrote:

[#204198] Re: For performance, write it in C — Chad Perrin <perrin@...> 2006/07/27

On Thu, Jul 27, 2006 at 10:35:52AM +0900, Keith Gaughan wrote:

[#204202] Re: For performance, write it in C — Keith Gaughan <kmgaughan@...> 2006/07/27

On Thu, Jul 27, 2006 at 10:50:32AM +0900, Chad Perrin wrote:

[#204205] Re: For performance, write it in C — Chad Perrin <perrin@...> 2006/07/27

On Thu, Jul 27, 2006 at 11:17:44AM +0900, Keith Gaughan wrote:

[#204209] Re: For performance, write it in C — Keith Gaughan <kmgaughan@...> 2006/07/27

On Thu, Jul 27, 2006 at 11:38:34AM +0900, Chad Perrin wrote:

[#204216] Re: For performance, write it in C — Chad Perrin <perrin@...> 2006/07/27

On Thu, Jul 27, 2006 at 12:19:24PM +0900, Keith Gaughan wrote:

[#203998] Re: For performance, write it in C — Peter Hickman <peter@...> 2006/07/26

Charles O Nutter wrote:

[#204020] Re: For performance, write it in C — "Dean Wampler" <deanwampler@...> 2006/07/26

On 7/26/06, benjohn@fysh.org <benjohn@fysh.org> wrote:

[#204094] Re: For performance, write it in C — Chad Perrin <perrin@...> 2006/07/26

On Thu, Jul 27, 2006 at 12:03:50AM +0900, Dean Wampler wrote:

[#204102] Re: For performance, write it in C — Ashley Moran <work@...> 2006/07/26

[#204116] Re: For performance, write it in C — Francis Cianfrocca <garbagecat10@...> 2006/07/26

Ashley Moran wrote:

[#204122] Re: For performance, write it in C — Chad Perrin <perrin@...> 2006/07/26

On Thu, Jul 27, 2006 at 04:59:13AM +0900, Francis Cianfrocca wrote:

[#204120] Re: For performance, write it in C — Chad Perrin <perrin@...> 2006/07/26

On Thu, Jul 27, 2006 at 04:27:57AM +0900, Ashley Moran wrote:

[#203989] Driving Oracle sqlplus with open3 — "Daniel Berger" <Daniel.Berger@...>

Hi all,

12 messages 2006/07/26

[#203993] eRuby: A tutorial on using Ruby on the web — tesla <tesla.nicoli@...>

A group (three) of us wanted to learn Ruby but we decided that Rails was no

12 messages 2006/07/26

[#204108] OO Paradigm and Ruby Exercises for a Beginner — Picklegnome <picklegnome@...>

I am at a loss for where to begin here, so I'll jump in.

16 messages 2006/07/26

[#204247] Ruby and Visual Basic — "Ike" <rxv@...>

Some years ago I wrote a magazine review regarding Visual Basic. At the time

13 messages 2006/07/27

[#204283] Wrapped method causing infinite recursion in rcov — "Pedro Cte-Real" <pedro@...>

I added this to my rails test helper to check for valid HTML automatically:

9 messages 2006/07/27

[#204292] String#chop slow? REALLY slow? — Mat Schaffer <schapht@...>

I just did a quick benchmark to prove something to myself. But I'd

14 messages 2006/07/27

[#204296] Learn to Program - Solutions? — pixelnate <pixelnate@...>

Is there some place that I can solutions to the exercises in the Learn

12 messages 2006/07/27

[#204307] Slow regular expressions :( — Roman Hausner <roman.hausner@...>

I am disappointed to learn that Ruby obviously implements yet another

29 messages 2006/07/27
[#204434] Re: Slow regular expressions :( — "Just Another Victim of the Ambient Morality" <ihatespam@...> 2006/07/28

[#204365] converting some autogenerated ruby code to C — "Eric Mahurin" <eric.mahurin@...>

One of the next things I want to do in my grammar package is to give

16 messages 2006/07/27
[#204803] Re: converting some autogenerated ruby code to C — Eric Hodel <drbrain@...7.net> 2006/07/29

On Jul 27, 2006, at 2:25 PM, Eric Mahurin wrote:

[#205117] Re: converting some autogenerated ruby code to C — "Eric Mahurin" <eric.mahurin@...> 2006/07/31

On 7/28/06, Eric Hodel <drbrain@segment7.net> wrote:

[#205274] Re: converting some autogenerated ruby code to C — "Dominik Bathon" <dbatml@...> 2006/07/31

Hi Eric,

[#204369] GDK#create_cairo_context not found — "Farrel Lifson" <farrel.lifson@...>

What version of rcairo, and ruby-gnome2 do I need to have

13 messages 2006/07/27
[#204500] Re: GDK#create_cairo_context not found — "anne001" <anne@...> 2006/07/28

do you get the same error in irb when you type

[#204412] About last night ... — "M. Edward (Ed) Borasky" <znmeb@...>

Now that I have your attention :) ... last night was FOSCON II -- Ruby

32 messages 2006/07/28

[#204459] For performance, write it in C - Part 2, comparing C, Ruby and Java — Peter Hickman <peter@...>

This is the follow up to my "Write it in C post" and is intended to

49 messages 2006/07/28
[#204477] Re: For performance, write it in C - Part 2, comparing C, Ruby and Java — "Isak Hansen" <isak.hansen@...> 2006/07/28

[#204478] Re: For performance, write it in C - Part 2, comparing C, Ruby and Java — Peter Hickman <peter@...> 2006/07/28

Isak Hansen wrote:

[#204636] Re: For performance, write it in C - Part 2, comparing C, Ruby and Java — "William James" <w_a_x_man@...> 2006/07/28

M. Edward (Ed) Borasky wrote:

[#204809] Re: For performance, write it in C - Part 2, comparing C, Ruby and Java — "M. Edward (Ed) Borasky" <znmeb@...> 2006/07/29

William James wrote:

[#204811] Re: For performance, write it in C - Part 2, comparing C, Ruby and Java — Chad Perrin <perrin@...> 2006/07/29

On Sat, Jul 29, 2006 at 12:22:05PM +0900, M. Edward (Ed) Borasky wrote:

[#204820] Re: For performance, write it in C - Part 2, comparing C, Ruby and Java — "M. Edward (Ed) Borasky" <znmeb@...> 2006/07/29

Chad Perrin wrote:

[#204832] Re: For performance, write it in C - Part 2, comparing C, Ruby and Java — Chad Perrin <perrin@...> 2006/07/29

On Sat, Jul 29, 2006 at 01:18:25PM +0900, M. Edward (Ed) Borasky wrote:

[#204915] Miscellanous Language Ranting (was Re: For performance, write it in C - Part 2, comparing C, Ruby and Java) — "M. Edward (Ed) Borasky" <znmeb@...> 2006/07/29

Chad Perrin wrote:

[#204471] Signaling Ruby from C/C++ — Asterix Gallier <asterixgallier@...>

Hello,

21 messages 2006/07/28
[#204816] Re: Signaling Ruby from C/C++ — "Suraj N. Kurapati" <skurapat@...> 2006/07/29

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

[#204481] Weird problem with case expressions — Daniel Schierbeck <daniel.schierbeck@...>

I have no problem doing this:

15 messages 2006/07/28

[#204492] Ruby::Tk on OS X event binding hint — Morton Goldberg <m_goldberg@...>

On Macintosh OS X, one can use 'Command' and 'Option' as Tk event

11 messages 2006/07/28

[#204544] state of unicode support — Chad Perrin <perrin@...>

I've heard rumors that "oniguruma fixes everything", and the like. I'm

23 messages 2006/07/28
[#204577] Re: state of unicode support — "Charles O Nutter" <headius@...> 2006/07/28

Oh man, I really don't have the energy for this thread again :) Chad: if you

[#204634] Re: state of unicode support — why the lucky stiff <ruby-talk@...> 2006/07/28

On Sat, Jul 29, 2006 at 01:08:06AM +0900, Charles O Nutter wrote:

[#204554] Using a '-' in a Key name in a Hash — Andrew Knott <aknott@...>

Hi,

13 messages 2006/07/28

[#204572] Re: state of unicode support — Chad Perrin <perrin@...>

On Sat, Jul 29, 2006 at 12:46:25AM +0900, Berger, Daniel wrote:

13 messages 2006/07/28
[#204583] Re: state of unicode support — Cliff Cyphers <cdc@...2go.com> 2006/07/28

Chad Perrin wrote:

[#204589] ruby threads? the point? — Eric Armstrong <Eric.Armstrong@...>

Saw an archived message yesterday that

26 messages 2006/07/28
[#204597] Re: ruby threads? the point? — Justin Collins <collinsj@...> 2006/07/28

Eric Armstrong wrote:

[#204705] Re: ruby threads? the point? — Eric Armstrong <Eric.Armstrong@...> 2006/07/28

Justin Collins wrote:

[#204709] Re: ruby threads? the point? — Justin Collins <collinsj@...> 2006/07/28

Eric Armstrong wrote:

[#204723] Re: ruby threads? the point? — "N Okia" <wrecklass1@...> 2006/07/28

Tested it with cygwin under Windows XP, and it worked fine. Again,

[#204742] Re: ruby threads? the point? — Eric Armstrong <Eric.Armstrong@...> 2006/07/28

N Okia wrote:

[#204749] Re: ruby threads? the point? — khaines@... 2006/07/28

On Sat, 29 Jul 2006, Eric Armstrong wrote:

[#204751] Re: ruby threads? the point? — Eric Armstrong <Eric.Armstrong@...> 2006/07/28

khaines@enigo.com wrote:

[#204610] Chip-8 (#88) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

19 messages 2006/07/28

[#204623] does ":" have an anolog in another language? — "Ike" <rxv@...>

does the colon operator have an anolog in say, Java or C++ ? It seems to be

28 messages 2006/07/28
[#204628] Re: does ":" have an anolog in another language? — Chad Perrin <perrin@...> 2006/07/28

On Sat, Jul 29, 2006 at 03:40:11AM +0900, Ike wrote:

[#204635] Re: does ":" have an anolog in another language? — "Matt Todd" <chiology@...> 2006/07/28

A simple way to describe it may be to look at it as a singleton object

[#204640] Re: does ":" have an anolog in another language? — Chad Perrin <perrin@...> 2006/07/28

On Sat, Jul 29, 2006 at 04:18:28AM +0900, Matt Todd wrote:

[#204657] Re: does ":" have an anolog in another language? — nothinghappens@...

Sorry if anyone's beat me to this, I find it hard to keep up with such a busy list...

12 messages 2006/07/28

[#204665] Finding "\" in a string — Eric Armstrong <Eric.Armstrong@...>

I'm going crazy, right? Surely it is possible

19 messages 2006/07/28

[#204975] TCPSocket and RFC 821 — "Satish Talim" <satish.talim@...>

I wanted to send an email from my desktop using a simple Ruby program.

17 messages 2006/07/30
[#205066] Re: TCPSocket and RFC 821 — Francis Cianfrocca <garbagecat10@...> 2006/07/30

Satish Talim wrote:

[#205111] Re: TCPSocket and RFC 821 — "Satish Talim" <satish.talim@...> 2006/07/31

I tried the various suggestions given by Francis and Yohanes, but still it

[#205075] Howto Delete 3 Leftmost Characters — "Skeets" <skillet3232@...>

i'm sure this is easy, but i've gone through Pickaxe's string methods,

18 messages 2006/07/30
[#205082] Re: Howto Delete 3 Leftmost Characters — Esteban Manchado Vel痙quez <zoso@...> 2006/07/30

On Mon, Jul 31, 2006 at 06:30:13AM +0900, Skeets wrote:

[#205116] Question regarding postings in comp.lang.ruby — "Michael W. Ryder" <_mwryder@...>

Why do I sometimes see replies to posts in this group but not the

22 messages 2006/07/31
[#205303] Re: Question regarding postings in comp.lang.ruby — "F. Senault" <fred@...> 2006/07/31

Le 31 juillet 2006 22:56, James Edward Gray II a 馗rit :

[#205305] Re: Question regarding postings in comp.lang.ruby — James Edward Gray II <james@...> 2006/08/01

On Jul 31, 2006, at 6:30 PM, F. Senault wrote:

[#205118] using the current method name within current method — "Matthew Heidemann" <matthew.heidemann@...>

Is there a way to get the current method name within the current method?

20 messages 2006/07/31
[#205120] Re: using the current method name within current method — Daniel Harple <dharple@...> 2006/07/31

On Jul 30, 2006, at 11:37 PM, Matthew Heidemann wrote:

[#205121] Re: using the current method name within current method — "Aleks Kissinger" <aleks0@...> 2006/07/31

This is kindof a hack, but it seems to work:

[#205130] Re: using the current method name within current method — "Matt Todd" <chiology@...> 2006/07/31

If you wanted to modularize it just for the sake of it, you could do

[#205150] Re: using the current method name within current method — Robert Klemme <shortcutter@...> 2006/07/31

Matt Todd wrote:

[#205243] Re: using the current method name within current method — Logan Capaldo <logancapaldo@...> 2006/07/31

[#205123] Environment variables with empty value missing from ENV? — Clifford Heath <no.spam@...>

Under Windows XP (using cygwin's bash, but native Ruby), I

12 messages 2006/07/31

[#205174] humanized Xml tree navigation — "chiaro scuro" <kiaroskuro@...>

Does anybody know of a library that allows to go through an xml tree as if

21 messages 2006/07/31

[#205207] Does Ruby need a "line separator" class? — Wes Gamble <weyus@...>

I've run into a problem where Ruby can't handle newlines on Windows

15 messages 2006/07/31
[#205219] Re: Does Ruby need a "line separator" class? — Xavier Noria <fxn@...> 2006/07/31

On Jul 31, 2006, at 5:40 PM, Wes Gamble wrote:

[#205256] I thought this was the one that worked? — Eric Armstrong <Eric.Armstrong@...>

#!/usr/bin/env ruby

139 messages 2006/07/31
[#205266] Re: I thought this was the one that worked? — Logan Capaldo <logancapaldo@...> 2006/07/31

[#205268] Re: I thought this was the one that worked? — Chad Perrin <perrin@...> 2006/07/31

On Tue, Aug 01, 2006 at 04:23:27AM +0900, Logan Capaldo wrote:

[#205277] Re: I thought this was the one that worked? — Logan Capaldo <logancapaldo@...> 2006/07/31

[#205286] Re: I thought this was the one that worked? — Chad Perrin <perrin@...> 2006/07/31

On Tue, Aug 01, 2006 at 04:57:48AM +0900, Logan Capaldo wrote:

[#205290] Re: I thought this was the one that worked? — Logan Capaldo <logancapaldo@...> 2006/07/31

[#205297] Re: I thought this was the one that worked? — Chad Perrin <perrin@...> 2006/07/31

On Tue, Aug 01, 2006 at 07:05:31AM +0900, Logan Capaldo wrote:

[#205307] Re: I thought this was the one that worked? — Logan Capaldo <logancapaldo@...> 2006/08/01

[#205323] Re: I thought this was the one that worked? — Chad Perrin <perrin@...> 2006/08/01

On Tue, Aug 01, 2006 at 09:50:23AM +0900, Logan Capaldo wrote:

[#205331] Re: I thought this was the one that worked? — dblack@... 2006/08/01

Hi -

[#205369] Re: I thought this was the one that worked? — Chad Perrin <perrin@...> 2006/08/01

On Tue, Aug 01, 2006 at 12:05:50PM +0900, dblack@wobblini.net wrote:

[#205406] Re: I thought this was the one that worked? — dblack@... 2006/08/01

Hi --

[#205496] Re: I thought this was the one that worked? — Chad Perrin <perrin@...> 2006/08/01

On Tue, Aug 01, 2006 at 09:03:50PM +0900, dblack@wobblini.net wrote:

[#205505] Re: I thought this was the one that worked? — "Jacob Fugal" <lukfugl@...> 2006/08/01

On 8/1/06, Chad Perrin <perrin@apotheon.com> wrote:

[#205509] Re: I thought this was the one that worked? — Chad Perrin <perrin@...> 2006/08/01

On Wed, Aug 02, 2006 at 04:56:53AM +0900, Jacob Fugal wrote:

[#205525] Re: I thought this was the one that worked? — "Jacob Fugal" <lukfugl@...> 2006/08/01

On 8/1/06, Chad Perrin <perrin@apotheon.com> wrote:

[#205533] Re: I thought this was the one that worked? — Chad Perrin <perrin@...> 2006/08/01

On Wed, Aug 02, 2006 at 05:19:38AM +0900, Jacob Fugal wrote:

[#205472] Re: I thought this was the one that worked? — "Jacob Fugal" <lukfugl@...> 2006/08/01

On 8/1/06, Chad Perrin <perrin@apotheon.com> wrote:

[#205500] Re: I thought this was the one that worked? — Chad Perrin <perrin@...> 2006/08/01

On Wed, Aug 02, 2006 at 01:28:45AM +0900, Jacob Fugal wrote:

[#205310] Re: I thought this was the one that worked? — "Just Another Victim of the Ambient Morality" <ihatespam@...> 2006/08/01

[#205416] Re: I thought this was the one that worked? — "Just Another Victim of the Ambient Morality" <ihatespam@...> 2006/08/01

[#205503] Re: I thought this was the one that worked? — Chad Perrin <perrin@...> 2006/08/01

On Tue, Aug 01, 2006 at 09:40:05PM +0900, Just Another Victim of the Ambient Morality wrote:

[#205515] Re: I thought this was the one that worked? — ara.t.howard@... 2006/08/01

On Wed, 2 Aug 2006, Chad Perrin wrote:

[#205438] Re: I thought this was the one that worked? — "Just Another Victim of the Ambient Morality" <ihatespam@...> 2006/08/01

[#205444] Re: I thought this was the one that worked? — dblack@... 2006/08/01

Hi --

[#205506] Re: I thought this was the one that worked? — Chad Perrin <perrin@...> 2006/08/01

On Tue, Aug 01, 2006 at 11:34:35PM +0900, dblack@wobblini.net wrote:

Re: [ANN] sandbox 0.0.11 -- taking the i out of eval

From: Mauricio Fernandez <mfp@...>
Date: 2006-07-19 22:14:43 UTC
List: ruby-talk #202804
On Thu, Jul 20, 2006 at 04:11:09AM +0900, why the lucky stiff wrote:
> On Thu, Jul 20, 2006 at 03:18:05AM +0900, Justin Bailey wrote:
> > I can't build it on Windows tho - I think my version of VC++ is incorrect.
> > Any chance we can get a precompiled binary? Plllleease? :)
> 
> I'll have binaries for Hpricot and Sandbox both out in August.  They still lack
> stability too much to warrant that kind of release.  If someone else finds time
> to compile and release their own gems, that would be a great relief!

Could you have a look at http://eigenclass.org/misc/hpricot-0.3.0-mswin32.gem ?
I applied my standard cross-compilation treatment with MinGW.
Sandbox will follow if the above works and it's OK by you.

FYI, here's the patch to the Rakefile and related stuff I applied:

Thu Jul 20 00:04:00 CEST 2006  Mauricio Fernandez <mfp@acm.org>
  * Rakefile, mingw-rbconfig.rb: added rubygems_win32 and related targets.
  Cross-compiles with MinGW.
diff -rN -u old-hpricot.mingw/Rakefile new-hpricot.mingw/Rakefile
--- old-hpricot.mingw/Rakefile	2006-07-20 00:05:32.000000000 +0200
+++ new-hpricot.mingw/Rakefile	2006-07-20 00:05:32.000000000 +0200
@@ -8,6 +8,7 @@
 
 NAME = "hpricot"
 VERS = "0.3"
+PKG_REVISION = ".0"
 CLEAN.include ['ext/hpricot_scan/*.{bundle,so,obj,pdb,lib,def,exp}', 'ext/hpricot_scan/Makefile', 
                '**/.*.sw?', '*.gem', '.config']
 
@@ -19,7 +20,7 @@
   if Dir.glob(File.join("lib","hpricot_scan.*")).length == 0
     STDERR.puts "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
     STDERR.puts "Gem actually failed to build.  Your system is"
-    STDERR.puts "NOT configured properly to build Mongrel."
+    STDERR.puts "NOT configured properly to build hpricot."
     STDERR.puts "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
     exit(1)
   end
@@ -27,7 +28,7 @@
 task :hpricot_scan => [:ragel]
 
 desc "Packages up Hpricot."
-task :package => [:clean]
+task :package => [:clean, :ragel]
 
 desc "Run all the tests"
 Rake::TestTask.new do |t|
@@ -39,7 +40,7 @@
 spec =
     Gem::Specification.new do |s|
         s.name = NAME
-        s.version = VERS
+        s.version = VERS + PKG_REVISION
         s.platform = Gem::Platform::RUBY
         s.has_rdoc = false
         s.extra_rdoc_files = ["README", "CHANGELOG", "COPYING"]
@@ -49,12 +50,13 @@
         s.email = 'why@ruby-lang.org'
         s.homepage = 'http://code.whytheluckystiff.net/hpricot/'
 
-        s.files = %w(COPYING README Rakefile) +
+        s.files = %w(COPYING README Rakefile mingw-rbconfig.rb) +
           Dir.glob("{bin,doc,test,lib,extras}/**/*") + 
-          Dir.glob("ext/**/*.{h,c,rb}")
+          Dir.glob("ext/**/*.{h,c,rb,rl}") + 
+          %w[ext/hpricot_scan/hpricot_scan.c] # needed because it's generated later
         
         s.require_path = "lib"
-        s.autorequire = "hpricot"
+        #s.autorequire = "hpricot"  # no no no this is tHe 3v1l
         s.extensions = FileList["ext/**/extconf.rb"].to_a
         s.bindir = "bin"
     end
@@ -70,6 +72,7 @@
 ext_files = FileList[
   "#{ext}/*.c",
   "#{ext}/*.h",
+  "#{ext}/*.rl",
   "#{ext}/extconf.rb",
   "#{ext}/Makefile",
   "lib"
@@ -95,9 +98,61 @@
 
 desc "Generates the scanner code with Ragel."
 task :ragel do
-  sh %{/usr/local/bin/ragel ext/hpricot_scan/hpricot_scan.rl | /usr/local/bin/rlcodegen -G2 -o ext/hpricot_scan/hpricot_scan.c}
+  sh %{ragel ext/hpricot_scan/hpricot_scan.rl | rlcodegen -G2 -o ext/hpricot_scan/hpricot_scan.c}
 end
 
+PKG_FILES = FileList[
+  "test/**/*.{rb,html,xhtml}",
+  "lib/**/*.rb",
+  "ext/**/*.{c,rb,h,rl}",
+  "CHANGELOG", "README", "Rakefile", "COPYING",
+  "mingw-rbconfig.rb", "lib/hpricot_scan.so"]
+
+Win32Spec = Gem::Specification.new do |s|
+  s.name = NAME
+  s.version = VERS + PKG_REVISION
+  s.platform = Gem::Platform::WIN32
+  s.has_rdoc = false
+  s.extra_rdoc_files = ["README", "CHANGELOG", "COPYING"]
+  s.summary = "a swift, liberal HTML parser with a fantastic library"
+  s.description = s.summary
+  s.author = "why the lucky stiff"
+  s.email = 'why@ruby-lang.org'
+  s.homepage = 'http://code.whytheluckystiff.net/hpricot/'
+
+  s.files = PKG_FILES
+
+  s.require_path = "lib"
+  #s.autorequire = "hpricot"  # no no no this is tHe 3v1l
+  s.extensions = []
+  s.bindir = "bin"
+end
+  
+WIN32_PKG_DIR = "hpricot-" + VERS + PKG_REVISION
+
+file WIN32_PKG_DIR => [:package] do
+  sh "tar zxf pkg/#{WIN32_PKG_DIR}.tgz"
+end
+
+desc "Cross-compile the hpricot_scan extension for win32"
+file "hpricot_scan_win32" => [WIN32_PKG_DIR] do
+  cp "mingw-rbconfig.rb", "#{WIN32_PKG_DIR}/ext/hpricot_scan/rbconfig.rb"
+  sh "cd #{WIN32_PKG_DIR}/ext/hpricot_scan/ && ruby -I. extconf.rb && make"
+  mv "#{WIN32_PKG_DIR}/ext/hpricot_scan/hpricot_scan.so", "#{WIN32_PKG_DIR}/lib"
+end
+
+desc "Build the binary RubyGems package for win32"
+task :rubygems_win32 => ["hpricot_scan_win32"] do
+  Dir.chdir("#{WIN32_PKG_DIR}") do
+    Gem::Builder.new(Win32Spec).build
+    verbose(true) {
+      mv Dir["*.gem"].first, "../pkg/hpricot-#{VERS + PKG_REVISION}-mswin32.gem"
+    }
+  end
+end
+
+CLEAN.include WIN32_PKG_DIR
+
 task :install do
   sh %{rake package}
   sh %{sudo gem install pkg/#{NAME}-#{VERS}}
diff -rN -u old-hpricot.mingw/mingw-rbconfig.rb new-hpricot.mingw/mingw-rbconfig.rb
--- old-hpricot.mingw/mingw-rbconfig.rb	1970-01-01 01:00:00.000000000 +0100
+++ new-hpricot.mingw/mingw-rbconfig.rb	2006-07-20 00:05:32.000000000 +0200
@@ -0,0 +1,174 @@
+
+# This rbconfig.rb corresponds to a Ruby installation for win32 cross-compiled
+# with mingw under i686-linux. It can be used to cross-compile extensions for
+# win32 using said toolchain.
+# 
+# This file assumes that a cross-compiled mingw32 build (compatible with the
+# mswin32 builds) is installed under $HOME/ruby-mingw32.
+
+module Config
+  #RUBY_VERSION == "1.8.5" or
+  #  raise "ruby lib version (1.8.5) doesn't match executable version (#{RUBY_VERSION})"
+
+  TOPDIR = File.dirname(__FILE__).chomp!("/lib/ruby/1.8/i386-mingw32")
+  DESTDIR = '' unless defined? DESTDIR
+  CONFIG = {}
+  CONFIG["DESTDIR"] = DESTDIR
+  CONFIG["INSTALL"] = "/usr/bin/install -c"
+  CONFIG["prefix"] = (TOPDIR || DESTDIR + "#{ENV["HOME"]}/ruby-mingw32")
+  CONFIG["EXEEXT"] = ".exe"
+  CONFIG["ruby_install_name"] = "ruby"
+  CONFIG["RUBY_INSTALL_NAME"] = "ruby"
+  CONFIG["RUBY_SO_NAME"] = "msvcrt-ruby18"
+  CONFIG["SHELL"] = "/bin/sh"
+  CONFIG["PATH_SEPARATOR"] = ":"
+  CONFIG["PACKAGE_NAME"] = ""
+  CONFIG["PACKAGE_TARNAME"] = ""
+  CONFIG["PACKAGE_VERSION"] = ""
+  CONFIG["PACKAGE_STRING"] = ""
+  CONFIG["PACKAGE_BUGREPORT"] = ""
+  CONFIG["exec_prefix"] = "$(prefix)"
+  CONFIG["bindir"] = "$(exec_prefix)/bin"
+  CONFIG["sbindir"] = "$(exec_prefix)/sbin"
+  CONFIG["libexecdir"] = "$(exec_prefix)/libexec"
+  CONFIG["datadir"] = "$(prefix)/share"
+  CONFIG["sysconfdir"] = "$(prefix)/etc"
+  CONFIG["sharedstatedir"] = "$(prefix)/com"
+  CONFIG["localstatedir"] = "$(prefix)/var"
+  CONFIG["libdir"] = "$(exec_prefix)/lib"
+  CONFIG["includedir"] = "$(prefix)/include"
+  CONFIG["oldincludedir"] = "/usr/include"
+  CONFIG["infodir"] = "$(prefix)/info"
+  CONFIG["mandir"] = "$(prefix)/man"
+  CONFIG["build_alias"] = "i686-linux"
+  CONFIG["host_alias"] = "i586-mingw32msvc"
+  CONFIG["target_alias"] = "i386-mingw32"
+  CONFIG["ECHO_C"] = ""
+  CONFIG["ECHO_N"] = "-n"
+  CONFIG["ECHO_T"] = ""
+  CONFIG["LIBS"] = "-lwsock32 "
+  CONFIG["MAJOR"] = "1"
+  CONFIG["MINOR"] = "8"
+  CONFIG["TEENY"] = "4"
+  CONFIG["build"] = "i686-pc-linux"
+  CONFIG["build_cpu"] = "i686"
+  CONFIG["build_vendor"] = "pc"
+  CONFIG["build_os"] = "linux"
+  CONFIG["host"] = "i586-pc-mingw32msvc"
+  CONFIG["host_cpu"] = "i586"
+  CONFIG["host_vendor"] = "pc"
+  CONFIG["host_os"] = "mingw32msvc"
+  CONFIG["target"] = "i386-pc-mingw32"
+  CONFIG["target_cpu"] = "i386"
+  CONFIG["target_vendor"] = "pc"
+  CONFIG["target_os"] = "mingw32"
+  CONFIG["CC"] = "i586-mingw32msvc-gcc"
+  CONFIG["CFLAGS"] = "-g -O2 "
+  CONFIG["LDFLAGS"] = ""
+  CONFIG["CPPFLAGS"] = ""
+  CONFIG["OBJEXT"] = "o"
+  CONFIG["CPP"] = "i586-mingw32msvc-gcc -E"
+  CONFIG["EGREP"] = "grep -E"
+  CONFIG["GNU_LD"] = "yes"
+  CONFIG["CPPOUTFILE"] = "-o conftest.i"
+  CONFIG["OUTFLAG"] = "-o "
+  CONFIG["YACC"] = "bison -y"
+  CONFIG["RANLIB"] = "i586-mingw32msvc-ranlib"
+  CONFIG["AR"] = "i586-mingw32msvc-ar"
+  CONFIG["NM"] = "i586-mingw32msvc-nm"
+  CONFIG["WINDRES"] = "i586-mingw32msvc-windres"
+  CONFIG["DLLWRAP"] = "i586-mingw32msvc-dllwrap"
+  CONFIG["OBJDUMP"] = "i586-mingw32msvc-objdump"
+  CONFIG["LN_S"] = "ln -s"
+  CONFIG["SET_MAKE"] = ""
+  CONFIG["INSTALL_PROGRAM"] = "$(INSTALL)"
+  CONFIG["INSTALL_SCRIPT"] = "$(INSTALL)"
+  CONFIG["INSTALL_DATA"] = "$(INSTALL) -m 644"
+  CONFIG["RM"] = "rm -f"
+  CONFIG["CP"] = "cp"
+  CONFIG["MAKEDIRS"] = "mkdir -p"
+  CONFIG["LIBOBJS"] = " fileblocks$(U).o crypt$(U).o flock$(U).o acosh$(U).o win32$(U).o"
+  CONFIG["ALLOCA"] = ""
+  CONFIG["DLDFLAGS"] = " -Wl,--enable-auto-import,--export-all"
+  CONFIG["ARCH_FLAG"] = ""
+  CONFIG["STATIC"] = ""
+  CONFIG["CCDLFLAGS"] = ""
+  CONFIG["LDSHARED"] = "i586-mingw32msvc-gcc -shared -s"
+  CONFIG["DLEXT"] = "so"
+  CONFIG["DLEXT2"] = "dll"
+  CONFIG["LIBEXT"] = "a"
+  CONFIG["LINK_SO"] = ""
+  CONFIG["LIBPATHFLAG"] = " -L\"%s\""
+  CONFIG["RPATHFLAG"] = ""
+  CONFIG["LIBPATHENV"] = ""
+  CONFIG["TRY_LINK"] = ""
+  CONFIG["STRIP"] = "strip"
+  CONFIG["EXTSTATIC"] = ""
+  CONFIG["setup"] = "Setup"
+  CONFIG["MINIRUBY"] = "ruby -rfake"
+  CONFIG["PREP"] = "fake.rb"
+  CONFIG["RUNRUBY"] = "$(MINIRUBY) -I`cd $(srcdir)/lib; pwd`"
+  CONFIG["EXTOUT"] = ".ext"
+  CONFIG["ARCHFILE"] = ""
+  CONFIG["RDOCTARGET"] = ""
+  CONFIG["XCFLAGS"] = " -DRUBY_EXPORT"
+  CONFIG["XLDFLAGS"] = " -Wl,--stack,0x02000000 -L."
+  CONFIG["LIBRUBY_LDSHARED"] = "i586-mingw32msvc-gcc -shared -s"
+  CONFIG["LIBRUBY_DLDFLAGS"] = " -Wl,--enable-auto-import,--export-all -Wl,--out-implib=$(LIBRUBY)"
+  CONFIG["rubyw_install_name"] = "rubyw"
+  CONFIG["RUBYW_INSTALL_NAME"] = "rubyw"
+  CONFIG["LIBRUBY_A"] = "lib$(RUBY_SO_NAME)-static.a"
+  CONFIG["LIBRUBY_SO"] = "$(RUBY_SO_NAME).dll"
+  CONFIG["LIBRUBY_ALIASES"] = ""
+  CONFIG["LIBRUBY"] = "lib$(LIBRUBY_SO).a"
+  CONFIG["LIBRUBYARG"] = "$(LIBRUBYARG_SHARED)"
+  CONFIG["LIBRUBYARG_STATIC"] = "-l$(RUBY_SO_NAME)-static"
+  CONFIG["LIBRUBYARG_SHARED"] = "-l$(RUBY_SO_NAME)"
+  CONFIG["SOLIBS"] = "$(LIBS)"
+  CONFIG["DLDLIBS"] = ""
+  CONFIG["ENABLE_SHARED"] = "yes"
+  CONFIG["MAINLIBS"] = ""
+  CONFIG["COMMON_LIBS"] = "m"
+  CONFIG["COMMON_MACROS"] = ""
+  CONFIG["COMMON_HEADERS"] = "windows.h winsock.h"
+  CONFIG["EXPORT_PREFIX"] = ""
+  CONFIG["MINIOBJS"] = "dmydln.o"
+  CONFIG["MAKEFILES"] = "Makefile GNUmakefile"
+  CONFIG["arch"] = "i386-mingw32"
+  CONFIG["sitearch"] = "i386-msvcrt"
+  CONFIG["sitedir"] = "$(prefix)/lib/ruby/site_ruby"
+  CONFIG["configure_args"] = "'--host=i586-mingw32msvc' '--target=i386-mingw32' '--build=i686-linux' '--prefix=#{ENV["HOME"]}/ruby-mingw32' 'build_alias=i686-linux' 'host_alias=i586-mingw32msvc' 'target_alias=i386-mingw32'"
+  CONFIG["NROFF"] = "/usr/bin/nroff"
+  CONFIG["MANTYPE"] = "doc"
+  CONFIG["LTLIBOBJS"] = " fileblocks$(U).lo crypt$(U).lo flock$(U).lo acosh$(U).lo win32$(U).lo"
+  CONFIG["ruby_version"] = "$(MAJOR).$(MINOR)"
+  CONFIG["rubylibdir"] = "$(libdir)/ruby/$(ruby_version)"
+  CONFIG["archdir"] = "$(rubylibdir)/$(arch)"
+  CONFIG["sitelibdir"] = "$(sitedir)/$(ruby_version)"
+  CONFIG["sitearchdir"] = "$(sitelibdir)/$(sitearch)"
+  CONFIG["topdir"] = File.dirname(__FILE__)
+  MAKEFILE_CONFIG = {}
+  CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup}
+  def Config::expand(val, config = CONFIG)
+    val.gsub!(/\$\$|\$\(([^()]+)\)|\$\{([^{}]+)\}/) do |var|
+      if !(v = $1 || $2)
+	'$'
+      elsif key = config[v = v[/\A[^:]+(?=(?::(.*?)=(.*))?\z)/]]
+	pat, sub = $1, $2
+	config[v] = false
+	Config::expand(key, config)
+	config[v] = key
+	key = key.gsub(/#{Regexp.quote(pat)}(?=\s|\z)/n) {sub} if pat
+	key
+      else
+	var
+      end
+    end
+    val
+  end
+  CONFIG.each_value do |val|
+    Config::expand(val)
+  end
+end
+RbConfig = Config # compatibility for ruby-1.9
+CROSS_COMPILING = nil unless defined? CROSS_COMPILING


-- 
Mauricio Fernandez  -   http://eigenclass.org   -  singular Ruby

In This Thread