apeiros changed the topic of #ruby-lang to: Ruby 2.1.0-p0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org|| Paste >3 lines of text on http://gist.github.com || RubyConf 2013 at http://www.justin.tv/confreaks
sepp2k1 has joined #ruby-lang
daikan_ has joined #ruby-lang
snk_ has joined #ruby-lang
lele|w has joined #ruby-lang
kitak__ has joined #ruby-lang
ged_ has joined #ruby-lang
dvorak_ has joined #ruby-lang
bantic has quit [Quit: bantic]
workmad3_ has joined #ruby-lang
charliesome has quit [*.net *.split]
workmad3 has quit [*.net *.split]
plurt has quit [*.net *.split]
djinni` has quit [*.net *.split]
r0bgl3es0n has quit [*.net *.split]
daikan has quit [*.net *.split]
sepp2k has quit [*.net *.split]
dumfries has quit [*.net *.split]
aef has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
marr has quit [*.net *.split]
amerine has quit [*.net *.split]
earthquake has quit [*.net *.split]
fumduq- has quit [*.net *.split]
dvorak has quit [*.net *.split]
snk has quit [*.net *.split]
linc01n has quit [*.net *.split]
ged has quit [*.net *.split]
ckipel is now known as earthquake
fumduq has joined #ruby-lang
amerine_ has joined #ruby-lang
dumfries has joined #ruby-lang
djinni` has joined #ruby-lang
jacky has quit [Excess Flood]
linc01n has joined #ruby-lang
CaptainJet has quit [Ping timeout: 240 seconds]
Jeticus has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
kitak_ has quit [Ping timeout: 245 seconds]
nigerianceo has quit []
dingus_khan has joined #ruby-lang
aef has joined #ruby-lang
charliesome has joined #ruby-lang
lele has joined #ruby-lang
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dingus_khan has quit [Remote host closed the connection]
VTLob has quit [Quit: VTLob]
benanne has quit [Quit: kbai]
dingus_khan has joined #ruby-lang
jsrn has quit [Quit: Leaving]
elia has quit [Quit: Computer has gone to sleep.]
bin7me has quit [Quit: Leaving]
iliketurtles has quit [Quit: zzzzz…..]
jalcine- has joined #ruby-lang
iliketurtles has joined #ruby-lang
iliketurtles has quit [Excess Flood]
dingus_khan has quit [Remote host closed the connection]
iliketurtles has joined #ruby-lang
kitak__ has quit [Remote host closed the connection]
kitak has joined #ruby-lang
iliketurtles has quit [Client Quit]
kitak_ has joined #ruby-lang
iliketurtles has joined #ruby-lang
iliketurtles has quit [Excess Flood]
kitak_ has quit [Remote host closed the connection]
smashwilson has quit [Quit: Leaving]
ivanskie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kitak_ has joined #ruby-lang
kitak has quit [Ping timeout: 245 seconds]
iliketurtles has joined #ruby-lang
|jemc| has quit [Ping timeout: 276 seconds]
workmad3_ has quit [Ping timeout: 264 seconds]
Jeticus has quit []
iliketurtles has quit [Client Quit]
jsullivandigs has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
lfox has joined #ruby-lang
iliketurtles has joined #ruby-lang
iliketurtles has quit [Excess Flood]
_aeris_ is now known as [_aeris_]
bigbadbear has joined #ruby-lang
wallerdev has joined #ruby-lang
imperator2 has quit [Ping timeout: 248 seconds]
ivanskie has joined #ruby-lang
bradcliffe has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
jeer has quit [Ping timeout: 260 seconds]
jeer has joined #ruby-lang
jxie has joined #ruby-lang
tkuchiki has joined #ruby-lang
jalcine- has quit [Excess Flood]
imperator2 has joined #ruby-lang
kurko______ has quit [Quit: Computer has gone to sleep.]
cored has quit [Ping timeout: 246 seconds]
|jemc| has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 260 seconds]
rationalrevolt has joined #ruby-lang
robbyoconnor has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
mistym has quit [Quit: Leaving]
imperator2 has quit [Ping timeout: 264 seconds]
cnivolle has quit [Ping timeout: 252 seconds]
brownies has quit [Ping timeout: 264 seconds]
brownies has joined #ruby-lang
jsullivandigs has joined #ruby-lang
sakb has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradcliffe has quit [Read error: Connection reset by peer]
imperator2 has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 276 seconds]
jonahR has joined #ruby-lang
sepp2k1 has quit [Read error: Connection reset by peer]
Onixs has quit [Max SendQ exceeded]
Onixs has joined #ruby-lang
jonahR has quit [Quit: jonahR]
CoreData has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
KM has quit [Read error: Connection reset by peer]
nathanstitt has quit [Quit: I growing sleepy]
perdido has quit [Remote host closed the connection]
knu has joined #ruby-lang
perdido has joined #ruby-lang
nathanstitt has joined #ruby-lang
jsullivandigs has joined #ruby-lang
dingus_khan has joined #ruby-lang
hahuang65 has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby-lang
Voker57 has quit []
dingus_khan has quit [Ping timeout: 248 seconds]
bradcliffe has joined #ruby-lang
cads has joined #ruby-lang
mistym has joined #ruby-lang
sakb has quit [Quit: Leaving]
perdido has quit [Ping timeout: 264 seconds]
<ericwood> hahaha
mistym has quit [Ping timeout: 265 seconds]
freidahpatch has joined #ruby-lang
jalcine- has joined #ruby-lang
jalcine- has quit [Excess Flood]
zenspider has quit [Ping timeout: 264 seconds]
eban1 has left #ruby-lang [#ruby-lang]
jalcine- has joined #ruby-lang
vlad_starkov has joined #ruby-lang
freidahpatch has quit [Ping timeout: 248 seconds]
mannyt has joined #ruby-lang
bradcliffe has quit [Quit: Textual IRC Client: www.textualapp.com]
alex-quiterio has joined #ruby-lang
dwknoxy has quit [Quit: Computer has gone to sleep.]
mistym has joined #ruby-lang
tylersmith has joined #ruby-lang
perdido has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
jalcine- has quit [Excess Flood]
tylersmith has quit [Ping timeout: 272 seconds]
imperator2 has quit [Ping timeout: 240 seconds]
knu has quit [Ping timeout: 240 seconds]
knu has joined #ruby-lang
lfox has quit [Quit: ZZZzzz…]
ryez has joined #ruby-lang
alex-quiterio has quit [Quit: Leaving.]
tylersmith has joined #ruby-lang
mannyt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cads has quit [Quit: Leaving]
robbyoconnor has quit [Read error: Connection reset by peer]
Kabaka has quit [Read error: Operation timed out]
Rylee has quit [Ping timeout: 276 seconds]
robbyoconnor has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
rationalrevolt has quit [Remote host closed the connection]
jalcine- has joined #ruby-lang
nathanstitt has joined #ruby-lang
jsullivandigs has joined #ruby-lang
Rylee has joined #ruby-lang
clamstar has joined #ruby-lang
imperator2 has joined #ruby-lang
fire has joined #ruby-lang
bungoman has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
Rylee has quit [Ping timeout: 264 seconds]
lfox has joined #ruby-lang
jalcine- has quit [Excess Flood]
bzalasky has joined #ruby-lang
cads has joined #ruby-lang
Sammidysam has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
<Sammidysam> I set a variable in IRB and I want to use its value in a method that I define. How can I do that (currently it says that it is undefined)?
bzalasky has quit [Remote host closed the connection]
kitak_ has quit [Remote host closed the connection]
jonahR has joined #ruby-lang
<|jemc|> Sammidysam: please make a gist or other pastebin with what you're currently doing
<|jemc|> gist is particularly helpful because it has comments
iliketurtles has joined #ruby-lang
jalcine_ has joined #ruby-lang
ivanskie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<|jemc|> yeah, so the author method's scope doesn't include local variables outside of it (as you may have guessed)
<Sammidysam> Yeah.
<|jemc|> so, yeah, you have a few options
<|jemc|> you can pass it as an argument
<|jemc|> def author(quote_to_use) ... end
<|jemc|> author(quote_of_the_day)
<Sammidysam> What is the other option(s)?
kitak has joined #ruby-lang
<|jemc|> you can have it as an instance variable (ivar) of the instance object of which author is a method
snsei has joined #ruby-lang
cads has quit [Quit: Leaving]
<Sammidysam> Okay, argument to the method sounds a bit easier.
<|jemc|> def get_quote; @quote = ... end
<|jemc|> def author; use @quote end
<Sammidysam> Thanks fore the help.
<|jemc|> other option, though it's a dirty word around here, is global variables
<|jemc|> $global_quote
<Sammidysam> I like that option considering this is just an IRB session.
jalcine_ is now known as jalcine
<|jemc|> yeah, I figured it would be most appropriate for your irb session
<Sammidysam> Do I need to reference it with a preceding $ when referencing it then?
<|jemc|> yeah
<Sammidysam> Okay, thanks!
<|jemc|> but yeah, if I had given that as the first option...
<|jemc|> you can guarantee I would have had a few people scream at me in this channel :P
<Sammidysam> I can imagine.
<|jemc|> just because in production code is very very rarely the right answer - and they hate to see people walk away with a misperception
bigbadbear has quit [Ping timeout: 246 seconds]
<|jemc|> but yeah, happy hacking
<|jemc|> :)
<Sammidysam> Yep, thanks.
snsei has quit [Remote host closed the connection]
jxie has quit [Ping timeout: 248 seconds]
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
Elico has quit [Quit: Elico]
Sammidysam has quit [Quit: Leaving]
nathanstitt has quit [Quit: I growing sleepy]
nathanstitt has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
fire has quit [Read error: Operation timed out]
fire has joined #ruby-lang
bzalasky has joined #ruby-lang
lsegal has joined #ruby-lang
panpainter has quit [Quit: panpainter]
knu has quit [Ping timeout: 240 seconds]
knu has joined #ruby-lang
jsullivandigs has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
imperator2 has quit [Quit: Leaving]
clamstar has quit [Quit: Computer has gone to sleep.]
jerrytgarcia has joined #ruby-lang
bzalasky has joined #ruby-lang
Onixs_ has joined #ruby-lang
tectonic_ has joined #ruby-lang
amclain has joined #ruby-lang
fire has quit [Quit: WeeChat 0.4.1]
CoreData has quit [Ping timeout: 276 seconds]
kitak_ has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
knu has quit [Ping timeout: 240 seconds]
CoreData has joined #ruby-lang
bzalasky has joined #ruby-lang
kitak has quit [Ping timeout: 245 seconds]
knu has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
robbyoconnor has quit [Read error: Operation timed out]
robbyoconnor has joined #ruby-lang
nathanstitt has joined #ruby-lang
chinaboy_rubyfan has joined #ruby-lang
vlad_starkov has joined #ruby-lang
chinaboy_rubyfan has quit [Client Quit]
vlad_starkov has quit [Read error: Connection reset by peer]
Newbie0086 has joined #ruby-lang
iliketurtles has joined #ruby-lang
iliketurtles has quit [Max SendQ exceeded]
iliketurtles has joined #ruby-lang
RyNo has joined #ruby-lang
JoshuaPaling has quit [Read error: Connection reset by peer]
markphd has joined #ruby-lang
RyNo has left #ruby-lang [#ruby-lang]
bzalasky has quit [Remote host closed the connection]
RyNoLa has joined #ruby-lang
ando has joined #ruby-lang
bzalasky has joined #ruby-lang
havenwood has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
nathanstitt has quit [Quit: I growing sleepy]
bungoman has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
RyNoLa has left #ruby-lang [#ruby-lang]
ledestin has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby-lang
vinhbachsy has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
Barrin6 has joined #ruby-lang
Barrin6 has quit [Client Quit]
ando has quit [Write error: Broken pipe]
ando has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
Onixs_ has quit [Quit: Onixs_]
ando_ has joined #ruby-lang
markphd has quit [Remote host closed the connection]
jsullivandigs has quit [Remote host closed the connection]
ando has quit [Ping timeout: 260 seconds]
jxie has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
kitak_ has quit [Remote host closed the connection]
danijoo has joined #ruby-lang
daikan_ has quit [Remote host closed the connection]
bigbadbear has joined #ruby-lang
kitak has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
fire has joined #ruby-lang
mistym has joined #ruby-lang
bigbadbear has quit [Ping timeout: 272 seconds]
bzalasky has joined #ruby-lang
michaeldeol has joined #ruby-lang
RyNoLa has joined #ruby-lang
ando_ has quit [Remote host closed the connection]
ando has joined #ruby-lang
dmccray has joined #ruby-lang
RyNoLa has left #ruby-lang [#ruby-lang]
dmccray has left #ruby-lang [#ruby-lang]
vlad_starkov has joined #ruby-lang
ando has quit [Remote host closed the connection]
Onixs_ has joined #ruby-lang
ando has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
ando has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
knu has quit [Ping timeout: 284 seconds]
dumfries has quit [Ping timeout: 284 seconds]
matp has quit [Ping timeout: 284 seconds]
LanceHaig has quit [Ping timeout: 284 seconds]
robbyoconnor has quit [Write error: Broken pipe]
LanceHaig has joined #ruby-lang
kith has quit [Ping timeout: 241 seconds]
valeri_ufo has quit [Ping timeout: 241 seconds]
r0bby_ has joined #ruby-lang
kith has joined #ruby-lang
knu has joined #ruby-lang
dumfries has joined #ruby-lang
tkuchiki has quit [Ping timeout: 246 seconds]
jerrytgarcia has quit [Write error: Broken pipe]
ando has joined #ruby-lang
musl_ has joined #ruby-lang
tkuchiki has joined #ruby-lang
spuk_ has joined #ruby-lang
cub1c has joined #ruby-lang
bougyman_ has joined #ruby-lang
chris2_ has joined #ruby-lang
freedrul1 has joined #ruby-lang
vinhbachsy has quit [Remote host closed the connection]
hachiya has joined #ruby-lang
m6n has joined #ruby-lang
vinhbachsy has joined #ruby-lang
nisstyre has quit [Quit: Leaving]
knu has quit [*.net *.split]
danijoo has quit [*.net *.split]
tylersmith has quit [*.net *.split]
jeer has quit [*.net *.split]
ged_ has quit [*.net *.split]
snk_ has quit [*.net *.split]
Asher has quit [*.net *.split]
blowmage has quit [*.net *.split]
davidae has quit [*.net *.split]
joonty has quit [*.net *.split]
sluukkonen1 has quit [*.net *.split]
kirin` has quit [*.net *.split]
vondruch has quit [*.net *.split]
achiu has quit [*.net *.split]
fallenhi1okiri has quit [*.net *.split]
jsaak_ has quit [*.net *.split]
supyo has quit [*.net *.split]
dRbiG has quit [*.net *.split]
Rubennn_ has joined #ruby-lang
fallenhitokiri has joined #ruby-lang
davidae has joined #ruby-lang
blowmage has joined #ruby-lang
dRbiG has joined #ruby-lang
Asher has joined #ruby-lang
snk has joined #ruby-lang
snk has quit [Changing host]
snk has joined #ruby-lang
jsaak has joined #ruby-lang
kirin` has joined #ruby-lang
vondruch has joined #ruby-lang
achiu has joined #ruby-lang
tylersmith has joined #ruby-lang
sluukkonen1 has joined #ruby-lang
jeer has joined #ruby-lang
joonty has joined #ruby-lang
matti__ has joined #ruby-lang
segy_ has joined #ruby-lang
ged_ has joined #ruby-lang
Barrin6 has joined #ruby-lang
zastern has quit [*.net *.split]
cub1c__ has quit [*.net *.split]
freedrull has quit [*.net *.split]
shaman42 has quit [*.net *.split]
EvilJStoker has quit [*.net *.split]
Caius has quit [*.net *.split]
segy has quit [*.net *.split]
bougyman has quit [*.net *.split]
spuk has quit [*.net *.split]
matti has quit [*.net *.split]
Rubennn has quit [*.net *.split]
chris2 has quit [*.net *.split]
m6n_ has quit [*.net *.split]
hachiya_ has quit [*.net *.split]
[dmp] has quit [*.net *.split]
musl has quit [*.net *.split]
segy_ is now known as segy
supyo has joined #ruby-lang
vinhbachsy has quit [Ping timeout: 248 seconds]
shaman42 has joined #ruby-lang
EvilJStoker has joined #ruby-lang
danijoo has joined #ruby-lang
[dmp] has joined #ruby-lang
Caius has joined #ruby-lang
Caius is now known as Guest92966
matp has joined #ruby-lang
hahuang65 has joined #ruby-lang
zastern has joined #ruby-lang
Hitoribocchi has joined #ruby-lang
sluukkonen2 has joined #ruby-lang
vinhbachsy has joined #ruby-lang
joonty has quit [*.net *.split]
sluukkonen1 has quit [*.net *.split]
jeer has quit [*.net *.split]
achiu has quit [*.net *.split]
snk has quit [*.net *.split]
fallenhitokiri has quit [*.net *.split]
hachiya has quit [*.net *.split]
cub1c has quit [*.net *.split]
ando has quit [*.net *.split]
Onixs_ has quit [*.net *.split]
Newbie0086 has quit [*.net *.split]
jalcine has quit [*.net *.split]
jonahR has quit [*.net *.split]
Newbie0086 has joined #ruby-lang
Onixs_ has joined #ruby-lang
zlogan has joined #ruby-lang
hachiya has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
joonty has joined #ruby-lang
jonahR has joined #ruby-lang
achiu has joined #ruby-lang
snk has joined #ruby-lang
cub1c has joined #ruby-lang
fallenhitokiri has joined #ruby-lang
Kabaka has joined #ruby-lang
Barrin6 has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
daikan has joined #ruby-lang
danijoo has joined #ruby-lang
ryez has quit [Ping timeout: 272 seconds]
ivanskie has joined #ruby-lang
daikan has quit [Ping timeout: 248 seconds]
lfox has quit [Quit: ZZZzzz…]
ahmedelgabri has joined #ruby-lang
ahmedelgabri has quit [Remote host closed the connection]
ahmedelgabri has joined #ruby-lang
fire has quit [Quit: WeeChat 0.4.1]
jalcine has joined #ruby-lang
jsullivandigs has joined #ruby-lang
Rylee has joined #ruby-lang
fijimunkii has joined #ruby-lang
apeiros has joined #ruby-lang
vinhbachsy has quit [Remote host closed the connection]
vinhbach_ has joined #ruby-lang
heftig has quit [Quit: Quitting]
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vinhbach_ has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
Onixs_ has quit [Quit: Onixs_]
<Hitoribocchi> OK, time to explain my problem:
<Hitoribocchi> I am trying to pull JSON feeds off from a bookmaker API,
<Hitoribocchi> but it seems that whenever I tried doing this:
<Hitoribocchi> json = JSON.parse(open('http://www.example.com/bookmakers.json').read)
<Hitoribocchi> the machine hung.
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
Onixs_ has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 248 seconds]
apeiros has quit [Remote host closed the connection]
AKASkip has joined #ruby-lang
mistym has joined #ruby-lang
Onixs_ has quit [Quit: Onixs_]
h_kon has joined #ruby-lang
postmodern has joined #ruby-lang
vmoravec has joined #ruby-lang
arBmind has joined #ruby-lang
ivanskie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AKASkip has quit [Ping timeout: 260 seconds]
daikan has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
bigbadbear has joined #ruby-lang
kitak_ has joined #ruby-lang
daikan has quit [Ping timeout: 276 seconds]
kitak has quit [Ping timeout: 245 seconds]
bigbadbear has quit [Ping timeout: 248 seconds]
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
<Phoop> Hitoribocchi: You can reach the url by pasting it in your browser?
<Hitoribocchi> I can.
<Phoop> Also using private mode of your browser; as in no existing cookies/sessions?
<Hitoribocchi> I suspect it is something to do with the memory allocation that is hanging it.
fire has joined #ruby-lang
<Hitoribocchi> I usually test 1 line of code in irb.
<Hitoribocchi> Just to see how it performs.
<Phoop> Is it a big file then?
vinhbachsy has joined #ruby-lang
<Hitoribocchi> About 3MB.
<Phoop> Nothing shocking
<Hitoribocchi> Not shocking really.
<Hitoribocchi> Let me get my code on gist.
vlad_starkov has joined #ruby-lang
Gurpreet has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
fire has quit [Quit: WeeChat 0.4.1]
jsullivandigs has joined #ruby-lang
apeiros has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 260 seconds]
AKASkip has joined #ruby-lang
iliketurtles has joined #ruby-lang
amclain has quit [Quit: Leaving]
dagobah has joined #ruby-lang
Gurpreet has quit [Quit: Leaving.]
Gurpreet has joined #ruby-lang
maloik_ has quit [Ping timeout: 245 seconds]
maloik has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
daikan has joined #ruby-lang
maloik has quit [Remote host closed the connection]
maloik has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
jalcine has quit [Excess Flood]
kitak_ has quit [Remote host closed the connection]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
soba has joined #ruby-lang
tbuehlmann has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
daikan has quit [Ping timeout: 264 seconds]
kitak has joined #ruby-lang
maloik has quit [Remote host closed the connection]
maloik has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
kitak has quit [Ping timeout: 245 seconds]
bzalasky has quit [Remote host closed the connection]
knu0 has joined #ruby-lang
mytrile has joined #ruby-lang
lewix has quit [Remote host closed the connection]
|jemc| has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
kitak has joined #ruby-lang
Kabaka has quit [Ping timeout: 248 seconds]
Rylee has quit [Ping timeout: 265 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby-lang
postmodern has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby-lang
maloik has quit [Ping timeout: 260 seconds]
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
maloik has joined #ruby-lang
jonahR has quit [Quit: jonahR]
michd is now known as MichD
jg has joined #ruby-lang
postmodern has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
rue|w has joined #ruby-lang
CoreData has quit [Quit: CoreData]
tectonic_ has quit []
relix has joined #ruby-lang
kek has joined #ruby-lang
michaeldeol has quit [Remote host closed the connection]
robmiller has quit [Quit: robmiller]
sinm has joined #ruby-lang
mytrile has quit []
ledestin has quit [Quit: ledestin]
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby-lang
bigbadbear has joined #ruby-lang
|jemc| has joined #ruby-lang
vinhbach_ has joined #ruby-lang
vinhbachsy has quit [Ping timeout: 248 seconds]
bigbadbear has quit [Ping timeout: 264 seconds]
<yorickpeterse> morning
cnivolle has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
Kabaka has joined #ruby-lang
cnivolle has joined #ruby-lang
jacky has joined #ruby-lang
<gnufied> Morning
solars has joined #ruby-lang
[_aeris_] is now known as _aeris_
kek has quit []
elia has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Rylee has joined #ruby-lang
jxie has quit [Ping timeout: 276 seconds]
michaeldeol has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 276 seconds]
<yorickpeterse> lololol HN back up, loss of data
michaeldeol has quit [Ping timeout: 265 seconds]
Newbie0086 has quit [Quit: 离开]
robmiller has joined #ruby-lang
MrZYX|off is now known as MrZYX
marr has joined #ruby-lang
Rylee has quit [Ping timeout: 265 seconds]
bin7me has joined #ruby-lang
mikecmpbll has joined #ruby-lang
Kabaka has quit [Ping timeout: 276 seconds]
mbj has joined #ruby-lang
vinhbach_ has quit [Remote host closed the connection]
vinhbachsy has joined #ruby-lang
vlad_starkov has joined #ruby-lang
_mh_ has quit [Changing host]
_mh_ has joined #ruby-lang
sinm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlovell has joined #ruby-lang
Guest92966 has left #ruby-lang [#ruby-lang]
daikan has joined #ruby-lang
ando has joined #ruby-lang
Caius has joined #ruby-lang
ando has quit [Read error: Connection reset by peer]
soba has quit [Ping timeout: 276 seconds]
ando has joined #ruby-lang
skade has joined #ruby-lang
daikan has quit [Ping timeout: 272 seconds]
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
jsullivandigs has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
ahmedelgabri has quit [Remote host closed the connection]
jsullivandigs has quit [Ping timeout: 248 seconds]
alex-quiterio has joined #ruby-lang
sluukkonen2 has left #ruby-lang [#ruby-lang]
sluukkonen has joined #ruby-lang
ahmedelgabri has joined #ruby-lang
chris2_ is now known as chris2
vlad_starkov has quit [Read error: Connection reset by peer]
<sluukkonen> is there a reason for the channel mode that causes this: "Cannot change nickname while banned on channel"? I hate that I have to temporarily leave this channel every time I need to change my nick on freenode.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby-lang
vlad_starkov has joined #ruby-lang
joonty has quit [Read error: Operation timed out]
<yorickpeterse> You need to be authed
<yorickpeterse> Having said that, I could change my nick fine last time I wasn't authed
charliesome has joined #ruby-lang
joonty has joined #ruby-lang
<sluukkonen> well, I need to change my nick before I can authenticate
<workmad3> sluukkonen: use sasl auth
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
<workmad3> sluukkonen: also, you can do /msg nickserv identify <nick> <password> in order to identify to a specific account without changing your nick
<workmad3> but sasl auth ftw :)
h_kon has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 260 seconds]
h_kon has joined #ruby-lang
h_kon has quit [Remote host closed the connection]
r0bby_ has quit [Ping timeout: 264 seconds]
ando has quit [Ping timeout: 276 seconds]
mistym has joined #ruby-lang
mistym has quit [Ping timeout: 264 seconds]
DouweM has joined #ruby-lang
mehlah has joined #ruby-lang
symm- has joined #ruby-lang
h_kon has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
dagobah has quit [Remote host closed the connection]
dagobah has joined #ruby-lang
bigbadbear has joined #ruby-lang
daikan has joined #ruby-lang
jsullivandigs has joined #ruby-lang
bigbadbear has quit [Ping timeout: 260 seconds]
retro_ has joined #ruby-lang
daikan has quit [Ping timeout: 265 seconds]
vinhbachsy has quit []
jsullivandigs has quit [Ping timeout: 248 seconds]
kitak has quit [Remote host closed the connection]
r0bgleeson has quit [Ping timeout: 258 seconds]
<yorickpeterse> welp, I just defined a method called "fatter_initialize"
<yorickpeterse> opposed to "after_initialize"
<yorickpeterse> I'll blame that on being hungry
perdido has quit [Remote host closed the connection]
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
<whitequark> I once was hungry
<whitequark> I realized it after reading the phrase "crisp picture"
<whitequark> mmmmm pixels
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matti__ has left #ruby-lang [#ruby-lang]
matti has joined #ruby-lang
michaeldeol has joined #ruby-lang
alex-quiterio has quit [Quit: Leaving.]
<apeiros> yorickpeterse: don't use beacon for testing then
<yorickpeterse> I don't :<
x0f_ has joined #ruby-lang
<yorickpeterse> I use rpsec
<yorickpeterse> * rspec
<workmad3> yorickpeterse: rpecs?
<yorickpeterse> brb, food
charliesome has joined #ruby-lang
michaeldeol has quit [Ping timeout: 272 seconds]
<apeiros> rrrrspeck
<apeiros> cuz speck is beacon :)
<workmad3> rspock
<gnufied> what we need is - nsaspec
<workmad3> gnufied: we have that... it's called openssl...
<gnufied> it knows what I am going to write and writes tests itself
<gnufied> will make TDD way easier
x0f has quit [Ping timeout: 276 seconds]
clamstar has joined #ruby-lang
vlad_starkov has joined #ruby-lang
ecnalyr has joined #ruby-lang
Hitoribocchi has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
postmodern has quit [Quit: Leaving]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #ruby-lang
vinhbachsy has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
jxie has joined #ruby-lang
<yorickpeterse> PDD: Privacy Driven Development
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
vinhbachsy has quit [Remote host closed the connection]
ggherdov has quit [Changing host]
ggherdov has joined #ruby-lang
ggherdov has quit [Changing host]
ggherdov has joined #ruby-lang
Pupeno_w has joined #ruby-lang
Gurpreet1 has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
Gurpreet1 has quit [Client Quit]
<apeiros> yorickpeterse: I have another definition for PDD already - Panic Driven Development
daikan has joined #ruby-lang
Gurpreet has quit [Ping timeout: 265 seconds]
jsullivandigs has joined #ruby-lang
vlad_starkov has joined #ruby-lang
tkuchiki has quit [Ping timeout: 260 seconds]
<yorickpeterse> isn't that also known as Management Driven Development?
daikan has quit [Ping timeout: 260 seconds]
jsullivandigs has quit [Ping timeout: 264 seconds]
skade has quit [Ping timeout: 265 seconds]
<apeiros> I don't think so. not all managements are panic inducing :)
mehlah has quit [Quit: Leaving...]
mehlah has joined #ruby-lang
skade has joined #ruby-lang
mehlah has quit [Client Quit]
r0bgleeson has joined #ruby-lang
clamstar has quit [Quit: Computer has gone to sleep.]
ConstantineXVI has quit [Ping timeout: 240 seconds]
Johz has joined #ruby-lang
skade has quit [Ping timeout: 248 seconds]
skade has joined #ruby-lang
michaeldeol has joined #ruby-lang
simoz13 has joined #ruby-lang
Rylee has joined #ruby-lang
ConstantineXVI has joined #ruby-lang
michaeldeol has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby-lang
<yorickpeterse> benlovell: stop tweeting and get back to work
bigbadbear has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
mistym has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
simoz14 has joined #ruby-lang
elia has quit [Remote host closed the connection]
tkuchiki has quit [Read error: Connection reset by peer]
elia has joined #ruby-lang
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
simoz13 has quit [Ping timeout: 276 seconds]
fire has joined #ruby-lang
mistym has quit [Ping timeout: 265 seconds]
tkuchiki_ has joined #ruby-lang
tkuchiki has quit [Read error: Connection reset by peer]
flip_digits has quit [Ping timeout: 240 seconds]
flip_digits has joined #ruby-lang
tkuchiki_ has quit [Ping timeout: 260 seconds]
rh1n0 has joined #ruby-lang
bigbadbear has quit [Ping timeout: 256 seconds]
vinhbachsy has joined #ruby-lang
<benlovell> yorickpeterse: yiss bawse
<yorickpeterse> no lolligagging allowed
vmoravec has quit [Read error: Connection reset by peer]
sinm has joined #ruby-lang
<yorickpeterse> * lollygagging
Kabaka has joined #ruby-lang
vmoravec has joined #ruby-lang
simoz14 has quit [Ping timeout: 265 seconds]
arBmind has joined #ruby-lang
vinhbachsy has quit [Remote host closed the connection]
sepp2k has joined #ruby-lang
simoz15 has joined #ruby-lang
<yorickpeterse> welp, lets see how our system likes it when I re-schedule the processing of 2,7M reviews
daikan has joined #ruby-lang
smashwilson has joined #ruby-lang
<benlovell> yorickpeterse: remind me what you folks do again
simoz16 has joined #ruby-lang
vinhbachsy has joined #ruby-lang
<yorickpeterse> we ddos websites basically
<yorickpeterse> (scraping)
simoz17 has joined #ruby-lang
clamstar has joined #ruby-lang
<matti> Ohai yorickpeterse
<yorickpeterse> hai
<benlovell> scrapey scrapes
simoz15 has quit [Ping timeout: 264 seconds]
daikan has quit [Ping timeout: 260 seconds]
<yorickpeterse> this new stuff should actually be webscale
<yorickpeterse> since we use thraenidg and stuff
judofyr has joined #ruby-lang
vinhbachsy has quit [Ping timeout: 265 seconds]
simoz16 has quit [Ping timeout: 265 seconds]
bougyman_ is now known as bougyman
sinm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simoz18 has joined #ruby-lang
<judofyr> hey folks
simoz17 has quit [Ping timeout: 248 seconds]
simoz19 has joined #ruby-lang
clamstar has quit [Quit: Computer has gone to sleep.]
r0bby_ has joined #ruby-lang
<yorickpeterse> heh, putting this stuff in a queue probably takes longer than getting it out again
simoz18 has quit [Ping timeout: 261 seconds]
simoz110 has joined #ruby-lang
r0bby_ is now known as robbyoconnor
simoz19 has quit [Ping timeout: 264 seconds]
vinhbachsy has joined #ruby-lang
michaeldeol has joined #ruby-lang
ahmedelgabri has quit [Remote host closed the connection]
vinhbachsy has quit [Remote host closed the connection]
simoz110 has quit [Ping timeout: 268 seconds]
vinhbachsy has joined #ruby-lang
JoshuaPaling has joined #ruby-lang
michaeldeol has quit [Ping timeout: 240 seconds]
JoshuaPaling has quit [Client Quit]
vinhbachsy has quit [Ping timeout: 272 seconds]
diegoviola has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
<yorickpeterse> Hmpf, external website being the bottleneck it seems: http://downloads.yorickpeterse.com/images/screenshot_070114_14%3a40%3a54.png
breakingthings has joined #ruby-lang
csaunders_ has quit [Quit: ZNC - http://znc.sourceforge.net]
vlad_starkov has quit [Ping timeout: 265 seconds]
ando has joined #ruby-lang
csaunders has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
daikan has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
cored has quit [Ping timeout: 272 seconds]
shinnya has joined #ruby-lang
ahmedelgabri has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
ItSANgo has quit [Quit: Leaving...]
robbyoconnor has quit [Read error: Operation timed out]
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
kitak has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
kitak has quit [Remote host closed the connection]
vmoravec has quit [Quit: Leaving]
ahmedelgabri has quit [Remote host closed the connection]
riffraff has joined #ruby-lang
<eam> zzak: I'm pretty sure the hh can't generate the right scan codes for stuff like volume keys on osx -- I see some hackarounds with applescript though
<eam> seems to be a universal issue for non-mac keyboards
workmad3 has quit [Ping timeout: 260 seconds]
ItSANgo has joined #ruby-lang
tkuchiki has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
simoz110 has joined #ruby-lang
mannyt has joined #ruby-lang
mannyt has quit [Ping timeout: 272 seconds]
skade has quit [Ping timeout: 265 seconds]
jsrn has joined #ruby-lang
skade has joined #ruby-lang
enebo has joined #ruby-lang
dwknoxy has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
workmad3 has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
DevDoo has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
jsrn has quit [Ping timeout: 264 seconds]
michaeldeol has joined #ruby-lang
jsrn has joined #ruby-lang
simoz111 has joined #ruby-lang
simoz110 has quit [Ping timeout: 272 seconds]
michaeldeol has quit [Ping timeout: 265 seconds]
nathanstitt has joined #ruby-lang
nathanstitt has quit [Client Quit]
ahmedelgabri has joined #ruby-lang
mistym has joined #ruby-lang
rixth_ has joined #ruby-lang
mrevd has joined #ruby-lang
mrevd has quit [Remote host closed the connection]
judofyr has quit [Remote host closed the connection]
mistym has quit [Ping timeout: 248 seconds]
DevDoo has quit [Ping timeout: 264 seconds]
maloik has quit [Ping timeout: 248 seconds]
aarellano has joined #ruby-lang
maloik has joined #ruby-lang
bigbadbear has joined #ruby-lang
<aarellano> should I always keep my ruby versions upgraded to the latest patchlevel?
<r0bgleeson> aarellano: if you can yeah
rh1n0 has quit [Quit: Textual IRC Client: www.textualapp.com]
nigerianceo has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
<aarellano> isn't a good idea to wait a bit before upgrading? to avoid "problematic" versions like 1.9.3-p362
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
ando has quit [Remote host closed the connection]
rixth_ has quit [Quit: Computer has gone to sleep.]
ando has joined #ruby-lang
maloik has quit [Remote host closed the connection]
bigbadbear has quit [Ping timeout: 260 seconds]
maloik has joined #ruby-lang
<yorickpeterse> yes
<yorickpeterse> Wait a bit, test things, etc
ando has quit [Write error: Broken pipe]
<yorickpeterse> don't blindly update and assume nothing is broken in terms of ABI and the likes
ando has joined #ruby-lang
DevDoo has joined #ruby-lang
<r0bgleeson> aarellano: i think that depends. security patch levels should be no question.
h_kon has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AKASkip has quit [Ping timeout: 248 seconds]
fijimunkii has quit [Ping timeout: 289 seconds]
ulisescab has joined #ruby-lang
DevDoo has quit [Remote host closed the connection]
mrevd has joined #ruby-lang
jovon has joined #ruby-lang
judofyr has joined #ruby-lang
mehlah has joined #ruby-lang
jxie has quit [Quit: leaving]
jsullivandigs has joined #ruby-lang
momomomomo has joined #ruby-lang
rixth_ has joined #ruby-lang
cored has quit [Ping timeout: 264 seconds]
nathanstitt has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 240 seconds]
lfox has joined #ruby-lang
cored has joined #ruby-lang
rixth_ has quit [Quit: Computer has gone to sleep.]
mikecmpbll has joined #ruby-lang
bjh13 has joined #ruby-lang
huopa has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
judofyr has quit [Remote host closed the connection]
kaneda^ has joined #ruby-lang
ando has quit [Remote host closed the connection]
lewix has joined #ruby-lang
<kaneda^> hey guys, qq, it was just brought to my attention that URI.parse sees protocol-less URIs as invalid. while i see this as a bug, i wanted to know what other people thought
ando has joined #ruby-lang
michaeldeol has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
simoz111 has quit [Ping timeout: 266 seconds]
<maloik> a URI requires the protocol to be there
michaeldeol has quit [Read error: Connection reset by peer]
<kaneda^> maloik: browsers (and other languages) account for schemeless URIs
<maloik> I think you may be confusing that to just assuming you'll be using http
<wmoxam> example of a website using schemaless urls: http://m.popdust.com/latest
<workmad3> kaneda^: a schemaless URI is a relative URI and needs an absolute base URI in order to resolve
<kaneda^> workmad3: that's sort of true, but browsers resolve it to mean http typically, so i dont think "invalid" is the right term
<workmad3> kaneda^: no, they resolve it to mean the protocol of the page it's on
<wmoxam> yeah, the base protocal is taken from the context
<kaneda^> workmad3: if you start from a blank page it will assume http
<wmoxam> ie: what protocol was used to fetch the document
<kaneda^> it doesnt need a context in modern browsers
<workmad3> kaneda^: ah, you mean just typing it into the address bar
<kaneda^> and as i said, other langs have support for such a URI
<workmad3> kaneda^: that's a different context entirely, and HTTP is a valid assumption there :)
<wmoxam> ?
<kaneda^> workmad3: i dont think it's very different
<wmoxam> browser will have a context, ie: what protocol was used to fetch it
<wmoxam> :p
<workmad3> kaneda^: also, URI.parse works fine with //foo/bar for me
<maloik> Ruby's URI lib can't just assume your URIs have http as a context
<workmad3> >> require 'uri'; URI.parse("//foo/bar")
<kaneda^> maloik: then it should throw a different exception than invaliduri, like SchemelessURIException
<workmad3> oh wait, eval-in is in #ruby :)
<maloik> he's in here as well usually
<maloik> :o
<wmoxam> => #<URI::Generic:0x007f971b36ba28 URL://foo/bar>
<wmoxam> ;)
<workmad3> kaneda^: URI.parse("//foo/bar") gives me a URI::Generic instance :)
<kaneda^> try URI.parse(://google.com)
<kaneda^> InvalidURIException
<workmad3> kaneda^: right... that's because that *is* invalid
<wmoxam> kaneda^: that is invalid!
<wmoxam> :// rather than //
<workmad3> kaneda^: the : separates the scheme at the start
mistym has joined #ruby-lang
<workmad3> kaneda^: and an empty scheme is invalid
<kaneda^> i think there should be support for such a URI
vlad_starkov has joined #ruby-lang
<wmoxam> no
<workmad3> kaneda^: if you drop the scheme, you also drop the separator
<wmoxam> that's actually not valid
<kaneda^> hold on
<workmad3> kaneda^: and if you look at the RFC, you'll see that a relative URI starts with //, not ://
<kaneda^> ahhh, that's my mistakle
<wmoxam> "A path segment that contains a colon character (e.g., "this:that") cannot be used as the first segment of a relative-path reference, as it would be mistaken for a scheme name.
<wmoxam> "
skade has joined #ruby-lang
<kaneda^> my mistake, schemeless is acceptable, i just misread the RFC
<workmad3> kaneda^: :)
<kaneda^> thanks guys :)
kaneda^ has quit [Quit: laters]
ando has quit [Ping timeout: 240 seconds]
AKASkip has joined #ruby-lang
bin7me has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
ulisescab has quit [Quit: Page closed]
retro_ has quit [Ping timeout: 272 seconds]
ulisescab has joined #ruby-lang
alakra-away is now known as alakra
lfox has quit []
nigerianceo has quit []
lfox has joined #ruby-lang
nigerianceo has joined #ruby-lang
rixth_ has joined #ruby-lang
sinm has joined #ruby-lang
|jemc| has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
<maloik> soooo, it's been a while since I visited bash
<maloik> hilarious stuff
MrZYX is now known as MrZYX|off
mistym has joined #ruby-lang
kurko_ has joined #ruby-lang
zlogan has quit [Ping timeout: 276 seconds]
rixth_ has quit [Quit: Computer has gone to sleep.]
jsrn has quit [Quit: Leaving]
sinm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
breakingthings has quit []
breakingthings has joined #ruby-lang
rixth_ has joined #ruby-lang
bungoman has joined #ruby-lang
senj has joined #ruby-lang
vinhbachsy has joined #ruby-lang
ulisescab has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ulisescab has joined #ruby-lang
rixth_ has quit [Quit: Computer has gone to sleep.]
perdido has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
johnmilton has joined #ruby-lang
naquad has joined #ruby-lang
<naquad> hi
<naquad> https://gist.github.com/8301984 - is this ruby-way or not?
riffraff has quit [Quit: Leaving]
momomomomo has quit [Quit: momomomomo]
|jemc| has joined #ruby-lang
<workmad3> naquad: not really, no
<workmad3> naquad: that's a misuse of inject
<r0bgleeson> naquad: you don't need inject to do that
<workmad3> naquad: I'd do that with capability.select{|cap| cap.match(/^AUTH=(.*)/)}.map(&:first)
<naquad> then it should be map
<naquad> kind of map {|x| x.match(/^AUTH=(.*)/)}.compact.map {|x| x[1]}
<naquad> but thanks for info
jg has quit [Disconnected by services]
<naquad> whenever i use inject i have impression i'm doing something wrong
<workmad3> naquad: that .map{}.compact is what .select is for ;)
<yorickpeterse> use each_with_object if you must
<workmad3> naquad: select just the items that the block evals to true for
jg_ has joined #ruby-lang
<naquad> workmad3, nope, its not
<naquad> take a llok
<naquad> i'm doing match
<naquad> if it doesn't match i get nil
<naquad> this is removed by compact
<naquad> then second map just gets first capture
<workmad3> naquad: yes
aarellano has left #ruby-lang ["Textual IRC Client: www.textualapp.com"]
<havenwood> naquad: yeah, select if match is better than map and compact
<naquad> but then i'll have to match it again
<workmad3> naquad: no
<workmad3> naquad: oh, I see what you mean
<naquad> NoMethodError: undefined method `first' for "AUTH=A1":String
<workmad3> naquad: ah, I see what you mean now
<workmad3> naquad: it's that my second map was wrong
ando_ has joined #ruby-lang
<workmad3> naquad: capability.select{|cap| cap.match(/^AUTH=(.*)/)}.map{|cap| cap.split("=", 1).last} then ;)
<naquad> nope
<naquad> in my case there's only one operation
<naquad> and in tour at least 3
<naquad> i've just bmbm()ed it
<naquad> mine works a bit fast and is more clear
michaeldeol has joined #ruby-lang
<workmad3> naquad: I'd disagree on clarity
<havenwood> #select is pretty clear
<workmad3> naquad: but then I wouldn't do that in a one-liner personally, I'd stash the result of the select in a temp
<havenwood> select what matches <- what you're doing right?
<workmad3> auth_capabilities = capability.select{|cap| cap.match(...)}
<workmad3> naquad: if I was worried about multiple passes, I'd do it with an each_with_object but I feel that reduces clarity
gokul has joined #ruby-lang
tbuehlmann has quit [Quit: Konversation terminated!]
badeball has quit [Ping timeout: 272 seconds]
<naquad> workmad3, your way creates a temporary object, requires second round processing and is much less understandable for someone who is at least a bit aware of ruby std lib
<naquad> think about it
<havenwood> naquad: capabilities.each_with_object([]) do |capability, result|
badeball has joined #ruby-lang
<naquad> havenwood, each_with_object is since 1.9.3 if i don't mind?
<naquad> or 1.9.0?
<workmad3> naquad: I am thinking about it
<workmad3> naquad: and I still see a .select as better than .map.compact
<havenwood> naquad: 1.9+ so works on all living Rubies
ando_ has quit [Remote host closed the connection]
ando_ has joined #ruby-lang
ando_ has quit [Remote host closed the connection]
<workmad3> naquad: if you really wanted a one-liner, then capabilities.each_with_object([]) {|cap, result| result << $1 if cap =~ /^AUTH=(.*)=}
ando_ has joined #ruby-lang
<workmad3> err, / not = at the end there, sorry :)
<naquad> i've managed to make it even more obscure!
<workmad3> naquad: but you were asking about ruby idioms... whereby I'd argue that doing a .map.compact.map (for a total of 2 passes over the full array and 1 over the compacted) is less idiomatic than a .select :)
<naquad> capability.map {|x| x.match(/^AUTH=/)}.compact.map(&:post_match)
lewix has quit [Remote host closed the connection]
ando_ has quit [Remote host closed the connection]
ando_ has joined #ruby-lang
ando_ has quit [Remote host closed the connection]
ando_ has joined #ruby-lang
<workmad3> naquad: btw, if you want to talk about temp objects, you have 2 temp arrays in that ;)
ando_ has quit [Remote host closed the connection]
<yorickpeterse> clearly you should use C for this
ando_ has joined #ruby-lang
<yorickpeterse> then compile it as a Ruby extension
bigbadbear has joined #ruby-lang
<workmad3> yorickpeterse: :D
<yorickpeterse> http://hastebin.com/raw/wakoceyiha also lol this code
* yorickpeterse cries
ando_ has quit [Remote host closed the connection]
<naquad> hm
michaeldeol has quit [Remote host closed the connection]
<naquad> each_with_object worked even faster :)
ando_ has joined #ruby-lang
<yorickpeterse> (there's some extra stuff around it but that's top sekret)
<workmad3> naquad: well it is doing a single pass at that point
michaeldeol has joined #ruby-lang
<workmad3> naquad: just less clear IMO
<naquad> i understand that basically i'm not doing anythinng smart when benchmarking thing that'll run only once per whole program
ando_ has quit [Remote host closed the connection]
ando_ has joined #ruby-lang
<naquad> but with select then map it looks too much for me: first we match then we parse string again
michaeldeol has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
<havenwood> naquad: milliseconds
gokul has quit [Quit: Leaving]
<havenwood> femtoseconds
ando_ has quit [Remote host closed the connection]
<naquad> havenwood, nano
<naquad> well yeah
michaeldeol has joined #ruby-lang
ando_ has joined #ruby-lang
<naquad> maybe even femto
michaeldeol has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3> naquad: hell, you could even do .select{|c| c =~ /^AUTH=/}.map{|a| a.sub("AUTH=", "")}
shinnya has quit [Ping timeout: 276 seconds]
senj has joined #ruby-lang
bigbadbear has quit [Ping timeout: 265 seconds]
ando_ has quit [Remote host closed the connection]
ando_ has joined #ruby-lang
cnivolle has quit [Ping timeout: 252 seconds]
ecnalyr has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
ando_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
ando_ has joined #ruby-lang
ando_ has quit [Remote host closed the connection]
ando_ has joined #ruby-lang
ando_ has quit [Remote host closed the connection]
ando_ has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.2]
vlad_starkov has quit [Read error: Connection reset by peer]
ando_ has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
ando_ has joined #ruby-lang
momomomomo has joined #ruby-lang
tkuchiki has joined #ruby-lang
momomomomo has quit [Client Quit]
<yorickpeterse> TWO CHARACTER BUG OF THE DAY:
<yorickpeterse> foo && bar
ando_ has quit [Remote host closed the connection]
<yorickpeterse> when it should've been foo || bar
* yorickpeterse facedesks
ando_ has joined #ruby-lang
ando_ has quit [Remote host closed the connection]
ando_ has joined #ruby-lang
alakra is now known as alakra-away
momomomomo has joined #ruby-lang
tkuchiki has quit [Ping timeout: 272 seconds]
ando_ has quit [Remote host closed the connection]
ando_ has joined #ruby-lang
ulisescab has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
anulman has joined #ruby-lang
dagobah has quit [Remote host closed the connection]
ando_ has quit [Remote host closed the connection]
ando_ has joined #ruby-lang
solars has quit [Ping timeout: 272 seconds]
SteveBenner9 has joined #ruby-lang
ando_ has quit [Remote host closed the connection]
ando_ has joined #ruby-lang
ando_ has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
ando_ has joined #ruby-lang
judofyr has joined #ruby-lang
BloodyHi_ has joined #ruby-lang
rixth_ has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
ando_ has quit [Ping timeout: 260 seconds]
dostoyevsky has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
<dostoyevsky> What gem is recommended for dumping data structures as json these days?
anulman has quit [Ping timeout: 252 seconds]
<judofyr> jBuilder is decent enough: https://github.com/rails/jbuilder
<dostoyevsky> How about fjson?
<judofyr> dostoyevsky: this thing? http://rubygems.org/gems/fjson doesn't seem very maintainedæ
<dostoyevsky> Yeah, it seems it is not yet updated for ruby19
__butch__ has joined #ruby-lang
<|jemc|> if it's not even to 1.9 yet I wouldn't hold my breath
<dostoyevsky> https://rubygems.org/gems/json <- seems better, last update four months ago
<judofyr> dostoyevsky: it also ships with Ruby 1.9+
<dostoyevsky> oh... And it's by "Florian Frank" who wrote fjson...
<judofyr> dostoyevsky: well, for dumping data as JSON there's two approaches: Build one big Hash and call #to_json, or use something like jBuilder to incrementally build it
<dostoyevsky> Ah, no wrong
senj has quit [Ping timeout: 252 seconds]
daikan has quit [Remote host closed the connection]
rixth_ has quit [Quit: Computer has gone to sleep.]
momomomomo has joined #ruby-lang
emptyflask has joined #ruby-lang
RobertBirnie has joined #ruby-lang
momomomomo has quit [Client Quit]
xcesariox has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #ruby-lang
_aeris_ is now known as [_aeris_]
<dostoyevsky> Ok, json is indeed in stdlib now :)
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
rixth_ has joined #ruby-lang
apeiros has joined #ruby-lang
BloodyHi_ has quit [Ping timeout: 252 seconds]
Mellett68_ has joined #ruby-lang
BloodyHistory has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
snsei has joined #ruby-lang
Mellett68 has quit [Ping timeout: 246 seconds]
yxhuvud has quit [Ping timeout: 246 seconds]
benlovell has quit [Ping timeout: 277 seconds]
henrikhodne has quit [Ping timeout: 240 seconds]
henrikhodne has joined #ruby-lang
rixth_ has quit [Quit: Computer has gone to sleep.]
snsei has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
momomomomo has joined #ruby-lang
amerine has joined #ruby-lang
kurko______ has joined #ruby-lang
shaileshg_____ has joined #ruby-lang
justinmcp_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
nigerian_ has joined #ruby-lang
huopa_ has joined #ruby-lang
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
adambeynon_ has joined #ruby-lang
avdi_ has joined #ruby-lang
mje113_ has joined #ruby-lang
mattyohe_ has joined #ruby-lang
xcesariox has joined #ruby-lang
xcesariox has quit [Max SendQ exceeded]
enebo has quit [Quit: enebo]
skade has joined #ruby-lang
hahuang65 has quit [Ping timeout: 264 seconds]
mogox_ has joined #ruby-lang
wallerdev has joined #ruby-lang
amerine_ has quit [Ping timeout: 240 seconds]
Paradox has quit [Ping timeout: 240 seconds]
shaileshg____ has quit [Ping timeout: 240 seconds]
thmzlt has quit [Ping timeout: 240 seconds]
mje113 has quit [Ping timeout: 240 seconds]
mitchty has quit [Ping timeout: 240 seconds]
thmzlt_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 240 seconds]
huopa has quit [Ping timeout: 240 seconds]
flip_digits has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 240 seconds]
duckinator has quit [Ping timeout: 240 seconds]
justinmcp has quit [Ping timeout: 240 seconds]
perdido has quit [Ping timeout: 240 seconds]
nigerianceo has quit [Ping timeout: 240 seconds]
ConstantineXVI has quit [Ping timeout: 240 seconds]
MartynKeigher has quit [Ping timeout: 240 seconds]
avdi has quit [Ping timeout: 240 seconds]
adambeynon has quit [Ping timeout: 240 seconds]
mattyohe has quit [Ping timeout: 240 seconds]
DarkBushido has quit [Ping timeout: 240 seconds]
mogox has quit [Ping timeout: 240 seconds]
soraher has quit [Ping timeout: 240 seconds]
MartynKeigher has joined #ruby-lang
snsei has joined #ruby-lang
flip_digits has joined #ruby-lang
mitchty has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
bougyman has quit [Quit: Lost terminal]
bougyman has joined #ruby-lang
perdido has joined #ruby-lang
soraher has joined #ruby-lang
mattyohe_ is now known as mattyohe
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
DarkBushido has joined #ruby-lang
bougyman has quit [Changing host]
bougyman has joined #ruby-lang
avdi_ is now known as avdi
DarkBushido has quit [Changing host]
DarkBushido has joined #ruby-lang
tylersmith has joined #ruby-lang
CaptainJet has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
jg_ has quit [Quit: Leaving]
ConstantineXVI has joined #ruby-lang
fijimunkii has joined #ruby-lang
duckinator has joined #ruby-lang
duckinator has quit [Changing host]
duckinator has joined #ruby-lang
Paradox has joined #ruby-lang
aef has quit [Remote host closed the connection]
aef has joined #ruby-lang
sree has joined #ruby-lang
elia has quit [Ping timeout: 260 seconds]
snsei has quit [Remote host closed the connection]
saarinen has joined #ruby-lang
fijimunk1i has joined #ruby-lang
robmiller has quit [Quit: robmiller]
tylersmith has joined #ruby-lang
BloodyHistory has quit [Quit: Textual IRC Client: www.textualapp.com]
ahmedelgabri has quit []
snarfmason has joined #ruby-lang
DarkBushido has quit [Ping timeout: 240 seconds]
Paradox has quit [Ping timeout: 240 seconds]
ConstantineXVI has quit [Ping timeout: 240 seconds]
duckinator has quit [Ping timeout: 240 seconds]
fijimunkii has quit [Ping timeout: 240 seconds]
perdido has quit [Ping timeout: 240 seconds]
soraher has quit [Ping timeout: 240 seconds]
mitchty has quit [Ping timeout: 240 seconds]
MartynKeigher has quit [Ping timeout: 240 seconds]
DarkBushido has joined #ruby-lang
mitchty has joined #ruby-lang
[_aeris_] is now known as _aeris_
soraher has joined #ruby-lang
DarkBushido is now known as Guest9441
mitchty is now known as Guest17523
bradland has joined #ruby-lang
Guest9441 has quit [Changing host]
Guest9441 has joined #ruby-lang
perdido has joined #ruby-lang
ConstantineXVI has joined #ruby-lang
Paradox has joined #ruby-lang
MartynKeigher has joined #ruby-lang
rixth_ has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
sinm has joined #ruby-lang
<bradland> i need some help understanding why line 4 of this example discards precision when the other two examples do not: https://gist.github.com/bradland/8303872
ledestin has joined #ruby-lang
duckinator has joined #ruby-lang
iliketurtles has joined #ruby-lang
iliketurtles has quit [Excess Flood]
momomomomo has quit [Quit: momomomomo]
<havenwood> bradland: That 3, the second argument you're passing BigDecimal.new, is causing the rounding: http://www.ruby-doc.org/stdlib-2.1.0/libdoc/bigdecimal/rdoc/BigDecimal.html#method-c-new
judofyr has joined #ruby-lang
<havenwood> bradland: `digits`
iliketurtles has joined #ruby-lang
rixth_ has quit [Quit: Computer has gone to sleep.]
<bradland> ah, i assumed that BigDecimal.new(1.001, 3).to_s == "1.001", but it's actually "1.0"
<bradland> guess i need to read up on significant digits
<havenwood> bradland: in your example a 4 would produce a different result than the 3
<bradland> yeah, 4 produces "1.001", which is what i was expecting
mbj has left #ruby-lang [#ruby-lang]
<bradland> i thought significant digits was the number of digits to the right of the decimal separator ('.' in the U.S.)
hahuang65 has joined #ruby-lang
judofyr has quit [Client Quit]
iliketurtles has quit [Client Quit]
<workmad3> bradland: no, significant digits is the number of digits after the first non-zero digit in the number
<workmad3> e.g. 123444312 to 3s.f. is 123000000
<bradland> ah
<bradland> ok, that makes more sense then
<workmad3> bradland: the number of digits after the decimal point is frequently called the precision
<bradland> so when a BigDecimal value is created from a string, it uses maximum precision?
<bradland> sorry, maximum significant digits?
<workmad3> it's probably set without any sf at that point, so doesn't apply any rounding
iliketurtles has joined #ruby-lang
iliketurtles has quit [Excess Flood]
iliketurtles has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
sree has quit []
workmad3 has quit [Ping timeout: 260 seconds]
nigerian_ has quit []
arBmind has quit [Quit: Leaving.]
robmiller has joined #ruby-lang
michaeldeol has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
nigerianceo has joined #ruby-lang
rixth_ has joined #ruby-lang
VTLob has joined #ruby-lang
michaeldeol has quit [Ping timeout: 272 seconds]
fire has quit [Quit: WeeChat 0.4.1]
ryanf has joined #ruby-lang
alex-quiterio has joined #ruby-lang
iliketurtles has quit [*.net *.split]
__butch__ has quit [*.net *.split]
rebelcan- has quit [*.net *.split]
nullFxn has quit [*.net *.split]
ammar_ has quit [*.net *.split]
ammar has joined #ruby-lang
__butch__ has joined #ruby-lang
iliketurtles has joined #ruby-lang
rebelcan- has joined #ruby-lang
nullFxn has joined #ruby-lang
gix has joined #ruby-lang
bigbadbear has joined #ruby-lang
alex-quiterio has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby-lang
rixth_ has quit [Quit: Computer has gone to sleep.]
daikan has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
bigbadbear has quit [Ping timeout: 272 seconds]
michaeldeol has quit [Ping timeout: 272 seconds]
daikan has quit [Ping timeout: 252 seconds]
bungoman_ has joined #ruby-lang
ConstantineXVI has quit [Ping timeout: 240 seconds]
Paradox has quit [Ping timeout: 240 seconds]
Guest17523 has quit [Ping timeout: 240 seconds]
duckinator has quit [Ping timeout: 240 seconds]
Guest9441 has quit [Ping timeout: 240 seconds]
panpainter has joined #ruby-lang
bungoman_ has quit [Read error: Connection reset by peer]
bungoma__ has joined #ruby-lang
bungoman has quit [Ping timeout: 272 seconds]
MrZYX|off is now known as MrZYX
ConstantineXVI has joined #ruby-lang
duckinator has joined #ruby-lang
mitchty_ has joined #ruby-lang
DarkBushido_ has joined #ruby-lang
duckinator has joined #ruby-lang
duckinator has quit [Changing host]
Paradox has joined #ruby-lang
bungoma__ has quit []
alex-quiterio has joined #ruby-lang
zrl has quit []
brianpWins has joined #ruby-lang
zrl has joined #ruby-lang
michaeldeol has joined #ruby-lang
wallerdev has joined #ruby-lang
deol has joined #ruby-lang
michaeldeol has quit [Read error: Connection reset by peer]
Pupeno_w has quit [Ping timeout: 260 seconds]
nigerianceo has quit []
bougyman has quit [Quit: Lost terminal]
bougyman has joined #ruby-lang
bougyman has quit [Changing host]
bougyman has joined #ruby-lang
nigerianceo has joined #ruby-lang
momomomomo has joined #ruby-lang
imperator has joined #ruby-lang
pr0ton has joined #ruby-lang
skade has joined #ruby-lang
robbyoconnor has joined #ruby-lang
joshcooper has joined #ruby-lang
alex-quiterio has quit [Quit: Leaving.]
jovon has quit [Quit: Leaving]
cid404 has joined #ruby-lang
<joshcooper> I'm getting a 500 internal server error when trying to view https://bugs.ruby-lang.org/, is the site down for maintenance?
heftig has joined #ruby-lang
panpainter has quit [Quit: panpainter]
sree has joined #ruby-lang
CaptainJet has quit [Ping timeout: 245 seconds]
arBmind has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
alex-quiterio has joined #ruby-lang
danijoo has joined #ruby-lang
simoz112 has joined #ruby-lang
ledestin has quit [Ping timeout: 252 seconds]
benanne has joined #ruby-lang
DarkBushido_ has quit [Quit: FreeNode]
DarkBushido has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
alex-quiterio1 has joined #ruby-lang
alex-quiterio has quit [Ping timeout: 252 seconds]
nigerianceo has quit [Remote host closed the connection]
nigerianceo has joined #ruby-lang
<darix> joshcooper: we can agree on down i guess. though 500 doesnt sound like maintenance
benanne has quit [Quit: kbai]
Elico has joined #ruby-lang
genexp has joined #ruby-lang
genexp has quit [Excess Flood]
panpainter has joined #ruby-lang
panpainter has quit [Client Quit]
panpainter has joined #ruby-lang
fusi0n has quit [Quit: ZNC - http://znc.in]
panpainter has quit [Client Quit]
fusi0n has joined #ruby-lang
alex-quiterio1 has quit [Quit: Leaving.]
daikan has joined #ruby-lang
enebo has joined #ruby-lang
rixth_ has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
daikan has quit [Ping timeout: 265 seconds]
alex-quiterio has joined #ruby-lang
iliketurtles has joined #ruby-lang
deol is now known as michaeldeol
workmad3 has joined #ruby-lang
vinhbachsy has quit []
rixth_ has quit [Quit: Computer has gone to sleep.]
momomomomo has quit [Quit: momomomomo]
mehlah has joined #ruby-lang
yxhuvud has joined #ruby-lang
ledestin has joined #ruby-lang
sepp2k has quit [Quit: Konversation terminated!]
flip_digits has quit []
CoverSlide has joined #ruby-lang
brian123 has joined #ruby-lang
brian123 has quit [Excess Flood]
derpmaster12387 has joined #ruby-lang
ozkan has joined #ruby-lang
jacky has quit [Excess Flood]
emptyflask has quit [Remote host closed the connection]
emptyflask has joined #ruby-lang
rixth_ has joined #ruby-lang
jalcine has joined #ruby-lang
diegoviola has joined #ruby-lang
benlovell has joined #ruby-lang
momomomomo has joined #ruby-lang
benlovell has quit [Ping timeout: 252 seconds]
sinm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby-lang
rixth_ has quit [Quit: Computer has gone to sleep.]
alex-quiterio has quit [Quit: Leaving.]
jsullivandigs has quit [Remote host closed the connection]
DouweM has quit [Ping timeout: 260 seconds]
simoz113 has joined #ruby-lang
simoz112 has quit [Ping timeout: 265 seconds]
rixth_ has joined #ruby-lang
michaeldeol has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
jsullivandigs has joined #ruby-lang
simoz114 has joined #ruby-lang
michaeldeol has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
panpainter has joined #ruby-lang
sree has quit []
simoz113 has quit [Ping timeout: 260 seconds]
mistym_ has joined #ruby-lang
bigbadbear has joined #ruby-lang
rixth_ has quit [Quit: Computer has gone to sleep.]
daikan has joined #ruby-lang
bigbadbear has quit [Ping timeout: 246 seconds]
daikan has quit [Ping timeout: 260 seconds]
mistym_ has quit [Ping timeout: 265 seconds]
panpainter has quit [Quit: panpainter]
panpainter has joined #ruby-lang
mistym is now known as mistym_lunch
clamstar has joined #ruby-lang
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
benanne has joined #ruby-lang
simoz114 has quit [Ping timeout: 265 seconds]
imperator has quit [Ping timeout: 245 seconds]
momomomomo has joined #ruby-lang
daikan has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
mbj has joined #ruby-lang
MichD is now known as michd
iliketurtles has joined #ruby-lang
clamstar has quit [Quit: Computer has gone to sleep.]
iliketurtles has quit [Client Quit]
sinm has joined #ruby-lang
CaptainJet has joined #ruby-lang
iliketurtles has joined #ruby-lang
dwknoxy has quit [Ping timeout: 264 seconds]
Forgetful_Lion has quit [Ping timeout: 285 seconds]
ozkan has quit [Quit: Linkinus - http://linkinus.com]
mbj has quit [Ping timeout: 245 seconds]
daikan has quit [Read error: Connection reset by peer]
daikan has joined #ruby-lang
sinm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketurtles has quit [Quit: zzzzz…..]
jsullivandigs has quit [Remote host closed the connection]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
jsullivandigs has joined #ruby-lang
<csaunders> when using =~ are the results $1, $2, etc. scope local or are they global?
batchitcray has joined #ruby-lang
lost has joined #ruby-lang
<apeiros> they're even more local
<apeiros> they're e.g. thread local too iirc
lost is now known as Guest86341
bradcliffe has joined #ruby-lang
<yorickpeterse> they're "weirdly-local"
<yorickpeterse> they are global variables scoped to whatever scope they were created in, up to being thread local if I believe
<yorickpeterse> >> def foo; 'foo 10' =~ /(\d+)/; end; $1
<yorickpeterse> eval-in: HEY COME ON NOW
<yorickpeterse> stupid bot never works when you need it
perdido has quit [Ping timeout: 265 seconds]
<canton7> yeah, it's been dead for a little while now
<yorickpeterse> http://eval.in/86957 that's one
ulisescab has joined #ruby-lang
<yorickpeterse> https://eval.in/86959 two
<csaunders> damn
<csaunders> thanks, I was certain I had read that somewhere but wasn't entirely sure
<yorickpeterse> it's pretty crazy
<yorickpeterse> "here are global variables"
<yorickpeterse> "they are locally scoped"
<csaunders> yeah, the $ makes them misleading :/
deol has joined #ruby-lang
<yorickpeterse> well, they *actually* are global variables, I believe they're just removed after they go out of scope
<apeiros> they are C functions dressed up as global variables
<apeiros> at least in MRI
fijimunk1i has quit [Ping timeout: 272 seconds]
iliketurtles has joined #ruby-lang
<yorickpeterse> wat
<yorickpeterse> srsly
<apeiros> seriously
<yorickpeterse> ok that's it
<yorickpeterse> I'm going to write fucking Python
<yorickpeterse> Python 2.7, not Python 3.0 becauase fuck upgrading!!!11
<apeiros> I approve of the fucking - but python? really?
<yorickpeterse> not much fucking going on around here
<csaunders> python is the bees knees
<yorickpeterse> "omgggg Python 3 is such a disaster" - uses Python version that has two URL libraries and a non existing encoding system
<yorickpeterse> and here I was thinking of making a Ruby <-> Python bridge
mistym_lunch is now known as mistym
<yorickpeterse> so I don't have to shell out to the CLI for Python code
Guest86341 has quit [Quit: Leaving]
perdido has joined #ruby-lang
<apeiros> isn't there a ruby interpreter written in python?
<yorickpeterse> Yeah, Topaz
<yorickpeterse> not quite the same, and dead by the looks of it
<yorickpeterse> I was thinking of running a Python interpreter in Ruby and piping objects over
<yorickpeterse> either via cruby or FFI
<yorickpeterse> I however think it would be faster to translate Python to Ruby code than getting that to work
<yorickpeterse> though you can't do that for Python C extensions
kylo has joined #ruby-lang
ged_ is now known as ged
dingus_khan has joined #ruby-lang
NemesisD has joined #ruby-lang
<ryanf> yorickpeterse: that sucks about topaz, I was looking forward to it :(
<NemesisD> hey guys. i see you can throw exceptions to a thread, but is there any way to give a thread an unhandled exception handler
<apeiros> NemesisD: s/throw/raise/
<NemesisD> i.e. Thread.new { Thread.current.if_all_hell_breaks_loose = ->(ex) { take_cyanide_pill }; .... }.throw("SURPRISE")
<yorickpeterse> ryanf: not sure if it's officially dead but the repo doesn't look active
gix has quit [Quit: Client exiting]
<apeiros> throw is something different.
<NemesisD> sorry raise, yeah
<NemesisD> oh wait
<yorickpeterse> https://github.com/topazproject/topaz/commits/master ignoring kachik, last commit was 2 months ago
<NemesisD> yes replace all throws with raise. my bad
<apeiros> and you handle exceptions in a thread just like anywhere else - you wrap the block in begin/rescue/end
<NemesisD> Thread.new { Thread.current.if_all_hell_breaks_loose = ->(ex) { take_cyanide_pill }; .... }.raise("SURPRISE")
<csaunders> Topaz is dead/dying already? Wow
<apeiros> Thread.new do begin …yourcodewhichmaybreakhellloose… rescue => ex end end
<NemesisD> apeiros: ivve got some code that saves the calling thread and raises to it on connection loss. so in order to prevent it from taking down my main thread i guess i do something like:
<|jemc|> csaunders: link?
<NemesisD> Thread.new { connect; begin; sleep; rescue ConnectionError => e; handle_dat(e); end; }
<|jemc|> ah nvm
<csaunders> hah
<NemesisD> since the connect does not block. the problem is i was doing this in the main thread so if my conn got dropped it would blow up randomly in the middle of a database call D:
<|jemc|> didn't read upward enough
<csaunders> yeah, I have no links... I haven't looked into the langauge/impl though
<csaunders> maybe that's why? Lack of interest... #speculating
<|jemc|> heh, who wants to try to keep both ruby and python straight in their heads on the same project?
<|jemc|> (referring to the core devs)
<apeiros> NemesisD: it's generally a rather bad idea to raise an exception in a thread
<apeiros> I mean, from another thread
<apeiros> i.e., I'd strongly disadvise from using Thread#raise
nisstyre has joined #ruby-lang
breakingthings has quit []
CoreData has joined #ruby-lang
<yorickpeterse> NemesisD: the only way is to begin/rescue all the things in the thread itself
<NemesisD> apeiros: yeah. its not my code. i wouldn't do that
<yorickpeterse> you could probably do `Thread.abort_on_exception = true` and then wrap everything in `begin/rescue` but I'm not sure how that would work
jsullivandigs has quit [Remote host closed the connection]
<apeiros> NemesisD: can you control which thread the nasty library raises the exception in?
<apeiros> if so, make a thread with plain sleep in it to "take one for the team" :)
<apeiros> bait = Thread.new do begin; sleep; rescue NastyException => ex; controlled_shutdown; end; end
<apeiros> if it's always the main thread, move your operating code into another thread and let the main thread sleep.
danijoo_ has joined #ruby-lang
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
Johz has quit [Quit: Leaving]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
jalcine has quit [Excess Flood]
<NemesisD> apeiros: yeah so that's what we're doing
<NemesisD> we silo that thread off into a thread that sleeps forever for the sake of handling this error
<NemesisD> better it than the main thread
nertzy3 has joined #ruby-lang
shinnya has joined #ruby-lang
jsullivandigs has joined #ruby-lang
jalcine has joined #ruby-lang
toretore has quit [Ping timeout: 272 seconds]
<NemesisD> woah woah woah
nertzy2 has quit [Ping timeout: 276 seconds]
<NemesisD> the doc for the instance method abort_on_exception= for thread says it causes all threads including the main thread to abort if an exception is raised in this thread, but that doesn't appear to be true at all
<NemesisD> really it just seems to throw an exception to the calling thread when that thread aborts
arBmind has quit [Ping timeout: 252 seconds]
<NemesisD> waat
<yorickpeterse> NemesisD: what problem are you trying to solve?
dingus_khan has quit [Remote host closed the connection]
<apeiros> NemesisD: errr, no? that doc is spot on.
<apeiros> NemesisD: note though that it's about *unhandled* exceptions
<apeiros> that said, last I tested that was in 1.8…
<NemesisD> i'm no longer trying to solve a problem, just questioning the docs. let me paste my test
<yorickpeterse> ARGH, fucking Ruby recursive module inclusions
<yorickpeterse> NemesisD: that's because you set the abort_on_exception_flag when the first thread might be done already
<NemesisD> the docs even go so far as to say that the process will effectively exit(0), which it doesn't at all. also why would it exit with 0 if its an unhandled exception
<NemesisD> yorickpeterse: i deliberately sleep in the first thread for a second
<yorickpeterse> that doesn't guarantee anything
<yorickpeterse> use `Thread.abort_on_exception = true` (the literal global form)
<yorickpeterse> and set it first
<NemesisD> that's not the functionality i'm testing though. i'm testing the instance version
<yorickpeterse> you'd have to call it as soon as possible, so directly after creating the thread
<yorickpeterse> or in the thread itself
<NemesisD> ok sure ill do Thread.current.abort_on_exception
<NemesisD> same behavior
dingus_khan has joined #ruby-lang
<yorickpeterse> Thread.new { raise 'foo' }.abort_on_exception = true # something like this should work
toretore has joined #ruby-lang
<NemesisD> same: http://pastie.org/8612109
<yorickpeterse> oh wait
<yorickpeterse> derp
<yorickpeterse> call `t.join` at the end
<NemesisD> that's *even* weirder because the exception gets handled with "blast shielded" and then thrown again at the join
<yorickpeterse> you should get /tmp/test.rb:8:in `block in <main>': BOOM (RuntimeError)
fijimunkii has joined #ruby-lang
<yorickpeterse> the begin; sleep; rescue does nothing
<yorickpeterse> sleep() doesn't raise
<NemesisD> yeah but the boom raises and gets caught in that exception handler
<NemesisD> i see blast shielded: BOOM in the console
<NemesisD> and then BOOM that kills the program when i join
iliketurtles has quit [Quit: zzzzz…..]
deens has joined #ruby-lang
diegoviola has quit [Ping timeout: 252 seconds]
fijimunkii has quit [Read error: Connection reset by peer]
<NemesisD> *cue bill oreilly saying you can't explain that*
<yorickpeterse> granted it's late, seems like begin/rescue here rescues the exception in the main thread
<yorickpeterse> oh wait
<yorickpeterse> it rescues it, somehow, but then still continues
<NemesisD> yeah
<NemesisD> also join always seems to raise unhandled exceptions in child threads
<NemesisD> so it seems like abort_on_exception = true raises in the calling thread any time an exception goes unhandled in that thread
vlad_starkov has quit [Remote host closed the connection]
<NemesisD> but "When se to true, causes all threads (including the main program) to abort if an exception is raised in thr. The process will effectively exit(0)" *appears* to be completely wrong
<yorickpeterse> no, that part works as expected
<yorickpeterse> http://hastebin.com/raw/patiqehenu <- exits as expected
stonerfish has joined #ruby-lang
<NemesisD> the instance method man
<NemesisD> it does not abort all the threads like the docs said. it is completely recoverable. it also doesn't exit(0)
joshcooper has left #ruby-lang [#ruby-lang]
bjh13 has quit [Quit: leaving]
<yorickpeterse> oh wait, I see
<yorickpeterse> when you use Thread.abort_on_exception it uses the current (= main thread) so that when an exception occurs it will terminate that one
<yorickpeterse> Probably if you use it on another thread it only terminates that one
<NemesisD> let me know when i can flip over my table and say the stdlib docs are a lie
<yorickpeterse> probably
seanlinsley has joined #ruby-lang
mrevd has quit [Quit: Leaving.]
dvarrui has joined #ruby-lang
kurko______ has quit [Ping timeout: 252 seconds]
alex-quiterio has joined #ruby-lang
<NemesisD> (╯°□°)╯︵ ┻━┻
<mistym> ╯°□°╯︵sɔop
derpmaster12387 has left #ruby-lang [#ruby-lang]
<NemesisD> where do the ruby docs live? i feel like i should create a PR for this
<drbrain> NemesisD: you can create a pull request on ruby/ruby
<drbrain> NemesisD: you'll probably find the offending documentation in thread.c
jalcine is now known as jacky
panpainter has quit [Remote host closed the connection]
<NemesisD> cool cool
diegoviola has joined #ruby-lang
<NemesisD> drbrain: i'm actually not sure what the correct doc is here. i assume i have to open a bug somewhere, but i don't have access to open issues on buugs.ruby-lang.org
<drbrain> NemesisD: you don't?
<drbrain> ↑ you should file issues here
<NemesisD> oh ok maybe i need a login. that makes sense
<drbrain> yes, you need a login
<NemesisD> hehe
ivanskie has joined #ruby-lang
<drbrain> because some issues required feedback (and spam)
<NemesisD> cool. i'll follow up on this after work. thanks guys
benanne has quit [Quit: kbai]
ando_ has joined #ruby-lang
nigerianceo has quit []
AKASkip has quit [Ping timeout: 260 seconds]
nathanstitt has quit [Quit: I growing sleepy]
kitak has joined #ruby-lang
MrZYX is now known as MrZYX|off
vlad_starkov has joined #ruby-lang
panpainter has joined #ruby-lang
enebo has quit [Quit: enebo]
vlad_starkov has quit [Read error: Connection reset by peer]
dingus_khan has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
retro_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
ando_ has quit [Remote host closed the connection]
ando has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
danijoo has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
ando has quit [Remote host closed the connection]
ando has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
symm- has quit [Ping timeout: 276 seconds]
dvarrui has quit [Ping timeout: 246 seconds]
stonerfish has quit [Quit: Leaving.]
stonerfish has joined #ruby-lang
stonerfish has quit [Client Quit]
Mon_Ouie has quit [Read error: Operation timed out]
symm- has joined #ruby-lang
stonerfish has joined #ruby-lang
stonerfish has quit [Client Quit]
<Veejay> Hi, I was wondering, since 2.0 was a major release, should I expect code to break if I'm still using 1.9.3p484?
<CoverSlide> Veejay: TIAS
<Veejay> I've looked at changelogs but they usuaally refer to what's been added since the last version, not always easy to get a sense of change over a few years
ulisescab has quit [Ping timeout: 272 seconds]
<Veejay> CoverSlide: I'm not familiar with this acronym sorry
<CoverSlide> try it on your app and see
<Veejay> Unless you're referring to The Internet Antique Shop
<Veejay> Which I doubt
<CoverSlide> it depends on the app
<Veejay> CoverSlide: Will do then