apeiros changed the topic of #ruby-lang to: Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste code on https://gist.github.com
elia has quit [Quit: Computer has gone to sleep.]
marr has quit [Ping timeout: 244 seconds]
enebo has quit [Quit: enebo]
StephenOTT has joined #ruby-lang
rmcafee has joined #ruby-lang
rmcafee has quit [Client Quit]
duderonomy has quit [Read error: No route to host]
j4cknewt has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby-lang
workmad3 has quit [Ping timeout: 256 seconds]
baweaver has quit [Read error: Connection reset by peer]
baweaver has joined #ruby-lang
rcvalle has quit [Quit: rcvalle]
michaeldeol has quit [Ping timeout: 252 seconds]
StephenOTT has quit [Quit: StephenOTT]
StephenOTT has joined #ruby-lang
StephenOTT has joined #ruby-lang
izzimus has quit [Quit: Textual IRC Client: www.textualapp.com]
enebo has joined #ruby-lang
ryba_ has joined #ruby-lang
enebo has quit [Client Quit]
|jemc| has quit [Ping timeout: 256 seconds]
|jemc| has joined #ruby-lang
thelastinuit has quit [Read error: Connection reset by peer]
stardiviner has joined #ruby-lang
delongG has quit [Remote host closed the connection]
delongG has joined #ruby-lang
mkosaki has quit [Quit: Leaving...]
delongG has quit [Remote host closed the connection]
sankaber has joined #ruby-lang
stardiviner has quit [Ping timeout: 256 seconds]
hendranata_ has joined #ruby-lang
hahuang65 has joined #ruby-lang
mkosaki has joined #ruby-lang
StephenOTT has quit [Quit: StephenOTT]
dvlwrk has joined #ruby-lang
Musashi007 has joined #ruby-lang
charliesome has joined #ruby-lang
Olipro has joined #ruby-lang
stardiviner has joined #ruby-lang
rbowlby_ has joined #ruby-lang
rbowlby has quit [Ping timeout: 256 seconds]
ascarter has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
jgpawletko has joined #ruby-lang
ascarter has quit [Ping timeout: 272 seconds]
ascarter has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
wallerdev has quit [Ping timeout: 256 seconds]
rbowlby_ has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 256 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
stardiviner has joined #ruby-lang
vulix has left #ruby-lang [#ruby-lang]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter_ has joined #ruby-lang
stardiviner has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby-lang
baweaver has quit [Ping timeout: 265 seconds]
ascarter has quit [Ping timeout: 250 seconds]
CamonZ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stardiviner has joined #ruby-lang
toretore has quit [Quit: This computer has gone to sleep]
tkuchiki has joined #ruby-lang
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 272 seconds]
mkosaki has quit [Ping timeout: 256 seconds]
matp has joined #ruby-lang
ledestin has joined #ruby-lang
tkuchiki has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
crankharder has quit [Remote host closed the connection]
stardiviner has joined #ruby-lang
crankharder has joined #ruby-lang
bb010g has joined #ruby-lang
stardiviner has quit [Ping timeout: 256 seconds]
shinnya has quit [Ping timeout: 256 seconds]
Musashi007 has joined #ruby-lang
sross07 has quit [Read error: Connection reset by peer]
sross07 has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
mkosaki has joined #ruby-lang
skade has joined #ruby-lang
michaeldeol has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
tenderlove has joined #ruby-lang
hagabaka has quit [Quit: No Ping reply in 210 seconds.]
bennyklotz has quit [Ping timeout: 256 seconds]
bennyklo1z has quit [Ping timeout: 272 seconds]
bennyklotz has joined #ruby-lang
bennyklo1z has joined #ruby-lang
tenderlove has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby-lang
_djbkd has joined #ruby-lang
chadrien has quit [Ping timeout: 248 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
chadrien has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
jhn has joined #ruby-lang
tkuchiki has quit [Ping timeout: 272 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 255 seconds]
bungoman has joined #ruby-lang
malconis has joined #ruby-lang
mkosaki has quit [Ping timeout: 244 seconds]
coffeejunk has quit [Ping timeout: 250 seconds]
coffeejunk has joined #ruby-lang
mkosaki has joined #ruby-lang
michaeldeol has joined #ruby-lang
tkuchiki has joined #ruby-lang
workmad3 has joined #ruby-lang
gix has quit [Ping timeout: 244 seconds]
ascarter_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 265 seconds]
scampbell has quit [Remote host closed the connection]
scampbell has joined #ruby-lang
gix has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
matp has quit [Ping timeout: 255 seconds]
hahuang65 has quit [Quit: WeeChat 1.1.1]
cornerma1 has joined #ruby-lang
hahuang65 has joined #ruby-lang
ascarter has joined #ruby-lang
LMity has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
tkuchiki has quit [Remote host closed the connection]
ascarter has joined #ruby-lang
ascarter_ has quit [Ping timeout: 240 seconds]
cornerman has quit [Ping timeout: 248 seconds]
cornerma1 is now known as cornerman
ascarter has quit [Max SendQ exceeded]
matp has joined #ruby-lang
ascarter has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gwendall_ has quit [Remote host closed the connection]
LMity has quit [Ping timeout: 255 seconds]
malconis has joined #ruby-lang
malconis has quit [Client Quit]
hakunin has quit []
ascart___ has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
ascarter_ has joined #ruby-lang
ascarter has quit [Ping timeout: 264 seconds]
ascart___ has quit [Ping timeout: 264 seconds]
jhn has quit [Quit: Textual IRC Client: www.textualapp.com]
hakunin has joined #ruby-lang
shinnya has joined #ruby-lang
revath has joined #ruby-lang
malconis has joined #ruby-lang
malconis has quit [Client Quit]
banister has quit [Read error: Connection reset by peer]
fusillicode1 has joined #ruby-lang
fusillicode has quit [Ping timeout: 244 seconds]
skade has quit [Remote host closed the connection]
ascarter has joined #ruby-lang
ascarte__ has joined #ruby-lang
ascarter_ has quit [Ping timeout: 256 seconds]
rbowlby has joined #ruby-lang
ascarte__ has quit [Max SendQ exceeded]
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
ascarter has quit [Ping timeout: 276 seconds]
pwnz0r has joined #ruby-lang
skade has joined #ruby-lang
skade has quit [Remote host closed the connection]
CamonZ has joined #ruby-lang
bennyprofane has joined #ruby-lang
skade has joined #ruby-lang
skade has quit [Remote host closed the connection]
riotjones has joined #ruby-lang
arBmind has joined #ruby-lang
riotjones has quit [Ping timeout: 250 seconds]
<bennyprofane> Noob question. I just started reading the book Learn Ruby the Hard Way. There's a question where you are supposed to use both ARGV and gets.chomp(). Why does my script give an error when I use command line arguments but if I don't enter any CLI args it runs fine? here's the pastebin for my script http://pastebin.com/bhjPaAGh
workmad3 has joined #ruby-lang
skade has joined #ruby-lang
hahuang65 has quit [Ping timeout: 276 seconds]
skade has quit [Remote host closed the connection]
malconis has joined #ruby-lang
malconis has quit [Client Quit]
malconis has joined #ruby-lang
malconis has quit [Client Quit]
workmad3 has quit [Ping timeout: 264 seconds]
revath has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby-lang
bennyprofane has left #ruby-lang [#ruby-lang]
riotjones has joined #ruby-lang
skade has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
skade has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 244 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby-lang
symm- has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
yfeldblum has quit [Ping timeout: 256 seconds]
scampbell has quit [Remote host closed the connection]
skade has joined #ruby-lang
ta has joined #ruby-lang
revath has joined #ruby-lang
skade has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
ged has quit [Ping timeout: 264 seconds]
skade has joined #ruby-lang
stonith has quit [Ping timeout: 256 seconds]
stonith has joined #ruby-lang
stonith has quit [Changing host]
stonith has joined #ruby-lang
skade has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 264 seconds]
revath has quit [Ping timeout: 250 seconds]
fusillicode1 has quit [Ping timeout: 240 seconds]
skade has joined #ruby-lang
hagabaka has joined #ruby-lang
stardiviner has joined #ruby-lang
<wnd> I'm afraid I don't have an answer to the actual question but $stdin.gets seems to do the trick
jas02 has joined #ruby-lang
coffeejunk has quit [Remote host closed the connection]
kerunaru has joined #ruby-lang
coffeejunk has joined #ruby-lang
jas02 has quit [Client Quit]
revath has joined #ruby-lang
pwnz0r has quit [Remote host closed the connection]
pwnz0r has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
houhoulis has joined #ruby-lang
fsvehla has joined #ruby-lang
solars has joined #ruby-lang
pwnz0r has quit [Ping timeout: 250 seconds]
revath has quit [Ping timeout: 265 seconds]
duderonomy has joined #ruby-lang
charliesome has joined #ruby-lang
ur5us has joined #ruby-lang
ta has joined #ruby-lang
jas02 has joined #ruby-lang
ta has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
revath has joined #ruby-lang
leat2 has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
djbkd_ has quit [Read error: Connection reset by peer]
leat2 has joined #ruby-lang
revath has quit [Ping timeout: 276 seconds]
relix has joined #ruby-lang
x44x45x41x4E has joined #ruby-lang
Iskarlar has joined #ruby-lang
Miphix has quit [Read error: Connection reset by peer]
marr has joined #ruby-lang
leat2 has quit [Remote host closed the connection]
leat2 has joined #ruby-lang
houhoulis has quit [Remote host closed the connection]
revath has joined #ruby-lang
Miphix has joined #ruby-lang
RickHull has left #ruby-lang [#ruby-lang]
skade has joined #ruby-lang
workmad3 has joined #ruby-lang
revath has quit [Ping timeout: 240 seconds]
rickrobs_ has quit [Ping timeout: 276 seconds]
elia has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby-lang
fusillicode has joined #ruby-lang
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
leat2 has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby-lang
tkuchiki has joined #ruby-lang
leat2 has joined #ruby-lang
revath has joined #ruby-lang
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby-lang
leat2 has quit [Ping timeout: 248 seconds]
gwendall has joined #ruby-lang
leat2 has joined #ruby-lang
Musashi007 has joined #ruby-lang
yfeldblum has joined #ruby-lang
<maloik> Going all (tumbleweed) in RoR again :( sigh
<apeiros> o0
<maloik> dunno what it is but my questions pretty much always get ignored entirely
<ledestin> maloik they don't know how to handle non-newb questions?
<maloik> quite possibly
<ledestin> I don't really follow, but there's a google group for RoR
<ljarvis> maloik: what's the question?
j4cknewt has joined #ruby-lang
<ledestin> I had an impression that it's not that bad
mikecmpbll has joined #ruby-lang
<maloik> that explains is
<maloik> it*
rickrobs has joined #ruby-lang
<maloik> not entirely sure it's possible actually
yfeldblum has quit [Read error: Connection reset by peer]
<ljarvis> maloik: I think the old implementation is better
yfeldblum has joined #ruby-lang
<ljarvis> making a scope instance dependant isn't a good idea
<ljarvis> (imo)
<maloik> I know but that was only my first attempt
<maloik> I'm trying to remove that dependency but I'm not sure how
<ljarvis> the method idea looks good to me
<maloik> but n+1 queries :-(
<ljarvis> right, i'd store the root subdomain id on domain then
<ljarvis> that'd fix any query concerns
<maloik> yea it would, but not super excited about that either
<ljarvis> what's your reservation about it?
<maloik> oh well, I guess I'll have to choose between the best of the worst options then :D
dvlwrk has quit [Ping timeout: 245 seconds]
<maloik> well
<ljarvis> that's the best option by a mile if you care about querying :)
Musashi007 has quit [Quit: Musashi007]
<maloik> mostly that it felt redundant
workmad3 has quit [Ping timeout: 256 seconds]
<maloik> I suppose it did cause I thought there may be a way to fix the association
<ljarvis> "but n+1 queries :-(" <- this makes it not redundant
tkuchiki has quit [Remote host closed the connection]
<ljarvis> anyway, if a root subdomain is any domain that does not have a value, why not just use that and select it by distinct domain_id
<yorickpeterse> morning
djbkd has joined #ruby-lang
michael_mbp has quit [Excess Flood]
<|jemc|> yorickpeterse: good morning... and that's how I know I must be up too late >_<
michael_mbp has joined #ruby-lang
crdpink2 has quit [Ping timeout: 265 seconds]
djbkd has quit [Ping timeout: 264 seconds]
<maloik> ljarvis: mostly cause I tried to quickly select all domains without a root subdomain
<maloik> (working on a fix of bad data in the db)
djbkd has joined #ruby-lang
djbkd has quit [Ping timeout: 272 seconds]
harly has joined #ruby-lang
gwendall_ has joined #ruby-lang
|jemc| has quit [Ping timeout: 250 seconds]
gwendall has quit [Ping timeout: 272 seconds]
Guest20 has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
Obfuscate has quit [Quit: Expecting a prolonged power outage.]
workmad3 has joined #ruby-lang
<maloik> ljarvis: apparently... this works: has_one :root_subdomain, -> { where(value: nil) }, class_name: 'Subdomain'
<maloik> rails magic...
ta has joined #ruby-lang
<maloik> it just knows it has to select on rows where subdomain.domain_id = id
gwendall_ has quit [Remote host closed the connection]
kr3ssh has joined #ruby-lang
sross07 has quit [Read error: Connection reset by peer]
sross07 has joined #ruby-lang
gwendall has joined #ruby-lang
mikecmpb_ has joined #ruby-lang
<yorickpeterse> allrighty, today I get to deploy 2 months of work spread across 5 applications
<yorickpeterse> what could go wrong
<yorickpeterse> especially with pull requests like this: http://i.imgur.com/fLAkm6j.png
mikecmpbll has quit [Ping timeout: 256 seconds]
<maloik> why not wait until friday? :P
<yorickpeterse> I'm not _that_ crazy
<yorickpeterse> Allright, time to play highway to the dangerzone
stan_ has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
<darix> yorickpeterse: so queue top gun soundtrack?
<harly> so you've been deploying and testing internally for 2 months, what could go wrong? :)
<yorickpeterse> darix: good thinking
k3asd` has joined #ruby-lang
nofxx has quit [Ping timeout: 244 seconds]
<ljarvis> maloik: yeah it was the scope that was breaking it, using a scope with an argument means you have to build an instance which obviously removes all the good stuff
<maloik> yea I got that, I just didn't realize it would work without it
OnBrokenWings has joined #ruby-lang
<ljarvis> rails magic, not even once
<maloik> hmm? :)
allomov has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
ItSANgo_ has quit [Quit: Leaving...]
ryba_ has quit [Ping timeout: 256 seconds]
ur5us has joined #ruby-lang
Musashi007 has joined #ruby-lang
ItSANgo has joined #ruby-lang
j4cknewt has quit []
solars has quit [Quit: WeeChat 0.4.2]
solars has joined #ruby-lang
hendranata_ has quit [Ping timeout: 276 seconds]
allomov has joined #ruby-lang
ryba_ has joined #ruby-lang
kr3ssh has quit [Ping timeout: 252 seconds]
ArchRogem has joined #ruby-lang
Guest20 has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
kr3ssh has joined #ruby-lang
Musashi007 has joined #ruby-lang
stardiviner has joined #ruby-lang
LMity has joined #ruby-lang
banister has joined #ruby-lang
LMity has quit [Ping timeout: 276 seconds]
tkuchiki has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
pwnz0r has joined #ruby-lang
chinmay_dd has joined #ruby-lang
pwnz0r has quit [Ping timeout: 256 seconds]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
piotrj has quit [Read error: Connection reset by peer]
piotrj has joined #ruby-lang
chinmay_dd has quit [Ping timeout: 256 seconds]
x44x45x41x4E is now known as [Away]x44x45x41x
skade has joined #ruby-lang
k3asd` has quit [Quit: Lost terminal]
Guest64608 has joined #ruby-lang
thelastinuit has joined #ruby-lang
[Away]x44x45x41x is now known as x44x45x41x4E
sideshowcoder_ is now known as sideshowcoder
vondruch_ is now known as vondruch
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has joined #ruby-lang
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
<ljarvis> hmm indeed
OnBrokenWings has quit [Quit: Leaving]
skade has joined #ruby-lang
ascarter has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has quit [Client Quit]
charliesome has quit [Quit: zzz]
sarkyniin has joined #ruby-lang
fumduq has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
fumduq has joined #ruby-lang
workmad3 has joined #ruby-lang
charliesome has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
piotrj has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ADot has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
ADot has quit [Quit: Leaving.]
leat2 has quit [Ping timeout: 248 seconds]
bruno- has quit [Ping timeout: 265 seconds]
Mon_Ouie has joined #ruby-lang
chinmay_dd has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 252 seconds]
piotrj has joined #ruby-lang
leat2 has joined #ruby-lang
ruby-lang827 has joined #ruby-lang
gwendall has joined #ruby-lang
ur5us has joined #ruby-lang
leat2 has quit [Remote host closed the connection]
leat2 has joined #ruby-lang
toretore has joined #ruby-lang
b_hoffman has joined #ruby-lang
ur5us has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby-lang
alestuber has joined #ruby-lang
leat2 has quit [Remote host closed the connection]
leat2 has joined #ruby-lang
godzillaenlacasa has quit [Quit: Peace Out Peeps!]
djbkd has quit [Ping timeout: 264 seconds]
alestuber has quit [Remote host closed the connection]
alestuber has joined #ruby-lang
reaction has joined #ruby-lang
CamonZ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stardiviner has quit [Ping timeout: 252 seconds]
alestuber has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 256 seconds]
alestuber has joined #ruby-lang
ruby-lang827 has quit [Ping timeout: 246 seconds]
leat2 has quit [Remote host closed the connection]
leat2 has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
x44x45x41x4E has quit [Remote host closed the connection]
imperator has joined #ruby-lang
Guest64608 has quit [Quit: Leaving]
stardiviner has joined #ruby-lang
victortyau has joined #ruby-lang
rikkipitt has joined #ruby-lang
setanta_ has joined #ruby-lang
elia_ has joined #ruby-lang
alestuber has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
elia has quit [Ping timeout: 252 seconds]
sankaber has joined #ruby-lang
alestuber has joined #ruby-lang
workmad3 has quit [Ping timeout: 248 seconds]
apt-get_ has joined #ruby-lang
sarkyniin has quit [Ping timeout: 240 seconds]
alestuber has quit [Remote host closed the connection]
simplon has joined #ruby-lang
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
alestuber has joined #ruby-lang
nertzy has joined #ruby-lang
ir2ivps3_ has quit [Ping timeout: 245 seconds]
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
dorei has joined #ruby-lang
simplon has quit [Quit: leaving]
b_hoffman has quit [Read error: Connection reset by peer]
b_hoffman has joined #ruby-lang
Musashi007 has joined #ruby-lang
rmcafee has joined #ruby-lang
<yorickpeterse> deploy all the things!
<yorickpeterse> so far nothing broke
<yorickpeterse> I remain skeptical
revath has quit [Ping timeout: 256 seconds]
CamonZ has joined #ruby-lang
tenderlove has joined #ruby-lang
chinmay_dd has quit [Ping timeout: 250 seconds]
tenderlove has quit [Ping timeout: 250 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
bungoman has joined #ruby-lang
ir2ivps3_ has joined #ruby-lang
apt-get__ has joined #ruby-lang
apt-get_ has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
malconis has joined #ruby-lang
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alestuber has quit [Ping timeout: 255 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby-lang
skade has joined #ruby-lang
allomov has quit [Remote host closed the connection]
alestuber has joined #ruby-lang
allomov has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
rikkipit_ has joined #ruby-lang
enebo has joined #ruby-lang
rikkipitt has quit [Ping timeout: 248 seconds]
bruno- has joined #ruby-lang
|jemc| has joined #ruby-lang
havenwood has joined #ruby-lang
yagooar has joined #ruby-lang
yagooar has quit [Client Quit]
bungoman has joined #ruby-lang
whippythellama has joined #ruby-lang
k3asd` has joined #ruby-lang
riotjones has quit [Remote host closed the connection]
kr3ssh has quit [Ping timeout: 276 seconds]
sgambino has joined #ruby-lang
alestuber has quit [Read error: Connection reset by peer]
|jemc| has quit [Quit: WeeChat 1.1.1]
|jemc| has joined #ruby-lang
tenderlove has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
bungoman has joined #ruby-lang
alestuber has joined #ruby-lang
joaomdmoura has joined #ruby-lang
kr3ssh has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
bungoman has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby-lang
harly has quit [Quit: Leaving]
joaomdmoura has quit [Read error: Connection reset by peer]
joaomdmoura has joined #ruby-lang
cpt_yossarian has quit [Quit: And then he took off.]
bungoman has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
dzejrou has joined #ruby-lang
kr3ssh has quit [Quit: Lost terminal]
__butch__ has joined #ruby-lang
reaction has quit [Quit: Page closed]
apt-get_ has joined #ruby-lang
apt-get__ has quit [Ping timeout: 244 seconds]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
tkuchiki has quit [Ping timeout: 265 seconds]
seank___ has quit []
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
tkuchiki has joined #ruby-lang
seank__ has joined #ruby-lang
alestuber has quit [Ping timeout: 250 seconds]
Musashi007 has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
ItSAN____ has joined #ruby-lang
ItSANgo has quit [Ping timeout: 244 seconds]
alestuber has joined #ruby-lang
loincloth has quit []
Lewix has joined #ruby-lang
elia_ has quit [Read error: Connection reset by peer]
rikkipit_ has quit [Quit: Leaving...]
jgpawletko has joined #ruby-lang
jas02 has quit [Quit: jas02]
elia has joined #ruby-lang
riotjones has joined #ruby-lang
k3asd` has quit [Ping timeout: 265 seconds]
k3asd` has joined #ruby-lang
solars has quit [Ping timeout: 265 seconds]
riotjones has quit [Ping timeout: 276 seconds]
leat2 has quit [Ping timeout: 256 seconds]
iamninja has joined #ruby-lang
arBmind has joined #ruby-lang
leat2 has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
allomov has quit [Remote host closed the connection]
alestuber has quit [Ping timeout: 244 seconds]
droidburgundy has joined #ruby-lang
allomov has joined #ruby-lang
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
thelastinuit has quit [Quit: Textual IRC Client: www.textualapp.com]
leat2 has quit [Remote host closed the connection]
leat2 has joined #ruby-lang
alestuber has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 256 seconds]
joaomdmoura has joined #ruby-lang
workmad3 has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
elia_ has joined #ruby-lang
brownbathrobe has joined #ruby-lang
elia has quit [Ping timeout: 264 seconds]
shinnya has quit [Ping timeout: 252 seconds]
revath has joined #ruby-lang
michael_mbp has quit [Excess Flood]
chouhoul_ has joined #ruby-lang
michael_mbp has joined #ruby-lang
|jemc|_ has joined #ruby-lang
|jemc| has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Ping timeout: 244 seconds]
allomov has quit [Remote host closed the connection]
victortyau has quit [Quit: Leaving]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
tkuchiki has joined #ruby-lang
michaeldeol has quit [Client Quit]
aeze has joined #ruby-lang
michaeldeol has joined #ruby-lang
allomov has joined #ruby-lang
tkuchiki has quit [Ping timeout: 245 seconds]
ur5us has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby-lang
|jemc|_ has quit [Ping timeout: 256 seconds]
alestuber has quit [Ping timeout: 252 seconds]
ur5us has quit [Ping timeout: 256 seconds]
rcvalle has joined #ruby-lang
thelastinuit has joined #ruby-lang
alestuber has joined #ruby-lang
skade has joined #ruby-lang
djbkd has joined #ruby-lang
thelastinuit has quit [Client Quit]
arBmind has quit [Read error: Connection reset by peer]
malconis has quit [Ping timeout: 264 seconds]
djbkd has quit [Ping timeout: 255 seconds]
|jemc|_ has joined #ruby-lang
melter has quit [Quit: Client exiting]
bungoman has quit [Remote host closed the connection]
bungoman has joined #ruby-lang
mikecmpb_ has quit [Quit: i've nodded off.]
LMity has joined #ruby-lang
michaeldeol has quit [Ping timeout: 240 seconds]
fusillicode has quit [Ping timeout: 276 seconds]
momomomomo has joined #ruby-lang
atomical has quit [Ping timeout: 248 seconds]
arBmind has joined #ruby-lang
[k- has joined #ruby-lang
SylarRuby has joined #ruby-lang
LMity has quit [Ping timeout: 256 seconds]
cornerma1 has joined #ruby-lang
alestuber has quit [Read error: Connection reset by peer]
k3asd`_ has joined #ruby-lang
joaomdmoura has joined #ruby-lang
micmus has joined #ruby-lang
cornerman has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
workmad3 has quit [Ping timeout: 248 seconds]
k3asd` has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby-lang
alestuber has joined #ruby-lang
joaomdmoura has quit [Ping timeout: 265 seconds]
Lewix has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
apt-get_ has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
shazaum has joined #ruby-lang
fsvehla has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
lian_ has joined #ruby-lang
__butch__ has joined #ruby-lang
lian_ is now known as lianj
piotrj has quit [Ping timeout: 256 seconds]
lianj has quit [Changing host]
lianj has joined #ruby-lang
fsvehla has quit [Client Quit]
Musashi007 has quit [Quit: Musashi007]
mikecmpbll has joined #ruby-lang
wallerdev has joined #ruby-lang
fsvehla has joined #ruby-lang
elia_ has quit [Quit: Computer has gone to sleep.]
alestuber has quit [Ping timeout: 248 seconds]
stan_ has quit [Ping timeout: 265 seconds]
fsvehla has quit [Client Quit]
ldnunes has joined #ruby-lang
alestuber has joined #ruby-lang
atomical has joined #ruby-lang
ryba_ has quit [Ping timeout: 256 seconds]
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
atomical has quit [Client Quit]
rmcafee has quit [Quit: rmcafee]
ascarter has joined #ruby-lang
rmcafee has joined #ruby-lang
atomical has joined #ruby-lang
dzejrou has quit [Read error: Connection reset by peer]
[k- has quit [Quit: Lingo: www.lingoirc.com]
gwendall has quit [Remote host closed the connection]
shinnya has joined #ruby-lang
dzejrou has joined #ruby-lang
Lewix has joined #ruby-lang
malconis has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has quit [Ping timeout: 252 seconds]
skade has joined #ruby-lang
bin7me has joined #ruby-lang
Lewix has quit []
elev has joined #ruby-lang
<elev> What is the site that you guys can see my code
<elev> without have to paste all in?
<havenwood> elev: https://gist.github.com
<pipework> gist
<elev> gist yeah thanjs
<elev> what is wrong
<havenwood> elev: not saved with a .rb extension so no syntax highlighting
<elev> it is
<elev> saved as easyquiz.rb
<havenwood> elev: other than that :P, you haven't defined `question2` and `question3`
<elev> what you mean?
<elev> defined?
<havenwood> elev: i just meant in the gist. you have gistfile1.txt so no syntax highlighting.
<elev> I started ruby 1 week ago lol I dont understand
<elev> I made it in sublime
<elev> saved it as quiz.rb
<elev> run it it terminal
<havenwood> elev: You're using the bareword `question2` in the Array, right? Is it set earlier or this is the first time you've used `question2`?
<elev> doesnt work
<havenwood> >> question2
<eval-in> havenwood => undefined local variable or method `question2' for main:Object (NameError) ... (https://eval.in/321349)
<elev> what is wrong with question 2?
<elev> its till later
<havenwood> elev: what's the Error you're seeing when you run your code?
<elev> same as he pasted
<elev> undefined local variable or method `question2'
<elev> for main:Object (NameError) ... (https://eval.in/321349)
<elev> why is question 2 wrong and not 3?
<havenwood> elev: It doesn't get to 3.
<elev> but it gets to 2?
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
<havenwood> elev: Yeah, you defined the local variable `question1` with `question1 = ...`. So no problem there.
SylarRuby has quit [Remote host closed the connection]
<elev> So I have to delete question 2?
<elev> in the arra?
<elev> array?`
<havenwood> elev: Unlike instance variables, etc a local variable will raise a NameError instead of returning nil when undefined.
<elev> ok
<elev> so what should i do?
<havenwood> elev: There needs to be a method or local variable named `question2` before you try using it.
<elev> ohh
<elev> and a question 3?
<havenwood> elev: yup
<elev> ok
<elev> the same way as I did with 1?
<elev> questiion 1
<havenwood> elev: That's what I'd expect, but depends on what you're doing. Do you know what class `question1` is?
<elev> no
<elev> I just want to make a quiz
<havenwood> elev: ask it: question1.class #=> Hash
<havenwood> elev: questions.class #=> Array
<elev> question1 = { question: "What is the capital of England?", answers: ["Berlin", "Oslo", "London"], correct_answer: 2
<elev> }
<elev> questions = [ question1, question2, question3
<elev> ]thast all my code
<elev> I try out and I come back later
<elev> thanks for help
<havenwood> elev: So your problem is just that you're calling local variables before defining them. Good luck!
<elev> thanks :)
<elev> havenwood you work here?
<elev> in irc?
gwendall has joined #ruby-lang
baweaver has joined #ruby-lang
<havenwood> elev: I do work related stuff in other channels on irc but no, I don't work for #ruby-lang or anything if that's what you mean?
Iskarlar has joined #ruby-lang
<elev> ok
<elev> why are you helping here ?
djbkd has joined #ruby-lang
<pipework> elev: He helps in many channels. He's a great person in general and you should count your lucky stars (github or celestial) to have his help. :)
<elev> so he dont get paid?
<elev> not you either?
<pipework> I voluntarily help people. This is mostly a help channel, but it's also social.
<elev> ok
<havenwood> pipework: :)
<elev> I am only 14 year old I am new to irc
<elev> but I fint it very helpful :)
<pipework> This channel and the ethos that it keeps is one that reflects only part of the open source community at large.
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
<pipework> elev: Cheers, and good luck in your exploits and adventures. :D
hahuang65 has joined #ruby-lang
<elev> thanks
<elev> now I tet my code xd
<pipework> havenwood: Is it rude to say 'cheers' to someone who might not be able to drink the kind of beverages one usually associates with that phrase?
<elev> LOL
fusillicode has joined #ruby-lang
<elev> wtf xD
<elev> pipework how old are you?
<pipework> elev: 23 years ginger.
<elev> or mostly people around here?
<elev> k
hrendalf has joined #ruby-lang
allomov has quit [Remote host closed the connection]
cornerma1 has joined #ruby-lang
joaomdmoura has joined #ruby-lang
djbkd_ has joined #ruby-lang
cornerman has quit [Ping timeout: 272 seconds]
cornerma1 is now known as cornerman
<elev> wrong with this code?
alestuber has quit [Ping timeout: 255 seconds]
<yxhuvud> inconsistent indentation
<elev> what?
<yxhuvud> also, you lack a couple of commas
<elev> now I comma all
<elev> what else?
<elev> what does inconsistent indentation
<elev> means
<yxhuvud> you use different amount of spaces on different lines
<pipework> elev: The spaces in front of lines of code.
<pipework> elev: You need commas after the values if it's not the last value in the hash.
<elev> where do I need commas?
<elev> after the :
<pipework> elev: Place https://gist.github.com/anonymous/216b8d3174909eae97ba#file-gistfile1-txt-L1-L5 at the end after you define the questions.
<pipework> elev: No, on the end of the line.
<elev> after the [
<elev> ]
<elev> *
djbkd_ has quit [Ping timeout: 256 seconds]
<elev> now?
alestuber has joined #ruby-lang
<elev> guys?
postmodern has joined #ruby-lang
<havenwood> pipework: hehe, we can wish just the merriment for now - spirits of just that sort
<elev> havenwood
<elev> whats wrong in my code now
<havenwood> elev: Edit the Gist instead of creating new ones. See the Gist filename in the upper left? Save it with a .rb extension.
<elev> ok
<elev> ut wut was wrong?
<havenwood> elev: What does the Error say?
<elev> ruby easyquiz.rb
<elev> easyquiz.rb:9: syntax error, unexpected tIDENTIFIER, expecting '}'
<elev> answers: ["Berlin", "Oslo", "London"]
<elev> ^
<havenwood> elev: Like yxhuvud said, missing commas, indentation, etc.
<elev> missing now too?
<elev> I fixed it
<elev> the commas
<elev> where should the commas be?
<yxhuvud> elev: the error you get is what you get when you lack one, and you get it where the parser expects one
<elev> so wat should I do?
<havenwood> elev: Have you edited the gist with all the suggestions so far?
<yxhuvud> read the code, carefully
<elev> I dont understand where you want the comms to be havenwood
<havenwood> elev: Between each element of an Array and between each key/value pair of a Hash.
<elev> havenwood can you just make it for me
<elev> I dont understand englich either
<elev> xd
<havenwood> elev: Never!
<pipework> elev: We tend to prefer to help you help yourself.
<elev> xd
<elev> ok
<elev> in this code:
<elev> question3 = {
<elev> question: "Whats the real name of mafia boy?"
<elev> answers: ["James bond", "Michael Calce", "Vandetta"],
<elev> correct_answer: 1
<elev> }where should commas been?
<havenwood> elev: What are the key/value pairs?
<elev> I dont know
<elev> dont even know what that means
<elev> thanks
<elev> nope
<elev> dont know where the commas should be
<elev> xd
lytol has joined #ruby-lang
k3asd`_ has quit [Ping timeout: 240 seconds]
<havenwood> elev: Did you succeed in the exercises? How'd the commas work there?
<havenwood> elev: See the Ruby Hash docs for more examples: http://ruby-doc.org/core/Hash.html
<elev> why is a fucking comma so imporant? xd
momomomomo has joined #ruby-lang
<elev> it said nothing about commas there havenwood
brownbathrobe has quit [Remote host closed the connection]
atomical has quit [Read error: Connection reset by peer]
<havenwood> elev: But it does show key-value pair examples galore. A comma between each pair. Some languages like Clojure treat such commas as entirely optional. The Ruby parser insists!
atomical_ has joined #ruby-lang
<elev> I think I figured it out
<elev> coma after every ]
<elev> no comma after question key
brownbathrobe has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
atomical has joined #ruby-lang
atomical_ has quit [Read error: Connection reset by peer]
hrendalf has quit [Read error: Connection reset by peer]
symm- has joined #ruby-lang
workmad3 has quit [Ping timeout: 244 seconds]
allomov has joined #ruby-lang
elev has quit [Quit: Lost terminal]
djbkd_ has joined #ruby-lang
piotrj has joined #ruby-lang
bungoman has joined #ruby-lang
allomov has quit [Remote host closed the connection]
danzilio has joined #ruby-lang
bungoman_ has joined #ruby-lang
djbkd_ has quit [Ping timeout: 272 seconds]
bungoman has quit [Ping timeout: 245 seconds]
elia has joined #ruby-lang
bungoman_ has quit [Ping timeout: 272 seconds]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hrendalf has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 256 seconds]
bungoman has joined #ruby-lang
lytol has quit [Remote host closed the connection]
cpt_yossarian has joined #ruby-lang
k3asd` has joined #ruby-lang
yfeldblum has joined #ruby-lang
banister has joined #ruby-lang
SylarRuby has joined #ruby-lang
RickHull has joined #ruby-lang
k3asd` has quit [Ping timeout: 255 seconds]
skade has quit [Quit: Computer has gone to sleep.]
SylarRuby has quit [Ping timeout: 244 seconds]
Lewix has joined #ruby-lang
allomov has joined #ruby-lang
k3asd` has joined #ruby-lang
atomical has joined #ruby-lang
revath has quit [Ping timeout: 255 seconds]
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
bin7me has quit [Read error: Connection reset by peer]
surrounder has quit [Quit: WeeChat 1.1.1]
atomical has quit [Read error: Connection reset by peer]
surrounder has joined #ruby-lang
atomical has joined #ruby-lang
alestuber has quit [Ping timeout: 252 seconds]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
shazaum has quit [Ping timeout: 256 seconds]
jacaballero has joined #ruby-lang
rmcafee has quit [Quit: rmcafee]
kadoppe has quit [Ping timeout: 272 seconds]
alestuber has joined #ruby-lang
kadoppe has joined #ruby-lang
skade has joined #ruby-lang
jacaballero has quit [Quit: Textual IRC Client: www.textualapp.com]
jacaballero has joined #ruby-lang
symm- has quit [Ping timeout: 250 seconds]
wallerdev has quit [Quit: wallerdev]
joaomdmoura has quit [Remote host closed the connection]
koos303 has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
bungoman has quit [Remote host closed the connection]
bungoman has joined #ruby-lang
sarkyniin has joined #ruby-lang
chinmay_dd has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
jacaballero is now known as jacaballero[away
jgpawletko has quit [Quit: jgpawletko]
jacaballero[away is now known as jacaballero
revath has joined #ruby-lang
leat2 has quit [Ping timeout: 256 seconds]
alestuber has quit [Ping timeout: 256 seconds]
chinmay_dd has quit [Quit: Leaving]
chinmay_dd has joined #ruby-lang
chinmay_dd_ has joined #ruby-lang
chinmay_dd_ has quit [Remote host closed the connection]
chinmay_dd_ has joined #ruby-lang
chinmay_dd_ has quit [Remote host closed the connection]
chinmay_dd_ has joined #ruby-lang
chinmay_dd_ has quit [Client Quit]
alestuber has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
chinmay_dd has quit [Ping timeout: 256 seconds]
joaomdmoura has joined #ruby-lang
LBo has quit [Ping timeout: 240 seconds]
unsymbol has quit [Ping timeout: 240 seconds]
chamblin has joined #ruby-lang
lele is now known as Guest24
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
unsymbol has joined #ruby-lang
LBo has joined #ruby-lang
lytol has joined #ruby-lang
symm- has joined #ruby-lang
jacaballero has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brownbathrobe has quit [Remote host closed the connection]
koos303 has quit [Quit: sanks for all de vis]
jgpawletko has joined #ruby-lang
iamninja has quit [Read error: Connection reset by peer]
deol has joined #ruby-lang
iamninja has joined #ruby-lang
workmad3 has joined #ruby-lang
leat2 has joined #ruby-lang
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gwendall has quit [Remote host closed the connection]
chamblin has quit [Quit: Textual IRC Client: www.textualapp.com]
gwendall has joined #ruby-lang
deol is now known as michaeldeol
b_hoffman has joined #ruby-lang
brownbathrobe has joined #ruby-lang
gwendall has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby-lang
bzb has joined #ruby-lang
n3b has quit [Ping timeout: 246 seconds]
rtl_ is now known as rtl
victortyau has joined #ruby-lang
victortyau has quit [Read error: Connection reset by peer]
n3b has joined #ruby-lang
dik_dak has joined #ruby-lang
tenderlove has quit [Quit: Leaving...]
sarkyniin has quit [Read error: Connection reset by peer]
sarkyniin has joined #ruby-lang
tenderlove has joined #ruby-lang
alestuber has quit [Ping timeout: 248 seconds]
Lewix has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
wallerdev has joined #ruby-lang
alestuber has joined #ruby-lang
delongG has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
mahlon has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
workmad3 has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby-lang
b_hoffman has joined #ruby-lang
danzilio has quit [Ping timeout: 272 seconds]
rikkipitt has joined #ruby-lang
leat2 has quit [Ping timeout: 264 seconds]
allomov has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
alestuber has quit [Read error: Connection reset by peer]
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby-lang
brownbathrobe has quit [Remote host closed the connection]
SylarRuby has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
alestuber has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
jacaballero has joined #ruby-lang
ur5us has joined #ruby-lang
rbowlby has quit [Remote host closed the connection]
rbowlby has joined #ruby-lang
CrimsonSunrise has joined #ruby-lang
aeze has quit [Ping timeout: 264 seconds]
gwendall has joined #ruby-lang
elia has joined #ruby-lang
danzilio has joined #ruby-lang
<CrimsonSunrise> Hello. It's my first time here and I was wondering if I can ask questions in here.
delongG has quit [Remote host closed the connection]
alestuber has quit [Ping timeout: 256 seconds]
OnBrokenWings has joined #ruby-lang
<havenwood> CrimsonSunrise: Hi. Yeah this is a great place for Ruby questions.
dzejrou has quit [Ping timeout: 264 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
<CrimsonSunrise> havenwood: My question may or may not be highly "zen" or not. Let's say that I'm kind of struggling with learning Ruby and I wasn wondering how one keeps himself interested on the language as per se, especially when you don't uderstand the documentation or you find that tutorials for what you're looking for are vague and don't tell you much.
duderonomy has joined #ruby-lang
delongG has joined #ruby-lang
<havenwood> CrimsonSunrise: I enjoy the tight feedback loop and adventure of exploring Ruby in the Pry REPL.
alestuber has joined #ruby-lang
rikkipitt has quit [Quit: Leaving...]
micmus has quit [Quit: Leaving]
<jacaballero> @CrimsonSunrise: Hi! Is Ruby the first programming language you learn?
bzb has quit [Quit: I hate to quit but my bladder's full. :-(]
baweaver has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
shazaum has joined #ruby-lang
<yorickpeterse> If you want it to be
<CrimsonSunrise> jacaballero: Technically yes. I "tried" other languages and only stick with Ruby because it made sense with the bit of Haskell I was studying before that.
<jacaballero> Do you have a specific project you want to develop?
<yorickpeterse> eh?
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<CrimsonSunrise> jacaballero: Not really.
<jacaballero> CrimsonSunrise I would recommend you to find something to focus on, let's say a game or a little notebook app. This way you can start at your own step and look for help when you are stuck. If you are having trouble with sintaxis and Ruby's general structure I would recommend starting here: http://www.codecademy.com/tracks/ruby
bruno- has quit [Ping timeout: 250 seconds]
<CrimsonSunrise> jacaballero: I guess game development would be one of the objectives, along with web stuff (not necessarily related to Rails)
<yorickpeterse> oh heh, I missed the initial question
<yorickpeterse> derp
piotrj has quit [Remote host closed the connection]
lytol has quit []
melter has joined #ruby-lang
piotrj has joined #ruby-lang
<jacaballero> CrimsonSunrise: This one too: https://leanpub.com/developing-games-with-ruby/read hope this helps!
lytol has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<CrimsonSunrise> jacaballero: I'll take a look at those right now.
allomov has joined #ruby-lang
malconis has joined #ruby-lang
malconis has quit [Client Quit]
OnBrokenWings has quit [Quit: Leaving]
<darix> yorickpeterse: will do next week
iamninja has quit [Read error: Connection reset by peer]
<yorickpeterse> darix: ok
iamninja has joined #ruby-lang
ta has quit [Remote host closed the connection]
<CrimsonSunrise> Is there a good windows substitute for Sublime Text that does syntax highlighting for Ruby?
momomomomo has quit [Quit: momomomomo]
<wallerdev> doesnt sublime text work on windows
sarkyniin has quit [Ping timeout: 248 seconds]
<CrimsonSunrise> wallerdev: It does, but it doesn't highlight the syntax properly.
<wallerdev> oh?
<wallerdev> what does it highlight wrong?
<CrimsonSunrise> wallerdev: It's more like what it should highlight but it doesn't.
<wallerdev> okay
<wallerdev> well what does it do wrong?
<wallerdev> genuinely curious haha
chouhoul_ has joined #ruby-lang
baweaver has joined #ruby-lang
<CrimsonSunrise> wallerdev: Isntance variables for example.
<CrimsonSunrise> *Instance
<darix> wallerdev: it does
<wallerdev> you mean it puts them the same color as something else so they're hard to tell apart or what? maybe a screenshot would be most clear
chouhoulis has quit [Ping timeout: 240 seconds]
ta has joined #ruby-lang
<CrimsonSunrise> wallerdev: It keeps most things, like methods and stuff like that as standard white text.
<wallerdev> are you in ruby mode?
<CrimsonSunrise> But I'm talking about bare Sublime Text 2 without any packages installed.
<CrimsonSunrise> Yex
<darix> CrimsonSunrise: make sure it is really in ruby mode
<CrimsonSunrise> Yes
<darix> CrimsonSunrise: i use it on windows and linux and it works just fine
<wallerdev> doesnt sound right, maybe you just need to configure the colors somewhere
<wallerdev> try a different theme maybe?
revath has quit [Ping timeout: 250 seconds]
<CrimsonSunrise> Or maybe I should use a Ruby IDE instead...But all of them are paid.
<pipework> Not true.
<wallerdev> use whatever works best for you
<wallerdev> i use textmate which is basically the same as sublime
b_hoffman has quit [Quit: b_hoffman]
<darix> CrimsonSunrise: maybe give sublime 3 a try
<CrimsonSunrise> darix: Isn't the development of Sublime 3 dead?
hrendalf has quit [Remote host closed the connection]
<CrimsonSunrise> jacaballero: ST2 or ST3?
elia has quit [Quit: Computer has gone to sleep.]
<jacaballero> I use 3
elia has joined #ruby-lang
<darix> CrimsonSunrise: naw.
fusillicode has quit [Ping timeout: 264 seconds]
__butch__ has quit [Quit: Leaving.]
alestuber has quit [Ping timeout: 250 seconds]
alestuber has joined #ruby-lang
djbkd_ has joined #ruby-lang
nertzy has joined #ruby-lang
b_hoffman has joined #ruby-lang
sarkyniin has joined #ruby-lang
mdarby has joined #ruby-lang
djbkd_ has quit [Ping timeout: 264 seconds]
piotrj has quit [Remote host closed the connection]
<CrimsonSunrise> Just curious about something. How hard would it be to interface between Ruby and Haskell?
<jacaballero> If using HTTP reqs, pretty easy.
<darix> CrimsonSunrise: depends
<CrimsonSunrise> darix: On what?
<darix> as jacaballero said ... if you can use network with some easy inter op data format
<darix> let's say json e.g.
<darix> easy
<CrimsonSunrise> darix: Something like JRuby?
ta has quit [Remote host closed the connection]
<headius> can haskell export C functions?
<headius> from a haskell lib
<CrimsonSunrise> headius: That I don't know.
<headius> I'm not sure Haskell plays well with others in general
<yorickpeterse> it certainly doesn't play well with the eyes
* yorickpeterse runs
<darix> i always wonder people try to use haskell for real life stuff and not just academics
baweaver has quit [Remote host closed the connection]
sarkyniin has quit [Ping timeout: 248 seconds]
<yorickpeterse> darix: hey careful now, we don't want to throw you on the pyre
mdarby has quit [Quit: Textual IRC Client: www.textualapp.com]
<CrimsonSunrise> darix: Well, I had a colleague developing a database system in Haskell
<darix> yorickpeterse: i was amused when i watched a presentation about a guy developing a bittorrent tool in haskell
<darix> highly optimized and all
<darix> he used an unoptimized erlang implementation which blow the haskell out of the water
nertzy has quit [Quit: This computer has gone to sleep]
<yorickpeterse> Never used Haskell so I can't talk about the performance, but the syntax makes me want to wash my eyes with bleach
<CrimsonSunrise> darix: Well, Erlang is the king of parallel processing it seems.
<yorickpeterse> Though Erlang also has a wacky syntax
<CrimsonSunrise> yorickpeterse: Really? I thought it was simple and concise
<CrimsonSunrise> Or maybe LYAH explains it well.
joaomdmoura has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
<darix> yorickpeterse: elixir ;)
<darix> that one
<yorickpeterse> seens it
nertzy has joined #ruby-lang
<yorickpeterse> at least Erlang the Movie 2 was good
<yorickpeterse> Ruby really lacks such a masterpiece
<CrimsonSunrise> ?
rbowlby has quit [Remote host closed the connection]
rbowlby has joined #ruby-lang
jgpawletko has joined #ruby-lang
alestuber has quit [Ping timeout: 256 seconds]
<pipework> Wait, there was a followup movie?
<pipework> yorickpeterse: Why do you feel that it's wonky?
<CrimsonSunrise> yorickpeterse: Considering the number of films called 'Ruby', it's not hard to see why.
workmad3 has quit [Ping timeout: 250 seconds]
<jacaballero> yorickpeterse ^ lol
<yorickpeterse> pipework: mainly due to the "syntax noise"
<yorickpeterse> e.g. too many special syntax constructs
<yorickpeterse> I've really come to appreciate smalltalk style languages where there's hardly any syntax to begin with
<pipework> yorickpeterse: Oh, gotcha. Nothing much in term of specifics that I might be able to appreciate an argument about?
<pipework> I can see your general argument. I don't find it offputting or too weird, though I can see it being 'much'.
<yorickpeterse> Outside of that I love Erlang as a concept
<yorickpeterse> it's probably one of the few languages that gets concurrency right
<yorickpeterse> I think Joe Armstrong at some point said something along the lines of "If I would redesign Erlang today I'd probably use syntax similar to Elixir"
alestuber has joined #ruby-lang
<pipework> He has a lot of great articles too.
baweaver has joined #ruby-lang
<darix> yorickpeterse: ejabberd just added support elixir. and i know at least one ejabberd dev, who gets drawn to elixir now.
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
<darix> more compact code for the same problem
<darix> mostly
<yorickpeterse> pipework: he's a pretty funny person too
<pipework> darix: elixir has nice vm bytecode emission.
<CrimsonSunrise> At lest it's not OCaml...
<pipework> CrimsonSunrise: OCaml is super cool, but the syntax is even harer.
<yorickpeterse> let x = 10 in
<pipework> harder
<yorickpeterse> "IN WHAT?"
<pipework> Though not as hard as haskell, imo.
<darix> didnt he write a C parser in erlang once
<darix> which then outputs clang intermediate code to do the rest in Clang
<darix> (llvm to be more correct)
<CrimsonSunrise> pipework: I think, apart from Perl and Malboge, F# is worse.
setanta_ has quit [Quit: Leaving]
bruno- has joined #ruby-lang
<darix> thats the one
<darix> did you see the presentation of testing car software with quickcheck?
nertzy has quit [Quit: This computer has gone to sleep]
sarkyniin has joined #ruby-lang
<yorickpeterse> hm, C and uncidode
<yorickpeterse> * unicode
<yorickpeterse> always fun
<yorickpeterse> especially walking through a string without burning yourself 15 times
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<CrimsonSunrise> and gosu didn't install properly. what to do?
<pipework> CrimsonSunrise: Fix it or don't and get a drink.
<pipework> (fix || dont) && drink
bruno- has quit [Ping timeout: 240 seconds]
<CrimsonSunrise> pipework: Or it doesn't work with Ruby 2.2, I suppose.
<darix> CrimsonSunrise: without knowing the exact error
<darix> hard to tell
LMity has joined #ruby-lang
<CrimsonSunrise> darix: I opened 'irb' and typed 'require 'gosu'' and it said it couldn't load it about 8 times. And that's it.
Musashi007 has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
bruno- has joined #ruby-lang
ruby-lang658 has joined #ruby-lang
<ruby-lang658> hey guys!
<ruby-lang658> anybody in here?
<womble> Nope.
<pipework> nope
<ruby-lang658> oh damn :(
<ruby-lang658> two nos, that's worse than one! :-\
<ruby-lang658> can anybody help me here with an idiom?
<ruby-lang658> gist's here: http://bit.ly/1duupl8
<bnagy> if it's a gist give us a gist link
<bnagy> if you use bitly I just assume it's spam or malware
LMity has quit [Ping timeout: 252 seconds]
<darix> bnagy: or both
bruno- has quit [Ping timeout: 248 seconds]
<CrimsonSunrise> Are there any game libraries for Ruby 2.x? Gosu doesn't seem to be compatible.
<ruby-lang658> it aint dude, just don't want links directly to my GH account
<ruby-lang658> for real
bruno- has joined #ruby-lang
<bnagy> then just use the non-account linked paste, for real, yo, dog
<ruby-lang658> "trust me", said one guy on the internet :)
<ruby-lang658> oh, you mean this?: https://gist.github.com/53632596ca945df73922.git
Lewix has joined #ruby-lang
<darix> well
<darix> it doesnt have your username in the url
<darix> but
<darix> in the gist page
<darix> it shows it :p
<ruby-lang658> darix no prob with that
b_hoffman has quit [Quit: b_hoffman]
bungoman has quit [Remote host closed the connection]
<ruby-lang658> made an edit to include a comment though
b_hoffman has joined #ruby-lang
ruby-lang658 has quit [Ping timeout: 246 seconds]
b_hoffman has quit [Client Quit]
b_hoffman has joined #ruby-lang
SilverFang has joined #ruby-lang
whippythellama has quit [Quit: whippythellama]
CrimsonSunrise has quit [Ping timeout: 255 seconds]
mcclurmc has quit []
lytol has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
alestuber has quit [Ping timeout: 244 seconds]
ruby-lang847 has joined #ruby-lang
<ruby-lang847> hey, it's me again, guys, I was asking about the gist
<ruby-lang847> network fail
mcclurmc has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
<ruby-lang847> can you give me some feedback on this?
harlen has joined #ruby-lang
<bnagy> I still can't see it
alestuber has joined #ruby-lang
funnel has quit [Ping timeout: 265 seconds]
<havenwood> ruby-lang847: ^
funnel has joined #ruby-lang
<ruby-lang847> thats the one havenwood
<havenwood> ruby-lang847: consider what that #each is returning
<havenwood> >> [1, 2, 3].each { |n| n + 42 }
<eval-in> havenwood => [1, 2, 3] (https://eval.in/321438)
k3asd` has quit [Ping timeout: 256 seconds]
<ruby-lang847> yeah, I'm getting it now, havenwood
<bnagy> ... after all that it was one line you wanted us to look at?
<ruby-lang847> so i need another enumerator, that's it
<ruby-lang847> yeah bnagy, sorry :(
danzilio has quit [Quit: Baiii!]
<ruby-lang847> I was banging my head against the wall, it's getting late and I was lsing patience
<bnagy> each is for operating on a collection but leaving it unchanged. map is for transformations.
djbkd_ has joined #ruby-lang
<bnagy> it doesn't look like you need the initial map, tbh
baweaver has quit [Remote host closed the connection]
<bnagy> what do you want your output to look like? ( or what's the plain-english version of what your code should do )
SilverFang has quit [Quit: Leaving]
<bougyman> /37
djbkd_ has quit [Ping timeout: 250 seconds]
wallerdev has quit [Ping timeout: 276 seconds]
delongG has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
shazaum has quit [Quit: This computer has gone to sleep]
Lewix has quit [Remote host closed the connection]
baweaver has joined #ruby-lang
delongG has joined #ruby-lang
SylarRuby has quit [Remote host closed the connection]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
Crowgirl has joined #ruby-lang
<Crowgirl> Hello, I'm a Ruby n00b.
<bnagy> Crowgirl: hi. There are lots of people here, but most of them only kick into action when there's an actual question being asked.
<Crowgirl> Okay.
<Crowgirl> I need some help with dotenv.
<Crowgirl> I just need very simple help.
<Crowgirl> Would someone like to see my two scripts?
<Crowgirl> The help I need is with the first few lines of each script.
<yorickpeterse> Crowgirl: best to just drop them in something like gist.github.com and ask ahead
<Crowgirl> ask ahead?
<baweaver> Just ask the question without all the introduction
<yorickpeterse> As in, ask what you need help with instead of asking "Can somebody help me"
<Crowgirl> Ahead of what? I can open github in my web browser...
<Crowgirl> I'm working on a Twitter bot. There are two scripts, a bot script, and an env script with contains Twitter API tokens.
<baweaver> It's a turn of phrase, which basically means just ask the question you have
<Crowgirl> Thanks.
<baweaver> instead of typing out a long introduction to things
<Crowgirl> Okay.
<baweaver> On IRC it's not necessary to ask permission to ask a question
<Crowgirl> The purpose of the env script is to contain the API tokens, while the bot script calls env.txt for the values of the tokens. It's a security measure.
<Crowgirl> I have no idea how to change the beginning of the bot script so that it references env.txt properly. Help!
<harlen> put the relevant information, code, errors, expected behavior and actual behiavior it in a gist. paste the link. then type give a 1 line description.
<yorickpeterse> and make sure your tokens are not in the gist :P
<harlen> :)
<Crowgirl> So, I should go to github and upload them there?
<yorickpeterse> Crowgirl: https://gist.github.com/ you can just paste the relevant bits there
<yorickpeterse> you don't need an account for it
<Crowgirl> Okay, just a moment...
<yorickpeterse> Having said that, do you mean Dotenv is not loading the file?
<yorickpeterse> Because I think by default it only searches for ".env"
<yorickpeterse> and you have to explicitly tell it where to load data from otherwise
<Crowgirl> I haven't run anything yet, no errors to report.
<yorickpeterse> Which you can do using Dotenv.load("path/to/dotenv.txt")
elia has quit [Quit: Computer has gone to sleep.]
marr has quit []
alestuber has quit [Ping timeout: 248 seconds]
bungoman has joined #ruby-lang
<Crowgirl> Okay, I uploaded it to github as bots SECURE.rb
<Crowgirl> Thanks everyone.
<Crowgirl> As I said, I haven't run anything yet. I just need to know how to change the beginning of the bot script so that it calls env.txt
<yorickpeterse> Crowgirl: see above, that's probably what you need to add
<Crowgirl> All tokens have been removed, hence I titled the new files SECURE.
<Crowgirl> Thank you, but I already have that in a separate tutorial.
<yorickpeterse> Crowgirl: you'll need to share the link
<Crowgirl> That's not quite the help that I need. Do you see what I uploaded to github now?
<Crowgirl> I can paste the hyperlink to the tutorial webpage that confused me. Shall I?
Musashi007 has quit [Quit: Musashi007]
<yorickpeterse> What I meant was, if you uplodated it to gist.github.com there's no way for people to just know the link so they can see what you're doing
<Crowgirl> Oh... Oops.
<yorickpeterse> e.g. you'd say something like "Here's the gist I mentioned: https://gist.github.com/YorickPeterse/ff2919edb411d9b2689e"
Musashi007 has joined #ruby-lang
<Crowgirl> There.
<yorickpeterse> Ah, Twitter ebooks
<Crowgirl> This is the tutorial that confused me: http://blog.boodoo.co/how-to-deploy-an-_ebooks-bot/
<Crowgirl> Yes, yorick.
alestuber has joined #ruby-lang
bungoman has quit [Ping timeout: 264 seconds]
<yorickpeterse> So Dotenv sets its variables in "environment variables"
<yorickpeterse> You can access these from Ruby using "ENV"
<yorickpeterse> e.g. if you run a script using something like this:
<Crowgirl> And this is what the tutorial said that confused me:
<yorickpeterse> FOO=10 ruby some_script.rb
<Crowgirl> While you have bots.rb open, tell the program how and where to find the keys later by adding a couple lines before your secrets, and changing what comes after the equals signs:
<yorickpeterse> Then in Ruby you can do ENV['FOO'] and you'll get "10"
<Crowgirl> require 'dotenv'
<Crowgirl> Dotenv.load(".env")
<Crowgirl> CONSUMER_KEY = ENV['EBOOKS_CONSUMER_KEY']
<Crowgirl> CONSUMER_SECRET = ENV['EBOOKS_CONSUMER_SECRET']
<Crowgirl> OAUTH_TOKEN = ENV['EBOOKS_OAUTH_TOKEN']
<Crowgirl> OAUTH_TOKEN_SECRET = ENV['EBOOKS_OAUTH_TOKEN_SECRET']
<Crowgirl> What do I enter as the strings in the above?
<yorickpeterse> If the file ".env" specifies the variables in the form of "EBOOKS_CONSUMER_KEY=VALUE_HERE" that should work
<Crowgirl> My env.txt is fine, the strings contain the tokens.
<Crowgirl> My question is, what do I change in what I just pasted above here?
<Crowgirl> Okay, one moment...
<yorickpeterse> So in your case you'd have CONSUMER_KEY = ENV['EBOOKS_CONSUMER_KEY'] like you pasted above
<Crowgirl> I put '10' as the string for each? Really?!
<Crowgirl> Oh, I leave that alone, then?
<yorickpeterse> Then do the same for CONSUMER_SECRET and the others
sarkyniin has quit [Quit: Quit]
<yorickpeterse> err wait
<yorickpeterse> missing one crucial bit
<Crowgirl> What does the tutorial author mean by "changing what comes after the equals signs" then?
<Crowgirl> One moment...
rcvalle has quit [Quit: rcvalle]
<yorickpeterse> They probably mean updating the credentials in the ".env" file to use your actual credentials
<Crowgirl> Okay yorick, I looked. so leave the beginning of the bots script as is?
<yorickpeterse> No, check the script I showed above
<yorickpeterse> in particular lines 8 to 10
<Crowgirl> Oh okay. The tutorial author did a really poor job explaining it. Thanks.
<yorickpeterse> oh and line 4
<Crowgirl> Okay, just a sec...