[#17198] enhancing Ruby error messages for out of the bound constant Fixnum? — Guillaume Cottenceau <gc@...>

Hi,

11 messages 2001/07/03

[#17206] /* */ comments — Dave Thomas <Dave@...>

43 messages 2001/07/04
[#17207] Re: /* */ comments — Stephen White <spwhite@...> 2001/07/04

On Wed, 4 Jul 2001, Dave Thomas wrote:

[#17251] Re: /* */ comments — Sean Chittenden <sean-ruby-talk@...> 2001/07/04

> Over on http://www.rubygarden.org, dv posted a patch to parse.y that

[#17268] Re: /* */ comments — matz@... (Yukihiro Matsumoto) 2001/07/05

Hi,

[#17212] Ruby 1.6.4 Win32 .exe installer question — A Bull in the China Shop of Life <feoh@...>

Folks;

11 messages 2001/07/04

[#17225] Re: /* */ comments — Arnaud Meuret <ameuret@...4you.com>

|From: Mark Slagell [mailto:ms@iastate.edu]

17 messages 2001/07/04

[#17240] Ruby Mascot/logo — "Kevin Powick" <kpowick@...>

Hi there.

14 messages 2001/07/04

[#17281] Inheritance — "Aleksei Guzev" <aleksei.guzev@...>

15 messages 2001/07/05
[#17282] Re: Inheritance — ts <decoux@...> 2001/07/05

>>>>> "A" == Aleksei Guzev <aleksei.guzev@bigfoot.com> writes:

[#17348] Adding a method to a class at the top-level — Guillaume Cottenceau <gc@...>

Comrades,

14 messages 2001/07/05

[#17482] Aliases for class methods — "HarryO" <harryo@...>

Say I wanted to write my own version of File#open that adds some

23 messages 2001/07/08

[#17511] Ruby on Slashdot — jweirich@...

Ruby is currently mentioned on Slashdot. I posted some references.

29 messages 2001/07/08
[#17512] Re: Ruby on Slashdot — Tobias Reif <tobiasreif@...> 2001/07/08

Interesting...

[#17518] Re: Ruby on Slashdot — matz@... (Yukihiro Matsumoto) 2001/07/09

Hi,

[#17519] Re: Ruby on Slashdot — "James (ruby-talk)" <ruby@...> 2001/07/09

> |I thought about that too; what about Ruby being a standard?

[#17525] Re: Ruby on Slashdot — matz@... (Yukihiro Matsumoto) 2001/07/09

Hi,

[#17536] Re: Ruby on Slashdot — David Alan Black <dblack@...> 2001/07/09

Hello --

[#17572] Re: Constants and Variables — "HarryO" <harryo@...>

> If you want objects that don't change, try Object#freeze,

25 messages 2001/07/10

[#17732] Re: Array#sort! returns nil when array empty — hfulton@...

> Array#sort! returns nil if the array is empty, whereas ri

32 messages 2001/07/12
[#17736] Re: Array#sort! returns nil when array empty — Paul Brannan <pbrannan@...> 2001/07/12

On Fri, 13 Jul 2001 hfulton@pop-server.austin.rr.com wrote:

[#17739] Re: Array#sort! returns nil when array empty — ts <decoux@...> 2001/07/12

>>>>> "P" == Paul Brannan <pbrannan@atdesk.com> writes:

[#17746] Re: Array#sort! returns nil when array empty — Paul Brannan <pbrannan@...> 2001/07/12

On Fri, 13 Jul 2001, ts wrote:

[#17747] What is Array#- ? — Jim Freeze <jim@...> 2001/07/12

While following the Array thread, I noticed the minus

[#17752] Re: What is Array#- ? — Dave Thomas <Dave@...> 2001/07/12

Jim Freeze <jim@freeze.org> writes:

[#17753] Re: What is Array#- ? — Jim Freeze <jim@...> 2001/07/12

On Fri, 13 Jul 2001, Dave Thomas wrote:

[#17833] Extending objects — "Aleksei Guzev" <aleksei.guzev@...>

16 messages 2001/07/14
[#17834] Ruby-newbie seeks help with Rubywin starting IRB — "Euan Mee" <lucid@...> 2001/07/14

Once I fire up Rubywin, and then invoke _R_uby _I_rb from the

[#17839] Re: Ruby-newbie seeks help with Rubywin starting IRB — A Bull in the China Shop of Life <feoh@...> 2001/07/14

At 07:05 PM 7/14/01 +0900, Euan Mee spewed forth:

[#17859] Re: Creating methods on the fly — "HarryO" <harryo@...>

I

18 messages 2001/07/15

[#17925] Movement in scripting language communities to integrate XML-RPC — gsemones@... (Guerry Semones)

Greetings,

20 messages 2001/07/16
[#17934] Re: Movement in scripting language communities to integrate XML-RPC — Tobias Reif <tobiasreif@...> 2001/07/16

"out of the box" by including

[#18018] Broadcasting data — "HarryO" <harryo@...>

Does someone have an example of broadcasting data around a network using

12 messages 2001/07/18

[#18023] [ANN] libxslt Rubified! — Wai-Sun Chia <waisun.chia@...>

Hello,

16 messages 2001/07/18
[#18024] Re: [ANN] libxslt Rubified! — TAKAHASHI Masayoshi <maki@...> 2001/07/18

Wai-Sun Chia <waisun.chia@compaq.com> wrote:

[#18100] Looking for Ruby programming exercises — Wayne Vucenic <wvucenic@...> 2001/07/19

I've been learning Ruby, mostly with the Pickaxe book, and it's going

[#18188] Newbie. Sinking fast. Please help. — Matt <matt@...>

I bought Programming Ruby a number of months back and finally have an opportunity to try out Ruby. However, I can't get it to build. Actually, that's not quite accurate. It builds fine. It won't pass 'make test'.

12 messages 2001/07/20

[#18193] Re: 99 bottles of beer — "Dat Nguyen" <thucdat@...>

18 messages 2001/07/20
[#18204] Re: 99 bottles of beer — Glen Starchman <glen@...> 2001/07/20

99.downto(0){|x|w=" on the wall";u="#{x!=0?eval(x.to_s):'no more'}

[#18306] Ruby as opposed to Python? — "Mark Nenadov" <mnenadov@...>

Hello. I have toyed with the idea of trying Ruby out for some time now.

118 messages 2001/07/22
[#18759] Re: Ruby as opposed to Python? — Paul Prescod <paulp@...> 2001/07/29

Yukihiro Matsumoto wrote:

[#18774] Re: Ruby as opposed to Python? — "Florian G. Pflug" <fgp@...> 2001/07/30

On Mon, Jul 30, 2001 at 05:58:22AM +0900, Paul Prescod wrote:

[#18393] Trouble Using FXRuby on cygwin/Windows NT — rgilbert1@... (Robbie Gilbert)

Hi,

10 messages 2001/07/23

[#18566] Which database should I use? — Urban Hafner <the-master-of-bass@...>

Hello everybody,

17 messages 2001/07/26
[#18575] Re: Which database should I use? — Urban Hafner <the-master-of-bass@...> 2001/07/26

[#18582] Re: Which database should I use? — Michael Neumann <neumann@...> 2001/07/26

Urban Hafner wrote:

[ruby-talk:18687] Re: IOWA: Questions

From: "Julian Fitzell" <julian-ml@...4.com>
Date: 2001-07-28 05:24:58 UTC
List: ruby-talk #18687
Hi Steve,

Avi's away on holiday at the moment but I can jump in and answer some of your questions (though he know the innards way better than I do).

>On 28/07/01 at 5:35 AM Steve Tuckner wrote:
>I have been poking around in the internals of IOWA (on and off) for a
>couple of weeks and I have a few questions about it.
>
>1. Is it still an active project? I would be happy to contribute to it
>once I have a real good sense of its internal architecture. I have not
>worked with WebObjects but did wade through some of their docs.

Yes, it is very much still an active project.  We are testing the current version and figuring out what features we'd like to add.  Also, Avi was working on a Java version so we now need to back-port some of those features back.  He is now working to implement a common library in C++ to improve speed and allow bindings in Java, Ruby, etc. to re-use the same library.  Please dig through the system and either post here or email us if you have any questions.

>2. Are sub-components implemented? if so how does one have do one. An
>example might be a calender view that displays a month with events inside
>of a table.

Yup.  You just create an .html file with the component in it.  I started writing up an example but then I realized Avi's already got one.  If you look in the examples/subdemo/ directory of the Iowa archive you'll see Edit is an example of a simple sub-component.

>3. I was trying to understand how the viewGuest link in guestbook works?
>Who calls that function and with what block?

Down near the end of the Main.html file, you will find the following:

<a oid="viewGuest">@guest.last, @guest.first</a>

This defines a dynamic anchor (because it has an oid attribute).  In the case of an anchor tag, the default is to create a link that calls the method name indicated in the oid attribute.  The code inside the viewPage method:

 1. creates a new Page object based on the file Guest.html
 2. sets the guest property of the new page based on the currently selected guest (note that the binding for the "guests" list indicates that during each iteration, the current item should be stored in the "guest" property - this context is active when the link is clicked, so "guest" will point to the correct item no matter which link is clicked)
 3. yields the new page which causes that page to be displayed

>4. How and where are the URL's mapped to real things?

Mmmm... have a look at src/Context.rb in the Iowa distro.  A context object is created in Iowa.rb when a connection is received.  The URL is broken down as indicated in my next answer.  

>5. The link to each guest is
>http://192.168.4.105/iowa/guestbook/ab2KAfGHxU1E/b/1.7.2.3 How does a
>person break that down? I assume the first item after guest book is some
>sort of session identifier.

/iowa = mapped by the web server to run Iowa
/guestbook = name of Iowa application (given with Iowa.run('guestbook') line)
/ab2KAfGHxU1E/b/1.7.2.3  = context (or session) identifier

Obviously no person is actually supposed to break it down and I suspect it may end up using Cookies at some point (or rather, allow the option of using cookies) and POST forms when possible...

>6. Can a person use parameters with IOWA (ie.
>http://192.168.4.105/iowa/guestbook?parm=value)? I see they are parsed but
>not where they are used if at all?

Umm... I can't remember if you are able to parse that information manually or not... but that's sort of the wrong way of looking at things in general anyway.  I guess I can see the possibility of wanting to enter the application with some initial information...

But, once you're actually in the Iowa application, you shouldn't ever be worrying about the URLs at all.  In a sense it's unfortunate that the browser even displays them because they're just ugly and unnecessary.  As a developer, if you want to pass information, you just create the necessary forms and Page object attributes and pass the data around.  You can use real objects, so you aren't limited to strings.

You may need to totally forget everything you know about web developing. :)   When Avi first started having me test Iowa I had some difficulty wrapping my head around the different way of approaching things but it grows on you.  If you have some specific reason you want to do this, please feel free to post some more details and I'll look into it.

>That's enough for now. Thanks for any help

No problem, hope it makes sense (and that I'm not wrong in anything I said :) ).  Avi will likely be checking his mail occasionaly while he's away so I'm sure he'll let me know if I've missed anything.

In the meantime, let me know if you have any other questions.

Julian

In This Thread

Prev Next