A Ruby Book (free to use)

OK people,

Just updates some stuff, especially the ones spotted in this thread
http://www.ruby-forum.com/topic/440505 , new updated book is now
available in is.gd - Shortened URL

Enjoy! :wink:

Hello,
Thanks for your feedback. I guess I will have to share with
you the problem I am having with Linux installations too. Anyway, I am
taking a course on Lynda.com for learning and the instructor doesnt go
into Linux for some reason. He discusses Ruby on Rails for Mac and
Windows. There is a course also on Ruby which ran fine on Windows.
I have used various PHP frameworks, like Zend, Cakephp,
Synphony.
Getting back to the course, unfortunately, he doesnt cover any
IDE for doing development with Ruby On Rails. Thats why I was looking
for suggestions for a development tool, IDE, that is free. Aptana,
Netbeans, Eclipse, RadRails?
I have VirtualBox and can use that. However, first I want to
say that I would like to be able to follow the course material that does
use Windows (also Mac OS X, which I dont have). Again, strangely as it
seems, it is the hardest, most frustrating effort to get started with
Ruby on Rails among all the language stacks (other stacks, I guess were
the php stacks), and languages Ive used. On Windows, I ran into
problems with both installing the rails project on my xampp area and
using the WebBrick server. Then I tried using Linux Ubuntu Server 12.04
and ran into problems when I tried various online tutorials for how to
install and get up and running with Ruby on Rails for Linux Ubuntu
server. Someone on this list did send me a link to yet another tutorial
for Linux.
I suppose I am not so great at using terminal command line apps
(like Putty for windows) as the text often flies by and its hard to
read. Plus, Im not clear how to copy the text when it displays errors
during a process to be able to share them on a list and ask what is
going wrong?
Its not a matter of not understanding the concept of the
framework, its the fact that it isnt working in any environment, using
an IDE or no IDE, or etc.
This is far and above the most difficult language and framework
that Ive ever encountered. Ive never before spent day after day just to
get a language or language stack setup and to have a application created
and to be able to go to a website and see it. There are many conceptual
things I need to learn about the php language stacks but at least in the
first sitting, within a couple hours if not much, much sooner, I had an
MVC application installed and I could browse to it.
thanks,
Bruce

From: Dheeraj K.
Sent: Monday, August 27, 2012 11:17 AM
To: [email protected]
Subject: Re: [Rails] Help getting started: Newbie: Windows and Rails

Hi Bruce,

I can understand the problems youā€™re going through, as Iā€™ve faced them
myself. They stem from some misconceptions about the language & the
framework.

Getting started with rails is probably the easiest thing to do out of
all the language stacks available. If youā€™re using OSX or Linux, use
https://github.com/joshfng/railsready on a fresh install of your OS, and
youā€™re set.

Remember that developing rails on Windows is not that easy, since Ruby
runs best on *nix environments like OSX or Linux. On Windows, Ruby runs
on an emulation layer like Cygwin, which should probably work 90% of the
time, but itā€™s largely unsupported by the rails community.

Dheeraj K.

On Monday 27 August 2012 at 8:37 PM, Bruce W. wrote:

Hello all,
For some reason, Ruby on Rails is one of the hardest
programming languages that Ive ever tried to get up and running with it.
I have used python, perl, php, java, javascript, etc.
Can someone recommend a good IDE that is free at this point I need
that Please. I have both RadRails, which often gets described as an
Eclipse Plugin maybe I should instead just start with Eclipse and
install
Ruby on Rails for Eclipse. I also have NetBeans. Can someone
recommend an IDE for Windows. (and separately if it works in Linux).
I took a course on Lynda.com on Ruby and then on Ruby on Rails and got
stuck at the part where I create the first app and then try the Webbrick
server.
I can work with Ruby. Id now like to work with Ruby on
Rails.
I do have a dedicated server and I can install gems from the
cpanel. I dont know how that is at learning Rails. For example, are
there ways to create a ruby on rails application from the cpanel?
While I am trying to get started with Linux, I would like to
be able to do this in Windows. The course I am taking is using Windows
or Mac. I dont have a mac yet.
Thanks,
Bruce

