[#190862] Generate unique filenames — 13 <one.three@...>

Hi list,

17 messages 2006/05/01

[#190995] Unit test setup — "Eustáquio Rangel" <eustaquiorangel@...>

Hi there.

13 messages 2006/05/02
[#191027] Re: Unit test setup — Eric Hodel <drbrain@...7.net> 2006/05/02

On May 2, 2006, at 6:35 AM, Eust痃uio Rangel wrote:

[#191056] Re: Unit test setup — "John Wilger" <johnwilger@...> 2006/05/02

On 5/2/06, Eric Hodel <drbrain@segment7.net> wrote:> On May 2, 2006, at 6:35 AM, Eust叩quio Rangel wrote:> > Is there a way for use> > general "constructor" and "destructor" methods, to, for example,> > open a socket on the "constructor", execute all the tests and close> > it on the "destructor"

[#191000] Sharp knives and glue — "Leslie Viljoen" <leslieviljoen@...>

I have a friend that works in PHP all day and enjoys the language quite a

92 messages 2006/05/02
[#191001] Re: Sharp knives and glue — "chiaro scuro" <kiaroskuro@...> 2006/05/02

uhm.. I have never used it in teams, but unit tests would be paramount.

[#191035] Re: Sharp knives and glue — "Leslie Viljoen" <leslieviljoen@...> 2006/05/02

> On 5/2/06, Leslie Viljoen <leslieviljoen@gmail.com> wrote:

[#191047] Re: Sharp knives and glue — "Leslie Viljoen" <leslieviljoen@...> 2006/05/02

On 5/2/06, Leslie Viljoen <leslieviljoen@gmail.com> wrote:

[#191066] Re: Sharp knives and glue — "kate rhodes" <masukomi@...> 2006/05/02

having worked in perl and php and Java i have to say that when you're

[#191078] Re: Sharp knives and glue — "David Pollak" <pollak@...> 2006/05/02

Yep... unit tests help, but don't cure everything. Design by Contract puts

[#191111] Re: Sharp knives and glue — "Francis Cianfrocca" <garbagecat10@...> 2006/05/03

I broadly agree with most of this, inlcuding your rants on stability. But

[#191121] Re: Sharp knives and glue — "Leslie Viljoen" <leslieviljoen@...> 2006/05/03

Thanks for the reply!

[#191154] Re: Sharp knives and glue — "David Pollak" <pollak@...> 2006/05/03

I am a fan of agile programming, but it has its places.

[#191171] Re: Sharp knives and glue — "kate rhodes" <masukomi@...> 2006/05/03

Just want to point out that a secondary issue has been introduced to this

[#191176] Re: Sharp knives and glue — "David Pollak" <pollak@...> 2006/05/03

I am a very, very good programmer. I've written more than a dozen

[#191180] Re: Sharp knives and glue — James Edward Gray II <james@...> 2006/05/03

On May 3, 2006, at 10:46 AM, David Pollak wrote:

[#191188] Re: Sharp knives and glue — "David Pollak" <pollak@...> 2006/05/03

On 5/3/06, James Edward Gray II <james@grayproductions.net> wrote:

[#191256] Re: Sharp knives and glue — "kate rhodes" <masukomi@...> 2006/05/03

All the things you mention unit tests not handling James? That's where

[#191257] Re: Sharp knives and glue — "David Pollak" <pollak@...> 2006/05/03

Kate,

[#191271] Re: Sharp knives and glue — "kate rhodes" <masukomi@...> 2006/05/03

I have to disagree David. In my opinion this is just a case where a

[#191278] Re: Sharp knives and glue — "David Pollak" <pollak@...> 2006/05/03

Kate,

[#191453] Re: Sharp knives and glue — "Bill Kelly" <billk@...> 2006/05/04

From: "Pat Maddox" <pergesu@gmail.com>

[#191454] Re: Sharp knives and glue — "Pat Maddox" <pergesu@...> 2006/05/04

On 5/4/06, Bill Kelly <billk@cts.com> wrote:

[#191459] Re: Sharp knives and glue — James Britt <james_b@...> 2006/05/04

Pat Maddox wrote:

[#191461] Re: Sharp knives and glue — Kirk Haines <khaines@...> 2006/05/05

On Thursday 04 May 2006 5:37 pm, James Britt wrote:

[#191485] Re: Sharp knives and glue — "Leslie Viljoen" <leslieviljoen@...> 2006/05/05

On 5/5/06, Kirk Haines <khaines@enigo.com> wrote:

[#191496] Re: Sharp knives and glue — Liquid <has.sox@...> 2006/05/05

Hi All,

[#191510] Re: Sharp knives and glue — "David Pollak" <pollak@...> 2006/05/05

Dan,

[#191514] Re: Sharp knives and glue — "M. Edward (Ed) Borasky" <znmeb@...> 2006/05/05

[#191521] Re: Sharp knives and glue — "Dick Davies" <rasputnik@...> 2006/05/05

Having skimmed over the thread, I get a taste of

[#191525] Re: Sharp knives and glue — "Dick Davies" <rasputnik@...> 2006/05/05

On 05/05/06, Dick Davies <rasputnik@gmail.com> wrote:

[#191538] Re: Sharp knives and glue — "Ryan Leavengood" <leavengood@...> 2006/05/05

As I have matured, I've become more and more convinced how much louder

[#191621] Re: Sharp knives and glue — "David Pollak" <pollak@...> 2006/05/05

Ryan,

[#191645] Re: Sharp knives and glue — "Ryan Leavengood" <leavengood@...> 2006/05/06

Cool, this sounds like a plan David. This was exactly what I wanted my

[#191660] Re: Sharp knives and glue — Alex Young <alex@...> 2006/05/06

Ryan Leavengood wrote:

[#191006] Calling Shell Scripts from Ruby ? — Dinesh Umanath <u_dinesh@...>

Hi all,

14 messages 2006/05/02

[#191011] Second Edition of Agile Web Development with Rails — Dave Thomas <dave@...>

ANNOUNCING AGILE WEB DEVELOPMENT WITH RAILS, SECOND EDITION

25 messages 2006/05/02
[#191046] Re: Second Edition of Agile Web Development with Rails — "s450r1" <s450r1@...> 2006/05/02

I think that's the latest. There a list of versions in a drop-down

[#191055] Re: Second Edition of Agile Web Development with Rails — "Tyler Prete" <psyonic@...> 2006/05/02

I just tried to apply the coupon from the first edition book to get the new

[#191058] Re: Second Edition of Agile Web Development with Rails — "Michael Trier" <mtrier@...> 2006/05/02

Okay, this will probably get a lot of people upset, but I have to come

[#191014] Mixin Syntax for Newbies — Nathan Olberding <nathan.olberding@...>

I'm trying to start using mixins and I'm having a little syntactual

17 messages 2006/05/02

[#191043] Re-post: [Mailing list -> ruby-forum.com broken?] — Justin Collins <collinsj@...>

I posted this on the mailing list, but obviously that didn't get

27 messages 2006/05/02
[#191079] Re: Re-post: [Mailing list -> ruby-forum.com broken?] — Pistos Christou <jesusrubsyou.5.pistos@...> 2006/05/02

Justin Collins wrote:

[#191091] Re: Re-post: [Mailing list -> ruby-forum.com broken?] — "Austin Ziegler" <halostatue@...> 2006/05/03

On 5/2/06, Pistos Christou <jesusrubsyou.5.pistos@geoshell.com> wrote:> Justin Collins wrote:> > It looks like messages sent to the mailing list are not being propagated> > to the ruby-forum.com.> > However, messages posted on the forum are getting sent to the mailing> > list. Is this a known issue?> >> > This is kind of a problem, because people are getting answers to their> > questions from the list, but the answers never reach them if they are> > using the forum.> If the RForum software works as-is, I am willing to host a mailing list> <-> forum bridge, whether temporarily or permanently.

[#191169] problems ftp'ing with RUBY — Peter Bailey <pbailey@...>

I need to ftp PDF files to our printer. Using the script below, I'm

13 messages 2006/05/03

[#191237] What do you say to log2 to Math module? — "Minkoo Seo" <minkoo.seo@...>

Hi list.

16 messages 2006/05/03

[#191279] mixin puzzle — polypus <polypus@...>

19 messages 2006/05/03

[#191313] Ruby idiom for attributes / properties — "John Lam" <drjflam@...>

I'm writing a bunch of auto-marshaling code to let CLR code call back into

13 messages 2006/05/04

[#191421] Creating an object from a variable class name — RGR <ricardo-g-ramalho@...>

I want to create an object from a class, but the name of that class is

14 messages 2006/05/04

[#191432] watir gem update error — James Byrne <byrnejb@...>

When trying to complete a gem update this is what I am seeing:

14 messages 2006/05/04

[#191500] Bracket Packing (#78) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

23 messages 2006/05/05

[#191524] Ruby community website / forum — Eli Bendersky <eliben@...>

Coming from Perl, what I miss in Ruby the most is (surprise !) not CPAN,

28 messages 2006/05/05
[#191528] Re: Ruby community website / forum — "Austin Ziegler" <halostatue@...> 2006/05/05

On 5/5/06, Eli Bendersky <eliben@gmail.com> wrote:> Two aspects make Perlmonks great:> 1) It's a *true* forum. With all due respect to RForum powering> "ruby-forum.com", a real forum must at the very least support> hierarchical threading correctly, and allow to post text with simple> formatting, especially for source code.

[#191680] Re: Ruby community website / forum — Polite <m4@...> 2006/05/06

Austin Ziegler wrote:

[#191699] Re: Ruby community website / forum — "Leslie Viljoen" <leslieviljoen@...> 2006/05/06

On 5/6/06, Polite <m4@polite.se> wrote:

[#191710] Re: Ruby community website / forum — "John Gabriele" <jmg3000@...> 2006/05/06

On 5/6/06, Leslie Viljoen <leslieviljoen@gmail.com> wrote:

[#191579] Extending Core Classes - Best Practices — Pistos Christou <jesusrubsyou.5.pistos@...>

Hi, all.

13 messages 2006/05/05
[#191606] Re: Extending Core Classes - Best Practices — "Robert Klemme" <shortcutter@...> 2006/05/05

2006/5/5, Pistos Christou <jesusrubsyou.5.pistos@geoshell.com>:

[#191608] Re: Extending Core Classes - Best Practices — Logan Capaldo <logancapaldo@...> 2006/05/05

[#191599] adwords4: access the Google Adwords API in ruby — "Patrick Chanezon" <chanezon@...>

For those of you who want to access the AdWords API from ruby.

19 messages 2006/05/05
[#191895] Re: adwords4: access the Google Adwords API in ruby — Jason Clinton <me@...> 2006/05/08

On Sat, 2006-05-06 at 04:49 +0900, Patrick Chanezon wrote:

[#191901] Re: adwords4: access the Google Adwords API in ruby — "Ryan Leavengood" <leavengood@...> 2006/05/08

On 5/8/06, Jason Clinton <me@jasonclinton.com> wrote:

[#191635] Considering Ruby For a Networking Application — James Edward Gray II <james@...>

I'm going to be working on a fairly basic networking application

36 messages 2006/05/06
[#191641] Re: Considering Ruby For a Networking Application — "Bill Kelly" <billk@...> 2006/05/06

From: "James Edward Gray II" <james@grayproductions.net>

[#191909] Re: Considering Ruby For a Networking Application — "Francis Cianfrocca" <garbagecat10@...> 2006/05/08

A great deal depends on what you really need to accomplish. Are you doing a

[#191923] Re: Considering Ruby For a Networking Application — James Edward Gray II <james@...> 2006/05/08

On May 8, 2006, at 12:12 PM, Francis Cianfrocca wrote:

[#191932] Re: Considering Ruby For a Networking Application — "Francis Cianfrocca" <garbagecat10@...> 2006/05/08

Writes can block your process whether they are large or small- it all

[#191737] A major ruby annoyance! — "Talha Oktay" <toktay@...>

I am a newbie in Ruby. I have read several books including pickaxe and wrot=

48 messages 2006/05/06
[#191741] Re: A major ruby annoyance! — Logan Capaldo <logancapaldo@...> 2006/05/06

[#191775] Re: A major ruby annoyance! — dblack@... 2006/05/07

Hi --

[#191807] Re: A major ruby annoyance! — Logan Capaldo <logancapaldo@...> 2006/05/07

[#191829] Re: A major ruby annoyance! — "Talha Oktay" <toktay@...> 2006/05/07

Hi,

[#192040] Twisted for Ruby? — "Francis Cianfrocca" <garbagecat10@...>

All:

13 messages 2006/05/09
[#192042] Re: Twisted for Ruby? — Daniel Harple <dharple@...> 2006/05/09

On May 9, 2006, at 2:34 PM, Francis Cianfrocca wrote:

[#192047] Re: Twisted for Ruby? — "Francis Cianfrocca" <garbagecat10@...> 2006/05/09

I appreciate your comment. We did EventMachine in C++ for some particular

[#192056] Method Size - Best Practices — Pistos Christou <jesusrubsyou.5.pistos@...>

Eric Hodel wrote:

14 messages 2006/05/09

[#192122] Ruby documentation discovery — "John Conrad" <john.emerson.conrad@...>

I spent the day trying to grok the examples in xmpp4r (xmpp/jabber library

19 messages 2006/05/09

[#192151] Intantiating a class by name — "Erich L. Timkar" <erichtimkar@...>

For the life of me I haven't been able to find the syntax to

12 messages 2006/05/10

[#192177] Simplifying Vim folding — Doug Kearns <dougkearns@...>

G'day folks,

15 messages 2006/05/10

[#192184] Thanks Ruby Quiz! — Charlie Bowman <charlie@...>

15 messages 2006/05/10
[#192205] Re: Thanks Ruby Quiz! — "Matthew Moss" <matthew.moss.coder@...> 2006/05/10

On 5/10/06, Charlie Bowman <charlie@castlebranch.com> wrote:

[#192367] extract DIV from HTML — Dor Kalev <dor@...>

Hi,

16 messages 2006/05/11

[#192432] conversion issues — corey konrad <0011@...>

what is going on here, i dont understand why i keep getting conversion

40 messages 2006/05/12
[#192435] Re: conversion issues — Mike Stok <mike@...> 2006/05/12

[#192436] Re: conversion issues — corey konrad <0011@...> 2006/05/12

>because it needs to be a string when you print it.

[#192442] Re: conversion issues — Mike Stok <mike@...> 2006/05/12

[#192445] Re: conversion issues — corey konrad <0011@...> 2006/05/12

how about this cin>> = num, lol i dont know ruby seems like a trade off

[#192447] Re: conversion issues — Daniel Harple <dharple@...> 2006/05/12

On May 12, 2006, at 4:27 AM, corey konrad wrote:

[#192449] Re: conversion issues — corey konrad <0011@...> 2006/05/12

The goal of ruby is to make programming easier and more enjoyable right?

[#192463] Ruby and windows. — "Tim Uckun" <timuckun@...>

I want to convert a series of VB DLLs to ruby. Is it possible to writeactivex controls and DLLs in ruby? There might be a snag in that thecontrols need to send events to the calling program.

12 messages 2006/05/12
[#192475] Re: Ruby and windows. — Dave Burt <dave@...> 2006/05/12

Tim Uckun wrote:

[#192478] Re: Ruby and windows. — "Tim Uckun" <timuckun@...> 2006/05/12

Thanks. I am a bit disapointed that I can't write activex controls orDLLs in ruby, I know it's possible to do that in python.

[#192487] Tab Player (#79) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

13 messages 2006/05/12

[#192502] Is there a method for incrementing string names?!? — "Human Dunnil" <h.dunnil@...>

Hello,

10 messages 2006/05/12

[#192513] Making sense of the various Ruby "eval"s — Eli Bendersky <eliben@...>

Hi all,

14 messages 2006/05/12
[#192521] Re: Making sense of the various Ruby "eval"s — ts <decoux@...> 2006/05/12

>>>>> "E" == Eli Bendersky <eliben@gmail.com> writes:

[#192527] Re: Making sense of the various Ruby "eval"s — Eli Bendersky <eliben@...> 2006/05/12

ts wrote:

[#192631] Forcing some code to run at the end of tests — "Sy Ali" <sy1234@...>

I'm playing with some test scripts, and I cannot for the life of me

41 messages 2006/05/13
[#192632] Re: Forcing some code to run at the end of tests — Mike Stok <mike@...> 2006/05/13

[#192635] Re: Forcing some code to run at the end of tests — "Sy Ali" <sy1234@...> 2006/05/13

On 5/13/06, Mike Stok <mike@stok.ca> wrote:

[#192642] Re: Forcing some code to run at the end of tests — Daniel Harple <dharple@...> 2006/05/14

On May 14, 2006, at 12:27 AM, Sy Ali wrote:

[#192667] Re: Forcing some code to run at the end of tests — "Sy Ali" <sy1234@...> 2006/05/14

I played with 'ensure', but it wasn't the answer.. =)

[#192690] Re: Forcing some code to run at the end of tests — ara.t.howard@... 2006/05/14

On Sun, 14 May 2006, Sy Ali wrote:

[#192693] Re: Forcing some code to run at the end of tests — "Sy Ali" <sy1234@...> 2006/05/14

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

[#192698] Re: Forcing some code to run at the end of tests — ara.t.howard@... 2006/05/14

On Mon, 15 May 2006, Sy Ali wrote:

[#192700] Re: Forcing some code to run at the end of tests — "Sy Ali" <sy1234@...> 2006/05/14

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

[#192750] Re: Forcing some code to run at the end of tests — ara.t.howard@... 2006/05/15

On Mon, 15 May 2006, Sy Ali wrote:

[#192920] Re: Forcing some code to run at the end of tests — "Sy Ali" <sy1234@...> 2006/05/15

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

[#192927] Re: Forcing some code to run at the end of tests — ara.t.howard@... 2006/05/16

On Tue, 16 May 2006, Sy Ali wrote:

[#192699] begining programmer questions — corey konrad <0011@...>

I was wondering, i thought in Ruby you didnt have to declare variables

75 messages 2006/05/14
[#192701] Re: begining programmer questions — "Michael Gorsuch" <michael.gorsuch@...> 2006/05/14

When you call 'info[]', the '[]' piece is actually trying to invoke a metho=

[#192702] Re: begining programmer questions — corey konrad <0011@...> 2006/05/14

oh ok thats right it has to be an object in order to be useful. The book

[#192703] Re: begining programmer questions — corey konrad <0011@...> 2006/05/14

i dont know doing info = Array.new seems like an array declaration to

[#192704] Re: begining programmer questions — "Michael Gorsuch" <michael.gorsuch@...> 2006/05/14

I suppose it could, but I think the easiest way to build an Array in ruby i=

[#192705] Re: begining programmer questions — corey konrad <0011@...> 2006/05/14

ok thanks for the help

[#192706] Re: begining programmer questions — corey konrad <0011@...> 2006/05/14

well i tried what you said but i still get an error now, it says that i

[#192707] Re: begining programmer questions — corey konrad <0011@...> 2006/05/14

oh ok i needed to remove the [] in the while loop to, ok. Now when i

[#192711] Re: begining programmer questions — "Michael Gorsuch" <michael.gorsuch@...> 2006/05/14

Just to be clear, will you please send your current source. I'd be glad to

[#192713] Re: begining programmer questions — corey konrad <0011@...> 2006/05/14

Michael Gorsuch wrote:

[#192717] Re: begining programmer questions — "Michael Gorsuch" <michael.gorsuch@...> 2006/05/14

Ah!

[#192721] Re: begining programmer questions — corey konrad <0011@...> 2006/05/14

oh ok basicly the issue is that i just didnt understand what the gets

[#192722] Re: begining programmer questions — corey konrad <0011@...> 2006/05/14

this stuff is discouraging, lol. Since i started learning to program i

[#192730] Re: begining programmer questions — Logan Capaldo <logancapaldo@...> 2006/05/14

[#192732] Re: begining programmer questions — corey konrad <0011@...> 2006/05/15

yeah a friend of mine said that PHP would be a good language to learn as

[#192734] Re: begining programmer questions — "Daniel Baird" <danielbaird@...> 2006/05/15

On 5/15/06, corey konrad <0011@hush.com> wrote:

[#192723] Re: begining programmer questions — "Michael Gorsuch" <michael.gorsuch@...> 2006/05/14

'gets' will read a string from input and build a new string object.

[#192838] Re: begining programmer questions — Regg <spam@...> 2006/05/15

I'm a newbie to Ruby, but not to programming.

[#192841] Re: begining programmer questions — Jake McArthur <jake.mcarthur@...> 2006/05/15

On May 15, 2006, at 12:50 PM, Regg wrote:

[#192710] Re: begining programmer questions — "Francis Cianfrocca" <garbagecat10@...> 2006/05/14

A lot of people have the mistaken notion that Ruby is not "strongly typed"

[#192712] Re: begining programmer questions — corey konrad <0011@...> 2006/05/14

you're talking over my head francis, i am a beginner. I have no idea

[#192716] Re: begining programmer questions — "Michael Gorsuch" <michael.gorsuch@...> 2006/05/14

Corey -

[#192720] Re: begining programmer questions — "Francis Cianfrocca" <garbagecat10@...> 2006/05/14

With some trepidation I'll commit the sin of threadjacking in order to

[#192790] Net::LDAP filters — Andre Nathan <andre@...>

Hello

17 messages 2006/05/15

[#192882] Ticked Off — "Austin Ziegler" <halostatue@...>

Okay, I'll admit it. I'm really pissed off. I don't pay attention to

97 messages 2006/05/15
[#192911] Re: Ticked Off — Logan Capaldo <logancapaldo@...> 2006/05/15

[#192917] Re: Ticked Off — Elliot Temple <curi@...> 2006/05/15

[#192919] Re: Ticked Off — Jeremy Tregunna <jtregunna@...> 2006/05/15

[#192928] Re: Ticked Off — Elliot Temple <curi@...> 2006/05/16

[#192938] Re: Ticked Off — Keith Lancaster <klancaster1957@...> 2006/05/16

Elliot Temple wrote:

[#193042] Re: Ticked Off — Phil Hagelberg <phil@...> 2006/05/16

Keith Lancaster <klancaster1957@gmail.com> writes:

[#193055] Re: Ticked Off — gwtmp01@... 2006/05/16

[#193057] Re: Ticked Off — Peter Hickman <peter@...> 2006/05/16

gwtmp01@mac.com wrote:

[#192973] Re: Ticked Off — Jeff Rose <rosejn@...> 2006/05/16

Austin Ziegler wrote:

[#192981] Re: Ticked Off — Kev Jackson <kevin.jackson@...> 2006/05/16

Jeff Rose wrote:

[#192989] Re: Ticked Off — "Austin Ziegler" <halostatue@...> 2006/05/16

On 5/16/06, Kev Jackson <kevin.jackson@it.fts-vn.com> wrote:

[#192990] Re: Ticked Off — "Tim Becker" <a2800276@...> 2006/05/16

Pirating a pdf is not theft. Stealing something implies that the owner is no

[#192904] learn to program — corey konrad <0011@...>

I realy dont understand what Chris is talking about here in his book

14 messages 2006/05/15

[#192942] Editing ruby code with Emacs or Vim ? — Meino Christian Cramer <Meino.Cramer@...>

Hi,

17 messages 2006/05/16

[#193027] Re: ruby sdbm library reliable? — "Berger, Daniel" <Daniel.Berger@...>

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

9 messages 2006/05/16

[#193187] When will the gateway be back? — "Phil Tomson" <rubyfan@...>

I really prefer to read comp.lang.ruby instead of being subscribed to

14 messages 2006/05/17

[#193205] Capturing stdout — Damphyr <damphyr@...>

I have code that prints to stdout (using puts and/or print).

18 messages 2006/05/17
[#193207] Re: Capturing stdout — "Robert Klemme" <shortcutter@...> 2006/05/17

2006/5/17, Damphyr <damphyr@freemail.gr>:

[#193225] Please answer to this code? — viswesh <visweshwar_03@...>

can anybody execute it and tell me where i go wrong.please let me know

16 messages 2006/05/17

[#193320] greatest float smaller than 1.0? — polypus <polypus@...>

19 messages 2006/05/17

[#193397] Rescue clauses on do/end blocks? — Daniel Schierbeck <daniel.schierbeck@...>

I know this has been on the table before, but I really see no reason not

49 messages 2006/05/18
[#193399] Re: Rescue clauses on do/end blocks? — "Robert Klemme" <shortcutter@...> 2006/05/18

2006/5/18, Daniel Schierbeck <daniel.schierbeck@gmail.com>:

[#193539] Curly brackets (was: Rescue clauses on do/end blocks?) — Daniel Schierbeck <daniel.schierbeck@...> 2006/05/19

Okay, if this proposal is blocked by the lack of an elegant way to add

[#193404] Re: Rescue clauses on do/end blocks? — Ross Bamford <rossrt@...> 2006/05/18

On Thu, 2006-05-18 at 23:55 +0900, Daniel Schierbeck wrote:

[#193428] Re: Rescue clauses on do/end blocks? — "Austin Ziegler" <halostatue@...> 2006/05/18

On 5/18/06, Daniel Schierbeck <daniel.schierbeck@gmail.com> wrote:

[#193444] Re: Rescue clauses on do/end blocks? — Daniel Schierbeck <daniel.schierbeck@...> 2006/05/18

Austin Ziegler wrote:

[#193424] Re: How to "go to" in a RUBY script . . . — "DEBAUN, STEVE [AG-Contractor/2400]" <steve.debaun@...>

To everyone else:

28 messages 2006/05/18
[#193452] Re: How to "go to" in a RUBY script . . . — "Leslie Viljoen" <leslieviljoen@...> 2006/05/18

On 5/18/06, DEBAUN, STEVE [AG-Contractor/2400] <steve.debaun@seminis.com> wrote:

[#193466] Where does one find documentation for Text::Format? — Wes Gamble <weyus@...>

I can't find any documentation for Text::Format.

11 messages 2006/05/18
[#193548] Re: Where does one find documentation for Text::Format? — "Austin Ziegler" <halostatue@...> 2006/05/19

On 5/18/06, Wes Gamble <weyus@att.net> wrote:

[#193512] Ruby namespaces and require — Alex Young <alex@...>

Hi all,

17 messages 2006/05/19

[#193545] Writing a interpreter extension — Kris <krisleech@...>

When writing a interpreter extension are there any hooks in to the

50 messages 2006/05/19
[#193596] Re: Writing a interpreter extension — Eric Hodel <drbrain@...7.net> 2006/05/19

On May 19, 2006, at 6:28 AM, Kris wrote:

[#193608] Re: Writing a interpreter extension — Kris <krisleech@...> 2006/05/19

Many thanks Eric, do you have a code example by any chance to get me

[#193613] Re: Writing a interpreter extension — Eric Hodel <drbrain@...7.net> 2006/05/19

On May 19, 2006, at 10:50 AM, Kris wrote:

[#193621] Re: Writing a interpreter extension — Logan Capaldo <logancapaldo@...> 2006/05/19

[#193779] Re: Writing a interpreter extension — Kris <krisleech@...> 2006/05/21

Thanks for the reply.

[#193788] Re: Writing a interpreter extension — Sam Roberts <sroberts@...> 2006/05/21

Quoting krisleech@interkonect.com, on Mon, May 22, 2006 at 12:29:24AM +0900:

[#193828] Re: Writing a interpreter extension — Kris <krisleech@...> 2006/05/22

It would take a higher skill set to extract it though.

[#193840] Re: Writing a interpreter extension — "Leslie Viljoen" <leslieviljoen@...> 2006/05/22

On 5/22/06, Kris <krisleech@interkonect.com> wrote:

[#193866] Re: Writing a interpreter extension — Kris Leech <krisleech@...> 2006/05/22

Well there are several aspects to this, I want to protect the code from

[#193880] Re: Writing a interpreter extension — "Ryan Leavengood" <leavengood@...> 2006/05/22

On 5/22/06, Kris Leech <krisleech@interkonect.com> wrote:

[#193883] Re: Writing a interpreter extension — Kris Leech <krisleech@...> 2006/05/22

By reading the key from the binary or reading the un-encrypted code from

[#193886] Re: Writing a interpreter extension — Jeff Rose <rosejn@...> 2006/05/22

Kris Leech wrote:

[#193890] Re: Writing a interpreter extension — Kris Leech <krisleech@...> 2006/05/22

The use case can't be changed, it would need to be secure code... At the

[#193894] Re: Writing a interpreter extension — "Tim Becker" <a2800276@...> 2006/05/22

> The use case can't be changed, it would need to be secure code...

[#193911] Re: Writing a interpreter extension — Kris Leech <krisleech@...> 2006/05/22

Mainly I want to be able to sell ruby/rails applications without doing a

[#194057] Re: Writing a interpreter extension — Hal Fulton <hal9000@...> 2006/05/23

Kris Leech wrote:

[#194079] Re: Writing a interpreter extension — Alex Young <alex@...> 2006/05/23

Hal Fulton wrote:

[#194082] Re: Writing a interpreter extension — Kris Leech <krisleech@...> 2006/05/23

>Google for the phrase "security through obscurity" (STO).

[#193669] Brite - A ruby compiler for the .NET platform — "Pascal Hurni" <pascal_hurni@...>

Hi folks!

29 messages 2006/05/20
[#193670] Re: [ANN] Brite - A ruby compiler for the .NET platform — Florian Gro<florgro@...> 2006/05/20

Pascal Hurni wrote:

[#193777] Re: Brite - A ruby compiler for the .NET platform — Kris <krisleech@...> 2006/05/21

Would this allow Ruby to be compiled to CIL?

[#193797] Re: Brite - A ruby compiler for the .NET platform — Florian Groß <florgro@...> 2006/05/21

Kris wrote:

[#193825] Re: Brite - A ruby compiler for the .NET platform — Kris <krisleech@...> 2006/05/22

I guess a Rails app would be more difficult to compile...

[#193858] Re: Brite - A ruby compiler for the .NET platform — Florian Groß <florgro@...> 2006/05/22

Kris wrote:

[#193862] Re: Brite - A ruby compiler for the .NET platform — Kris Leech <krisleech@...> 2006/05/22

I found a one page html page detailing how to decrypt a CIL back to

[#193879] Re: Brite - A ruby compiler for the .NET platform — "Ryan Leavengood" <leavengood@...> 2006/05/22

On 5/22/06, Kris Leech <krisleech@interkonect.com> wrote:

[#193909] Re: Brite - A ruby compiler for the .NET platform — Kris Leech <krisleech@...> 2006/05/22

If its against the spirit of ruby then it makes it less commercially

[#193933] Re: Brite - A ruby compiler for the .NET platform — "Ryan Leavengood" <leavengood@...> 2006/05/22

On 5/22/06, Kris Leech <krisleech@interkonect.com> wrote:

[#193692] I call Ducktype Violation on #to_proc! :) — transfire@...

Trying to be just ducky...

20 messages 2006/05/20
[#193700] Re: I call Ducktype Violation on #to_proc! :) — Daniel Schierbeck <daniel.schierbeck@...> 2006/05/20

transfire@gmail.com wrote:

[#193705] Re: I call Ducktype Violation on #to_proc! :) — transfire@... 2006/05/20

Right. It's not the #to_proc I'm worried about. I completely agree with

[#193707] Re: I call Ducktype Violation on #to_proc! :) — Daniel Schierbeck <daniel.schierbeck@...> 2006/05/20

transfire@gmail.com wrote:

[#193709] Re: I call Ducktype Violation on #to_proc! :) — Dave Burt <dave@...> 2006/05/20

Daniel Schierbeck wrote:

[#193754] Re: I call Ducktype Violation on #to_proc! :) — Daniel Schierbeck <daniel.schierbeck@...> 2006/05/21

Dave Burt wrote:

[#193708] sysread changes behavior in the presence of threads? — "Francis Cianfrocca" <garbagecat10@...>

What am I missing here?

22 messages 2006/05/20
[#193747] Re: sysread changes behavior in the presence of threads? — "Bill Kelly" <billk@...> 2006/05/21

From: "Francis Cianfrocca" <garbagecat10@gmail.com>

[#193764] Re: sysread changes behavior in the presence of threads? — "Francis Cianfrocca" <garbagecat10@...> 2006/05/21

It's a Windows issue, nothing to do with Ruby. I haven't looked at how Boos=

[#193765] Re: sysread changes behavior in the presence of threads? — "Robert Klemme" <shortcutter@...> 2006/05/21

2006/5/21, Francis Cianfrocca <garbagecat10@gmail.com>:

[#193718] rubynuby - confused by method name "inject" — Jeff Pritchard <jp@...>

Can anybody explain to me how the Enumberable#inject method is

45 messages 2006/05/21
[#193723] Re: rubynuby - confused by method name "inject" — Dave Burt <dave@...> 2006/05/21

Jeff Pritchard wrote:

[#193734] Re: rubynuby - confused by method name "inject" — Jeff Pritchard <jp@...> 2006/05/21

I agree, "map" makes a lot more sense than "collect". I'm going to just

[#193790] Re: rubynuby - confused by method name "inject" — Jim Weirich <jim@...> 2006/05/21

Jeff Pritchard wrote:

[#193832] Re: rubynuby - confused by method name "inject" — "Leslie Viljoen" <leslieviljoen@...> 2006/05/22

On 5/21/06, Jim Weirich <jim@weirichhouse.org> wrote:

[#193835] Re: rubynuby - confused by method name "inject" — Regg Mr <spamwhite@...> 2006/05/22

Leslie Viljoen wrote:

[#193837] Re: rubynuby - confused by method name "inject" — "Leslie Viljoen" <leslieviljoen@...> 2006/05/22

On 5/22/06, Regg Mr <spamwhite@cox.net> wrote:

[#193841] Re: rubynuby - confused by method name "inject" — "Leslie Viljoen" <leslieviljoen@...> 2006/05/22

On 5/22/06, Leslie Viljoen <leslieviljoen@gmail.com> wrote:

[#193722] About <programming ruby, 2nc edition>, meta class and Class — uncutstone wu <uncutstone@...>

15 messages 2006/05/21
[#193748] Re: About <programming ruby, 2nc edition>, meta class and Cl — uncutstone wu <uncutstone@...> 2006/05/21

The following is quoted from ruby-1.8.4-core-rdocs

[#197981] Re: About <programming ruby, 2nc edition>, meta class and Cl — uncutstone wu <uncutstone@...> 2006/06/19

uncutstone wu wrote:

[#193815] Test::Unit Patch that allows test methods to be executed sequentially — "bpettichord@..." <bpettichord@...>

This patch to Test::Unit allows you to create TestCases whose test

15 messages 2006/05/22

[#193852] Zed and Luis drop the bomb on Ruby's poor performance — cremes.devlist@...

The O'Reilly blog has two great interviews posted from the last week

161 messages 2006/05/22
[#193875] Re: Zed and Luis drop the bomb on Ruby's poor performance — benjohn@... 2006/05/22

*snip*

[#193881] Re: Zed and Luis drop the bomb on Ruby's poor performance — "Madan Manoharan" <madan.manoharan@...> 2006/05/22

On 5/22/06, benjohn@fysh.org <benjohn@fysh.org> wrote:

[#193898] Re: Zed and Luis drop the bomb on Ruby's poor performance — Kirk Haines <khaines@...> 2006/05/22

On Monday 22 May 2006 9:25 am, Madan Manoharan wrote:

[#193914] Re: Zed and Luis drop the bomb on Ruby's poor performance — James Britt <james_b@...> 2006/05/22

Kirk Haines wrote:

[#195505] Speed of Ruby program != Speed of Ruby language (was Re: Zed and Luis drop the bomb on Ruby's poor performance) — Dave Howell <groups@...> 2006/06/01

On May 22, 2006, at 9:50, James Britt wrote:

[#195522] Re: Speed of Ruby program != Speed of Ruby language (was Re: Zed and Luis drop the bomb on Ruby's poor performance) — James Britt <james_b@...> 2006/06/01

Dave Howell wrote:

[#195532] Re: Speed of Ruby program != Speed of Ruby language (was Re: Zed and Luis drop the bomb on Ruby's poor performance) — Dave Howell <groups@...> 2006/06/01

[#193921] Re: Zed and Luis drop the bomb on Ruby's poor performance — "Madan Manoharan" <madan.manoharan@...> 2006/05/22

On 5/22/06, Kirk Haines <khaines@enigo.com> wrote:

[#193902] Re: Zed and Luis drop the bomb on Ruby's poor performance — cremes.devlist@... 2006/05/22

[#193907] Re: Zed and Luis drop the bomb on Ruby's poor performance — ara.t.howard@... 2006/05/22

On Tue, 23 May 2006 cremes.devlist@mac.com wrote:

[#193955] Re: Zed and Luis drop the bomb on Ruby's poor performance — "Francis Cianfrocca" <garbagecat10@...> 2006/05/22

I've always had a sense that some of what makes Ruby so beautiful is

[#194075] Re: Zed and Luis drop the bomb on Ruby's poor performance — Alex Young <alex@...> 2006/05/23

Francis Cianfrocca wrote:

[#194078] Re: Zed and Luis drop the bomb on Ruby's poor performance — Eric Hodel <drbrain@...7.net> 2006/05/23

On May 23, 2006, at 12:15 AM, Alex Young wrote:

[#194212] Re: Zed and Luis drop the bomb on Ruby's poor performance — Joel VanderWerf <vjoel@...> 2006/05/23

Eric Hodel wrote:

[#194290] Re: Zed and Luis drop the bomb on Ruby's poor performance — Logan Capaldo <logancapaldo@...> 2006/05/24

[#194297] Re: Zed and Luis drop the bomb on Ruby's poor performance — "Douglas Livingstone" <rampant@...> 2006/05/24

2006/5/24, Logan Capaldo <logancapaldo@gmail.com>:

[#194033] How to Improve Performance Now. Re: Zed and Luis drop the bomb onRuby's poor performance — John Carter <john.carter@...> 2006/05/23

On Mon, 22 May 2006, cremes.devlist@mac.com wrote:

[#194125] Re: How to Improve Performance Now. Re: Zed and Luis drop the bomb onRuby's poor performance — "Austin Ziegler" <halostatue@...> 2006/05/23

On 5/22/06, John Carter <john.carter@tait.co.nz> wrote:

[#194131] Re: How to Improve Performance Now. Re: Zed and Luis drop the bomb onRuby's poor performance — Mark Somerville <mark@...> 2006/05/23

On Tuesday 23 May 2006 12:41, Austin Ziegler wrote:

[#194271] How use Profiling, a Quick Guide. — John Carter <john.carter@...> 2006/05/23

On Tue, 23 May 2006, Mark Somerville wrote:

[#194318] Re: How use Profiling, a Quick Guide. — "Victor Shepelev" <vshepelev@...> 2006/05/24

From: John Carter [mailto:john.carter@tait.co.nz]

[#193891] initializing instance variables in a module — Jeff Rose <rosejn@...>

Have a module:

38 messages 2006/05/22
[#193956] Re: initializing instance variables in a module — Jeff Rose <rosejn@...> 2006/05/22

Well, it took a while but I found the answer. This is done in

[#193964] Re: initializing instance variables in a module — dblack@... 2006/05/22

Hi --

[#194030] Re: initializing instance variables in a module — Yukihiro Matsumoto <matz@...> 2006/05/23

Hi,

[#194032] Re: initializing instance variables in a module — ara.t.howard@... 2006/05/23

On Tue, 23 May 2006, Yukihiro Matsumoto wrote:

[#194052] module creation hook method (Re: [OT] Re: initializing instance variables in a module) — Yukihiro Matsumoto <matz@...> 2006/05/23

Hi,

[#193965] program writing — corey konrad <0011@...>

i think i understand the basic syntax of ruby, now what do i do with it?

22 messages 2006/05/22

[#194219] Proposing: A new Ruby Windows installer — Enterprise Astronaut <enterpriseastro@...>

48 messages 2006/05/23
[#194251] Re: Proposing: A new Ruby Windows installer — "Curt Hibbs" <ml.chibbs@...> 2006/05/23

On 5/23/06, Enterprise Astronaut <enterpriseastro@enterprise.ch> wrote:

[#194259] Re: Proposing: A new Ruby Windows installer — Enterprise Astronaut <enterpriseastro@...> 2006/05/23

Curt Hibbs wrote:

[#194334] Re: Proposing: A new Ruby Windows installer — "Peter C. Verhage" <peter@...> 2006/05/24

Curt Hibbs wrote:

[#194338] Re: Proposing: A new Ruby Windows installer — "Curt Hibbs" <ml.chibbs@...> 2006/05/24

There is a slight problem here though. I don't have time to go into the

[#194340] Re: Proposing: A new Ruby Windows installer — Tim Hunter <rmagick@...> 2006/05/24

Curt Hibbs wrote:

[#194345] Re: Proposing: A new Ruby Windows installer — ara.t.howard@... 2006/05/24

On Wed, 24 May 2006, Curt Hibbs wrote:

[#194346] Overriding Time.now — "Robert MannI" <robmnl@...>

Hello!

13 messages 2006/05/24
[#194348] Re: Overriding Time.now — "Robert Dober" <robert.dober@...> 2006/05/24

On 5/24/06, Robert MannI <robmnl@gmail.com> wrote:

[#194352] Re: Overriding Time.now — "Robert MannI" <robmnl@...> 2006/05/24

Thanks alot Robert, that'll do it

[#194356] Re: Overriding Time.now — "Molitor, Stephen L" <Stephen.L.Molitor@...> 2006/05/24

One caution: I did what Robert suggested a while back. It works perfectly, but does wreak havoc with Test::Unit and rake test times reporting. Tests can appear to finish before they've started, etc. I ended up creating a CurrentTime class:

[#194362] RegExp Problem — "John W. Long" <ng@...>

Hi,

18 messages 2006/05/24
[#194371] Re: RegExp Problem — "A LeDonne" <aledonne.listmail@...> 2006/05/24

On 5/24/06, John W. Long <ng@johnwlong.com> wrote:

[#194379] Re: RegExp Problem — "John W. Long" <ng@...> 2006/05/24

A LeDonne wrote:

[#194367] Recipients of Google Summer of Code awards — dblack@...

Hello everyone --

25 messages 2006/05/24
[#194370] Re: [ANN] Recipients of Google Summer of Code awards — "Victor Shepelev" <vshepelev@...> 2006/05/24

From: dblack@rubypal.com [mailto:dblack@rubypal.com] On Behalf Of

[#194441] How does one transform UTF-8 encoded characters to ASCII? — Wes Gamble <weyus@...>

I'm a little embarrassed about asking this, but here goes...

14 messages 2006/05/24
[#194444] Re: How does one transform UTF-8 encoded characters to ASCII — Wes Gamble <weyus@...> 2006/05/24

Wes Gamble wrote:

[#194460] Re: How does one transform UTF-8 encoded characters to ASCII — "Paul Battley" <pbattley@...> 2006/05/24

On 25/05/06, Wes Gamble <weyus@att.net> wrote:> > I don't understand how to make my text, which now contains UTF-8> > characters, display correctly in say, Notepad. All of the entities are> > preceded by the character A-circumflex. My guess is that Notepad> > doesn't know how to handle UTF-8, for example.

[#194537] Equivalent of collections in Java — "Krekna Mektek" <krekna@...>

Hi list,

18 messages 2006/05/25
[#194544] Re: Equivalent of collections in Java — "Ryan Leavengood" <leavengood@...> 2006/05/25

On 5/25/06, Krekna Mektek <krekna@gmail.com> wrote:

[#194557] Re: Equivalent of collections in Java — "Robert Klemme" <shortcutter@...> 2006/05/25

2006/5/25, Ryan Leavengood <leavengood@gmail.com>:

[#194565] Re: Equivalent of collections in Java — "Ryan Leavengood" <leavengood@...> 2006/05/25

On 5/25/06, Robert Klemme <shortcutter@googlemail.com> wrote:

[#194672] Re: Equivalent of collections in Java — "Robert Klemme" <shortcutter@...> 2006/05/26

2006/5/25, Ryan Leavengood <leavengood@gmail.com>:

[#194620] Musical Instruments and Programming Languages (was RE: ANN: InfoQ Ruby Community "unlaunched") — "DEBAUN, STEVE [AG-Contractor/2400]" <steve.debaun@...>

Eh, looking at it from the other direction...

10 messages 2006/05/25
[#194650] Re: Musical Instruments and Programming Languages (was RE: ANN: InfoQ Ruby Community "unlaunched") — "M. Edward (Ed) Borasky" <znmeb@...> 2006/05/26

[#194652] ri broken? — "Warren Seltzer" <warrens@...>

I haven't been able to get ri or fxri to work right since I installed ruby 1.8.4 on my

15 messages 2006/05/26
[#194654] Re: ri broken? — James Britt <james_b@...> 2006/05/26

Warren Seltzer wrote:

[#194658] Method '!=' — "Victor Shepelev" <vshepelev@...>

Hello all.

20 messages 2006/05/26

[#194710] Dungeon Generation (#80) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

22 messages 2006/05/26

[#194721] FXRuby - Howto remember some default settings as specified by the user ? — Nuralanur@...

Dear all,

9 messages 2006/05/26

[#194739] new.ruby-lang.org (was: Re: Proposing: A new Ruby Windows installer) — "Michal Suchanek" <hramrach@...>

On 5/24/06, James Edward Gray II <james@grayproductions.net> wrote:> On May 23, 2006, at 4:46 PM, Douglas Livingstone wrote:>> > There was a nice redesign with some momenutum about it a while back,> > but it seems to have gotten lost somewhere :-(>> Not at all. We've made tons of progress on it just recently. Behold:>> http://new.ruby-lang.org/

27 messages 2006/05/26
[#194741] Re: new.ruby-lang.org (was: Re: Proposing: A new Ruby Windows installer) — James Edward Gray II <james@...> 2006/05/26

On May 26, 2006, at 9:37 AM, Michal Suchanek wrote:

[#194874] Re: new.ruby-lang.org (was: Re: Proposing: A new Ruby Windows installer) — "Michal Suchanek" <hramrach@...> 2006/05/27

On 5/26/06, James Edward Gray II <james@grayproductions.net> wrote:> On May 26, 2006, at 9:37 AM, Michal Suchanek wrote:>> > Yes, it looks very "professional". But the blue stripes on each side> > of the page take way too much space. Perhaps my browser window is> > larger than that of the person who designed the web?> >> > I say "professional" because it is that sort of good looking slick> > design that uses pixel alignement. It is probably the type of design> > that appeals to managers and computer illiterate people. If it happens> > that they can see it on their screens because they got a "normal"> > screen.> > Not that pixels are the root of all evil in web design, just almost> > all. Such web is not scalable, it is the same size (in pixels)> > irregardless of the user's screen (window) size and dpi.> >> > This is the standard these days, many web sites do it. And some do> > not. The fact that many did the same error is not an excuse for doing> > it again.> >> > I appreciate the work you put into the new design. But it looks like I> > will not be the one who appreciates the results of the work. I was> > afraid the new design will be like this, and so it is.>> This site is in a CMS, so it is trivial to replace the entire look of> the site, should we need to down the road. Let's try to keep the> focus where it belongs, on content and getting it launched.>

[#194745] Re: new.ruby-lang.org (was: Re: Proposing: A new Ruby Windows installer) — Mat Schaffer <schapht@...> 2006/05/26

[#194873] Re: new.ruby-lang.org (was: Re: Proposing: A new Ruby Windows installer) — "Michal Suchanek" <hramrach@...> 2006/05/27

On 5/26/06, Mat Schaffer <schapht@gmail.com> wrote:>> On May 26, 2006, at 10:37 AM, Michal Suchanek wrote:>> > On 5/24/06, James Edward Gray II <james@grayproductions.net> wrote:> >> On May 23, 2006, at 4:46 PM, Douglas Livingstone wrote:> >>> >> http://new.ruby-lang.org/> ...> > Not that pixels are the root of all evil in web design, just almost> > all. Such web is not scalable, it is the same size (in pixels)> > irregardless of the user's screen (window) size and dpi.> >> > This is the standard these days, many web sites do it. And some do> > not. The fact that many did the same error is not an excuse for doing> > it again.>> In my recent dealings with visual design people, I understand the> problem with scalable sites is that you don't know what you're line> length is going to be anymore. Which makes visual paragraph flow> hard to dictate. Hence the fixed widths. If that offers any> consolation.

[#194945] Re: new.ruby-lang.org (was: Re: Proposing: A new Ruby Windows installer) — Randy Kramer <rhkramer@...> 2006/05/27

On Saturday 27 May 2006 10:20 am, Michal Suchanek wrote:

[#194953] Re: new.ruby-lang.org (was: Re: Proposing: A new Ruby Windows installer) — James Edward Gray II <james@...> 2006/05/28

On May 27, 2006, at 6:23 PM, Randy Kramer wrote:

[#195026] Re: new.ruby-lang.org (was: Re: Proposing: A new Ruby Windows installer) — "C Erler" <erlercw@...> 2006/05/28

_why's try ruby website (http://tryruby.hobix.com/) is very nice for two

[#194788] Automatic code generation in vim. — "Minkoo Seo" <minkoo.seo@...>

Hi list.

13 messages 2006/05/26

[#194812] FasterCSV RCR? — James Edward Gray II <james@...>

I'm considering submitting my first RCR to add FasterCSV to the

28 messages 2006/05/26
[#194816] Re: FasterCSV RCR? — "pat eyler" <pat.eyler@...> 2006/05/26

On 5/26/06, James Edward Gray II <james@grayproductions.net> wrote:

[#194838] Re: FasterCSV RCR? — Hal Fulton <hal9000@...> 2006/05/27

pat eyler wrote:

[#194890] Re: FasterCSV RCR? — Yukihiro Matsumoto <matz@...> 2006/05/27

Hi,

[#194844] Ruby Threads... — ReggW <me@...>

What is the reason why Ruby doesn't use native threads...at least on

40 messages 2006/05/27
[#194845] Re: Ruby Threads... — Hal Fulton <hal9000@...> 2006/05/27

ReggW wrote:

[#194854] Re: Ruby Threads... — "Robert Klemme" <shortcutter@...> 2006/05/27

2006/5/27, Hal Fulton <hal9000@hypermetrics.com>:

[#194862] Re: Ruby Threads... — "Francis Cianfrocca" <garbagecat10@...> 2006/05/27

Regarding Solaris: its implementation of threads was what supplied the API

[#194863] Re: Ruby Threads... — ReggW <me@...> 2006/05/27

Francis Cianfrocca wrote:

[#194882] Re: Ruby Threads... — ara.t.howard@... 2006/05/27

On Sat, 27 May 2006, ReggW wrote:

[#194913] Re: Ruby Threads... — "Francis Cianfrocca" <garbagecat10@...> 2006/05/27

You're making a very interesting point, one I've made many times: you're

[#194973] Crazy thought -- Rubyish type conversion? — Daniel Schierbeck <daniel.schierbeck@...>

Now, I'm sure you'll all hate this, but I just had to post it.

31 messages 2006/05/28

[#195102] one click annihilator — rhubarb <rover.rhubarb@...>

Time to upgrade from 1.8.2 to 1.8.4 finally.

26 messages 2006/05/29
[#195130] Re: one click annihilator — tony summerfelt <snowzone5@...> 2006/05/29

On Tue, 30 May 2006 05:13:48 +0900, you wrote:

[#195152] Re: one click annihilator — "Curt Hibbs" <ml.chibbs@...> 2006/05/30

We'll add an alert dialog telling you that the entire dircetory will be

[#195153] Re: one click annihilator — Dave Burt <dave@...> 2006/05/30

Curt Hibbs wrote:

[#195316] Re: one click annihilator — "Gregory Brown" <gregory.t.brown@...> 2006/05/31

On 5/29/06, Dave Burt <dave@burt.id.au> wrote:

[#195294] Ruby Manual — Nathaniel Brown <nshb@...>

I just launched the all new Ruby Manual for 1.8.4 at:

17 messages 2006/05/31

[#195337] OO / Private verse Protected — "Paul D. Kraus" <paul.kraus@...>

Can someone give me an example of when a private method would be more

18 messages 2006/05/31
[#195341] Re: OO / Private verse Protected — Joost Diepenmaat <joost@...> 2006/05/31

On Thu, Jun 01, 2006 at 03:35:19AM +0900, Paul D. Kraus wrote:

[#195344] Re: OO / Private verse Protected — "Alexandru Popescu" <the.mindstorm.mailinglist@...> 2006/05/31

At least in Java these modifiers are quite usefull: a protected method

Re: Cool: nil is a class that can have methods

From: Rob Burrowes <rob@...>
Date: 2006-05-20 03:46:44 UTC
List: ruby-talk #193658
Probably total sacrilege, but I was using this to have "nil" as a  
valid value in  arithmetic and to treat numbers as if they were  
arrays (in a limited sense). The latter is easy to fix, by storing  
all numbers as 1 element arrays.  This solves the iterator on "nil"  
too. All nil values will be in an array, so I just need to iterate on  
the array.

Using "nil" in arithmetic is to differentiate  the no data state  
(nil), from having seen a data point, even a 0 value. Probably best  
to subclass Fixnum and build my own objects for arithmetic. Altering  
the numeric classes is definitely a tempting thing though.

I have XML definitions of the source log file and the resulting  
summary I want to get.
e.g.
a
<src>
	...
         <column id="sourceadjacentaddress">
                 <type>string</type>
         </column>
         <column id="destadjacentaddress">
                 <type>string</type>
         </column>
	...
</src>	
<rslt>
	...
         <column id="link1">
           <test exp="@src_sourceadjacentaddress == '00-D0-41-68- 
CF-56' || @src_destadjacentaddress == '00-D0-41-68-CF-56'"> </test>
           <value exp= "+= @src_d_tooctets+src_d_fromoctets">  </value>
           <type>int</type>
           <scale exp="/@groupby_duration.megabyte"> </scale>
           <format>%d</format>
         </column>
	...
</rslt>

This gets turned into ruby code that parses the log. It uses modified  
column name as variables. The test expression determines if the  
output column is modified, and the value expression is used to set or  
alter the value. If the values start as nil, then adding a value,  
will initialise them. Meeting further values, will result in them  
being added on.

If multiple results are required (e.g. for a histogram), then a value  
expression like
	<value exp= "+= [@src_d_tooctets, @src_d_fromoctets]">  </value>
results in the to and from traffic being added to an array result  
called @rslt_link1, rather than a simple numeric result.


I did this by I adding "each" and "each_with_index" to every Object,  
thus allowing numbers and nil values to have an iterator.
I replaced the Fixnum + with one that would add arrays to numbers,  
giving an array result or Fixnum result, depending on the value being  
added.
Also the Arrays class was modified to add two arrays, by adding the  
elements at the same array index to each other, not concatenating the  
arrays.
I then committed the ultimate sin, and added a plus method to nil.

After all these hacks, I can
	add a number to an array, and the first element will get altered.
	add an array to a number, and get an Array with the first element  
altered
	add a number or Array to nil, and get that number or the Array



i.e.

class Object
	def each
		if self != nil then yield(self) end
	end
	def each_with_index
		if self != nil then yield(self,0) end
	end
	def length
		if self == nil then 0 else 1 end
	end
end

class Array
	def +(value)
		value.each_with_index { |x,i| self[i] += x }
		self
	end
end

class Fixnum
	alias oldPlus +
	def +(value)
		if(value.length == 1)
			self.oldPlus(value)
		else
			value.+(self)
		end
	end
end

class NilClass
	def +(value)
		value
	end
end

a = [1,3]
a += [5,2]
a.each {|b| puts b }
puts

a = 1
a += 2
a.each {|b| puts b }
puts

a += [5,2]
a.each {|b| puts b }
puts

a = nil
a += 10
a.each {|b| puts b }
puts

a = nil
a += [3,8]
a.each {|b| puts b }
puts

a = ["hello","I"]
a += [" world"," repent"]
a.each {|b| print b, " " }
puts


On 20/05/2006, at 2:18 PM, Sam Roberts wrote:

> Quoting rob@cs.auckland.ac.nz, on Sat, May 20, 2006 at 09:50:49AM  
> +0900:
>> In the nil case, I wanted it to iterate and be printed as in the same
>> way as a non-nil value. In the plot data, a nil prints as '-'.  I
>> hadn't thought of other code expecting to fail when the value was nil
>> or not an array.  They probably wont want nil to have a to_s()
>> returning  '-' either, not that anything has failed doing this, in
>> this instance.
>
> The temptation to change the core classes to work a little more  
> like you
> want is almost overwhelming... at least I have found it so. I guess in
> this case you could do:
>
> def gnuplot_each(v, &proc)
>   if v.respond_to? :each
>     v.each &proc
>   else
>     yield v
>   end
> end
>
> then instead of doing
>
>   data.each {..}
>
> you could do
>
>   gnuplot_each(data) {...}
>
>
> cheers,
> Sam
>
>


In This Thread