From: Lee Veinot Date: 2012-12-31T10:05:24+09:00 Subject: Re: can't open new ruby program under "new" context menu --2119117045-1941465392-1356915921=:97913 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thank you! I downloaded Intype and everything makes sense now. =C2=A0I can = write multi line programs, save them, and view the result in ruby now! =C2= =A0Well, there's a little problem, actually. =C2=A0When I go to open the fi= le, the ruby screen will appear for a fraction of a second and then close. = =C2=A0It did this for 3 out of the 4 programs I saved. =C2=A0Is this a glit= ch that has an easy fix? =C2=A0By the way, if you don't mind me asking, wha= t is your job title? I =C2=A0want to learn programming so I can get a job i= n it, but aside from a job with the word programmer in the title, I don't k= now what kind of jobs are out there. =C2=A0Basically, what can I do with th= is for a job?=0A=0A=0A________________________________=0A From: Dami=C3=A1n= M. Gonz=C3=A1lez =0ATo: ruby-talk ML =0ASent: Sunday, December 30, 2012 7:54 AM=0ASubject: Re: can't = open new ruby program under "new" context menu=0A =0ALee V. wrote in post #= 1090637:=0A> Well, I'm up to page 43 in Chris Pine's book and having a lot = of fun,=0A> but I still can't figure out two basic things. =C2=A0One is wha= t I've already=0A> asked you about. =C2=A0I'm just going to paste what his = book says so you can=0A> see what I'm having trouble with:=0A>=0A> Now let= =E2=80=99s make a folder on your desktop in which you=E2=80=99ll keep all o= f your=0A> programs. Right-click your desktop, select New, and then select = Folder.=0A> Name it something truly memorable, such as programs. Now double= click=0A> the folder to open it.=0A> To make a blank Ruby program, right-cl= ick in the folder, select New,=0A> and then select Ruby Program. You can re= name the file if you want,=0A> but make sure to keep the .rb file extension= , since that=E2=80=99s what tells=0A> your=0A> computer this is a Ruby prog= ram (and not an email or a picture of Mr.=0A> Bean or something).=0A>=0A>= =0A> I have a feeling creating the folder will be important down the road b= ut=0A> I just can't figure out how to do it. =C2=A0Is my problem that I sho= uldn't be=0A> using 'interactive ruby'? =C2=A0That's what I've been using f= or everything,=0A> which brings me to my second question; I don't know how = to make more=0A> than one line of a program at a time. =C2=A0Whenever I typ= e a line of program=0A> and press enter, I get the response. =C2=A0I know t= here's got to be a way to=0A> fix this. =C2=A0I even tried typing lines at = a time in the editor and then=0A> pasting it into interactive ruby, but it = still only reads one line at a=0A> time. =C2=A0Please help! I'm understandi= ng all the programming I'm doing but=0A> these 2 basic, setup things, are d= riving me crazy!=C2=A0=0A=0AEy my friend! don't be crazy. I was in the same= foots like you a year =0Aago. You have to know a few things: what Pine cal= ls a 'Ruby Programm' is =0Aa just a *.txt file, with the extension changed = to *.rb. There, in a any =0Atext file you can make a programm. Any IDE(Inte= grated Development =0AEnvironment) what does is just help you to write a te= xt file, which will =0Abecome your programm, it puts color on strings and c= olors on variables =0Abecause it's more easy for you to see the code, to re= ad the code, but =0Astill is a text file with utf-8 characters in the most = cases. How do you =0Acan execute your programms? (text files... remember), = you have to open =0Athe console, I mean cmd, and then put:=0A=0Aruby 'C:/Ru= byPrograms/MyFirstProgram/source_code.rb'=0A=0ASomething like that, you hav= e to put ruby and then the full path. =0AThere's many things that you have = to know but start with this. This way =0Ayou can run all the programms you = want. I will recommend you a very =0Alight IDE to start, just for strat: In= Type. Is very basic, then once you =0Adomine some skills, switch to AptanaS= tudio3, it is free. Best for me is =0ARubyMine but you have to buy it, is n= ot free. AptanaStudio3 does it =0Agood.=0AHope this help you, don't be afra= id to ask. Have fun!=0A=0A-- =0APosted via http://www.ruby-forum.com/. --2119117045-1941465392-1356915921=:97913 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Thank you!= I downloaded Intype and everything makes sense now.  I can write mult= i line programs, save them, and view the result in ruby now!  Well, th= ere's a little problem, actually.  When I go to open the file, the rub= y screen will appear for a fraction of a second and then close.  It di= d this for 3 out of the 4 programs I saved.  Is this a glitch that has= an easy fix?  By the way, if you don't mind me asking, what is your j= ob title? I  want to learn programming so I can get a job in it, but a= side from a job with the word programmer in the title, I don't know what ki= nd of jobs are out there.  Basically, what can I do with this for a jo= b?


