justinmb_ has quit [Remote host closed the connection]
justinmburrous has joined #ruby-lang
dhruvasagar has quit [Read error: Operation timed out]
UziMonkey___ has joined #ruby-lang
fridim__ has quit [Quit: Leaving]
sstrickl has joined #ruby-lang
sstrickl has quit [Changing host]
sstrickl has joined #ruby-lang
havenwood has joined #ruby-lang
recolor has joined #ruby-lang
cofin has joined #ruby-lang
cofin has quit [Client Quit]
machuga is now known as machuga|away
mdedetrich has quit [Quit: Computer has gone to sleep.]
ledestin has quit [Quit: ledestin]
toretore has joined #ruby-lang
vlad_st__ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
lutfidemirci has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
Sambalero has joined #ruby-lang
<dernise>
Can someone tell me why do I get this exception ? (deadlock detected https://gist.github.com/dernise/4990a3f4932b61014dce ) If I remove line 40 I don't have this error. Futhermore, everything works, there's an exception but it works? I'd like to know where this exception come from.
<MartynKeigher>
i am able to get tweets that include a @username IN the tweet itsefl...but what i am after is the @username TIMELINE, NOT where the @username is in the body of the tweet.
pellis has joined #ruby-lang
<Mon_Ouie>
Well, it's building the RDoc documentation for the gem you installed and placing it in some folder
<pellis>
hello all
<pellis>
i have an awesome idea
<MartynKeigher>
hey
<pellis>
you guys want to do a collaborative bundler install?
<pellis>
it is a bit silly but funny
<MartynKeigher>
i just wanna get my tweets to work! lol
andrewvos has joined #ruby-lang
<pellis>
MartynKeigher, ok i'll start.
<MartynKeigher>
i am able to get tweets that include a @username IN the tweet itsefl...but what i am after is the @username TIMELINE, NOT where the @username is in the body of the tweet.
<jMCg>
Mon_Ouie: I bet that's the reason why the VM just died :\
<MartynKeigher>
can u hold that thought...for 5 mins....just need to swap laundry over.
<MartynKeigher>
;)
<MartynKeigher>
brb
<pellis>
bundle install
bzalasky has joined #ruby-lang
joshuawscott has quit [Quit: Leaving.]
wallerdev has quit [Quit: wallerdev]
gregmoreno has joined #ruby-lang
johnny_rugger has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
pothibo has joined #ruby-lang
workmad3 has quit [Ping timeout: 246 seconds]
<pothibo>
When you require a file in a relative folder, does the folder name by default becomes a module? I'm pretty sure this only happen in rails but I want to make sure
<Mon_Ouie>
It doesn't
audiostream has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
gregmoreno has quit [Ping timeout: 252 seconds]
<pothibo>
Thanks a lot, I'm digging in rails and ruby spec and the two get mixed in my head.
joshuawscott has joined #ruby-lang
<erikh>
best to learn ruby before you touch rails, but I get there's only so much time in the day
<erikh>
rails does a lot of surprising things when you switch back to ruby.
Sambalero has joined #ruby-lang
justinmb_ has joined #ruby-lang
<pothibo>
erikh: I have been a rails dev for quite some time now, I'm just digging back to understand more about how things are glued together
<pothibo>
and yes, it does
<MartynKeigher>
any idea how do grab a twitter @username timeline?
audiostream has left #ruby-lang [#ruby-lang]
zmike123 has quit [Ping timeout: 268 seconds]
<MartynKeigher>
my current rb job is set to show the username if its PART of the BODY of the tweet...not from the user account. this thing ha had me going nuts.
<MartynKeigher>
*has had me
stamina has joined #ruby-lang
<pothibo>
while I'm at it, I have another question, autoload(constant, file) is a bit weird to understand, it says it requires the file when constant is accessed the first time. so that means require(:MyConstant, some/file/unrelated/to/MyConstant.rb) would be required even if MyConstant is unrelated?
<erikh>
pothibo: ah
justinmburrous has quit [Ping timeout: 264 seconds]
<MartynKeigher>
u will see on line 17 it says twitter.search. i have changed it for twitter.user and twitter.username and both dont work
joshuawscott has quit [Quit: Leaving.]
<MartynKeigher>
firehose?? yeah..u lost me... not very versed in ruby im afraid. just doing what i can.
<pellis>
what's this whole binstubs thing with rails 4?
<MartynKeigher>
...?
<pothibo>
it's in rbenv, no?
MaddinXx has quit [Remote host closed the connection]
<pothibo>
pellis: ^^
<pellis>
i'm not sure, is it an rbenv or rails4 thing?
<pellis>
i mean i know what binstubs is, but i don't understand why it is suddenly under the spotlight and suddenly the "right thing to do"
<pothibo>
I don't know if rails4 does something like binstubs, but rbenv has been using the concept for quite some time now
<pothibo>
pellis: because your whole system is not bound to a single version
tomzx_mac_ has joined #ruby-lang
<pellis>
but bundle exec solves that
<pothibo>
it's 2 different thing IMO
<pothibo>
bundle exec run the binary in your bundle
apeiros has quit [Remote host closed the connection]
<pothibo>
stub feel like it'S always at the same place while it underneath, it may move
apeiros has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 256 seconds]
<pothibo>
pellis: did I make sense eto you?
<pellis>
not really, sorry
<pothibo>
hahaok
<pellis>
from what i read, binstubs are faster than bundle exec
<pothibo>
pellis: Presume, ruby is in /usr/local/bin/ruby
<pothibo>
pellis: you have a bundle in ~/project
<pothibo>
for the sake of this example, project is a rails project (Uses rake)
<pothibo>
bundle install --path=.bundle will install all your gems in ~/.project/.bundle/
<pothibo>
pellis: Running bundle exec rake -T will uses ~/.project/.bundle/../bin/rake binary. Running rake -T will run your global gem rake. You understand so far?
bzalasky has joined #ruby-lang
apeiros has quit [Ping timeout: 256 seconds]
<pellis>
yep
bzalasky has quit [Remote host closed the connection]
<pothibo>
pellis: ok what the binstubs does is it replaces your $PATH so when you type "rake" in your console, instead of looking for your global gem, it will run an abstract ruby program. It will look for the latest installed version of rake and pass all the arguments to that rake program it found along with it's parameters
vlad_starkov has joined #ruby-lang
<pothibo>
so when you type rake, you have no idea where it is, what version it is. Binstub makes decisions for you (Based on what you installed on your system)
loincloth has joined #ruby-lang
<pellis>
ok but the binstub should contain a bundler/setup
<pothibo>
pellis: binstub is a concept
<pothibo>
that rbenv uses to launch ruby programs
<pothibo>
because you can set different ruby version in different project on the same system, it needs a stub so when you call rake, it returns a different version of rake depending on where you are in your system
<pothibo>
rbenv handles this list of installed programs (Like bundle does)
sepp2k has quit [Ping timeout: 246 seconds]
sepp2k has joined #ruby-lang
<pothibo>
reason why rbenv is faster than bundle is an implementation detail. One tries to find gems/binary as fast as possible while the other tries to keep a consistent version
* pothibo
's essay is over
<pellis>
ok i think i got it
<pellis>
so rbenv is less safe
<pellis>
because it may pick up irrelevant versions
<pothibo>
both do not care about safety, one cares about delivery the other, about consistency
<pothibo>
it won't
<pothibo>
rbenv is as safe as bundle
<pothibo>
rbenv doesn't handle gems, it handles ruby version
loincloth has quit [Ping timeout: 268 seconds]
<pothibo>
bundle handle gems and their versions
<pothibo>
you cannot set different ruby versions on a system with bundle
<pothibo>
and you can't install different gems on the same ruby version with rbenv
ledestin has joined #ruby-lang
cofin has quit [Quit: cofin]
<pothibo>
Let's summarize: Use rbenv for ruby version. Use bundle for gems versions per project.
<pellis>
okies
Weems has joined #ruby-lang
joshuawscott has joined #ruby-lang
gregmoreno has joined #ruby-lang
jstorimer has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
dingus_khan has joined #ruby-lang
kgrz has joined #ruby-lang
jstorimer has quit [Ping timeout: 260 seconds]
ahf has quit [Quit: Bye]
lutfidemirci has quit [Remote host closed the connection]
joshuawscott has quit [Quit: Leaving.]
ledestin has quit [Quit: ledestin]
kgrz has quit [Ping timeout: 240 seconds]
headius has quit [Quit: headius]
ahf has joined #ruby-lang
stamina has quit [Read error: Operation timed out]
ahf has quit [Client Quit]
ahf has joined #ruby-lang
ahf has joined #ruby-lang
ahf has quit [Changing host]
MaddinXx_ has joined #ruby-lang
joshuawscott has joined #ruby-lang
daihuws has joined #ruby-lang
nathanstitt has joined #ruby-lang
headius has joined #ruby-lang
justinmb_ has quit [Remote host closed the connection]
setmeaway has quit [Ping timeout: 246 seconds]
jacktrick has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
KINGSABRI has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
<KINGSABRI>
hello every body
<KINGSABRI>
I need to find th none repeated elements in 2 arrays
<KINGSABRI>
a1 & a2 # finds the repeated ones
johnny_rugger has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse>
HERRRROOO
<yorickpeterse>
$HOME sweet $HOME
<andrewvos>
$GOHOME
<andrewvos>
Is literally what I just added to my .zshrc :(
<andrewvos>
Wait, GOPATH actually.
joshuawscott has quit [Quit: Leaving.]
joshuawscott has joined #ruby-lang
<KINGSABRI>
I need to find th none repeated elements in 2 arrays
<KINGSABRI>
a1 & a2 # finds the repeated ones
<KINGSABRI>
repeated means the not common between the 2 arrays
sstrickl has quit [Quit: sstrickl]
Sambalero has quit [Remote host closed the connection]
jstorimer has joined #ruby-lang
<TTilus>
(a1|a2)-(a1&a2)
recolor has quit [Quit: recolor]
jstorimer has quit [Ping timeout: 252 seconds]
dingus_khan has joined #ruby-lang
kgrz has joined #ruby-lang
<TTilus>
or use Set and proper operations
Averna has joined #ruby-lang
<yorickpeterse>
Also
<yorickpeterse>
I hereby coin "Plane driven development"
<andrewvos>
Where you write code on a large flat surface.
rickruby has joined #ruby-lang
roadt_ has quit [Ping timeout: 276 seconds]
<TTilus>
reminds me of "a single pole in a complex plane"
<TTilus>
s/single/simple/
kgrz has quit [Ping timeout: 268 seconds]
KINGSABRI has quit [Quit: Leaving]
<yorickpeterse>
andrewvos: No, plane as in the flying thing
<yorickpeterse>
Since that's where I get most of my work done apparently
<andrewvos>
Yes yorickpeterse, I know you meant a plane.
<yorickpeterse>
I should make a movie called "Rubyists on a plane"
<yorickpeterse>
it's funny because the plane would not deal with concurrency properly :>
<pellis>
andrewvos, so you do both Go and Ruby?
wallerdev has joined #ruby-lang
<yorickpeterse>
oh man I missed my thinkpad
<yorickpeterse>
"THIS IS MY UGLY THINKPAD, THERE ARE MANY LIKE IT BUT THIS ONE IS MINE" etc
<yorickpeterse>
I'm also sure IRC missed my random messages
nathanstitt has joined #ruby-lang
<andrewvos>
pellis: Almost, I installed it and then gave up when I started digging through the code.
<andrewvos>
pellis: Was trying to work out why zeus won't pass CTRL+C to my cucumber process.
<andrewvos>
Anyway, so no. I don't do go.
joshuawscott has quit [Quit: Leaving.]
cdelo__ has joined #ruby-lang
<pellis>
andrewvos, ah. i just used zeus for the first time after a long while with spork
<pellis>
it's awesome
<andrewvos>
pellis: You run cukes with it?
<andrewvos>
pellis: And if so, can you CTRL+C out of `zeus cucumber` easily?
<pellis>
no, i gave up cucumber. i think the "product defines the features blah blah" bullshit is over now. we can get back to coding
netShadow has quit [Quit: netShadow]
justinmburrous has joined #ruby-lang
cdelo_ has quit [Ping timeout: 240 seconds]
<pellis>
i've grown up. i've become old. and product managers don't write features.
<andrewvos>
Do you do any functional testing?
machuga is now known as machuga|away
<pellis>
yes, i do what you do with cucumber, just with rspec all the way
<andrewvos>
Oh cool
<andrewvos>
So you use capybara?
<pellis>
i used to be a cucumber fanboy. but again, that was two years ago
<pellis>
yes
<andrewvos>
So does zeus kill rspec when you're running capybara with a @javascript test?
<pellis>
well i just started using zeus on a fresh project :)
<pellis>
for everything else i still use spork
<andrewvos>
Hmm, if you find this happens can you let me know?
<pellis>
yep
<andrewvos>
If you manage to remember.
<andrewvos>
Thanks
<pellis>
ctrl-c not working is usually a symptom of someone catching Exception instead of StandardError (or bare) in ruby
<andrewvos>
Well, zeus is mostly written on go.
<andrewvos>
in*
<pellis>
yep, i've noticed. so what are you experiencing exactly?
<andrewvos>
Cukes run, I see a fail so I press CTRL+C.
<pellis>
zeus rspec works fine for me, but i'm not doing any js yet
<andrewvos>
But instead of stopping at the end of the scenario, it runs all of them
<pellis>
ah. so you're trying to stop it mid-running
<andrewvos>
I get some text that says "Stopping>>>" or something, and that's it
<pellis>
can you simulate that with just a plain long test? like a sleep?
<andrewvos>
Works when I just `bundle exec cucumber` though
<pellis>
i'm going to try that..
kgrz has joined #ruby-lang
MaddinXx_ has quit [Remote host closed the connection]
joshuawscott has joined #ruby-lang
<yorickpeterse>
hm, according to my cat my arm is tasty
<yorickpeterse>
or he just really missed me
<yorickpeterse>
(he keeps licking it)
<andrewvos>
Maybe your arm smells of fish.
dingus_khan has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 252 seconds]
<yorickpeterse>
well, I was sitting next to this incredibly big woman who kept smelling her own arms in the plane
<yorickpeterse>
so maybe
<yorickpeterse>
as in, she was at least 3 times my size
<yorickpeterse>
wohooo, ruby-lint works on Ruby 2.0
<andrewvos>
pellis: So, when I CTRL+C zeus kills the thin server that is running, but it doesn't kill the firefox window spawned by selenium.
<andrewvos>
Which is strange
cofin has joined #ruby-lang
<andrewvos>
There are three process in play here I guess. Thin, Selenium and Cucumber.
<pellis>
andrewvos, i see. well i do phantomjs usually.. not dealt with selenium for a while now
<andrewvos>
Why it would kill the process that gets spawned second is beyond me.
<pellis>
also i just bumped into a zeus bug in 0.13.3, it might be worth it to get the 'pre' version
<andrewvos>
I tried the pre
<pellis>
yikes. sorry mate
<pellis>
might be worth it to try a different driver
<andrewvos>
Yeah
<andrewvos>
Have tried chromedriver but that just flat out doesn't work
<pellis>
phantomjs?
<pellis>
and casper
<andrewvos>
It didn't work for some reason. Can't remember why.
vlad_starkov has quit [Remote host closed the connection]
<MouseTheLuckyDog>
At the start of a program I do loriginal=local_variables then later I do lvar=local-variables-loriginal and get an empty list. I checfk loriginal and see that all the local variables even the ones defined later are in loriginal.
FiXato|VPS is now known as FiXato
andrewvos has quit [Ping timeout: 276 seconds]
daihuws has joined #ruby-lang
jackhammer2022 has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 256 seconds]
jackhammer2022 has joined #ruby-lang
andrewvos has joined #ruby-lang
loincloth has joined #ruby-lang
tkuchiki has joined #ruby-lang
loincloth has quit [Ping timeout: 246 seconds]
dernise has quit [Quit: This computer has gone to sleep]
krombr has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
jstorimer has joined #ruby-lang
lsegal has joined #ruby-lang
jstorimer has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby-lang
vigintas has quit [Ping timeout: 264 seconds]
mdedetrich has joined #ruby-lang
joshuawscott has joined #ruby-lang
havenwood has joined #ruby-lang
mdedetrich has quit [Client Quit]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]