ā€“
You received this message because you are subscribed to the Google
Groups ā€œRuby on Rails: Talkā€ group.
To post to this group, send email to
[email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.

ā€“
You received this message because you are subscribed to the Google
Groups ā€œRuby on Rails: Talkā€ group.
To post to this group, send email to
[email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.

ā€“
You received this message because you are subscribed to the Google
Groups ā€œRuby on Rails: Talkā€ group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.

On 27 August 2012 18:45, Max [email protected] wrote:

skimming through the book - your section at the end where you show a proof
that 1 = 2ā€¦ absurd from what I can seeā€¦

on line 3 you say:

1 - 1 = (1 + 1)(1-1)
and evalueat it to:

1-1/1-1 = 1 + 1ā€¦

If you allow zero divided by zero you can prove anything you like
(more or less). Zero divided by zero is meaningless.

Colin

LOL! All know its absurd, donā€™t u ppl have a sense of humour or
something?

Max wrote in post #1073493:

skimming through the book - your section at the end where you show a
proof
that 1 = 2ā€¦ absurd from what I can seeā€¦

on line 3 you say:

1 - 1 = (1 + 1)(1-1)
and evalueat it to:

1-1/1-1 = 1 + 1ā€¦

how can you come up with that?
as far as I can tell it evaluates to:
1-1 = 2 * 0
0 = 0

??? so all the rest of you ā€œlogicā€ is wrong.

On 28 August 2012 08:32, Karthikeyan A k [email protected] wrote:

LOL! All know its absurd, donā€™t u ppl have a sense of humour or
something?

Is it supposed to be a joke book, or a tutorial?

Like I said, most ruby/rails developers do not use an IDE, as it isnā€™t
necessary at all. When you start working with the console, youā€™ll be
much faster and more efficient than you will with an IDE.

Install ubuntu on a virtualbox, run RailsReady (make sure you select to
install with RVM, when RailsReady asks you) and youā€™re good to go. It
shouldnā€™t take you more than 45 minutes from opening virtual box to
starting to work on rails with everything installed.

If you are not good at using the terminal, you will improve when you
start using it. If text flies by, scroll up to read it. If its
unreadable, increase your font size. Copying is usually Control+Shift+C,
at least in the ubuntu terminal. Select text with your mouse and you can
even right click and click copy.

Getting support on Windows is a really hard thing, and itā€™s like trying
to fit a car engine in a motorbike, so why not go native on Linux?

Dheeraj K.

On 28 August 2012 02:16, Dheeraj K. [email protected]
wrote:

LOL! All know its absurd, donā€™t u ppl have a sense of humour or
something?

A serious suggestion: donā€™t insult your clients with your choice of
platform. ā€“ H

Sent from my mobile device
Envoyait de mon portable

Hey I didnā€™t write that!

Dheeraj K.

I thought he was trolling too. Then I realized he wasnā€™t. My friends had
a pretty good laugh about thisā€¦ there are plenty of WTF moments :smiley:

Dheeraj K.

A joke book :-p

Michael P. wrote in post #1073542:

On 28 August 2012 08:32, Karthikeyan A k [email protected] wrote:

LOL! All know its absurd, donā€™t u ppl have a sense of humour or
something?

Is it supposed to be a joke book, or a tutorial?

Client?! Common, is Mac DRM free and Windows a free OS? This book is
under GFDL, if you donā€™t like it, write your own by ripping it. Who
cares?

Hasan D. wrote in post #1073578:

On 28 August 2012 02:16, Dheeraj K. [email protected]
wrote:

LOL! All know its absurd, donā€™t u ppl have a sense of humour or
something?

A serious suggestion: donā€™t insult your clients with your choice of
platform. ā€“ H

Sent from my mobile device
Envoyait de mon portable

Hey Thanks.

On Tue, Aug 28, 2012 at 10:09 PM, Karthikeyan A k [email protected]
wrote:

Client?! Common, is Mac DRM free and Windows a free OS? This book is
under GFDL, if you donā€™t like it, write your own by ripping it. Who
cares?

Somebody please stop this guy. Heā€™s digging his own grave in a lot of
communities.

ā€“
Azhagu Selvan

http://tamizhgeek.in

Well I canā€™t dig it if I am dead, hence doing it now. :-))

