apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
duphus has joined #ruby-lang
hhatch has quit [Ping timeout: 248 seconds]
<mark06>
drbrain: ARGF is also affected
<drbrain>
mark06: I wondered if it would be
nathanstitt has joined #ruby-lang
jiuweigui has quit [Quit: iQuit!]
richardburton has joined #ruby-lang
mark06 has left #ruby-lang [#ruby-lang]
majjoha has joined #ruby-lang
hahuang65 has joined #ruby-lang
pr0ton has quit [Ping timeout: 240 seconds]
majjoha has quit [Ping timeout: 245 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
bantic has quit [Quit: bantic]
bzalasky has joined #ruby-lang
cnivolle has quit [Read error: Operation timed out]
Trapper has quit [Ping timeout: 272 seconds]
shinnya has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
richardburton has left #ruby-lang [#ruby-lang]
hahuang65 has quit [Ping timeout: 240 seconds]
symm- has quit [Ping timeout: 272 seconds]
micalexander has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
mdedetrich has joined #ruby-lang
micalexander has quit [Read error: Connection reset by peer]
Johz has quit [Quit: Leaving]
sevvie has joined #ruby-lang
mdedetrich has quit [Client Quit]
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
bzalasky has quit [Read error: Connection reset by peer]
sepp2k1 has quit [Read error: Connection reset by peer]
pkrnj has joined #ruby-lang
Coincidental has joined #ruby-lang
mistym has joined #ruby-lang
duphus has quit [Quit: Leaving.]
stamina has quit [Ping timeout: 264 seconds]
elia has quit [Quit: Computer has gone to sleep.]
lele|w has quit [Ping timeout: 260 seconds]
majjoha has joined #ruby-lang
majjoha has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
hogeo has joined #ruby-lang
charliesome has joined #ruby-lang
charliesome has quit [Client Quit]
kurko_ has quit [Ping timeout: 252 seconds]
prezJFK has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
hogeo has quit [Read error: Connection reset by peer]
ledestin has joined #ruby-lang
GaelanAintAround is now known as Gaelan
retro|cz has joined #ruby-lang
hahuang65 has quit [Ping timeout: 252 seconds]
Asher has quit [Quit: Leaving.]
Vori has joined #ruby-lang
Vori has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
jxie has quit [Quit: leaving]
majjoha has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
Coincidental has quit [Ping timeout: 265 seconds]
uokesita has joined #ruby-lang
mihar has quit [Ping timeout: 245 seconds]
majjoha has quit [Ping timeout: 272 seconds]
daikan has quit [Remote host closed the connection]
retro|cz has quit [Ping timeout: 240 seconds]
daikan has joined #ruby-lang
momomomomo has joined #ruby-lang
bzalasky has quit [Ping timeout: 240 seconds]
mihar has joined #ruby-lang
<Ahti333>
is there a way to compile extensions (eg etc) into libruby-static so that they can just be used normally like `require 'etc'`? I am trying to get ruby to run on a system where dynamic loading is not allowed, so i need to package everything into a static library (multiple static libraries would be ok, too). I am already passing --with-static-linked-ext, --disable-dln and av_cv_lib_dl_dlopen=no to ./configure and have
<Ahti333>
uncommented option nodynamic and the etc line in ext/Setup, but I can't figure out how to use etc now. `require 'etc'` throws a LoadError (this executable file can't load extension libraries)
daikan has quit [Ping timeout: 246 seconds]
Gaelan is now known as GaelanAintAround
mistym has quit [Remote host closed the connection]
Barrin6 has joined #ruby-lang
<Barrin6>
so in ruby
<Barrin6>
class inheritance works by class (class1)<(class2)
<Barrin6>
just as simple as that?
<lianj>
yes
<Barrin6>
hmm okay seems easy
<lianj>
>> class A; def test; :hello; end; end; class B < A; end; p B.new.test
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weems has quit []
skade has joined #ruby-lang
mucker has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
mucker has joined #ruby-lang
Forgetful_Lion has quit [Ping timeout: 245 seconds]
Coincide_ has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
Coincidental has joined #ruby-lang
mucker has quit [Ping timeout: 252 seconds]
mucker has joined #ruby-lang
Coincidental has quit [Ping timeout: 240 seconds]
jithu has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
symm- has joined #ruby-lang
jiuweigui has joined #ruby-lang
blackcoffee89 has joined #ruby-lang
blackcoffee89 has quit [Client Quit]
Ahti333_ has joined #ruby-lang
blackcoffee89 has joined #ruby-lang
Ahti333 has quit [Ping timeout: 265 seconds]
Ahti333_ is now known as Ahti333
Trapper has joined #ruby-lang
<blackcoffee89>
-q
<blackcoffee89>
I'm a new Ruby programmer and I'm looking to make a script that will list the number of days since a set date. Could someone suggest a simple way of doing this?
<blackcoffee89>
Why should that be used as a last resort?
<apeiros>
because date parsing is all but unambiguous
<apeiros>
if you know the format, use strptime
Ahti333 has quit [Ping timeout: 264 seconds]
<apeiros>
if you have the date literally, use one of the many constructors, such as Date.civil(2013,4,10)
arBmind has quit [Quit: Leaving.]
Ahti333 has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 246 seconds]
<blackcoffee89>
Ah thank you, I'll see what I can come up with. Much appreciated.
mucker has quit [Remote host closed the connection]
mucker has joined #ruby-lang
Ahti333 has quit [Ping timeout: 252 seconds]
mucker has quit [Ping timeout: 252 seconds]
<blackcoffee89>
Using: Date.new(2013, 9, 27) - Date.today seems to work. Is this an acceptable way of doing it?
banisterfiend has quit [Quit: Computer has gone to sleep.]
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
Ahti333 has joined #ruby-lang
<apeiros>
I may be a party pooper, but I still don't like how Date.new now emulates Date.civil :-/
<apeiros>
blackcoffee89: yes, it is
symm- has quit [Ping timeout: 245 seconds]
<blackcoffee89>
So if you were to do the same you would have written Date.civil instead of Date.new?
duphus has quit [Quit: Leaving.]
mucker has joined #ruby-lang
schaerli has quit [Ping timeout: 246 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<apeiros>
yes
Paradox has quit [Ping timeout: 264 seconds]
<blackcoffee89>
Is that how it was in previous versions of Ruby?
<apeiros>
in previous versions of ruby, Date.new(2013, 9, 27) would have raised
<blackcoffee89>
ah okay
<blackcoffee89>
Another question. Say with this script, I wanted to to change the original date variable using a user input, is there any way to save the input into the script or would I need to create maybe a text file to save the variable to?
mistym has quit [Remote host closed the connection]
joshAnderson99 has joined #ruby-lang
<apeiros>
what do you consider "save the input into the script"? so that on another run of the script, the value is still present?
<blackcoffee89>
Yeah
<blackcoffee89>
that's what I mean
<apeiros>
the script itself is a textfile
<apeiros>
so you could theoretically alter the script through the script. but that's complex for no good reason.
<apeiros>
just store it in another textfile.
banisterfiend has joined #ruby-lang
<blackcoffee89>
That makes sense
<blackcoffee89>
Thank you apeiros, I really appreciate the help.
joshAnderson99 has quit [Ping timeout: 245 seconds]
joshAnderson99 has joined #ruby-lang
jithu has quit [Quit: Mother, did it need to be so high?]
<joshAnderson99>
reposting this from #ruby, as lang might be the more appropriate place for it...
<joshAnderson99>
anyone know how to match end characters of a string, i've used "filename.ends_with('sgm')" but oddly it doesn't recognise ends_with, or endswith.
<apeiros>
joshAnderson99: you got answers over in #ruby and did not respond, now you take it here without telling there. why?
<joshAnderson99>
connecton dropped, didn't see any reply there.
<apeiros>
great excuse.
<apeiros>
(not)
<joshAnderson99>
well, happy to say the question has been posted here, if that's the practice.
<joshAnderson99>
done
jithu has joined #ruby-lang
<joshAnderson99>
this query has been answered in #ruby.
mucker has quit [Remote host closed the connection]
mbj has joined #ruby-lang
sepp2k has joined #ruby-lang
joshAnderson99 has quit [Read error: Connection reset by peer]
mucker has joined #ruby-lang
cogent has joined #ruby-lang
joshAnderson99 has joined #ruby-lang
cogent has quit [Client Quit]
cogent has joined #ruby-lang
blackcoffee89 has quit [Read error: Connection reset by peer]
MaddinXx_ has quit [Remote host closed the connection]
Trapper has quit [Ping timeout: 272 seconds]
jiuweigui has quit [Quit: iQuit!]
bastilian has joined #ruby-lang
arBmind has joined #ruby-lang
alexju has quit [Remote host closed the connection]
alexju has joined #ruby-lang
alexju has quit [Read error: Connection reset by peer]
alexju has joined #ruby-lang
mbj has quit [Quit: leaving]
cnivolle has joined #ruby-lang
schaerli has joined #ruby-lang
alexju has quit [Ping timeout: 264 seconds]
schaerli has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
schaerli has joined #ruby-lang
malev has joined #ruby-lang
momomomomo has joined #ruby-lang
momomomomo has quit [Client Quit]
cogent_ has joined #ruby-lang
jonathanmarvens has quit [Remote host closed the connection]
jonathanmarvens has joined #ruby-lang
cogent has quit [Ping timeout: 240 seconds]
jsullivandigs has joined #ruby-lang
schaerli has quit [Ping timeout: 272 seconds]
jonathanmarvens has quit [Ping timeout: 252 seconds]
jsullivandigs has quit [Ping timeout: 272 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
cogent_ has quit [Ping timeout: 265 seconds]
user64 has joined #ruby-lang
user64 has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
lfox has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 240 seconds]
MaddinXx has joined #ruby-lang
barttenbrinke has joined #ruby-lang
jonathanmarvens has joined #ruby-lang
jmeeuwen has quit [Ping timeout: 260 seconds]
jonathanmarvens has quit [Remote host closed the connection]
skade has joined #ruby-lang
barttenbrinke has quit [Ping timeout: 265 seconds]
workmad3 has joined #ruby-lang
banisterfiend has joined #ruby-lang
schaerli has joined #ruby-lang
skade has quit [Client Quit]
jmeeuwen has joined #ruby-lang
jinslee has joined #ruby-lang
jonathanmarvens has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
jonathanmarvens has quit [Ping timeout: 245 seconds]
scottschecter has joined #ruby-lang
delta4d has joined #ruby-lang
scottschecter has quit [Client Quit]
elia has joined #ruby-lang
Nss has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
Oloryn_lt2 has quit [Ping timeout: 240 seconds]
schaerli has joined #ruby-lang
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nss has joined #ruby-lang
sepp2k has quit [Quit: Leaving.]
Forgetful_Lion_ has joined #ruby-lang
Forgetful_Lion_ has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
Forgetful_Lion_ has joined #ruby-lang
Forgetful_Lion_ has quit [Read error: Connection reset by peer]
schaerli has quit [Ping timeout: 252 seconds]
Forgetful_Lion has quit [Ping timeout: 246 seconds]
Forgetful_Lion_ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
Forgetful_Lion_ has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
Forgetful_Lion has quit [Read error: Connection reset by peer]
apeiros has joined #ruby-lang
lfox has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
delta4d has quit [Quit: Leaving]
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 264 seconds]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
apeiros has quit [Ping timeout: 272 seconds]
Forgetful_Lion has joined #ruby-lang
cnivolle_ has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
mucker has quit [Remote host closed the connection]
Forgetful_Lion has quit [Read error: Connection reset by peer]
mucker has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
cnivolle has quit [Ping timeout: 252 seconds]
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Trapper has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
ldnunes has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
mucker has quit [Ping timeout: 272 seconds]
Forgetful_Lion has joined #ruby-lang
mucker has joined #ruby-lang
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Forgetful_Lion has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
lfox has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
jithu has quit [Quit: Mother, did it need to be so high?]
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
kurko_ has joined #ruby-lang
spuk has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Trapper has quit [Read error: Connection reset by peer]
Forgetful_Lion has quit [Read error: Connection reset by peer]
Oloryn_lt2 has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
skade has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Trapper has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
schaerli has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
malev has quit [Remote host closed the connection]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
schaerli has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 246 seconds]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
tomzx_mac has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
metus_violarium has quit [Quit: Konversation terminated!]
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Forgetful_Lion has joined #ruby-lang
diego1 has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
diego1 is now known as diegoviola
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
metus_violarium has joined #ruby-lang
kurko_ has quit [Ping timeout: 265 seconds]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
bzalasky has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
Forgetful_Lion has quit [Read error: Connection reset by peer]
bzalasky has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
jxie has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
bzalasky has quit [Ping timeout: 240 seconds]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Ahti333 has quit [Ping timeout: 265 seconds]
Forgetful_Lion has joined #ruby-lang
Ahti333 has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
jsullivandigs has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
nathanstitt has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Trapper has quit [Ping timeout: 272 seconds]
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion_ has joined #ruby-lang
Forgetful_Lion_ has quit [Read error: Connection reset by peer]
Forgetful_Lion_ has joined #ruby-lang
Forgetful_Lion_ has quit [Read error: Connection reset by peer]
mucker has quit [Remote host closed the connection]
Forgetful_Lion_ has joined #ruby-lang
mucker has joined #ruby-lang
Forgetful_Lion_ has quit [Read error: Connection reset by peer]
Forgetful_Lion_ has joined #ruby-lang
Forgetful_Lion_ has quit [Read error: Connection reset by peer]
Forgetful_Lion has quit [Ping timeout: 272 seconds]
pleirosei has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
schaerli has joined #ruby-lang
mucker has quit [Read error: Connection reset by peer]
Forgetful_Lion has quit [Read error: Connection reset by peer]
mucker has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
spuk has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
io_syl has quit []
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
jiuweigui has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
schaerli has quit [Ping timeout: 245 seconds]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
hramrach has quit [Ping timeout: 240 seconds]
jinslee has quit [Quit: Lost terminal]
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
diegoviola has quit [Ping timeout: 245 seconds]
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
MaddinXx has quit [Remote host closed the connection]
Forgetful_Lion has joined #ruby-lang
hramrach has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
symm- has joined #ruby-lang
Nss has quit [Ping timeout: 264 seconds]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
banisterfiend has quit [Quit: Computer has gone to sleep.]
Forgetful_Lion has joined #ruby-lang
<pleirosei>
hello. Can someone help me? I am trying to figure out why my case statement is not working for my rock paper scissors game. Included in this link is a small example of my case statement. It is always printing out the else portion, no matter what number I input. please help.
Forgetful_Lion has quit [Read error: Connection reset by peer]
<Trapper>
However it doesn't quite behave the way I expect
relix has joined #ruby-lang
<Trapper>
if I was using the puts method, I would get a 1, and then a 2, and then a 3 ect on the screen seperately
<Trapper>
instead, when win2 appears, it's already done all of its counting
<Trapper>
how are you meant to create, 'dynamic' content inside windows if it evaluates everything and then creates the window?
<ddfreyne>
Trapper: Maybe win2.addstr i.to_s replaces the contents.
Barrin6 has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Po-ta-to, boil em, mash em, stick em in a stew.]
Forgetful_Lion has quit [Ping timeout: 246 seconds]
<Trapper>
Barrin6: They're taking the Hobbits to Isenguard?
<Trapper>
ddfreynd: Could you elabourate? :)
<Trapper>
Do you know what I mean when I say everything's printed to the screen seperatley when using the puts method rather than curses?
Forgetful_Lion has joined #ruby-lang
<ddfreyne>
Trapper: What about adding the numbers separated by "\n" all at once?
nathanstitt has quit [Quit: I growing sleepy]
JohnBat26 has quit [Read error: Operation timed out]
apeiros has joined #ruby-lang
Forgetful_Lion has quit [Ping timeout: 246 seconds]
Forgetful_Lion has joined #ruby-lang
carlosgaldino has joined #ruby-lang
majjoha has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
<Trapper>
ddfreyne: What I mean is, when using the puts method with that loop, a 0 appears on the screen, and then it disappears. Then a 1 appears on the screen, and then it disappears. Then a 2 appears and so on
majjoha has quit [Ping timeout: 272 seconds]
<Trapper>
With a curses window, it seems the whole is run, and then all of the i's previous values are printed to the screen
<Trapper>
*whole loop
Forgetful_Lion has quit [Ping timeout: 246 seconds]
Forgetful_Lion has joined #ruby-lang
<Trapper>
' \n ' doesn't place characters onto the new line either
<Trapper>
it's simply printed as \n
<Trapper>
Also, the only way I can see my windows is by using a getch method to pause everything. Tad confusing..how can I display changing things, like a spinner?
<Trapper>
Don't know how I can create things like this
<Trapper>
if everything is evaluated before it's printed to the screen
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
lele has left #ruby-lang ["Leaving"]
Forgetful_Lion has quit [Ping timeout: 246 seconds]
bzalasky has quit [Ping timeout: 265 seconds]
Forgetful_Lion has joined #ruby-lang
MrZYX is now known as MrZYX|off
cogent has quit [Quit: cogent]
Forgetful_Lion has quit [Ping timeout: 246 seconds]
Forgetful_Lion has joined #ruby-lang
kurko_ has quit [Ping timeout: 240 seconds]
majjoha has joined #ruby-lang
brianpWins has joined #ruby-lang
brianpWins has quit [Client Quit]
brianpWins has joined #ruby-lang
adambeynon has joined #ruby-lang
kurko_ has joined #ruby-lang
cogent has joined #ruby-lang
cogent has quit [Client Quit]
majjoha has quit [Ping timeout: 240 seconds]
<Trapper>
I anyone around?
<Trapper>
*is anyone around?
<ddfreyne>
Trapper: There is a difference between '\n' and "\n". Also, when you use curses, that means not using puts at all (it will mess up your output)
nathanstitt has joined #ruby-lang
Forgetful_Lion has quit [Ping timeout: 246 seconds]
Forgetful_Lion has joined #ruby-lang
<Trapper>
ddfreyne: I'm using the .addstr method to append to the window
<Trapper>
thinking about it, that's probably adding a string, isn't it? :P
<Trapper>
what method should I be using?
<ddfreyne>
Trapper: So addstr replaces the contents?
<Trapper>
Yes
kurko_ has quit [Quit: Computer has gone to sleep.]
<Trapper>
I was hopping to .addstr "One" .addstr "\b" .addstr "two