[#64] Assigning a block to a variable in Ruby — ajmayo@...

I am new to Ruby and curious as to how you emulate the following

30 messages 2005/12/15

[#110] challenge - regex which matches nothing — ara.t.howard@...

15 messages 2005/12/15

[#168211] require! — "Ross Bamford" <rosco@...>

It (finally) clicked now, 'require' is just a method...

24 messages 2005/12/01

[#168265] What is the best way to edit a file to eliminate a line using Ruby? — "Steve [RubyTalk]" <steve_rubytalk@...>

This sounds an easy task, but I'm certain that I'm yet to find the most

17 messages 2005/12/01
[#168269] Re: What is the best way to edit a file to eliminate a line using Ruby? — "William James" <w_a_x_man@...> 2005/12/01

Steve [RubyTalk] wrote:

[#168273] Re: What is the best way to edit a file to eliminate a line using Ruby? — "Steve [RubyTalk]" <steve_rubytalk@...> 2005/12/01

William James wrote:

[#168275] Re: What is the best way to edit a file to eliminate a line — Mike Fletcher <lemurific+rforum@...> 2005/12/01

steve_rubytalk wrote:

[#168309] Re: What is the best way to edit a file to eliminate a line — "Steve [RubyTalk]" <steve_rubytalk@...> 2005/12/01

Mike Fletcher wrote:

[#168271] Good Ruby Examples? — "Hampton" <hcatlin@...>

I'm planning on doing a tutorial about Ruby for Ryerson University's CS

19 messages 2005/12/01

[#168342] [ANN} Komodo 3.5.1 -- a professional Ruby IDE — Curt Hibbs <curt.hibbs@...>

Yesterday, ActiveState released Komodo

73 messages 2005/12/01
[#168492] Re: [ANN} Komodo 3.5.1 -- a professional Ruby IDE — Christer Nilsson <janchrister.nilsson@...> 2005/12/02

I've tried it on Win XP. It's terribly slow, one minute just to see my

[#169050] Re: [ANN} Komodo 3.5.1 -- a professional Ruby IDE — Wayne Vucenic <nightphotos@...> 2005/12/06

Hi Christer,

[#169084] Re: [ANN} Komodo 3.5.1 -- a professional Ruby IDE — Curt Hibbs <curt.hibbs@...> 2005/12/06

On 12/5/05, Wayne Vucenic <nightphotos@gmail.com> wrote:

[#169085] ArachnoRuby -- a professional Ruby IDE — Christer Nilsson <janchrister.nilsson@...> 2005/12/06

curt.hibbs wrote:

[#169185] Re: ArachnoRuby -- a professional Ruby IDE — Wayne Vucenic <nightphotos@...> 2005/12/06

Hi Christer,

[#170386] Re: ArachnoRuby -- a professional Ruby IDE — "soxinbox" <faker@...> 2005/12/13

I think it should be free or have documentation. I don't think I should have

[#170472] Re: ArachnoRuby -- a professional Ruby IDE — tony summerfelt <snowzone5@...> 2005/12/13

soxinbox wrote on 12/12/2005 8:07 PM:

[#170476] Re: ArachnoRuby -- a professional Ruby IDE — Christer Nilsson <janchrister.nilsson@...> 2005/12/13

tony summerfelt wrote:

[#170537] Re: ArachnoRuby -- a professional Ruby IDE — tony summerfelt <snowzone5@...> 2005/12/13

Christer Nilsson wrote on 12/13/2005 9:09 AM:

[#170552] Re: ArachnoRuby -- a professional Ruby IDE — "Gene Tani" <gene.tani@...> 2005/12/13

[#189067] Test post — Javaman49 <shosking@...> 2006/04/17

My first post. <b>testing html</b>

[#189068] Newbie's Ruby IDE Editor Roundup, April 2006 — Javaman49 <shosking@...> 2006/04/17

By a Newbie, for Newbies.

[#168344] need some Ruby magic — Hammed Malik <hammed@...>

I'd like to sort collections randomly. This is what I tried first:

47 messages 2005/12/01
[#168643] Re: need some Ruby magic — Reinder Verlinde <reinder@...> 2005/12/03

In article <dd3f270e4d20842e121bb970bc9a8386@ruby-forum.com>,

[#168675] Re: need some Ruby magic — Jim Weirich <jim@...> 2005/12/03

reinder wrote:

[#168687] Re: need some Ruby magic — Mauricio Fern疣dez <mfp@...> 2005/12/04

On Sun, Dec 04, 2005 at 08:48:11AM +0900, Jim Weirich wrote:

[#168688] Re: need some Ruby magic — ara.t.howard@... 2005/12/04

On Sun, 4 Dec 2005, Mauricio [iso-8859-1] Fern疣dez wrote:

[#168963] Shuffling an array, sort_by{rand}'s bias (was Re: need some Ruby magic) — Mauricio Fern疣dez <mfp@...> 2005/12/05

On Sun, Dec 04, 2005 at 10:21:02AM +0900, ara.t.howard@noaa.gov wrote:

[#168977] Re: Shuffling an array, sort_by{rand}'s bias (was Re: need some Ruby magic) — ara.t.howard@... 2005/12/05

On Tue, 6 Dec 2005, Mauricio [iso-8859-1] Fern疣dez wrote:

[#169082] Re: Shuffling an array, sort_by{rand}'s bias (was Re: need some Ruby — Uwe Schmitt <schmitt@...> 2005/12/06

||

[#169091] Re: Shuffling an array, sort_by{rand}'s bias (was Re: need some Ruby — Mauricio Fern疣dez <mfp@...> 2005/12/06

On Tue, Dec 06, 2005 at 07:32:34PM +0900, Uwe Schmitt wrote:

[#169100] Re: Shuffling an array, sort_by{rand}'s bias (was Re: need some Ruby — Uwe Schmitt <schmitt@...> 2005/12/06

||

[#169108] Re: Shuffling an array, sort_by{rand}'s bias (was Re: need some Ruby — Michael Ulm <michael.ulm@...> 2005/12/06

Uwe Schmitt wrote:

[#168455] how can I install ruby-xslt ? — Daniel R <draens@...>

Hello,

15 messages 2005/12/02
[#168530] Re: how can I install ruby-xslt ? — Daniel R <draens@...> 2005/12/02

Please, could someone help me ?

[#168468] Problem with method that starts process, yields pid then yields return code — x1 <caldridge@...>

I'm trying to create a method that will kick off a new process, return

12 messages 2005/12/02
[#168545] Re: Problem with method that starts process, yields pid then yields return code — ara.t.howard@... 2005/12/02

On Fri, 2 Dec 2005, x1 wrote:

[#168599] Re: Problem with method that starts process, yields pid then yields return code — x1 <caldridge@...> 2005/12/03

it seems to work!!

[#168602] Re: Problem with method that starts process, yields pid then yields return code — ara.t.howard@... 2005/12/03

On Sat, 3 Dec 2005, x1 wrote:

[#168469] Weird Numbers (#57) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

25 messages 2005/12/02

[#168482] Re: [QUIZ] Weird Numbers (#57) — "Kroeger, Simon (ext)" <simon.kroeger.ext@...>

If I got I right, 70 would be such a number.

12 messages 2005/12/02

[#168557] Studying in the US — Daniel Schierbeck <daniel.schierbeck@...>

Hi fellow Rubyists!

22 messages 2005/12/02

[#168699] injecting dynamic methods into a class — johanatan <zjll9@...>

hi All,

72 messages 2005/12/04
[#168702] Re: injecting dynamic methods into a class — "Trans" <transfire@...> 2005/12/04

If you don't mind while I'm at this I'm going to touch up the code to

[#168825] Re: injecting dynamic methods into a class — "johanatan <zjll9@...> <zjll9@...>" <zjll9@...> 2005/12/05

transfire wrote:

[#169031] Re: injecting dynamic methods into a class — "Ross Bamford" <rosco@...> 2005/12/06

On Tue, 06 Dec 2005 02:10:51 -0000, Trans <transfire@gmail.com> wrote:

[#169046] Re: injecting dynamic methods into a class — "Trans" <transfire@...> 2005/12/06

Ross Bamford wrote:

[#169047] Re: injecting dynamic methods into a class — "Trans" <transfire@...> 2005/12/06

> 'Ad hoc' has too many negative connotations and singleton has a fairly

[#169462] Re: injecting dynamic methods into a class — jonathan <zjll9@...> 2005/12/08

transfire wrote:

[#169468] Re: injecting dynamic methods into a class — "jonathan <zjll9@...>" <zjll9@...> 2005/12/08

jonathan wrote:

[#169054] Re: injecting dynamic methods into a class — "David A. Black" <dblack@...> 2005/12/06

Hi --

[#169087] Re: injecting dynamic methods into a class — "Trans" <transfire@...> 2005/12/06

[#169098] Re: injecting dynamic methods into a class — "David A. Black" <dblack@...> 2005/12/06

Hi --

[#169160] Re: injecting dynamic methods into a class — "Trans" <transfire@...> 2005/12/06

Okay David, its obvious you're getting upset. Though you say the

[#169165] Re: injecting dynamic methods into a class — "David A. Black" <dblack@...> 2005/12/06

Hi --

[#169169] Re: injecting dynamic methods into a class — "Trans" <transfire@...> 2005/12/06

[#169170] Re: injecting dynamic methods into a class — "David A. Black" <dblack@...> 2005/12/06

Hi --

[#169184] Re: injecting dynamic methods into a class — MenTaLguY <mental@...> 2005/12/06

On Wed, 2005-12-07 at 04:42 +0900, David A. Black wrote:

[#169187] Re: injecting dynamic methods into a class — "David A. Black" <dblack@...> 2005/12/06

Hi --

[#168716] Weird Numbers (#57) Solution — "Hampton" <hcatlin@...>

Here is my solution. Its not the most beautiful thing in the world, but

39 messages 2005/12/04
[#168730] Re: [QUIZ] Weird Numbers (#57) Solution — James Edward Gray II <james@...> 2005/12/04

On Dec 4, 2005, at 7:27 AM, Hampton wrote:

[#168750] Re: [QUIZ] Weird Numbers (#57) Solution — Ryan Leavengood <leavengood@...> 2005/12/04

On 12/4/05, James Edward Gray II <james@grayproductions.net> wrote:

[#168772] Re: [QUIZ] Weird Numbers (#57) Solution — James Edward Gray II <james@...> 2005/12/04

On Dec 4, 2005, at 11:29 AM, Ryan Leavengood wrote:

[#168780] Re: [QUIZ] Weird Numbers (#57) Solution — Ryan Leavengood <leavengood@...> 2005/12/04

On 12/4/05, James Edward Gray II <james@grayproductions.net> wrote:

[#168763] Getting Over Symbols — gwtmp01@...

When I was first learning Ruby, symbols were a bit of a mystery.

14 messages 2005/12/04

[#168861] lib for optional static typing — "robertj" <robert_kuzelj@...>

hi,

29 messages 2005/12/05

[#168871] increasing counter whithin loop? — Patrick Gundlach <clr9.10.randomuser@...>

Hi,

36 messages 2005/12/05

[#168920] Colorized Ruby Source Listings/Printing — Patrick Hurley <phurley@...>

I guess I am just old fashion, but sometimes when I am working on

11 messages 2005/12/05

[#168989] Subclassing Class. — John Carter <john.carter@...>

Ok. This is a wild idea.

25 messages 2005/12/06

[#168992] Speed Golf - Remove Early Dups — "Phrogz" <gavin@...>

SUMMARY

12 messages 2005/12/06

[#169057] getting around access control — "Ara.T.Howard" <ara.t.howard@...>

17 messages 2005/12/06

[#169149] Screen scraping an html text contents into a file — "basi" <basi_lio@...>

Hello,

16 messages 2005/12/06
[#169181] Re: Screen scraping an html text contents into a file — "Gene Tani" <gene.tani@...> 2005/12/06

[#169183] Re: Screen scraping an html text contents into a file — Edward Faulkner <ef@...> 2005/12/06

> basi wrote:

[#169314] Syntax checker? — "William E. Rubin" <williamerubin@...>

Ruby doesn't seem to check for class names, function names, and so

22 messages 2005/12/07
[#169323] Re: Syntax checker? — Pit Capitain <pit@...> 2005/12/07

William E. Rubin schrieb:

[#169339] Re: Syntax checker? — "William E. Rubin" <williamerubin@...> 2005/12/07

Thanks for the explanation. But there certainly could at least be a

[#169400] What's your opinion? ArachnoRuby, Komodo, Eclipse/RDT, RadRails, etc. — Curt Hibbs <curt.hibbs@...>

There's been a couple really good threads that are still ongoing about Ruby

10 messages 2005/12/07

[#169410] RubyScript — dpersik@...

I have done some searching on the web and have found very little about

16 messages 2005/12/07
[#169414] Re: RubyScript — Dan Diebolt <dandiebolt@...> 2005/12/07

>I have done some searching on the web and have found very little about

[#169419] Re: RubyScript — Jacob Fugal <lukfugl@...> 2005/12/07

On 12/7/05, Dan Diebolt <dandiebolt@yahoo.com> wrote:

[#169423] Standard Library questions — Joe Van Dyk <joevandyk@...>

I'm spending an hour or two today going through Ruby's standard

13 messages 2005/12/07

[#169466] They say I write Ruby like Perl — Steve Litt <slitt@...>

Hi all,

58 messages 2005/12/08
[#169570] Re: They say I write Ruby like Perl — Chris Game <chrisgame@...> 2005/12/08

Ryan Leavengood wrote:

[#169577] Re: They say I write Ruby like Perl — James Edward Gray II <james@...> 2005/12/08

On Dec 8, 2005, at 7:27 AM, Chris Game wrote:

[#169582] Re: They say I write Ruby like Perl — Rich <rjseagraves@...> 2005/12/08

I'd be interested to know *why* it is a language convention, and more

[#169516] About class methods — Hank Gong <hankgong@...>

Hi! When I read the Ruby manual, I noticed that for class Array, there are

56 messages 2005/12/08
[#169522] Re: About class methods — James Britt <james_b@...> 2005/12/08

Hank Gong wrote:

[#169524] Re: About class methods — "Trans" <transfire@...> 2005/12/08

> They're not eigenmethods are they?

[#169587] Re: About class methods — "Trans" <transfire@...> 2005/12/08

Sorry Hank, if you are unware of what were talking about in these last

[#169658] Re: About class methods — Hank Gong <hankgong@...> 2005/12/08

I carefully read two articles about classmethods and singleton concept.

[#169669] Re: About class methods — dblack@... 2005/12/08

Hi --

[#169709] Re: About class methods — "Trans" <transfire@...> 2005/12/08

[#169721] Re: About class methods — "jonathan <zjll9@...> <zjll9@...> <zjll9@...>" <zjll9@...> 2005/12/08

transfire wrote:

[#169743] Re: About class methods — gwtmp01@... 2005/12/08

[#169806] Re: About class methods — jonathan <zjll9@...> 2005/12/09

>

[#169810] Re: About class methods — "jonathan <zjll9@...>" <zjll9@...> 2005/12/09

My understanding of 'singleton' methods or 'ad hoc' methods or

[#169861] Re: About class methods — "Trans" <transfire@...> 2005/12/09

J,

[#170016] Re: About class methods — jonathan leonard <zjll9@...> 2005/12/10

transfire wrote:

[#170019] Re: About class methods — "jonathan leonard <zjll9@...>" <zjll9@...> 2005/12/10

T,

[#170025] Re: About class methods — "Trans" <transfire@...> 2005/12/10

[#170035] Re: About class methods — "jonathan <zjll9@...> <zjll9@...> <zjll9@...>" <zjll9@...> 2005/12/10

transfire wrote:

[#170053] Re: About class methods — dblack@... 2005/12/10

Hi --

[#170106] Re: About class methods — "jonathan <zjll9@...> <zjll9@...> <zjll9@...> <zjll9@...>" <zjll9@...> 2005/12/11

dblack wrote:

[#170201] Re: About class methods — Mark Ericson <mark.ericson@...> 2005/12/12

I'm curious why "class method" is being avoided? It certainly seems

[#169578] do/end vs braces — Steve Litt <slitt@...>

Hi all,

31 messages 2005/12/08

[#169642] ordered/sorted hash — "robertj" <robert_kuzelj@...>

hi,

21 messages 2005/12/08

[#169660] New guy... Intoduction and first question on some direction. — Oscar Gonzalez <rakxzo@...>

Hi everyone. I'm new to these forums. I am sysadmin in California and

16 messages 2005/12/08
[#169666] Re: New guy... Intoduction and first question on some direction. — "ako..." <akonsu@...> 2005/12/08

hello,

[#169680] Re: New guy... Intoduction and first question on some direct — Oscar Gonzalez <rakxzo@...> 2005/12/08

akonsu wrote:

[#169698] Subversion support on RubyForge — Tom Copeland <tom@...>

Hi all -

14 messages 2005/12/08

[#169854] Equation graphing software? — Steve Litt <slitt@...>

Hi all,

14 messages 2005/12/09
[#169904] Re: Equation graphing software? — "Eric Lavigne" <lavigne.eric@...> 2005/12/09

>Does Ruby have any modules useful in graphing equations like y=x**2+5,

[#169857] Kalah (#58) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

26 messages 2005/12/09
[#170216] [SOLUTION] Kalah (#58) — Rob Leslie <rob@...> 2005/12/12

Here's my solution. I'm still playing with it, but I'm posting it now

[#169913] new to Ruby - pls help in translating this — Sam Dela Cruz <sam.dela.cruz@...>

Hi,

45 messages 2005/12/09
[#169922] Re: new to Ruby - pls help in translating this — pat eyler <pat.eyler@...> 2005/12/09

On 12/9/05, Sam Dela Cruz <sam.dela.cruz@philips.com> wrote:

[#169927] Re: new to Ruby - pls help in translating this — Eric Hodel <drbrain@...7.net> 2005/12/09

On Dec 9, 2005, at 11:23 AM, pat eyler wrote:

[#170175] Calculating single-digit summands — "draq" <boyang.xia@...>

I have tried to make an algorithm that finds all possible combinations

12 messages 2005/12/11

[#170196] [SOLUTION] Kalah (#58) — David Balmain <dbalmain.ml@...>

Hey guys,

12 messages 2005/12/12

[#170244] A question about recursive programming — Hank Gong <hankgong@...>

I want to calculate all sum possibility of interger array. I know there are

24 messages 2005/12/12

[#170348] Idiom wanted: do-while — Adam Shelly <adam.shelly@...>

So I was working on the quiz solution, and

23 messages 2005/12/12
[#170349] Re: Idiom wanted: do-while — James Edward Gray II <james@...> 2005/12/12

On Dec 12, 2005, at 4:34 PM, Adam Shelly wrote:

[#170371] Using Float For Currency — "Hunter's Lists" <lists@...>

Howdy,

20 messages 2005/12/13
[#170373] Re: Using Float For Currency — mental@... 2005/12/13

Quoting Hunter's Lists <lists@lastonepicked.com>:

[#170400] Accessing C structures in Ruby — Joe Van Dyk <joevandyk@...>

(I've already looked at Swig, btw. I'd like to do this one by hand.)

11 messages 2005/12/13

[#170478] Iconv weirdness on Windows XP — Wilson Bilkovich <wilsonb@...>

Is anyone else having this problem?

14 messages 2005/12/13

[#170564] Java is so 90s - thought you'd all like this — Stephen Kellett <snail@...>

Doesn't mention Ruby directly but does talk about whats hip (LAMP which

18 messages 2005/12/13

[#170571] Puby 1.0 Release! — "Hampton" <hcatlin@...>

21 messages 2005/12/14

[#170594] Ruby as a MUD language — malcolm.ryan@...

I'm thinking about building a new MUD server (for those who are less

13 messages 2005/12/14

[#170634] English Ruby Home as a second class citizen — <slonik.az@...>

Hi Everyone,

18 messages 2005/12/14
[#170654] Re: English Ruby Home as a second class citizen — James Britt <james_b@...> 2005/12/14

slonik.az@gmail.com wrote:

[#170657] Re: English Ruby Home as a second class citizen — "cap" <capitain@...> 2005/12/14

I use

[#170661] Re: English Ruby Home as a second class citizen — James Britt <james_b@...> 2005/12/14

cap wrote:

[#170672] Re: English Ruby Home as a second class citizen — Jacob Fugal <lukfugl@...> 2005/12/14

On 12/14/05, James Britt <james_b@neurogami.com> wrote:

[#170676] ruby beats them all — "Peter Ertl" <pertl@...>

that why I love ruby (and functional languages in general)

15 messages 2005/12/14

[#170706] regular expressions question — "ako..." <akonsu@...>

hello,

58 messages 2005/12/14
[#170748] Re: regular expressions question — "Ross Bamford" <rosco@...> 2005/12/14

On Wed, 14 Dec 2005 21:59:27 -0000, ako... <akonsu@gmail.com> wrote:

[#170751] Re: regular expressions question — Jeff Wood <jeff.darklight@...> 2005/12/15

You should be able to tell who this message is meant for:

[#170789] Re: regular expressions question — James Edward Gray II <james@...> 2005/12/15

On Dec 14, 2005, at 6:16 PM, Jeff Wood wrote:

[#170803] Re: regular expressions question — Jeff Wood <jeff.darklight@...> 2005/12/15

James Edward Gray II wrote:

[#170953] Re: regular expressions question — Neil Stevens <neil@...> 2005/12/15

Jeff Wood wrote:

[#170958] Re: regular expressions question — James Edward Gray II <james@...> 2005/12/15

On Dec 15, 2005, at 2:12 PM, Neil Stevens wrote:

[#170974] Re: regular expressions question — Neil Stevens <neil@...> 2005/12/15

James Edward Gray II wrote:

[#170978] Re: regular expressions question — James Edward Gray II <james@...> 2005/12/15

On Dec 15, 2005, at 3:07 PM, Neil Stevens wrote:

[#170981] Re: regular expressions question — Neil Stevens <neil@...> 2005/12/15

James Edward Gray II wrote:

[#170993] Re: regular expressions question — Ezra Zygmuntowicz <ezra@...> 2005/12/15

[#171034] Re: regular expressions question — "jeff.darklight@..." <jeff.darklight@...> 2005/12/16

I know I said I'd shut up, and I am, but I did feel that after some of

[#170708] can someone improve on this multiple inheritence methodology? — "Ara.T.Howard" <ara.t.howard@...>

11 messages 2005/12/14

[#170735] Forthcoming 2nd ed. of _The Ruby Way_ — rubyhacker@...

Hello, all.

33 messages 2005/12/14

[#171075] Ruby tail recursion — Mark Ericson <mark.ericson@...>

In another thread someone mentioned tail recursion doesn't work right

19 messages 2005/12/16

[#171099] How come I get two e-mails? — Francis Vidal <francisv.list@...>

Hi,

11 messages 2005/12/16

[#171112] nonblocking TCPSocket in multithread software. — Arto Pastinen <arto.pastinen@...>

Hi!

12 messages 2005/12/16

[#171134] RRobots (#59) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

13 messages 2005/12/16

[#171159] End matching — Steve Litt <slitt@...>

Hi all,

14 messages 2005/12/16

[#171246] New to coding, lost as hell — Stephen None <mikari@...>

I've been looking into coding for a while now and would really like to

16 messages 2005/12/17

[#171288] Ruby and Debian — Hal Fulton <hal9000@...>

I don't wish to open a can of worms here. I'm not even a Debian

24 messages 2005/12/17

[#171289] Recruitment translators for new Ruby-GetText-Package — Masao Mutoh <mutoh@...>

Hi all,

16 messages 2005/12/17

[#171410] Any TextMate Editor equivelent for Windows ? — "Jules" <Roseanna80@...>

Hello

43 messages 2005/12/18
[#171415] Re: Any TextMate Editor equivelent for Windows ? — James Britt <james_b@...> 2005/12/18

Jules wrote:

[#171520] Re: Any TextMate Editor equivelent for Windows ? — "Jules" <Roseanna80@...> 2005/12/19

Hello

[#171527] Re: Any TextMate Editor equivelent for Windows ? — James Edward Gray II <james@...> 2005/12/19

On Dec 19, 2005, at 10:32 AM, Jules wrote:

[#171529] Re: Any TextMate Editor equivelent for Windows ? — "Gary Allum" <shadarach@...> 2005/12/19

On Mon, 19 Dec 2005 09:10:04 -0800, James Edward Gray II

[#171564] Re: Any TextMate Editor equivelent for Windows ? — Chad Perrin <perrin@...> 2005/12/19

On Tue, Dec 20, 2005 at 02:21:59AM +0900, Gary Allum wrote:

[#171743] Unix is not an *I*DE (Was: Any TextMate Editor equivelent for Windows ?) — "Josef 'Jupp' SCHUGT" <jupp@...> 2005/12/20

Hi!

[#171419] Newbie: require 'filename' - undefined local variable or method... — "Grehom" <grehom@...>

I have one line of code in a file called 'stuff.rb':

14 messages 2005/12/18

[#171653] iterate chars in a string — shinya <piccionevolante@...>

Hi there!

25 messages 2005/12/20

[#171671] Nitro Screencasts — George Moschovitis <george.moschovitis@...>

Dear devs,

18 messages 2005/12/20

[#171708] Bruce Eckel wouldn't know why to switch from Python to Ruby — "cyberco" <cyberco@...>

Bruce Eckel (author of amongst other popular books 'Thinking in Java')

34 messages 2005/12/20
[#171744] Re: Bruce Eckel wouldn't know why to switch from Python to Ruby — "rcoder" <rcoder@...> 2005/12/20

Eckel's article is getting pretty long in the tooth at this point -- I

[#171793] Re: Bruce Eckel wouldn't know why to switch from Python to Ruby — gabriele renzi <surrender_it@...> 2005/12/20

rcoder ha scritto:

[#171802] Re: Bruce Eckel wouldn't know why to switch from Python to Ruby — "Doug H" <doug00@...> 2005/12/20

[#172100] Re: Bruce Eckel wouldn't know why to switch from Python to Ruby — tony summerfelt <snowzone5@...> 2005/12/22

Doug H wrote on 12/20/2005 6:42 PM:

[#172150] Re: Bruce Eckel wouldn't know why to switch from Python to Ruby — gabriele renzi <surrender_it@...> 2005/12/22

tony summerfelt ha scritto:

[#172159] Re: Bruce Eckel wouldn't know why to switch from Python to Ruby — Chad Perrin <perrin@...> 2005/12/22

On Fri, Dec 23, 2005 at 03:42:50AM +0900, gabriele renzi wrote:

[#172227] Re: Bruce Eckel wouldn't know why to switch from Python to Ruby — gabriele renzi <surrender_it@...> 2005/12/23

Chad Perrin ha scritto:

[#172229] Re: Bruce Eckel wouldn't know why to switch from Python to Ruby — Chad Perrin <perrin@...> 2005/12/23

On Fri, Dec 23, 2005 at 12:17:50PM +0900, gabriele renzi wrote:

[#171758] Bruce Eckel and Ruby — Hal Fulton <hal9000@...>

<sigh>

64 messages 2005/12/20
[#171760] Re: Bruce Eckel and Ruby — Ryan Leavengood <leavengood@...> 2005/12/20

On 12/20/05, Hal Fulton <hal9000@hypermetrics.com> wrote:

[#171830] The "ruby way" to break apart a name? — Jeff Cohen <cohen.jeff@...>

Switching from C# to Ruby, and learning to write "the Ruby way"... is

26 messages 2005/12/21
[#172006] Re: The "ruby way" to break apart a name? — mathew <meta@...> 2005/12/21

Jeff Cohen wrote:

[#173538] Re: The "ruby way" to break apart a name? — Gerardo Santana Gez Garrido <gerardo.santana@...> 2006/01/02

We had a similar problem at work.

[#171851] Merging two Word documents with Ruby? — Denver Mike <denvermike@...>

I've got a bugger of a problem and I thought I'd toss it out there to

15 messages 2005/12/21

[#171908] ruby videos — olczyk <doctlo-usenet@...>

Aside from the Rails demo, are there any ruby videos online?

16 messages 2005/12/21

[#171926] Looking for better Ruby/Tk references... — Chris Dagnon <chris.dagnon@...>

... or better GUI APIs for Ruby.

12 messages 2005/12/21

[#171943] Why not Python? (No, no, I am not a spy) — "Tolga" <tolgacavdar@...>

First of all and very first of all, I must state that I am not an enemy

44 messages 2005/12/21
[#172131] Re: Why not Python? (No, no, I am not a spy) — "Gene Tani" <gene.tani@...> 2005/12/22

[#172144] Re: Why not Python? (No, no, I am not a spy) — Steve Litt <slitt@...> 2005/12/22

On Thursday 22 December 2005 11:07 am, Gene Tani wrote:

[#172146] Re: Why not Python? (No, no, I am not a spy) — Jeff Wood <jeff.darklight@...> 2005/12/22

Actually, the one comparison that gets touched on a bit too lightly ... is

[#171976] move to front of array — Payton Swick <payton@...>

Hi,

19 messages 2005/12/21

[#172010] String > Integer Conversion Problem — Matthew Feadler <matthew@...>

Retro thanks to all who helped me with my last post. I'm certainly more

34 messages 2005/12/21
[#172116] Re: String > Integer Conversion Problem — "Ross Bamford" <rosco@...> 2005/12/22

On Thu, 22 Dec 2005 14:07:03 -0000, jwesley <justin.w.smith@gmail.com>

[#172024] unit tests == ugly code? — Joe Van Dyk <joevandyk@...>

I've found that when I write the tests first, and then write the code,

14 messages 2005/12/21

[#172089] Strange StringScanner behaviour — Neowulf <neowulf@...>

Hi all,

16 messages 2005/12/22

[#172151] Ruby version of UMENU — Steve Litt <slitt@...>

Hi all,

13 messages 2005/12/22
[#172156] Re: Ruby version of UMENU — Gregory Brown <gregory.t.brown@...> 2005/12/22

On 12/22/05, Steve Litt <slitt@earthlink.net> wrote:

[#172163] Diff of opinion on dynamic stuff — "Drew Mills" <drewmills@...>

Let me preface this post by saying that I'm no Ruby expert. I like it.

38 messages 2005/12/22
[#172172] Re: Diff of opinion on dynamic stuff — Yukihiro Matsumoto <matz@...> 2005/12/22

Hi,

[#172176] Re: Diff of opinion on dynamic stuff — Bob Hutchison <hutch@...> 2005/12/22

[#172179] Re: Diff of opinion on dynamic stuff — Patrick Hurley <phurley@...> 2005/12/22

On 12/22/05, Bob Hutchison <hutch@recursive.ca> wrote:>> On Dec 22, 2005, at 4:27 PM, Drew Mills wrote:>> > Let me preface this post by saying that I'm no Ruby expert. I like> > it.> > It's fun. But I won't claim extensive knowledge on it.> >> > So when this guy blogs about a Python quality that he feel is better> > than a Ruby quality:> >> > It's the second generation that's going to be less enthused,> > that's going to stare in bafflement at these classes that> > mysteriously spawn methods, and trying to figure out what's> > going when there's an exception in dynamically generated> > code. You can monkeypatch code in Python pretty easily, but we> > look down on it enough that we call it "monkeypatching". In> > Ruby they call it "opening a class" and think it's a cool> > feature. I will assert: we are right, they are wrong.> >> > -- http://blog.ianbicking.org/theres-so-much-more-than-rails.html> >> > I am curious what this means. Is Python against dynamic stuff? And> > Ruby for it? And so we just agree to disagree? Or do I> > misunderstand?>> Well, Python is plenty dynamic. I think he is complaining about> Ruby's ability to re-open a class. This can make it difficult to find> the complete definition of a class (imagine doing this in a> completely random way in multiple files). So while it can be abused,> it can also be an incredible simplification of the code you write.> One thing it does is flattens inheritance hierarchies, you don't> need to introduce specialising classes just to add a few methods.> Using xampl as an illustration: the Ruby version of xampl generates 1> class for every 3 generated by the Java version of xampl, one of> those classes is eliminated because I can re-open classes (the other> is eliminated due to duck typing). Another thing reopening classes> does is, obviously, to allow you to extend the built in Ruby classes> (they are just classes after all). I suppose Ian would think things> even worse because in Ruby you can do this to objects as well as> classes.>> This 'monkeypatching' is very similar to concepts in Smalltalk and> CLOS (Common Lisp's object system). Nobody in those communities> complains too much (though Smalltalk's browser reassembles classes> for you, and new CLOS programmers are sometimes at a bit of a loss> because in CLOS methods may belong to two or more classes and it> doesn't seem that the obvious thing to do is the right thing). Ruby> just makes thing a lot easier.>> Just be careful where you aim that thing.>> Cheers,> Bob>> >> > Just curious.> >> > Drew> >> >>> ----> Bob Hutchison -- blogs at <http://www.recursive.ca/hutch/>> Recursive Design Inc. -- <http://www.recursive.ca/>> Raconteur -- <http://www.raconteur.info/>>>>>

[#172320] multithreaded file access — Matias Surdi <matiassurdi@...>

Hi...

15 messages 2005/12/23
[#172329] Re: multithreaded file access — "Jellen" <jellenchan@...> 2005/12/23

Well, I think it's OK to do that.

[#172334] Re: multithreaded file access — "J. Ryan Sobol" <ryansobol@...> 2005/12/23

On Dec 23, 2005, at 12:12 PM, Jellen wrote:

[#172371] Re: multithreaded file access — Ilmari Heikkinen <ilmari.heikkinen@...> 2005/12/23

On 12/23/05, J. Ryan Sobol <ryansobol@gmail.com> wrote:> Correct me if I'm wrong, but your examples only prove that the thread> on the CPU will be able to append the file. I *think* Matias wants> to know if the statement ( File.new('filename','a').puts("this is the> string") ) is atomic. Or in other words, do you need to enforce> mutual exclusive access to the file with a mutex? Unfortunately, I> don't have an answer to that question.

[#172428] Merry Christmas! — Christian Neukirchen <chneukirchen@...>

14 messages 2005/12/24

[#172435] ruby 1.8.4 released — Yukihiro Matsumoto <matz@...>

Merry Christmas!

14 messages 2005/12/24

[#172462] Ruby 1.8.4 Mac OS X readline problems — Daniel Harple <dharple@...>

Is anyone else having this problem?

11 messages 2005/12/24
[#172492] Re: Ruby 1.8.4 Mac OS X readline problems — "J. Ryan Sobol" <ryansobol@...> 2005/12/25

[#172515] Re: Ruby 1.8.4 Mac OS X readline problems — Jim Menard <jim.menard@...> 2005/12/25

On 12/24/05, J. Ryan Sobol <ryansobol@gmail.com> wrote:

[#172553] Re: Ruby 1.8.4 Mac OS X readline problems — Michal Suchanek <hramrach@...> 2005/12/26

On 12/25/05, Jim Menard <jim.menard@gmail.com> wrote:> On 12/24/05, J. Ryan Sobol <ryansobol@gmail.com> wrote:> >> > On Dec 24, 2005, at 12:58 PM, Daniel Harple wrote:> >> > > Is anyone else having this problem?>> Yes, I am. I don't want to install Fink or Darwin ports. I got> readline working with 1.8.2, and am now struggling to get it to work> with 1.8.4. readline.bundle is in ruby/1.8/powerpc-darwin8.3.0.>> I used "./configure --with-readline --enable-shared" to configure> Ruby, then make, then make install. When I tried running "rake test"> on a random Rails 1.0 project, the unit tests fail with>> /usr/local/bin/ruby -Ilib:test> "/usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake_test_loader.rb"> "test/unit/bookmark_test.rb" "test/unit/group_test.rb"> "test/unit/inbox_test.rb" "test/unit/user_test.rb"> dyld: NSLinkModule() error> dyld: Symbol not found: _rl_filename_completion_function> Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.3.0/readline.bundle> Expected in: flat namespace>> rake aborted!> Command failed with status (): [/usr/local/bin/ruby -Ilib:test "/usr/local...]>Hello

[#172494] why there's no ruby 1.8.4 for win-one-click-installer? — "Arie Kusuma Atmaja" <ariekusumaatmaja@...>

http://rubyforge.org/frs/?group_id=167

12 messages 2005/12/25

[#172611] Found a neat trick for doing recursive one-liners — Gary Watson <pfharlock@...>

This is probably something everyone in here already knows about, but I

23 messages 2005/12/27

[#172638] (Real) Primitive Ruby Generics support — Isaac Devine <isaac.devine@...>

Hi all,

20 messages 2005/12/27
[#172772] Re: [ANN] (Real) Primitive Ruby Generics support — Florian Gro<florgro@...> 2005/12/28

Isaac Devine wrote:

[#172649] Re: The Expert Ruby Programmer — "Robert Klemme" <bob.news@...>

basi <basi_lio@hotmail.com> wrote:

22 messages 2005/12/27

[#172653] Blunyx game library for Ruby — Alexander Jakopin <setrodox@...>

I'm very new at Ruby, and I like it very much. :)

12 messages 2005/12/27

[#172721] Command-line option parsing — "Eric J. Roode" <sdn.girths00869@...>

Greetings,

18 messages 2005/12/27

[#172779] Ruby Curriculum for coworkers — ssmoot@...

I've been tasked with coming up with a curriculum for Rails coworkers.

14 messages 2005/12/28

[#172818] What is the difference between :foo and "foo" ? — "Surgeon" <biyokuantum@...>

Hi,

152 messages 2005/12/28
[#172819] Re: What is the difference between :foo and "foo" ? — Alex Knaub <aknaub@...> 2005/12/28

2005/12/28, Surgeon <biyokuantum@gmail.com>:

[#172822] Re: What is the difference between :foo and "foo" ? — Steve Litt <slitt@...> 2005/12/28

On Wednesday 28 December 2005 02:32 pm, Alex Knaub wrote:

[#172841] Re: What is the difference between :foo and "foo" ? — Johannes Friestad <johannes.friestad@...> 2005/12/28

attr_reader :fname, :lname (attr_reader "fname", "lname" works too)

[#172848] Re: What is the difference between :foo and "foo" ? — ara.t.howard@... 2005/12/28

On Thu, 29 Dec 2005, Johannes Friestad wrote:

[#172916] Re: What is the difference between :foo and "foo" ? — Johannes Friestad <johannes.friestad@...> 2005/12/29

On 12/28/05, ara.t.howard@noaa.gov <ara.t.howard@noaa.gov> wrote:

[#172921] Re: What is the difference between :foo and "foo" ? — Johannes Friestad <johannes.friestad@...> 2005/12/29

BTW: Ruby version 1.8.2, Win XP Pro, Pentium M 2.0 GHz

[#172924] Re: What is the difference between :foo and "foo" ? — ara.t.howard@... 2005/12/29

On Thu, 29 Dec 2005, Johannes Friestad wrote:

[#172939] Re: What is the difference between :foo and "foo" ? — Jim Weirich <jim@...> 2005/12/29

ara wrote:

[#172954] Re: What is the difference between :foo and "foo" ? — "Surgeon" <biyokuantum@...> 2005/12/29

[#172976] Re: What is the difference between :foo and "foo" ? — Steve Litt <slitt@...> 2005/12/29

On Thursday 29 December 2005 03:03 am, Surgeon wrote:

[#172986] Re: What is the difference between :foo and "foo" ? — dblack@... 2005/12/29

Hi --

[#172994] Re: What is the difference between :foo and "foo" ? — Steve Litt <slitt@...> 2005/12/29

On Thursday 29 December 2005 10:16 am, dblack@wobblini.net wrote:

[#172996] Re: What is the difference between :foo and "foo" ? — dblack@... 2005/12/29

Hi --

[#173000] Re: What is the difference between :foo and "foo" ? — Kirk Haines <khaines@...> 2005/12/29

On Thursday 29 December 2005 8:45 am, Steve Litt wrote:

[#173008] Re: What is the difference between :foo and "foo" ? — Steve Litt <slitt@...> 2005/12/29

On Thursday 29 December 2005 11:20 am, Kirk Haines wrote:

[#173020] Re: What is the difference between :foo and "foo" ? — Austin Ziegler <halostatue@...> 2005/12/29

On 29/12/05, Steve Litt <slitt@earthlink.net> wrote:

[#173069] Re: What is the difference between :foo and "foo" ? — Devin Mullins <twifkak@...> 2005/12/30

Austin Ziegler wrote:

[#173003] Re: What is the difference between :foo and "foo" ? — Austin Ziegler <halostatue@...> 2005/12/29

On 29/12/05, Steve Litt <slitt@earthlink.net> wrote:

[#173012] Re: What is the difference between :foo and "foo" ? — Steve Litt <slitt@...> 2005/12/29

On Thursday 29 December 2005 11:30 am, Austin Ziegler wrote:

[#173108] Re: What is the difference between :foo and "foo" ? — Christian Neukirchen <chneukirchen@...> 2005/12/30

Steve Litt <slitt@earthlink.net> writes:

[#173124] Re: What is the difference between :foo and "foo" ? — Steve Litt <slitt@...> 2005/12/30

On Friday 30 December 2005 08:06 am, Christian Neukirchen wrote:

[#173178] Re: What is the difference between :foo and "foo" ? — Steve Litt <slitt@...> 2005/12/30

On Friday 30 December 2005 10:35 am, Steve Litt wrote:

[#173180] Re: What is the difference between :foo and "foo" ? — Austin Ziegler <halostatue@...> 2005/12/30

On 30/12/05, Steve Litt <slitt@earthlink.net> wrote:

[#173211] Re: What is the difference between :foo and "foo" ? — Chad Perrin <perrin@...> 2005/12/30

On Sat, Dec 31, 2005 at 05:03:20AM +0900, Austin Ziegler wrote:

[#173223] Re: What is the difference between :foo and "foo" ? — Austin Ziegler <halostatue@...> 2005/12/31

On 30/12/05, Chad Perrin <perrin@apotheon.com> wrote:

[#173225] Re: What is the difference between :foo and "foo" ? — Chad Perrin <perrin@...> 2005/12/31

On Sat, Dec 31, 2005 at 09:37:00AM +0900, Austin Ziegler wrote:

[#173226] Re: What is the difference between :foo and "foo" ? — Austin Ziegler <halostatue@...> 2005/12/31

On 30/12/05, Chad Perrin <perrin@apotheon.com> wrote:

[#173238] Re: What is the difference between :foo and "foo" ? — Chad Perrin <perrin@...> 2005/12/31

On Sat, Dec 31, 2005 at 09:43:54AM +0900, Austin Ziegler wrote:

[#173242] Re: What is the difference between :foo and "foo" ? — Austin Ziegler <halostatue@...> 2005/12/31

On 30/12/05, Chad Perrin <perrin@apotheon.com> wrote:

[#173243] Re: What is the difference between :foo and "foo" ? — Chad Perrin <perrin@...> 2005/12/31

On Sat, Dec 31, 2005 at 11:50:27AM +0900, Austin Ziegler wrote:

[#173245] Re: What is the difference between :foo and "foo" ? — Austin Ziegler <halostatue@...> 2005/12/31

On 30/12/05, Chad Perrin <perrin@apotheon.com> wrote:

[#172832] Re: What is the difference between :foo and "foo" ? — Yohanes Santoso <ysantoso-rubytalk@...> 2005/12/28

Alex Knaub <aknaub@gmail.com> writes:

[#172854] Re: What is the difference between :foo and "foo" ? — James Britt <james_b@...> 2005/12/28

Yohanes Santoso wrote:

[#172909] Re: What is the difference between :foo and "foo" ? — Eero Saynatkari <ruby-forum-reg@...> 2005/12/29

Yohanes Santoso wrote:

[#172983] Re: What is the difference between :foo and "foo" ? — Yohanes Santoso <ysantoso-rubytalk@...> 2005/12/29

Eero Saynatkari <ruby-forum-reg@mailinator.com> writes:

[#173005] Re: What is the difference between :foo and "foo" ? — Chad Perrin <perrin@...> 2005/12/29

On Thu, Dec 29, 2005 at 11:37:59PM +0900, Yohanes Santoso wrote:

[#173025] Re: What is the difference between :foo and "foo" ? — Yohanes Santoso <ysantoso-rubytalk@...> 2005/12/29

Chad Perrin <perrin@apotheon.com> writes:

[#173056] Re: What is the difference between :foo and "foo" ? — Chad Perrin <perrin@...> 2005/12/30

On Fri, Dec 30, 2005 at 05:07:35AM +0900, Yohanes Santoso wrote:

[#172820] new project: Ruby Message System (RMS) — "Mark Watson" <mark.watson@...>

I have relied on guarenteed delivery asynchronous messaging to build

13 messages 2005/12/28

[#172861] Directory and file listing — adam beazley <abeazley@...>

Hello,

18 messages 2005/12/28
[#172871] Re: Directory and file listing — Detlef Reichl <detlef.reichl@...> 2005/12/28

Am Donnerstag, den 29.12.2005, 07:07 +0900 schrieb adam beazley:

[#172881] Re: Directory and file listing — adam beazley <abeazley@...> 2005/12/28

[#172887] Re: Directory and file listing — Johannes Friestad <johannes.friestad@...> 2005/12/28

> thanks for your reply, I believe i understand, however I dont know how

[#172888] Re: Directory and file listing — Johannes Friestad <johannes.friestad@...> 2005/12/28

> > But on the string answer of your question:

[#172885] Real-time image processing in Ruby — John Koschwanez <ishkaprog@...>

I'm a Ruby newbie - "Programming Ruby" was great Xmas break reading!

10 messages 2005/12/28

[#173032] Path Separator and Windows — Justin Johnson <justinjohnson@...>

Using ruby 1.8.2 on Windows XP, the path separator used for things like

21 messages 2005/12/29
[#173035] Re: Path Separator and Windows — Bob Showalter <bob_showalter@...> 2005/12/29

Justin Johnson wrote:

[#173039] Re: Path Separator and Windows — Justin Johnson <justinjohnson@...> 2005/12/29

Bob Showalter wrote:

[#173063] Using Ruby to Invest in the Market? — Michael Gorsuch <michael.gorsuch@...>

An idea popped in my head today. Has anyone ever used a stock

14 messages 2005/12/30

[#173083] Fixnums can have instance variables? Cool. — gwtmp01@...

This really surprises me:

15 messages 2005/12/30

[#173110] Numeric Maze (#60) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

126 messages 2005/12/30
[#173201] Re: [QUIZ] Numeric Maze (#60) — "J. Ryan Sobol" <ryansobol@...> 2005/12/30

On Dec 30, 2005, at 8:37 AM, Ruby Quiz wrote:

[#173204] Re: [QUIZ] Numeric Maze (#60) — James Edward Gray II <james@...> 2005/12/30

On Dec 30, 2005, at 4:17 PM, J. Ryan Sobol wrote:

[#173356] Re: [QUIZ] Numeric Maze (#60) — Stephen Waits <steve@...> 2005/12/31

[#173413] Re: [QUIZ] Numeric Maze (#60) — Peter Burns <rictic@...> 2006/01/01

On 12/31/05, Stephen Waits <steve@waits.net> wrote:

[#173416] Re: [QUIZ] Numeric Maze (#60) — Stephen Waits <steve@...> 2006/01/01

[#173429] Re: [QUIZ] Numeric Maze (#60) — Wilson Bilkovich <wilsonb@...> 2006/01/01

On 12/31/05, Stephen Waits <steve@waits.net> wrote:

[#173438] Re: [QUIZ] Numeric Maze (#60) — "Dominik Bathon" <dbatml@...> 2006/01/01

On Sun, 01 Jan 2006 04:59:32 +0100, Wilson Bilkovich <wilsonb@gmail.com>

[#173443] Re: [QUIZ] Numeric Maze (#60) — Ilmari Heikkinen <ilmari.heikkinen@...> 2006/01/01

On 1/1/06, Dominik Bathon <dbatml@gmx.de> wrote:>> $ time ruby num_maze.rb 22222 99999> [22222, 22224, 11112, 5556, 2778, 2780, 1390, 1392, 696, 348, 174, 87, 89,> 91, 93, 95, 97, 194, 388, 390, 780, 1560, 1562, 3124, 6248, 12496, 12498,> 24996, 24998, 49996, 49998, 99996, 199992, 199994, 99997, 99999]>> real 0m1.768s> user 0m1.725s> sys 0m0.022s>> ;-)

[#173463] Numeric Maze (#60) — James Edward Gray II <james@...> 2006/01/01

On Dec 30, 2005, at 7:37 AM, Ruby Quiz wrote:

[#173468] Re: [SOLUTION] Numeric Maze (#60) — Matthew Smillie <M.B.Smillie@...> 2006/01/01

On Jan 1, 2006, at 15:47, James Edward Gray II wrote:

[#173470] Re: [SOLUTION] Numeric Maze (#60) — Stephen Waits <steve@...> 2006/01/01

[#173478] Re: [SOLUTION] Numeric Maze (#60) — Maurice Codik <maurice.codik@...> 2006/01/01

I guess we're allowed to submit solutions now... here's my first ever ruby

[#173477] Numeric Maze (#60) — Ilmari Heikkinen <ilmari.heikkinen@...> 2006/01/01

On 12/30/05, Ruby Quiz <james@grayproductions.net> wrote:> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=>> by Christer Nilsson>> You have a starting point and a target, say 2 and 9.>> You have a set of three operations:>> double> halve (Odd numbers cannot be halved.)> add_two>> Problem: Move from the starting point to the target, minimizing the number of> operations.>> Examples:>> solve(2,9) # => [2,4,8,16,18,9]> solve(9,2) # => [9,18,20,10,12,6,8,4,2]>>

[#173111] On Symbols — Devin Mullins <twifkak@...>

Hey, all you lurkers:

34 messages 2005/12/30

[#173116] Fwd: [SOLUTION] Sudoku — James Edward Gray II <james@...>

Begin forwarded message:

12 messages 2005/12/30

[#173125] Method for turning strings into code — Steve Litt <slitt@...>

Hi all,

12 messages 2005/12/30

[#173149] About Steve Yegge's 'Opinions considered harmful' post — Gregory Brown <gregory.t.brown@...>

Excuse me, but where in this post does anything about Ruby arise?

11 messages 2005/12/30

[#173179] Another Newb asks questions. — Joseph Divelbiss <joseph@...>

Ok, recently started "trying" to learn this wonderful language, but am

13 messages 2005/12/30

[#173279] A few questions of function and style from a newbie — "Sven Johansson" <sven_u_johansson@...>

Hi, good people of clr,

12 messages 2005/12/31

[ANN] ruby queue : rq-2.3.1

From: "Ara.T.Howard" <ara.t.howard@...>
Date: 2005-12-11 23:14:53 UTC
List: ruby-talk #170177
URIS:

   http://codeforpeople.com/lib/ruby/rq/
   http://www.linuxjournal.com/article/7922
   http://raa.ruby-lang.org/project/rq/

HISTORY:

   ---
   2.3.1:
     - added 'stage' option to submit mode, which allows submission in a 'holding'
       state.  thanks to Juan.Fernandez@eu.Takata.com for this fix!

README:

   NAME
     rq v2.3.1

   SYNOPSIS
     rq (queue | export RQ_Q=q) mode [mode_args]* [options]*


   DESCRIPTION
     ruby queue (rq) is a tool used to create instant linux clusters by managing
     sqlite databases as nfs mounted priority work queues.  multiple instances of
     rq running from multiples hosts can work from these queues to distribute
     processing load to n nodes - bringing many dozens of otherwise powerful cpus
     to their knees with a single blow.  clearly this software should be kept out
     of the hands of free radicals, seti enthusiasts, and mr. jeff safran.

     the central concept of rq is that n nodes work in isolation to pull jobs from
     an central nfs mounted priority work queue in a synchronized fashion.  the
     nodes have absolutely no knowledge of each other and all communication if done
     via the queue meaning that, so long as the queue is available via nfs and a
     single node is running jobs from it, the system will continue to process jobs.
     there is no centralized process whatsoever - all nodes work to take jobs from
     the queue and run them as fast as possible.  this creates a system which load
     balances automatically and is robust in face of node failures.

     the first argument to any rq command is the name of the queue.  this name may
     be omitted if, and only if, the environment variable RQ_Q has been set to
     contain the absolute path of target queue.

     rq operates in one of the modes create, submit, resubmit, list, status,
     delete, update, query, execute, configure, snapshot, lock, backup, rotate,
     feed, or help.  depending on the mode of operation and the options used the
     meaning of 'mode_args' may change.

   MODES

     the following mode abbreviations exist

       c  => create
       s  => submit
       r  => resubmit
       l  => list
       ls => list
       t  => status
       d  => delete
       rm => delete
       u  => update
       q  => query
       e  => execute
       C  => configure
       S  => snapshot
       L  => lock
       b  => backup
       R  => rotate
       f  => feed
       h  => help

     not all modes have abbreviations

     create, c :

       create a queue.  the queue must be located on an nfs mounted file system
       visible from all nodes intended to run jobs from it.  nfs locking must be
       functional on this file system.

       examples :

         0) to create a queue
             ~ > rq /path/to/nfs/mounted/q create
           or simply
             ~ > rq /path/to/nfs/mounted/q c


     submit, s :

       submit jobs to a queue to be proccesed by a feeding node.  any 'mode_args'
       are taken as the command to run.  note that 'mode_args' are subject to shell
       expansion - if you don't understand what this means do not use this feature
       and pass jobs on stdin.

       when running in submit mode a file may by specified as a list of commands to
       run using the '--infile, -i' option.  this file is taken to be a newline
       separated list of commands to submit, blank lines and comments (#) are
       allowed.  if submitting a large number of jobs the input file method is
       MUCH, more efficient.  if no commands are specified on the command line rq
       automatically reads them from STDIN.  yaml formatted files are also allowed
       as input (http://www.yaml.org/) - note that the output of nearly all rq
       commands is valid yaml and may, therefore, be piped as input into the submit
       command.  the leading '---' of yaml file may not be omitted.

       when submitting the '--priority, -p' option can be used here to determine
       the priority of jobs.  priorities may be any whole number - zero is the
       default.  note that submission of a high priority job will NOT supplant
       currently running low priority jobs, but higher priority jobs WILL always
       migrate above lower priority jobs in the queue in order that they be run as
       soon as possible.  constant submission of high priority jobs may create a
       starvation situation whereby low priority jobs are never allowed to run.
       avoiding this situation is the responsibility of the user.  the only
       guaruntee rq makes regarding job execution is that jobs are executed in an
       'oldest highest priority' order and that running jobs are never supplanted.
       jobs submitted with the '--stage' option will not be run by any node and
       will remain in a 'holding' state until updated (see update mode) into the
       'pending' mode, this option allows jobs to entered, or staged, in the queue
       and made candidates for running at a later date.

       examples :

         0) submit the job ls to run on some feeding host

           ~ > rq q s ls

         1) submit the job ls to run on some feeding host, at priority 9

           ~ > rq -p9 q s ls

         2) submit 42000 jobs (quietly) from a command file, marking them as
            restartable should the node they are running on reboot.

           ~ > wc -l cmdfile
           42000
           ~ > rq q s --quiet --restartable < cmdfile

         3) submit 42 priority 9 jobs from a command file.

           ~ > wc -l cmdfile
           42
           ~ > rq -p9 q s < cmdfile

         4) submit 42 priority 9 jobs from a command file, marking them as
            'important' using the '--tag, -t' option.

           ~ > wc -l cmdfile
           42
           ~ > rq -p9 -timportant q s < cmdfile

         5) re-submit all the 'important' jobs (see 'query' section below)

           ~ > rq q query tag=important | rq q s

         6) re-submit all jobs which are already finished (see 'list' section
            below)

           ~ > rq q l f | rq q s


         7) stage the job wont_run_yet to the queue in a 'holding' state.  no
            feeder will run this job until it's state is upgraded to 'pending'

           ~ > rq q s --stage wont_run_yet


     resubmit, r :

       resubmit jobs back to a queue to be proccesed by a feeding node.  resubmit
       is essentially equivalent to submitting a job that is already in the queue
       as a new job and then deleting the original job except that using resubmit
       is atomic and, therefore, safer and more efficient.  read docs for delete
       and submit for more info.

       examples :

         0) resubmit job 42 to the queue.  afterwards


     list, l, ls :

       list mode lists jobs of a certain state or job id.  state may be one of
       pending, holding, running, finished, dead, or all.  any 'mode_args' that are
       numbers are taken to be job id's to list.

       states may be abbreviated to uniqueness, therefore the following shortcuts
       apply :

         p => pending
         h => holding
         r => running
         f => finished
         d => dead
         a => all

       examples :

         0) show everything in q
             ~ > rq q list all
           or
             ~ > rq q l all
           or
             ~ > export RQ_Q=q
             ~ > rq l

         1) show q's pending jobs
             ~ > rq q list pending

         2) show q's running jobs
             ~ > rq q list running

         3) show q's finished jobs
             ~ > rq q list finished

         4) show job id 42
             ~ > rq q l 42

         5) show q's holding jobs
             ~ > rq q list holding


     status, t :

       status mode shows the global state the queue.  there are no 'mode_args'.
       the meaning of each state is as follows:

         pending  => no feeder has yet taken this job
         holding  => a hold has been placed on this job, thus no feeder will start
                     it
         running  => a feeder has taken this job
         finished => a feeder has finished this job
         dead     => rq died while running a job, has restarted, and moved
                     this job to the dead state

       note that rq cannot move jobs into the dead state unless it has been
       restarted.  this is because no node has any knowledge of other nodes and
       cannot possibly know if a job was started on a node that died, or is simply
       taking a very long time.  only the node that dies, upon restart, can
       determine that is has jobs that 'were started before it started' and move
       these jobs into the dead state.  normally only a machine crash would cause a
       job to be placed into the dead state.  dead jobs are never automatically
       restarted, this is the responsibility of an operator.

       examples :

         0) show q's status

           ~ > rq q t


     delete, d :

       delete combinations of pending, holding, finished, dead, or jobs specified
       by jid.  the delete mode is capable of parsing the output of list and query
       modes, making it possible to create custom filters to delete jobs meeting
       very specific conditions.

       'mode_args' are the same as for list.

       note that it is NOT possible to delete a running job.  rq has a
       decentralized architechture which means that compute nodes are completely
       independant of one another; an extension is that there is no way to
       communicate the deletion of a running job from the queue the the node
       actually running that job.  it is not an error to force a job to die
       prematurely using a facility such as an ssh command spawned on the remote
       host to kill it.  once a job has been noted to have finished, whatever the
       exit status, it can be deleted from the queue.

       examples :

         0) delete all pending, finished, and dead jobs from a queue

           ~ > rq q d all

         1) delete all pending jobs from a queue

           ~ > rq q d p

         2) delete all finished jobs from a queue

           ~ > rq q d f

         3) delete jobs via hand crafted filter program

           ~ > rq q list | yaml_filter_prog | rq q d

           an example ruby filter program (you have to love this)

           require 'yaml'
           joblist = YAML::load STDIN
           y joblist.select{|job| job['command'] =~ /bombing_program/}

           this program reads the list of jobs (yaml) from stdin and then dumps
           only those jobs whose command matches 'bombing_program', which is
           subsequently piped to the delete command.


     update, u :

       update assumes all leading arguments are jids to update with subsequent
       key=value pairs.  currently only the 'command', 'priority', and 'tag' fields
       of pending jobs can be generically updated and the 'state' field may be
       toggled between pending and holding.

       examples:

         0) update the priority of job 42

           ~ > rq q update 42 priority=7

         1) update the priority of all pending jobs

           ~ > rq q update pending priority=7

         2) query jobs with a command matching 'foobar' and update their command
            to be 'barfoo'

           ~ > rq q q "command like '%foobar%'" |\
               rq q u command=barfoo

         3) place a hold on jid 2

           ~ > rq q u 2 state=holding

         4) place a hold on all jobs with tag=disk_filler

           ~ > rq q q tag=disk_filler | rq q u state=holding

         5) remove the hold on jid 2

           ~ > rq q u 2 state=pending


     query, q :

       query exposes the database more directly the user, evaluating the where
       clause specified on the command line (or read from STDIN).  this feature can
       be used to make a fine grained slection of jobs for reporting or as input
       into the delete command.  you must have a basic understanding of SQL syntax
       to use this feature, but it is fairly intuitive in this limited capacity.

       examples:

         0) show all jobs submitted within a specific 10 minute range

           ~ > rq q query "started >= '2004-06-29 22:51:00' and started < '2004-06-29 22:51:10'"

         1) shell quoting can be tricky here so input on STDIN is also allowed to
            avoid shell expansion

           ~ > cat constraints.txt
           started >= '2004-06-29 22:51:00' and
           started < '2004-06-29 22:51:10'

           ~ > rq q query < contraints.txt
             or (same thing)

           ~ > cat contraints.txt| rq q query


         2) this query output might then be used to delete those jobs

           ~ > cat contraints.txt | rq q q | rq q d

         3) show all jobs which are either finished or dead

           ~ > rq q q "state='finished' or state='dead'"

         4) show all jobs which have non-zero exit status

           ~ > rq q query exit_status!=0

         5) if you plan to query groups of jobs with some common feature consider
            using the '--tag, -t' feature of the submit mode which allows a user to
            tag a job with a user defined string which can then be used to easily
            query that job group

           ~ > rq q submit --tag=my_jobs < joblist
           ~ > rq q query tag=my_jobs


         6) in general all but numbers will need to be surrounded by single quotes
            unless the query is a 'simple' one.  a simple query is a query with no
            boolean operators, not quotes, and where every part of it looks like

               key op value

            with ** NO SPACES ** between key, op, and value.  if, and only if, the
            query is 'simple' rq will contruct the where clause appropriately.  the
            operators accepted, and their meanings, are

              =  : equivalence : sql =
              =~ : matches     : sql like
              !~ : not matches : sql not like

            match, in the context is ** NOT ** a regular expression but a sql style
            string match.  about all you need to know about sql matches is that the
            '%' char matches anything.  multiple simple queries will be joined with
            boolean 'and'

            this sounds confusing - it isn't.  here are some examples of simple
            queries

            6.a)
              query :
                rq q query tag=important

              where_clause :
                "( tag = 'important' )"

            6.b)
              query :
                rq q q priority=6 restartable=true

              where_clause :
                "( priority = 6 ) and ( restartable = 'true' )"

            6.c)
              query :
                rq q q command=~%bombing_job% runner=~%node_1%

              where_clause :
                "( command like '%bombing_job%') and (runner like '%node_1%')"


     execute, e :

       execute mode is to be used by expert users with a knowledge of sql syntax
       only.  it follows the locking protocol used by rq and then allows the user
       to execute arbitrary sql on the queue.  unlike query mode a write lock on
       the queue is obtained allowing a user to definitively shoot themselves in
       the foot.  for details on a queue's schema the file 'db.schema' in the queue
       directory should be examined.

         examples :

           0) list all jobs

             ~ > rq q execute 'select * from jobs'


     configure, C :

       this mode is not supported yet.


     snapshot, p :

       snapshot provides a means of taking a snapshot of the q. use this feature
       when many queries are going to be run; for example when attempting to figure
       out a complex pipeline command your test queries will not compete with the
       feeders for the queue's lock.  you should use this option whenever possible
       to avoid lock competition.

       examples:

         0) take a snapshot using default snapshot naming, which is made via the
            basename of the q plus '.snapshot'

           ~ > rq /path/to/nfs/q snapshot

         1) use this snapshot to chceck status

           ~ > rq ./q.snapshot status

         2) use the snapshot to see what's running on which host

           ~ > rq ./q.snapshot list running | grep `hostname`

       note that there is also a snapshot option - this option is not the same as
       the snapshot command.  the option can be applied to ANY command. if in
       effect then that command will be run on a snapshot of the database and the
       snapshot then immediately deleted.  this is really only useful if one were
       to need to run a command against a very heavily loaded queue and did not
       wish to wait to obtain the lock.  eg.

         0) get the status of a heavily loaded queue

           ~ > rq q t --snapshot

         1) same as above

           ~ > rq q t -s

       ** IMPORTANT **

         a really great way to hang all processing in your queue is to do this

           rq q list | less

         and then leave for the night.  you hold a read lock you won't release
         until less dies.  this is what snapshot is made for!  use it like

           rq q list -s | less

         now you've taken a snapshot of the queue to list so your locks affect no
         one.


     lock, L :

       lock the queue and then execute an arbitrary shell command.  lock mode uses
       the queue's locking protocol to safely obtain a lock of the specified type
       and execute a command on the user's behalf.  lock type must be one of

         (r)ead | (sh)ared | (w)rite | (ex)clusive

       examples :

         0) get a read lock on the queue and make a backup

           ~ > rq q L read -- cp -r q q.bak

           (the '--' is needed to tell rq to stop parsing command line
            options which allows the '-r' to be passed to the 'cp' command)

       ** IMPORTANT **

         this is another fantastic way to freeze your queue - use with care!


     backup, b :

       backup mode is exactly the same as getting a read lock on the queue and
       making a copy of it.  this mode is provided as a convenience.

         0) make a backup of the queue using default naming ( qname + timestamp + .bak )

           ~ > rq q b

         1) make a backup of the queue as 'q.bak'

           ~ > rq q b q.bak


     rotate, r :

       rotate mode is conceptually similar to log rolling.  normally the list of
       finished jobs will grow without bound in a queue unless they are manually
       deleted.  rotation is a method of trimming finished jobs from a queue
       without deleting them.  the method used is that the queue is copied to a
       'rotation'; all jobs that are dead or finished are deleted from the original
       queue and all pending and running jobs are deleted from the rotation.  in
       this way the rotation becomes a record of the queue's finished and dead jobs
       at the time the rotation was made.

         0) rotate a queue using default rotation name

           ~ > rq q rotate

         1) rotate a queue naming the rotation

           ~ > rq q rotate q.rotation

         2) a crontab entry like this could be used to rotate a queue daily

           59 23 * * * rq q rotate `date +q.%Y%m%d`


     feed, f :

       take jobs from the queue and run them on behalf of the submitter as quickly
       as possible.  jobs are taken from the queue in an 'oldest highest priority'
       first order.

       feeders can be run from any number of nodes allowing you to harness the CPU
       power of many nodes simoultaneously in order to more effectively clobber
       your network, anoy your sysads, and set output raids on fire.

       the most useful method of feeding from a queue is to do so in daemon mode so
       that if the process loses it's controling terminal it will not exit when you
       exit your terminal session.  use the '--daemon, -d' option to accomplish
       this.  by default only one feeding process per host per queue is allowed to
       run at any given moment.  because of this it is acceptable to start a feeder
       at some regular interval from a cron entry since, if a feeder is alreay
       running, the process will simply exit and otherwise a new feeder will be
       started.  in this way you may keep feeder processing running even acroess
       machine reboots without requiring sysad intervention to add an entry to the
       machine's startup tasks.


       examples :

         0) feed from a queue verbosely for debugging purposes, using a minimum and
            maximum polling time of 2 and 4 respectively.  you would NEVER specify
            polling times this brief except for debugging purposes!!!

           ~ > rq q feed -v4 -m2 -M4

         1) same as above, but viewing the executed sql as it is sent to the
            database

           ~ > RQ_SQL_DEBUG=1 rq q f -v4 -m2 -M4

         2) feed from a queue in daemon mode - logging to /home/ahoward/rq.log

           ~ > rq q f -d -l/home/ahoward/rq.log

            log rolling in daemon mode is automatic so your logs should never need
            to be deleted to prevent disk overflow.

         3) use something like this sample crontab entry to keep a feeder running
            forever - it attempts to (re)start every fifteen minutes but exits if
            another process is already feeding.

           #
           # your crontab file - sample only
           #

           */15 * * * * /full/path/to/bin/rq /full/path/to/nfs/mounted/q f -d -l/home/username/cfq.log -q

           the '--quiet, -q' here tells rq to exit quietly (no STDERR)
           when another process is found to already be feeding so that no cron
           message would be sent under these conditions.


     start :

       the start mode is equivalent to running the feed mode except the --daemon is
       implied so the process instantly goes into the background.  also, if no log
       (--log) is specified in start mode a default one is used.  the default is

         ENV['HOME'] + '/' + File::basename(queue) + '.log'

       the crontab line above could just as well be

         */15 * * * * /full/path/to/bin/rq /full/path/to/nfs/mounted/q start -q

       with the resulting log ending up in ~/q.log

       examples :

         0) start a daemon process feeding from q

           ~ > rq q start


     shutdown :

       tell a running feeder to finish any pending jobs and then to exit.  this is
       equivalent to sending signal 'SIGTERM' to the process - this is what using
       'kill pid' does by default.

       examples :

         0) stop a feeding process, if any, that is feeding from q.  allow all jobs
            to be finished first.

           ~ > rq q shutdown

       ** VERY IMPORTANT **

         if you are keeping your feeder alive with a crontab entry you'll need to
         comment it out before doing this or else it will simply re-start!!!

     stop :

       tell any running feeder to stop NOW.  this sends signal 'SIGKILL' (-9) to
       the feeder process.  the same warning as for shutdown applies!!!

       examples :

         0) stop a feeding process, if any, that is feeding from q.  allow NO jobs
            to be finished first - exit instantly.

           ~ > rq q stop


     feeder :

       show the pid, if any, of the feeder

       ~ > rq q feeder

         feeder <15366>


     help, h :

       this message

       examples :

         0) get this message

           ~> rq q help
           or
           ~> rq help


   NOTES
     - realize that your job is going to be running on a remote host and this has
       implications.  paths, for example, should be absolute, not relative.
       specifically the submitted job script must be visible from all hosts
       currently feeding from a queue as must be the input and output
       files/directories.

     - jobs are currently run under the bash shell using the --login option.
       therefore any settings in your .bashrc will apply - specifically your PATH
       setting.  you should not, however, rely on jobs running with any given
       environment.

     - you need to consider __CAREFULLY__ what the ramifications of having multiple
       instances of your program all potentially running at the same time will be.
       for instance, it is beyond the scope of rq to ensure multiple instances of a
       given program will not overwrite each others output files.  coordination
       of programs is left entirely to the user.

     - the list of finished jobs will grow without bound unless you sometimes
       delete some (all) of them.  the reason for this is that rq cannot know when
       the user has collected the exit_status of a given job, and so keeps this
       information in the queue forever until instructed to delete it.  if you have
       collected the exit_status of you job(s) it is not an error to then delete
       that job from the finished list - the information is kept for your
       informational purposes only.  in a production system it would be normal to
       periodically save, and then delete, all finished jobs.

     - know that it is a VERY bad idea to spawn several dozen process all
       reading/writing huge output files to a single NFS server.  use this paradigm
       instead

         copy data locally from input space
         work on date
         move data to output space

       the vsftp daemon is an excellent utility to have running on hosts in your
       cluster so anonymous ftp can be used to get/put data.

     - know that nfs locking is very, very easy to break with firewalls put in
       place by over zealous system administrators.  be postive not only that nfs
       locking works, but that lock recovery server/client crash or reboot works as
       well.  http://nfs.sourceforge.net/ is the place to learn about NFS.  my
       experience thus far is that there are ZERO properly configured NFS
       installations in the world.  please test yours.  contact me for a simple
       script which can assist you.  donations of beer may be required.

   ENVIRONMENT
     RQ_Q: set to the full path of nfs mounted queue

       the queue argument to all commands may be omitted if, and only if, the
       environment variable 'RQ_Q' contains the full path to the q.  eg.

         ~ > export RQ_Q=/full/path/to/my/q

       this feature can save a considerable amount of typing for those weak of
       wrist.

   DIAGNOSTICS
    success : $? == 0
    failure : $? != 0

   CREDITS
     - kim baugh       : patient tester and design input
     - jeff safran     : the guy can break anything
     - chris elvidge   : made it possible
     - trond myklebust : tons of help with nfs
     - jamis buck      : for writing the sqlite bindings for ruby
     - _why            : for writing yaml for ruby
     - matz            : for writing ruby

   AUTHOR
     ara.t.howard@noaa.gov

   BUGS
    0 < bugno && bugno <= 42

    reports to ara.t.howard@noaa.gov

   OPTIONS
     --priority=priority, -p
           modes <submit> : set the job(s) priority - lowest(0) .. highest(n) -
           (default 0)
     --tag=tag, -t
           modes <submit> : set the job(s) user data tag
     --runner=runner
           modes <submit> : set the job(s) required runner(s)
     --restartable
           modes <submit> : set the job(s) to be restartable on node reboot
     --stage
           modes <submit> : set the job(s) initial state to be holding (default
           pending)
     --infile=infile
           modes <submit> : infile
     --quiet, -q
           modes <submit, feed> : do not echo submitted jobs, fail silently if
           another process is already feeding
     --daemon, -D
           modes <feed> : spawn a daemon
     --max_feed=max_feed
           modes <feed> : the maximum number of concurrent jobs run
     --retries=retries
           modes <feed> : specify transaction retries
     --min_sleep=min_sleep
           modes <feed> : specify min sleep
     --max_sleep=max_sleep
           modes <feed> : specify max sleep
     --snapshot, -s
           operate on snapshot of queue
     --verbosity=verbostiy, -v
           0|fatal < 1|error < 2|warn < 3|info < 4|debug - (default info)
     --log=path, -l
           set log file - (default stderr)
     --log_age=log_age
           daily | weekly | monthly - what age will cause log rolling (default
           nil)
     --log_size=log_size
           size in bytes - what size will cause log rolling (default nil)
     --help, -h
           this message
     --version
           show version number


enjoy.

-a
-- 
===============================================================================
| ara [dot] t [dot] howard [at] noaa [dot] gov
| all happiness comes from the desire for others to be happy.  all misery
| comes from the desire for oneself to be happy.
| -- bodhicaryavatara
===============================================================================


In This Thread

Prev Next