Deploying R_o_R to local servers

Good afternoon,

It looks like I can create an array of arrays. I need to do this in
order to implement a graph that needs an x, y and exp(y) for each array
index.

I did the following:
a = [[1,2,7.4], [2,5,148.4]]
puts a[0] #returns 1,2,7.4
puts a[1] #returns 2,5,148.4
b = a[0]
puts b[0] #returns 1
puts b[1] #returns 2
puts b[2] #returns 7.4

This does exactly what I want to do, but I was wondering if there is a
more elegant way to do this…[I’m a scientific programmer who’s first language was Fortran]…

Good week,
Pat

Hey, Pat. This is pretty much a straight-up Ruby question, which
really aren’t that appropriate for the Rails mailing list. That being
said, what you are doing is exactly the way to access an Array of
Array objects. The only piece of the syntax you are missing is: a[0]
[0] #returns 1.

-Brian

Juan,
Thanks again. I have to do a ‘proof of concept’ study, using Ruby, and
then I’ll get back to the Apple installation…
Good week,
Pat

You may also find this link useful:

I just installed Ruby, Rails, and stuff this morning following the
instructions.

In article [email protected],
“Pat L.” [email protected] wrote:

Good morning,

I’ve committed to developing three applications using RoR.
I’m planning on using an Apple box to do the development.
I visited the Apple store in NYC and was very impressed with the choice
of machines and their associated cost. The sales folks were also very
helpful.

My question is: can you recommend a book or books that would help me “to
get me up to speed” with Apple?

Go grab the O’Reilly “OS X for Unix Geeks” book if you’re already a unix
guy.

And go to fink.sourceforge.net and install fink - it automates the
process of installing tons of open source programs and knows about
dependencies. This will make installing mysql or postgresql as simple as
“fink install mysql” or “fink install postgresql”.

If you end up not liking the fink approach, there is also darwinports,
but I don’t use it.


Joe B. [email protected]

Have GNU, will travel.

Thanks Brian…I’ll have to find the Ruby forum…

On 6/13/06, Joe B. [email protected] wrote:

IAnd go to fink.sourceforge.net and install fink - it automates the
process of installing tons of open source programs and knows about
dependencies. This will make installing mysql or postgresql as simple as
“fink install mysql” or “fink install postgresql”.

is fink intel friendly now? last i knew it was still in the preliminary
support stages…

How do you subscribe to the digest only?

Thanks Joe

On Sun, 2006-07-02 at 12:02 -0400, Pat L. wrote:

How do you subscribe to the digest only?


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


if you click on the link that is at the bottom of every page, you will
see that there is a daily digest subscription option in the middle of
the page when you subscribe. It appears that you would have to
unsubscribe and then subscribe to the digest.

Craig