[email protected] wrote in post #1073635:

On Tue, Aug 28, 2012 at 10:09 PM, Karthikeyan A k [email protected]
wrote:

Client?! Common, is Mac DRM free and Windows a free OS? This book is
under GFDL, if you donā€™t like it, write your own by ripping it. Who
cares?

Somebody please stop this guy. Heā€™s digging his own grave in a lot of
communities.

ā€“
Azhagu Selvan

http://tamizhgeek.in

There is not enough space in 29 page
Fine, if 1 is not equal to 2 to a computer when we type it, it must
putout true, so type it in your

Word - putout :slight_smile:

It seems like you are looking for editor,honestly speaking vim with
rails and snipmate plugin is great. You may never look to some other
editor. Only some initial learning curve is required .
After then you will fly like superman and you feel proud to being so
productive . I saw many job positions, and everyone is prefering vim
editor . You can visit the factory_girl gem company homepage(one of the
best rails developer in boston ) also use vim

All the best :slight_smile:

On Wed, Aug 29, 2012 at 5:07 PM, Karthikeyan A k [email protected]
wrote:

communities.
You received this message because you are subscribed to the Google G. ā€œRuby
on Rails: Talkā€ group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.

ā€“
Azhagu Selvan

http://tamizhgeek.in

On 1 September 2012 06:06, Bruce W. [email protected] wrote:

Linux for web development.
I got all the way down to starting the WEBrick server, with everything
looking good and it said that it is running on port 3000. And I should be
able to browse to http://localhost:3000
and I get Unable to Connect
I tried http://localhost:3000, http://0.0.0.0:3000
also http://sandbox.dev:3000

which was shown in the terminal window.

In at terminal in your VM try
wget http://localhost:3000
if that succeeds then the server is running ok and is accessible from
within the VM. The problem then is how to access the server in the VM
from Windows. Sorry but I know nothing about VirtualBox so canā€™t help
there. Possibly a VirtualBox list would be a better place to ask.
Perhaps you can install a GUI into the VM so you can run the browser
there, or alternatively install a version of Linux with a GUI as a new
VM and run the app there.

/media/sf_sandbox/
I tried to get to that folder and was told I didnt have permission. I
couldnt use sudo cd as that just said that cd is not recognized.

Sorry no idea about any of this, again it does not appear to be to do
with Rails.

So, I obviously have rvm, ruby and gems installed but nothing beyond that is
working in the way of getting a ruby on rails test app running.

My guess is that the app is running fine, it is just that you cannot
see it from Windows.

Colin

Colin,
You had referred me to this link:
For installing
in ubuntu then

is pretty goodā€¦

I thought it would be a good idea to learn this in a linux environment.
My apps on the web will be in Linux. I setup a virtualbox for Windows
and installed Ubuntu Server 12.04. This part I did separately as I was
learning Linux for web development.
I got all the way down to starting the WEBrick server, with everything
looking good and it said that it is running on port 3000. And I should
be able to browse to http://localhost:3000
and I get Unable to Connect
I tried http://localhost:3000, http://0.0.0.0:3000
also http://sandbox.dev:3000

which was shown in the terminal window.

Since, I currently only have the server and not the gui for Linux
Ubuntu, I thought I should be able to see this from my host operating
system, Windows.
Also, when I installed phpmyadmin, the instructor said that we should be
able to get there using http://localhost:8080/phpmyadmin/
If I leave off the phpmyadmin, the page that comes up shows that the
server is running and I get a message that just says It works a bit of
code to show that things are working.
The instructor has us install this in the folder /etc/phpadmin
but when we installed Symfony, we were supposed to use folder
/media/sf_sandbox/
I tried to get to that folder and was told I didnt have permission. I
couldnt use sudo cd as that just said that cd is not recognized.

So, I obviously have rvm, ruby and gems installed but nothing beyond
that is working in the way of getting a ruby on rails test app running.
Thanks in advance for any help,
Bruce

