apeiros_ changed the topic of #ruby-lang to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste code on http://gist.github.com
tkuchiki has joined #ruby-lang
oak1 has joined #ruby-lang
godzillaenlacasa has joined #ruby-lang
leonshalimov has joined #ruby-lang
tkuchiki has quit [Ping timeout: 272 seconds]
leonshalimov has quit [Ping timeout: 246 seconds]
martinium has joined #ruby-lang
martinium has quit [Changing host]
martinium has joined #ruby-lang
Sadin has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter has quit [Client Quit]
__butch__ has quit [Quit: Leaving.]
martinium has quit [Ping timeout: 276 seconds]
Bwild has joined #ruby-lang
godzillaenlacasa has quit [Quit: Computer has gone to sleep.]
godzillaenlacasa has joined #ruby-lang
<godzillaenlacasa> any suggestions how to get around this error? `read_nonblock': Connection reset by peer (Errno::ECONNRESET)
fclausen has quit [Ping timeout: 272 seconds]
Caius has joined #ruby-lang
fclausen has joined #ruby-lang
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
yusuf1 has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
kalehv has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
kalehv has joined #ruby-lang
francisfish has joined #ruby-lang
oak1 has quit [Read error: Connection reset by peer]
kalehv has quit [Ping timeout: 244 seconds]
j4cknewt has joined #ruby-lang
oak1 has joined #ruby-lang
|jemc| has quit [Ping timeout: 244 seconds]
aconnor has quit [Ping timeout: 246 seconds]
martinbmadsen has joined #ruby-lang
ascarter has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
martinbmadsen has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby-lang
charliesome has quit [Quit: zzz]
charliesome has joined #ruby-lang
kalehv has joined #ruby-lang
nunayerBeezwax has joined #ruby-lang
martiniu_ has joined #ruby-lang
martiniu_ has joined #ruby-lang
martiniu_ has quit [Changing host]
j0n3 has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
DivineEntity has quit [Read error: No route to host]
francisfish has quit [Remote host closed the connection]
nickpassarella has quit [Quit: nickpassarella]
bb010g has joined #ruby-lang
gwendall_ has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 252 seconds]
loincloth has quit [Remote host closed the connection]
leonshalimov has joined #ruby-lang
rcvalle has quit [Quit: rcvalle]
jonoyeong has joined #ruby-lang
jonoyeong has left #ruby-lang [#ruby-lang]
hendranata_ has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
leonshalimov has quit [Ping timeout: 276 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby-lang
|jemc| has joined #ruby-lang
yfeldblum has quit [Ping timeout: 276 seconds]
lytol has quit [Remote host closed the connection]
ta has quit [Ping timeout: 264 seconds]
nickpassarella has joined #ruby-lang
charliesome has quit [Quit: zzz]
godzillaenlacasa has quit [Quit: Computer has gone to sleep.]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
nickpassarella has quit [Quit: nickpassarella]
charliesome has joined #ruby-lang
chills42 has joined #ruby-lang
amsi has quit [Quit: Leaving]
nickpassarella has joined #ruby-lang
kenmazaika_ has joined #ruby-lang
godzillaenlacasa has joined #ruby-lang
Bwild has quit [Ping timeout: 246 seconds]
Bwild has joined #ruby-lang
cornerma1 has joined #ruby-lang
hotpancakes has joined #ruby-lang
cornerman has quit [Ping timeout: 256 seconds]
cornerma1 is now known as cornerman
amclain has joined #ruby-lang
kalehv has quit [Remote host closed the connection]
nunayerBeezwax has quit []
loincloth has joined #ruby-lang
klmlfl has joined #ruby-lang
loincloth has quit [Ping timeout: 265 seconds]
iamninja has quit [Quit: ZZZzzz…]
godzillaenlacasa has quit [Quit: Computer has gone to sleep.]
rahul_j has joined #ruby-lang
klmlfl has quit [Ping timeout: 265 seconds]
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
martiniu_ has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
martinium has joined #ruby-lang
slawrence00 has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
shinnya has quit [Ping timeout: 255 seconds]
nofxx has quit [Read error: Connection timed out]
nofxx has joined #ruby-lang
djbkd has quit [Quit: My people need me...]
kapil__ has joined #ruby-lang
kl__ has quit [Ping timeout: 265 seconds]
Aova has joined #ruby-lang
gwendall has joined #ruby-lang
leonshalimov has joined #ruby-lang
RobertBirnie has joined #ruby-lang
vozcelik has joined #ruby-lang
gwendall has quit [Ping timeout: 276 seconds]
leonshalimov has quit [Ping timeout: 245 seconds]
Obfuscate has quit [Ping timeout: 240 seconds]
Obfuscate has joined #ruby-lang
francisfish has joined #ruby-lang
trajing|Mobile has joined #ruby-lang
Pugsley_ has quit [Quit: Lingo: www.lingoirc.com]
loincloth has joined #ruby-lang
sleepee has joined #ruby-lang
loincloth has quit [Read error: Connection reset by peer]
francisfish has quit [Ping timeout: 265 seconds]
trajing|Mobile has quit [Read error: Connection reset by peer]
trajing|Mobile has joined #ruby-lang
sleepee has quit [Remote host closed the connection]
trajing|Mobile has quit [Read error: Connection reset by peer]
klmlfl has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby-lang
klmlfl has quit [Ping timeout: 255 seconds]
dlackty__ has quit [Ping timeout: 272 seconds]
kapil__ has quit [Ping timeout: 272 seconds]
hotpancakes has quit [Ping timeout: 264 seconds]
mjc_ has quit [Ping timeout: 244 seconds]
mostlybadfly has quit [Ping timeout: 272 seconds]
wallerdev has joined #ruby-lang
martinium has quit [Remote host closed the connection]
shennyg has quit [Ping timeout: 276 seconds]
jdecuirm has joined #ruby-lang
martinium has joined #ruby-lang
martinium has joined #ruby-lang
dlackty__ has joined #ruby-lang
pskosinski has joined #ruby-lang
mjc_ has joined #ruby-lang
kapil__ has joined #ruby-lang
mostlybadfly has joined #ruby-lang
martinium has quit [Remote host closed the connection]
pskosinski has quit [Read error: Connection reset by peer]
ggherdov has joined #ruby-lang
dlackty__ has quit [Ping timeout: 265 seconds]
mjc_ has quit [Ping timeout: 245 seconds]
<jdecuirm> Hi all
<jdecuirm> i need a little help, i'm making a text mini game, those you should do actions an so to go to the next level, a narrated game but i'm getting an error
<jdecuirm> and i can't find the problem, i'm hoping you can help me, this is the code!
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mostlybadfly has quit [Ping timeout: 245 seconds]
kapil__ has quit [Ping timeout: 245 seconds]
ggherdov has quit [Ping timeout: 272 seconds]
hanachin has quit [Remote host closed the connection]
<womble> jdecuirm: Presumably, @scene_map.next_scene can return nil, and that's what is happening and causing the program to explode.
<womble> You could avoid the error by making line 17 read `current_scene.enter unless current_scene.nil?`, but depending on what #next_scene is *supposed* to return, you may have a bug in #next_scene, instead.
sleepee has joined #ruby-lang
moogumbo_ has joined #ruby-lang
gwendall has joined #ruby-lang
pskosinski has joined #ruby-lang
<jdecuirm> oh, thanks womble, i'll check this, don't know why i'm getting nil
sleepee has quit [Ping timeout: 245 seconds]
dlackty__ has joined #ruby-lang
shennyg has joined #ruby-lang
gwendall has quit [Ping timeout: 276 seconds]
mjc_ has joined #ruby-lang
gix has quit [Ping timeout: 264 seconds]
<jdecuirm> is it not supposed to return 'finished'? because i'm getting nil
mostlybadfly has joined #ruby-lang
<jdecuirm> Okey sorry i got the problem, lol thanks
gix has joined #ruby-lang
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
j4cknewt has quit [Remote host closed the connection]
ascarter has joined #ruby-lang
sangwoojoo has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Remote host closed the connection]
sleepee has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
Rayford has joined #ruby-lang
yfeldblum has joined #ruby-lang
kapil__ has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
martinbmadsen has joined #ruby-lang
kyb3r_ has joined #ruby-lang
ggherdov has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Remote host closed the connection]
martinbmadsen has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby-lang
martinbmadsen has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
ur5us has joined #ruby-lang
slawrence00 has joined #ruby-lang
ur5us has quit [Ping timeout: 244 seconds]
j4cknewt has joined #ruby-lang
djbkd has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
havenwood has joined #ruby-lang
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
martinium has joined #ruby-lang
sleepee has quit [Ping timeout: 264 seconds]
martinium has quit [Remote host closed the connection]
Miphix has joined #ruby-lang
hotpancakes has joined #ruby-lang
leonshalimov has joined #ruby-lang
kl has joined #ruby-lang
godzillaenlacasa has joined #ruby-lang
godzillaenlacasa has quit [Client Quit]
_fritchie has quit [Quit: Textual IRC Client: www.textualapp.com]
leonshalimov has quit [Ping timeout: 245 seconds]
kl has quit [Ping timeout: 264 seconds]
AKASkip has joined #ruby-lang
Obfuscate has quit [Ping timeout: 246 seconds]
AKASkip1 has joined #ruby-lang
AKASkip has quit [Ping timeout: 256 seconds]
francisfish has joined #ruby-lang
francisfish has quit [Ping timeout: 245 seconds]
Obfuscate has joined #ruby-lang
ascarter has joined #ruby-lang
rahul_j has joined #ruby-lang
wprice has quit [Ping timeout: 245 seconds]
TheMoonMaster has quit [Ping timeout: 246 seconds]
fclausen has quit [Ping timeout: 272 seconds]
ta has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheMoonMaster has joined #ruby-lang
wprice has joined #ruby-lang
rahul_j_ has joined #ruby-lang
ta has quit [Ping timeout: 276 seconds]
rahul_j has quit [Ping timeout: 245 seconds]
rahul_j_ is now known as rahul_j
simi has quit [Ping timeout: 264 seconds]
enebo has quit [Read error: Connection reset by peer]
ascarter has joined #ruby-lang
enebo has joined #ruby-lang
rahul_j has quit [Client Quit]
kenmazaika_ has quit [Ping timeout: 246 seconds]
ericwood has quit [Ping timeout: 255 seconds]
gwendall has joined #ruby-lang
ericwood has joined #ruby-lang
duderonomy has joined #ruby-lang
AKASkip1 has quit [Ping timeout: 276 seconds]
gwendall has quit [Ping timeout: 276 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
oleo__ has quit [Quit: Verlassend]
spuk has quit [Ping timeout: 272 seconds]
ta has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
skade has joined #ruby-lang
martinium has joined #ruby-lang
hotpancakes has joined #ruby-lang
ta has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby-lang
ur5us has quit [Ping timeout: 244 seconds]
loincloth has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
lsegal has joined #ruby-lang
mostlybadfly has quit [Quit: Connection closed for inactivity]
rahul_j has joined #ruby-lang
hotpancakes has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
hotpancakes has joined #ruby-lang
revath has joined #ruby-lang
loincloth has quit [Ping timeout: 256 seconds]
RobertBirnie has joined #ruby-lang
apeiros has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
hotpancakes has quit [Ping timeout: 252 seconds]
hotpancakes has joined #ruby-lang
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby-lang
symm- has joined #ruby-lang
hahuang61 has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
hahuang61 has quit [Client Quit]
hahuang61 has joined #ruby-lang
dellavg_ has joined #ruby-lang
leonshalimov has joined #ruby-lang
amclain has quit [Quit: Leaving]
ur5us has joined #ruby-lang
leonshalimov has quit [Ping timeout: 264 seconds]
RobertBirnie has joined #ruby-lang
Sadin has quit []
hotpancakes has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 245 seconds]
hotpancakes has joined #ruby-lang
hotpancakes has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby-lang
skade has joined #ruby-lang
gwendall has joined #ruby-lang
hotpancakes has quit [Ping timeout: 255 seconds]
apeiros has joined #ruby-lang
gwendall has quit [Ping timeout: 276 seconds]
Rayford has quit [Quit: Rayford]
ta has joined #ruby-lang
ascarter has joined #ruby-lang
klmlfl has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
loincloth has joined #ruby-lang
ta has quit [Ping timeout: 265 seconds]
klmlfl has quit [Ping timeout: 245 seconds]
deryl has joined #ruby-lang
deryl is now known as Guest8261
Guest8261 has quit [Client Quit]
loincloth has quit [Ping timeout: 240 seconds]
jdecuirm has quit [Ping timeout: 264 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ddd has joined #ruby-lang
nofxx has quit [Ping timeout: 255 seconds]
arBmind1 has quit [Quit: Leaving.]
pr0ton_ has joined #ruby-lang
AKASkip has joined #ruby-lang
fclausen has joined #ruby-lang
jdecuirm has joined #ruby-lang
djellemah has joined #ruby-lang
gwendall has joined #ruby-lang
fclausen has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby-lang
gwendall has quit [Ping timeout: 276 seconds]
Forgetful_Lion has joined #ruby-lang
ddd has quit [Quit: Bye]
djbkd has quit [Ping timeout: 246 seconds]
mattyohe has quit [Quit: Connection closed for inactivity]
lytol has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
lytol has quit [Read error: Connection reset by peer]
lytol has joined #ruby-lang
kwd has joined #ruby-lang
gwendall has joined #ruby-lang
solars has joined #ruby-lang
ta has joined #ruby-lang
ta has quit [Ping timeout: 245 seconds]
loincloth has joined #ruby-lang
Missphoenix has joined #ruby-lang
loincloth has quit [Ping timeout: 245 seconds]
ta has joined #ruby-lang
|jemc| has quit [Ping timeout: 246 seconds]
Miphix has quit [Ping timeout: 256 seconds]
hahuang61 has quit [Ping timeout: 272 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
symm- has quit [Read error: Connection reset by peer]
ta has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Quit: WeeChat 0.4.2]
futilegames has joined #ruby-lang
yusuf1 has quit [Quit: Leaving.]
yusuf1 has joined #ruby-lang
yusuf1 has quit [Max SendQ exceeded]
yusuf1 has joined #ruby-lang
djellemah has quit [Ping timeout: 252 seconds]
leonshalimov has joined #ruby-lang
nickpassarella has quit [Quit: nickpassarella]
vozcelik has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Phoenixmiss has joined #ruby-lang
leonshalimov has quit [Ping timeout: 255 seconds]
Missphoenix has quit [Ping timeout: 244 seconds]
djellemah has joined #ruby-lang
JohnBat26 has joined #ruby-lang
benten has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
gwendall has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
klmlfl has joined #ruby-lang
klmlfl has quit [Ping timeout: 240 seconds]
Integralist has joined #ruby-lang
oak1 has quit [Ping timeout: 240 seconds]
GBrawl has joined #ruby-lang
gwendall has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
kwd has quit [Quit: kwd]
<yorickpeterse> morning
benlovell has joined #ruby-lang
francisfish has joined #ruby-lang
simi has joined #ruby-lang
GBrawl has quit [Quit: (null)]
ottlikg has joined #ruby-lang
fjfish has joined #ruby-lang
francisfish has quit [Read error: Connection reset by peer]
<yorickpeterse> oh boy, I sure love debugging SystemStackErrors on a Wednesday morning
djellemah has quit [Ping timeout: 265 seconds]
<bnagy> yorickpeterse: aka "lrn 2 code" errors?
lytol has quit [Remote host closed the connection]
<yorickpeterse> aka "somewhere a bundle update fucked things up"
pr0ton_ has quit [Quit: pr0ton_]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<bnagy> ew bundler
<bnagy> ok you're excused :D
marr has joined #ruby-lang
stardiviner has quit [Ping timeout: 244 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
sangwoojoo has joined #ruby-lang
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
ishikawa has quit [Ping timeout: 250 seconds]
ishikawa has joined #ruby-lang
rbowlby has quit [Remote host closed the connection]
djellemah has joined #ruby-lang
ta has joined #ruby-lang
kl__ has joined #ruby-lang
stardiviner has joined #ruby-lang
ta has quit [Ping timeout: 276 seconds]
whitequark has left #ruby-lang [#ruby-lang]
mkaesz has joined #ruby-lang
fclausen has joined #ruby-lang
sangwoojoo has quit [Quit: Leaving.]
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
<yorickpeterse> well I found my problem
<yorickpeterse> apparently some model that extends another, which worked fine for months, now triggers a loop
rbowlby has joined #ruby-lang
kl__ has quit [Ping timeout: 256 seconds]
kl__ has joined #ruby-lang
<yorickpeterse> ah well, fixed it
<yorickpeterse> weirdest fix but w/e
kadwill has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
RobertBirnie has joined #ruby-lang
martinium has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
loincloth has joined #ruby-lang
hendranata_ has quit [Ping timeout: 255 seconds]
benten has quit [Quit: ..........]
fclausen has quit [Ping timeout: 272 seconds]
loincloth has quit [Ping timeout: 264 seconds]
kadwill has quit [Remote host closed the connection]
ledestin has joined #ruby-lang
kl__ has quit [Ping timeout: 256 seconds]
arBmind has joined #ruby-lang
djellemah has quit [Ping timeout: 245 seconds]
kl__ has joined #ruby-lang
ta has joined #ruby-lang
donove has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 252 seconds]
leonshalimov has joined #ruby-lang
Integralist has quit [Ping timeout: 252 seconds]
JohnBat26 has joined #ruby-lang
martinbmadsen has joined #ruby-lang
rikkipitt has joined #ruby-lang
leonshalimov has quit [Ping timeout: 246 seconds]
PrinceNorin has joined #ruby-lang
norin has joined #ruby-lang
ta has quit [Ping timeout: 272 seconds]
martinbmadsen has quit [Ping timeout: 245 seconds]
gwendall has joined #ruby-lang
<chris2> can i easily change the gem cache dir?
<chris2> when i have wildly varying GEM_PATH/HOME?
Missphoenix has joined #ruby-lang
Phoenixmiss has quit [Read error: Connection reset by peer]
PrinceNorin has quit [Quit: Leaving]
norin has quit [Quit: leaving]
beawesomeinstead has quit [Quit: Connection closed for inactivity]
rbowlby has quit [Remote host closed the connection]
Integralist has joined #ruby-lang
jefus_ has joined #ruby-lang
sangwoojoo has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has joined #ruby-lang
yfeldblum has joined #ruby-lang
jefus has quit [Ping timeout: 244 seconds]
ldnunes has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
R\w\C has joined #ruby-lang
<R\w\C> I LOOOOOVE RUBY
<R\w\C> i just learnt about it last night
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
R\w\C has quit [Changing host]
R\w\C has joined #ruby-lang
ta has quit [Ping timeout: 276 seconds]
<tbuehlmann> R\w\C, great! ignore yorickpeterse real quick so it lasts longer
<yorickpeterse> :<
<R\w\C> what
<yorickpeterse> they're just jealous of my booty
<R\w\C> are you a nuaghty boy yorickpeterse
<yorickpeterse> only after midnight
<R\w\C> where are you from?
<R\w\C> which continent
<yorickpeterse> Earth
zz_dlu has quit [Ping timeout: 264 seconds]
GaelanAintAround has quit [Ping timeout: 256 seconds]
<R\w\C> asking coz u got an afrikaans surname
<yorickpeterse> I'm Dutch, that might explain it
<R\w\C> kkk
<surrounder> no those are in the US
<R\w\C> lol
<R\w\C> i didnt mean that
<R\w\C> i meant like okayokayokay
<R\w\C> but the short version
<surrounder> :)
GaelanAintAround has joined #ruby-lang
Pugsley_ has joined #ruby-lang
<wnd> some of us can also do grocery shopping at kkk: http://media.fakeposters.com/results/2009/07/17/bl0ky44r6a.jpg
hahuang61 has joined #ruby-lang
<surrounder> haha
<bnagy> wow
hahuang61 has quit [Ping timeout: 240 seconds]
fjfish has quit [Read error: Connection reset by peer]
<R\w\C> hey guys you know you can put a .json at the end of the url to generate a json encoded output of the page
<R\w\C> can you post to that url to update/add new records
<R\w\C> out of the box
francisfish has joined #ruby-lang
djellemah has joined #ruby-lang
ta has joined #ruby-lang
<yorickpeterse> "[1910725/1982034] [ 96.40%] [40:14] [01:30] [ 791.32/s$
<yorickpeterse> hnngggg hurry up already
<yorickpeterse> almost there
postmodern has quit [Quit: Leaving]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
loincloth has joined #ruby-lang
<darix> kill -STOP :p
stamina has joined #ruby-lang
ta has quit [Ping timeout: 245 seconds]
<chris2> why does rubygems cache specs but not the .gem files at a central location oO
loincloth has quit [Ping timeout: 245 seconds]
GaelanAintAround has quit [Ping timeout: 245 seconds]
<ljarvis> R\w\C: depends on the framework
<tbuehlmann> R\w\C, are you mixing "ruby" with "ruby on rails"?
djellemah has quit [Ping timeout: 255 seconds]
<R\w\C> yes sorry, im using ruby on rails
<ljarvis> R\w\C: then no, you need to add it to your routes to ensure the route will handle post/put requests just like normal, the json url can then be used
<R\w\C> ok thanks ljarvis
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rikkipitt has quit []
yusuf1 has quit [Quit: Leaving.]
mostlybadfly has joined #ruby-lang
mkaesz has quit [Ping timeout: 245 seconds]
sangwoojoo has quit [Quit: Leaving.]
reprazent has joined #ruby-lang
pjaspers has joined #ruby-lang
djellemah has joined #ruby-lang
GBrawl has joined #ruby-lang
GBrawl has quit [Client Quit]
workmad3 has joined #ruby-lang
benlovell has quit [Ping timeout: 252 seconds]
ihme-TTilus has quit [Ping timeout: 246 seconds]
TTilus has joined #ruby-lang
tcopeland has quit [Quit: Leaving.]
sleepee has joined #ruby-lang
Jamo has joined #ruby-lang
yfeldblu_ has quit [Ping timeout: 245 seconds]
saltsa has quit [Ping timeout: 276 seconds]
saltsa has joined #ruby-lang
simi has quit [Ping timeout: 245 seconds]
mkaesz has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
tkuchiki has joined #ruby-lang
banister has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
Xzanron has joined #ruby-lang
ruby-lang446 has joined #ruby-lang
leonshalimov has joined #ruby-lang
mkaesz has quit [Remote host closed the connection]
<Xzanron> How can I use a "do end" block instead of a { } block, in something like string.each_line ? do i need to wrap something, or is there a special way to invoke the method?
mkaesz has joined #ruby-lang
loincloth has joined #ruby-lang
workmad3 is now known as wm3|away
tkuchiki has quit [Ping timeout: 255 seconds]
<tobiasvl> just replace { with do and } with end?
ruby-lang446 has quit [Ping timeout: 246 seconds]
<DefV> best advice _ever_
R\w\C has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Eising> wow
leonshalimov has quit [Ping timeout: 264 seconds]
pico-pete has joined #ruby-lang
loincloth has quit [Ping timeout: 272 seconds]
shazaum has joined #ruby-lang
<Eising> It's not often you see somebody answering their own question without knowing it
ta has joined #ruby-lang
ItSANgo has joined #ruby-lang
ItSANgo_ has joined #ruby-lang
shazaum has quit [Changing host]
shazaum has joined #ruby-lang
ItSANgo has quit [Client Quit]
ta has quit [Ping timeout: 276 seconds]
booly-yam-8846 has joined #ruby-lang
martinbmadsen has joined #ruby-lang
<Xzanron> shame it doesn't work. :( http://stackoverflow.com/a/5587403/270178
R\w\C has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
klmlfl has joined #ruby-lang
ta has joined #ruby-lang
chills42 has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 265 seconds]
simi has joined #ruby-lang
booly-yam-8846 has quit [Max SendQ exceeded]
intinig has joined #ruby-lang
klmlfl has quit [Ping timeout: 276 seconds]
booly-yam-8846 has joined #ruby-lang
VictorBjelkholm has joined #ruby-lang
rikkipitt has joined #ruby-lang
martinbmadsen has joined #ruby-lang
<darix> Xzanron: please show us the code that fails for you and with which message.
<DefV> I was typing just that
<darix> DefV: too fast for you!^^
<DefV> I was still confused by the irrelevant stack overflow link
kl__ has quit [Ping timeout: 244 seconds]
<DefV> ¯\_(ツ)_/¯
martinbmadsen has quit [Ping timeout: 252 seconds]
<Xzanron> rofl.. i did something really silly. It's not irrelevant if you take into account my sillyness :)
<Xzanron> instead of "output.each_line do |line| puts line end" I had "puts output.each_line do |line| puts line end"
* Xzanron goes away and hides
R\w\C has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby-lang
R\w\C has joined #ruby-lang
hahuang61 has joined #ruby-lang
shazaum_ has joined #ruby-lang
Bwild has quit [Ping timeout: 276 seconds]
ta has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 264 seconds]
zz_dlu has joined #ruby-lang
shazaum has quit [Ping timeout: 264 seconds]
hahuang61 has quit [Ping timeout: 272 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elia has joined #ruby-lang
zz_dlu has quit [Ping timeout: 256 seconds]
<chris2> http://sprunge.us/Rcbi anyone think this is useful?
benlovell has quit [Ping timeout: 244 seconds]
the_real_intinig has joined #ruby-lang
intinig has quit [Read error: Connection reset by peer]
ta has joined #ruby-lang
elia has quit [Quit: (IRC Client: textualapp.com)]
ta has quit [Ping timeout: 265 seconds]
[spoiler] has joined #ruby-lang
francisfish has quit [Read error: Connection reset by peer]
francisfish has joined #ruby-lang
aotg has quit [Quit: ZNC - http://znc.in]
aotg has joined #ruby-lang
ta has joined #ruby-lang
wm3|away is now known as workmad3
kl has joined #ruby-lang
simi has quit [Ping timeout: 244 seconds]
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
zz_dlu has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
jefus_ is now known as jefus
loincloth has joined #ruby-lang
loincloth has quit [Ping timeout: 245 seconds]
arBmind has joined #ruby-lang
ta has quit [Ping timeout: 276 seconds]
Integralist has quit [Ping timeout: 272 seconds]
francisfish has quit [Read error: Connection reset by peer]
francisfish has joined #ruby-lang
setanta has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
arBmind has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
Sirupsen has joined #ruby-lang
tcopeland has joined #ruby-lang
tkuchiki has joined #ruby-lang
benlovell has joined #ruby-lang
rbowlby has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
rbowlby has quit [Ping timeout: 264 seconds]
rcvalle has joined #ruby-lang
klmlfl has joined #ruby-lang
ta has joined #ruby-lang
godzillaenlacasa has joined #ruby-lang
klmlfl has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sirupsen has joined #ruby-lang
Sirupsen has quit [Client Quit]
workmad3 has quit [Ping timeout: 252 seconds]
Sadin has joined #ruby-lang
leonshalimov has joined #ruby-lang
martinium has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
Integralist has joined #ruby-lang
banister has joined #ruby-lang
nickpassarella has joined #ruby-lang
leonshalimov has quit [Ping timeout: 255 seconds]
arBmind has joined #ruby-lang
ta has quit [Ping timeout: 276 seconds]
sleepee has quit [Quit: Leaving]
R\w\C has quit [Changing host]
R\w\C has joined #ruby-lang
AKASkip has quit [Ping timeout: 252 seconds]
Sirupsen has joined #ruby-lang
loincloth has joined #ruby-lang
kadwill has joined #ruby-lang
the_real_intinig has quit [Remote host closed the connection]
loincloth has quit [Ping timeout: 245 seconds]
intinig has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
kadwill has quit []
GBrawl has joined #ruby-lang
chouhoulis has joined #ruby-lang
intinig has quit [Ping timeout: 240 seconds]
chouhoul_ has joined #ruby-lang
chouhoulis has quit [Read error: Connection reset by peer]
cornerma1 has joined #ruby-lang
ta has joined #ruby-lang
cornerman has quit [Ping timeout: 246 seconds]
cornerma1 is now known as cornerman
stamina has quit [Quit: WeeChat 1.1]
revath has quit [Ping timeout: 240 seconds]
arBmind has joined #ruby-lang
sarkyniin has joined #ruby-lang
<darix> chris2: why not just use one of those "bundle all dependencies into a single binary things that already exist?
ta has quit [Ping timeout: 276 seconds]
stamina has joined #ruby-lang
<chris2> darix: e.g.?
<chris2> darix: they all seem to package system ruby as well
malconis has joined #ruby-lang
<chris2> wrong link? :)
oleo has joined #ruby-lang
booly-yam-8846 has quit [Ping timeout: 276 seconds]
<darix> chris2: naw. i found it more important than your problem. ;)
leonshalimov has joined #ruby-lang
<tbuehlmann> it sure is
fedexo has joined #ruby-lang
<darix> we sure have too many politicians still stuck in the cold war mentality
ottlikg has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby-lang
iamninja has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
ta has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
AKASkip has joined #ruby-lang
pancake-breakfas has joined #ruby-lang
ta has quit [Ping timeout: 276 seconds]
simi has joined #ruby-lang
whippythellama has joined #ruby-lang
brooks has joined #ruby-lang
shinnya has joined #ruby-lang
klmlfl has joined #ruby-lang
booly-yam-8846 has joined #ruby-lang
arBmind has joined #ruby-lang
klmlfl has quit [Ping timeout: 264 seconds]
ta has joined #ruby-lang
rahul_j has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
scottj has joined #ruby-lang
hotpancakes has joined #ruby-lang
Lewix has joined #ruby-lang
GBrawl has quit [Quit: (null)]
ta has quit [Ping timeout: 276 seconds]
klmlfl has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
Lewix has quit []
shazaum_ has quit [Quit: This computer has gone to sleep]
arBmind has joined #ruby-lang
loincloth has joined #ruby-lang
ledestin has quit [Quit: ledestin]
klmlfl has quit [Remote host closed the connection]
pancake-breakfas has quit [Read error: Connection reset by peer]
pancake-breakfas has joined #ruby-lang
intinig has joined #ruby-lang
shazaum_ has joined #ruby-lang
ottlikg has joined #ruby-lang
intinig has quit [Ping timeout: 245 seconds]
ottlikg has quit [Ping timeout: 276 seconds]
mattyohe has joined #ruby-lang
RobertBirnie has joined #ruby-lang
vozcelik has joined #ruby-lang
shazaum__ has joined #ruby-lang
shazaum_ has quit [Ping timeout: 252 seconds]
joast has quit [Quit: Leaving.]
SilentNuke has joined #ruby-lang
Sadin has quit [Remote host closed the connection]
Sadin has joined #ruby-lang
ruby-lang782 has joined #ruby-lang
<ruby-lang782> I have heard that RoR is not scalable is it so
<darix> ruby-lang782: FUD
<ruby-lang782> I mean is there provision for concurrency et al
<darix> you can do multi process you can do threaded
<darix> and most of the time your own code will matter way more than the rails code
<yorickpeterse> but node.js is webscale
<ljarvis> it's no php
<ruby-lang782> so are there implementations of thread as in java in Ruby
<darix> ruby-lang782: you can even run rails on jruby which uses a jvm
<darix> ruby-lang782: you want to learn more and stop believing in FUD
Sadin has quit [Ping timeout: 256 seconds]
<ruby-lang782> This is the first time I am on an IRC..so pardon me..I dint get FUD?
revath has joined #ruby-lang
<ruby-lang782> oh great... gotcha
mskaesz has joined #ruby-lang
<ruby-lang782> any pointers on docs /articles/ on threading in RoR?
mkaesz has quit [Read error: No route to host]
<ljarvis> ruby-lang782: yeah, dont do it
<darix> multi process works just as fine
<darix> see puma or unicorn or mod_passenger
<darix> those are common deployment methods
<darix> ljarvis: discourse actually runs fine with puma on 2.1
<yorickpeterse> I think he meant manual threading in Rails
<ruby-lang782> how about nginx
<ruby-lang782> ?
mskaesz has quit [Remote host closed the connection]
<yorickpeterse> what about it?
<ljarvis> yes that's what he meant
<ljarvis> hence my "dont do it"
hotpancakes has quit []
Fooster has joined #ruby-lang
<ruby-lang782> My intent is to have a scalable web app
apeiros has quit [Remote host closed the connection]
<ljarvis> ruby-lang782: that's not dependant entirely on rails
<Fooster> does anyone know how to determine whether the install is 64 bit or 32 bit exe at runtime IN ruby under windows?
revath has quit [Read error: Connection reset by peer]
<darix> Fooster: why does it matter?
apeiros has joined #ruby-lang
<Fooster> its for setting up a gem
<Fooster> determining paths in extconf.rb
<darix> Fooster: why not just use RbConfig::CONFIG stuff?
<darix> which has all the paths for your current running ruby version
pancake-breakfas has quit [Quit: Textual IRC Client: www.textualapp.com]
<ljarvis> Fooster: `ruby -v` ? :P
<ljarvis> but yeah, I'd use RbConfig too
<Fooster> so there is a var in there which says 64 bit?
<darix> Fooster: *why*
<Fooster> as I said!
<darix> which path would you handle differently in that case?!
<ljarvis> >> ['x'].pack('p').size
<eval-in_> ljarvis => 4 (https://eval.in/245727)
<Fooster> the include path
<darix> which include path?
<Fooster> its for setting up a native build
<ljarvis> i think that'll be 8 on 64bit
<darix> ruby?
<Fooster> its for setting up the include path in extconf for native extensions
<Fooster> and for the library
<darix> Fooster: again
<ljarvis> >> Config::CONFIG["host_cpu"]
<eval-in_> ljarvis => uninitialized constant Config (NameError) ... (https://eval.in/245729)
<ljarvis> >> require 'rbconfig'; Config::CONFIG["host_cpu"]
<eval-in_> ljarvis => uninitialized constant Config (NameError) ... (https://eval.in/245730)
workmad3 has joined #ruby-lang
<Fooster> darix: again what?
<ljarvis> >> require 'rbconfig'; RbConfig::CONFIG["host_cpu"]
<eval-in_> ljarvis => "i686" (https://eval.in/245731)
kapil__ has quit [Quit: Connection closed for inactivity]
<darix> RbConfig::CONFIG['rubyhdrdir']
<ljarvis> >> require 'rbconfig'; RbConfig::CONFIG["arch"]
<eval-in_> ljarvis => "i686-linux" (https://eval.in/245732)
<Fooster> but that isn't what I want
<ljarvis> sigh
<Fooster> its for a third party library
<Fooster> for 64 bit builds its in blahblah/x64
<Fooster> and for 32
<Fooster> blahblah/x32
<darix> Fooster: and you sure that path is always the same?
apeiros has quit [Ping timeout: 245 seconds]
<Fooster> I know where it is installed yes
SilentNuke has quit []
<Fooster> because the installation location is placed in a registry key
<Fooster> by the third party package installer
<Fooster> I want to allow the user to override that with --with-<name>-include, -lib also
<darix> Fooster: >> require 'rbconfig'; RbConfig::CONFIG["arch"]
<darix> as ljarvis pointed out
<darix> and again
<darix> just dig in rbconfig
pancake-breakfas has joined #ruby-lang
[H]unt3r has joined #ruby-lang
<Fooster> is it common to distribute pre-build gems?
ascarter has joined #ruby-lang
<Fooster> I can'tr really find instructions on how to do so
<darix> Fooster: sure
<darix> you just push them to rubygems.org too
<Fooster> with a specific name or something?
<darix> yes
<darix> .mswin or so in the name
<Fooster> x64-mingw and x86-mingw probably?
<Fooster> how does this work against different versions of ruby?
|jemc| has joined #ruby-lang
diegoviola has joined #ruby-lang
ruby-lang782 has quit [Ping timeout: 246 seconds]
arBmind has quit [Quit: Leaving.]
maso has joined #ruby-lang
martinbmadsen has joined #ruby-lang
leonshalimov has quit [Ping timeout: 246 seconds]
Integral1st has joined #ruby-lang
Integral1st has quit [Client Quit]
martinbmadsen has quit [Ping timeout: 264 seconds]
rippa has joined #ruby-lang
solars has quit [Ping timeout: 246 seconds]
<Fooster> are gems used for deployment purposes as well as development?
svajone has joined #ruby-lang
Integralist has quit [Ping timeout: 244 seconds]
klmlfl has joined #ruby-lang
leonshalimov has joined #ruby-lang
ta has joined #ruby-lang
intinig has joined #ruby-lang
fedexo has quit [Ping timeout: 256 seconds]
<yorickpeterse> ljarvis: 1,3 minutes :<
<ljarvis> the "in the time you've been here, Warren would have earned..." is just down right mean
ta has quit [Ping timeout: 276 seconds]
<yorickpeterse> :D :D :D :D one more app to deploy
<yorickpeterse> and then this migration is
<yorickpeterse> * done
<yorickpeterse> Then the fun can really begin: actually using our new stuff
<yorickpeterse> and probably fixing everything that breaks in the process
j4cknewt has joined #ruby-lang
nofxx has quit [Ping timeout: 265 seconds]
intinig has quit [Remote host closed the connection]
intinig has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
aotg has left #ruby-lang ["Textual IRC Client: www.textualapp.com"]
dzejrou has joined #ruby-lang
ta has joined #ruby-lang
tenderlove has joined #ruby-lang
revath has joined #ruby-lang
yfeldblum has joined #ruby-lang
apeiros has joined #ruby-lang
intinig has quit [Ping timeout: 246 seconds]
ta has quit [Ping timeout: 276 seconds]
j4cknewt has joined #ruby-lang
joast has joined #ruby-lang
ta has joined #ruby-lang
intinig has joined #ruby-lang
yfeldblum has quit [Ping timeout: 252 seconds]
vozcelik has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leonshalimov has quit [Ping timeout: 245 seconds]
djellemah has quit [Ping timeout: 265 seconds]
chills42 has joined #ruby-lang
sivsushruth has joined #ruby-lang
ta has quit [Ping timeout: 240 seconds]
gwendall has quit [Remote host closed the connection]
Xzanron has quit [Read error: Connection reset by peer]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j4cknewt has quit [Remote host closed the connection]
vozcelik has joined #ruby-lang
dstodolny has joined #ruby-lang
__butch__ has joined #ruby-lang
<dstodolny> Hi! Can you help me? Is it elegant to use instance variables in class which are not initialized and setting them using other methods?
<sivsushruth> I am writing a gem
<sivsushruth> and i need to include an html file in it
scottj has left #ruby-lang [#ruby-lang]
<sivsushruth> what is the best way to do it
<sivsushruth> the current rake install ignores my html and css files
<sivsushruth> any suggestions ?
<sivsushruth> epitron: any suggestions ?
<ljarvis> dstodolny: yep
havenwood has joined #ruby-lang
<sivsushruth> ljarvis: any suggestions ?
<ljarvis> sivsushruth: what's the html file for?
<sivsushruth> I am trying to generate a html + css + js static web app
<sivsushruth> from witihn the app
<sivsushruth> html and all do not change
<sivsushruth> but i generate a json to be used by them js
booly-yam-8846 has quit [Ping timeout: 255 seconds]
djellemah has joined #ruby-lang
<ljarvis> it doesn't matter where you put it really, maybe a "views" or "layouts" folder
ItSANgo_ has quit [Quit: Leaving...]
<sivsushruth> the final package does not include that folder
<sivsushruth> do i need to specify something in the gemspec file ?
martinium has quit [Remote host closed the connection]
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kl has quit [Ping timeout: 240 seconds]
klmlfl has quit [Ping timeout: 245 seconds]
chills42 has quit [Remote host closed the connection]
ottlikg has joined #ruby-lang
tsou has joined #ruby-lang
cmisenas has joined #ruby-lang
klmlfl has joined #ruby-lang
centrx has joined #ruby-lang
chills42 has joined #ruby-lang
<ljarvis> yep, s.files needs to include it
Sadin has joined #ruby-lang
Sadin has quit [Remote host closed the connection]
Sadin has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 1.0.1]
arBmind has joined #ruby-lang
pancake-breakfas has left #ruby-lang ["Textual IRC Client: www.textualapp.com"]
wallerdev has joined #ruby-lang
Sadin has quit [Ping timeout: 265 seconds]
ItSANgo has joined #ruby-lang
futilegames has quit [Quit: futilegames]
booly-yam-8846 has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
rahul_j has quit [Quit: rahul_j]
amsi has joined #ruby-lang
rahul_j has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has joined #ruby-lang
benlovell has quit [Ping timeout: 256 seconds]
djellemah has quit [Quit: Leaving]
djellemah has joined #ruby-lang
francisfish has joined #ruby-lang
benlovell has joined #ruby-lang
maso has quit [Remote host closed the connection]
Missphoenix has quit [Quit: Leaving]
klmlfl has quit [Remote host closed the connection]
vozcelik has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<epitron> sivsushruth: easiest solution is to tell the .gemspec to use everything you've committed to git in the gem archive
michaeldeol has joined #ruby-lang
chills42 has joined #ruby-lang
<epitron> s.files = `git ls`.lines.map(&:strip)
[H]unt3r has quit [Remote host closed the connection]
<epitron> Always remember to commit before building the gem
<apeiros> I find a dependency on git for a gemspec a bad idea.
skade has quit [Quit: Computer has gone to sleep.]
<apeiros> Dir.glob should certainly do the trick too
<svajone> Hey guys, need help refactoring something.
malconis has joined #ruby-lang
RobertBirnie has joined #ruby-lang
<[spoiler]> ljarvis, lol that website makes me giggle
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[spoiler]> the warren-buffet one
brooks has quit [Read error: Connection reset by peer]
ta has joined #ruby-lang
symm- has joined #ruby-lang
ottlikg has quit [Ping timeout: 245 seconds]
leonshalimov has joined #ruby-lang
benlovell has quit [Ping timeout: 244 seconds]
frzng has quit [Quit: frzng]
frzng has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
<epitron> apeiros: why?
<apeiros> epitron: with dependencies, the question is usually not "why not?".
<epitron> Are you worried that someone who git cloned your gen from GitHub won't be able to build it?
ascarter has joined #ruby-lang
<epitron> *gem
<apeiros> you think git clone is the only way to get at the source?
[H]unt3r has joined #ruby-lang
BubonicPestilenc has joined #ruby-lang
<apeiros> and yes. it makes anything beyond the expected harder to do.
<epitron> You think any developer doesn't have git these days?
<apeiros> you think it's reasonable to have a dependency to get virtually zero advantage?
<epitron> Microsoft has a GitHub repository
abhi_rsd has joined #ruby-lang
<apeiros> I'm not willing to continue this discussion.
<epitron> The world has changed :)
<epitron> Git is pretty standard
<apeiros> you make two assumptions:
<apeiros> the source was obtained from git
<apeiros> the developer has git
rikkipitt has quit []
<apeiros> three, even. the gemspec is read/used in a way which allows shelling out.
<abhi_rsd> hello
<apeiros> but I guess it's a case of "works for me".
rahul_j_ has joined #ruby-lang
<apeiros> so as I said, not willing to continue.
rahul_j has quit [Ping timeout: 265 seconds]
rahul_j_ is now known as rahul_j
<darix> epitron: there are still plenty of other alternatives for version mgmt which are all alive and kicking. (hg, svn just to name a few)
<darix> hell people even still use cvs
<epitron> darix: I'd be very surprised if a developer had an alternative and not git
<epitron> apeiros: if you can show me this mythical developer who doesn't have git, I will concede :)
<darix> epitron: majority of the windows devs probably
<darix> anyway
rahul_j has quit [Client Quit]
<darix> more useful things to do
<epitron> :)
<apeiros> epitron: download your source as tarball from github and you're already lost. no matter whether you have git.
<apeiros> epitron: also, just ask a couple of devs. there are plenty of gitless devs. assuming everybody uses what you use is just a form of arrogance.
<apeiros> (in the ruby scene it'll probably be rare)
skade has joined #ruby-lang
<apeiros> (and why do I continue? I know it leads nowhere…)
cored has joined #ruby-lang
cored has joined #ruby-lang
<darix> apeiros: go enjoy the latest genius ideas from eu commission instead ;)
Rayford has joined #ruby-lang
<apeiros> what did they commit this time? :-S
benlovell has joined #ruby-lang
<apeiros> oh right.
<apeiros> I'm in active denial about those idiocies.
skade has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby-lang
R\w\C has quit [Quit: Textual IRC Client: www.textualapp.com]
leonshalimov has quit [Ping timeout: 272 seconds]
francisfish has quit [Remote host closed the connection]
cored has quit [Ping timeout: 245 seconds]
skade has joined #ruby-lang
nofxx has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has quit [Ping timeout: 264 seconds]
leonshalimov has joined #ruby-lang
ta has quit [Ping timeout: 276 seconds]
ta has joined #ruby-lang
<epitron> Sure, in the non ruby scene it's probably less totally ubiquitous
Sadin has joined #ruby-lang
[H]unt3r has quit [Remote host closed the connection]
[H]unt3r has joined #ruby-lang
stamina has quit [Quit: WeeChat 1.1]
benlovell has quit [Quit: leaving]
michaeldeol has joined #ruby-lang
GBrawl has joined #ruby-lang
VictorBjelkholm has quit [Quit: Leaving]
Sadin has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby-lang
<svajone> I have this formula, Math.acos(side_b**2 + side_c**2 - side_a**2) / (2.0 * side_b * side_c) and I use this array = [side_a, side_b, side_c]
Torrieri has joined #ruby-lang
<svajone> Ah, forget it. :d
<svajone> I can not even explain it. Haha.
<wallerdev> lol
<wallerdev> i know that feeling
GBrawl has quit [Quit: (null)]
jgpawletko has joined #ruby-lang
yfeldblum has joined #ruby-lang
klmlfl has joined #ruby-lang
robbyoconnor has joined #ruby-lang
ta has quit [Ping timeout: 276 seconds]
ta has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
lguardiola has quit [Quit: ZNC - http://znc.in]
ta has quit [Ping timeout: 265 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
<sivsushruth> I made a CLI gem to build an interactive Hierarchical Edge Bundling dependency graph from the gemfile . (Suggestions and criticisms welcome)
ta has joined #ruby-lang
kl__ has joined #ruby-lang
<sivsushruth> epitron: following your advice, generating a d3 graph
cmisenas has quit [Ping timeout: 256 seconds]
cmisenas has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
<Senjai> sivsushruth: haha cool
<sivsushruth> any suggestions you have ?
<Senjai> sivsushruth: running it now
<sivsushruth> Senjai: did you try it out ?
<sivsushruth> Senjai: thanks
<epitron> sivsushruth: oh, I guess you could do it that way... :)
<sivsushruth> Need to write tests though
<sivsushruth> should have written tests
<sivsushruth> :(
<epitron> I was thinking of making a web service that pulls data from rubygems
<sivsushruth> yeah
<Senjai> sivsushruth: http://i.imgur.com/XOwIGrX.png is my project that I'm currently working on
<sivsushruth> i went to build that
<Senjai> It'd be nice to zoom in and out
<Senjai> or make the text/rendering largert somehow
<sivsushruth> yeah
<sivsushruth> Senjai: please contribute if you have time
<sivsushruth> epitron: but too many gems, i wanted to build a zoomable one for all existing gems
<sivsushruth> Senjai: fuck, too many gems
<Senjai> sivsushruth: This is one of our smaller projects ;)
hahuang61 has joined #ruby-lang
skade has joined #ruby-lang
hahuang61 has quit [Client Quit]
hahuang65 has joined #ruby-lang
<sivsushruth> phew
<Senjai> starred
<Senjai> because I think its cute
<sivsushruth> Senjai: is the gem interesting enough for me to pursue it further ?
<Senjai> will take a closer look when I have more time available
<sivsushruth> like adding zoom and other features
<Senjai> Do you think its cool?
<sivsushruth> Senjai: thanks
<sivsushruth> Senjai: i personally like this
<Senjai> Then yes, its worth it
<Senjai> Dont care about what others think
<Senjai> :P
<sivsushruth> :)
<Senjai> Pretty pictures are always useful for clients, and its another tool you can have on your github
<sivsushruth> :)
arBmind has quit [Quit: Leaving.]
ta has quit [Ping timeout: 272 seconds]
arBmind has joined #ruby-lang
lytol has joined #ruby-lang
intinig has quit [Remote host closed the connection]
booly-yam-8846 has quit [Ping timeout: 276 seconds]
simi has quit [Ping timeout: 264 seconds]
postmodern has joined #ruby-lang
sivsushruth has quit [Read error: Connection reset by peer]
francisfish has joined #ruby-lang
sivsushruth has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ottlikg has joined #ruby-lang
<svajone> What
<svajone> What’s the best approach in testing what arguments your class or method accepts?
<epitron> sivsushruth: too many gems?!
<epitron> Nonsense! :)
brooks has joined #ruby-lang
momomomomo has joined #ruby-lang
<sivsushruth> epitron: no no, i tried to make the graph for all existing gems
<sivsushruth> epitron: and the graph was just too cluttered
<sivsushruth> epitron: need to think of some other solution
<epitron> Add more dimensions
<epitron> Edge bundling
<epitron> Clustering
<epitron> :)
<epitron> It's a lot of work, of course
<sivsushruth> epitron: yeah
robbyoconnor has quit [Ping timeout: 245 seconds]
lguardiola has joined #ruby-lang
revath has quit [Read error: Connection reset by peer]
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
ottlikg has quit [Ping timeout: 255 seconds]
francisfish has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
Obfuscate has quit [Ping timeout: 276 seconds]
aotg has joined #ruby-lang
nickpassarella has quit [Quit: nickpassarella]
kl__ has quit [Ping timeout: 252 seconds]
donove has quit [Quit: Leaving]
amsi has quit [Read error: Connection reset by peer]
lapide_viridi has joined #ruby-lang
amsi has joined #ruby-lang
futilegames has joined #ruby-lang
Obfuscate has joined #ruby-lang
martinbmadsen has joined #ruby-lang
simi has joined #ruby-lang
shazaum__ has quit [Quit: Leaving]
spuk has joined #ruby-lang
futilegames has quit [Ping timeout: 264 seconds]
mkaesz has joined #ruby-lang
ta has joined #ruby-lang
j0n3 has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 276 seconds]
nickpassarella has joined #ruby-lang
rbowlby has joined #ruby-lang
futilegames has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
GBrawl has joined #ruby-lang
<ljarvis> does anyone use a terminal window in vim with success?
ascarter has joined #ruby-lang
lytol has quit [Remote host closed the connection]
Bwild has joined #ruby-lang
arBmind has joined #ruby-lang
chills42_ has joined #ruby-lang
Rayford has quit [Quit: Rayford]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
chills42_ has quit [Remote host closed the connection]
Sadin has joined #ruby-lang
chills42_ has joined #ruby-lang
chills42 has quit [Read error: Connection reset by peer]
<centrx> ljarvis, with conque?
<ljarvis> centrx: wat
<centrx> ljarvis, Do you mean make one of your vim windows into a terminal?
ldnunes has quit [Quit: Leaving]
<ljarvis> i do
<centrx> ConqueTerm works pretty well
<ljarvis> cool thanks
<ljarvis> i bet ^l doesn't work with it
<centrx> it does get funky rarely, last release was 2011
<ljarvis> :(
dagda1 has joined #ruby-lang
Sadin has quit [Ping timeout: 245 seconds]
<centrx> rarely!
<ljarvis> i guess i could split a tmux window and use vim in another one
<ljarvis> but i like mvim
sivsushruth has quit [Quit: Konversation terminated!]
futilegames has quit [Ping timeout: 256 seconds]
ta has quit [Read error: No route to host]
ta has joined #ruby-lang
fclausen has joined #ruby-lang
enkristoffer has quit [Quit: ❤]
ta has quit [Ping timeout: 276 seconds]
momomomomo has quit [Quit: momomomomo]
ta has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lytol has joined #ruby-lang
aef has quit [Remote host closed the connection]
martinium has joined #ruby-lang
martinium has joined #ruby-lang
ta has quit [Ping timeout: 244 seconds]
dagda1_ has joined #ruby-lang
fjfish has joined #ruby-lang
aef has joined #ruby-lang
momomomomo has joined #ruby-lang
dagda1 has quit [Ping timeout: 245 seconds]
ta has joined #ruby-lang
skade has joined #ruby-lang
francisfish has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
futilegames has joined #ruby-lang
martinium has quit [Remote host closed the connection]
djellemah has quit [Ping timeout: 244 seconds]
ta has quit [Ping timeout: 276 seconds]
ta has joined #ruby-lang
martinium has joined #ruby-lang
martinium has quit [Changing host]
martinium has joined #ruby-lang
futilegames_ has joined #ruby-lang
[H]unt3r has quit []
futilegames has quit [Ping timeout: 246 seconds]
futilegames_ is now known as futilegames
futilegames has quit [Client Quit]
nickpassarella has quit [Quit: nickpassarella]
wallerdev has joined #ruby-lang
ta has quit [Ping timeout: 265 seconds]
ta has joined #ruby-lang
fusillicode has quit [Ping timeout: 265 seconds]
chills42_ has quit [Remote host closed the connection]
sarkyniin has quit [Remote host closed the connection]
[spoiler] has quit [Quit: I'm running to save my life!]
yfeldblum has joined #ruby-lang
djbkd has joined #ruby-lang
ta has quit [Ping timeout: 246 seconds]
ta has joined #ruby-lang
hramrach has quit [Ping timeout: 250 seconds]
Rayford has joined #ruby-lang
michaeldeol has joined #ruby-lang
ta has quit [Ping timeout: 276 seconds]
martinbmadsen has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nertzy has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
martinbmadsen has quit [Ping timeout: 264 seconds]
ta has joined #ruby-lang
momomomomo_ has joined #ruby-lang
lapide_viridi has quit [Quit: Leaving]
lsegal has joined #ruby-lang
martinbmadsen has joined #ruby-lang
momomomomo has quit [Ping timeout: 255 seconds]
momomomomo_ is now known as momomomomo
<|jemc|> just ran into a weird issue with ruby-ffi, just wanted to echo it here so someone can tell me if my conclusion doesn't sound right
ta has quit [Ping timeout: 276 seconds]
<|jemc|> I'm creating callbacks to pass into a C library using FFI::Function.new(return_type, [*arg_signature], blocking: true) { do_my_stuff }
<|jemc|> I pass that FFI::Function into the native method call and don't retain a reference
brooks has quit [Quit: brooks]
<|jemc|> (to the FFI::Function instance)
<|jemc|> after some time, I sometimes see SEGVs that I've tracked down in GDB to the moment the callback function pointer is invoked
<yxhuvud> sounds as if the callback has already been gc:d.
<yxhuvud> Do you have to keep a reference around to it?
<|jemc|> if I change my ruby code to store the FFI::Function in an instance variable, it works okay
<|jemc|> yxhuvud: yeah, that was my conclusion
<|jemc|> does that sound right that ruby-FFI won't keep the FFI::Function alive by itself? I suppose it wouldn't ever know when it was okay to release it for GC-ing
<bnagy> |jemc|: yes, that will happen
<|jemc|> so the "safest" thing ffi can do is avoid a memory leak by not keeping them around unecessarily
<|jemc|> leaving it up to the user to determine when it's okay to drop the reference
<yxhuvud> the safest thing to do is to keep a reference around and make certain you unreference it when you are done.
<bnagy> well if you make it an ivar it will get collected with your instance instead
<|jemc|> yxhuvud: right
<bnagy> which is usually fine if you design it right
<|jemc|> bnagy: yeah, that was my thought
tcopeland has quit [Ping timeout: 244 seconds]
<bnagy> as opposed to when it goes out of method scope
Pugsley_ has quit [Read error: Connection reset by peer]
<|jemc|> thanks guys, for confirming my inner discourse
martinium has quit [Read error: Connection reset by peer]
<yxhuvud> ime, it usually mean it may be a good idea to wrap the c functions in an extra layer.
martinium has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 246 seconds]
ta has joined #ruby-lang
<|jemc|> yxhuvud: yeah, I've already got two layers in place outside of the attach_functions
<|jemc|> one is an autogenerated object wrapper, the other is a handwritten layer
<|jemc|> trying to determine now if this case needs to go into my generic code generator or into the hand written layer
<yxhuvud> you will have a hard time to automate good API's.
<yxhuvud> as that usually requires knowledge of reference lifecycles etc
Lewix has quit [Remote host closed the connection]
<bnagy> |jemc|: fwiw FFI wrappers are the only place I've ever tried to use finalizers :`(
<yxhuvud> same
<|jemc|> yxhuvud: well, I'm not automating for arbitrary C libs, I'm doing it for C libs that are written with the code generator and come with an XML spec that indicates how references are handled and how types are coerced
<yxhuvud> bnagy: works somewhat well even if it is a bit inconvenient
<|jemc|> bnagy: yeah, I use finalizers in my generated wrapper when the destructor takes no args
<bnagy> yeah, it just terrifies me though :/ I try to force people to use enumerables instead of give the C-backed arrays
<|jemc|> otherwise it makes a finalizer that yells at you and tells you to destroy explicitly
<bnagy> but sometimes that would lead to the user code being unworkable
ta has quit [Ping timeout: 276 seconds]
<|jemc|> you also have to handle the cases of destroying the finalizer when you're transferring ownership of a pointer back to C
<yxhuvud> thankfully I never had to handle that particular case
<|jemc|> my generator is public - part of zeromq/zproject if anyone is interested in critiquing/improving ;)
ta has joined #ruby-lang
<|jemc|> of course you have to learn the somewhat ugly GSL syntax that the zeromq organization uses for their templating/generation, but you get used to it :P
nofxx has quit [Ping timeout: 245 seconds]
<|jemc|> the class specifications look like this example: https://github.com/zeromq/zproject/blob/master/api/myclass.xml
<|jemc|> zproject generates the C headers and build skeleton, and now, also Ruby and QML bindings
<|jemc|> so all you have to do is write the C implementation for each method :P
craigl_ has joined #ruby-lang
craigl_ has quit [Client Quit]
ta has quit [Ping timeout: 256 seconds]
mbr has quit [Quit: leaving]
AKASkip has quit [Ping timeout: 246 seconds]
Bwild has quit [Remote host closed the connection]
Bwild has joined #ruby-lang
dellavg_ has quit [Ping timeout: 264 seconds]
<bnagy> I thought the 0mq peeps ran off to do a new shiny thing?
Rayford has quit [Quit: Rayford]
GBrawl has quit [Quit: (null)]
<|jemc|> bnagy: you mean nanomsg? only a devs left for that I think
ta has joined #ruby-lang
fjfish has quit [Remote host closed the connection]
<bnagy> hm, that's not the name I remember
<|jemc|> still very active development going on in libzmq and friends projects
cored has quit [Quit: leaving]
martinium has quit [Remote host closed the connection]
martinbmadsen has joined #ruby-lang
<bnagy> cool
<bnagy> I liked zmq, although in the end the crazy patterns weren't worth it for the tiny bit of perf I got in my application
mkaesz has quit [Remote host closed the connection]
<bnagy> so I went back to amqp :/
mkaesz has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
<wprice> bnagy: -) good choice
<wprice> bnagy: well, I work on the AMQP team at Red Hat, so I’m biased
booly-yam-8846 has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 256 seconds]
cmisenas has quit [Ping timeout: 276 seconds]
jgpawletko has quit [Quit: jgpawletko]
<|jemc|> bnagy, have you seen hintjens' latest client/broker project build on czmq + zproto (protocol-oriented code generation)?
svajone_ has joined #ruby-lang
svajone has quit [Ping timeout: 240 seconds]
svajone_ is now known as svajone
<|jemc|> it's a young project, and minimal, but his intent is to make it an minimal alternative to AMQP
cmisenas has joined #ruby-lang
dagda1_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
<|jemc|> zeromq by itself isn't really that comparable to a complete system like AMQP - it's really more of a toolbox for building your own custom systems
<bnagy> oh, nice
francisfish has joined #ruby-lang
<bnagy> |jemc|: yeah, I know, I wrote a lot of 0mq, but in my case what I needed was a pub sub
<|jemc|> yeah, sure
<bnagy> I was using a queue for a work queue, then that for assorted messaging
ledestin has joined #ruby-lang
<bnagy> actually, it looked a lot like this, but the flow control was bad
abder has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
ta has quit [Ping timeout: 272 seconds]
<abder> I'm trying to run this code but getting an error. Details here: http://ipaste.org/mUj
<bnagy> |jemc|: thanks for this, looks like something I need to look into more closely
jefus_ has joined #ruby-lang
<|jemc|> bnagy: sure - should be pretty simple to download and play around with it
<|jemc|> if you have questions about the code generation or any of the other parts of the stack, you can ask me - it's pretty similar in structure to a big private project I work on so I track all of that pretty closely
dstodolny has quit [Quit: Ex-Chat]
<|jemc|> and if you end up needing ruby FFI bindings for it - I can add the api/*.xml files and have those generated for you in a matter of a few hours :P
<|jemc|> I've been meaning to add them for that project, but hadn't needed to for myself yet, so it's been deferred
GBrawl has joined #ruby-lang
jefus has quit [Ping timeout: 252 seconds]
<bnagy> how would one normally work with it?
<bnagy> looks like a simple-ish wire protocol?
booly-yam-8846 has quit [Ping timeout: 256 seconds]
<bnagy> wouldn't a native client be easier?
ta has joined #ruby-lang
<|jemc|> bnagy: I wouldn't depend on the protocol staying the same at this young stage - if you're interested in a pure ruby client, you'd have to add Ruby support to zproto (the code generator for the client and server protocol engines)
<|jemc|> right now it supports C and clojure and one other language I think
iamninja has quit [Remote host closed the connection]
dagda1 has joined #ruby-lang
arBmind has quit [Ping timeout: 264 seconds]
<|jemc|> for a while I was maintaining three different implementations of a private protocol in three different languages and it ended up being pretty nightmarish to make changes
<|jemc|> now I'm happily just writing in C and wrapping in the other two
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arBmind has joined #ruby-lang
ta has quit [Ping timeout: 276 seconds]
<bnagy> oic
<bnagy> kind of amusing to use FFI to get api stability :>
<|jemc|> ha
<|jemc|> the czmq object-oriented style of C turns out to be pretty clean to write code in
ta has joined #ruby-lang
<|jemc|> I wasn't expecting it to be as pleasant as it is
<|jemc|> especially when I don't have to deal with changing headers and makefiles by hand
<|jemc|> (or writing ruby FFI bindings by hand, for that matter)
<bnagy> is clojure the java-ish one?
<bnagy> I use jruby for most prod ruby
<bnagy> although to be honest I'm moving a lot of scaffolding to go :(
<|jemc|> yeah, IIRC clojure is a lisp on the JVM
<|jemc|> easy to find out though :P
<|jemc|> I just looked - go happens to be the other language people having been working on zproto in
arBmind has quit [Ping timeout: 244 seconds]
<|jemc|> no idea how complete it is for go, though
ta has quit [Ping timeout: 244 seconds]
dzejrou has quit [Ping timeout: 272 seconds]
GBrawl has quit [Quit: (null)]
<bnagy> nice!
abder has quit [Quit: Page closed]
j4cknewt has joined #ruby-lang
leonshalimov has quit [Ping timeout: 240 seconds]
booly-yam-8846 has joined #ruby-lang
svajone has left #ruby-lang [#ruby-lang]
ta has joined #ruby-lang
pr0ton_ has joined #ruby-lang
nofxx has joined #ruby-lang
leonshalimov has joined #ruby-lang
enkristoffer has joined #ruby-lang
pr0ton_ has quit [Client Quit]
enebo has quit [Quit: enebo]
ozialien has quit [Remote host closed the connection]
pr0ton_ has joined #ruby-lang
pr0ton_ has joined #ruby-lang
<|jemc|> well it looks like all I can do in the generated FFI-using objects is add a warning to hold onto your FFI::Functions
iamninja has joined #ruby-lang
pr0ton_ has quit [Client Quit]
<|jemc|> because even though the code generator can know when "ownership" of them is transferred, it can't know when they might be discarded internally
<|jemc|> so, warning it is, then
<|jemc|> (in the comments for the callback-using method)
Musashi007 has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
jxie has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
booly-yam-8846 has quit [Ping timeout: 240 seconds]
<nofxx> can I use yard's @see in a readme? how?
<nofxx> hm.. won't work on github an such and looks badly...
slumos is now known as slumos[away]
slumos[away] is now known as slumos
booly-yam-8846 has joined #ruby-lang
cmisenas has quit [Quit: cmisenas]
khoapham has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
tcopeland has joined #ruby-lang
whippythellama has quit [Quit: whippythellama]
ryez has joined #ruby-lang
<cout> hmm, my custom #inspect method is failing due to infinite recursion. is there an idiomatic solution?
klmlfl has quit [Remote host closed the connection]
abhi_rsd__ has joined #ruby-lang
abhi_rsd has quit [Ping timeout: 276 seconds]
iamninja has quit [Ping timeout: 250 seconds]
<wallerdev> howd you implement it
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby-lang
jxie has joined #ruby-lang
<wallerdev> >> class C; def inspect; 5; end end; C.new.inspect
<eval-in_> wallerdev => 5 (https://eval.in/246404)
<cout> naievely
<bnagy> infinite recursion is always a bug
<wallerdev> did you call self.inspect
<wallerdev> lol
<bnagy> but MRI stack is pretty small, which can bite you for deep recursion
bb010g has joined #ruby-lang
<bnagy> I think they increaed it after 2 somewhere
* bnagy rambles
<waxjar> you have to detect it somehow cout, i remember celluloid had an issue with it too, maybe you can look up how they fixed it
<cout> bnagy: it's a circular reference
<waxjar> >> x = []; x << x; x.inspect
ishikawa has quit [Remote host closed the connection]
<eval-in_> waxjar => "[[...]]" (https://eval.in/246405)
<cout> was thinking of using a thread-local variable to remember which objects I've already seen
<waxjar> like that
ishikawa has joined #ruby-lang
<wallerdev> huh lol
ur5us has joined #ruby-lang
booly-yam-8846 has quit [Ping timeout: 244 seconds]
<cout> waxjar: think more like: class Foo; def initialize(x); @x = x; end; def inspect; "Foo: x=#(@x.inspect}"; end; end
<wallerdev> oh you are inspecting children and one of the children is a parent of what you're inspecting?
skade has quit [Quit: Computer has gone to sleep.]
<cout> wallerdev: correct, I don't have a DAG
<waxjar> cout: i get what you mean, was just clarifying :)
<cout> because it's not acyclic
<wallerdev> well it depends what output you want to see in the inspect then i guess
<wallerdev> because you defined it in a way that itll run forever, you gotta think about what you would want to see instead
<wallerdev> and use that to determine what to do
<cout> wallerdev: I want it to not blow up the stack
ta has quit [Ping timeout: 276 seconds]
francisfish has quit [Remote host closed the connection]
<cout> wallerdev: the builtin implementatin of Object#inspect prints ... if it detects a cycle
<wallerdev> ah
pwelch has joined #ruby-lang
<wallerdev> i didnt know there was cycle detection in Object#inspect
shashin has joined #ruby-lang
ta has joined #ruby-lang
<cout> there is; it uses rb_exec_recursive()
<cout> but I can't call that from a script
<|jemc|> cout: you could try adding an optional argument to inspect that is an array of the objects already inspected
<|jemc|> or already on the stack, I should say
<|jemc|> don't know if that's the cleanest solution, though - using a thread local as you mentioned could also work
<cout> |jemc|: I thought of that, but Object#inspect wouldn't pass that argument back to me
<|jemc|> cout: you're right
* |jemc| looks at how rubinius solves it in its AST printer
iamninja has joined #ruby-lang
<bnagy> you can convert any naive recursion to an iteration using an explicit stack
<bnagy> like just use a Queue or just an Array
<bnagy> looks ugly, though
<|jemc|> cout: rubinius AST printer does it using an external object, and now that I think about it, pp works the same way I think
<|jemc|> so when you call foo.inspect, it ends up calling Bar.inspect(foo)
<|jemc|> and Bar can hold the state to manage the recursion
mkaesz has quit [Remote host closed the connection]
<cout> |jemc|: but if it's not in a thread-local variable, it's not thread-safe
<|jemc|> Bar.new.inspect(foo) then
charliesome has joined #ruby-lang
<cout> |jemc|: then it loses its ability to detect the recursion
<|jemc|> cout: look at how pp is implemented - that's probably your best shot for idiomatic
symm- has quit [Ping timeout: 240 seconds]
<waxjar> seems like celluloid uses thread-local variables so, wrapped in a class method
djbkd has quit [Remote host closed the connection]
<cout> |jemc|: I will, thanks
<|jemc|> cout: I just dug a bit deeper into it - it also uses a thread local inside
<waxjar> s/so//
<|jemc|> see PP#guard_inspect_key
womble has quit [Excess Flood]
womble has joined #ruby-lang
djbkd has joined #ruby-lang
oleo has quit [Read error: Connection reset by peer]
oleo has joined #ruby-lang