apeiros changed the topic of #ruby-lang to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste code on http://gist.github.com
ta has joined #ruby-lang
klmlfl_ has quit [Ping timeout: 240 seconds]
midhir has quit [Remote host closed the connection]
jo__ has joined #ruby-lang
tcopeland has joined #ruby-lang
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby-lang
Savoyard has joined #ruby-lang
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby-lang
diegoviola has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
gwendall_ has quit [Remote host closed the connection]
emmesswhy has joined #ruby-lang
tenderlove has quit [Read error: Connection reset by peer]
tenderlo_ has joined #ruby-lang
emmesswhy has quit [Client Quit]
emmesswhy has joined #ruby-lang
ta_ has joined #ruby-lang
ta has quit [Ping timeout: 245 seconds]
ta has joined #ruby-lang
senor_jalapeno has joined #ruby-lang
ta_ has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby-lang
sankaber has joined #ruby-lang
ta has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
gilberto has joined #ruby-lang
<gilberto> "look at this gem I found"
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
natevick has joined #ruby-lang
bmichelsen has quit [Quit: ZZZzzz…]
Musashi007 has quit [Ping timeout: 250 seconds]
natevick_ has joined #ruby-lang
natevick has quit [Quit: natevick]
natevick_ is now known as natevick
natevick has quit [Quit: natevick]
gilberto has quit [Ping timeout: 246 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sankaber has joined #ruby-lang
|jemc| has quit [Ping timeout: 250 seconds]
rcvalle has quit [Quit: rcvalle]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sankaber has joined #ruby-lang
yusuf1 has joined #ruby-lang
yusuf1 has quit [Max SendQ exceeded]
djbkd has quit [Remote host closed the connection]
yusuf1 has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
tenderlo_ has quit [Quit: Leaving...]
TheStranjer has joined #ruby-lang
Bwild has joined #ruby-lang
stamina has quit [Ping timeout: 255 seconds]
Savoyard has quit [Quit: (null)]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwood has quit []
RobertBirnie has quit [Ping timeout: 258 seconds]
dabradley has quit [Ping timeout: 265 seconds]
marr has quit [Ping timeout: 265 seconds]
Lewix has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
hendranata_ has joined #ruby-lang
dorei has quit []
loincloth has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
loincloth has quit [Ping timeout: 250 seconds]
hahuang65 has quit [Ping timeout: 264 seconds]
ryez has joined #ruby-lang
houhoulis has joined #ruby-lang
yfeldblum has joined #ruby-lang
Musashi007 has joined #ruby-lang
Savoyard has joined #ruby-lang
|jemc| has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sankaber has joined #ruby-lang
dabradley has joined #ruby-lang
amsi has quit [Quit: Leaving]
bb010g has joined #ruby-lang
shinnya has quit [Ping timeout: 250 seconds]
gwendall has joined #ruby-lang
Lewix has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
gwendall has quit [Ping timeout: 244 seconds]
emmesswhy has joined #ruby-lang
emmesswhy has quit [Client Quit]
emmesswhy has joined #ruby-lang
matsutomo has joined #ruby-lang
cornerma1 has joined #ruby-lang
_fritchie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cornerman has quit [Ping timeout: 258 seconds]
cornerma1 is now known as cornerman
tpope_ is now known as tpope
BadBadtz-Maru has joined #ruby-lang
_fritchie has joined #ruby-lang
imperator has joined #ruby-lang
jxie has quit [Ping timeout: 244 seconds]
jxie has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
godd2 has quit [Ping timeout: 250 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
amclain has joined #ruby-lang
emmesswhy has joined #ruby-lang
bmichelsen has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
haylon has joined #ruby-lang
jxie has joined #ruby-lang
gwendall has joined #ruby-lang
dm78 has joined #ruby-lang
dm78 has quit [Read error: Connection reset by peer]
Asher2 has quit [Quit: Leaving.]
Asher has joined #ruby-lang
gwendall has quit [Ping timeout: 264 seconds]
micaeked has quit [Ping timeout: 244 seconds]
David_H_Smith has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
koderok has joined #ruby-lang
Musashi007 has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby-lang
ARMIGER1 has joined #ruby-lang
koderok has quit [Client Quit]
mistym has joined #ruby-lang
has_no_name has joined #ruby-lang
has_no_name has left #ruby-lang [#ruby-lang]
michaeldeol has quit [Client Quit]
gjaldon has joined #ruby-lang
sk_0 has quit [Ping timeout: 272 seconds]
charliesome has quit [Quit: zzz]
matsutomo has quit [Quit: matsutomo]
Musashi007 has joined #ruby-lang
oak1 has quit [Read error: Connection reset by peer]
jgpawletko has quit [Quit: jgpawletko]
ARMIGER1 has left #ruby-lang [#ruby-lang]
charliesome has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
simi has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
imperator has quit [Quit: Valete!]
ur5us has joined #ruby-lang
nisstyre has quit [Changing host]
nisstyre has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
kapil__ has joined #ruby-lang
matsutomo has joined #ruby-lang
michaeldeol has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
BadBadtz-Maru has quit [Quit: Textual IRC Client: www.textualapp.com]
Savoyard has quit [Quit: (null)]
AmirolAhmad has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
sk_0 has joined #ruby-lang
gwendall has quit [Ping timeout: 260 seconds]
kiyote23 has joined #ruby-lang
octodoodle has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby-lang
octodoodle has quit [Client Quit]
octodoodle has joined #ruby-lang
godd2 has joined #ruby-lang
kyb3r_ has joined #ruby-lang
apeiros__ has joined #ruby-lang
apeiros_ has quit [Read error: Connection reset by peer]
jlpeters has quit [Ping timeout: 244 seconds]
akahn has quit [Ping timeout: 244 seconds]
ramblinpeck_ has quit [Ping timeout: 244 seconds]
jlpeters has joined #ruby-lang
bmichelsen has quit [Quit: ZZZzzz…]
chancancode has quit [Ping timeout: 244 seconds]
ggherdov has quit [Ping timeout: 244 seconds]
cleopatra has quit [Ping timeout: 240 seconds]
jds has quit [Ping timeout: 244 seconds]
x0f has quit [Ping timeout: 244 seconds]
dlackty_ has quit [Ping timeout: 244 seconds]
ur5us has quit [Ping timeout: 250 seconds]
jds has joined #ruby-lang
dlackty_ has joined #ruby-lang
chancancode has joined #ruby-lang
goddamnit2 has joined #ruby-lang
ramblinpeck_ has joined #ruby-lang
akahn has joined #ruby-lang
x0f has joined #ruby-lang
godd2 has quit [Disconnected by services]
goddamnit2 is now known as godd2
charliesome has quit [Quit: zzz]
haylon has quit [Quit: Leaving]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ggherdov has joined #ruby-lang
jxie has quit [Ping timeout: 250 seconds]
jxie has joined #ruby-lang
Savoyard has joined #ruby-lang
gix has quit [Ping timeout: 265 seconds]
jxie has quit [Ping timeout: 250 seconds]
jxie has joined #ruby-lang
gix has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
bmichelsen has joined #ruby-lang
bmichelsen has quit [Client Quit]
gjaldon has joined #ruby-lang
Savoyard has quit [Quit: (null)]
hahuang63 has quit [Quit: WeeChat 1.0.1]
chinmay_dd has joined #ruby-lang
Lewix has joined #ruby-lang
chinmay_dd has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby-lang
chinmay_dd has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
tris has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby-lang
blowmage has quit [Ping timeout: 272 seconds]
blowmage has joined #ruby-lang
Savoyard has joined #ruby-lang
tris has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
dagda1 has joined #ruby-lang
havenwood has joined #ruby-lang
Savoyard has quit [Ping timeout: 272 seconds]
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby-lang
ruby-lang075 has joined #ruby-lang
kiyote23 has quit [Ping timeout: 250 seconds]
chinmay_dd has quit [Ping timeout: 255 seconds]
loincloth has joined #ruby-lang
hramrach_ has quit [Ping timeout: 250 seconds]
st0mar has quit [Quit: quit]
ur5us has joined #ruby-lang
Musashi007 has joined #ruby-lang
t3h_j4n170r has joined #ruby-lang
Musashi007 has quit [Client Quit]
loincloth has quit [Ping timeout: 272 seconds]
spetryk has joined #ruby-lang
ur5us has quit [Ping timeout: 250 seconds]
matp has quit [Remote host closed the connection]
matp has joined #ruby-lang
ruby-lang075 has quit [Ping timeout: 246 seconds]
emmesswhy has joined #ruby-lang
gwendall has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
gwendall has quit [Ping timeout: 260 seconds]
_fritchie has quit [Quit: Textual IRC Client: www.textualapp.com]
Sadin has quit [Remote host closed the connection]
octodoodle has quit [Remote host closed the connection]
David_H_Smith has quit []
spetryk has quit [Quit: Be back later ...]
oleo has quit [Remote host closed the connection]
TheStranjer has quit [Quit: Leaving]
chinmay_dd has joined #ruby-lang
Savoyard has joined #ruby-lang
octodoodle has joined #ruby-lang
gianlucadv has joined #ruby-lang
Savoyard has quit [Ping timeout: 264 seconds]
micaeked has joined #ruby-lang
kiyote23 has joined #ruby-lang
loincloth has joined #ruby-lang
sent-hil has joined #ruby-lang
loincloth has quit [Ping timeout: 264 seconds]
apeiros__ has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby-lang
Lewix has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
kiyote23 has quit [Ping timeout: 244 seconds]
matp_ has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
ryez has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: zzz]
matp has quit [Ping timeout: 250 seconds]
apeiros_ has quit [Ping timeout: 258 seconds]
Miphix has quit [Read error: Connection reset by peer]
hakunin has quit [Read error: Connection reset by peer]
Miphix has joined #ruby-lang
charliesome has joined #ruby-lang
Xzanron has joined #ruby-lang
gwendall has joined #ruby-lang
hakunin has joined #ruby-lang
hendranata_ has quit [Ping timeout: 250 seconds]
mcclurmc has joined #ruby-lang
charliesome has quit [Quit: zzz]
mcclurmc has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby-lang
GaelanAintAround has quit [Ping timeout: 265 seconds]
GaelanAintAround has joined #ruby-lang
loincloth has joined #ruby-lang
icebal has joined #ruby-lang
<icebal> anybody up and awake?
<pipework> No, we all died.
<icebal> just checking, its 1:45am here
<icebal> was wondering if anybody could help me with some code im stuck with
houhoulis has quit [Remote host closed the connection]
<icebal> its Net/Telnet waitfor(), and it also is doing the same thing in net-ssh-telnet
loincloth has quit [Ping timeout: 245 seconds]
<icebal> it connects, inputs the userid and pass, gets to the next prompt of "TERM = (xterm) "
<icebal> it should be waiting for that line, input xterm and move on, but it doesnt do anything at all.
<icebal> this is all before any unix prompt pops up
gimmeeruby has joined #ruby-lang
nertzy has joined #ruby-lang
<icebal> any ideas?
matsutomo has quit [Quit: matsutomo]
Lewix has quit [Remote host closed the connection]
matsutomo has joined #ruby-lang
<gimmeeruby> hello there :)
havenwood has quit [Remote host closed the connection]
tcopeland has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
tcopeland has joined #ruby-lang
<icebal> i've got the snippets up on stack exchange
<icebal> if anyuone would like to look
nertzy has quit [Quit: This computer has gone to sleep]
mistym has quit [Quit: Leaving...]
havenwood has quit [Remote host closed the connection]
Iskarlar_ has joined #ruby-lang
shuriu has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
Savoyard has joined #ruby-lang
Savoyard has quit [Ping timeout: 245 seconds]
amclain has quit [Quit: Leaving]
<zenspider> icebal: which one are you claiming doesn't work?
<zenspider> looks like your option on the second one is wrong
djbkd has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> icebal: how does your firm claim that telnet is for security over ssh??
yfeldblum has quit [Ping timeout: 240 seconds]
<zenspider> icebal: the point that joel was making wasn't necessarily to use ssh... but to read the code to see how it handles IO
<zenspider> you might also want to look at expect.rb
shuriu has quit [Remote host closed the connection]
shuriu has joined #ruby-lang
<icebal> i have learned not to bring it up lol, seeing as how ssh is both more powerful and more secure
|jemc| has quit [Ping timeout: 240 seconds]
<icebal> they even use it for pharmacy equipment to access pharm servers
<icebal> i've checked it out, and it seems like its being handled as another login prompt.
<zenspider> "it"
<zenspider> not descriptive
<icebal> expect is included into net/telnet and net-ssh-telnet. this is how waitfor handles prompts i guess
<icebal> ssh.rb, sorry
<icebal> i have tried bot looking for the string, and using a regex, which is the Match option
<zenspider> expect is _not_ included in net/telnet nor does net/telnet use it inside of waitfor
<icebal> my bad, i saw end/expect interface over SSH with an API almost identical to Net::Telnet
<icebal> send/expect*
<zenspider> nor does the ssh gem
<icebal> well, i shall delve into the expect.rb gem, and hopefully it solves the issue
nofxx has quit [Ping timeout: 256 seconds]
stardiviner has quit [Ping timeout: 256 seconds]
<zenspider> not a gem. it ships with ruby.
<zenspider> and it isn't meant to fix the problem. have you looked at the code for waitfor
<zenspider> ?
<icebal> yeah, it either for a String, converts string into a regex, then uses that to match incoming data
<icebal> or for Match, uses the supplied regex to match incoming data
<icebal> or you can use Prompt to regex for a different prompt
jxie has quit [Ping timeout: 250 seconds]
<zenspider> you've read the code...
<zenspider> why do you write this then?: $telnet.waitfor(Match => /Enter\s*$/) { |c| print c }
<icebal> that's the next step, i was simplifying it, it matches the next prompt of "Enter your 4-7 character userid, "
jxie has joined #ruby-lang
<zenspider> it's also _wrong_
<icebal> how so?
<zenspider> Match as a constant? look at the code in waitfor again
<zenspider> this is also nonsense: /.* $ $/
<zenspider> it's probably the source of your problem
<icebal> i have also removed that and used the default and still doesnt work :(
loincloth has joined #ruby-lang
wprice has quit [Read error: Connection reset by peer]
<zenspider> the default is /[$%#>] \z/n and might not work on an ancient hpux boxen. depends on a lot of things.
wprice has joined #ruby-lang
<zenspider> your regexps are syntactically borked tho. look into that.
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby-lang
<icebal> the prompt that is used is "pwd $ "
bougyman has quit [Ping timeout: 258 seconds]
<zenspider> and how do you match that in a regexp?
djbkd has quit [Remote host closed the connection]
<icebal> thats what the /.* $ $/ was for. for "anything" plus space plus $ plus space end of prompt
bougyman has joined #ruby-lang
<icebal> or removed the last $
<zenspider> icebal: and that's why you need to study your regexps
loincloth has quit [Ping timeout: 260 seconds]
<icebal> im really new to regex, i used rubular to craft the important ones, havent gotten to a place to make sure Prompt works
nisstyre has quit [Ping timeout: 265 seconds]
<icebal> even if i manually waitfor user and pass, which works, the TERM= (xterm) still wont work
yfeldblu_ has joined #ruby-lang
<zenspider> icebal: come to think of it, it probably shouldn't
<zenspider> why would TERM = xterm if you're telnetting in?
<icebal> its the system default, even if you just press enter
mLF has joined #ruby-lang
<icebal> telnet'd manually to make sure of what commands to put in
<zenspider> if you telnet in yourself, or `ssh -T`, you see that prompt?
<icebal> yeah
<icebal> its part of the MOTD basically
<zenspider> I have doubts
<wnd> I guess I've been using sed for too long. I would not have realised that / $ $/ did not match " $ ".
gjaldon has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<icebal> it goes user, pass, copyright info, TERM = (xterm) <input>, Enter your 3-7 userid: <input>, then drops you to Prompt
koderok has joined #ruby-lang
<icebal> i can sanitize the prompts real quick and past them somewhere
yfeldblu_ has quit [Ping timeout: 244 seconds]
<zenspider> no. I want you to go find the shell code that outputs that
<icebal> i don't know if i have access
<zenspider> if you can login, and you can run that shell code, you can read that shell code
<zenspider> *sigh*
<zenspider> # Match:: a regular expression, specifying the data to wait for.
<zenspider> # Prompt:: as for Match; used only if Match is not specified.
robbyoconnor has joined #ruby-lang
<zenspider> so, you're just calling waitfor incorrectly
gjaldon has quit [Ping timeout: 264 seconds]
<zenspider> tho I'm still not sure why you're calling waitfor at all, instead of specifying a proper prompt
<zenspider> and using cmd
<icebal> how is Match used incorrectly? String is simpler, and builds a regex around it. Match is using a regex that matches only that line out of all the login spam login generates
<zenspider> +options+ can be either a regular expression or a hash of options.
<zenspider> what'd you pass?
sent-hil has quit [Quit: Connection closed for inactivity]
<icebal> String => "TERM = (xterm) " doesnt work either
<zenspider> you're NOT reading
<zenspider> bring up a terminal
<zenspider> fire up irb
<zenspider> enter: "TERM = (xterm) ".class
<icebal> shows as a string
hendranata_ has joined #ruby-lang
apeiros_ has joined #ruby-lang
<zenspider> no, it returns exactly: String
<zenspider> what does the doco say options can be?
<ljarvis> g'mornin
<icebal> String
<icebal> as for Match, except a string that will be converted into a regular expression. Used only if Match and Prompt are not specified.
<icebal> from rubydoc
gjaldon has joined #ruby-lang
<zenspider> I'm rapidly approaching the point where I can't help you
<zenspider> your code: $telnet.waitfor("TERM = (xterm) ")
<zenspider> doco: +options+ can be either a regular expression or a hash of options.
<zenspider> do you see the disconnect?
<icebal> i do, but "String" => "TERM = (xterm) " doesnt do it either
<zenspider> jesus.
<pipework> Yes?
<zenspider> again... you are NOT jesus
<pipework> Oh. News to me.
<icebal> does that not count as a hash of options?
<icebal> the code even shows:
<icebal> elsif options.has_key?("String")
<icebal> Regexp.new( Regexp.quote(options["String"]) )
<icebal> end
<icebal> this should take whatever is getting assigned to String in the hash to have a regex built around it for waitfor to use
marr has joined #ruby-lang
<icebal> i guess im not getting what your trying to say. neither regex by itself, or called by Match, or String => have worked
matp_ has quit [Remote host closed the connection]
matp has joined #ruby-lang
<icebal> i've used rubular to build a regex that only matches that prompt and it still did not work.
midhir has joined #ruby-lang
yfeldblum has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
<icebal> i'm trying to understand this, but i'm pretty new at ruby.
gwendall has joined #ruby-lang
[spoiler] has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
nisstyre has joined #ruby-lang
gimmeeruby has quit [Ping timeout: 246 seconds]
elia has joined #ruby-lang
RitterJack has joined #ruby-lang
Jan_ has joined #ruby-lang
gwendall has quit [Ping timeout: 260 seconds]
caseypatrickdris has quit [Read error: No route to host]
caseypat_ has joined #ruby-lang
<icebal> zenspider, the prompt is a part of .profile of the user we login as
<icebal> the xterm part is here:
<icebal> # Set up the terminal:
<icebal> eval ` tset -s -Q -m ':?xterm' `
<icebal> TERM=${TERM:-xterm}
<yorickpeterse> morning kids
<Eising> good morning old chap
kyb3r_ has quit [Read error: Connection reset by peer]
<icebal> thanks for the help, sorry for the confusion, ill mess with it some more.....
simi has quit [Ping timeout: 258 seconds]
loincloth has joined #ruby-lang
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby-lang
loincloth has quit [Ping timeout: 245 seconds]
shuriu has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
shuriu has joined #ruby-lang
rbowlby_ has quit [Remote host closed the connection]
arBmind1 has quit [Quit: Leaving.]
Savoyard has joined #ruby-lang
workmad3 has joined #ruby-lang
simi has joined #ruby-lang
kapil__ has quit [Quit: Connection closed for inactivity]
Savoyard has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: zzz]
jo__ has quit [Quit: Connection closed for inactivity]
hendranata_ has quit [Ping timeout: 258 seconds]
Xzanron_ has joined #ruby-lang
Xzanron has quit [Ping timeout: 258 seconds]
icebal has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Xzanron has joined #ruby-lang
charliesome has joined #ruby-lang
Xzanron_ has quit [Ping timeout: 272 seconds]
arBmind has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
benlovell has joined #ruby-lang
yusuf1 has quit [Quit: Leaving.]
micaeked has quit [Quit: WeeChat 1.0.1]
mcclurmc has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: zzz]
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 244 seconds]
arBmind1 has quit [Ping timeout: 245 seconds]
arBmind has joined #ruby-lang
kiyote23 has joined #ruby-lang
kiyote23 has quit [Ping timeout: 265 seconds]
loincloth has joined #ruby-lang
charliesome has joined #ruby-lang
charliesome has quit [Client Quit]
benlovell has quit [Ping timeout: 265 seconds]
gwendall has quit [Remote host closed the connection]
kapil__ has joined #ruby-lang
Bwild has quit [Ping timeout: 250 seconds]
benlovell has joined #ruby-lang
Bwild has joined #ruby-lang
loincloth has quit [Ping timeout: 245 seconds]
rbowlby has joined #ruby-lang
arBmind has quit [Ping timeout: 245 seconds]
ta_ has quit [Read error: Connection reset by peer]
mnngfltg has joined #ruby-lang
ta has joined #ruby-lang
arBmind has joined #ruby-lang
stamina has joined #ruby-lang
yfeldblum has joined #ruby-lang
stamina has quit [Remote host closed the connection]
matsutomo has quit [Quit: matsutomo]
rikkipitt has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
matsutomo has joined #ruby-lang
gwendall has joined #ruby-lang
VictorBjelkholm has joined #ruby-lang
VictorBjelkholm has quit [Max SendQ exceeded]
viillaine has joined #ruby-lang
viillaine has quit [Client Quit]
VictorBjelkholm has joined #ruby-lang
VictorBjelkholm has quit [Max SendQ exceeded]
postmodern has quit [Remote host closed the connection]
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 240 seconds]
micechal_ has quit [Read error: Connection reset by peer]
Savoyard has joined #ruby-lang
micechal has joined #ruby-lang
rbowlby has quit [Ping timeout: 245 seconds]
matsutomo has quit [Quit: matsutomo]
charliesome has joined #ruby-lang
spastorino has joined #ruby-lang
iamninja has quit [Quit: ZZZzzz…]
loincloth has joined #ruby-lang
loincloth has quit [Ping timeout: 255 seconds]
Xzanron has quit [Ping timeout: 244 seconds]
_elia has joined #ruby-lang
Xzanron has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
elia has quit [Ping timeout: 272 seconds]
arBmind1 has quit [Ping timeout: 265 seconds]
shuriu has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
tkuchiki has quit [Ping timeout: 255 seconds]
shuriu has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
kurko__ has joined #ruby-lang
arBmind has joined #ruby-lang
octodoodle has quit [Remote host closed the connection]
qba73 has joined #ruby-lang
benlovell has quit [Ping timeout: 272 seconds]
octodoodle has joined #ruby-lang
shazaum has joined #ruby-lang
pd has quit [Ping timeout: 260 seconds]
Iskarlar_ has quit [Max SendQ exceeded]
hplar_ has quit [Ping timeout: 260 seconds]
jgpawletko has joined #ruby-lang
nomadicoder has quit [Ping timeout: 260 seconds]
Guest85414______ has quit [Ping timeout: 260 seconds]
henrikhodne has quit [Ping timeout: 260 seconds]
mLF has quit [Ping timeout: 260 seconds]
sross07 has quit [Ping timeout: 260 seconds]
lacrosse__ has quit [Ping timeout: 260 seconds]
dbussink has quit [Excess Flood]
ramblinpeck_ has quit [Ping timeout: 260 seconds]
akahn has quit [Ping timeout: 260 seconds]
GarethAdams has quit [Ping timeout: 260 seconds]
GarethAdams has joined #ruby-lang
phrozen77 has quit [Ping timeout: 260 seconds]
Xzyx987X_ has quit [Ping timeout: 260 seconds]
Caius has quit [Ping timeout: 260 seconds]
dlackty_ has quit [Ping timeout: 260 seconds]
adambeynon_ has quit [Ping timeout: 260 seconds]
lele has quit [Ping timeout: 260 seconds]
chris2 has quit [Ping timeout: 260 seconds]
manveru has quit [Read error: Connection reset by peer]
Sgeo_ has joined #ruby-lang
henrikhodne has joined #ruby-lang
heftig has quit [Ping timeout: 260 seconds]
Caius has joined #ruby-lang
simi has quit [Ping timeout: 260 seconds]
GaelanAintAround has quit [Ping timeout: 260 seconds]
blowmage has quit [Ping timeout: 260 seconds]
GarethAdams has quit [Ping timeout: 260 seconds]
_whitelogger has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby-lang
_whitelogger has joined #ruby-lang
Iskarlar1 has joined #ruby-lang
Bwild has quit [Quit: leaving]
Savoyard has quit [Quit: (null)]
Aova has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
charliesome has quit [Quit: zzz]
[spoiler] has quit [Quit: Leaving]
loincloth has quit [Ping timeout: 245 seconds]
<yorickpeterse> whitequark: so with the Russian Christmas sale coming up, can I hire you to do some shopping?
<yorickpeterse> whitequark: a co-worker told me everything is already at a 50% discount
yfeldblum has joined #ruby-lang
<whitequark> the shops are adjusting the prices as they fall
<whitequark> additionally, it's not like anything worthwhile is manufactured locally; just go to aliexpress or something
<maloik> what's this you're talking about? some kind of black friday in russia?
Caius has joined #ruby-lang
Torrieri has joined #ruby-lang
<yorickpeterse> whitequark: I'd like to buy 5 tanks please
<maloik> (my eyes are tingling by the thought of cheap gadgets I don't really need)
<yorickpeterse> maloik: Russian Bitcoin is dropping
<whitequark> maloik: RUB has dropped almost 50% in the last ummm
<whitequark> five hours
yfeldblum has quit [Ping timeout: 256 seconds]
<maloik> jesus
<whitequark> there's a nice page: http://joyreactor.cc/kurs
<yorickpeterse> hahaha
charliesome has joined #ruby-lang
benlovell has joined #ruby-lang
<yorickpeterse> Meanwhile Dutch news sources aren't covering any of this
<whitequark> they'll catch up in a few days :]
diegoviola has joined #ruby-lang
benlovell has quit [Ping timeout: 245 seconds]
datazombie has joined #ruby-lang
Caius has quit [*.net *.split]
Torrieri has quit [*.net *.split]
scampbell has joined #ruby-lang
octodoodle has quit [Quit: Textual IRC Client: www.textualapp.com]
yalue has joined #ruby-lang
<apeiros_> whitequark: why's that? because of the recent embargos?
gwendall has joined #ruby-lang
<whitequark> apeiros_: many factors
rikkipitt has quit [Remote host closed the connection]
<whitequark> OPEC's price war, for example, is a big one
benlovell has joined #ruby-lang
snoopybbt has quit [Ping timeout: 250 seconds]
stamina has joined #ruby-lang
<darix> apeiros_: spiegel.de has a pretty good summary
diegoviola has quit [Quit: WeeChat 1.0.1]
[spoiler] has joined #ruby-lang
Torrieri has joined #ruby-lang
jxie has quit [Ping timeout: 240 seconds]
rikkipitt has joined #ruby-lang
t0rrieri has joined #ruby-lang
jxie has joined #ruby-lang
tkuchiki has joined #ruby-lang
shuriu has quit [Remote host closed the connection]
leandrosnunes has quit [Ping timeout: 250 seconds]
shuriu has joined #ruby-lang
charliesome has quit [Quit: zzz]
kiyote23 has joined #ruby-lang
loincloth has joined #ruby-lang
Manchotix has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
kiyote23 has quit [Ping timeout: 258 seconds]
Torrieri has quit [*.net *.split]
loincloth has quit [Ping timeout: 255 seconds]
<apeiros_> thanks darix & whitequark
Savoyard has joined #ruby-lang
Savoyard has quit [Ping timeout: 244 seconds]
fusillicode has joined #ruby-lang
malconis has joined #ruby-lang
Savoyard has joined #ruby-lang
manlycode has joined #ruby-lang
caseypat_ has quit [Remote host closed the connection]
jo__ has joined #ruby-lang
mcclurmc has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby-lang
dluv has joined #ruby-lang
justinmcp_ has joined #ruby-lang
pabs_ has joined #ruby-lang
hagebake has joined #ruby-lang
kurko___ has joined #ruby-lang
setanta has joined #ruby-lang
chris2_ has joined #ruby-lang
saltsa has joined #ruby-lang
chinmay_dd has quit [Quit: Leaving]
chris2 has quit [Disconnected by services]
chris2_ is now known as chris2
setanta has quit [Client Quit]
kiyote23 has joined #ruby-lang
RitterJack has quit [Quit: Quitte]
houhoulis has joined #ruby-lang
Savoyard has quit [Quit: (null)]
kiyote23 has quit [Remote host closed the connection]
neurodam1ge has joined #ruby-lang
kurko__ has quit [*.net *.split]
ta has quit [*.net *.split]
mnngfltg has quit [*.net *.split]
vondruch has quit [*.net *.split]
hagabaka has quit [*.net *.split]
anekos_ has quit [*.net *.split]
saltsa_ has quit [*.net *.split]
tzero has quit [*.net *.split]
neurodamage has quit [*.net *.split]
zz_dlu has quit [*.net *.split]
justinmcp has quit [*.net *.split]
pabs has quit [*.net *.split]
weaksauce has quit [*.net *.split]
iamninja has quit [*.net *.split]
leandrosnunes has joined #ruby-lang
kiyote23 has joined #ruby-lang
Iskarlar_ has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
tzero has joined #ruby-lang
rikkipitt has quit []
shazaum has quit [Quit: This computer has gone to sleep]
anekos_ has joined #ruby-lang
mnngfltg has joined #ruby-lang
henrikhodne has joined #ruby-lang
Iskarlar has quit [Ping timeout: 256 seconds]
Xzanron has quit [Ping timeout: 264 seconds]
<yorickpeterse> Always nice to see silly snippets like this in our code:
kiyote23 has joined #ruby-lang
<yorickpeterse> 12require 'capybara/rspec'
<yorickpeterse> (minus the 12, that's a line number)
mattyohe has joined #ruby-lang
<apeiros_> is that a real guinea pig on a real capybara? o0
datazombie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sross_work|2 is now known as sross07
yfeldblum has joined #ruby-lang
<ljarvis> :D
Xzanron has joined #ruby-lang
<yorickpeterse> I think it's a fake sadly
cornerma1 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
Xzanron_ has joined #ruby-lang
<ljarvis> NO
caseypatrickdris has joined #ruby-lang
oleo has joined #ruby-lang
cornerman has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
senor_jalapeno has quit [Ping timeout: 244 seconds]
Xzanron has quit [Ping timeout: 264 seconds]
Iskarlar_ has quit [Ping timeout: 258 seconds]
Iskarlar has joined #ruby-lang
<yorickpeterse> well somebody doesn't like to be confronted with the truth
<yorickpeterse> well, the theoratical truth
workmad3 has joined #ruby-lang
spetryk has joined #ruby-lang
<rotti_love> how do output JSON in my controller with a custom root node. Such as books: [usual_stuff]
Xzanron_ has quit [Quit: Leaving]
gjaldon has joined #ruby-lang
Iskarlar_ has joined #ruby-lang
scampbell has quit [Quit: Leaving]
shazaum has joined #ruby-lang
Iskarlar has quit [Ping timeout: 250 seconds]
<whitequark> rotti_love: /join #ror
kiyote23 has quit [Remote host closed the connection]
gix has quit [Ping timeout: 272 seconds]
shambrarian has joined #ruby-lang
whippythellama has joined #ruby-lang
nofxx has joined #ruby-lang
sross_work|2 has joined #ruby-lang
sross07 has quit [Read error: Connection reset by peer]
<rotti_love> alright!
kiyote23 has joined #ruby-lang
gix has joined #ruby-lang
loincloth has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
chinmay_dd has joined #ruby-lang
tkuchiki has joined #ruby-lang
rotti_love has quit [Quit: Changing server]
shinnya has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
senor_jalapeno has joined #ruby-lang
gjaldon has joined #ruby-lang
benlovell has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Ping timeout: 256 seconds]
sross_work|2 is now known as sross07
gwendall has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
mattyohe has quit [Changing host]
mattyohe has joined #ruby-lang
mcclurmc has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
datazombie has joined #ruby-lang
yfeldblum has joined #ruby-lang
simi has quit [Ping timeout: 245 seconds]
ItSANgo_ has quit [Quit: Leaving...]
yfeldblum has quit [Ping timeout: 258 seconds]
kiyote23 has quit [Remote host closed the connection]
malconis has joined #ruby-lang
enebo has joined #ruby-lang
malconis has quit [Read error: Connection reset by peer]
kapil__ has quit [Quit: Connection closed for inactivity]
tenderlove has joined #ruby-lang
malconis has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
gjaldon has joined #ruby-lang
tenderlo_ has joined #ruby-lang
pabs_ is now known as pabs
tenderlove has quit [Ping timeout: 264 seconds]
mcclurmc has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistym has joined #ruby-lang
gwendall has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
vondruch has joined #ruby-lang
mcclurmc has joined #ruby-lang
houhoulis has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
ItSANgo has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
malconis has joined #ruby-lang
Manchotix has quit [Quit: Verlassend]
havenwood has joined #ruby-lang
benlovell has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
senor_jalapeno has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby-lang
mcclurmc has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
mcclurmc has quit [Remote host closed the connection]
t0rrieri has quit [Quit: Be back later ...]
benlovell has joined #ruby-lang
klmlfl has joined #ruby-lang
Iskarlar_ has quit [Read error: Connection reset by peer]
symm- has joined #ruby-lang
mcclurmc has joined #ruby-lang
Iskarlar has joined #ruby-lang
|jemc| has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
emmesswhy has joined #ruby-lang
sea6ear has left #ruby-lang [#ruby-lang]
rbowlby has joined #ruby-lang
mcclurmc has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
rbowlby has quit [Ping timeout: 240 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gjaldon has joined #ruby-lang
mistym has quit [Remote host closed the connection]
jo__ has quit [Quit: Connection closed for inactivity]
nertzy has joined #ruby-lang
ta_ has quit [Remote host closed the connection]
gjaldon has quit [Remote host closed the connection]
bb010g has quit [Quit: Connection closed for inactivity]
benlovell has quit [Ping timeout: 264 seconds]
fusillicode has quit [Ping timeout: 264 seconds]
amsi has joined #ruby-lang
gjaldon has joined #ruby-lang
solars has quit [Ping timeout: 258 seconds]
datazombie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gwendall has quit [Remote host closed the connection]
caseypatrickdris has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
kiyote23 has joined #ruby-lang
mistym has joined #ruby-lang
lele has joined #ruby-lang
apeiros_ has quit [Ping timeout: 255 seconds]
RobertBirnie has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
apeiros_ has joined #ruby-lang
djbkd has joined #ruby-lang
datazombie has joined #ruby-lang
mLF has quit [Ping timeout: 250 seconds]
__butch__ has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
stamina has quit [Quit: WeeChat 1.0.1]
_djbkd has joined #ruby-lang
tenderlo_ has quit [Quit: Leaving...]
nertzy has quit [Quit: This computer has gone to sleep]
emmesswhy has quit [Quit: This computer has gone to sleep]
tenderlove has joined #ruby-lang
mcclurmc has joined #ruby-lang
djbkd has quit [Ping timeout: 265 seconds]
mcclurmc has quit [Remote host closed the connection]
bmichelsen has joined #ruby-lang
t0rrieri has joined #ruby-lang
_elia has quit [Quit: Computer has gone to sleep.]
t0rrieri has quit [Ping timeout: 250 seconds]
shambrarian_ has joined #ruby-lang
michaeldeol has joined #ruby-lang
_djbkd has quit [Ping timeout: 250 seconds]
mnngfltg has quit [Remote host closed the connection]
kiyote23 has quit [Remote host closed the connection]
mLF has joined #ruby-lang
rikkipitt has joined #ruby-lang
shambrarian has quit [Ping timeout: 258 seconds]
IFrank00 has joined #ruby-lang
<IFrank00> hi
deol has joined #ruby-lang
michaeldeol has quit [Read error: Connection reset by peer]
rbowlby has joined #ruby-lang
<jhass> hi
<IFrank00> Español ??
workmad3 has quit [Ping timeout: 264 seconds]
shuriu has quit [Remote host closed the connection]
<jhass> nope
<apeiros_> IFrank00: english. but there is a spanish ruby channel.
<apeiros_> #ruby-es or #ruby.es I think
<IFrank00> thnks
yfeldblum has joined #ruby-lang
IFrank00 has left #ruby-lang ["Leaving"]
fusillicode has joined #ruby-lang
klmlfl has joined #ruby-lang
midhir has quit [Read error: Connection timed out]
fusillicode1 has joined #ruby-lang
midhir has joined #ruby-lang
nofxx has quit [Ping timeout: 272 seconds]
emmesswhy has joined #ruby-lang
rikkipit_ has joined #ruby-lang
rikkipitt has quit [Ping timeout: 256 seconds]
fusillicode has quit [Ping timeout: 272 seconds]
spetryk has quit [Quit: Be back later ...]
qba73 has quit []
Savoyard has joined #ruby-lang
wallerdev has joined #ruby-lang
senor_jalapeno has joined #ruby-lang
chouhoul_ has joined #ruby-lang
skade has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
nofxx has joined #ruby-lang
centrx has joined #ruby-lang
chouhoulis has quit [Ping timeout: 255 seconds]
Miphix has quit [Quit: Leaving]
gjaldon has quit [Remote host closed the connection]
nofxx_ has joined #ruby-lang
nofxx_ has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
nofxx has quit [Ping timeout: 250 seconds]
benlovell has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
deol has quit [Quit: Textual IRC Client: www.textualapp.com]
imperator has joined #ruby-lang
senor_jalapeno has quit [Ping timeout: 256 seconds]
gwendall has joined #ruby-lang
seank_ has quit [Read error: No route to host]
seank_ has joined #ruby-lang
nofxx_ has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Remote host closed the connection]
t0rrieri has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
caseypatrickdris has joined #ruby-lang
iamninja has joined #ruby-lang
t0rrieri has quit [Ping timeout: 272 seconds]
sarkyniin has joined #ruby-lang
caseypatrickdris has quit [Ping timeout: 272 seconds]
gjaldon has joined #ruby-lang
hahuang65 has joined #ruby-lang
ta has joined #ruby-lang
gjaldon has quit [Client Quit]
caseypatrickdris has joined #ruby-lang
kerunaru has joined #ruby-lang
oleo is now known as Guest17950
oleo__ has joined #ruby-lang
t0rrieri has joined #ruby-lang
Guest17950 has quit [Ping timeout: 245 seconds]
oleo__ has quit [Read error: Connection reset by peer]
oleo__ has joined #ruby-lang
yfeldblum has joined #ruby-lang
oleo__ is now known as oleo
seanosaur has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
skade has joined #ruby-lang
Savoyard has quit [Quit: (null)]
mcclurmc has joined #ruby-lang
eristic_ is now known as eristic
Lewix has quit [Remote host closed the connection]
malconis has joined #ruby-lang
chouhoulis has joined #ruby-lang
mcclurmc has quit [Ping timeout: 256 seconds]
sarkyniin has quit [Ping timeout: 255 seconds]
sarkyniin has joined #ruby-lang
momomomomo has joined #ruby-lang
chouhoul_ has quit [Ping timeout: 240 seconds]
oleo has quit [Quit: Verlassend]
rikkipit_ has quit [Remote host closed the connection]
Savoyard has joined #ruby-lang
senor_jalapeno has joined #ruby-lang
oleo has joined #ruby-lang
AmirolAhmad has quit [Remote host closed the connection]
iamninja has quit [Max SendQ exceeded]
andrewck has joined #ruby-lang
rippa has joined #ruby-lang
ur5us has joined #ruby-lang
iamninja has joined #ruby-lang
kiyote23 has joined #ruby-lang
ur5us has quit [Read error: Connection reset by peer]
ur5us_ has joined #ruby-lang
andrewck is now known as calebk
calebk has left #ruby-lang [#ruby-lang]
calebk has joined #ruby-lang
<calebk> hello
<centrx> ahoy
<calebk> does anyone have experience with threading in ruby?
Lewix has joined #ruby-lang
<apeiros_> !ask
<apeiros_> oh, no helpa
<ljarvis> heh
<ljarvis> calebk: lots of people
<ljarvis> ask your question if you have one
<apeiros_> calebk: don't ask to ask. ask your question.
<calebk> ah
<apeiros_> a "yes" as answer to your previous question does not guarantee an answer to your real question anyway.
<apeiros_> and vice versa
<calebk> ok, well I wrote my first code in Ruby this week :), and I stumbled on a problem where when I spawn new threads off a loop, only the first index of that loop issues a new thread
<calebk> I’m stumped as to why this occurs
<|jemc|> calebk: paste your code to gist.github.com
oleo has quit [Quit: Verlassend]
imperator has quit [Quit: Leaving]
<apeiros_> calebk: your first week of ruby. and you wrote this?
<calebk> yes
<|jemc|> calebk: how are you measuring that only one thread is created?
mcclurmc has joined #ruby-lang
<calebk> I put a line in the loop after changing it to each_with index ‘puts ‘#{i}’”
<calebk> as a counter
<calebk> it always continues on 0 index
<calebk> but it doesn’t do the 1 and so on
<|jemc|> you're talking about L105-L111?
<calebk> yup
<|jemc|> so your question is, why does the loop run only once, not why is only one thread spawned?
<calebk> yeah… because inqueue_addy has a array of items to each have its own thread
<calebk> is that because I’m calling back on the instance?
<calebk> it can only do one?
<|jemc|> what is the value of inqueue_addy.size just before your loop?
<calebk> 3
<calebk> well for the demo address
havenwood has quit [Remote host closed the connection]
<apeiros_> you add to an unsynchronized array in a thread
mcclurmc has quit [Remote host closed the connection]
<calebk> I only noticed this as I was converting the code to output a gexf instead of json
<apeiros_> you might well have joined over the whole array before any new thread has been added
<apeiros_> and since you went through that part already, the rest of your program runs and any thread being added later will simply be terminated
<calebk> wait… are you referring to the allthreads array?
<|jemc|> calebk: basically, make sure you're not mutating the array as you iterator over it
<|jemc|> *iterate
<apeiros_> yes
<apeiros_> remember, Thread.new do …code in here may be executed any time later … end
<apeiros_> so start.alltxs(…) might return quite quickly, spawning a thread. that thread not being yet scheduled. next line you join.
oleo has joined #ruby-lang
<calebk> ah
<calebk> that makes more sense
<calebk> sigh… i thought it was running fine before I published to git, hubris
<apeiros_> also again, you mutate an unsynchronized datastructure. bad idea.
<calebk> what are my options then?
<|jemc|> calebk: have you seen Queue?
<|jemc|> (the builtin threadsafe queue object)
<apeiros_> various. one is to rerun the join if the size of the array changed.
robbyoconnor has quit [Ping timeout: 245 seconds]
<apeiros_> another is to redesign this into a job queue with worker threads
<calebk> i saw some random snippets online, but i haven’t seen anything concrete that gives me an idea of production code
<apeiros_> as for unsync array: use a mutex around your mutation and read
mcclurmc has joined #ruby-lang
<calebk> a mutex on the threadpool array itself?
<|jemc|> calebk: using Queue is pretty simple - a producer thread can queue.push(task) and a consumer thread can task = queue.pop - you should be able to search around and find some relevant patterns
bmichelsen has quit [Quit: ZZZzzz…]
<apeiros_> since you're new to ruby: @@class_variables are frowned upon as they usually don't work the way people think they do
<apeiros_> addendum @ |jemc| Queue: any thread can push work
<calebk> ah
<apeiros_> calebk: and: congrats to your first ruby code :)
<tbuehlmann> \o/
<calebk> lol ty
<ljarvis> beats my first ruby code
<apeiros_> other info: community standard is 2 space for indent
godd2 has quit [Ping timeout: 264 seconds]
<|jemc|> as apeiros_ mentioned, Queue does not restrict who pops and who pushes - but you need to come up with a structured pattern for your code
<|jemc|> (whatever that pattern is)
<calebk> right
<apeiros_> |jemc|: yes, but with a crawler it makes a lot of sense that the workers themselves add more work
kurko___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<|jemc|> apeiros_: sure
<apeiros_> and skimming over his code, it looks… "crawly"
<ljarvis> also consider using Set (require 'set') rather than trying to re-implement it
<apeiros_> calebk: on another note: *nothing* in ruby is thread-safe unless it explicitly states to be.
<ljarvis> in * ^
godd2 has joined #ruby-lang
<apeiros_> a lot of things will work even without proper use of mutexes. don't be fooled by this. this is mostly an effect of rather long scheduling times.
<calebk> ah, yeah I figured that part out, i was reading up on mutex and thread-locking, and this was my first attempt to overcome the workers creating subworkers issue
<|jemc|> calebk: it can sometimes be hard to find good examples of threaded code in ruby as many ruby users would rather tuck their heads in the sand and not touch threads - be sure you also check out both Monitor and ConditionVariable if you want to improve your ruby threading 'vocabulary' with more primitives
<calebk> ty for the insight
<calebk> i figured out would do something more elegant for my next project in ruby, but I just kind of wanted this code to be functional rather than write the whole thing
<calebk> this was more a learning experience for ruby syntax, and it ended up to a procedural stuff that stumped me
<apeiros_> seems quite find for first code
<apeiros_> I assume you coded in other languages before?
<|jemc|> calebk: it's always good to learn by trying to accomplish a task you actually need done
<calebk> yup, proficient in other languages to varying degrees
nofxx_ has joined #ruby-lang
datazombie has quit [Quit: Textual IRC Client: www.textualapp.com]
yalue has quit [Quit: return 0;]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
weaksauce has joined #ruby-lang
dagda1 has joined #ruby-lang
wallerdev has joined #ruby-lang
chinmay_dd has quit [Quit: Leaving]
rubyjoe99 has joined #ruby-lang
<rubyjoe99> hi everyone.
shinnya has quit [Ping timeout: 272 seconds]
shazaum has quit [Quit: Leaving]
shinnya has joined #ruby-lang
stamina has joined #ruby-lang
gianlucadv has quit [Ping timeout: 250 seconds]
JohnBat26 has joined #ruby-lang
bmichelsen has joined #ruby-lang
stef204 has joined #ruby-lang
ur5us has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
ur5us_ has quit [Ping timeout: 258 seconds]
arBmind has quit [Ping timeout: 264 seconds]
jamo has quit [Disconnected by services]
jamo_ is now known as Jamo
zeba has joined #ruby-lang
stamina has quit [Ping timeout: 272 seconds]
sarkyniin has quit [Ping timeout: 245 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
mistym has quit [Quit: Leaving...]
[spoiler] has quit [Quit: Leaving]
chills42 has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
wallerdev has joined #ruby-lang
calebk has quit [Ping timeout: 245 seconds]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Sadin has joined #ruby-lang
_fritchie has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby-lang
momomomomo has quit [Ping timeout: 265 seconds]
Sadin has quit [Client Quit]
momomomomo has joined #ruby-lang
<jhass> hi
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sadin has joined #ruby-lang
Lewix has quit []
zeba has quit [Ping timeout: 240 seconds]
mLF has quit [Ping timeout: 264 seconds]
calebk has joined #ruby-lang
stamina has joined #ruby-lang
calebk has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby-lang
workmad3 has quit [Ping timeout: 250 seconds]
symm- has quit [Ping timeout: 240 seconds]
senor_jalapeno has quit [Ping timeout: 250 seconds]
momomomomo_ has joined #ruby-lang
momomomomo has quit [Ping timeout: 250 seconds]
momomomomo_ is now known as momomomomo
arBmind has joined #ruby-lang
mistym has joined #ruby-lang
jkad1 has joined #ruby-lang
dorei has joined #ruby-lang
mustmodify has joined #ruby-lang
<mustmodify> I really like Ruby but this is ... border line humiliating. `Math.log(1000, 10)` => `2.99999` yeah, it's not ruby. Still, that sucks.
dagda1 has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
klmlfl has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
<womble> >> Math.log(1000, 10)
<eval-in__> womble => 2.9999999999999996 (https://eval.in/235651)
<womble> mustmodify: The joys of floating point arithmetic.
<womble> >> Math.log(1000, 10).round
<eval-in__> womble => 3 (https://eval.in/235652)
<godd2> With great precision comes great responsibility
JohnBat26 has quit [Ping timeout: 250 seconds]
<womble> >> Math.log(1000, 10).round(5)
<eval-in__> womble => 3.0 (https://eval.in/235653)
<womble> godd2: Too right.
senor_jalapeno has joined #ruby-lang
<womble> >> Math.log(1000, 10).round(15)
<eval-in__> womble => 3.0 (https://eval.in/235654)
<womble> How many sig figs do you really need, anyway?
<godd2> all of them
<womble> ALL THE SIG FIGS
<centrx> To be fair, real numbers aren't real
<womble> At least they're not just figments of our imaginations
<godd2> How Can Numbers Be Real If Our Eyes Aren't Real?
<womble> Like that crazy upstart j
<womble> (Or i, if you're not an engineer)
<godd2> engineers use j for sqrt(-1) ?
<godd2> blasphemy
<womble> Yep.
momomomomo has quit [Quit: momomomomo]
skade has quit [Quit: Computer has gone to sleep.]
<womble> Well, electrical engineers, anyway. i was already in use for current.
<womble> We've had our coulombs longer than we've had square roots, apparently.
leandrosnunes has quit [Ping timeout: 265 seconds]
skade has joined #ruby-lang
iamninja has quit [Quit: ZZZzzz…]
AmirolAhmad has joined #ruby-lang
linc01n_ has quit [Ping timeout: 258 seconds]
seanosaur has quit []
linc01n has joined #ruby-lang
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
benanne has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
calebk has joined #ruby-lang
malconis has joined #ruby-lang
GBrawl has joined #ruby-lang
AmirolAhmad has quit [Ping timeout: 256 seconds]
klmlfl has joined #ruby-lang
momomomomo has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
RobertBirnie has quit [Ping timeout: 264 seconds]
jgpawletko has quit [Quit: jgpawletko]
seamon has joined #ruby-lang
rubyjoe99 has quit [Ping timeout: 246 seconds]
RobertBirnie has joined #ruby-lang
seamon is now known as lha
lha has quit [Client Quit]
leandrosnunes has joined #ruby-lang
momomomomo_ has joined #ruby-lang
lha has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zeba has joined #ruby-lang
momomomomo has quit [Ping timeout: 255 seconds]
momomomomo_ is now known as momomomomo
yfeldblum has joined #ruby-lang
shambrarian_ has quit [Quit: bye!]
momomomomo has quit [Quit: momomomomo]
lha has quit []
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagda1 has joined #ruby-lang
elia has joined #ruby-lang
seamon has joined #ruby-lang
<bougyman> TIL named capture doesn't work in an interpolated regex
arBmind has quit [Quit: Leaving.]
<bougyman> even with a regex in a var.
<bougyman> [3] pry(main)> r1 = /(?<time>\d\d:\d\d:\d\d)/; r1 =~ '10:10:10'; time
<bougyman> NameError: undefined local variable or method `time' for main:Object
<bougyman> /(?<time>\d\d:\d\d:\d\d)/ =~ '10:10:10 '; time
<bougyman> => "10:10:10"
havenwood has joined #ruby-lang
<apeiros_> because otherwise you'd have dynamic local variables
<bougyman> I know that.
<bougyman> I understand why
<bougyman> just wasn't thinking about it when I tried to use it.
Savoyard has quit [Quit: (null)]
elia has quit [Quit: Computer has gone to sleep.]
<bougyman> back to r1.match('10:10:10')[:time]
<bougyman> which gives nil if it doesn't match, so need assignment, ugh.
manlycode has quit [Quit: Lost terminal]
<apeiros_> >> r1 = /(?<time>\d\d:\d\d:\d\d)/; '10:10:10'[r, :time]
<eval-in__> apeiros_ => undefined local variable or method `r' for main:Object (NameError) ... (https://eval.in/235657)
<apeiros_> >> r1 = /(?<time>\d\d:\d\d:\d\d)/; '10:10:10'[r1, :time]
<eval-in__> apeiros_ => "10:10:10" (https://eval.in/235658)
<bougyman> ah cool
<apeiros_> you can thank me later :-p
<bougyman> but I still need assingment there.
seamon has quit [Remote host closed the connection]
kurko__ has joined #ruby-lang
<apeiros_> you don't need a temporary to check against non-match
<bougyman> also, i need :time, :nick, :message
<apeiros_> ah well, then you're screwed
<apeiros_> parsing irc logs?
<bougyman> if /(?<time>\d\d:\d\d:\d\d) <[@+ ](?<nick>[^>]+)> (?<message>.*)$/ =~ line
<bougyman> [time, nick, message]
<bougyman> elsif /(?<time>\d\d:\d\d:\d\d) * (?<message>(?<nick>[^ ]*) .*)/ =~ line
<bougyman> [time, nick, message]
<bougyman> yeah, old irssi logs
<bougyman> woops, mispaste
postmodern has joined #ruby-lang
stamina has quit [Quit: WeeChat 1.0.1]
elia has joined #ruby-lang
cleopatra has joined #ruby-lang
zeba has left #ruby-lang ["Leaving..."]
workmad3 has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
momomomomo has joined #ruby-lang
jkad1 has quit [Quit: WeeChat 1.0.1]
<bougyman> bur I can't even interpolate strings inside of those or they break.
senor_jalapeno has quit [Ping timeout: 255 seconds]
<bougyman> like if I try to turn \d\d:\d\d:\d\d into a string and interpolate. The regex still matches so it passes to the next line where nick and message have values but 'time' is undefined.
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bougyman> weird behavior.
seamon has joined #ruby-lang
workmad3 has quit [Ping timeout: 272 seconds]
enebo has quit [Quit: enebo]
spasedgoat has joined #ruby-lang
spetryk has joined #ruby-lang
whippythellama has quit [Quit: whippythellama]
klmlfl has quit [Ping timeout: 258 seconds]
GBrawl has quit [Quit: (null)]
havenwood has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
Iskarlar has joined #ruby-lang
Iskarlar has quit [Client Quit]
Iskarlar has joined #ruby-lang
caseypatrickdris has joined #ruby-lang