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]…
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.
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.
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…
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.