ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
toretore has quit [Quit: Leaving]
fayimora has quit [Quit: Be back in a gifii]
brianpWins has quit [Quit: brianpWins]
lun_ has quit []
lun_ has joined #ruby-lang
lun_ has quit [Client Quit]
lun_ has joined #ruby-lang
diegoviola has quit [Quit: leaving]
mikeric has joined #ruby-lang
hakunin has joined #ruby-lang
sailias has joined #ruby-lang
mikeric has quit [Client Quit]
robotmay has joined #ruby-lang
jperry2 has joined #ruby-lang
scampbell has quit [Quit: Ex-Chat]
mikeric has joined #ruby-lang
volty has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
chessguy has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
zrail has joined #ruby-lang
s0ra_h is now known as sora_h
<jtoy> are class variables safe across threads?
<jtoy> unique across threads?
sailias has quit [Quit: Leaving.]
<lianj> uniq yes
slyphon has quit [Quit: WeeChat 0.3.7]
savage- has quit [Remote host closed the connection]
null- has joined #ruby-lang
banisterfiend has quit [Ping timeout: 246 seconds]
QaDeS_ has joined #ruby-lang
QaDeS has quit [Ping timeout: 246 seconds]
banisterfiend has joined #ruby-lang
mistym has quit [Remote host closed the connection]
pbjorklund has quit [Ping timeout: 240 seconds]
pbjorklund has joined #ruby-lang
lele|w has quit [Ping timeout: 272 seconds]
rhalff has quit [Ping timeout: 265 seconds]
outsmartin1 has quit [Quit: Leaving.]
yugui_zzz is now known as yugui
gix has quit [Ping timeout: 244 seconds]
<jtoy> lianj: great
wallerdev has joined #ruby-lang
yugui is now known as yugui_zzz
gix has joined #ruby-lang
HassanS has joined #ruby-lang
htroyack has joined #ruby-lang
lele|w has joined #ruby-lang
JustinCampbell has quit [Remote host closed the connection]
RORgasm has joined #ruby-lang
postmodern has joined #ruby-lang
towski has quit [Remote host closed the connection]
RORgasm has quit [Ping timeout: 246 seconds]
drollwit has joined #ruby-lang
jperry2 has quit [Quit: jperry2]
drollwit has quit [Read error: Operation timed out]
sailias has joined #ruby-lang
<drbrain> ?? no, class variables aren't unique or safe across threads
<jtoy> drbrain: per out talk yesterday, i tested , they do seem to be unique, but i did change it to use your style
<jtoy> the code does become more messy though
<jtoy> hence my confusion on if its unique or not
<drbrain> if you have two threads accessing the same class variable you will have trouble
<volty> so, if they aren't unique and aren't safe, how they are? :)
<volty> undefined?
<jtoy> drbrain: my test was to have each thread use a class variable to make a connection to twitter, there were as many open connections to twitter as there were threads/class variables, not sure if i should do a more thorough test, but if they were not unique, then i expect only 1 persistent connection
<jtoy> drbrain: i tested open connections with lsof
<drbrain> jtoy: by class variable you mean @@connection, right?
<jtoy> drbrain: yes
<drbrain> jtoy: you should probably use an instance variable if each thread is going to have its own instance
<drbrain> class TwitterConnectionThing; def initialize() @connection = Excon.whatever; end; end
<drbrain> then, Thread.new do t = TwitterConnectionThing.new; t.whatever; end
<jtoy> drbrain: yeah, that is much easier, i implemented it a crappier way
jperry2 has joined #ruby-lang
<drbrain> this way each twitter connection thing is separate and you don't have to worry about locking
<jtoy> drbrain: I did : Thread.new do connection = Excon.new ; TwitterApi.get url, connection; end
<drbrain> that would be great
<jtoy> drbrain: my way is bad though, because it can't handle connections being lost cleanly, yours can though
peterc has joined #ruby-lang
<drbrain> jtoy: I find it's easier to test if you can make it as simple as Thread.new do Thing.new.run end
<rfx> Is there a standard way for gems for providing a changelog which can be queried by the user (similar to e.g. Debians changelog)? Can't find anyting on rubygems.org or in the docs. Checking a few gems shows differently named files with different changelog files ...
<jtoy> drbrain: yeah, i didnt need state before, typically if i don't need state i try to just use a class method
<drbrain> rfx: not yet, but the next release will have metadata
<rfx> drbrain: thx
jperry2 has quit [Quit: jperry2]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
Natch has quit [Ping timeout: 248 seconds]
jtoy has quit [Quit: jtoy]
volty has quit [Remote host closed the connection]
Aurica has joined #ruby-lang
seanstickle has quit [Quit: Nihil sub sole novum]
Silowyi has quit [Ping timeout: 244 seconds]
Aurica has quit [Read error: Connection reset by peer]
Silowyi has joined #ruby-lang
HassanS has quit [Quit: Lost terminal]
ryanf has quit [Quit: leaving]
wmoxam has joined #ruby-lang
WillMarshall has joined #ruby-lang
Aurica has joined #ruby-lang
qpingu has left #ruby-lang [#ruby-lang]
Silowyi has quit [Ping timeout: 246 seconds]
null- has left #ruby-lang [#ruby-lang]
Aurica has quit [Ping timeout: 246 seconds]
robotmay has joined #ruby-lang
byronb has joined #ruby-lang
pajamapajama has joined #ruby-lang
pajamapajama has quit [Remote host closed the connection]
GeekOnCoffee_ has left #ruby-lang [#ruby-lang]
robotmay has quit [Ping timeout: 246 seconds]
headius has quit [Quit: headius]
agile has quit [Ping timeout: 245 seconds]
QaDeS_ has quit [Quit: Ex-Chat]
Sambalero has joined #ruby-lang
tomb has quit [Quit: Computer has gone to sleep.]
drollwit has joined #ruby-lang
gregf has joined #ruby-lang
wmoxam has quit [Ping timeout: 265 seconds]
pajama has joined #ruby-lang
jxie_ has joined #ruby-lang
jxie has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Remote host closed the connection]
jfelchner has quit [Ping timeout: 246 seconds]
bfreeman has quit [Quit: bfreeman]
RORgasm has joined #ruby-lang
sailias has quit [Ping timeout: 246 seconds]
RORgasm has quit [Ping timeout: 246 seconds]
televisor has joined #ruby-lang
mikeric has quit [Quit: mikeric]
televisor has quit [Client Quit]
televisor has joined #ruby-lang
Sambaler_ has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
televisor has quit [Quit: televisor]
Sambaler_ has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
towski has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
igotnolegs has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
dhruvasagar has joined #ruby-lang
Sambaler_ has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
Sambaler_ has quit [Read error: Connection reset by peer]
Sambaler_ has joined #ruby-lang
Sambaler_ has quit [Read error: Connection reset by peer]
Sambalero has quit [Read error: Connection reset by peer]
jtoy has joined #ruby-lang
Sambalero has joined #ruby-lang
Sambaler_ has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambaler_ has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
Sambaler_ has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
bfreeman has joined #ruby-lang
sora_h is now known as s0ra_h
savage- has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
perryh_away is now known as perryh
WillMarshall has quit [Quit: Computer has gone to sleep.]
perryh is now known as perry
WillMarshall has joined #ruby-lang
s0ra_h is now known as sora_h
<postmodern> how do you stream a file from a CDN to disk with Mechanize
<postmodern> where the URI has no file extension
<postmodern> is mechanize mime-type aware?
igotnolegs has quit [Quit: Computer has gone to sleep.]
Sambaler_ has quit [Remote host closed the connection]
Sambalero has joined #ruby-lang
Axsuul has quit [Ping timeout: 246 seconds]
savage- has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
htroyack has quit []
cantonic_ has joined #ruby-lang
andrewhl has joined #ruby-lang
clam has joined #ruby-lang
cantonic has quit [Ping timeout: 248 seconds]
cantonic_ is now known as cantonic
Sambalero has quit [Remote host closed the connection]
sora_h is now known as s0ra_h
WillMarshall has quit [Quit: Computer has gone to sleep.]
peterc has quit [Remote host closed the connection]
drollwit has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
tesseract has joined #ruby-lang
towski has quit [Ping timeout: 250 seconds]
wallerdev has quit [Quit: wallerdev]
Axsuul has joined #ruby-lang
mistym has quit [Remote host closed the connection]
tesseract has quit [Quit: tesseract]
Silowyi has joined #ruby-lang
Silowyi has quit [Ping timeout: 252 seconds]
dc5ala has joined #ruby-lang
s0ra_h is now known as sora_h
pajama has quit [Remote host closed the connection]
singpolyma has quit [Ping timeout: 272 seconds]
ryanf has joined #ruby-lang
hakunin has quit [Read error: Connection reset by peer]
j342 has joined #ruby-lang
toretore has joined #ruby-lang
hakunin has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
mikeric has joined #ruby-lang
singpolyma has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
perry is now known as perryh_away
banisterfiend has joined #ruby-lang
banisterfiend` has joined #ruby-lang
banisterfiend` has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 265 seconds]
banisterfiend has joined #ruby-lang
mikeric has quit [Quit: mikeric]
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
singpolyma has quit [Ping timeout: 244 seconds]
banisterfiend has quit [Ping timeout: 240 seconds]
Fretta has quit [Quit: Fretta]
banisterfiend has joined #ruby-lang
jtoy has quit [Quit: jtoy]
kitallis has joined #ruby-lang
singpolyma has joined #ruby-lang
peterc has joined #ruby-lang
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
woollyams has joined #ruby-lang
toretore has quit [Quit: Leaving]
peterc has quit [Remote host closed the connection]
msaffitz has quit [Quit: Computer has gone to sleep.]
RORgasm has joined #ruby-lang
msaffitz has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
RORgasm has quit [Ping timeout: 246 seconds]
jfelchner has joined #ruby-lang
ryanf has quit [Quit: leaving]
akira989 has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
robotmay has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby-lang
rippa has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
GeekOnCo- has quit [Read error: Connection reset by peer]
burgestrand has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
grj has joined #ruby-lang
outsmartin has joined #ruby-lang
mssola has joined #ruby-lang
yxhuvud has joined #ruby-lang
grj has quit [Read error: Connection reset by peer]
krz has quit [Quit: krz]
grj has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
gentz has joined #ruby-lang
chimkan has joined #ruby-lang
chimkan has quit [Client Quit]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
tooky has joined #ruby-lang
solars has joined #ruby-lang
tooky has quit [Remote host closed the connection]
tooky has joined #ruby-lang
thone_ has quit [Ping timeout: 252 seconds]
thone has joined #ruby-lang
fangwen has joined #ruby-lang
fangwen has quit [Client Quit]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
jfelchner has quit [Ping timeout: 252 seconds]
Hakon|mbp has joined #ruby-lang
Jade has quit [Quit: Jade]
j342 has quit [Ping timeout: 246 seconds]
yugui_zzz is now known as yugui
cha1tanya has joined #ruby-lang
workmad3 has quit [Ping timeout: 248 seconds]
robotmay has quit [Remote host closed the connection]
zzw has joined #ruby-lang
RORgasm has joined #ruby-lang
apeiros_ has joined #ruby-lang
sora_h is now known as s0ra_h
RORgasm has quit [Ping timeout: 246 seconds]
grj has quit [Quit: Leaving]
j342 has joined #ruby-lang
burgestrand has quit [Ping timeout: 265 seconds]
s0ra_h is now known as sora_h
burgestrand has joined #ruby-lang
zzw has quit [Quit: Leaving]
x0F__ has joined #ruby-lang
x0F__ is now known as x0F
dfr|mac has joined #ruby-lang
kain has joined #ruby-lang
jarib has quit [Excess Flood]
x0F_ has quit [Ping timeout: 248 seconds]
jarib has joined #ruby-lang
workmad3 has joined #ruby-lang
seoaqua has quit [Quit: Leaving]
burgestrand has quit [Quit: Leaving.]
mikeric has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
cha1tanya has left #ruby-lang ["आलोच.."]
ttilley is now known as ttilley_off
Hakon|mbp has quit [Quit: Leaving...]
rhalff has joined #ruby-lang
tooky has quit [Remote host closed the connection]
yugui is now known as yugui_zzz
workmad3 has joined #ruby-lang
sora_h is now known as s0ra_h
dfr|mac has quit [Remote host closed the connection]
s0ra_h is now known as sora_h
rhalff has quit [Ping timeout: 255 seconds]
woollyams has joined #ruby-lang
dfr|mac has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
dfr|mac has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
neocoin has joined #ruby-lang
tomb has joined #ruby-lang
sora_h is now known as s0ra_h
<whitequark> hm, could someone help me to phrase a sentence?
<whitequark> ... if a function has control flow <verb> <preposition> a function-local static invariant ...
RORgasm has joined #ruby-lang
<whitequark> I'm thinking of "bound to" or "tied to", but somehow that doesn't feel exactly right
RORgasm has quit [Ping timeout: 246 seconds]
s0ra_h is now known as sora_h
lun_ has quit [Remote host closed the connection]
jxie_ has quit [Quit: leaving]
wmoxam has joined #ruby-lang
rhalff has joined #ruby-lang
robotmay has joined #ruby-lang
JustinCampbell has joined #ruby-lang
igaiga has joined #ruby-lang
petercooper has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
tbuehlmann has joined #ruby-lang
seanstickle has joined #ruby-lang
weeb1e is now known as Struct
Struct is now known as weeb1e
ruurd has joined #ruby-lang
stardiviner has joined #ruby-lang
brunocoelho has joined #ruby-lang
stardiviner has quit [Client Quit]
tallship has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
amalrik_maia has joined #ruby-lang
tekin has joined #ruby-lang
andrewhl has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
Axsuul has quit [Ping timeout: 248 seconds]
televisor has joined #ruby-lang
wmoxam has quit [Ping timeout: 246 seconds]
Natch has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
tonni_ has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
trsk has joined #ruby-lang
trsk has left #ruby-lang [#ruby-lang]
tallship has joined #ruby-lang
televisor has quit [Quit: televisor]
ruurd has joined #ruby-lang
Natch_j has joined #ruby-lang
kvirani has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
Natch has quit [Ping timeout: 255 seconds]
joast has quit [Quit: Leaving.]
Natch_j has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby-lang
RORgasm has joined #ruby-lang
joast has joined #ruby-lang
dhruvasagar has joined #ruby-lang
igaiga has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
televisor has joined #ruby-lang
RORgasm has quit [Ping timeout: 246 seconds]
chessguy has quit [Remote host closed the connection]
saLOUt has joined #ruby-lang
dhruvasagar has joined #ruby-lang
workmad3 has quit [Ping timeout: 244 seconds]
dfr|mac has quit [Remote host closed the connection]
Jake232 has joined #ruby-lang
robin850 has joined #ruby-lang
petercooper has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 250 seconds]
soahccc has quit [Remote host closed the connection]
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
jperry2 has joined #ruby-lang
jperry2 has quit [Client Quit]
Mchl has joined #ruby-lang
Sambalero has joined #ruby-lang
lun_ has joined #ruby-lang
workmad3 has joined #ruby-lang
awwaiid has quit [Read error: Connection reset by peer]
JustinCampbell has quit [Remote host closed the connection]
sandbags has joined #ruby-lang
apeiros_ has joined #ruby-lang
<rue> whitequark: Dependent on?
awwaiid has joined #ruby-lang
Jake232 has quit [Quit: Computer has gone to sleep.]
televisor has quit [Quit: televisor]
Asher has quit [Ping timeout: 246 seconds]
workmad3 has quit [Read error: Operation timed out]
Natch has joined #ruby-lang
jarib has quit [Excess Flood]
dfr|mac has joined #ruby-lang
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
jarib has joined #ruby-lang
Mchl has joined #ruby-lang
Asher has joined #ruby-lang
mistym has joined #ruby-lang
dhruvasagar has joined #ruby-lang
fflush has joined #ruby-lang
fflush has left #ruby-lang [#ruby-lang]
Asher has quit [Ping timeout: 248 seconds]
heftig_ has joined #ruby-lang
heftig has quit [Disconnected by services]
heftig_ is now known as heftig
pabloh has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
Natch_b has joined #ruby-lang
Natch has quit [Read error: Connection reset by peer]
Natch_b is now known as Natch
outoftime has joined #ruby-lang
jperry2 has joined #ruby-lang
<whitequark> rue: thanks
<whitequark> I think that's correct
tonni has joined #ruby-lang
tonni_ has quit [Read error: Connection reset by peer]
icooba has joined #ruby-lang
skynet1024 has joined #ruby-lang
RORgasm has joined #ruby-lang
tonni_ has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
tekin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
RORgasm has quit [Ping timeout: 246 seconds]
tonni has joined #ruby-lang
grj has joined #ruby-lang
tonni_ has quit [Ping timeout: 246 seconds]
JohnBat26 has joined #ruby-lang
enebo has joined #ruby-lang
j3424 has joined #ruby-lang
j342 has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby-lang
outsmartin1 has joined #ruby-lang
outsmartin has quit [Ping timeout: 246 seconds]
dfr|mac has quit [Remote host closed the connection]
outoftime has quit [Read error: Operation timed out]
lsegal has joined #ruby-lang
grj has quit [Read error: Connection timed out]
grj has joined #ruby-lang
mollerhoj3_ has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
workmad3 has joined #ruby-lang
dfr|mac has joined #ruby-lang
ruurd has joined #ruby-lang
mollerhoj3_ has left #ruby-lang [#ruby-lang]
dfr|mac has quit [Remote host closed the connection]
tonni_ has joined #ruby-lang
Natch has left #ruby-lang [#ruby-lang]
skynet1024 has quit [Ping timeout: 245 seconds]
outoftime has joined #ruby-lang
tonni has quit [Ping timeout: 246 seconds]
jperry2 has quit [Quit: jperry2]
ruurd has quit [Quit: Leaving...]
sepp2k has joined #ruby-lang
mollerhoj3_ has joined #ruby-lang
mollerhoj3_ has left #ruby-lang [#ruby-lang]
ryanf has joined #ruby-lang
jtoy has joined #ruby-lang
sailias has joined #ruby-lang
dfr|mac has joined #ruby-lang
bglusman has joined #ruby-lang
bryancp has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 255 seconds]
Asher has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
bryancp has quit [Remote host closed the connection]
Fretta has joined #ruby-lang
kain has quit [Quit: quit]
dhruvasagar has joined #ruby-lang
amalrik_maia has left #ruby-lang [#ruby-lang]
brunocoelho has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
icooba has quit [Quit: Computer has gone to sleep.]
gregmore_ has quit [Read error: Operation timed out]
tonni has joined #ruby-lang
gregmoreno has joined #ruby-lang
kyrylo has quit [Quit: WeeChat 0.3.8]
coryf has joined #ruby-lang
tonni_ has quit [Ping timeout: 246 seconds]
enebo has quit [Quit: enebo]
dfr|mac has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
j3424 has quit [Quit: Leaving]
sora_h is now known as s0ra_h
jfelchner has joined #ruby-lang
umttumt has joined #ruby-lang
tonni_ has joined #ruby-lang
Administrator_ has joined #ruby-lang
cha1tanya has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
grj has quit [Ping timeout: 240 seconds]
tonni has quit [Ping timeout: 246 seconds]
savage- has joined #ruby-lang
workmad3 has joined #ruby-lang
tr-808 has quit [Quit: leaving]
tr-808 has joined #ruby-lang
publicvoid__ has joined #ruby-lang
coryf has quit [Remote host closed the connection]
publicvoid_ has quit [Ping timeout: 248 seconds]
brianpWins has joined #ruby-lang
pabloh has quit [Quit: Ex-Chat]
outsmartin has joined #ruby-lang
nertzy has joined #ruby-lang
outsmartin1 has quit [Ping timeout: 250 seconds]
outsmartin1 has joined #ruby-lang
workmad3 has quit [Ping timeout: 265 seconds]
neocoin has quit [Remote host closed the connection]
outsmartin has quit [Ping timeout: 246 seconds]
jscherff has joined #ruby-lang
ryanf_ has joined #ruby-lang
jxie has joined #ruby-lang
naz has joined #ruby-lang
savage- has quit [Remote host closed the connection]
jscherff_ has joined #ruby-lang
outsmartin has joined #ruby-lang
outsmartin1 has quit [Ping timeout: 244 seconds]
dfr|mac has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
jscherff_ is now known as jmscherff
saLOUt has quit [Quit: Konversation terminated!]
jmscherff is now known as jscherff_
iamlacroix has joined #ruby-lang
jscherff has quit [Quit: Leaving]
jscherff has joined #ruby-lang
jscherff has quit [Client Quit]
ryanf_ has quit [Quit: leaving]
brunocoelho has joined #ruby-lang
jmscherff has joined #ruby-lang
jscherff_ is now known as jmscherff_
jmscherff_ is now known as jscherff_
jscherff_ is now known as jmscherff_
jmscherff has quit [Client Quit]
<jtoy> if in a thread I call Queue#pop and the queue is empty, but i have another thread still doing calculations, why would I get a deadlock exception?
febuiles has joined #ruby-lang
<jtoy> should I be checking the queue size before popping every time??
dc5ala has quit [Quit: Ex-Chat]
<febuiles> Anyone has any idea of why this behaves differently in irb vs. the interpreter? https://gist.github.com/3112378
<febuiles> (this is 1.9.3 btw)
<seanstickle> febuiles: that's ALL you typed in irb?
<febuiles> seanstickle: yup
<febuiles> the irb case makes sense to me, it defs the method inside Object so it's available for Array and other classes, not sure why its defined as private when I run the interpreter
<seanstickle> weird
<seanstickle> {}.my_method does the same thing in irb
<seanstickle> I dunno, some namespace thing I suppose
<seanstickle> Smarter mind than me will have to answer
<seanstickle> Ah
jmscherff_ has quit [Remote host closed the connection]
andrewhl has quit [Remote host closed the connection]
mollerhoj3_ has joined #ruby-lang
mollerhoj3_ has left #ruby-lang [#ruby-lang]
jscherff_ has joined #ruby-lang
jscherff_ has quit [Remote host closed the connection]
<countdigi> lil off topic but anyone using chef-solo?
<whitequark> febuiles: irb resets the default method visibility on toplevel context
<whitequark> I'm not exactly sure where it happens, you'll need to grep whole irb source to determine that
<whitequark> try putting "public" at the top of the script
<whitequark> it'll make it work exactly the same in irb/interp
<lianj> or do it the right way
<febuiles> whitequark: by reset you mean it sets it to public then?
<whitequark> febuiles: yup
<rue> febuiles: Heey, where you been?
<febuiles> rue: hola :)
<whitequark> febuiles: see also http://rxr.whitequark.org/mri/source/iseq.c#201
wallerdev has quit [Quit: wallerdev]
iamlacroix has quit [Remote host closed the connection]
<febuiles> whitequark: thanks, taking a look
wallerdev has joined #ruby-lang
<febuiles> lianj: what do you mean by "doing it the right way"?
<lianj> if you want [].foo dont define foo on toplevel
Axsuul has joined #ruby-lang
<febuiles> lianj: ah, this is something I'm interested in purely from an academic standpoint :)
<lianj> ah ok. got it ;)
<febuiles> whitequark: that makes sense, thanks a lot :)
headius has joined #ruby-lang
tbuehlmann has quit []
voker57 has quit [Remote host closed the connection]
andrewhl has joined #ruby-lang
jscherff has joined #ruby-lang
jscherff has left #ruby-lang [#ruby-lang]
jscherff has joined #ruby-lang
nertzy2 has joined #ruby-lang
nertzy has quit [Ping timeout: 255 seconds]
jscherff_ has joined #ruby-lang
jscherff has quit [Remote host closed the connection]
rhalff has quit [Ping timeout: 255 seconds]
enebo has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
jscherff_ has quit [Quit: Leaving]
wallerdev has joined #ruby-lang
headius has quit [Quit: headius]
tr-808 has quit [Remote host closed the connection]
seanstickle has quit [Quit: Nihil sub sole novum]
mollerhoj3 has joined #ruby-lang
jtoy has quit [Quit: jtoy]
workmad3 has joined #ruby-lang
pbjorklu1d has joined #ruby-lang
pbjorklund has quit [Read error: Operation timed out]
brunocoelho has quit [Remote host closed the connection]
jscherff has joined #ruby-lang
zmack has joined #ruby-lang
fromhet has joined #ruby-lang
jscherff has quit [Ping timeout: 255 seconds]
abuiles has quit [Quit: Connection closed for inactivity]
brianpWins has quit [Ping timeout: 255 seconds]
enebo has quit [Quit: enebo]
RORgasm has joined #ruby-lang
jscherff has joined #ruby-lang
RORgasm has quit [Ping timeout: 245 seconds]
jscherff has quit [Client Quit]
tsou has quit [Quit: leaving]
tsou has joined #ruby-lang
cantonic has quit [Quit: cantonic]
ryanf_ has joined #ruby-lang
byronb has quit [Ping timeout: 248 seconds]
dfr|mac has joined #ruby-lang
lun__ has joined #ruby-lang
perryh_away is now known as perryh
brianpWins has joined #ruby-lang
lun_ has quit [Ping timeout: 250 seconds]
robin850 has quit [Quit: Konversation terminated!]
sepp2k has quit [Remote host closed the connection]
ttilley_off is now known as ttilley
mollerhoj3 has left #ruby-lang [#ruby-lang]
dhruvasagar has quit [Ping timeout: 265 seconds]
enebo has joined #ruby-lang
QaDeS has joined #ruby-lang
cha1tanya is now known as prathamesh`
fayimora has joined #ruby-lang
rippa has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
zmack has quit [Remote host closed the connection]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
ajsie has joined #ruby-lang
ajsie has left #ruby-lang [#ruby-lang]
brunocoelho has joined #ruby-lang
ajsie has joined #ruby-lang
ajsie has left #ruby-lang [#ruby-lang]
JohnBat26 has quit [Ping timeout: 265 seconds]
bryancp has joined #ruby-lang
Criztian has joined #ruby-lang
retro|cz has joined #ruby-lang
jtoy has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
ku1 has quit [Remote host closed the connection]
Defusal_ has joined #ruby-lang
Defusal_ has quit [Changing host]
Defusal_ has joined #ruby-lang
brunocoelho has quit [Remote host closed the connection]
ryanf has quit [Quit: broken pipes |||]
Defusal has quit [Ping timeout: 248 seconds]
mollerhoj3_ has joined #ruby-lang
petercooper has joined #ruby-lang
workmad3 has joined #ruby-lang
RORgasm has joined #ruby-lang
seanstickle has joined #ruby-lang
sepp2k has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
RORgasm has quit [Ping timeout: 246 seconds]
Guest12946 has left #ruby-lang [#ruby-lang]
mksm has joined #ruby-lang
<mksm> Hello. Can Thread.exclusive {} be used instead of mutex.synchronize {} ?
mistym has quit [Remote host closed the connection]
fromhet has quit [Read error: Connection reset by peer]
fromhet has joined #ruby-lang
jackhoy05 has joined #ruby-lang
diegoviola has quit [Quit: leaving]
jackhoy05 has quit [Client Quit]
<jtoy> silly question, on the Queue class in ruby, why can't the behaviour be that it returns nil if there is nothing on the queue? why must it block?
enebo has quit [Quit: enebo]
fromhet has quit [Quit: fromhet]
<mksm> jtoy: iirc, shift(false) will not block
<jtoy> mksm: the docs http://www.ruby-doc.org/stdlib-1.9.3/libdoc/thread/rdoc/Queue.html#method-i-pop says shift is just an alias for pop
mikeric has quit [Quit: mikeric]
<mksm> yes, pop(false) works the same way
<jtoy> mksm: but then it raises an exception, which is not the same as returning nil
<mksm> jtoy: probably coded this way as someone could push nil into the queue and then you wouldn't know if it's empty or an actual element
tomb has quit [Quit: Computer has gone to sleep.]
<jtoy> mksm: i see, that makes sense
<jtoy> mksm: does it make senses to just keep calling pop and rescue if its empty, to to check if its empty before calling pop everytime?
sailias has joined #ruby-lang
<mksm> jtoy: i'd go with #empty?
<jtoy> mksm: ok, i do that now..
mikeric has joined #ruby-lang
mollerhoj3_ has left #ruby-lang [#ruby-lang]
sandbags has quit [Remote host closed the connection]
brianpWins has quit [Ping timeout: 240 seconds]
m3nd3s has joined #ruby-lang
brianpWins has joined #ruby-lang
<jtoy> how can i stop execution from inside of a proc, return doesn't seem to work
fayimora has quit [Ping timeout: 248 seconds]
fayimora has joined #ruby-lang
yxhuvud has quit [Ping timeout: 248 seconds]
laurent_1 has joined #ruby-lang
<erikh> drbrain: around?
coryf has joined #ruby-lang
burgestrand has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
outoftime has quit [Ping timeout: 248 seconds]
wmoxam has joined #ruby-lang
clam has left #ruby-lang [#ruby-lang]
calm has joined #ruby-lang
mikeric has quit [Quit: mikeric]
laurent_1 has quit [Ping timeout: 244 seconds]
prathamesh` has quit [Ping timeout: 244 seconds]
outoftime has joined #ruby-lang
vertroa has joined #ruby-lang
Torrieri has joined #ruby-lang
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
ryanf_ has quit [Ping timeout: 246 seconds]
znowi_ has joined #ruby-lang
znowi has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 265 seconds]
burgestrand has quit [Quit: Leaving.]
enroxorz has quit [Quit: Leaving]
prathamesh` has joined #ruby-lang
Dreamer3 has joined #ruby-lang
laurent_1 has joined #ruby-lang
ryanf has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
Torrieri has quit [Remote host closed the connection]
vertroa has quit [Read error: Connection reset by peer]
vertroa has joined #ruby-lang
vertroa has quit [Client Quit]
vertroa has joined #ruby-lang
vertroa has left #ruby-lang [#ruby-lang]
vertroa has joined #ruby-lang
mssola has quit [Quit: Konversation terminated!]
Criztian has quit [Remote host closed the connection]
vertroa has quit [Read error: Connection reset by peer]
vertroa has joined #ruby-lang
sailias has quit [Ping timeout: 246 seconds]
calm has quit [Quit: Lost terminal]
igaiga has joined #ruby-lang
calm has joined #ruby-lang
fayimora has quit [Quit: Be back in a gifii]
fayimora has joined #ruby-lang
solars has quit [Ping timeout: 265 seconds]
outsmartin has quit [Quit: Leaving.]
laurent_1 has quit [Ping timeout: 248 seconds]
m3nd3s has quit [Remote host closed the connection]
RORgasm has joined #ruby-lang
tomb has joined #ruby-lang
RORgasm has quit [Ping timeout: 246 seconds]
ryanf has quit [Quit: broken pipes |||]
ryanf has joined #ruby-lang
laurent_1 has joined #ruby-lang
postmodern has joined #ruby-lang
vertroa has quit [Read error: Connection reset by peer]
neocoin has joined #ruby-lang
vertroa has joined #ruby-lang
igaiga has quit [Remote host closed the connection]
vertroa has quit []
laurent_1 has quit [Quit: leaving]
mikeric has joined #ruby-lang
Einar_ has joined #ruby-lang
Einar_ has quit [Remote host closed the connection]
bytephilia has joined #ruby-lang
retro|cz has quit [Read error: Connection reset by peer]
msaffitz has quit [Quit: Computer has gone to sleep.]
coryf has quit [Remote host closed the connection]
gregmoreno has quit [Read error: Operation timed out]
<bytephilia> hi