From: Lee Veinot Date: 2012-12-30T20:51:29+09:00 Subject: Re: can't open new ruby program under "new" context menu --1332810471-2023513921-1356868286=:56202 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Well, I'm up to page 43 in Chris Pine's book and having a lot of fun, but I= still can't figure out two basic things. =C2=A0One is what I've already as= ked you about. =C2=A0I'm just going to paste what his book says so you can = see what I'm having trouble with:=0A=0ANow let=E2=80=99s make a folder on y= our desktop in which you=E2=80=99ll keep all of your=0Aprograms. Right-clic= k your desktop, select New, and then select Folder.=0AName it something tru= ly memorable, such as programs. Now doubleclick=0Athe folder to open it.=0A= To make a blank Ruby program, right-click in the folder, select New,=0Aand = then select Ruby Program. You can rename the file if you want,=0Abut make s= ure to keep the .rb file extension, since that=E2=80=99s what tells your=0A= computer this is a Ruby program (and not an email or a picture of Mr.=0ABea= n or something).=0A=0A=0AI have a feeling creating the folder will be impor= tant down the road but I just can't figure out how to do it. =C2=A0Is my pr= oblem that I shouldn't be using 'interactive ruby'? =C2=A0That's what I've = been using for everything, which brings me to my second question; I don't k= now how to make more than one line of a program at a time. =C2=A0Whenever I= type a line of program and press enter, I get the response. =C2=A0I know t= here's got to be a way to fix this. =C2=A0I even tried typing lines at a ti= me in the editor and then pasting it into interactive ruby, but it still on= ly reads one line at a time. =C2=A0Please help! I'm understanding all the p= rogramming I'm doing but these 2 basic, setup things, are driving me crazy!= =C2=A0=0A=0A=0A________________________________=0A From: Derrick B. =0ATo: ruby-talk ML =0ASent: Satur= day, December 29, 2012 1:11 PM=0ASubject: Re: can't open new ruby program u= nder "new" context menu=0A =0ALee V. wrote in post #1090514:=0A> I just uni= nstalled what I had and reinstalled using the steps given in=0A> the link y= ou sent, but for some reason I still can't do what I'm trying=0A> to do.=C2= =A0 If you have any familiarity with Windows at all, I'll try to=0A> explai= n what I'm attempting to do.=C2=A0 On windows, when you right click on=0A> = the desktop or in a folder, one of the options you can click on says=0A> "n= ew".=C2=A0 From this you can choose a new folder, word document, etc.=C2=A0= I'm=0A> trying to make the "new" menu have an option to add a new Ruby Pro= gram,=0A> because the Ruby Tutorial I'm reading by Chris Pine says that's t= he next=0A> step.=C2=A0 According to his book, the option should be under t= he "new" menu=0A> already.=0A=0AI am very familiar with Windows, so I do un= derstand right-clicking the=0Adesktop and being presented with a menu.=C2= =A0 As you have seen by the types=0Aof "new" items you can create by that m= enu, maybe when you install SciTE=0A(the Scintilla Text Editor), it might a= dd that option to the "new" menu.=0A=0AOtherwise, if you already have that = editor installed, it would probably=0Abe just easier to open the editor and= use its "Save as..." (assuming it=0Ahas that functionality) to save whatev= er Ruby file you create in SciTE=0Ato any location you choose.=0A=0ASince y= ou know how to right-click and choose "new" on the desktop, how=0Aabout cre= ating a folder on the Desktop called "My Ruby Files", or=0Asomething, and y= ou can use that as you location to store files.=C2=A0 Just a=0Athought, but= I think just jumping into the editor and following along=0Awith Chris Pine= 's tutorial will get you going along just fine.=0A=0AHave fun with Ruby, I = know I am!=0A=0A-- =0APosted via http://www.ruby-forum.com/. --1332810471-2023513921-1356868286=:56202 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
= Well, I'm up to page 43 in Chris Pine's book and having a lot of fun, but I= still can't figure out two basic things.  One is what I've already as= ked you about.  I'm just going to paste what his book says so you can = see what I'm having trouble with:

=
Now let=E2=80=99s make a folder on your deskto= p in which you=E2=80=99ll keep all of your
programs. Right-click your desktop, select New, and then= select Folder.
Name it somethi= ng truly memorable, such as programs. Now doubleclick
the folder to open it.
To make a blank Ruby program, right-click in t= he folder, select New,
a= nd then select Ruby Program. You can rename the file if you want,
but make sure to keep the .rb fil= e extension, since that=E2=80=99s what tells your
computer this is a Ruby program (and not an email= or a picture of Mr.
Bea= n or something).


I have a feeling creating the folder will b= e important down the road but I just can't figure out how to do it.  I= s my problem that I shouldn't be using 'interactive ruby'?  That's wha= t I've been using for everything, which brings me to my second question; I = don't know how to make more than one line of a program at a time.  Whe= never I type a line of program and press enter, I get the response.  I= know there's got to be a way to fix this.  I even tried typing lines = at a time in the editor and then pasting it into interactive ruby, but it s= till only reads one line at a time.  Please help! I'm understanding al= l the programming I'm doing but these 2 basic, setup things, are driving me= crazy! 

From: Derric= k B. <lists@ruby-forum.com>
To: ruby-talk ML <ruby-talk@ruby-lang.org>
Sent: Saturday, December 29, 2012 1= :11 PM
Subject: Re: ca= n't open new ruby program under "new" context menu

= =0ALee V. wrote in post #1090514:
> I just uninstalled what I had and= reinstalled using the steps given in
> the link you sent, but for so= me reason I still can't do what I'm trying
> to do.  If you have= any familiarity with Windows at all, I'll try to
> explain what I'm = attempting to do.  On windows, when you right click on
> the des= ktop or in a folder, one of the options you can click on says
> "new"= .  From this you can choose a new folder, word document, etc.  I'= m
> trying to make the "new" menu have an option to add a new Ruby Pr= ogram,
> because the Ruby Tutorial I'm reading by Chris Pine says tha= t's the next
> step.  According to his book, the option should b= e under the "new" menu
> already.

I am very familiar with Wind= ows, so I do understand right-clicking the
desktop and being presented w= ith a menu.  As you have seen by the types
of "new" items you can create by that menu, maybe when you install SciTE
(the Scintilla Te= xt Editor), it might add that option to the "new" menu.

Otherwise, i= f you already have that editor installed, it would probably
be just easi= er to open the editor and use its "Save as..." (assuming it
has that fun= ctionality) to save whatever Ruby file you create in SciTE
to any locati= on you choose.

Since you know how to right-click and choose "new" on= the desktop, how
about creating a folder on the Desktop called "My Ruby= Files", or
something, and you can use that as you location to store fil= es.  Just a
thought, but I think just jumping into the editor and f= ollowing along
with Chris Pine's tutorial will get you going along just = fine.

Have fun with Ruby, I know I am!

--
Posted via http= ://www.ruby-forum.com/.



--1332810471-2023513921-1356868286=:56202--