[#296620] linux: getting the "load" values without using "top" — James Dinkel <jdinkel@...>

I would like to get some of the information provided by the "top"

12 messages 2008/04/01

[#296625] should I use a database or a flat file? — James Dinkel <jdinkel@...>

I need to store some information with my ruby program and I am not sure

23 messages 2008/04/01
[#296628] Re: should I use a database or a flat file? — "Robert Klemme" <shortcutter@...> 2008/04/01

2008/4/1, James Dinkel <jdinkel@gmail.com>:

[#296633] Re: should I use a database or a flat file? — James Dinkel <jdinkel@...> 2008/04/01

[#296646] Re: should I use a database or a flat file? — "Todd Benson" <caduceass@...> 2008/04/01

On Tue, Apr 1, 2008 at 10:32 AM, James Dinkel <jdinkel@gmail.com> wrote:

[#296654] Does Ruby support exception wrapping (exception chaining)? — "Hartin, Brian" <Brian.Hartin@...>

I could not find any information about this, except regarding DRb.

16 messages 2008/04/01

[#296832] confused by 'test'.gsub(/.*/,'x') — Wybo Dekker <wybo@...>

Why do I get "xx" instead of "x" in the following:

14 messages 2008/04/02

[#296849] ruby constructor return value? — Brendan Stennett <brendan6@...>

How do I alert an error if it occurs in an object's constructor?

13 messages 2008/04/02

[#296984] using a range as a key — Michael Linfield <globyy3000@...>

I'm trying to achieve the effect of having a range of integers as a hash

14 messages 2008/04/03

[#297004] Using a string as executable code — Peter Marks <petertmarks@...>

I need to store one line method calls as strings in my db and then apply

14 messages 2008/04/04

[#297105] The ||= assignment operator — Belorion <belorion@...>

It was my understanding that the ||= assignment operator assigned the value

34 messages 2008/04/04
[#297114] Re: The ||= assignment operator — Chris Shea <cmshea@...> 2008/04/04

On Apr 4, 1:30 pm, Paul Mucur <mu...@waferbaby.com> wrote:

[#297141] Re: The ||= assignment operator — Pe, Botp <botp@...> 2008/04/05

From: Chris Shea [mailto:cmshea@gmail.com]=20

[#297234] Is possible to define various methods at same time? — Iñaki Baz Castillo <ibc@...>

Hi, is possible to define various methods in a single declaration? somethin=

17 messages 2008/04/06

[#297268] Do arrays use up alot of memory space? — Clement Ow <clement.ow@...>

I just started ruby not too long ago and I'm really new to the language.

16 messages 2008/04/07

[#297365] Ruby’s not ready - an indepth essay — "Song Ma" <songmash@...>

F.Y.I

83 messages 2008/04/08
[#297369] Re: Ruby’s not ready - an indepth essay — "Avdi Grimm" <avdi@...> 2008/04/08

2008/4/7 Song Ma <songmash@gmail.com>:

[#297375] Re: Ruby’s not ready - an indepth essay — "Song Ma" <songmash@...> 2008/04/08

Interesting. But what I am thinking about is not the attitude of the author,

[#297417] Re: Ruby’s not ready - an indepth essay — "Rob Sanheim" <rsanheim@...> 2008/04/08

2008/4/7 Song Ma <songmash@gmail.com>:

[#297430] Re: Ruby’s not ready - an indepth essay — "M. Edward (Ed) Borasky" <znmeb@...> 2008/04/08

Rob Sanheim wrote:

[#297437] Re: Ruby’s not ready - an indepth essay — Phillip Gawlowski <cmdjackryan@...> 2008/04/08

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

[#297441] Re: Ruby’s not ready - an indepth essay — Dave Thomas <dave@...> 2008/04/08

[#297444] Re: Ruby’s not ready - an indepth essay — "Jeremy McAnally" <jeremymcanally@...> 2008/04/08

I agree about the API docs. There has been talk recently about

[#297446] Re: Ruby’s not ready - an indepth essay — Dave Thomas <dave@...> 2008/04/08

[#297472] Re: Ruby’s not ready - an indepth essay — "Jeremy McAnally" <jeremymcanally@...> 2008/04/08

Someone has suggested that but I haven't looked at it. I haven't

[#297479] Re: Ruby’s not ready - an indepth essay — "s.ross" <cwdinfo@...> 2008/04/08

On Apr 8, 2008, at 12:05 PM, Jeremy McAnally wrote:

[#297484] Re: Ruby’s not ready - an indepth essay — "Kyle Schmitt" <kyleaschmitt@...> 2008/04/08

Php's docs are good, really good. But I always felt that it's because

[#297386] heavy loop functions slow — Michael Linfield <globyy3000@...>

Alright so I was playing with my large amounts of data and ran into yet

13 messages 2008/04/08

[#297471] capitalizing words — Peter Bailey <pbailey@...>

Hi,

17 messages 2008/04/08

[#297512] output of a method to file? — Zoe Phoenix <dark_sgtphoenix@...>

Can anybody tell me how to take the output of a method and save it to a

16 messages 2008/04/08
[#297516] Re: output of a method to file? — Phillip Gawlowski <cmdjackryan@...> 2008/04/08

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

[#297518] Re: output of a method to file? — Zoe Phoenix <dark_sgtphoenix@...> 2008/04/09

Maybe it would help if I posted the code, I'm not sure I understand...

[#297522] Re: output of a method to file? — Phillip Gawlowski <cmdjackryan@...> 2008/04/09

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

[#297526] Re: output of a method to file? — Zoe Phoenix <dark_sgtphoenix@...> 2008/04/09

hm, let me re-phrase... I only have 9 items in that array, right? How

[#297633] My error or bug in "attr_reader" ? — Hexren <me@...>

Hi guys.

13 messages 2008/04/09

[#297638] FXRuby versus Tk — Alex DeCaria <alex.decaria@...>

I've done some GUI program with Ruby/Tk, and am able to use it fairly

16 messages 2008/04/09

[#297724] OT: "Unix" in Japanese — Chad Perrin <perrin@...>

Since I figure there are probably a few Japanese Unix hackers on this

13 messages 2008/04/10

[#297819] RubyGems 1.1.1 — Eric Hodel <drbrain@...7.net>

Release 1.1.1 fixes some bugs.

21 messages 2008/04/11

[#297827] how to create random object to a particular ruby object ? — Pokkai Dokkai <bad_good_lion@...>

how to create random object to a particular ruby object ?

22 messages 2008/04/11
[#297839] Re: how to create random object to a particular ruby object ? — "Robert Klemme" <shortcutter@...> 2008/04/11

2008/4/11, Pokkai Dokkai <bad_good_lion@yahoo.com>:

[#297845] Re: how to create random object to a particular ruby object ? — "Robert Dober" <robert.dober@...> 2008/04/11

On Fri, Apr 11, 2008 at 1:16 PM, Robert Klemme

[#297844] How to duplicate a object changing the class without attributes memory copy — "Iñaki Baz Castillo" <ibc@...>

SGksIEknbSBkb2luZyBhIHNlcnZlciBhbmQgd2FudCB0byBhdm9pZCBtZW1vcnkgaW5uZWNlc2Fy

12 messages 2008/04/11

[#297884] delete_if, select and (lack of) delete_if!, self.POLS == false — Saku Ytti <saku@...>

Hey everyone,

24 messages 2008/04/11
[#297887] Re: delete_if, select and (lack of) delete_if!, self.POLS == false — "David A. Black" <dblack@...> 2008/04/11

Hi --

[#297890] Re: delete_if, select and (lack of) delete_if!, self.POLS == false — Saku Ytti <saku@...> 2008/04/11

On (2008-04-12 01:32 +0900), David A. Black wrote:

[#297892] Re: delete_if, select and (lack of) delete_if!, self.POLS == false — "Robert Dober" <robert.dober@...> 2008/04/11

On Fri, Apr 11, 2008 at 6:46 PM, Saku Ytti <saku@ytti.fi> wrote:

[#297899] Re: delete_if, select and (lack of) delete_if!, self.POLS == false — Saku Ytti <saku@...> 2008/04/11

On (2008-04-12 02:08 +0900), Robert Dober wrote:

[#297900] Re: delete_if, select and (lack of) delete_if!, self.POLS == false — Saku Ytti <saku@...> 2008/04/11

On (2008-04-12 02:26 +0900), Saku Ytti wrote:

[#297914] Re: delete_if, select and (lack of) delete_if!, self.POLS == false — "Robert Dober" <robert.dober@...> 2008/04/11

On Fri, Apr 11, 2008 at 7:31 PM, Saku Ytti <saku@ytti.fi> wrote:

[#297915] Re: delete_if, select and (lack of) delete_if!, self.POLS == false — Saku Ytti <saku@...> 2008/04/11

On (2008-04-12 04:04 +0900), Robert Dober wrote:

[#297917] Re: delete_if, select and (lack of) delete_if!, self.POLS == false — "David A. Black" <dblack@...> 2008/04/11

Hi --

[#297928] How to check record duplication before saving? — Frank Tsao <shuhao.tsao@...>

Hi, everyone,

26 messages 2008/04/11
[#297932] Re: How to check record duplication before saving? — Phillip Gawlowski <cmdjackryan@...> 2008/04/11

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

[#297933] Re: How to check record duplication before saving? — Dave Thomas <dave@...> 2008/04/11

[#297936] Re: How to check record duplication before saving? — "RubyTalk@..." <rubytalk@...> 2008/04/11

If you are using Rails and migrations

[#297939] Re: How to check record duplication before saving? — Frank Tsao <shuhao.tsao@...> 2008/04/11

RubyTalk@gmail.com wrote:

[#297948] Re: How to check record duplication before saving? — "Todd Benson" <caduceass@...> 2008/04/11

On Fri, Apr 11, 2008 at 6:01 PM, Frank Tsao <shuhao.tsao@gmail.com> wrote:

[#297998] Re: How to check record duplication before saving? — "Todd Benson" <caduceass@...> 2008/04/12

On Fri, Apr 11, 2008 at 6:43 PM, Todd Benson <caduceass@gmail.com> wrote:

[#298017] Re: How to check record duplication before saving? — "ara.t.howard" <ara.t.howard@...> 2008/04/12

[#298027] Re: [OT] Re: How to check record duplication before saving? — "Todd Benson" <caduceass@...> 2008/04/13

On Sat, Apr 12, 2008 at 3:55 PM, ara.t.howard <ara.t.howard@gmail.com> wrote:

[#298031] Re: [OT] Re: How to check record duplication before saving? — "Todd Benson" <caduceass@...> 2008/04/13

On Sat, Apr 12, 2008 at 7:14 PM, Todd Benson <caduceass@gmail.com> wrote:

[#297935] Looking for Hidden Gems — James Gray <james@...>

I'm hunting for some gems that are under loved, off the beaten path,

13 messages 2008/04/11

[#298122] How to reliably setup require path — Christian Johansen <chrisjoha@...>

I'm writing my first Ruby command line application (beyond a simple

12 messages 2008/04/14

[#298145] noob 'why doesn't this work' question — Vincent Angeloni <nospam7272@...>

Hi and greetings to all group members!

17 messages 2008/04/14

[#298193] Is there a One True Postgres interface? Is Ruby-postgres maintained? — John Carter <john.carter@...>

Is there a One true Ruby Interface to Postgres?

53 messages 2008/04/14
[#298200] Re: Is there a One True Postgres interface? Is Ruby-postgres maintained? — Reid Thompson <reid.thompson@...> 2008/04/14

John Carter wrote:

[#298203] Re: Is there a One True Postgres interface? Is Ruby-postgresmaintained? — John Carter <john.carter@...> 2008/04/14

On Tue, 15 Apr 2008, Reid Thompson wrote:

[#298205] Re: Is there a One True Postgres interface? Is Ruby-postgresmaintained? — John Carter <john.carter@...> 2008/04/14

On Tue, 15 Apr 2008, John Carter wrote:

[#298223] Re: Is there a One True Postgres interface? Is Ruby-postgresmaintained? — Chad Perrin <perrin@...> 2008/04/15

On Tue, Apr 15, 2008 at 08:44:31AM +0900, John Carter wrote:

[#298231] Re: Is there a One True Postgres interface? Is Ruby-postgresmaintained? — John Carter <john.carter@...> 2008/04/15

On Tue, 15 Apr 2008, Chad Perrin wrote:

[#298339] Re: Is there a One True Postgres interface? Is Ruby-postgresmaintained? — Jeff Davis <ruby@...> 2008/04/15

On Tue, 2008-04-15 at 08:41 +0900, John Carter wrote:

[#298381] Re: Is there a One True Postgres interface? Is Ruby-postgresmaintained? — "M. Edward (Ed) Borasky" <znmeb@...> 2008/04/15

Jeff Davis wrote:

[#298387] Re: Is there a One True Postgres interface? Is Ruby-postgresmaintained? — Phillip Gawlowski <cmdjackryan@...> 2008/04/16

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

[#298484] Re: Is there a One True Postgres interface? Is Ruby-postgresmaintained? — Thomas Kellerer <YQDHXVLMUBXG@...> 2008/04/16

Phillip Gawlowski, 16.04.2008 02:08:

[#298488] Re: Is there a One True Postgres interface? Is Ruby-postgresmaintained? — Phillip Gawlowski <cmdjackryan@...> 2008/04/16

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

[#298534] Re: Is there a One True Postgres interface? Is Ruby-postgresmaintained? — Jeff Davis <ruby@...> 2008/04/16

On Wed, 2008-04-16 at 08:49 +0900, M. Edward (Ed) Borasky wrote:

[#302685] Re: Is there a One True Postgres interface? Is Ruby-postgresmaintained? — Peter Booth <pbooth@...> 2008/05/23

I can see Jeff's point. If both libpq and the Postgres JDBC drivers

[#302687] Yup, it's call SQLite! :-)) Re: Is there a One True Postgresinterface? Is Ruby-postgresmaintained? — John Carter <john.carter@...> 2008/05/23

Having started this huge thread on PostgresSQL, I found...

[#298266] Ada vs Ruby — Marc Heiler <shevegen@...>

Hi,

101 messages 2008/04/15
[#298275] Re: Ada vs Ruby — Michael Neumann <mneumann@...> 2008/04/15

Marc Heiler wrote:

[#298383] Re: Ada vs Ruby — Eleanor McHugh <eleanor@...> 2008/04/15

On 15 Apr 2008, at 13:28, Michael Neumann wrote:

[#298400] Re: Ada vs Ruby — "Rick DeNatale" <rick.denatale@...> 2008/04/16

On Tue, Apr 15, 2008 at 7:54 PM, Eleanor McHugh

[#298403] Re: Ada vs Ruby — Phillip Gawlowski <cmdjackryan@...> 2008/04/16

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

[#298472] Re: Ada vs Ruby — Eleanor McHugh <eleanor@...> 2008/04/16

On 16 Apr 2008, at 03:40, Phillip Gawlowski wrote:

[#298476] Re: Ada vs Ruby — Phillip Gawlowski <cmdjackryan@...> 2008/04/16

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

[#298513] Re: Ada vs Ruby — Eleanor McHugh <eleanor@...> 2008/04/16

On 16 Apr 2008, at 14:42, Phillip Gawlowski wrote:

[#298522] Re: Ada vs Ruby — Phillip Gawlowski <cmdjackryan@...> 2008/04/16

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

[#298641] Re: Ada vs Ruby — "Rick DeNatale" <rick.denatale@...> 2008/04/17

On Wed, Apr 16, 2008 at 12:57 PM, Phillip Gawlowski

[#298651] Re: Ada vs Ruby — Phillip Gawlowski <cmdjackryan@...> 2008/04/17

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

[#298540] Re: Ada vs Ruby — fburton@... (Francis Burton) 2008/04/16

In article <5E300D89-09B9-4788-9E43-C2517C0E0A3C@games-with-brains.com>,

[#298577] Re: Ada vs Ruby — Eleanor McHugh <eleanor@...> 2008/04/17

On 16 Apr 2008, at 19:40, Francis Burton wrote:

[#298626] Re: Ada vs Ruby — "Eivind Eklund" <eeklund@...> 2008/04/17

On Thu, Apr 17, 2008 at 3:21 AM, Eleanor McHugh

[#298267] checking connection to server:port [socket] — Kr Alfabeta <kristis@...>

hi,

17 messages 2008/04/15

[#298279] at_exit handlers and Process.kill — Daniel Berger <djberg96@...>

Hi all,

22 messages 2008/04/15

[#298318] Hash or bidimensional Array when key is case insensitive? — "Iñaki Baz Castillo" <ibc@...>

SGksIEkndmUgdG8gdGFrZSBhIGRlY2lzc2lvbiBhYm91dCB1c2luZyBhbiBiaWRpbWVuc2lvbmFs

8 messages 2008/04/15

[#298369] Windows, Net::SSH: how do I use a private key (w / password) — James Dinkel <jdinkel@...>

Private key authentication works with this user, I know because I use it

11 messages 2008/04/15

[#298386] Check if remote server exists — Jeff Miller <loadeddesigns@...>

Hello,

11 messages 2008/04/16

[#298408] Parallel for loop — Fredrik <fredjoha@...>

There doesn't seem to be any EASY way of doing a parallel computation

24 messages 2008/04/16

[#298589] Ruby Hero Awards — Gregg Pollack <GreggPollack@...>

Hey guys,

16 messages 2008/04/17

[#298608] thread question — Zoe Phoenix <dark_sgtphoenix@...>

Okay, I took someone's advice in an earlier post I made on how to poison

13 messages 2008/04/17

[#298629] How to "break" a "case-when" ? — "Iñaki Baz Castillo" <ibc@...>

SGksIGlzIG5vdCBwb3NzaWJsZSB0byB0ZXJtaW5hdGUgdGhlIGJvZHkgb2YgYSAid2hlbiIgc3Rh

16 messages 2008/04/17
[#298633] Re: How to "break" a "case-when" ? — "Stefan Lang" <perfectly.normal.hacker@...> 2008/04/17

2008/4/17, I=F1aki Baz Castillo <ibc@aliax.net>:

[#298635] Re: How to "break" a "case-when" ? — "Iñaki Baz Castillo" <ibc@...> 2008/04/17

MjAwOC80LzE3LCBTdGVmYW4gTGFuZyA8cGVyZmVjdGx5Lm5vcm1hbC5oYWNrZXJAZ21haWwuY29t

[#298711] system(ping) — Heinrich Piard <linux@...>

Hi,

15 messages 2008/04/17

[#298715] When are lambdas needed? — Stedwick <philip.brocoum@...>

I have seen many tutorials on the Internet explaining where lambdas

26 messages 2008/04/17

[#298739] forkoff - parallel processing for ruby enumerables — ara howard <ara.t.howard@...>

23 messages 2008/04/18

[#298883] why doesn't ruby have generics? — thufir <hawat.thufir@...>

Is it because Ruby is dynamic, or something else?

18 messages 2008/04/19

[#298915] Triangle Area (#160) — Matthew Moss <matthew.moss@...>

Apologies for the latest... Some busy stuff this week in "real life."

22 messages 2008/04/19

[#298982] Counting Program — "Will Mueller" <will.liljon@...>

I recently actually started "studying" ruby again and attempted to

18 messages 2008/04/20
[#298983] Re: Counting Program — Phillip Gawlowski <cmdjackryan@...> 2008/04/20

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

[#299006] Re: Counting Program — Dan Diebolt <dandiebolt@...> 2008/04/21

>it's as simple as ...

[#298986] A couple of questions regarding class design — "Michael W. Ryder" <_mwryder@...>

I am part way through implementing a Rational math class to further my

35 messages 2008/04/20
[#299079] Re: A couple of questions regarding class design — "Robert Dober" <robert.dober@...> 2008/04/21

On Sun, Apr 20, 2008 at 11:45 PM, Michael W. Ryder

[#299083] Re: A couple of questions regarding class design — "Michael W. Ryder" <_mwryder@...> 2008/04/21

Robert Dober wrote:

[#299112] Re: A couple of questions regarding class design — Robert Klemme <shortcutter@...> 2008/04/22

On 21.04.2008 23:28, Michael W. Ryder wrote:

[#299170] Re: A couple of questions regarding class design — "Michael W. Ryder" <_mwryder@...> 2008/04/22

Robert Klemme wrote:

[#299175] Re: A couple of questions regarding class design — "Robert Dober" <robert.dober@...> 2008/04/22

On Tue, Apr 22, 2008 at 9:15 PM, Michael W. Ryder

[#299194] Re: A couple of questions regarding class design — "Michael W. Ryder" <_mwryder@...> 2008/04/22

Robert Dober wrote:

[#299202] Re: A couple of questions regarding class design — "Robert Dober" <robert.dober@...> 2008/04/22

On Tue, Apr 22, 2008 at 10:55 PM, Michael W. Ryder

[#299234] Re: A couple of questions regarding class design — Robert Klemme <shortcutter@...> 2008/04/23

On 23.04.2008 00:44, Robert Dober wrote:

[#299012] Accessing Windows actions(Shutdow.Restart) — Raveendran Perumalsamy <jazzezravi@...>

Hi All,

14 messages 2008/04/21
[#299043] Re: Accessing Windows actions(Shutdow.Restart) — "Gordon Thiesfeld" <gthiesfeld@...> 2008/04/21

On Mon, Apr 21, 2008 at 1:25 AM, Raveendran Perumalsamy

[#299068] Barby 0.1 - Ruby barcode generator that doesn't suck (that much) — Tore Darell <toredarell@...>

This is something I released a while ago, but I thought I'd announce

10 messages 2008/04/21

[#299204] Extending Hast class with custom [] []= methods — Iñaki Baz Castillo <ibc@...>

Hi, I'd like to extend Hash class [] and []=3D methods in order to find a k=

12 messages 2008/04/22

[#299222] Extract date from filenames using regex — Clement Ow <clement.ow@...>

I have my code which looks like this:

13 messages 2008/04/23
[#299228] Re: Extract date from filenames using regex — "Daniel Finnie" <dan@...> 2008/04/23

Hi,

[#299239] Re: Extract date from filenames using regex — Clement Ow <clement.ow@...> 2008/04/23

Daniel Finnie wrote:

[#299273] HTTP::Post - HTTP::Get (Can someone help me?) — Fred <nospam@...>

Hello,

18 messages 2008/04/23
[#299318] Re: HTTP::Post - HTTP::Get (Can someone help me?) — darren kirby <bulliver@...> 2008/04/23

quoth the Fred:

[#299387] Re: HTTP::Post - HTTP::Get (Can someone help me?) — Fred <nospam@...> 2008/04/24

Thanx Darren for the info

[#299407] Re: HTTP::Post - HTTP::Get (Can someone help me?) — Fred <nospam@...> 2008/04/24

resp.body is a php page => purpose is to see of step 1 is working

[#299408] Re: HTTP::Post - HTTP::Get (Can someone help me?) — Fred <nospam@...> 2008/04/24

The First step is to insert javascript into PHP page.

[#299360] Email/SMTP::NET Problems — Brantley Shields <brantley_shields@...>

Greetings,

26 messages 2008/04/24

[#299463] Pointer concept in Ruby ? — "Iñaki Baz Castillo" <ibc@...>

SGksIEknZCBsaWtlIHRvIGhhdmUgYSB2YXJpYWJsZSBwb2ludGluZyB0byBhIEhhc2gvQXJyYXkg

16 messages 2008/04/24

[#299479] Function appends same value to string based on number of function calls — vannuys@...

Hi Guys,

9 messages 2008/04/24

[#299508] pretty folder tree script — John <john.d.perkins@...>

Hola,

20 messages 2008/04/24

[#299531] Is there any nomenclature for private methods? — Iñaki Baz Castillo <ibc@...>

Hi, I don't like the way of declaring publi and private methods since it's =

12 messages 2008/04/24

[#299585] Ruby Minimalism — aidy <aidy.lewis@...>

Hi,

16 messages 2008/04/25

[#299608] Array inject function problem — Inbroker Adams <dadravu@...>

Hello Rubyists,

19 messages 2008/04/25

[#299701] help re recording/replaying (i.e. automating) HTTP interactions to a web-site??? — "Greg Hauptmann" <greg.hauptmann.ruby@...>

Hi,

13 messages 2008/04/26
[#299705] Re: help re recording/replaying (i.e. automating) HTTP interactions to a web-site??? — Peter Szinek <peter@...> 2008/04/26

Greg,

[#299749] Re: help re recording/replaying (i.e. automating) HTTP interactions to a web-site??? — "Greg Hauptmann" <greg.hauptmann.ruby@...> 2008/04/26

sounds good, it support:

[#299750] Re: help re recording/replaying (i.e. automating) HTTP interactions to a web-site??? — "Greg Hauptmann" <greg.hauptmann.ruby@...> 2008/04/26

PS. 4th question Peter I forgot:

[#299714] All occurances of a character in a string — Raghu Go <rgowka1@...>

Hi - I am trying to figure out the ruby way of printing all occurances

14 messages 2008/04/26

[#299742] Typed ruby — Joe K <jkauzlar@...>

I realize there is a holy war attached to this subject, but it would be nice

15 messages 2008/04/26

[#299768] Transpose a large file(>2GB) — Ams Lo <rgowka1@...>

Hi -

18 messages 2008/04/27

[#299798] Ruby For Hackers — Luka Lukako <dezertir@...>

Anybody know how to writing Keyloggers in ruby, or trojans or other

21 messages 2008/04/27
[#299805] Re: Ruby For Hackers — Tim Hunter <TimHunter@...> 2008/04/27

Luka Lukako wrote:

[#299863] Apache2 conf and mod_ruby (mac os x 10.4.11) — unbewusst.sein@... (Une B騅ue)

15 messages 2008/04/28

[#299946] Array#first is not Array#[0] — Fredrik <fredjoha@...>

I made a class that is a subclass of Array :

19 messages 2008/04/29

[#300023] rails is a mess! — jOhn <netcam@...>

I have to say that rails is such a mess right now. Notta working and it

15 messages 2008/04/29

[#300077] Levenshtein_distance and recreate the string — Ams Lo <rgowka1@...>

Hi -

12 messages 2008/04/30

[#300078] What are the weaknesses in Ruby? — tenxian <hi.steven.tu@...>

What are the disadvantages of Ruby?

18 messages 2008/04/30

[#300135] How to create "def method(item)= (value)" ? — "Iñaki Baz Castillo" <ibc@...>

SGksIGlzIGl0IG5vdCBwb3NzaWJsZSB0byBjcmVhdGUgYSBtZXRob2QgdG8gdXNlIGluIHRoaXMg

28 messages 2008/04/30
[#300140] Re: How to create "def method(item)= (value)" ? — Phillip Gawlowski <cmdjackryan@...> 2008/04/30

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

[#300141] Re: How to create "def method(item)= (value)" ? — "David A. Black" <dblack@...> 2008/04/30

Hi --

[#300144] Re: How to create "def method(item)= (value)" ? — Phillip Gawlowski <cmdjackryan@...> 2008/04/30

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

[#300157] Search string for occurneces of words stored in array — John Butler <johnnybutler7@...>

Hi,

15 messages 2008/04/30

Re: Ruby and object paradigm

From: "Rick DeNatale" <rick.denatale@...>
Date: 2008-04-23 02:57:06 UTC
List: ruby-talk #299221
On Tue, Apr 22, 2008 at 10:35 PM, Andres <andresgaragiola@gmail.com> wrote:
> Hi ruby list,
>
>  I=B4m a smalltalk developer and now i'm beginning with Ruby. I found
>  words like "puts" on the ruby syntax that i don=B4t understand.
>
>  The basic object paradigm formula is "receiver + message", an emisor
>  send a message to a receiver.
>
>  Is puts a message? if the answer is true, then what is the receiver?
>  and when is "puts" implemented? if the answer is false, then What is
>  "puts"?

puts is a message.  The puts method is implemented in the Kernel
module which is included in the Object class.

In Ruby, in most cases the self pseudo-variable is not required, so

   puts
is equivalent to
  self.puts

At the top-level in ruby there is a singleton object which is bound to self=
.

>  A smalltalk code similar to ruby code
>   >> puts "Hello world"
>
>  is
>
>   Transcript show: 'Hello world'

Kernel#puts writes its output to stdout.  Other Ruby classes also
implement puts, for example IO#puts writes the output to receiver, so
you can send puts to, say a file object, which is a better analog to
Smalltalk's Transcript.show:

>  when "Transcript" is a global variable and the receiver of the message
>  #show: and 'Hello world' is an argument of the message.
>
>  other case is the bifurcation example
>
>  class Integer
>    def factorial
>        if self =3D=3D 0
>             return 1
>        else
>             return self * ((self-1).factorial)
>        end
>    end
>  end
>
>  in smalltalk
>
>   factorial
>
>    ^self =3D 0 ifTrue: [ 1 ] ifFalse: [ self * ((self-1) factorial) ]
>
>  the message #ifTrue:ifFalse: is implemented in the class Boolean and
>  in his subclasses, and receive two block argmuments, the behavior if
>  the boolean is true and the behavior if the boolean is false. I don=B4t
>  understand like it works in ruby, when is implemented the message "if
>  else"?

This is different in Smalltalk and Ruby.  In Ruby control flow is done
via compiled code control transfer rather than message send.

Of course most Smalltalk compilers don't really implement
ifTrue:ifFalse: and similar methods via message sending either,
instead they compile such 'messages' to branching byte codes, perhaps
with a fallback if the 'receiver' isn't a boolean.  There are other
areas where Smalltalk implementations 'cheat', for example, sending
value to a block often doesn't really send a message, and some
Smaltalks have little head scratching puzzles such as a value method
in Block which looks like

value
   ^self.value

which is only there in case someone does something like

    aBlock perform: #value

I do know a bit about Smalltalk, or at least I used to, I was a
founding member, and  Secretary of X3J20, the ANSI Smalltalk standards
commitee.

--=20
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

In This Thread