From: Dami=C3=A1n M. Gonz=C3=A1lez <li= sts@ruby-forum.com>
To:= ruby-talk ML <ruby-talk@ruby-lang.org>
Sent: Sunday, December 30, 2012 7:54 AM
Subject: Re: can't open new = ruby program under "new" context menu

=0ALee V. wrot= e in post #1090637:
> Well, I'm up to page 43 in Chris Pine's book an= d having a lot of fun,
> but I still can't figure out two basic thing= s.  One is what I've already
> asked you about.  I'm just g= oing to paste what his book says so you can
> see what I'm having tro= uble with:
>
> Now let=E2=80=99s make a folder on your desktop = in which you=E2=80=99ll keep all of your
> programs. Right-click your= desktop, select New, and then select Folder.
> Name it something tru= ly memorable, such as programs. Now doubleclick
> the folder to open = it.
> To make a blank Ruby program, right-click in the folder, select= New,
> and then select Ruby Program. You can rename the file if you = want,
> but make sure to keep the .rb file extension, since that=E2= =80=99s what tells
> your
> computer this is a Ruby program (an= d not an email or a picture of Mr.
> Bean or something).
>
>
> I have a feeling creating the folder w= ill be important down the road but
> I just can't figure out how to d= o it.  Is my problem that I shouldn't be
> using 'interactive ru= by'?  That's what I've been using for everything,
> which brings= me to my second question; I don't know how to make more
> than one l= ine of a program at a time.  Whenever 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 edito= r and then
> pasting it into interactive ruby, but it still only read= s one line at a
> time.  Please help! I'm understanding all the = programming I'm doing but
> these 2 basic, setup things, are driving = me crazy! 

Ey my friend! don't be crazy. I was in the same foo= ts like you a year
ago. You have to know a few things: what Pine calls a 'Ruby Programm' is
a just a *.txt file, with the extension cha= nged to *.rb. There, in a any
text file you can make a programm. Any ID= E(Integrated Development
Environment) what does is just help you to wri= te a text file, which will
become your programm, it puts color on strin= gs and colors on variables
because it's more easy for you to see the co= de, to read the code, but
still is a text file with utf-8 characters in= the most cases. How do you
can execute your programms? (text files... = remember), you have to open
the console, I mean cmd, and then put:
<= br>ruby 'C:/RubyPrograms/MyFirstProgram/source_code.rb'

Something l= ike that, you have to put ruby and then the full path.
There's many thi= ngs that you have to know but start with this. This way
you can run all= the programms you want. I will recommend you a very
light IDE to start= , just for strat: InType. Is very basic, then once you
domine some skills, switch to AptanaStudio3, it is free. Best for me is
RubyM= ine but you have to buy it, is not free. AptanaStudio3 does it
good. Hope this help you, don't be afraid to ask. Have fun!

--
Poste= d via http://www.ruby-forum.com/.


<= /html> --2119117045-1941465392-1356915921=:97913--