Colin
27 August 2012 at 9:26 PM, Dheeraj K. wrote:
@Colin:

Railsready can be used for any environment. The only thing it installs
that is not usually used for a development environment is Passenger.
Railsready is great because it simplifies the task of installing
dependencies. Iā€™ve done it manually, and this is so much more fun :slight_smile:

Dheeraj K.

On Monday 27 August 2012 at 9:12 PM, Colin L. wrote:

On 27 August 2012 16:17, Dheeraj K. <[email protected]> 

wrote:
Hi Bruce,

  I can understand the problems you're going through, as I've faced 

them
myself. They stem from some misconceptions about the language &
the
framework.

  Getting started with rails is probably the easiest thing to do out 

of all
the language stacks available. If youā€™re using OSX or Linux, use
https://github.com/joshfng/railsready on a fresh install of your
OS, and
youā€™re set.

I have not met that one, it seems as if it may be more geared 

towards
a production server than development. I believe most would not use
passenger, nginx or apache on development machines.

This one looks like a reasonable alternative tutorial for installing
http://blog.sudobits.com/2012/05/02/how-to-install-ruby-on-rails-in-ubuntu-12-04-lts/

Colin

--
You received this message because you are subscribed to the Google 

Groups ā€œRuby on Rails: Talkā€ group.
To post to this group, send email to
[email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Dheeraj,
And othersā€¦ I am now convinced to use Linux/Ubuntu in my
VirtualBox installation. I followed the tutorial that was posted
earlier. Colin, on this list, recommended this posting:

Ill have to lookup that link and try to find it again. I did everything
in the tutorial, got all the way to the bottomā€¦ where it says Now you
can see your installation of test_app and there is a smiley face. I try
that very last step, where everything above it worked fine and so I go
to my browser, enter http;//localhost:3000
There might have been a directory, Ill have to dig up that tutorial
link. Whatever it said for where to go in the browser is where I went.
It says Cannot display pageā€¦
Not foundā€¦ etc.
Now in the course I took online at Lynda.com, called Up and
Running with Linux for PHP Developers. The location where we would be
installing software is giving me an error saying I dont have permission
to use that directory. It is /media/sf_sandbox/
I did try the sudo command in front of cd to go to that directory and it
said it didnt recognize sudo cd. It is both embarrassing and very
frustrating that it continues to take me so long to get this working.
After all this time, I STILL dont have a rails install that I can browse
to. Ive never ever had this kind of problem with anything, any
programming language or language environment.
Thanks,
Bruce

From: Dheeraj K.
Sent: Tuesday, August 28, 2012 2:14 AM
To: [email protected]
Subject: Re: [Rails] Help getting started: Newbie: Windows and Rails

Like I said, most ruby/rails developers do not use an IDE, as it isnā€™t
necessary at all. When you start working with the console, youā€™ll be
much faster and more efficient than you will with an IDE.

Install ubuntu on a virtualbox, run RailsReady (make sure you select to
install with RVM, when RailsReady asks you) and youā€™re good to go. It
shouldnā€™t take you more than 45 minutes from opening virtual box to
starting to work on rails with everything installed.

If you are not good at using the terminal, you will improve when you
start using it. If text flies by, scroll up to read it. If its
unreadable, increase your font size. Copying is usually Control+Shift+C,
at least in the ubuntu terminal. Select text with your mouse and you can
even right click and click copy.

Getting support on Windows is a really hard thing, and itā€™s like trying
to fit a car engine in a motorbike, so why not go native on Linux?

Dheeraj K.

On Tuesday 28 August 2012 at 6:45 AM, Bruce W. wrote:

Hello,
Thanks for your feedback. I guess I will have to share with
you the problem I am having with Linux installations too. Anyway, I am
taking a course on Lynda.com for learning and the instructor doesnt go
into Linux for some reason. He discusses Ruby on Rails for Mac and
Windows. There is a course also on Ruby which ran fine on Windows.
I have used various PHP frameworks, like Zend, Cakephp,
Synphony.
Getting back to the course, unfortunately, he doesnt cover any
IDE for doing development with Ruby On Rails. Thats why I was looking
for suggestions for a development tool, IDE, that is free. Aptana,
Netbeans, Eclipse, RadRails?
I have VirtualBox and can use that. However, first I want to
say that I would like to be able to follow the course material that does
use Windows (also Mac OS X, which I dont have). Again, strangely as it
seems, it is the hardest, most frustrating effort to get started with
Ruby on Rails among all the language stacks (other stacks, I guess were
the php stacks), and languages Ive used. On Windows, I ran into
problems with both installing the rails project on my xampp area and
using the WebBrick server. Then I tried using Linux Ubuntu Server 12.04
and ran into problems when I tried various online tutorials for how to
install and get up and running with Ruby on Rails for Linux Ubuntu
server. Someone on this list did send me a link to yet another tutorial
for Linux.
I suppose I am not so great at using terminal command line apps
(like Putty for windows) as the text often flies by and its hard to
read. Plus, Im not clear how to copy the text when it displays errors
during a process to be able to share them on a list and ask what is
going wrong?
Its not a matter of not understanding the concept of the
framework, its the fact that it isnt working in any environment, using
an IDE or no IDE, or etc.
This is far and above the most difficult language and
framework that Ive ever encountered. Ive never before spent day after
day just to get a language or language stack setup and to have a
application created and to be able to go to a website and see it. There
are many conceptual things I need to learn about the php language stacks
but at least in the first sitting, within a couple hours if not much,
much sooner, I had an MVC application installed and I could browse to
it.
thanks,
Bruce

From: Dheeraj K.
Sent: Monday, August 27, 2012 11:17 AM
To: [email protected]
Subject: Re: [Rails] Help getting started: Newbie: Windows and Rails

Hi Bruce,

I can understand the problems youā€™re going through, as Iā€™ve faced them
myself. They stem from some misconceptions about the language & the
framework.

Getting started with rails is probably the easiest thing to do out of
all the language stacks available. If youā€™re using OSX or Linux, use
https://github.com/joshfng/railsready on a fresh install of your OS, and
youā€™re set.

Remember that developing rails on Windows is not that easy, since Ruby
runs best on *nix environments like OSX or Linux. On Windows, Ruby runs
on an emulation layer like Cygwin, which should probably work 90% of the
time, but itā€™s largely unsupported by the rails community.

Dheeraj K.

On Monday 27 August 2012 at 8:37 PM, Bruce W. wrote:

Hello all,
        For some reason, Ruby on Rails is one of the hardest 

programming languages that Ive ever tried to get up and running with it.
I have used python, perl, php, java, javascript, etc.
Can someone recommend a good IDE that is free at this point I need
that Please. I have both RadRails, which often gets described as an
Eclipse Plugin maybe I should instead just start with Eclipse and
install
Ruby on Rails for Eclipse. I also have NetBeans. Can someone
recommend an IDE for Windows. (and separately if it works in Linux).
I took a course on Lynda.com on Ruby and then on Ruby on Rails and
got stuck at the part where I create the first app and then try the
Webbrick server.
I can work with Ruby. Id now like to work with Ruby on
Rails.
I do have a dedicated server and I can install gems from the
cpanel. I dont know how that is at learning Rails. For example, are
there ways to create a ruby on rails application from the cpanel?
While I am trying to get started with Linux, I would like to
be able to do this in Windows. The course I am taking is using Windows
or Mac. I dont have a mac yet.
Thanks,
Bruce

--
You received this message because you are subscribed to the Google 

Groups ā€œRuby on Rails: Talkā€ group.
To post to this group, send email to
[email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google 

Groups ā€œRuby on Rails: Talkā€ group.
To post to this group, send email to
[email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.

ā€“
You received this message because you are subscribed to the Google
Groups ā€œRuby on Rails: Talkā€ group.
To post to this group, send email to
[email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.

ā€“
You received this message because you are subscribed to the Google
Groups ā€œRuby on Rails: Talkā€ group.
To post to this group, send email to
[email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.

ā€“
You received this message because you are subscribed to the Google
Groups ā€œRuby on Rails: Talkā€ group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.