apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
fuhgeddaboudit has joined #ruby
usrj_ has joined #ruby
hmsimha has quit [Ping timeout: 255 seconds]
moritzschaefer has quit [Ping timeout: 240 seconds]
usrj has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
moritzs has quit [Ping timeout: 256 seconds]
agjacome has joined #ruby
Norrin has left #ruby [#ruby]
Spami has quit [Ping timeout: 244 seconds]
Ulrike_Rayne has quit [Ping timeout: 240 seconds]
tessi_zz has quit [Ping timeout: 272 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
usrj has joined #ruby
kasperti_ has quit []
volty has joined #ruby
tessi_zz has joined #ruby
chipotle has quit [Quit: cya]
mikepack has quit [Remote host closed the connection]
usrj_ has quit [Ping timeout: 272 seconds]
emmesswhy has joined #ruby
kaspergrubbe_ has joined #ruby
cmoylan has joined #ruby
tier has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Soliah has joined #ruby
patrick99e99 has joined #ruby
powersurge has quit [Quit: WeeChat 0.4.3]
jxf has quit [Ping timeout: 255 seconds]
yeukhon has quit [Ping timeout: 264 seconds]
toretore has quit [Quit: This computer has gone to sleep]
sambao21 has joined #ruby
ramfjord has joined #ruby
usrj has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
sambao21 has quit [Client Quit]
usrj has joined #ruby
Pupeno has quit [Ping timeout: 272 seconds]
usrj has quit [Client Quit]
<diegoviola> hello world
usrj has joined #ruby
mkaesz has quit [Ping timeout: 256 seconds]
<pipework> This is a planetoid.
zacts has quit [Read error: Connection reset by peer]
zacts has joined #ruby
Joufflu has joined #ruby
beef-wellington has quit [Ping timeout: 245 seconds]
xymbol has quit [Quit: Be back later ...]
unshadow has quit [Quit: leaving]
mary5030 has joined #ruby
tokik has joined #ruby
_ixti_ has quit [Quit: WeeChat 1.0.1]
<elemenopy> hmmm this isn't working the way i would expect it to. i want to fire all threads at once https://gist.github.com/anonymous/edb0043b270d5afc8716 why is it not firing all threads at the same time?
dkb20k has joined #ruby
jxf has joined #ruby
beilabs_ has quit [Quit: Be back later ...]
adriancb has quit [Remote host closed the connection]
chipotle has joined #ruby
zacts has quit [Quit: leaving]
oo_ has joined #ruby
xymbol has joined #ruby
mary5030 has quit [Ping timeout: 272 seconds]
ecstaticpessimst has quit [Quit: leaving]
sdwrage has quit [Quit: Leaving]
siwica1 has quit [Remote host closed the connection]
siwica has joined #ruby
dkb20k_ has joined #ruby
dkb20k has quit [Ping timeout: 250 seconds]
wjimenez5271 has quit [Remote host closed the connection]
kaspergrubbe_ has quit []
ixti has joined #ruby
wjimenez5271 has joined #ruby
<volty> first of all, urls = [...]; urls.map { |url| Thread.new(do_it(url)) }.each(&:join)
<pipework> Why make all the threads first and then call join?
<volty> then def do_it(url); puts "started #{url}"; scrape... ; end; (to make sure)
mikecmpbll has quit [Quit: i've nodded off.]
wjimenez5271 has quit [Ping timeout: 255 seconds]
freerobby has quit [Quit: Leaving.]
<gr33n7007h> volty, Doesn't Thread.new take a block?
michael_mbp has quit [Excess Flood]
<volty> gr33n7007h: never mind, was just a hint
usrj_ has joined #ruby
<gr33n7007h> ah, ok
mathias2 has joined #ruby
usrj_ has quit [Client Quit]
<volty> pipework too, he wants it that way, don't know about reasons
usrj has quit [Remote host closed the connection]
michael_mbp has joined #ruby
usrj has joined #ruby
Axy has quit [Read error: Connection reset by peer]
Axy has joined #ruby
<volty> the only thing I feel sure, in this case, is that having t# variables in a language that offers enumerables is very very weird :)
jenrzzz has quit [Ping timeout: 265 seconds]
<gr33n7007h> electrical, def sqr(n); puts n**2; end; (1..5).map {|i| Thread.new { sqr(i) }}.each(&:join)
<pipework> t#?
thsig_ has quit [Remote host closed the connection]
oleo__ has joined #ruby
<volty> t1, t2 ...
<pipework> use words
<volty> i prefer meanings :)
<pipework> Whatever.
sevenseacat has joined #ruby
<elemenopy> ok guys im confused haha so do we do the volty way?
<pipework> elemenopy: I didn't catch what you were doing.
<pipework> He doesn't seem to be too good at expressing himself for humans though, so it's definitely up to you.
<volty> ahahah
mathias2 has quit [Ping timeout: 258 seconds]
<elemenopy> pipework, so im trying to setup a bunch of threads and then run them all at the same time using this https://gist.github.com/anonymous/edb0043b270d5afc8716
oleo is now known as Guest22182
<elemenopy> but that does not run them all at the same time tho
<pipework> elemenopy: I'd suggest investigating whether your method that you're calling is going to lock the vm.
<pipework> elemenopy: What ruby are you using?
Guest22182 has quit [Ping timeout: 240 seconds]
<elemenopy> pipework, ruby 2.0.0p594 (2014-10-27 revision 48167) [x86_64-linux]
<gr33n7007h> lock = Mutex.new; def sqr(n); puts n**2; end; (1..5).map {|i| Thread.new { lock.synchronize {sqr(i) } } }.each(&:join)
Vile` has quit [Remote host closed the connection]
<benzrf> <3 Fibur
baweaver has quit [Remote host closed the connection]
<pipework> elemenopy: Ah, so the problem is that the ruby VM has a mutex around it. You can't run more than 1 thing executing in the ruby VM at once.
<pipework> So besides your terrible method naming, we'd need to know how that method is implemented.
<pipework> benzrf: I trolled my coworkers with that recenrly.
<pipework> I was thinking of putting together a whole talk about 1.8 and 1.9 with fibers vs fiburs :d
procat has quit [Ping timeout: 255 seconds]
<pipework> Then close with, "Here's the source for Fibur"
<elemenopy> pipework, here is the code i am running now in complete form https://gist.github.com/anonymous/17f8ce0e86415c296819
Vile` has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 256 seconds]
<elemenopy> i just run ruby 'GetURLS.rb' from command line
moritzs has joined #ruby
moritzschaefer has joined #ruby
procat has joined #ruby
<pipework> elemenopy: Yeah that's not going to run in parallel.
<pipework> It's quite clearly going to require the ruby VM for each of the threads.
mferrier has joined #ruby
<elemenopy> pipework, ok so i should search something like 'ruby VM thread' or something like that in google?
zacts has joined #ruby
<pipework> elemenopy: Look up Ruby GVL
<elemenopy> pipework, ok will do
<volty> first of all put all those urls in lists (or, better, single list)
<pipework> elemenopy: You can also use a better ruby. I would suggest JRuby.
<pipework> volty: It won't really matter, though code cleanliness isn't very high in this script.
<volty> clean, first of all
usrj has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<volty> what I say about lists applies to many other probs, and since he is learning ...
nkumari has quit [Remote host closed the connection]
<volty> and do not bother me with your tribal-style polemics
<pipework> Stop wasting people's time.
<pipework> all the code cleanliness in the world won't make his code run like he wants it to on cruby.
wex13r has joined #ruby
<volty> one aspect does not exclude the other
kl has quit [Ping timeout: 244 seconds]
<pipework> Solve problems pragmatically, not dogmatically.
<volty> the world should be collaborative, and not confrontational
mferrier has quit [Ping timeout: 250 seconds]
econerd4ever has quit [Read error: Connection reset by peer]
<volty> nothing's more pragmatic than putting those urls in a list --- whatever way you deal with them later
econerd4ever has joined #ruby
<pipework> Anyways, elemenopy, what I would suggest besides not bothering with volty's advice, is to either use JRuby and modifying your code to work on that if you need, or you'll want to consider other methods of achieving parallelism.
<pipework> The code you wrote isn't up to the ruby community standards, but it doesn't really matter right now.
xymbol has quit [Quit: Be back later ...]
<elemenopy> pipework, ok i will research JRuby ty again!
<pipework> elemenopy: Cheers!
<volty> a list is a kind of mental parallelism, you treat in parallel (semantically) with iterators instead of sequentially naming variables
wjimenez5271 has joined #ruby
<pipework> No one cares
dkb20k has joined #ruby
dkb20k_ has quit [Read error: No route to host]
<volty> yap, this one would be a good example to illustrate the logic & soul of small coin teaching
<pipework> That's enough of that rubbish.
<volty> shame
ptierno has quit [Quit: leaving]
starless has left #ruby ["Leaving"]
ptierno has joined #ruby
VanillaGoat_ has joined #ruby
Guest46041 has quit [Quit: Guest46041]
SCHAAP137 has quit [Quit: Leaving]
hmsimha has joined #ruby
VanillaGoat__ has quit [Ping timeout: 240 seconds]
tus has quit [Ping timeout: 244 seconds]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
procat has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
neredsenvy has joined #ruby
Timgauthier has joined #ruby
Joufflu_ has joined #ruby
<volty> >> "address"
<eval-in__> volty => "address" (https://eval.in/221104)
Joufflu_ has quit [Client Quit]
Joufflu_ has joined #ruby
Joufflu_ has quit [Read error: Connection reset by peer]
gr33n7007h has quit [Ping timeout: 250 seconds]
<neredsenvy> I'm a bit new Ruby coming from ek (PHP) and yay (Java). I'm reading the docs and from docs I have gathered that self. (defines static method) so I assume this is also how you would access a static variable no ?
pengin has quit [Remote host closed the connection]
Joufflu has quit [Ping timeout: 244 seconds]
fabrice31 has joined #ruby
<jhass> neredsenvy: there's no such thing as static variables, the closest thing are @@class_variables
pengin has joined #ruby
<neredsenvy> I have a variable declared :name if I have an instance of my object and I call object.method as in my example above it should change the value of the attribute of this instance
<neredsenvy> Hm
<neredsenvy> jhass Can you look at my link and explain to me what's happening ?
<jhass> I'm rather surprised you don't get a NoMethodError on that
<jhass> oh, ActiveRecord, are you actually learning Rails?
TPBallbag has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
<pipework> jhass: How are class variables remotely similar to the idea of static variables?
<pipework> I'd think frozen objects assigned to constants are closer.
<jhass> they live in a class, I think that's pretty close to Java static variables
<jhass> do you think about constant variables maybe?
<pipework> jhass: But if the object hierarchy is gc'd...
<jhass> neredsenvy: I can't find a string method in the Rails API either
mkaesz has joined #ruby
<jhass> so not sure why that doesn't NoMethodError in the first place for you
x1337807x has joined #ruby
<jhass> pipework: I don't quite follow what this has to do with GC
<volty> can smb try that - to make sure it doesn't depend on my buildings here ?
<neredsenvy> I'm guessing it's due to rails
pengin has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
<pipework> jhass: Egh, just that it's not really there in ruby at all, I guess.
fabrice31 has quit [Ping timeout: 265 seconds]
<jhass> neredsenvy: http://api.rubyonrails.org/ can't find it there
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> neredsenvy: anyway, to answer your quesiton
JoshGlzBrk has joined #ruby
<jhass> foo = "bar" _always_ creates a local variable
Zesty has joined #ruby
JoshGlzBrk has quit [Client Quit]
<jhass> no matter if a self has a method named foo or foo=
<neredsenvy> hm
<volty> nothing to do with gc, just exercising his pedantic quibbling :)
<neredsenvy> ill have to go re read the previous topic on classes
robustus has quit [Ping timeout: 255 seconds]
tier has quit [Remote host closed the connection]
charliebr73 has joined #ruby
<jhass> neredsenvy: if you want to learn plain ruby first, try to do it outside rails ;)
<volty> nobody with qt - to make sure that coupling with mechanize does not segfault (url above)?
robustus|Off has joined #ruby
<volty> please
robustus|Off is now known as robustus
porfa has quit [Ping timeout: 244 seconds]
charliebr73 has quit [Quit: Leaving]
usrj has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
donostiarra has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
AlSquirrel has quit [Quit: This computer has gone to sleep]
samuel02 has joined #ruby
<jhass> bah
<jhass> neredsenvy: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
Hijiri has joined #ruby
livingstn has joined #ruby
tkuchiki has quit [Quit: Leaving...]
freerobby has joined #ruby
samuel02 has quit [Ping timeout: 244 seconds]
<volty> ops, it's nokogiri (required by mechanize)
TPBallbag has joined #ruby
ixti has quit [Ping timeout: 272 seconds]
<jhass> are you on 1.4? 1.3 has a nasty segfault when parsing invalid html from an IO
TPBallbag has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<volty> jhass: don't know, how do I get version ?
<jhass> Nokogiri::VERSION should have it
<volty> "1.6.4.1"
<jhass> okay, then you might've found a new one :P
bricker`work has quit [Ping timeout: 250 seconds]
usrj has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<volty> I am thinking if it is a segfault due to wrong building (but here everything was done in a clean way) or name/method clashing (during Qt's after on-exit cleanup)
yeukhon has joined #ruby
<volty> s/thinking/wondering/
oo_ has quit [Remote host closed the connection]
yeukhon has quit [Client Quit]
jenrzzz has joined #ruby
<volty> nice thing (at least for this stage) is that everything is ok till the end/exit of the application
<elemenopy> pipework, i was googling a bit and stumbled across this for a possible solution? i know you said to use JRUBY but i came across this and was wondering if you approve of something like this in place of JRUBY https://blog.engineyard.com/2013/ruby-concurrency
mleung has quit [Quit: mleung]
oo_ has joined #ruby
<pipework> elemenopy: I don't think it would help.
mistermocha has quit [Remote host closed the connection]
Mars` has quit [Ping timeout: 265 seconds]
benzrf is now known as benzrf|offline
<elemenopy> pipework, ok im glad i checked because i read teh whole thing and was about to start copy pasta
mathias2 has joined #ruby
<pipework> elemenopy: Try installing jruby (I use chruby and ruby-install) and running your ruby program with jruby.
<elemenopy> oh are you serious? that's it?
<elemenopy> i thought i had to like rewrite it, that's why i was lurking
zorak8 has joined #ruby
<elemenopy> pipework, im on it
moritzschaefer has quit [Ping timeout: 264 seconds]
iamjarvo has joined #ruby
<pipework> elemenopy: It might be alright, you might need to do a little bit of swapping out.
emmesswhy has quit [Quit: This computer has gone to sleep]
iamjarvo has quit [Max SendQ exceeded]
<pipework> Like if you're using activerecord (through rails or not), you might have to switch your adapter to something from jruby.
moritzs has quit [Ping timeout: 264 seconds]
iamjarvo has joined #ruby
<elemenopy> i use 'sequel' gem
jonr22 has joined #ruby
<pipework> elemenopy: You might need to see if you can use that on jruby or what you'll have to do.
<elemenopy> pipework, ok ok i c i c
NameNotFound has quit [Ping timeout: 272 seconds]
havenwood has quit []
Zesty has quit [Quit: Linkinus - http://linkinus.com]
mathias2 has quit [Ping timeout: 245 seconds]
Azure has quit [Quit: restarting]
NameNotFound has joined #ruby
tlarevo_ has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
adriancb has joined #ruby
ferr has quit [Ping timeout: 255 seconds]
fuhgeddaboudit has joined #ruby
usrj has joined #ruby
tlarevo has quit [Ping timeout: 264 seconds]
ferr has joined #ruby
godd2 has joined #ruby
renderful has joined #ruby
Azure has joined #ruby
crdpink has quit [Ping timeout: 272 seconds]
<elemenopy> pipework, first thing that broke was the gems i was using. 'nokogiri' LoadError: no such file to load
adriancb has quit [Remote host closed the connection]
krz has joined #ruby
adriancb has joined #ruby
prasselpikachu has quit [Ping timeout: 245 seconds]
<pipework> elemenopy: Are you using a Gemfile?
hmsimha has quit [Ping timeout: 255 seconds]
<elemenopy> pipework, yea i am using nokogiri and other gems like 'sequel' and 'json'
tkuchiki has joined #ruby
Spami has joined #ruby
kevinxu has joined #ruby
<pipework> elemenopy: Ah so you do have a Gemfile?
kevinxu is now known as Guest37704
Guest37704 has quit [Max SendQ exceeded]
<elemenopy> pipework, not really i just have two files. one file is a main file and it calls a class file
<pipework> elemenopy: Ah so since you aren't, you'll need to install those gems yourself.
renderful has quit [Ping timeout: 272 seconds]
<elemenopy> pipework, ok so what can it mean if i have no issues when just running 'ruby GetURLS.rb'. do i have to like 'jruby gem install xxxxx' then under jruby?
<pipework> elemenopy: You will have to install the gems under jruby.
bricker`work has joined #ruby
<elemenopy> pipework, ah hah! ok lets try that brb
Mars` has joined #ruby
<pipework> Depending on how you installed jruby, you'll have different ways to install the gems. I'd just suggest `jruby -S gem install $gem`
moritzschaefer has joined #ruby
moritzs has joined #ruby
baweaver has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: Connection reset by peer]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
<elemenopy> pipework, ok yea something is def happening now
<pipework> elemenopy: 'something' is definitely a thing.
tymat has left #ruby [#ruby]
deject3d_ has joined #ruby
henesy has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has joined #ruby
mkaesz has quit [Ping timeout: 256 seconds]
gsd has quit [Client Quit]
gmas has joined #ruby
porfa has joined #ruby
emmesswhy has joined #ruby
cirn0 has joined #ruby
usrj has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
AlexRussia has quit [Quit: WeeChat 1.1-dev]
econerd4ever has quit [Read error: Connection reset by peer]
econerd4_ has joined #ruby
Xeago has quit [Remote host closed the connection]
amclain has joined #ruby
<elemenopy> pipework, i think this is the error now that you were mentioning earlier about the tweaking, we get this error now after i corrected the more obvious errors from before using the jruby -S command. Sequel::AdapterNotFound: LoadError: no such file to load -- mysql
<pipework> elemenopy: So, you'll want to configure sequel to use an odbc adapter for mysql.
kireevco1 has quit [Ping timeout: 245 seconds]
Jake232 has joined #ruby
wjimenez_ has joined #ruby
corehook has joined #ruby
oo_ has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NoNMaDDeN has joined #ruby
stunder has joined #ruby
St1gma has quit [Read error: Connection reset by peer]
St1gma has joined #ruby
econerd4_ has quit [Remote host closed the connection]
wjimenez5271 has quit [Ping timeout: 245 seconds]
econerd4ever has joined #ruby
Mars` has quit [Ping timeout: 264 seconds]
Jarboe has joined #ruby
wsmoak has quit [Quit: wsmoak]
havenwood has joined #ruby
jimbach has joined #ruby
bricker`work has quit [Quit: leaving]
econerd4ever has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
AlexRussia has joined #ruby
<elemenopy> pipework, ok ok ok , so i've got it running again after some tweaking and stuff.... but alas it is not running all the threads at once :(
<pipework> elemenopy: How weird. Let's see, gist your latest program.
chris__ has joined #ruby
<elemenopy> ok
Channel6 has joined #ruby
havenwood has quit [Remote host closed the connection]
deric_skibotn has quit [Ping timeout: 255 seconds]
St1gma has quit [Read error: Connection reset by peer]
St1gma has joined #ruby
<pipework> elemenopy: Why are you looping?
reinaldob has joined #ruby
<elemenopy> pipework, i want it to keep running forever :)
<elemenopy> pipework, i want it to cycle back around when the thread finishes
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michael_mbp has quit [Excess Flood]
lkba has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
<pipework> elemenopy: How are you running the file? I'd suggest to switch the top line to /usr/bin/env ruby
<elemenopy> right now i just run it inside of 'screen' and let it sit for a while during testing phase
<elemenopy> oops, sorry
<elemenopy> pipework, right now i just run it inside of 'screen' and let it sit for a while during testing phase
<pipework> elemenopy: Let's remove the loop and try to get it to run in parallel.
it0a has joined #ruby
<elemenopy> pipework, ok lets do it
duncannz has quit [Remote host closed the connection]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<elemenopy> pipework, ok i just commented out the loop only , testing now
michael_mbp has joined #ruby
<pipework> elemenopy: Well, you'll want to print some numbers in the threads or something.
reinaldob has quit [Ping timeout: 258 seconds]
<elemenopy> i am it's running and i can tell it's not hitting the "garena" threads
<elemenopy> pipework, the garena threads are at the bottom area and it's not printing out those threads
<elemenopy> pipework, let me try to make it do less work and see if the garena threads eventually actually fire off
<zacts> hm.. I'm wondering if you guys can help me figure out a good path to learning ruby well.
<zacts> I've seen the links on http://ruby-lang.org/
<zacts> and I'm going to do the rubymonk and ruby koan tutorials
<zacts> what should I read after that? books?
TPBallbag has joined #ruby
razieliyo has quit [Quit: Saliendo]
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
<agent_white> zacts: POODR (Practical Object Oriented Design in Ruby
<agent_white> A great book by Sandy Metz
<agent_white> I would definitely recommend it.
<pipework> elemenopy: Look at your gist again.
<pontiki> some notes on learning ruby programming: http://blog.tamouse.org/pages/learning/
<zacts> ok, should I have read the pragmatic press programming ruby before that one, or will my online tutorials be enough to understand Metz's book?
<pipework> zacts: I think you need to read the first half of Metaprogramming Ruby
<pipework> It explains the a lot of ruby and how the object model works.
<zacts> pontiki: ah ok, thanks for the link
<pontiki> i wouldn't hand that to a newbie, pipework
<pontiki> but soon
<zacts> pipework: the first half of the metaprogramming ruby monk tutorial?
<pipework> pontiki: I would.
<pipework> The first half has nothing to do with metaprogramming.
<pontiki> before they knew the syntax?
xorax has quit [Ping timeout: 255 seconds]
<elemenopy> pipework, ok let me change this 1 sec my finger is hurt :)
<pipework> It's all about object model and understanding how ruby thinks and looks things up.
troyready has quit [Ping timeout: 250 seconds]
<pipework> zacts: No, the book. Have you learned any other programming languages before?
gsd has joined #ruby
zorak8 has quit [Ping timeout: 240 seconds]
Rojo has joined #ruby
<agent_white> zacts: You shouldbe fine with the book! It uses great, simple examples of what to and what not to do. In general it has helped my understanding of OOP as a whole.
<volty> go and digs the bits of the computer -- to "know how the computer thinks "
TPBallbag has quit [Ping timeout: 255 seconds]
robbyoconnor has joined #ruby
<volty> programming is about abstraction on data transformations
<volty> metaprogramming is difficult, especially for beginner
<volty> s
<pontiki> i truly loved metaprogramming in ruby, v.1, have not read v.2 yet, but i expect it to be equally wonderful
<zacts> pipework: I know a bit of Perl
yetanotherdave has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
moritzschaefer has quit [Ping timeout: 250 seconds]
<zacts> but not much no.
<pontiki> even if you never expect to do metaprogramming, pipework is *absolutely* correct, the book is fantastic at explaining the ruby object model
<zacts> I have much to learn, but I use vim
<volty> those who advice those things to beginners just want to pose «I am so smart, try get me!»
<pipework> zacts: I'd suggest reading through Learn to Program.
Spami has quit [Quit: This computer has gone to sleep]
eka has joined #ruby
<zacts> pipework: I'm almost done with it
moritzs has quit [Ping timeout: 250 seconds]
Spami has joined #ruby
Spami has quit [Remote host closed the connection]
graft has quit [Ping timeout: 265 seconds]
amclain has quit [Quit: Leaving]
<pipework> zacts: Ah good. The next important book for just ruby essentials before metaprogramming ruby is called the black book. It's here: http://www.manning.com/black2/
<volty> nobody's born learned, get the clue and stop posing
<agent_white> "I have much to learn, but I use vim" -- /me pictures person with rockets attached to all ligaments
hiyosi has quit [Ping timeout: 272 seconds]
<pipework> volty: Stop being butthurt because you gave people bullshit advice. Everyone does it when they start learning how to help people, I've moved on from it and so should you
<pontiki> and an ignore is locked
<pipework> agent_white: Haha.
mathias2 has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
<zacts> pipework: ah ok, so after learn to program, then do: black book -> metaprogramming ruby?
corehook has quit [Remote host closed the connection]
<zacts> so is the pragmatic programming ruby more of a reference book?
Axy has quit [Read error: Connection reset by peer]
<pipework> zacts: That's what I'd suggest.
<zacts> ok cool
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<pipework> zacts: Yeah the pickaxe, as it's called, is a good book to flip through but it's more of a reference book.
jonr22 has quit [Remote host closed the connection]
apeiros__ has quit [Remote host closed the connection]
<elemenopy> pipework, omg
rshetty has joined #ruby
<volty> putting urls in an array (instead of handling them with t1, t2, t3 ... ) isn't bullshit advice. It's essential, teacher of my boots
<pontiki> i read through the first version, back in the day. what a slog.
<elemenopy> pipework, how could i not see this? the issue the order in which i am calling join
<elemenopy> moving all thread declarations above the initial join fixes the issue
rshetty has quit [Remote host closed the connection]
<pipework> volty: It had nothing to do with his problem. Stop solving problems that aren't related to the issue.
iamjarvo has joined #ruby
<pontiki> zacts: have you got the latest version of programming ruby?
<elemenopy> pipework, moving all the thread.new to be together , and calling all the joins at the end fixes it :)
<volty> it was an advice, dumby, i didn't state that it was a solution
<pipework> elemenopy: :D
<zacts> yeah I have programming ruby 4th edition
<pontiki> awesome :)
<elemenopy> pipework, dude that is nuts
<elemenopy> pipework, but it actually makes sense
<pipework> elemenopy: Yeah, I thought it was where you were calling join.
<zacts> pipework: so which edition of metaprogramming ruby should I get?
<pipework> The work was done in the thread already, but the joins were being called one after another.
<pipework> zacts: The latest is good.
<pontiki> zacts: the black book is "The Well-Grounded Rubyist" by David Black -- quite good, if not essential, even
<zacts> ok cool
<elemenopy> pipework, ruby was doing exactly what i was asking it to, but i was asking incorrectly :)
djbkd has quit [Remote host closed the connection]
<pipework> elemenopy: Fun stuff, innit?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<elemenopy> pipework, fml haha well i think i learned a very valuable lesson for the night
<elemenopy> pipework, and your each method is also better
<pipework> elemenopy: There's more nice things that can be done, but for something small and one-off like this, it's mostly mental masturbation.
<pipework> I like pretty code.
goshdarnyou has joined #ruby
<pontiki> i had his earlier book when i started in on ruby and rails "Ruby for Rails" -- best book ever, for the time
narcan has joined #ruby
mathias2 has quit [Ping timeout: 272 seconds]
duncannz has joined #ruby
Nilium has quit [Quit: <kristin> Cower is like... I dunno. sometimes he seems senile and other times he seems like a middle schooler.]
tus has joined #ruby
<volty> @ISSUECOP <pipework> volty: It had nothing to do with his problem. Stop solving problems that aren't related to the issue.
djbkd has joined #ruby
<volty> tell me how you determine what is an issue
tus has quit [Client Quit]
<pipework> Here's where I remind people not to feed trolls.
<sevenseacat> lol issue cop
<sevenseacat> oh shit
<volty> pimply man, stop barking at me
agjacome has quit [Quit: leaving]
<volty> i just gave an advice that imo was a good one
siwica has quit [Quit: siwica]
<volty> it was only you that started to bark at me
<pipework> Crap, I linked him to black2, not black3.... http://www.manning.com/black3/
<Radar> !popcorn
corehook has joined #ruby
<pipework> Radar: Lol, someone allowed your bot in here? :D
<Radar> pipework: It seems that way
<volty> mine your business, explain what you whatever think is best, and leave the others tell theirs
garycruise has joined #ruby
<sevenseacat> we try not to use it too much in here.
* pipework becomes a prospector to mine his business
m3_del has joined #ruby
<pontiki> mine your own bidness
<Radar> volty: why so aggressive?
<Radar> Did pipework kill your dog?
<volty> ahah
<pipework> Radar: He told someone that the way to acheive concurrency in ruby is to use arrays.
<Radar> oh I see.
<sevenseacat> o.O
<pipework> The code looked like this though: https://gist.github.com/anonymous/9cec1c959a7454905a18
<gr33n7007h> ./admin.rb:85: syntax error, unexpected keyword_end, expecting end-of-input I can't find no frikken end #=> https://gist.github.com/anonymous/41bc19c70c2f6abb6d53
<volty> that one in real life can only hide his pimples
<pipework> The problem was that they weren't calling join in the right place and that they weren't using a ruby that can take advantage of concurrency, but volty thought the issue had to do with code cleanliness.
<volty> do not lie
joshingly has joined #ruby
x1337807x has joined #ruby
<Radar> pipework: stop feeding the trolls plzkthx
<sevenseacat> :D
<pipework> Radar: You're late.
<volty> i just said that it is better to put those urls in an array
<pipework> [18:52:27] <pipework> Here's where I remind people not to feed trolls.
mattstra_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<Radar> oops
<pipework> Anyways the chum was helped and enlightened for it.
<Radar> Grand.
<pipework> innit
<gr33n7007h> Radar, A frikken do, you know how long i've been looking at that, nice one
<volty> do not go round, fakeman, the mine was only about better putting those urls in an array -- a good advice for a beginner, imo
<Radar> gr33n7007h: my paypal is radarlistener@gmail.com just FYI
<pontiki> :D
<pontiki> tip jar
ramfjord has quit [Ping timeout: 255 seconds]
<gr33n7007h> sweet, transfering money now :)
rshetty has joined #ruby
<Radar> thanks :D
jonr22 has joined #ruby
<pontiki> anyone use airpair?
<Radar> pontiki: yes
<Radar> I like it
<pipework> pontiki: nope, but I've looked at it.
<pipework> I pair with people for free on open source projects if scheduling allows.
rshetty has quit [Remote host closed the connection]
<pontiki> as a mentor?
<pipework> Not sure I'd want to put that out just onto the general internet for any random though.
<sevenseacat> i dont pair with people because they would make fun of me D:
<pipework> pontiki: As a pair. I learn as often as I impart knowledge.
<pipework> sevenseacat: funny accent!
<pontiki> ah, cool
tyll_ has joined #ruby
<Radar> pontiki: yes, as a mentor
<volty> he's looking after meta-retarded, ahah
fabrice31 has joined #ruby
<volty> to teach
<pontiki> hum
<pipework> I don't actually approach pairing as a mentor mentee thing, even if I'm the more knowledgable one about the subject.
<sevenseacat> pipework: too right, mate.
<Radar> STRUTH
pietr0 has quit [Quit: pietr0]
<sevenseacat> i was going to say 'too right cobber' but thought that was a bit *too* ocker.
<pontiki> i've never paired officially with anyone
<agent_white> I wish there was more mentoring pairing stuff for noobs. I joined one from reddit, but we were both beginners... blind leading the blind.
amclain has joined #ruby
<pontiki> if shoulder surfed and kibitzed
mkaesz has joined #ruby
<pontiki> s/if/i've/
<sevenseacat> i will forever associate the word 'struth' with alf stewart.
djbkd has quit [Quit: My people need me...]
<pontiki> i have coded in public... which is weird as
<volty> enough :) bye to all, and advice to pipework to not break eggs (or bark) the next time somebody's trying to express his opinions
<pontiki> blah blah volty blah blah
<pipework> pontiki: You're a voyeur developer!
tyll has quit [Ping timeout: 264 seconds]
<pipework> Exciting.
<volty> do not behave like small coins
<Radar> Oh we all don't have volty on ignore yet?
<pontiki> sorta
<volty> do not go like a tribe
<pontiki> i was missing the fun
<volty> we are all humans, aren't we ? :)
<volty> bye
<pipework> Radar: I figure that if everyone ignores him, the poor new people won't have anyone to let them know his advice is rubbish when it sucks.
volty has quit [Quit: Konversation terminated!]
<pontiki> pipework: voyeur and exhibitioning, if you must know
<pipework> pontiki: Ah, that's quite the hobby.
<Radar> pipework: sounds fiar
<pontiki> exhibitionist*
tlarevo_ has quit [Remote host closed the connection]
<pipework> Radar: is fiar another one of your narnian words?
<pontiki> damn fingers have minds of their own
<Radar> fair*
gsd has joined #ruby
<pipework> Damn, was hoping to learn more Narnian so that I could try to talk down a hoopsnake or a dropbear if necessary.
tlarevo has joined #ruby
Nilium has joined #ruby
<Radar> heh
<pontiki> you still have to watch for the bunyips, regardless
<sevenseacat> come visit narnia then :P
fabrice31 has quit [Ping timeout: 264 seconds]
<pipework> That is frightening, pontiki.
jxf has quit [Ping timeout: 240 seconds]
<sevenseacat> come to rubyconf au in february!
<pontiki> i want to
nobitanobi has quit [Remote host closed the connection]
<pontiki> *really* want to
<pipework> sevenseacat: I wonder if my company wouldn't mind that...
skullman has joined #ruby
<pontiki> frikken february in minnesnowdia :(((
<sevenseacat> hear many australian accents and some kiwi ones
<pipework> I get like $5000/year to educate meself
<agent_white> pontiki: I feel you. It was -10 out today while I was tending to the farm amninals :(
<pontiki> :''(
<pipework> sevenseacat: You'd have to help me with my accent so I can come home and speak like a Narnian.
<sevenseacat> february in aus is hot :(
<sevenseacat> too hot
jonr22 has quit [Remote host closed the connection]
<pontiki> pipework: 5 grand makes a hecka stake for a good trip to oz
nobitanobi has joined #ruby
arup_r has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<pipework> pontiki: I mean, I don't have to spend it in one trip, but I can.
<pontiki> ever been?
<pontiki> i <3 melbourne
neredsenvy has left #ruby [#ruby]
<pipework> never even once
mikepack has joined #ruby
<pipework> I'd need to get my passport.
<pontiki> get it now
<pontiki> even if you don't go
cmoylan has quit [Ping timeout: 244 seconds]
<pontiki> the lead time on them is huge
Rojo has quit [Ping timeout: 244 seconds]
<pipework> I've been thinking about trying to convince ireland to give me citizenship.
<sevenseacat> i have a passport, ive never used it :(
<pipework> dual citizenship would be great between the US and Ireland. I could enter places as an Irishman that I might not be able to as an American.
<pontiki> you'd have to work on that accent, too
<sevenseacat> irish accents can be hot, but then again so can american ones
<pipework> pontiki: I live next to an irishman who has dual citizenship between the US and Ireland.
<pontiki> that's cool
<pipework> sevenseacat: Which American accents?
skullman has quit [Remote host closed the connection]
<sevenseacat> lots of them. like avdi grimm's accent.
chipotle has quit [Quit: cya]
<pipework> sevenseacat: Oh, that's like a combination of an accent and a really deep voice.
<pipework> Unless you don't really care either way for the deepness.
mikepack has quit [Ping timeout: 264 seconds]
<sevenseacat> the deepness is good :)
<pontiki> avdi's is the classic american radio voice
<pipework> Not what I expected when I first heard him. But I like hearing it.
<pontiki> sexy as hell
beilabs_ has joined #ruby
<pipework> "Talk weather to me, baby."
<pipework> I want to hear him imitate NPR.
<sevenseacat> i wasnt going to say it pontiki, but yeah :P
magic_ has joined #ruby
<pontiki> i get all buttery when he signs off with "happy hacking!"
samuel02 has joined #ruby
<porfa> d
* pipework sends logs to avdigrimm
luriv has quit [Ping timeout: 245 seconds]
genpaku_ has quit [Ping timeout: 244 seconds]
<zacts> pipework: ok, I got the books
nyanz has joined #ruby
genpaku has joined #ruby
chipotle has joined #ruby
<pipework> zacts: Sweet, now read. I really suggest typing out everything code-wise. Not because you won't get it when you read it, but typing it makes it easier for me to really 'get' it.
<zacts> ok, sure
<pipework> It becomes easier to recall and use when I've typed it.
dc_ has quit [Remote host closed the connection]
<pontiki> and take notes!
<pipework> And drink heavily!
<pipework> (wait, no, that's just me)
samuel02 has quit [Ping timeout: 245 seconds]
<pontiki> coders with drinks
<zacts> I drink tea and coffee
<pontiki> need to start a group like that
<zacts> and water
<pontiki> everyone around here is into beer
<pipework> My manager said I should always be sober while working. L-oh-fucking-L.
<pipework> pontiki: I mostly drink liquor and ciders.
<pontiki> i thought you were your own boss
<pontiki> yeah, i drink cider
<pontiki> i used to drink a lot more wine, but lately it just runs straight to my head
<pipework> Though admittedly, Radar turned me onto cider. I'd had them before, but hadn't really thought to like them.
<pontiki> i never liked beer
<pipework> pontiki: It goes to my head and my bladder, and I'm sure you know where it goes after that.
<pontiki> but i found cider first time i went to france
<pontiki> and wine of course
<pipework> No, I'm a company ginger now. Have been for a year.
wjimenez_ has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 245 seconds]
dkb20k_ has joined #ruby
<pontiki> oh, well - i was gonna say your manager is an ass
<agent_white> pontiki/pipework: You should try Smith & Forge. Had it for the first time recently, damned good cider.
<agent_white> Also Johnny Appleseed... but woodchuck is my go-to :)
<pontiki> oh dear
<pontiki> do not like woodchuck
dkb20k has quit [Read error: Connection reset by peer]
dkb20k__ has joined #ruby
<pontiki> scottish strongbow is my go-to when i can find it
<pontiki> the stuff we have lately is not that
<pipework> I mostly drink stuff from the pacific northwest. I'm trying to track down the one I like the most though.
<pipework> Strongbow cider is pretty good.
<agent_white> pontiki: Ooo... I'll have to try it!
omosoj has quit [Ping timeout: 250 seconds]
<pontiki> ace peary from sebastopol is awesome
<pipework> Portland Cider Company isn't terrible, but most of it is super acidic candy cider.
<pontiki> also hard to find
dseitz has joined #ruby
<pontiki> like angry orchard :P
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pontiki> crispin is a good local cider
<gr33n7007h> old rosie or black dragon
Soda has quit [Remote host closed the connection]
<Radar> love me some angry orchard
<Radar> gr33n7007h: still waiting on that paypal money btw
<pipework> Radar: What kind?
<pontiki> i do not like angry orchard
<Radar> pipework: the cider
<pipework> Radar: There's like a bunch
<agent_white> Out here in the boonies, if you don't drink Coors then you're some fancy city-slicker.
<pipework> I've been trying all the special kinds lately.
<Radar> pipework: I like all cider
omosoj has joined #ruby
<pipework> Radar: Even the elderflower?
<Radar> oh god no
<pipework> That was terrible.
<Radar> agree
<pipework> Radar: Two towns has one of the worst ciders I've ever had. Looking it up.
<Radar> I had a hoppy cider in Bend. The damn reason I don't drink beer is because of the hops
<pontiki> if you can find the ace, give it a go
<pontiki> too right
<pipework> pontiki: "Ace" or "The Ace"? Picture?
dkb20k_ has quit [Ping timeout: 264 seconds]
<pontiki> the brand is ace, and there's a picture of a ace of spades playing card on the bottle, usually
<pontiki> let me see if i have one
larissa has quit [Quit: Leaving]
<pipework> Atlas Blackberry/Elderberry Cider was horrible
<pipework> pontiki: Ah.
<pipework> that's obviously a flavor, but the whole ace card bottle thing
chrishough has joined #ruby
tymat has joined #ruby
nonks has joined #ruby
<pontiki> yeah, that's it
<pontiki> sorry, i think i remember an old logo. but that's definitely it
<pontiki> when we used to go up to sebastopol for the celtic music festival, we'd spend a fair bit of time at their pub
greenbagels has joined #ruby
kyb3r_ has joined #ruby
hiyosi has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
m3_del has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
m3_del has joined #ruby
m3_del has quit [Read error: Connection reset by peer]
IrishGringo has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
sptq has quit [Ping timeout: 255 seconds]
adamholt has quit [Ping timeout: 255 seconds]
porfa_ has joined #ruby
hiyosi has quit [Ping timeout: 258 seconds]
porfa has quit [Ping timeout: 255 seconds]
Rydekull has quit [Ping timeout: 255 seconds]
porfa_ is now known as porfa
DefV has quit [Ping timeout: 255 seconds]
brendenb has quit [Ping timeout: 265 seconds]
Parker0 has joined #ruby
DefV has joined #ruby
m4rCsi has joined #ruby
spacemud has quit [Ping timeout: 255 seconds]
certainty has quit [Ping timeout: 255 seconds]
rainfyre has joined #ruby
jnylen has quit [Ping timeout: 255 seconds]
m4rCsi_ has quit [Ping timeout: 255 seconds]
jamooo_ has quit [Ping timeout: 255 seconds]
mattjbarlow has quit [Ping timeout: 265 seconds]
Brando753 has quit [Ping timeout: 265 seconds]
evvel2_ has quit [Ping timeout: 244 seconds]
adamholt has joined #ruby
tris has quit [Ping timeout: 272 seconds]
nateberkopec has joined #ruby
edwardly has quit [Ping timeout: 265 seconds]
mistergibson has quit [Ping timeout: 265 seconds]
lorn_ has quit [Ping timeout: 265 seconds]
knight1 has quit [Ping timeout: 265 seconds]
Rydekull has joined #ruby
haroldwu has quit [Ping timeout: 265 seconds]
durnik has quit [Ping timeout: 265 seconds]
evvel2 has joined #ruby
brendenb has joined #ruby
spacemud has joined #ruby
mattjbarlow has joined #ruby
certainty has joined #ruby
omosoj has quit [Quit: leaving]
jamooo has joined #ruby
garycruise has quit [Quit: 离开]
durnik has joined #ruby
haroldwu has joined #ruby
Brando753 has joined #ruby
pdtpatrick_ has joined #ruby
tris has joined #ruby
mistergibson has joined #ruby
sptq has joined #ruby
jnylen has joined #ruby
lorn has joined #ruby
nateberkopec has quit [Client Quit]
<Radar> RuntimeError: can't add a new key into hash during iteration
<Radar> Well that's a new one.
<pipework> Radar: is it?
edwardly has joined #ruby
<Radar> I've never seen that error before.
<pipework> Oh it's a fun one, but you clearly know what caused it.
radic has quit [Disconnected by services]
radic_ has joined #ruby
kireevco has joined #ruby
<pipework> I've hit it and went 'duh! stupid pipework'
kireevco has quit [Max SendQ exceeded]
<Radar> I do?
<Radar> :P
<sevenseacat> trying to modify a hash that you're iterating over? >_>
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<pipework> Radar: You're doing a map or something like an enumerable method and you're adding keys into the hash you're iterating on
<Radar> Not iterating over a hash
edwardly has quit [Changing host]
edwardly has joined #ruby
<Radar> this is chendo's code so it's a bit crazy (in a good way)
<pipework> Oh.
<sevenseacat> hah
kireevco has joined #ruby
<pipework> Is it opensauced?
<Radar> no
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
<sevenseacat> sekrit lifx code.
mkaesz has quit [Ping timeout: 272 seconds]
<pipework> Oh you work with the chendo?
<Radar> yes
<pipework> I thought he was still working on his own thing, doing shortcat and other apps.
<pipework> I still use the shit out of shortcat.
nobitanobi has joined #ruby
<Radar> naw, he's working at lifx being my manager and stuff
nonks has quit [Ping timeout: 250 seconds]
<sevenseacat> being a boss man? interesting
<Radar> he doesn't like being the boss man
<pipework> Radar: Oh.
<pipework> Didn't figure him for a manager.
<pipework> Some day when I get fed up with developers that aren't me (and those that are me), I'll get into management so I can have a fancy chair and a bigger salary.
<pipework> That may or may not coincide with my early demise shortly following that transition though.
jimbach has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
takle has quit [Remote host closed the connection]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
Eiam_ has joined #ruby
<Radar> Yeah, he's really reluctant to be the manager. But he's the most senior (in programming terms... in actual terms he's the youngest) and so he's the manager
<Radar> He also knows the stack the best
<pipework> Radar: Maybe I'll just troll him about documenting the binary protocol instead of you.
rshetty has joined #ruby
<pipework> You've not responded too hilariously lately.
jenrzzz has quit [Ping timeout: 264 seconds]
<Radar> brb
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
bigmac has joined #ruby
yfeldblum has quit [Remote host closed the connection]
skullman has joined #ruby
livingstn has quit []
<pontiki> better and more technical experience and knowledge often does not translate into effective management
<pontiki> frequently, it goes the other way
Azure has joined #ruby
arup_r has quit [Quit: Leaving.]
braincrash has quit [Quit: bye bye]
wjimenez5271 has joined #ruby
B1n4r10 has joined #ruby
B1n4r10 has quit [Client Quit]
pietr0 has joined #ruby
nonks has joined #ruby
braincrash has joined #ruby
maletor has joined #ruby
oo_ has joined #ruby
skullman has quit [Remote host closed the connection]
nonks has quit [Ping timeout: 250 seconds]
kp666 has joined #ruby
ukfagsmoker has joined #ruby
oo_ has quit [Ping timeout: 258 seconds]
<Radar> back
<ukfagsmoker> what is the point of working with rspec? i don't quite get it although i am taking a course from codeschool
chipotle has quit [Ping timeout: 250 seconds]
<Radar> ukfagsmoker: RSpec or testing in general?
<ukfagsmoker> well testing in general
<ukfagsmoker> is rspec a "language
<ukfagsmoker> "language"
<Radar> It's a behaviour driven development framework built on Ruby
xorax has joined #ruby
<Radar> It allows you to write code to test code you haven't written yet
<Radar> The point of testing is to make sure your code does what you expect it to... and then if it changes in the future, to have that framework in place
chipotle has joined #ruby
echooo has joined #ruby
<pipework> ukfagsmoker: Testing is great because it lets you know when something you made an assertion on no longer passes that assertion.
robbyoconnor has quit [Quit: Konversation terminated!]
<ukfagsmoker> but aren't you writing that code twice in a way? wouldn't it be better to just run it?
<pipework> Imagine, if you would, if we didn't have smoke detectors and your only hope of not dying in your sleep was that you woke up before you died.
<pipework> ukfagsmoker: Run it and then test all the possible permutations that matter manually?
<pipework> What happens after you add another feature that's related? Do you test permutations of feature A times permutations of feature B manually?
Channel6 has quit [Quit: Leaving]
<pipework> What if I told you could automate these tests to make sure the code you wrote actually works when you add new code and complexity?
<ukfagsmoker> i don't know mate, this whole thing to me is rather confusing
<pipework> ukfagsmoker: It can be.
chris__ has quit [Ping timeout: 244 seconds]
<pipework> It really depends on how eager you are to push potentially completely horrendously broken things out because you relied on testing manually instead of letting a computer do it for you.
<ukfagsmoker> but aren't you letting the computer test the things for you when you're running your code?
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework> ukfagsmoker: Why do you think just running the code will suss out problems with input and timing?
<josephndenton> ukfagsmoker: Code that runs is not always code that is error free.
<pipework> It being valid ruby doesn't mean the code actually does what you want it to.
<godd2> ukfagsmoker no. testing and running are two different kinds of things. It's like a power supply. You aren't testing your computer's power supply, but you are using it. power supply testing would be taking it out and checking the voltages on each wire
<pipework> You'd think if that were true, software would always just work and there'd be no hilarious reddits like talesfromtechsupport
<pipework> subreddits that is
<godd2> pipework cant live without my chrome ultra though
<josephndenton> ukfagsmoker: The real beauty of testing comes as complexity grows. If your test suite still passes after a new feature, you can rest assured that you didn't break anything.
<josephndenton> godd2: Ultron* :p
<pipework> And if you're concerned about writing twice the code, you're also wrong. It's not unreasonable for the tests to be larger or more numerous than your implementation.
d4nku has quit [Ping timeout: 272 seconds]
coderhs has quit [Ping timeout: 256 seconds]
noop has joined #ruby
yfeldblum has joined #ruby
bigmac has quit [Remote host closed the connection]
slawrence00 has joined #ruby
benzrf|offline is now known as benzrf
<godd2> ukfagsmoker It's true that there are other ways to get the benefits that testing provides you, but running your code is not one of them.
<pipework> You could hire a bunch of QA's, who'll either constantly repeat the same exploratory-style tests, or they'll just write tests for you.
<Radar> ukfagsmoker: Would you rather run your code manually 100 times or write a test that can be ran 100 times?
<lampd1> mmm selenium
<pipework> Complexity is the biggest thing to consider.
<pipework> lampd1: ugh slow selenium
<lampd1> :P
yfeldblum has quit [Ping timeout: 265 seconds]
<lampd1> what you use?
<lampd1> i actually don't use it much :P
<pipework> I push my tests down as low into the stack as I can while maintaining a healthy and minimal set of functional tests.
<pipework> But for functional testing web applications, I tend to use phantomjs
<lampd1> nice, i'll have to check it out
oo_ has joined #ruby
<lampd1> i do a lot of ecom, sometimes have to make some annoying functional tests :P
<pipework> I usually work on backends these days though, so I test my clients with integration tests and the app itself with request specs.
chris__ has joined #ruby
<lampd1> yeah
Cache_Money has joined #ruby
nkumari has joined #ruby
bluOxigen has joined #ruby
pdtpatrick_ has quit [Quit: pdtpatrick_]
krz has quit [Ping timeout: 272 seconds]
jusmyth has joined #ruby
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
sinequanon has joined #ruby
mistermocha has joined #ruby
freerobby has quit [Quit: Leaving.]
jusmyth has left #ruby [#ruby]
j_mcnally has joined #ruby
mathias2 has joined #ruby
nonks has joined #ruby
<josephndenton> Capybara no longer good for higher level tests?
mkaesz has joined #ruby
benzrf is now known as benzrf|offline
<pipework> Why wouldn't it be?
<pipework> I use capybara to drive phantomjs
hephaestus_rg has joined #ruby
<pipework> Most people who use ruby and selenium use capybara with the selenium driver.
i_s has quit [Ping timeout: 264 seconds]
<hephaestus_rg> hi there, does anyone know of something like string.parameterize in python?
wjimenez5271 has quit [Remote host closed the connection]
<pipework> hephaestus_rg: What does that do?
<pipework> Do you mean, "Can I use parameterized strings in Ruby?"
mistermocha has quit [Ping timeout: 258 seconds]
<Radar> hephaestus_rg: !explain
<helpa> hephaestus_rg: Please explain your problem better as we are having trouble understanding what you mean. A Gist (http://gist.github.com) is always helpful!
hamakn has quit [Remote host closed the connection]
maestrojed has quit [Quit: Computer has gone to sleep.]
arescorpio has joined #ruby
hamakn has joined #ruby
<hephaestus_rg> i mean, i'm writing a python program. and ruby/rails has a nice function called parameterize
mark06 has joined #ruby
<hephaestus_rg> which removes all nasty characters from a string to make it look like a pretty url
<hephaestus_rg> does such a thing exist in tornado/python or do i need to write it from scratch
<pipework> hephaestus_rg: Ask pythonists then.
fabrice31 has joined #ruby
<hephaestus_rg> i did :)
mskaesz has joined #ruby
mathias2 has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
<godd2> hephaestus_rg keep in mind that rails adds a bunch of it's own classes and methods, so you probably have to write it from scratch just like it was for rails
mkaesz has quit [Ping timeout: 240 seconds]
hamakn has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
shortCircuit__ has joined #ruby
hiyosi has joined #ruby
<hephaestus_rg> thanks godd2
spastorino has quit [Quit: Connection closed for inactivity]
charliesome has quit [Quit: zzz]
Cache_Money has quit [Quit: Cache_Money]
<ukfagsmoker> thanks guys for explaining the power of tests
Cache_Money has joined #ruby
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ukfagsmoker> i now understand how they're used and why but i won't have an appreciation for them until i really will start working with them
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiyosi has quit [Ping timeout: 264 seconds]
stunder has quit [Quit: Screw you guys I'm going home]
Rojo has joined #ruby
yfeldblum has joined #ruby
Techguy305 has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
emmesswhy has joined #ruby
Morkel has joined #ruby
emmesswhy has quit [Client Quit]
IrishGringo has quit [Ping timeout: 245 seconds]
maestrojed has joined #ruby
Lucky___ has joined #ruby
hamakn has joined #ruby
maestrojed has quit [Max SendQ exceeded]
krz has joined #ruby
joshingly has quit [Quit: Connection closed for inactivity]
maestrojed has joined #ruby
noop has quit [Ping timeout: 264 seconds]
VanillaGoat_ has quit [Ping timeout: 255 seconds]
NoNMaDDeN has joined #ruby
pdtpatrick_ has joined #ruby
Platini has quit [Ping timeout: 255 seconds]
<mark06> anyone wants to help fixing the issues? https://github.com/renatosilva/easyoptions :)
Techguy305 has quit [Read error: Connection reset by peer]
Rojo has quit [Ping timeout: 255 seconds]
mathias2 has joined #ruby
Gadgetoid has quit [Ping timeout: 245 seconds]
<Radar> ukfagsmoker: I have a blog post that's based on a true story about tests: http://ryanbigg.com/2010/02/congratulations/
sinequanon has quit [Remote host closed the connection]
sinequanon has joined #ruby
adriancb has quit [Ping timeout: 258 seconds]
Gadgetoid has joined #ruby
<godd2> mark06 if you want to output to $stderr, just use warn instead of $stderr.puts
<agent_white> ukfagsmoker: Radar also has a good video on TDD with Conway's Game of Life. vimeo.com/31403388
arescorpio has quit [Excess Flood]
coderhs has joined #ruby
<mark06> godd2: what's the benefits
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<godd2> mark06 functionally it's the same, but it's not idiomatic to use global vars
<mark06> godd2: I'm more interested in eliminating $options and $arguments (not use global vaiables)
<mark06> godd2: four spaces and some other stuff are not idiomatic either :)
<mark06> but I don't feel like giving up four spaces, two are so odd
<mark06> most important things are the globa vars issue, and the listed bugs
<godd2> >> 2.odd?
<eval-in__> godd2 => false (https://eval.in/221136)
<godd2> mark06 why did you make them global variables to begin with?
<mark06> godd2: ah I see now, yeah warn and puts, better to read
<mark06> godd2: because it was the easiest way to make them fully available... I know now that I can put the vars within a class/module instead
<mark06> I just need time to write the code...
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
marcdel has joined #ruby
Platini has joined #ruby
<godd2> mark06 one big issue with globals is that if I require your code, it might interfere with another required file that defines $options
<godd2> so the solution here is to create a namespace for you code with a module that encapsulates the functionality of $options
<ukfagsmoker> thanks guys!
<godd2> so like EasyOpts::OPTIONS or something
<ukfagsmoker> are there any sites you'd recommend to watch code alongs?
arup_r has joined #ruby
<godd2> ukfagsmoker there are a few more great talks about unit testing examples. lemme grab one by sandy metz
Vile` has quit [Ping timeout: 264 seconds]
ecksit has joined #ruby
Platini has quit [Excess Flood]
amclain has quit [Quit: Leaving]
mskaesz has quit [Ping timeout: 245 seconds]
marcdel has quit [Ping timeout: 250 seconds]
Vile` has joined #ruby
<ukfagsmoker> thank you godd2 :)
Platini has joined #ruby
<ukfagsmoker> i heard that there were live coding videos, but they are now acquired by pluralsight
ferr has quit [Ping timeout: 258 seconds]
nkumari has quit [Remote host closed the connection]
<mark06> godd2: indeed, that's why I want to remove them
<mark06> godd2: it will be longer to be repeated everywhere in the client's code but EasyOptions::options[:name] is just better
Oog has joined #ruby
Platini has quit [Ping timeout: 240 seconds]
nkumari has joined #ruby
<Oog> i want a +? in a regex if that makes sense.... so "<http://www.msn.com>".match(/<(.*)>+?/)[1] - i want it to eat the > if present but if not i still want it to match
<godd2> (>+)?
lolmaus has joined #ruby
<Oog> not eating the > "<http://www.msn.com>".match(/<(.*)(>+)?/)[1] -> "http://www.msn.com>"
st1gma1 has joined #ruby
i_s has joined #ruby
marcdel has joined #ruby
<Oog> got it
<Oog> "<http://www.msn.com>".match(/<(.+)(>)+?/)[1]
<godd2> >> "<http://www.msn.com>".match(/<([^>]*)(>+)?/)[1]
St1gma has quit [Ping timeout: 258 seconds]
bbloom has joined #ruby
i_s has quit [Ping timeout: 250 seconds]
<Hanmac> godd2 & Oog i think that might be nicer:
<Hanmac> >> "<http://www.msn.com>"[/<([^>]*)(>+)?/,1]
nkumari has quit [Remote host closed the connection]
<Oog> that gets rid of > in the middle but i wan to keep them if there
kp666 has quit [Remote host closed the connection]
<Oog> did you index with a regex?! cna you do that?
<godd2> Oog Are you trying to parse htlm with regex?
<Oog> godd2: no im parsing the list-unsubscribe header of a mime email header
<Oog> wow you can index with a regex that is crazy
<Oog> i had no idea
ramfjord has joined #ruby
nkumari has joined #ruby
mistermocha has joined #ruby
<Oog> i split on , then use the mail library to parse what is possibly an email address but if it fails it means it is possibly a link if it starts with < so format is <link> so that is what imparsing - better way?
marcdel has quit []
<Oog> i spoke too soon my "<http://www.msn.com".match(/<(.+)(>)+?/)[1] actually fails
marcdel has joined #ruby
<Oog> maybe what i want isnt possible...
atraylen has joined #ruby
mistermocha has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
Techguy305 has joined #ruby
mikepack has joined #ruby
Techguy305 has quit [Max SendQ exceeded]
Platini has joined #ruby
awkwords has quit [Quit: snooze]
atraylen has quit [Ping timeout: 272 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
Platini has quit [Ping timeout: 265 seconds]
fandi has joined #ruby
reinaldob has joined #ruby
Techguy305 has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
Techguy305 has quit [Max SendQ exceeded]
dabockster has joined #ruby
dabockster has left #ruby [#ruby]
rshetty has quit [Remote host closed the connection]
Techguy305 has joined #ruby
Techguy305 has quit [Max SendQ exceeded]
corehook has quit [Remote host closed the connection]
Techguy305 has joined #ruby
henesy has quit [Quit: Ex-Chat]
reinaldob has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
lampd1 has quit []
Eiam_ has quit [Read error: Connection reset by peer]
Platini has joined #ruby
Eiam_ has joined #ruby
takle has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
JBreit has joined #ruby
rshetty has joined #ruby
jenrzzz has joined #ruby
takle has quit [Ping timeout: 272 seconds]
marcdel has quit []
JBreit has left #ruby [#ruby]
Joufflu has joined #ruby
samuel02 has joined #ruby
ecksit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shortCircuit__> marnig everyone
St1gma has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
st1gma1 has quit [Ping timeout: 258 seconds]
prasselpikachu has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
tagrudev has joined #ruby
nkumari has quit [Remote host closed the connection]
deject3d_ has quit [Quit: Computer has gone to sleep.]
dziga has left #ruby [#ruby]
agent_white has quit [Ping timeout: 244 seconds]
mkaesz has joined #ruby
agent_white has joined #ruby
Jarboe has quit []
mleung has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
kp666 has joined #ruby
<zacts> hi
tobago has joined #ruby
deject3d_ has joined #ruby
samuel02 has quit [Remote host closed the connection]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deject3d_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
tvw has joined #ruby
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
nkumari has joined #ruby
mleung has quit [Quit: mleung]
St1gma has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 256 seconds]
<gr33n7007h> johnny five is alive
St1gma has joined #ruby
sonOfRa has quit [Ping timeout: 250 seconds]
hiyosi has joined #ruby
last_staff has joined #ruby
BTRE has quit [Quit: Leaving]
nobitanobi has quit [Remote host closed the connection]
deject3d_ has joined #ruby
Techguy305 has quit [Remote host closed the connection]
<agent_white> herro
ndrei has joined #ruby
<zacts> ok I'm @ the last ch of the pragmatic 'Learn to Program' book that uses ruby. next is the black ruby book 2nd edition
sonOfRa has joined #ruby
<zacts> the orange tree exercise was fun
techsethi has joined #ruby
cirn0 has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 250 seconds]
mleung has joined #ruby
nonks has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
nrsk has joined #ruby
_5kg has quit [Ping timeout: 256 seconds]
nobitanobi has joined #ruby
anarang has joined #ruby
mleung has quit [Quit: mleung]
mleung has joined #ruby
hmsimha has joined #ruby
hmsimha_ has joined #ruby
VanillaGoat_ has joined #ruby
anaeem1_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
<chris__> lk;lk
anaeem1_ has joined #ruby
sigurding has joined #ruby
bal1 has joined #ruby
noop has joined #ruby
hmsimha has quit [Ping timeout: 255 seconds]
nonks has joined #ruby
Macaveli has joined #ruby
NoNMaDDeN has joined #ruby
keen___________2 has joined #ruby
chris____ has joined #ruby
terlar has joined #ruby
Nogbit has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
keen___________1 has quit [Ping timeout: 255 seconds]
Macaveli has quit [Client Quit]
sinequanon has quit [Remote host closed the connection]
Macaveli has joined #ruby
<shevy> wtf;wtf
sinequanon has joined #ruby
corehook has joined #ruby
chris__ has quit [Ping timeout: 244 seconds]
wolflee___ has quit [Read error: Connection reset by peer]
wolflee___ has joined #ruby
oleo__ has quit [Quit: Verlassend]
roolo has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
gmas has quit [Ping timeout: 265 seconds]
sinequanon has quit [Ping timeout: 265 seconds]
corehook has quit [Ping timeout: 258 seconds]
<EasyCo> Hey guys, I'm trying to sort an array of objects by the label property. ie. myarrayofobj.sort(&:label)
<EasyCo> But the problem is it's possible that not every item in the array is an object, it's possible that it's just nil
<EasyCo> Therefore throwing an undefined method error
sinequanon has joined #ruby
<godd2> EasyCo there are a couple solutions. One is to pass a block instead of just &:label and do a nil check inside
<godd2> another other ("better") solution is to use a Null Object Pattern
<godd2> so that everything in your aray is either an instance of a class that accepts label as a method, or the "null" version of the same class
kamilc__ has joined #ruby
<godd2> yet another solution is to use an Optional monad, but that's a different design direction than idiomatic Ruby tends to go
<zenspider> EasyCo: sort_by(&:label)
solars has joined #ruby
<zenspider> EasyCo: sorted = myarrayofobj.compact.sort_by(&:label)
samuel02 has joined #ruby
beilabs_ has quit [Ping timeout: 244 seconds]
roolo has quit [Quit: Linkinus - http://linkinus.com]
bigkevmcd has joined #ruby
chris____ has quit [Quit: leaving]
samuel02 has quit [Client Quit]
Photism has quit [Quit: Leaving]
josephndenton has quit [Ping timeout: 256 seconds]
<EasyCo> Thanks godd2, that's what I thought. Unfortunately I can't modify the array to fit a null object pattern
<EasyCo> zenspider: those don't solve the undefined method issue
mkaesz has quit [Ping timeout: 240 seconds]
<zenspider> EasyCo: garbage in garbage out
<zenspider> [1, "woot", {}].sort
<zenspider> doesn't make sense, does it?
<godd2> EasyCo just filter out nils before a sort?
<EasyCo> godd2: Yah that's what I'll do, thanks.
<EasyCo> zenspider: Unfortuantely I can't control the garbage in, I got to filter it and take out the recyclables
lolmaus has quit [Quit: Konversation terminated!]
<godd2> zenspider that's easy. Hashes are more important than numbers, so it's [{}, 1, "woot"]
dr_toboggan has quit [Ping timeout: 250 seconds]
beilabs_ has joined #ruby
<zenspider> DUH
<zenspider> EasyCo: sorted = myarrayofobj.find_all {|x| x.respond_to? :label }.sort_by(&:label)
Abhijit has joined #ruby
wolflee____ has joined #ruby
nyanz has quit []
siwica has joined #ruby
rshetty has quit [Remote host closed the connection]
chris__ has joined #ruby
wolflee___ has quit [Ping timeout: 265 seconds]
solars has quit [Ping timeout: 244 seconds]
i_s has joined #ruby
mleung has quit [Quit: mleung]
clauswitt has joined #ruby
mleung has joined #ruby
i_s has quit [Ping timeout: 244 seconds]
fabrice31 has joined #ruby
nobitanobi has quit []
pengin has joined #ruby
mleung has quit [Ping timeout: 250 seconds]
_5kg has joined #ruby
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
Joufflu has quit [Quit: Leaving]
sinequanon has quit []
nkumari has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
alex88 has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
codecop has joined #ruby
econerd4ever has joined #ruby
wolflee____ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
<siwica> anyone developing ruby in emacs? what modes are you using?
<zenspider> I use enh-ruby-mode, but ruby-mode works well enough for most code
pengin has quit [Remote host closed the connection]
wolflee_____ has joined #ruby
testcore has joined #ruby
pengin has joined #ruby
tymat has left #ruby [#ruby]
Abhijit has quit [Remote host closed the connection]
wolflee_____ has quit [Read error: Connection reset by peer]
andikr has joined #ruby
wolflee_____ has joined #ruby
emmesswhy has joined #ruby
terlar has quit [Quit: WeeChat 1.0.1]
ta has quit [Ping timeout: 250 seconds]
wolflee______ has joined #ruby
fandi has quit [Ping timeout: 240 seconds]
pengin has quit [Ping timeout: 255 seconds]
ctp has joined #ruby
takle has joined #ruby
wolflee_____ has quit [Read error: Connection reset by peer]
wolflee______ has quit [Read error: Connection reset by peer]
d4nku has joined #ruby
wolflee______ has joined #ruby
renderful has joined #ruby
timonv_ has joined #ruby
aganov has joined #ruby
nvdpl has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
nvdpl has quit [Max SendQ exceeded]
apeiros has joined #ruby
nvdpl has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
takle has quit [Ping timeout: 265 seconds]
renderful has quit [Ping timeout: 250 seconds]
d4nku has quit [Ping timeout: 250 seconds]
Abhijit has joined #ruby
jheg has joined #ruby
wolflee_______ has joined #ruby
apeiros has quit [Ping timeout: 258 seconds]
sigurding has quit [Quit: sigurding]
lidaaa has quit [Ping timeout: 244 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
exadeci has joined #ruby
wolflee______ has quit [Ping timeout: 256 seconds]
kwd has quit [Quit: I'm using a Free IRC Bouncer from BNC4FREE - http://bnc4free.com/]
jenrzzz has quit [Ping timeout: 255 seconds]
jheg has quit [Quit: jheg]
fandi has joined #ruby
jenrzzz has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moritzs has joined #ruby
adac has joined #ruby
moritzs has quit [Remote host closed the connection]
moritzs has joined #ruby
terlar has joined #ruby
kwd has joined #ruby
gaussblurinc1 has joined #ruby
diegoviola has quit [Remote host closed the connection]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
einarj has joined #ruby
mkaesz has joined #ruby
troulouliou_dev has joined #ruby
sigurding has joined #ruby
d4nku has joined #ruby
TomyWork has joined #ruby
mathias2 has quit [Ping timeout: 245 seconds]
porfa has quit [Quit: porfa]
apeiros has joined #ruby
lockweel has quit [Ping timeout: 250 seconds]
nfk has joined #ruby
tesuji has joined #ruby
bMalum has joined #ruby
lockweel has joined #ruby
Xeago has joined #ruby
michael_mbp has quit [Excess Flood]
rshetty has joined #ruby
michael_mbp has joined #ruby
d4nku has quit [Ping timeout: 244 seconds]
econerd4ever has quit [Remote host closed the connection]
Juanchito has joined #ruby
econerd4ever has joined #ruby
lolmaus has joined #ruby
sigurding has quit [Quit: sigurding]
Xeago_ has joined #ruby
mkaesz has quit [Ping timeout: 244 seconds]
timonv_ has quit [Remote host closed the connection]
i_s has joined #ruby
econerd4ever has quit [Ping timeout: 258 seconds]
coderhs has quit [Ping timeout: 256 seconds]
zorak8 has joined #ruby
hiyosi has joined #ruby
arup_r has quit [Remote host closed the connection]
nrsk has joined #ruby
Xeago has quit [Ping timeout: 250 seconds]
livathinos has joined #ruby
<godd2> woot, just got a personal high score on 10fastfingers.
<godd2> I swear, being better at touch typing makes programming way more fun
i_s has quit [Ping timeout: 240 seconds]
<shevy> yeah
<shevy> it's the daily mantra of java coders to keep going on
RitterJack has joined #ruby
andrewlio has joined #ruby
arup_r has joined #ruby
hiyosi has quit [Ping timeout: 250 seconds]
<zenspider> 10fastfingers?
<zenspider> is that a gamified typing tutor?
<zacts> ok, on to 'the well grounded rubyist'
<godd2> That's a fairly accurate discription
iamjarvo has joined #ruby
<godd2> zenspider there are a couple gamification elements like achievements, but they don't go all out
<zenspider> so your high score isn't your wpm?
d4nku has joined #ruby
beilabs_ has quit [Quit: Be back later ...]
<zenspider> what was your high score?
<godd2> no, it is, I was just pointing out other gamey things
<godd2> I just hit 106 for the first time
<godd2> but its only the 200 most common English words. I can't actually type that fast
<shevy> hehe
<shevy> what was the link again?
hephaestus_rg has quit [Quit: leaving]
<zenspider> heh. I'll have to check it out. I have no idea how fast I type
<zenspider> @tenderlove just switched from qwerty to norman and he currently sucks at typing
<godd2> 2 years ago I couldn't type faster than 30 without looking.
ikaros has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider> I have no idea how I compare
corehook has joined #ruby
econerd4ever has joined #ruby
<zacts> I don't like dvorak for my taste
<zenspider> I love it
<zacts> it's too repetitive, my wrists became tired faster when I tried it
<zacts> plus I'm a vimmer
<shevy> damn
<shevy> I am at 114
<shevy> VijjuPraveen is at 142
<zenspider> too repetitive? I disagree. it is much more even per hand / finger than qwerty
<shevy> indian superhero
<shevy> godd2 that scrolling thing is annoying; I lost track of the next sentence 3 times...
<godd2> I've gotten used to it. Also, if you click the timer, it will be hidden
d4nku has quit [Ping timeout: 244 seconds]
<godd2> the timer always distracts me
arup_r has quit [Remote host closed the connection]
chris__ has quit [Ping timeout: 265 seconds]
<shevy> and there was one word that took me about 3 times as long as the others... perhaps it was business... is there a way to find out what the text was? I wanna find out why my brain took so much longer than for the other words there
<shevy> I mean the word "business" ... or it was nearby to that word
robbyoconnor has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
<godd2> no, 10ff doesn't give a list of missed words, but this one does: http://typing-speed-test.aoeu.eu/?lang=en
<zenspider> hah
<godd2> and it's a different word list. its good for variation
<shevy> whoa how do people reach +140 ...
<shevy> I think without that weird word... and losing track... I might have been at 120 or 125 at max
<shevy> wtf dogsquirrel2 124
<zenspider> sweet jesus
<zenspider> my ceo at omni typed ~200 iirc
<zenspider> it was absurd
<zenspider> and he could code about as fast as he could type too
<shevy> wow
<shevy> superhuman speed
<agent_white> My old-boss was at 120-140 as a coder.
<agent_white> I'm at 90.
<agent_white> Some day... my fingers will catch on fire.
elaptics`away is now known as elaptics
<godd2> agent_white jsut practice 10 minutes a day or so
chthon has joined #ruby
<shevy> agent_white 90 is already quite good, should not take you long at all to go above 100
<agent_white> godd2: My practice is hopping on IRC. The rest will come with time.
<shevy> haha
d4nku has joined #ruby
Versality has joined #ruby
<godd2> lol
<zenspider> I got a whopping 72. I find those tests to be fairly invalid, since they have no semantic meaning and I can have my brain stream over the words very well
<zenspider> 1 typo
<zenspider> I also peter out half way. if there was a 30 second test it would be better :)
<godd2> zenspider I agree on the issue of syntax. I would love to see at least a rudimentary grammar behind the wordlist.
<zenspider> 74 on the other one. typo'd more too.
<zenspider> 3 mistakes all 3 letter words
<zenspider> cpm of 370! that sounds impressive! woo
abuzze_ has joined #ruby
mikecmpbll has joined #ruby
<godd2> haha
timonv_ has joined #ruby
<godd2> Having a mechanical keyboard made a difference too
alex88 has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kumarat9pm> We can achieve each loop with a for loop, why there is a special each loop in Ruby?
sigurding has joined #ruby
<zenspider> because there is
<sevenseacat> because they have different scopes
<zenspider> godd2: oh? better or worse?
abuzze has quit [Ping timeout: 265 seconds]
<godd2> zenspider better. I have cherry mx brown switches. no clicky, but you can feel the actuation
_5kg has quit [Ping timeout: 244 seconds]
<godd2> mightve been a little placebo + practice though.
CustosL1men has joined #ruby
francisfish has joined #ruby
<zenspider> haha
econerd4ever has quit [Remote host closed the connection]
<zenspider> cherry mx brown... mmmmm... 2004. *sniiiiff* goooood year
Synthbread has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
Pupeno has quit [Remote host closed the connection]
sk87 has joined #ruby
<godd2> haha, well if you don't have a mechanical keyboard, you should definitely try one. Youll never want to go back to membrane
alex88 has joined #ruby
msgodf has joined #ruby
kireevco has quit [Quit: Leaving.]
<zenspider> I prefer the keyboard attached to my laptop, which follows me everywhere.
<zenspider> I couldn't handle lugging a keyboard with me
iwishiwerearobot has quit [Ping timeout: 240 seconds]
<godd2> well yea, not a *normal* keyboard
d4nku has quit [Ping timeout: 250 seconds]
<zacts> I need a more powerful bluetooth keyboard for my tablet
<zacts> one that let's me remap caps -> ctrl
<zenspider> it's a pretty good book. between this and what?
<zacts> I'm following piperwork's earlier suggestion to read eloquent rubiest 2nd edition -> Metaprogramming Ruby. Should I read poodr after or before metaprogramming ruby?
<zenspider> oh... before I think
<zacts> ah ok
<zenspider> metaprogramming should be close to last
coderhs has joined #ruby
<godd2> I havent read poodr but I have read meta, and I would just say that it's not as scary as the title makes it out to be :P
<zacts> ok
rdark has joined #ruby
thsig has joined #ruby
<godd2> and the presentation is very straightforward and easy to understand.
<zenspider> it isn't... but it sure makes everything look like a nail
User458764 has joined #ruby
jheg_ has joined #ruby
<godd2> that's true, but I will say that it helped me understand Ruby's inheritance model at a deep level
<godd2> i.e. the method lookup chain, shadow classes, etc.
roolo has joined #ruby
d4nku has joined #ruby
arup_r has joined #ruby
AFKGeek has joined #ruby
ctp has joined #ruby
pietr0 has quit [Quit: pietr0]
<gaussblurinc1> hi
<gaussblurinc1> does anybody use ruby-git?
beilabs_ has joined #ruby
beilabs_ has quit [Client Quit]
govg has quit [Remote host closed the connection]
thsig has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
deject3d_ has quit [Quit: Computer has gone to sleep.]
d4nku has quit [Ping timeout: 255 seconds]
ta has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
abuzze has joined #ruby
everettForth has joined #ruby
<everettForth> using rake, how do I uninstall rake 10.1.0 and install rake 10.3.2?
<Hanmac> everettForth: why not "gem update" ?
lockweel has quit [Quit: ChatZilla 0.9.91 [Firefox 33.0/20141013200257]]
<godd2> gaussblurinc1 I have not. I just use git. Did you have a question about ruby-git?
d4nku has joined #ruby
<everettForth> gem update installs both versions. when I try to do gem uninstall rake -v 10.1.0, I get: gem "rake" cannot be uninstalled because it is a default gem
zorak8 has quit [Ping timeout: 244 seconds]
coderhs has quit [Ping timeout: 255 seconds]
abuzze_ has quit [Ping timeout: 245 seconds]
Pupeno has joined #ruby
alex88 has quit [Remote host closed the connection]
<sevenseacat> then you dont uninstall it
ta has quit [Ping timeout: 264 seconds]
Mia has joined #ruby
Mia has joined #ruby
<sevenseacat> what problem are you trying to solve?
nonks has quit [Ping timeout: 250 seconds]
<godd2> everettForth when requiring gems in code, it will grab the latest version unless otherwise specified
<everettForth> i don't want to have to type "bundle exec rails" instead of "rails"
<Pupeno> Does anybody know if it would be possible to trigger RubyMine's debugger whenever an assertion fails?
<sevenseacat> use binstubs.
krz has quit [Ping timeout: 272 seconds]
oo_ has quit [Remote host closed the connection]
ta has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
oo_ has joined #ruby
cajone has quit [Remote host closed the connection]
dangerousdave has joined #ruby
krz has joined #ruby
cajone has joined #ruby
prasselpikachu has quit [Ping timeout: 250 seconds]
Kilobyte|StupidC has quit [Ping timeout: 245 seconds]
prasselpikachu has joined #ruby
olivier_bK has joined #ruby
<zacts> for those who may be familiar with perl, is there a ruby equivalent to perlbrew?
ndrei has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Ping timeout: 245 seconds]
<zacts> perlbrew is like a perl installation manager, and lets you have multiple local perls installed easily
<godd2> zacts rvm is one
<sevenseacat> you want something like rvm, rbenv or chruby
<zacts> I have ruby-2.0 on slackware, but I need 2.1 I guess for this book
TPBallbag has joined #ruby
<zacts> ah ok
<zacts> which one is the most flexible in the long run?
<godd2> and rbenv too? Im not sure on that one
<zacts> well actually
<zacts> which is the most newbie friendly?
bweston92 has joined #ruby
<zacts> so I can get up and running right now
<godd2> I have found rvm newb friendly
<zacts> ok
<zacts> cool
sevenseacat has quit [Quit: Leaving.]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
vimer has joined #ruby
Kilo`byte has joined #ruby
<Hanmac> everettForth: its a rails problem, ask #rubyonrails
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
cajone has quit [Remote host closed the connection]
Timgauthier has joined #ruby
timonv_ has quit [Remote host closed the connection]
alex88 has joined #ruby
cajone has joined #ruby
coderhs has joined #ruby
tvw has quit []
maestrojed has quit [Quit: Computer has gone to sleep.]
fumk has joined #ruby
<zacts> so is 2.1.4 the latest stable, or is 2.1.5 in /topic the latest stable?
sigurding has joined #ruby
<zacts> rvm list known, is showing 2.1.4 as the latest apart from -head
mikepack has joined #ruby
<zacts> for mruby I guess
Mateon1 has joined #ruby
<shevy> 2.1.5 zacts
<zacts> ok, thanks
<shevy> 2.1.5 is like 2.1.4 with a patch against one XML vulnerability
<shevy> stupid XML!
_5kg has joined #ruby
coderhs has quit [Ping timeout: 255 seconds]
<zacts> ok
<zacts> so far I like rvm better than perlbrew
finferl has joined #ruby
<zacts> I'm also enjoying ruby more than Perl, which I never thought would happen.
danjordan has joined #ruby
<zacts> but perl is still nice for many things..
mikepack has quit [Ping timeout: 255 seconds]
michael_mbp has quit [Excess Flood]
alexherbo2 has quit [Remote host closed the connection]
<PierreRambaud> zacts, every languages have their benefits ;)
<zacts> ok, I just got the OOP ruby book. so it's going to be black book -> poodr -> metaprogramming ruby
<zacts> PierreRambaud: indeed
<zacts> but some are more *fun* than others
mengu has joined #ruby
<shevy> zacts what is perlbrew?
<zacts> shevy: it's the perl equivalent to rvm
apeiros_ has joined #ruby
michael_mbp has joined #ruby
AndChat| has quit [Ping timeout: 272 seconds]
<zacts> shevy: http://perlbrew.pl/
<zacts> I'm hoping I can get perlbrew and rvm to play together nicely too, we'll see how it goes
corehook has quit [Remote host closed the connection]
Timgauthier is now known as timgauthier_away
<txdv> perlbrew is like rvm?
jheg_ has quit [Quit: jheg_]
joonty has joined #ruby
<shevy> hmmm
<shevy> perlbrew homepage looks like a copy paste from homebrew
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zacts> ok, does rvm play well with zsh. mksh isn't working with it..
apeiros_ has quit [Ping timeout: 265 seconds]
arup_r_ has joined #ruby
jheg_ has joined #ruby
<shevy> dunno
<shevy> I use bash and compile ruby from source \o/
arup_r has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
bigkevmcd has quit [Ping timeout: 265 seconds]
coderhs has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
kl_ has joined #ruby
kl_ has quit [Client Quit]
ndrei has joined #ruby
<zacts> ok I think zsh will work
<shevy> \o/
<shevy> the ruby is getting stronger in you
bigkevmcd has joined #ruby
<shevy> PierreRambaud can I call you Pierre Rambo?
Timgauthier has joined #ruby
<PierreRambaud> shevy, As you wish ;) I'm planning to call my son John :)
<shevy> lol
<txdv> Long Johnson
yfeldblum has joined #ruby
workmad3 has joined #ruby
yfeldblum has quit [Remote host closed the connection]
arup_r_ has quit [Remote host closed the connection]
NoNMaDDeN has quit [Remote host closed the connection]
yfeldblum has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
<shevy> txdv it's been a while since your last shevy cheer
fandi has quit [Ping timeout: 244 seconds]
<txdv> i usually do them when you are afk
<gregf__> perlbrew eq rvm and rbenv eq plenv
chipotle has quit [Quit: cya]
<gregf__> theres nothing like chperl tho' for chruby
decoponio has joined #ruby
<gregf__> but yeah rails seems to be less confusing with rvm :/
takle has joined #ruby
<gregf__> >> Array.new(10){ "shevy" }.join("! ")
<eval-in__> gregf__ => "shevy! shevy! shevy! shevy! shevy! shevy! shevy! shevy! shevy! shevy" (https://eval.in/221305)
usrj has joined #ruby
josephndenton has joined #ruby
<shevy> \o/
takle has quit [Remote host closed the connection]
bjornar has quit [Read error: Connection reset by peer]
nonks has joined #ruby
coderhs has joined #ruby
ctp has quit [Read error: Connection reset by peer]
i_s has joined #ruby
ctp has joined #ruby
josephndenton has quit [Ping timeout: 255 seconds]
takle has joined #ruby
bjornar has joined #ruby
razieliyo has joined #ruby
tvw has joined #ruby
hiyosi has joined #ruby
vimer has quit [Quit: leaving]
oo_ has quit [Remote host closed the connection]
jxf has joined #ruby
ctp has quit [Client Quit]
Timgauthier is now known as timgauthier_away
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
oo_ has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
corehook has joined #ruby
maasha has joined #ruby
i_s has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
hmsimha_ has quit [Ping timeout: 255 seconds]
godd2 has quit [Ping timeout: 255 seconds]
takle has quit [Remote host closed the connection]
mengu has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
tlarevo has quit [Remote host closed the connection]
<brushdemon> t
<brushdemon> f
<brushdemon> w
<maasha> can someone who knows the Ruby API please have a look at this and tell me what the hell is going on with the values in the returned array? https://gist.github.com/maasha/511a59f2cd8231f8ede2
tlarevo has joined #ruby
hiyosi has quit [Ping timeout: 265 seconds]
toretore has joined #ruby
oo_ has quit [Ping timeout: 250 seconds]
<maasha> The printf statement outputs correctly, but the values are mutated when returned on the ruby array :o(
thsig has joined #ruby
<maasha> line 85-6
bayed has joined #ruby
terlar has quit [Quit: WeeChat 1.0.1]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
usrj has quit [Ping timeout: 240 seconds]
coderhs has quit [Ping timeout: 272 seconds]
tokik has quit [Ping timeout: 255 seconds]
mengu has quit [Ping timeout: 264 seconds]
sigurding has quit [Quit: sigurding]
<Hanmac> maasha: you might need to test the Testcase itself ... for some reason the output is sorted
duncannz has quit [Remote host closed the connection]
<txdv> call paasha
<txdv> he will help you
takle has joined #ruby
<maasha> Hanmac: ah, I was indeed looking the wrong place for the bug. The C code is fine. I didnt notice the sorting - well spotted.
marens has joined #ruby
<banister> Hanmac i think i found your picture onoline
<banister> Hanmac this is u, right? http://cl.ly/image/2Y0z363u2n1G
Versality has quit [Ping timeout: 256 seconds]
<DefV> never think I'd do this, but is anyone from Belgium and looking for a ruby job?
<Hanmac> not that i know but maybe in 30-40years ;P
jheg_ has quit [Quit: jheg_]
ldnunes has joined #ruby
Versality has joined #ruby
<maasha> s/ruby/blow/
<shevy> lol
<txdv> i live 5km away from belgium
<shevy> the more irritating thing is that you have to be from Belgium
garycruise has joined #ruby
<shevy> can't it be some big country
charliesome has joined #ruby
<DefV> well, you can be from anywhere you like
<DefV> you just have to come work in belgium :-)
usrj has joined #ruby
<txdv> so racist
<shevy> txdv now that's a call - you can bridge the 5km
<txdv> do i need to eat belgian waffles too while im working?
<shevy> belgium is famous for chocolate mice txdv
coderhs has joined #ruby
<txdv> chocolate mice?
jheg_ has joined #ruby
<maasha> Belgium have beer, waffles, chocolate, and comic books
<txdv> o the beer is good
<shevy> it's a cool place for sure
<shevy> but you have to speak french
<txdv> yeah
<txdv> brussels fosdems
<txdv> is the place where i learned that miguel de icaza speaks french
reinaldob has joined #ruby
rshetty has quit [Remote host closed the connection]
arup_r has joined #ruby
sk87 has joined #ruby
P-NuT has joined #ruby
arup_r has quit [Remote host closed the connection]
<shevy> cool
<shevy> he sounds so spanish
sigurding has joined #ruby
arup_r has joined #ruby
tvw has quit []
<DefV> well
<DefV> you have to speach dutch
terlar has joined #ruby
<DefV> speak*
<txdv> shevy: he is mexican
<DefV> for the position I'm trying to fill :-)
<txdv> i guess
sk87 has quit [Client Quit]
timonv_ has quit [Remote host closed the connection]
<txdv> shitty wizard
bluOxigen has quit [Ping timeout: 258 seconds]
apeiros_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
jenrzzz has quit [Quit: Lost terminal]
DaniG2k has joined #ruby
tlarevo has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 265 seconds]
drawingthesun has joined #ruby
Morkel has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
Morkel has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
samflores has left #ruby [#ruby]
Timgauthier has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xeago_ has quit [Ping timeout: 256 seconds]
timonv_ has joined #ruby
arup_r has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
govg has joined #ruby
lkba has joined #ruby
mathias2 has joined #ruby
takle has quit [Remote host closed the connection]
arup_r has joined #ruby
Xeago has joined #ruby
Xeago_ has joined #ruby
usrj_ has joined #ruby
usrj has quit [Remote host closed the connection]
P-NuT has quit []
govg has quit [Ping timeout: 272 seconds]
dkb20k__ has quit [Remote host closed the connection]
Silvermann has joined #ruby
sk87 has joined #ruby
usrj_ has quit [Client Quit]
fabrice31 has joined #ruby
BTRE has joined #ruby
Xeago has quit [Ping timeout: 265 seconds]
moritzs has quit [Ping timeout: 264 seconds]
pa3ce has quit [Ping timeout: 256 seconds]
Abhijit has quit [Ping timeout: 245 seconds]
garycruise has quit [Quit: 离开]
shredding has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
TPBallbag has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
TPBallbag has joined #ruby
byteoverfl0w has joined #ruby
neoxquick has quit [Quit: Miranda NG! Smaller, Faster, Easier. http://miranda-ng.org/]
rshetty has joined #ruby
tyll_ is now known as tyll
siwica has quit [Remote host closed the connection]
Abhijit has joined #ruby
siwica has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
rpag_ has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
siwica has quit [Ping timeout: 265 seconds]
krz has quit [Quit: WeeChat 1.0.1]
workmad3 is now known as wm3|away
ta has quit [Ping timeout: 258 seconds]
thsig has quit [Remote host closed the connection]
kamilc__ has quit [Quit: Leaving...]
Pupeno has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
charliesome has quit [Quit: zzz]
corehook has quit [Remote host closed the connection]
corehook has joined #ruby
corehook has quit [Remote host closed the connection]
godd2 has joined #ruby
jheg_ has quit [Quit: jheg_]
shiru has joined #ruby
MrDoctor has joined #ruby
MrDoctor has quit [Changing host]
MrDoctor has joined #ruby
yfeldblum has joined #ruby
elaptics is now known as elaptics`away
Morkel has quit [Quit: Morkel]
max96at|off is now known as max96at
wald0 has joined #ruby
elaptics`away is now known as elaptics
crazydiamond has joined #ruby
hiyosi has joined #ruby
rpag_ has joined #ruby
dangerousdave has joined #ruby
shiru has quit [Remote host closed the connection]
corehook has joined #ruby
jleishman has joined #ruby
spastorino has joined #ruby
sprihodko has joined #ruby
joast has quit [Ping timeout: 265 seconds]
alex88 has quit [Remote host closed the connection]
wsmoak has joined #ruby
hiyosi has quit [Ping timeout: 244 seconds]
parduse has quit [Ping timeout: 255 seconds]
klmlfl has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
Dreamer3 has quit [Quit: Leaving...]
ndrei has joined #ruby
usrj has joined #ruby
msgodf has quit [Ping timeout: 250 seconds]
corehook has quit [Remote host closed the connection]
MrDoctor has quit [Ping timeout: 264 seconds]
<zacts> wow, I'm a total OOP newbie. so in ruby, you can define a method for an object after the object is created.
<zacts> so the concept of a class in ruby isn't nearly as important as the concept of an object
<shevy> zacts well, that method will be unique of that object in question
i_s has joined #ruby
<godd2> unless he monkey patches the class
<shevy> ruby is like 80% OOP and 20% prototypic
<shevy> yeah but he wrote "define a method for an object", he did not write for all objects
<shevy> we gotta train up the newcomers godd2
Andriamanitra has joined #ruby
<shevy> to show them where the hammer is hanging
shazaum has joined #ruby
<zacts> ok, well let me really finish reading this ch, let it digest in my mind, and then I'll return for questions. I don't want to get ahead of myself, I'm just excited with ruby so far I guess.
<godd2> faaaiir enough
Andriamanitra has quit [Client Quit]
<zacts> my ideas about OOP were primitive / almost stereotypical I think, with ruby you really get more power than I thought you could with objects, I guess.
joonty has quit [Quit: joonty]
<zacts> I'm assuming that some, or a lot, of this is inherited from smalltalk..
nonks has joined #ruby
<zacts> (please pardon my newbieness) =)
<godd2> zacts as far as I understand, the message passing is the biggest concept taken from small talk, along with the overall look (no semicolons, optional parens)
ctp has joined #ruby
usrj has quit [Remote host closed the connection]
usrj has joined #ruby
<shevy> what are you reading zacts ?
mkaesz has joined #ruby
<shevy> well zacts
<shevy> there is not one OOP definition out there
i_s has quit [Ping timeout: 258 seconds]
<godd2> I think he's reading POODR
<shevy> my favourite one is how Alan Kay defined OOP
<shevy> winnie the pooh?
<zacts> poodr
<zacts> oh no
<zacts> I'm reading ch 2 of http://www.manning.com/black3/
<shevy> zacts some is derived from smalltalk but other parts are derived from perl - ruby was more of a melting pot, how matz saw something useful and tried to include it into ruby
<zacts> just the beginning, and already I'm seeing how my view of objects is being turned upside down
<shevy> small talk does not have optional parens or? lemme lookup
<agent_white> Mine will be once I look more into metaprogramming.
nonks has quit [Ping timeout: 250 seconds]
takle has joined #ruby
<shevy> hehe
<shevy> improve your typing speed first
charliesome has joined #ruby
<zacts> shevy: I had a crude understanding of objects from Perl, but I never got deep into Moose. I was told to learn ruby to learn about OOPish ideas.
<godd2> OOPish; gotta use that one more often
<zacts> Perl doesn't have resources like ruby does on this stuff, it seems.
<shevy> I want this: http://goo.gl/ZTM3OM
_5kg has quit [Ping timeout: 264 seconds]
Soda has joined #ruby
<zacts> and ruby is more fun for me anyway, I can see myself getting addicted
<gregf__> zacts: Moose is very similar to ruby, you can add methods to an instance on the fly
<shevy> well, perl did not have objects in mind when it was designed
<shevy> perl was just a better text manipulator than awk + sed back then
<shevy> matz had the advantage of being able to look at perl
TPBallbag has quit [Remote host closed the connection]
siaw has joined #ruby
<shevy> so Larry became his hero
<zacts> gregf__: ah interesting, yeah I just created and blessed objects from scratch mainly
tyll has quit [Ping timeout: 255 seconds]
<shevy> and matz the hero for other people who found ruby to be better than perl
emmesswhy has joined #ruby
<agent_white> shevy: But Larry loves types.
<siaw> How do I use SecureRandom to print some random number?
<zacts> I didn't really read or learn much about Moose yet.
joonty has joined #ruby
<agent_white> He isn't _too_ fond of Ruby.
<gregf__> nah, in moose you dont do no blessing, cuz you can do many unholy things there :/
klmlfl has quit [Remote host closed the connection]
<shevy> agent_white that with the types confuses me too ... scalar + different syntax meaning different types...
<agent_white> shevy: /me shrugs
<gregf__> zacts: if you;ve done a bit of java and a bit of Perl, ruby is easier :/
<olivier_bK> i try to add ruby script in crontab but i dont know why the script top before the (puts "before array") ?
_5kg has joined #ruby
tyll has joined #ruby
<godd2> siaw require 'securerandom'; SecureRandom.random_number(100)
takle has quit [Remote host closed the connection]
<shevy> olivier_bK it won't output anything right?
<shevy> because it runs as a daemon-like process through cron
gsd has joined #ruby
<godd2> siaw that will, of course, in a cryptographicall secure manner, generate a random number between 0 and 100 (including 0, excluding 100)
<siaw> godd2: thanks
cleopatra has quit [Ping timeout: 250 seconds]
MrDoctor has joined #ruby
MrDoctor has quit [Changing host]
MrDoctor has joined #ruby
jheg__ has joined #ruby
<olivier_bK> when i execute the script manualy it's good
<olivier_bK> but with crontab he stop
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
usrj_ has joined #ruby
Nieralyte has joined #ruby
arup_r has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<jhass> olivier_bK: your tests must be flawed. this is just a method that's never called
<jhass> also make sure you test with sudo -u$crontab_user env -i $crontab invocation
usrj has quit [Ping timeout: 245 seconds]
Gantz has joined #ruby
nateberkopec has joined #ruby
sevenseacat has joined #ruby
krz has joined #ruby
<jhass> even if you would run the method, there's so much wrong with it....
bMalum has quit [Quit: bMalum]
sandelius has joined #ruby
parduse has joined #ruby
atmosx has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danijoo_ has quit [Remote host closed the connection]
danijoo has joined #ruby
NoNMaDDeN has joined #ruby
TPBallbag has joined #ruby
bweston92 has quit [Remote host closed the connection]
dangerousdave has joined #ruby
Oog has quit []
TPBallbag has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
thsig has joined #ruby
Ulrike_Rayne has joined #ruby
kamilc__ has joined #ruby
V__ has joined #ruby
St_Marx has quit [Ping timeout: 250 seconds]
Fire-Dragon-DoL has joined #ruby
dkb20k has joined #ruby
joonty has quit [Quit: joonty]
IrishGringo has joined #ruby
apeiros_ has joined #ruby
maasha has quit [Ping timeout: 246 seconds]
last_staff has quit [Quit: last_staff]
Noobdog has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
dkb20k has quit [Read error: Connection reset by peer]
livathinos has quit []
gaussblurinc1 has quit [Quit: Leaving.]
apeiros_ has quit [Ping timeout: 265 seconds]
sk87 has joined #ruby
arup_r has joined #ruby
dkb20k has joined #ruby
arup_r has quit [Client Quit]
arup_r has joined #ruby
ikanobori__ is now known as ikanobori
ikanobori has quit [Changing host]
ikanobori has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
mkaesz has quit [Remote host closed the connection]
kumarat9pm has quit [Ping timeout: 245 seconds]
danjordan has quit [Quit: danjordan]
vimer has joined #ruby
Gantz is now known as Igneous_
freerobby has joined #ruby
takle has joined #ruby
techsethi has quit [Quit: techsethi]
Pupeno has quit [Ping timeout: 264 seconds]
takle has quit [Read error: Connection reset by peer]
takle has joined #ruby
P-NuT has joined #ruby
vimer has quit [Quit: leaving]
Suchit has joined #ruby
danjordan has joined #ruby
VanillaGoat__ has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
takle has quit [Remote host closed the connection]
charliesome has quit [Read error: Connection reset by peer]
shredding has quit [Quit: shredding]
vimer has joined #ruby
ukfagsmoker has quit [Ping timeout: 246 seconds]
lolmaus has quit [Remote host closed the connection]
Pupeno has joined #ruby
VanillaGoat_ has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
lolmaus has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mkaesz has joined #ruby
Pupeno has quit [Client Quit]
bMalum has joined #ruby
nonks has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
kp666 has quit [Quit: Leaving]
hiyosi has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<P-NuT> Does anyone know where I can get performance metrics on rails / sinatra? I want to use ruby to write a webapp for raspberry pi, but due to its limited resources I'm not 100% sure that rails would be a good fit. Any siggestions?
Igneous_ has quit [Quit: —I-n-v-i-s-i-o-n— 3.1.3 (May '10)]
nateberkopec has joined #ruby
danjordan has quit [Quit: danjordan]
dkphenom has joined #ruby
vimer has quit [Quit: leaving]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_5kg has quit [Ping timeout: 244 seconds]
unshadow has joined #ruby
DaniG2k_ has joined #ruby
danjordan has joined #ruby
<atmosx> P-NuT: I've deployed rails app on RPi
<atmosx> P-NuT: less than 100 MB for the entire stack IIRC ~ 70...
i0n has joined #ruby
hiyosi has quit [Ping timeout: 255 seconds]
<unshadow> I'm trying to look at a string and match only DES but not 3DES I thought match(/[^3]DES/i) will do it but apperently i'm wrong XD
<atmosx> P-NuT: just don't use memory-driven DB's like Redis and you'll be fine.
jleishman has quit [Quit: Lingo: www.lingoirc.com]
<atmosx> unshadow: try rubular.com
<unshadow> I did , cant find the right regexp
_1_crime has joined #ruby
<_1_crime> hey
larissa has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aclearman037 has joined #ruby
DaniG2k has quit [Ping timeout: 265 seconds]
mwlang has joined #ruby
<jhass> hi
<Mateon1> unshadow: /(?<!3)DES/i
_1_crime has quit [Remote host closed the connection]
<P-NuT> atmosx: any suggestions on what to use? I was using MYSQL
<jhass> postgres performs better in my experience
<unshadow> Nice , thanks Mateon1
i0n_ has joined #ruby
<atmosx> P-NuT: sure MySQL is great ~ 40 MB of memory
<atmosx> P-NuT: hm jhass is right, but I'm using MySQL and runs fine too.
jleishman has joined #ruby
<jhass> you can pretty precisely control postgres memory usage, not sure about mariadb/mysql there
i0n has quit [Ping timeout: 245 seconds]
i0n_ is now known as i0n
<atmosx> I'm off cya later.
atmosx has quit [Quit: Lost in trance]
fwaokda has quit [Remote host closed the connection]
<mwlang> Got an odd one for y’all: I inherited a project that has a few Perl scripts along with Ruby on Rails project. The perl scripts load externally supplied data, but there’s no testing framework around them. Has anyone ever slapped Unit::Test or Rspec around scripts/logic written in another language? (which is what I’m thinking to do here since I know Ruby best and don’t know anything about any Perl test frameworks)
<mwlang> its going to be more along the vein of characterization tests than anything since I don’t have original specs on the script, but I figured some basic verification tests is better than nothing at all as we do need to tweak some of these perl scripts slightly.
joonty has joined #ruby
unshadow has quit [Quit: leaving]
<linduxed> mwlang: so i think you're only gonna be able to write acceptance tests
<shevy> ack
<linduxed> checking the behaviour of the thing
<jhass> mwlang: no personal experience with it, but https://github.com/cucumber/aruba might be of interest
<mwlang> linduxed: yes, basically.
<linduxed> "if i run the script with this command then what do i get back on STDOUT"
<mwlang> linduxed: more like, if I run the script with this command, then what do I have in my database?"
<linduxed> if you need some inspiration for how to write a testing framework for something totally external
<linduxed> which you still need to interface with
<linduxed> then this library might be some inspiration https://github.com/TV4/Urushiol
tokik has joined #ruby
Timgauthier has joined #ruby
waxjar has quit [Ping timeout: 255 seconds]
<linduxed> not sure if it will help you a lot
<linduxed> a very simple start would be to write some tests which run `perl the_script.pl` (with the backticks) and see what you get back
<linduxed> or you could use something like popen3
<linduxed> that's also good
<linduxed> and then analyze the STDOUT stream
freerobby has quit [Quit: Leaving.]
<mwlang> linduxed: both aruba and urushiol give me some ideas.
<linduxed> you could then probably write some methods/helpers/wrappers for the analysis of the output data
coderhs has quit [Ping timeout: 244 seconds]
<mwlang> I can wrap some helper methods around this to make the test calls easier
siwica has joined #ruby
<shevy> or rewrite it in ruby!
<mwlang> shevy: that’s the end-game goal.
ernestonavarro has joined #ruby
bigkevmcd has quit [Ping timeout: 240 seconds]
<mwlang> The main thing I needed was a strategy for putting some tests around the whole shebang.
<ernestonavarro> hello guys
mitt3ns has joined #ruby
bigkevmcd has joined #ruby
<ernestonavarro> I have a very stupid question
<ernestonavarro> from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
<ernestonavarro> from language_file_generator.rb:1:in `<main>'
<ernestonavarro> the gem is installed
alex88 has joined #ruby
agent_white has quit [Ping timeout: 240 seconds]
<sevenseacat> what gem?
<jhass> luckily only two lines came through
<jhass> use a paste service please
<shevy> ernestonavarro that error does not tell us much
ernestonavarro has quit [Remote host closed the connection]
mitt3ns is now known as agent_white
corehook has joined #ruby
ernestonavarro has joined #ruby
<ernestonavarro> .../2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- cvs (LoadError)
<shevy> hmm
<jhass> interesting, sounds like a broken ruby installation
<rpag_> csv
<shevy> no
mkaesz has quit [Remote host closed the connection]
<shevy> ernestonavarro are you sure about this error
<ernestonavarro> cvs gem is installed
<shevy> no
<shevy> where did you get it?
<jhass> cvs is in stdlib
tier has joined #ruby
<ernestonavarro> I'm trying to use cvs
<ernestonavarro> my own script
<shevy> you wrote cvs gem is installed - there is no gem called cvs on rubygems
banister has joined #ruby
Dreamer3 has joined #ruby
<jhass> darn, I'm not to full capacity yet and totally read that as csv m(
<shevy> ok c s v
<sevenseacat> csv != cvs
<shevy> :-)
<ernestonavarro> sorry
<ernestonavarro> really sorry
<ernestonavarro> :)
<shevy> jhass yeah you were not the only one, ernestonavarro too
<shevy> require 'csv' should suffice
<ernestonavarro> require 'cvs'
<ernestonavarro> CSV.foreach('resources/languages.cvs') do |row|
<ernestonavarro> puts row
<ernestonavarro> end
<shevy> hehehehehe
<shevy> :-)
<sevenseacat> heh
<ernestonavarro> dammm\
<ernestonavarro> hahahahahaha
<shevy> ernestonavarro you need to have good eyesight in ruby
<jhass> s/in ruby//
User458764 has quit [Ping timeout: 265 seconds]
<ernestonavarro> so stupid name
<ernestonavarro> sorry gus
<mwlang> cvs sells over the counter eyeglasses. :-)
<ernestonavarro> guys*
<jhass> comma separated values
charliesome has quit [Read error: Connection reset by peer]
<jhass> memorize that, not the acronym
<ernestonavarro> yes I know, very stupid from me
<ernestonavarro> maybe is because i have cvs :)
<jhass> my condolences
<mwlang> fastercsv became de facto in Ruby 2.x, right?
<ernestonavarro> hate*
<shevy> yeah I mix it up with csv all the time
<shevy> comma separated value no?
<jhass> mwlang: fastercsv replaced csv in 2.0, yes
<shevy> comma... value ... separated
oleo has joined #ruby
<shevy> concurrent ... version ... system ...
<jhass> ernestonavarro: did you try git-cvs yet? ;P
takle has joined #ruby
<ernestonavarro> no, no necesary, I didn't use CVS in more than 8 yeas, I wrote wrong, have by hate
User458764 has joined #ruby
<ernestonavarro> I should get some sleep today :)
<shevy> lol
charliesome has joined #ruby
paulfm has joined #ruby
zorak8 has joined #ruby
nateberkopec has quit [Quit: Leaving...]
jheg__ has quit [Remote host closed the connection]
ixti has joined #ruby
jheg__ has joined #ruby
coderhs has joined #ruby
<jheg__> o/
TPBallbag has joined #ruby
jottr has joined #ruby
jusmyth has joined #ruby
n008f4g_ has joined #ruby
<jheg__> I was in a chat room last night telling some folk about my immenint 3 month sabatical to learn ruby in as much depth as I can in 3 months when someone questioned my choice of language to learn ( basically stating that there are better languages to learn C++, JAVA, PHP, Python )
<txdv> there is always a better language
V__ has quit [Quit: Ex-Chat]
<jheg__> I have reasons why I chose ruby due to its rel easy learnign curve compared to other languages plus the online resources and the community
<txdv> Smalltalk, erlang, lisp, ocaml
<txdv> everyone one of those language is better than the other
<jheg__> they then linked me to some wiki page showing what the top sites are developed in and that its a better career choice to go with those listed above but you have to start somewhere right?
dkb20k has quit [Read error: Connection reset by peer]
<jhass> there's basically a site of that kind for every language showing it on the top
<jheg__> thanks txdv
<jhass> they're highly biased
<jhass> for example #systemd had a nice troll yesterday with a bunch of these sites for C#, claiming that it's popular and systemd should be rewritten in it
<jheg__> yeah tis what I thought and in any case as long as I can actually learn the language and it has the capabilities to do what I need it to then its no biggy right?
<jhass> master the language you like, in the process you'll learn programming and can get good enough to quite good in any language in a short time
TPBallbag has quit [Ping timeout: 264 seconds]
<jhass> languages are tools, you need to choose the right one for the problem at hand
<jhass> while you can use a screwdriver or a rock to hammer in a nail, a hammer works better
<jheg__> thats exactly what I thought and it seems that ruby does a good job of removing bloat from the code so you can very quickly learn the fundamentals of programming without getting caught up with syntax intracies
<jhass> yes, I agree. But then I'm in #ruby so that's biased ;)
<jheg__> *intricacies
benzrf|offline is now known as benzrf
<jheg__> yeah good place to discuss this if I want to feel good about my decision :)
corehook has quit [Remote host closed the connection]
elemenopy has quit []
benzrf is now known as benzrf|offline
<txdv> jheg__: i was just kidding, I wanted to say that there will be always someone who says "Dude, my favourite language is the best one!"
ernestonavarro has left #ruby [#ruby]
takle has quit []
Timgauthier is now known as timgauthier_away
<jheg__> no I totally agree it’s the way of the world
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<txdv> for a dynamic scripting language ruby is nice to learn
takle has joined #ruby
<txdv> especially since ruby monkey patching mechanisms are superior compared to other dynamic scripting language
<txdv> languages*
<apeiros> jheg__: I hope you asked them why they were using $LANG instead of malbolge, since that's undeniable TEH BESTEST lang
<jhass> well, I only do machinecode for my serious stuff!
tesuji has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
<apeiros> jhass: you crazy guy. everybody knows malbolge is 10x better than machine code!!!1!
<jhass> if you want to scale in the cloud, you need direct access to the bare metal
<apeiros> malbolge gives you access to the stuff beneath the metal!1!1elf
<txdv> (=<`#9]~6ZY32Vx/4Rs+0No-&Jk)"Fh}|Bcy?`=*z]Kw%oG4UUS0/@-ejc(:'8dc
<jhass> apeiros: I just need to rely on industry proven standards there, sorry
<apeiros> jhass: malbolge has you covered with ISO, DIN and YourMom standards!
_5kg has joined #ruby
<jhass> no, the others ones. You know. NDA and stuff
Versality has quit [Quit: Be back later ...]
i_s has joined #ruby
renderful has joined #ruby
Versality has joined #ruby
livingstn has joined #ruby
kamilc__ has quit [Quit: Leaving...]
<wm3|away> apeiros: I assume malbolge covers those because no one can understand the code well enough to say it definitiely doesn't fulfil whatever standard you choose to say it implements?
wm3|away is now known as workmad3
shredding has joined #ruby
emmesswhy has joined #ruby
jeremy04 has joined #ruby
<apeiros> malbolge comes with all TLAs that exist! DNA, NSA, CIA, FBI, PSA, ETC
agjacome has joined #ruby
<workmad3> apeiros: UTC
<workmad3> apeiros: how about FLAs?
i_s has quit [Ping timeout: 240 seconds]
<jhass> but then, after hungrary we need to redevelop, I'll propose it I guess, see what the others say
renderful has quit [Ping timeout: 250 seconds]
Abhijit has quit [Quit: Leaving]
jerius has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
Abhijit has joined #ruby
charliesome has quit [Ping timeout: 265 seconds]
Abhijit has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
ctp has joined #ruby
<jhass> the inbuilt source code recovery protection should come in handy
<apeiros> workmad3: of course!!!
<pontiki> morning o/
tier has quit [Remote host closed the connection]
<workmad3> pontiki: welcome to #malbolge
<apeiros> evening!
<apeiros> it's FRIDAY!
* apeiros friday-hugs the channel
<workmad3> !isitfriday?
<helpa> yes!
<workmad3> !friday !!!
arup_r has quit [Remote host closed the connection]
<toretore> gotta get down on friday
<pontiki> malbolge?
<workmad3> toretore: looking forward to the weekend, weekend
<pontiki> should i look that up?
hydra1 has joined #ruby
<workmad3> pontiki: that depends... are you fond of your sanity?
xenomorph is now known as {xenomorph}
<pontiki> i used to be, but it's been gone so long we're like perfect strangers
* apeiros arrests workmad3 for annoying the public
<toretore> workmad3: which seat shoud i take?
camilasan has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 256 seconds]
<workmad3> toretore: the seat I just tied to the back of the car...
<pontiki> ah, 8th circle. i see
tier has joined #ruby
<workmad3> apeiros: hater :P
zacts has quit [Ping timeout: 245 seconds]
<pontiki> this is telling: "Weaknesses in the design have been found that make it possible (though still very difficult) to write useful Malbolge programs."
{xenomorph} is now known as xenomorph
<agent_white> Hour 21. My eyeballs melt from the LCD lavawaves... but the mirage of ruby code entices me with its promises of beauty.
<pontiki> *weaknesses* yielding *useful* programs
hiyosi has joined #ruby
<txdv> what a shitty programming language
<txdv> being useful and such
allcentury has quit [Ping timeout: 272 seconds]
<workmad3> pontiki: I believe the design aim was to create a programming language with syntax that was so complicated it would be effectively impossible for human-level intelligence to write code in it
<agent_white> workmad3: Oh you're talking about haskell!
<txdv> its like a wife who isn't a complete resource and nerve drain
* agent_white butts into conversations
<workmad3> agent_white: nah, haskell doesn't suffer from that weakness ;) </haskell_troll>
<pontiki> a collection of malbolge programs, in portuguese; couldn't possibly make it more difficult to understand
<agent_white> hehehe ;)
zacts has joined #ruby
zacts has quit [Changing host]
zacts has joined #ruby
sailias has joined #ruby
<txdv> workmad3: don't understimate humans, the level of procrastrination they are capable to do is fascinating
joonty has quit [Quit: joonty]
<pontiki> we're all here, aren't we?
<apeiros> workmad3: not hater. pubic.
<workmad3> ^^
<apeiros> gah
<txdv> just challenge the right human and he will write a melborge compiler in melborge
<apeiros> +l
<workmad3> apeiros: lol
<apeiros> horrible typo
<agent_white> Terry Davis
<workmad3> apeiros: freudian slip, much? :)
<apeiros> friday slip
* IceDragon walks and wonders what's going on in #ruby today...
camilasan has joined #ruby
allcentury has joined #ruby
<workmad3> IceDragon: welcome to #malbolge-friday
<IceDragon> Wat
<IceDragon> Oh yeah, its friday
<IceDragon> carry on
<apeiros> I think we're carried off, tho
arup_r has joined #ruby
<pontiki> carted off, i believe the expression is
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
<agent_white> I hope someplace nice.
<pontiki> it's a farm
Suchit has quit [Quit: (null)]
<pontiki> a rather funny farm
hiyosi has quit [Ping timeout: 258 seconds]
charliesome has joined #ruby
ctp has joined #ruby
tlarevo has joined #ruby
joonty has joined #ruby
DaniG2k_ has quit [Ping timeout: 255 seconds]
msgodf has joined #ruby
dkb20k has joined #ruby
doodlehaus has joined #ruby
benzrf|offline is now known as benzrf
jottr has quit [Ping timeout: 244 seconds]
arup_r has quit [Remote host closed the connection]
beef-wellington has joined #ruby
sandelius has joined #ruby
gogiel has joined #ruby
<shevy> where are the pigs
<pontiki> you're thinking of animal farm
<jhass> shevy: we are the pigs
<shevy> pontiki is the lead dolphin
takle has quit [Remote host closed the connection]
<shevy> I volunteer for the clown fish
<workmad3> shevy: stuck in finding nemo again?
My_Hearing is now known as Mon_Ouie
<shevy> hah
<jhass> again? doubt he ever left
dkb20k has quit [Read error: Connection reset by peer]
<shevy> I loved the sharks
elaptics is now known as elaptics`away
* pontiki ponders a lead dolphin
mathias2 has quit [Ping timeout: 265 seconds]
<pontiki> heavy role, that
<hydra1> lol at topic
<shevy> wow
<shevy> perl 8 is out
<hydra1> ok, flame begins now
<benzrf> shevy: old news m8
<hydra1> perl sucks hard, use python
<pontiki> perl... *8*??
<shevy> hydra1 if I cut something from you, will you regrow it?
<benzrf> pontiki: yep!
dkb20k has joined #ruby
<benzrf> pontiki: havent you seen http://www.perl8.org
<hydra1> shevy: honestly ? no
<shevy> the legendary hydra
AlexRussia has quit [Ping timeout: 272 seconds]
<shevy> there is even a reallife animal called a hydra
gigetoo has quit [Ping timeout: 264 seconds]
<pontiki> i had not
gigetoo has joined #ruby
zorak8 has quit [Ping timeout: 245 seconds]
<pontiki> but i get it
anarang has quit [Quit: Leaving]
<hydra1> yeah there is also a THC tool with that name
charliesome has quit [Quit: zzz]
<pontiki> oooo, new floyd album on spotify
<shevy> aren't they cute? so peaceful in sessile form on the surface ... -> goo.gl/EacO52
Xeago has joined #ruby
<shevy> pontiki remembers the old stuff
adriancb has joined #ruby
sanguisdex has quit [Ping timeout: 255 seconds]
doev has joined #ruby
alex88 has quit []
takle has joined #ruby
TPBallbag has joined #ruby
chipotle has joined #ruby
Xeago_ has quit [Ping timeout: 245 seconds]
tesaf has joined #ruby
benzrf is now known as benzrf|offline
<pontiki> they look like little groots
sanguisdex has joined #ruby
AlexRussia has joined #ruby
aaronrl_ is now known as aaronrl
nonks has quit [Ping timeout: 250 seconds]
dc_ has joined #ruby
elaptics`away is now known as elaptics
usrj_ has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
apeiros_ has joined #ruby
Toad` has joined #ruby
livathinos has joined #ruby
dkb20k has quit [Read error: Connection reset by peer]
P-NuT has quit []
jusmyth has quit [Read error: Connection reset by peer]
jusmyth has joined #ruby
apeiros_ has quit [Ping timeout: 258 seconds]
clauswitt has quit [Ping timeout: 240 seconds]
jimbach has joined #ruby
<shevy> pontiki hehe, a bit like fungi growing on plants
dkb20k has joined #ruby
zorak8 has joined #ruby
Timgauthier has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away is now known as Timgauthier
Timgauthier is now known as timgauthier_away
<agent_white> shevy: Underwater palm trees!
wald0 has quit [Ping timeout: 258 seconds]
shortCircuit__ has quit [Remote host closed the connection]
dc___ has joined #ruby
marr has joined #ruby
yfeldblum has joined #ruby
nvdpl has quit [Quit: ZZZzzz…]
dc_ has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
iamjarvo has joined #ruby
mary5030 has joined #ruby
sambao21 has joined #ruby
dkb20k has quit [Read error: Connection reset by peer]
<hydra1> sorry guys
<hydra1> may I spam a bit from a friend
<hydra1> ?
<sevenseacat> no.
<hydra1> sad
<workmad3> hydra1: why doesn't your friend come on? :P
emmesswhy has quit [Quit: This computer has gone to sleep]
<hydra1> it is about a network monitor thingy
<hydra1> you may be interested
<workmad3> apeiros: do you have your banstick ready? :)
yfeldblum has quit [Ping timeout: 258 seconds]
<hydra1> he founded the company recently, and I think its actually quite good
<hydra1> (spam alert: https://polygraph.io/)
procat has joined #ruby
i_s has joined #ruby
GeorgesLeYeti has joined #ruby
DaniG2k has joined #ruby
<GeorgesLeYeti> Hi
P-NuT has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
Channel6 has joined #ruby
<GeorgesLeYeti> I wanna make something like if File.atime(myfile) < 1.days.from_now
P-NuT has left #ruby [#ruby]
<GeorgesLeYeti> but it returns ArgumentError: invalid date
<hydra1> oh shit
<hydra1> sorry guys xDDD lol, I thought I was on the security channel
<workmad3> hydra1: heh
livingst_ has joined #ruby
Pip has joined #ruby
<Pip> Hi how to make irb interact have colors?
yfeldblum has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<GeorgesLeYeti> just to avoid ab probleme, I just wanna delete a folder if all its files has a last access time superior to 1 day
<jhass> Pip: if you want a better irb you might be interested in pry, pryrepl.org
zorak8 has quit [Ping timeout: 244 seconds]
<GeorgesLeYeti> ok found my problem sry
livingstn has quit [Ping timeout: 256 seconds]
amooreniemi has joined #ruby
rshetty has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
elaptics is now known as elaptics`away
elaptics`away is now known as elaptics
whoisjake has joined #ruby
mary5030 has quit [Remote host closed the connection]
Xeago_ has joined #ruby
rkalfane has joined #ruby
<amooreniemi> hello all
joast has joined #ruby
xanderwebs has left #ruby [#ruby]
rshetty_ has joined #ruby
freerobby has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
amooreniemi has left #ruby [#ruby]
rshetty has quit [Ping timeout: 258 seconds]
edwardly has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.0.1]
everettForth has quit [Ping timeout: 255 seconds]
Xeago has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
sevenseacat has quit [Remote host closed the connection]
Kricir has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
edwardly has joined #ruby
govg has joined #ruby
corehook has joined #ruby
jenrzzz has joined #ruby
andikr has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 250 seconds]
einarj has quit [Remote host closed the connection]
hiyosi has joined #ruby
sigurding has quit [Ping timeout: 258 seconds]
i0n has quit [Quit: snooze]
jottr has joined #ruby
hiyosi has quit [Ping timeout: 256 seconds]
chipotle_ has joined #ruby
sigurding has joined #ruby
chipotle has quit [Ping timeout: 245 seconds]
livathinos has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
kamilc__ has joined #ruby
freerobby has quit [Quit: Leaving.]
jottr has quit [Ping timeout: 244 seconds]
drawingthesun has quit [Read error: Connection reset by peer]
ptrrr has joined #ruby
livathinos has joined #ruby
gaganjyot has joined #ruby
jlast has joined #ruby
mkaesz has joined #ruby
gaganjyot has quit [Max SendQ exceeded]
mary5030 has joined #ruby
tagrudev has quit [Remote host closed the connection]
gaganjyot has joined #ruby
iamjarvo has joined #ruby
benzrf|offline is now known as benzrf
gaganjyot has quit [Max SendQ exceeded]
siaw has left #ruby [#ruby]
ta_ has quit [Ping timeout: 255 seconds]
gaganjyot has joined #ruby
dc___ has quit [Read error: Connection reset by peer]
wjimenez5271 has joined #ruby
dc_ has joined #ruby
gaganjyot has quit [Max SendQ exceeded]
centrx has joined #ruby
nonks has joined #ruby
gaganjyot has joined #ruby
dangerousdave has joined #ruby
noop has quit [Quit: Leaving]
apeiros has quit [Remote host closed the connection]
rippa has joined #ruby
apeiros has joined #ruby
livingstn has joined #ruby
gaganjyot has quit [Client Quit]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tier has quit [Remote host closed the connection]
jobewan has joined #ruby
gagan has joined #ruby
livingst_ has quit [Ping timeout: 256 seconds]
dc_ has quit [Read error: No route to host]
benzrf is now known as benzrf|offline
dc_ has joined #ruby
ta has joined #ruby
atmosx has joined #ruby
<atmosx> aloha
<shevy> the yeti
<shevy> atmosx, we have a yeti here
<matti> ;]
<shevy> and his father
<shevy> matti
<matti> We have sa shevy
<shevy> no
<matti> ;D
<atmosx> you do?
<shevy> GeorgesLeYeti
<matti> shevy: LTNS
<shevy> we also have Rambo here -> PierreRambaud
<shevy> <PierreRambaud> shevy, As you wish ;) I'm planning to call my son John :)
<GeorgesLeYeti> Hi shevy
<shevy> we have rich an interesting characters here
<atmosx> cool
<shevy> lol
* atmosx migrating ruby to 2.1.5
<shevy> atmosx when is your pharmaconos..is something exam?
<atmosx> Wednesday
klmlfl has joined #ruby
gsd has joined #ruby
i0n has joined #ruby
Channel6 has quit [Quit: Leaving]
elaptics is now known as elaptics`away
<shevy> have you finished learning the shikimate pathway yet :-)
apeiros has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
<atmosx> shevy: kinda
* matti executes shevy.i_miss_you_too('matti')
<shevy> atmosx how many OH groups does shikimic acid have
<atmosx> I can draw it, if requested, draw a couple of structures know where most things come from and I can talk about it... kinda
<atmosx> shevy: that's easy, 4
<shevy> hehe you did indeed learn it
<shevy> that reminds me
<atmosx> shevy: what's the diff between shikimate structure and gallic acid
<atmosx> that's a tricky one
<shevy> atmosx have you played with these molecules in the chimeira viewer?
<shevy> hey I don't even know how gallic acid looks like
<atmosx> shevy: nope, don't knwo what this is
<atmosx> shevy: gallotannin
<shevy> for those 3D molecules, to view them
<shevy> of a compound
<matti> ;/
ndrei has quit [Read error: Connection reset by peer]
<atmosx> it's exactly like shikimic acid, but the phenyl is trivalent
<shevy> aha
jfran has joined #ruby
<atmosx> shit, I can't believe I'm talking like that
<atmosx> anyway
<shevy> hahaha
coderhs has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
<shevy> ok back to computers
<atmosx> I'm waiting for rvm to finish the migration and going get some sleep, get my head straight
<shevy> I am on 2.1.5 already
* atmosx loves computers
<atmosx> shevy: heh, how gems ?
<atmosx> gem list|wc -l ?
<atmosx> the actual number would be a -1 iirc
byteoverfl0w has quit [Quit: Leaving... have a good one...]
<shevy> 296
<mikecmpbll> how would i channel the output from a process called with Kernel#system to a Logger instance?
<shevy> but 80% of these are tiny
<shevy> mikecmpbll can you use `` instead?
tier has joined #ruby
<lupine> hmm, I'm trying to flock() a directory, but I'm getting Errno::EISDIR out of File.open(dir) and Dir.open(dir) lacks a #flock call
<mikecmpbll> shevy: yeah, i probably can. good point.
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mikecmpbll> so how would I do that with ``?
<DylanJ> if you need more than ``
nonks has quit [Ping timeout: 250 seconds]
<shevy> hmm
livathinos has quit [Remote host closed the connection]
<atmosx> mikecmpbll: open3
zorak8 has joined #ruby
<mikecmpbll> okidokes, checking it out
<shevy> require 'open3'
<shevy> cmd = 'git push heroku master'
<shevy> Open3.popen3(cmd) do |stdin, stdout, stderr, wait_thr|
<shevy> !
<shevy> I hate the 3 there
<mikecmpbll> never heard of this open3 in my life. nice
gagan has quit [Quit: Leaving]
<atmosx> mikecmpbll: just an idea from an old project of mine https://gist.github.com/atmosx/14acbe869e6ca00f61d2#file-monmypi-client-rb-L77
gagan has joined #ruby
<atmosx> shevy: there are 2 previous versions IIRC :-P
<atmosx> or maybe 3 (ruby starts counting from 0)!
<atmosx> that said migration is over, bb
lmickh has quit [Remote host closed the connection]
mikepack has joined #ruby
<mikecmpbll> atmosx: ty.
bal1 has quit [Quit: bal1]
yfeldblum has joined #ruby
jfran has quit [Ping timeout: 255 seconds]
troulouliou_dev has quit [Quit: Leaving]
atmosx has quit [Quit: Lost in trance]
coderhs has joined #ruby
danjordan has quit [Read error: Connection reset by peer]
procat has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
Ankhers has joined #ruby
tokik has quit [Ping timeout: 258 seconds]
siwica has quit [Remote host closed the connection]
gsd has quit [Read error: Connection reset by peer]
siwica has joined #ruby
Rhainur has joined #ruby
gsd has joined #ruby
bbloom has quit [Quit: Textual IRC Client: www.textualapp.com]
bbloom has joined #ruby
apeiros has joined #ruby
gagan has quit [Ping timeout: 265 seconds]
rudisimo_ has joined #ruby
pitr has joined #ruby
hydra1 has quit [Ping timeout: 240 seconds]
Morkel has joined #ruby
rudisimo has quit [Ping timeout: 265 seconds]
vimer has joined #ruby
apeiros_ has joined #ruby
Hijiri has quit [Ping timeout: 272 seconds]
rshetty_ has quit [Remote host closed the connection]
econerd4ever has joined #ruby
maestrojed has joined #ruby
<rpag_> there's popen4 too
<rpag_> as a gem
anaeem1_ has joined #ruby
<workmad3> hmm... I always thought Open3 and popen3 referred to the number of pipes it gave you access to
<workmad3> which makes me wonder what popen4 does :)
treehug88 has joined #ruby
apeiros_ has quit [Ping timeout: 265 seconds]
spyderman4g63 has quit [Read error: Connection reset by peer]
TPBallbag is now known as ProClifoNOTAKF
ProClifoNOTAKF is now known as TPBallbag
tier has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
<pontiki> so did i...
pitr has left #ruby ["Bye"]
TPBallbag is now known as winner_
whoisjake has quit []
<pontiki> stdin, stdout, stderr, and stdwtf
i_s has quit [Remote host closed the connection]
mikeg has joined #ruby
<workmad3> oh wow... popen4 was written for compatibility with 1.8.2 and 1.8.4, by the looks of things
winner_ is now known as TPBallbag
vectra has quit [Ping timeout: 244 seconds]
i_s has joined #ruby
<workmad3> and seems to be 'fork and provide you with stdin, stdout, stderr and pid'
adriancb has quit [Remote host closed the connection]
<pipework> I would think that the fourth thing would be an IO object, but meh
AlSquirrel has joined #ruby
adriancb has joined #ruby
i_s has quit [Read error: Connection reset by peer]
<workmad3> pipework: I'd have thought/expected that too... meh indeed :)
i_s has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
nonks has joined #ruby
adac has quit [Ping timeout: 272 seconds]
<rpag_> workmad3, i think its thing was being cross platform
rshetty has joined #ruby
i_s has quit [Remote host closed the connection]
ikaros has quit [Quit: Ex-Chat]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
i_s has joined #ruby
s51itxsyc has quit [Ping timeout: 250 seconds]
treehug8_ has joined #ruby
abuzze has quit []
s51itxsyc has joined #ruby
tier has joined #ruby
i_s has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 264 seconds]
at3560k has quit [Quit: Leaving]
Ulrike_Rayne has quit [Read error: Connection reset by peer]
adriancb has quit [Ping timeout: 265 seconds]
treehug88 has quit [Ping timeout: 256 seconds]
arup_r has joined #ruby
fabrice31 has quit [Remote host closed the connection]
i0n has quit [Quit: snooze]
cmoylan has joined #ruby
chipotle_ has quit [Quit: cya]
adriancb has joined #ruby
finferl has quit [Remote host closed the connection]
rankine has joined #ruby
lmickh has joined #ruby
hiyosi has joined #ruby
rankine has quit [Client Quit]
govg has quit [Ping timeout: 240 seconds]
jdenton has joined #ruby
elaptics`away is now known as elaptics
CustosL1men has quit [Ping timeout: 264 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
byprdct has joined #ruby
corehook has quit [Remote host closed the connection]
scrogson has joined #ruby
echooo has quit [Read error: Connection reset by peer]
francisfish has quit [Remote host closed the connection]
<shevy> lol
<shevy> stdwtf
volty has joined #ruby
<shevy> I should ask on stackoverflow what that is
<ddv> Weekend. <3
iamjarvo has quit [Ping timeout: 240 seconds]
<shevy> no
<shevy> continue work
<scrogson> Hey folks...anyone ever used `|=` ?
livathinos has joined #ruby
zorak8 has quit [Ping timeout: 272 seconds]
<tzero> nobody, ever. :P
<scrogson> ha
<shevy> scrogson not in production code
<shevy> my code is so simple that it does not need |=
<deepy> My code is so logical that I don't need operators
anaeem1_ has quit [Read error: Connection reset by peer]
<shevy> haha deepy
<shevy> if only
<scrogson> actually that's in C#
<scrogson> but I think it's equiv
econerd4ever has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
<ddv> yeah I used it some api calls for caching, or to set a default value somewhere
anaeem1_ has joined #ruby
nvdpl has joined #ruby
corehook has joined #ruby
dangerousdave has joined #ruby
<ddv> scrogson, u meant ||= ?
FreeBee has joined #ruby
<scrogson> and no, |=
econerd4ever has joined #ruby
<ddv> elastic search is a mess btw
<workmad3> heh :) never seen someone do array unions like that before
zorak8 has joined #ruby
<workmad3> >> ["a", "b", "c"] | ["a", "d", "e"]
<eval-in__> workmad3 => ["a", "b", "c", "d", "e"] (https://eval.in/221479)
<scrogson> workmad3: ah, is that what it's doing?
<workmad3> scrogson: 'a |= b' is 'a = a | b'
chrishough has joined #ruby
<workmad3> scrogson: on integers, | is a binary or... on arrays, | is overloaded as a set union operation
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<workmad3> scrogson: so that's essentially saying 'add this filter to the array of filters as long as it doesn't already exist in there'
kireevco has joined #ruby
doev has quit [Quit: Verlassend]
<scrogson> ah
<workmad3> scrogson: it would probably have made more sense if they'd just used a Set there though :)
Synthbread has quit [Ping timeout: 272 seconds]
thoolihan has left #ruby ["leaving"]
AriaMoKr has joined #ruby
nvdpl has quit [Quit: ZZZzzz…]
nvdpl has joined #ruby
chipotle has joined #ruby
yfeldblum has joined #ruby
nvdpl has quit [Max SendQ exceeded]
nvdpl has joined #ruby
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Changing host]
troulouliou_dev has joined #ruby
dkphenom has joined #ruby
i0n has joined #ruby
econerd4ever has quit [Remote host closed the connection]
diegoviola has joined #ruby
econerd4ever has joined #ruby
jlebrech has joined #ruby
<jlebrech> does httparty have an option to have default params to send everytime?
nvdpl has quit [Client Quit]
jdenton has quit [Quit: leaving]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 264 seconds]
samflores has joined #ruby
zorak8 has quit [Ping timeout: 256 seconds]
jdenton has joined #ruby
elcheckito has quit [Ping timeout: 245 seconds]
jdenton has left #ruby [#ruby]
jdenton has joined #ruby
Xeago_ has quit [Remote host closed the connection]
FreeBee has quit [Quit: Leaving]
econerd4ever has quit [Ping timeout: 244 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 265 seconds]
gagan has joined #ruby
DaniG2k has quit [Ping timeout: 264 seconds]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Fire-Dragon-DoL has joined #ruby
jusmyth1 has joined #ruby
elaptics is now known as elaptics`away
jusmyth has quit [Read error: Connection reset by peer]
elaptics`away is now known as elaptics
gagan has quit [Max SendQ exceeded]
divi has joined #ruby
gagan has joined #ruby
<shevy> hmm
<shevy> I have lots of files that are structured in like this way:
<shevy> require 'foo/bar.rb'
<shevy> now if I rename or move bar.rb away, I have to modify all those files
troulouliou_dev has quit [Quit: Leaving]
aganov has quit [Quit: Leaving]
takle has quit [Remote host closed the connection]
gagan has quit [Max SendQ exceeded]
elcheckito has joined #ruby
fandi has joined #ruby
felixjet has quit [Read error: Connection reset by peer]
gagan has joined #ruby
<shevy> I guess I could create dummy .rb files that will have the proper path to those .rb files
<shevy> but that is so inelegant
spyderman4g63 has quit [Read error: No route to host]
gagan has quit [Max SendQ exceeded]
spyderman4g63 has joined #ruby
<centrx> shevy, Use ActiveSupport::Autoload
<centrx> I think you will like it a lot
gagan has joined #ruby
hamakn_ has quit [Remote host closed the connection]
takle has joined #ruby
gsd has joined #ruby
hamakn has joined #ruby
havenwood has joined #ruby
terlar has quit [Ping timeout: 256 seconds]
jdenton has quit [Quit: leaving]
elcheckito has quit [Ping timeout: 258 seconds]
vimer has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
<hesco1> `rake test` seems to be complaining about 'Could not find rspec (>= 2.0.0)', but the only rspec I find is 2.14.7. What am I to make of that? https://gist.github.com/hesco/2d7dd757804cc73c1290
vimer has joined #ruby
hamakn has quit [Ping timeout: 245 seconds]
troyready has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hydra1 has joined #ruby
DaniG2k has joined #ruby
mleung has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
apeiros_ has joined #ruby
shazaum has quit [Ping timeout: 255 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
timonv_ has quit [Remote host closed the connection]
<shevy> ACK
<shevy> def method_missing(i)
<shevy> return false
<shevy> is this enough to simulate LPC?
DaniG2k has quit [Client Quit]
<shevy> centrx that actually looks almost like an advanced way to require sub-files and sub-modules
kobain has joined #ruby
joonty has quit [Quit: joonty]
siwica1 has joined #ruby
CustosL1men has joined #ruby
Versality has quit [Quit: Be back later ...]
<shevy> I am in the middle of rewriting an ancient project... picking through the individual .rb files kinda stinks, adapting new paths also sucks... I guess I have about 200 more .rb files to go through ...
jottr_ has joined #ruby
siwica has quit [Ping timeout: 240 seconds]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
Versality has joined #ruby
kobain has quit [Max SendQ exceeded]
renderful has joined #ruby
kobain has joined #ruby
apeiros_ has quit [Ping timeout: 264 seconds]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
mikepack has quit []
siwica1 has quit [Remote host closed the connection]
kobain has joined #ruby
siwica has joined #ruby
Ulrike_Rayne has joined #ruby
silkfox has joined #ruby
mikepack has joined #ruby
klmlfl has quit [Remote host closed the connection]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
usrj has joined #ruby
hamakn has joined #ruby
Versality has quit [Ping timeout: 255 seconds]
beef-wellington has quit [Ping timeout: 264 seconds]
nonks has quit [Ping timeout: 250 seconds]
kobain has quit [Max SendQ exceeded]
tobago has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.0.1]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
cirn0 has joined #ruby
kobain has joined #ruby
olivier_bK has quit [Ping timeout: 244 seconds]
kobain has quit [Max SendQ exceeded]
wald0 has joined #ruby
kobain has joined #ruby
mathias2 has joined #ruby
bricker`work has joined #ruby
usrj has quit [Quit: Leaving]
TPBallbag has quit [Remote host closed the connection]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
josephndenton has joined #ruby
silkfox has quit [Ping timeout: 264 seconds]
kobain has quit [Max SendQ exceeded]
sheepman has quit [Read error: Connection reset by peer]
kobain has joined #ruby
jottr_ is now known as jottr
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
it0a has joined #ruby
sklik has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
kobain has quit [Client Quit]
josephndenton has quit [Client Quit]
jimbach has quit [Remote host closed the connection]
silkfox has joined #ruby
sambao21 has joined #ruby
_riz_ has joined #ruby
josephndenton has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
<_riz_> googling syntax is hard - what does "->" mean, in the context of a Gemfile?
livathinos has quit [Remote host closed the connection]
<_riz_> ie, like this:
thagomizer has joined #ruby
allcentury has joined #ruby
<_riz_> gem 'my_gem', '->0.1.23'
crazydiamond has quit [Ping timeout: 258 seconds]
sigurding has quit [Quit: sigurding]
<centrx> _riz_, you mean ~> ?
<_riz_> no
<_riz_> I don't
<centrx> _riz_, then in the context of a Gemfile, it's a typo
elcheckito has joined #ruby
usrj has joined #ruby
<_riz_> sonofabitch, the stupid font the browser chose made ~ and - look EXACTLY the same
<_riz_> sorry for the noise, and thanks
adriancb has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
stunder has joined #ruby
jleishman has quit [Quit: Be back later ...]
tier has joined #ruby
IrishGringo has quit [Ping timeout: 265 seconds]
_riz_ has left #ruby ["Leaving"]
allcentury has quit [Ping timeout: 265 seconds]
jlebrech has quit []
usrj has left #ruby ["Leaving"]
sambao21 has quit [Quit: Computer has gone to sleep.]
Hanmac has quit [Ping timeout: 244 seconds]
allcentury has joined #ruby
shredding has quit [Quit: shredding]
omosoj has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
tvw has joined #ruby
livathinos has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
Timgauthier has joined #ruby
Timgauthier is now known as timgauthier_away
TPBallbag has joined #ruby
<wald0> Vim users: how do you "browse" the code of for example a class when you need to read it?
atmosx has joined #ruby
xymbol has joined #ruby
<wald0> a class that is from a generic lib/gem for example, not speciflcally your code
larissa has quit [Quit: Leaving]
yfeldblum has joined #ruby
TPBallbag has quit [Remote host closed the connection]
<centrx> wald0, What do you mean by browse?
<centrx> wald0, Searching for something, use /
coderhs has joined #ruby
<atmosx> hello
coderhs has quit [Read error: Connection reset by peer]
chthon has quit [Ping timeout: 256 seconds]
<shevy> I thought you are sleeping atmosx!
<shevy> go back to bed!
thsig has quit [Remote host closed the connection]
michaeldeol has joined #ruby
<atmosx> shevy: I tried wasn't possible
<atmosx> I'm starting now, ordered a pizza
<shevy> lol
<shevy> you sleep better after a pizza? :-)
<shevy> what kind of pizza anyway
<tzero> can someone explain this bundle/gem nonsense? -> https://bpaste.net/show/2f85319da075
poweratom_ has joined #ruby
<atmosx> shevy: fungi with mozzarella
<wald0> centrx: let's say that im editing a code that contains "self.class_eval", and i say "wtf is class_eval?" so i want to "enter" on it to check what/how it is made
<atmosx> shit I can't see a Greek comedy show, because of the IP
<atmosx> blah assholes
<atmosx> brb
atmosx has quit [Client Quit]
yfeldblum has quit [Ping timeout: 256 seconds]
larissa has joined #ruby
<shevy> lol
mkaesz has quit [Remote host closed the connection]
jheg__ has quit [Quit: jheg__]
<tzero> bundle update and bundle install both report using version 0.16.1 of that gem, grabbed from github, but list shows 0.16
<tzero> 0.16 is installed to a later location in GEM_PATH, so wtf?
atmosx has joined #ruby
SCHAAP137 has joined #ruby
<centrx> wald0, oh yeah there are tools for that, but I generally just use grep and the "Internet"
<wald0> for C with ctags i use ctrl + ] to go to the header declarations file, and ctrl + t to come back to my code
<jhass> tzero: gem list doesn't know about git sources
<jhass> that's entirely bundler magic
<wald0> centrx: yeah but im not very familiarized with ruby right now and so i need a fast way to "view" everything :)
<wald0> well, in normal using too but specially now :)
nonks has joined #ruby
roolo has quit [Quit: AAAAaaaaAAAAAAA]
<wald0> i found very un-productive to go out of your actual window/line/cursor/keyboard/anything to do anything
* wald0 is an optimizations sick
<hesco1> I'm thinking my failed depency issue relates to my rspec being in my path at /usr/bin/rspec, but that rake is looking at: /var/lib/gems/1.9.1/gems, where the gems it does not (yet?) complain are missing seem to be located.
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<wald0> so just a key == see the contents
<shevy> hey wald0
<shevy> I think I read your nick before
<tzero> jhass: hmm, I thought bundle:gem::yum:rpm
<hesco1> how would I ask gem to install somethere there?
<centrx> wald0, Use multiple windows with Conque to get a bash terminal within vim :)
<jhass> tzero: ?!
<wald0> shevy: yeah, i was there from time to time :) still learning and practicing a bit of ruby :)
<centrx> wald0, but that doesn't help with Ruby/Rails docs
deric_skibotn has joined #ruby
<shevy> hesco1 sounds like mixed up debian base system
<shevy> wald0 yeah! I just can not remember what you said back then hehe
nkumari has joined #ruby
<shevy> you were not the KDE konsole guy or?
<shevy> or were you the french debian user ... hmm
<tzero> jhass: i.e. bundle just "wraps" gem, but apparently it does its own BS?
gsd has quit [Read error: Connection reset by peer]
geggam has joined #ruby
<wald0> centrx: hum... there's not something like "ctrl + ]" that simply jumps to the .rb code that contains the definition of an external-to-my-code class ? just like i do it with ctags in c
ramfjord has joined #ruby
livathinos has quit []
<wald0> shevy: i was talking mostly about making GUI applications with ruby and enlightenment toolkit :)
adriancb has joined #ruby
Hanmac has joined #ruby
benzrf is now known as benzrf|offline
gsd has joined #ruby
<shevy> aaaaah YES
<shevy> now I remember!
<wald0> :)
<shevy> you got things to run too
<shevy> I did not
xymbol has quit [Quit: Be back later ...]
<centrx> wald0, There must be, I just don't know about it
<jhass> tzero: yes and no. Bundler does use Rubygems as much as possible. But making git clones available in the $LOAD_PATH is nothing that's available in Rubygems (yet), so Bundler does it on its own
ndrei has joined #ruby
<wald0> actually im in fact trying to use that to make a small application that shows to the user a list of tasks to do each day
<shevy> \o/
<shevy> as long as you keep on coming by to say hi on #ruby
Spami has joined #ruby
allcentury has quit [Ping timeout: 245 seconds]
<wald0> centrx: sometimes i wonder how you* guys code... :), not talking about you of course, i just see that there's ton of devs that uses very unneficient ways to do things
<shevy> even though I think you are literally the only person here to use enlightenment
<wald0> actually i want a brain-interface that does just what i think
<wald0> but my mother wanted to compile me too soon
<shevy> lol
TPBallbag has joined #ruby
<shevy> then the bootstrap process
<tzero> what I'd give for a reliable virtualenv-like environment in rubyland :(
<wald0> shevy: you were interested on making GUI applications too, from what i remember?
<shevy> tzero YOU CAN WRITE IT COME ON MAN
<shevy> wald0 well yes and no...
<jhass> tzero: bundler pretty much does that
<tzero> no, what the ruby ecosystem needs is definitely not more crap
<jhass> --path vendor/
<shevy> I think GUIs are awesome in general... but it is too much work to make them right now, e. g. in ruby-gnome
<jhass> won't touch any system paths
nonks has quit [Ping timeout: 250 seconds]
<shevy> and then there is the www ... which ass-kicked the traditional GUIs
tier has quit [Remote host closed the connection]
<volty> go with qtruby
<shevy> today is the day of the short nicks here
<shevy> jhass, volty, shevy, wald0, tzero ... centrx is also ok even though he is +1
<agent_white> NO MOH
<shevy> omg what a huge nick
<agent_white> Thats what nickserv said
<atmosx> go with god
kamilc__ has quit [Quit: Leaving...]
<shevy> wald0 I think enlightenment is visually nice and interesting because it does things so differently; but when I look at those things I often wonder whether I can be productive
<shevy> like unity
takle has quit [Remote host closed the connection]
tesaf has quit [Quit: Lost terminal]
econerd4ever has joined #ruby
allcentury has joined #ruby
<shevy> how people can use this eludes me
takle has joined #ruby
xymbol has joined #ruby
<volty> why don't you tell us something more, about unity -- what makes it productive, e.g.
nkumari has quit [Remote host closed the connection]
<wald0> shevy: alright, im trying to use that E toolkit and since it is very native theres a ton of work to do... by other side we just created a mywin.new("foo", "bar", "wombat") way to create a new window showing a list of 3 elements with these names
<tzero> not to troll, but after having been tossed into the chef/ruby pool headfirst over the last few months, it's been one yak shaving frustration after another. I must be missing something crucial, or doing something terribly wrong to not see the appeal of such a popular and powerful language
tier has joined #ruby
<volty> (I use kde and know nothing about unity)
<wald0> so, im pretty convinced that doing a bit of work should be extremely (ruby)-easy to do middle-powerful interfaces in one-lines
lmickh has quit [Remote host closed the connection]
<volty> wald0: yes, you are right
<wald0> shevy: i personally have some hate to www... yeah it solves tons of today problems but is a f**** bloated unneficient dependency for do everything
sailias has quit [Quit: Leaving.]
sailias1 has joined #ruby
sailias1 is now known as sailias
<volty> you can go also with meta or haml style (though it could be hard to think it out well)
zorak8 has joined #ruby
bricker`work is now known as bricker
i_s has joined #ruby
<hesco1> so shevy: any idea how I unmess it? Most things I did install from debian packages, but rspec I used the gem provider for.
bricker is now known as bricker`work
<wald0> volty, shevy: unfortunately there's not much ppl in #ruby that wants to make GUI applications, they only do WWW bloatstuff (not the ruby part, but the entire WWW topic)
timonv_ has joined #ruby
<centrx> SHOES!
<volty> anyway I find that showing whatever things could be better done using just a TreeWidget with two (or more) columns
<wald0> so c'mon guys and help there doing a f*ckin "i want a button, and i want an icon on it" singlelines GUI gem :) \o/
<godd2> The fewer lines of code your GUI app is, the more assumptions you're making
<volty> I feel that pythonists are more active with gui's. But I can't stand python
<wald0> alright, python has more gui-friends
<volty> godd2: of course, more defaults
<wald0> ruby is better than python? well, thats a trolling topic but in any case ruby has no gui friends lol
takle has quit [Ping timeout: 272 seconds]
<godd2> volty can't be "defaults" if there arent alternatives. cant be alternatives if there's too few lines of code
<tzero> should I be using only `gem` XOR only `bundle`?
jimbach has joined #ruby
econerd4ever has quit [Read error: Connection reset by peer]
<volty> i was praying the last night for somebody to test a piece of code (6 lines) but it seems nobody has qt here
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<wald0> godd2: most of the times you dont want to have a 200-lines gui to just show a button, ppl normally want simple interfaces, and if they needs complex ones they should maybe do its own methods of specific-purposed-widgets
<wald0> volty: you need to move to EFL then :)
econerd4ever has joined #ruby
<pontiki> tzero: it can be confusing; i do all my development using vagrant VMs, and so use bundle during development
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> tzero: unlikely
<pontiki> tzero: for my host system, i install gems directly
<jhass> tzero: inside a project with a Gemfile you typically only use bundler, else you use gem
klmlfl has joined #ruby
<wald0> volty: this is just a window (real gui desktop window) with a background and a button with a text, when you click on it it exits the app, small demo code
<wald0> shevy: ^
<pontiki> jhass: would you basically agree: bundle is for development mainly? of course with some applications you need it for deployment as well
<jhass> no
nkumari has joined #ruby
jleishman has joined #ruby
<pontiki> do you use bundle in day to day operation?
<jhass> bundlers main intent is to ensure a consistent dependency environment across everything
<jhass> that does include development as well as all production machines
jusmyth1 has quit [Quit: Leaving.]
mikecmpbll has joined #ruby
<volty> wald0: i have qapp_main { qb = Qt::PushButton.new('Quit'); qb.connect('clicked()') { $qApp quit }; qb }
<pontiki> right, so i build a command line tool as a gem, using bundle, but then when i install it into my system, i am using gem install
<jhass> therefore it even does ship additional features that allow its usage in pretty much all deployment scenarios
rkalfane has joined #ruby
<jhass> I'd say that's distribution though, not deployment
jimbach has quit [Ping timeout: 265 seconds]
<pontiki> right, which is why i said it's used in deployment as well
<wald0> volty: shevy: and so about this lib of widgets you can have all (and more) of these ones: http://docs.enlightenment.org/stable/elementary/widgetslist.html
<wald0> volty: this sounds like in fact a very friendly code (what you pasted)
DTSCode has quit [Read error: Connection reset by peer]
<wald0> volty: i heard that QT is powerful and simple to code (by other side much more slow/bloated)
<volty> wald0: yes, qapp_main is a (very) small method of mine -- just to avoid rewriting Qt::Application.new(ARGV) ... $qApp.exec() -- for small apps
DTSCode has joined #ruby
i0n has quit [Quit: snooze]
wallerdev has joined #ruby
stunder has quit [Ping timeout: 240 seconds]
emmesswhy has joined #ruby
<volty> what I need, and imo has to be done out-of-need, is layout out things programmatically (i hate predefined dialogs) in an easy way, let's say something like haml. In qt you can layout everything but i feel the code is bloated with all these Qt::...Layout.new etc etc
<wald0> volty: looking at google qt ruby, the intro page shows that is very similar to the code example that i gave you, which makes me think that could be possible to do it even more simple (for not complex interfaces of course)
<jhass> pontiki: so I guess it makes sense to differentiate between library and application development here, for the former it's just a development tool, for the later it's used always with the application
fabrice31 has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
<volty> qt is fast, but I'll give a look at urls you posted
<jhass> with the tools focus being on applicaton development
workmad3 has quit [Ping timeout: 264 seconds]
<pontiki> jhass: better way to put it,yeah
<wald0> volty: which OS you are in?
lkba has quit [Ping timeout: 255 seconds]
<volty> wald0: yes, starting with small methods, and going ahead till you (and if :) ) develop a new dsl for guis :)
<volty> kubuntu 14.04
<wald0> volty: so these EFL libs can be installed in windows, mac, linux, or even embedded devices, which is extremely good to make gui applications that "damnly works everywhere"
apeiros_ has joined #ruby
lkba has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<wald0> volty: just installed today in my co-worker laptop (ubuntu) the EFL packages from bodhi repository, and after to install "ffi-efl" gem the demo files on that gem worked directly :)
<volty> yes, but I need my already written qt code, should be nice if one day smb develops an odbc-like standard for guids
<volty> guis
takle has joined #ruby
<wald0> what you mean by odbc-like?
<volty> a standard
fabrice31 has quit [Ping timeout: 250 seconds]
mattmcclure has joined #ruby
<suy> volty: you need this, I think: http://seanchas116.github.io/ruby-qml/
<volty> let's say tcl/tk-like pushbutton.new for all libs
<suy> volty: qml is a DSL for GUIs, and pretty nicely integrated with qt
<volty> suy: you use it ?
Scripore has joined #ruby
<suy> (well, can be used without GUI, but...)
j_mcnally has joined #ruby
<wald0> yeah, a standard is what i need: add-button, add-checkbox, add-tooltip, bang!
<suy> volty: trying it. Looks promising. Seems to work fine for a boring use case, not enterprise ready I guess. It's at 0.0.6 IIRC. :)
<wald0> volty: in fact, these EFL are so much complete that i could really do a fullset of standard like this (well, im not so experienced in ruby but should try/need it)
St_Marx has joined #ruby
mikeg has quit [Ping timeout: 244 seconds]
Juanchito has quit [Quit: Connection closed for inactivity]
<suy> That's the look of the language. Declarative, but you can hook with imperative easily. https://github.com/seanchas116/ruby-qml/blob/master/examples/fizzbuzz/main.qml
<volty> suy: i was about to start, but something discouraged me, can't remember now but think it was the lack of all the standard qt signals
<wald0> i may should start by brainstorming that kind of "standard behaviour"... like starting with buttons, what i expect when adding a button and what controls from it i need
wjimenez5271 has joined #ruby
rshetty has quit [Remote host closed the connection]
<volty> and I need ruby behind, otherwise i could go back. but i'm going to give it a deeper look anyway.
<wald0> volty: any idea of how/where i could write the concept before to start trying it?
<shevy> volty you'll be going back to haskell?
<volty> ahahah
<shevy> :-)
stunder has joined #ruby
<volty> never, they are not linked niether to qt
procat has joined #ruby
timonv_ has quit [Remote host closed the connection]
<volty> wald0: i wouldn't advice that unless you are very proficiente with guis (in general), enlightment, and ruby
<wald0> buttons: it should change text, add a callback of method to run when clicked, mmh...
rshetty has joined #ruby
<volty> i beleive in bottom-up design in these cases -- do it standard way (enlightment-bound) then refactor
moritzs has joined #ruby
shazaum has joined #ruby
<wald0> volty: im very familiarized with the enlightnement libs (so i know pretty well what they can do) but not coded them much, and my ruby is level is novice :P
bigkevmcd has quit [Quit: Outta here...]
<wald0> volty: i wouldnt advice me too but i damn-really need them
<wald0> another option is to write the gui apps in C / E-libs, but sigh... c...
Silvermann has quit [Quit: Leaving]
whoisjake has joined #ruby
<volty> go & code, then stop & think, ... alternate
<shevy> lol
<wald0> i need now to do a very simple app, to show a list of daily tasks based on "every month do foo and bar, every week do wombat, and be able to print the list in PDF", ok... not hard to do in ruby im pretty convinced
<shevy> code & piss, eat & sex
<wald0> but how to do that on C ???
apeiros_ has quit [Remote host closed the connection]
techsethi has joined #ruby
<centrx> tweet about it in C with printf
<volty> as in any other language -- list of to-do things & methods for stroring & retrieving & filtering & showing
lolmaus has quit [Remote host closed the connection]
kireevco has quit [Read error: No route to host]
lolmaus has joined #ruby
pa3ce has joined #ruby
hmsimha_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
TheNet has joined #ruby
nonks has joined #ruby
chrishough has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
larissa has quit [Quit: Leaving]
<shevy> you love the & character
sinequanon has joined #ruby
kireevco has joined #ruby
siwica has quit [Remote host closed the connection]
F__i__L has joined #ruby
wallerdev has joined #ruby
<F__i__L> hey guyzz do you know any good resource about APIs security ??
siwica has joined #ruby
<F__i__L> book or .. ?
wallerdev has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<volty> & and shevy :)
emmesswhy has quit [Quit: This computer has gone to sleep]
wallerdev has joined #ruby
xymbol has quit [Ping timeout: 258 seconds]
i_s has quit []
bMalum_ has joined #ruby
siwica has quit [Remote host closed the connection]
siwica has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
kirun has joined #ruby
geggam has quit [Remote host closed the connection]
Ulrike_Rayne has quit [Remote host closed the connection]
reset has joined #ruby
bMalum has quit [Ping timeout: 264 seconds]
bMalum_ is now known as bMalum
TPBallbag has quit [Remote host closed the connection]
yfeldblum has joined #ruby
nobitanobi has joined #ruby
Lingos has joined #ruby
thsig has joined #ruby
<atmosx> F__i__L: there's a blog post, that was featured on HN some time ago... wait I think I have it on pinboard
jhwhite has joined #ruby
<drizz> heh, rails in Scorpion: http://upl.io/rqcgw6
<atmosx> nah can't find it
<atmosx> I didn't save it
<atmosx> hehe
nkumari has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
<tzero> they misspelled Drive C: haha
<tzero> Local Dive
Soda has quit [Remote host closed the connection]
EasyCo has quit [Quit: Connection closed for inactivity]
Norrin has joined #ruby
Ulrike_Rayne has joined #ruby
siwica has quit [Ping timeout: 258 seconds]
dkphenom has joined #ruby
haasn has quit [Quit: haasn]
ramfjord has quit [Ping timeout: 265 seconds]
ndrei has quit [Ping timeout: 240 seconds]
F__i__L has quit [Quit: Konversation terminated!]
bMalum has quit [Quit: bMalum]
haasn has joined #ruby
baweaver has joined #ruby
nkumari has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
TheNet has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
<wald0> volty: im brainstorming the idea of the gui toolkit... but is confusing when you think "what could be the easiest way to declare its code?", im searching for the biggest simplicity and clarity-of-code
<wald0> volty: do you know any example or is there any doc "standard" about these things?
AlexRussia has quit [Quit: WeeChat 1.1-dev]
AlexRussia has joined #ruby
Xiti` has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
siwica has joined #ruby
Photism has joined #ruby
nkumari has quit [Remote host closed the connection]
<wald0> volty: shevy: what do you think about this way to define a gui? im pretty sure that can be more "clear" than this... hum.... http://paste.debian.net/131820/
theotherstupidgu has joined #ruby
elaptics is now known as elaptics`away
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
volty has quit [Ping timeout: 250 seconds]
Xiti has quit [Ping timeout: 240 seconds]
arrubin has quit []
jimbach has joined #ruby
TPBallbag has joined #ruby
<wald0> i dont even know if this is correct-ruby syntax... damn
TheNet has joined #ruby
baweaver has joined #ruby
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
tvw has quit []
TPBallbag has quit [Remote host closed the connection]
patrick99e99 has quit [Quit: Lost terminal]
SCHAAP137_ has joined #ruby
<shevy> wald0 you mean agnostic of the underlying GUI?
<shevy> wald0 well in ruby there is often more than one way
benzrf is now known as benzrf|offline
<shevy> For instance:
<shevy> win.text.set "Do you want to continue?"
<shevy> win.text = "Do you want to continue?"
<shevy> because we have aliases you can have both ways
rshetty has quit [Remote host closed the connection]
<shevy> you can also make use of <<
<shevy> button_ok.tooltip.add "You should continue, really"
<shevy> button_ok.tooltip << "You should continue, really"
whoisjake has quit []
nkumari has joined #ruby
<wald0> yeah, agnostic, i want to brainstorm first a "standard gui usage" and then i want to try to write a small "lib" (gem?) to interface with the real gui gem/lib
<shevy> yeah
<shevy> I wanted to do this like 5 years ago as well
<shevy> I still have not caught up to my old knowledge of ruby-gnome :(
Versality has joined #ruby
<shevy> oh btw wald0
<shevy> also consider an additional syntax:
<zacts> hi rubyists
<godd2> wald0 if you want to write code which wraps Win32 API calls, look into FFI
<shevy> win = Window.new
atmosx has quit [Ping timeout: 240 seconds]
<shevy> win.text.set "Do you want to continue?"
<shevy> to become
<shevy> win = Window.new {
<shevy> text 'Do you want to continue'
<shevy> }
<shevy> this style is how _why originally wrote shoes
<wald0> godd2: im using ffi-efl :)
SCHAAP137 has quit [Ping timeout: 245 seconds]
<suy> You want to abstract a GUI API that is already an abstraction of other GUI APIs?
<wald0> godd2: well, wanting/trying to use it
<shevy> where is an abstraction?
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<godd2> also, wouldn't hurt to pass the new window to the block. Window.new { |win| win.title = "new window"; #other config... }
<suy> GTK or Qt abstract win32/xcb/whatever for example.
<wald0> suy: yes, because those FFI syntax is so DAMN confusing about pointers and references and stuff...
<wald0> i want to have the nightmare one time, but then reciclate objects that simply works
<wald0> "add me a button, call me something when i click to it"
<wald0> why computers dont speak human?
<godd2> well it's not for lack of trying
<godd2> natural language synthesis and interpretation is a "hard" problem in computing
SCHAAP137_ has quit [Quit: Leaving]
SCHAAP137 has joined #ruby
mleung has quit [Quit: mleung]
cndiv has joined #ruby
<suy> wald0: that's pretty much done in python with pyotherside and Qt. Is new, but somewhat mature. The converse in ruby is less mature, but is in that direction. See https://github.com/thp/qmlruby and https://github.com/seanchas116/ruby-qml.
ruber has joined #ruby
<wald0> suy: godd2: in short, i want to remove the max possible the complexity of use the gui (and still having the full control only-if-needed about the specific functions like changing a color, etc)
<godd2> wald0 if you want to make video games, you can check out the gosu gem. It abstracts away all that window creation stuff
<wald0> godd2: nah, just simple gui applications
<ruber> I use rbenv with GEM_HOME and just upgraded 2.1.2 to 2.1.5. Now my gems seem to require 2.1.2 even though they're outside any version directory.
<wald0> not complex "this is a full-featured photoshop" stuff, more like small gui apps
<ruber> Eg. /Users/me/.gem/bin/nokogiri: /Users/me/.rbenv/versions/2.1.2/bin/ruby: bad interpreter: No such file or directory
<godd2> wald0 what OS are you on?
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr has joined #ruby
geggam has joined #ruby
j_mcnally has joined #ruby
<suy> ruber: the gems might be in GEM_HOME, the binaries are?
nvdpl has joined #ruby
whoisjake has joined #ruby
govg has joined #ruby
<havenwood> ruber: There should be a bot that just responds `rehash` if rbenv is mentioned.
<havenwood> ruber: Try chruby when you tire of shims: https://github.com/postmodern/chruby#readme
AriaMoKr has quit [Quit: Connection closed for inactivity]
rpag_ has quit [Ping timeout: 245 seconds]
techsethi has quit [Quit: techsethi]
<wald0> godd2: linux/debian
CustosL1men has quit [Ping timeout: 244 seconds]
claymore has joined #ruby
shinydog has joined #ruby
nvdpl has quit [Quit: Quit...]
St_Marx has quit [Quit: Ex-Chat]
rpag_ has joined #ruby
renderful has quit [Remote host closed the connection]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tlarevo has quit [Ping timeout: 240 seconds]
thsig has quit [Remote host closed the connection]
GeorgesLeYeti has quit [Quit: Leaving]
wolflee________ has joined #ruby
moritzs has quit [Ping timeout: 250 seconds]
wolflee_______ has quit [Ping timeout: 272 seconds]
jaequery has joined #ruby
yetanotherdave has joined #ruby
<jaequery> hi guys, im new to ruby
jaequery has quit [Max SendQ exceeded]
<rockdon> welcome
iamjarvo has joined #ruby
iamjarvo has quit [Remote host closed the connection]
jaequery has joined #ruby
dc_ has quit [Remote host closed the connection]
shortCircuit__ has joined #ruby
<jaequery> is everyone using rackup?
<jaequery> is that required?
jaequery has quit [Max SendQ exceeded]
<jhass> no
<pipework> jaequery: required for what
<jhass> bah
<shevy> I dont use rackup
<jhass> he needs to fix his client first
<shevy> oh he is gone
uptownhr has joined #ruby
<pipework> cool kids rackup their crappy rails apps
almostworking has joined #ruby
cirn0 has quit [Remote host closed the connection]
<pontiki> crapup
jheg has joined #ruby
<wald0> damn, i want to know 110% of ruby syntax/possibilities so i can know perfectly how i can structure a good gui lib :/
<pipework> crackup
<pipework> wald0: Read sourcecode then?
<wald0> =_=
nkumari has quit [Remote host closed the connection]
<uptownhr> in ruby, how does gems like Mongoid handle multiple instances of it being loaded?
jheg has quit [Client Quit]
<pipework> I mean, knowing how to perfectly structure code is pretty hard to do and the only thing I can think of that you can do in short order is know absolutely every detail about the implementation of the language you're using as well as the language specification itself.
<pipework> uptownhr: It doesn't.
cleopatra has joined #ruby
<jhass> uptownhr: what do you mean by "multiple instances"?
<pontiki> who has time for that?
sambao21 has joined #ruby
<uptownhr> jhass: like if i'm creating Site.rb, Page.rb
<pipework> Even if you do manage to require two versions, chances are that you'll have a bad time.
<uptownhr> both of the files require in Mongoid
apeiros_ has joined #ruby
ruber has quit [Quit: [BX] Automatically bored away]
bayed has quit [Quit: Connection closed for inactivity]
<rpag_> require only requires a file once
<pipework> uptownhr: Are you talking about `require` with two versions of Mongoid or requiring mongoid in two files?
<uptownhr> requireing mongoid in two files
<wald0> i have a class that creates a window, which has a @button declaration that creates a button, if i do "win = MyWin.new", how i access to the @button element from "win"?
jheg has joined #ruby
<pipework> uptownhr: That works fine. Require keeps a list of all required files.
<jhass> uptownhr: try prepending p to the require calls
hiyosi has quit [Ping timeout: 240 seconds]
<pipework> uptownhr: require the same thing to your heart's content.
<jhass> you'll notice that it returns first true then false
<pipework> In fact, require your dependencies everywhere they're needed.
<uptownhr> jhass: how about the Mongoid.load!("./mongoid.yml")
<pipework> Be a good chum.
Brando753 has quit [Ping timeout: 250 seconds]
<godd2> wald0 you need to make an attr_reader inside the Window class.
<uptownhr> should that be somewhere else?
<wald0> pipework: yeah but actually im not even familiarized with ruby :/ that's what i meant, i learned it but not practiced
<pipework> uptownhr: That's venturing into implementation.
<uptownhr> pipework: yea. what is the best way to implement?
<pontiki> pipework: i filed two defects on that this week and sent PRs to fix them
towski_ has joined #ruby
<pontiki> two different gems
<jhass> uptownhr: I don't know mongoid, I'd imagine it just reopens the connection and discards the old one
<godd2> wald0 or at least a getter method. def button; @button; end
cndiv has quit [Ping timeout: 240 seconds]
thagomizer has quit [Quit: Leaving.]
<towski_> I need a fast way to get a unique hash for an array of ints
<towski_> [1,2,3] vs [1,2,3,4]
kireevco has quit [Quit: Leaving.]
Pip has left #ruby ["Leaving"]
<pipework> uptownhr: If you're calling a method in Mongoid already, you aren't implementing it. Look at how it works.
<jhass> towski_: what hash properties do you need?
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
shinydog has quit [Quit: Leaving]
<godd2> wald0 by default, all instance variables are private to an object. you have to explicitly make them readable or writable
<pipework> uptownhr: You might want to memoize the result in an object that you can safely share between the pages.
renderful has joined #ruby
<uptownhr> what is memoize?
nkumari has joined #ruby
thagomizer has joined #ruby
<towski_> doesn't matter how long
<godd2> uptownhr memoization is caching the result of an expensive calculation so you only have to do it once
almostworking has quit [Quit: Leaving]
ramfjord has joined #ruby
<wald0> godd2: good! the getter worked! i think that ruby is pretty able to allow me to do a wrapper of that gui lib to make things much more easy :)
<pipework> uptownhr: Look up what memoization is.
<jhass> towski_: length is only one property, not the most significant even
nkumari has quit [Remote host closed the connection]
<pipework> Helpful thing to read and fully understand.
<wald0> "ruby has the powa"
<towski_> right I don't really have any
<towski_> it's for caching
<jhass> towski_: elaborate
<uptownhr> so fyi: Mongoid.load!("./mongoid.yml"), initializes the mongodb connection
yfeldblum has joined #ruby
unholycrab has joined #ruby
<towski_> i am caching [1,2,3] versus [1,2,3,4]
<towski_> so they key just needs to be unique
<towski_> for the array
<jhass> towski_: does it need to be consistent across multiple ruby processes for example
deject3d_ has joined #ruby
<towski_> yes
<pipework> uptownhr: Doesn't really matter to us. You'll want to see if you need to handle memoizing the connection stuff yourself, or if mongoid handles it so you dont' need to worry about it and can use the connections from both classes.
<towski_> good point
<shevy> wald0 well what I showed you above, that in total should cover 90% of the possibilities
<pipework> You may or may not want to separate initializing the connections into a separate piece of code.
<unholycrab> im using Logger and it is extremely slow to output data to logs... it seems to have hte output backed up and spits it all out periodically
<unholycrab> but i want to be able to monitor the logs in real time
nkumari has joined #ruby
<jhass> towski_: how collision free does it need to be (how many different cache keys do you need)
<uptownhr> pipework: got it
<pipework> unholycrab: use a better loging solution.
<pipework> logging too
<uptownhr> pipework: does active record handle memoizing it for you?
<pipework> uptownhr: It handles setting up a connection pool after you give it credentials, yeah.
<towski_> well there will be at most like 100 keys right now
<towski_> i guess up to 1000
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
<godd2> >> def memoized; $stored_value ||= rand; end; [memoized, memoized]
<eval-in__> godd2 => [0.7384058544898499, 0.7384058544898499] (https://eval.in/221532)
<pipework> towski_: Don't optimize prematurely.
<pipework> There are fantastic profiling and benchmarking tools that help you find out what's important to optimize.
<jhass> godd2: don't use a global there
<godd2> jhass don't use them in general or dont use them on the bot?
<pipework> Or generally ever.
<pipework> godd2: In your code.
<towski_> actually I could just join it into a string and get a hash of that
<jhass> godd2: not in general, especially not for memoization
kamil has joined #ruby
<godd2> I was only showing an example of memoization
<agent_white> memorization, you fergaht the r
yfeldblum has quit [Ping timeout: 255 seconds]
<jhass> towski_: with that you mean String#hash? that's as stable as Array#hash, it's only guranteed inside a ruby process
<pipework> It was an example of using a global with memoization. Just as long as you don't actually think using globals is a smart idea to do unless it's the only choice at all.
<unholycrab> pipework: any suggestion?
TheNet has quit [Remote host closed the connection]
<wald0> shevy: the {} thing? yeah but hum, im thinking about the possibility to set things in "any moment", like win.button.text_set "foo"
<jhass> godd2: you're teaching, good examples matter
<towski_> well use like sha
mleung has joined #ruby
<jhass> oh, you said fast :P
Brando753 has joined #ruby
<shevy> wald0 yeah, all you need is the original setter method, and then the aliases towards it
<towski_> :)
<jhass> towski_: you probably should read through http://en.wikipedia.org/wiki/Hash_function
vimer has quit [Ping timeout: 244 seconds]
<pipework> unholycrab: I'm familiar with logstash not sucking.
<unholycrab> pipework: i just want to output to a flat file for now
<unholycrab> so i can debug my scripts
<unholycrab> but i like how Logger puts everything in a standard format with log levels and a date stamp, etc
<towski_> well on a scale of 1 to suck, how bad is sha1 hashing the string
<towski_> the string at least will be unique
Vile` has quit [Remote host closed the connection]
TheNet has joined #ruby
<jhass> #inspect and #to_s are representations, I don't think there are any gurantees for them to be stable
marens has quit [Remote host closed the connection]
<jhass> avoid working on representations
apeiros_ has quit [Ping timeout: 245 seconds]
<jhass> if you have the real data at hand
<pipework> I have used #to_s for rendering objects in different representations though.
<pipework> dat erb
louism2wash has joined #ruby
<jhass> if you have to convert, try to find a serialization
Vile` has joined #ruby
<pipework> I've even had some fun with using #to_s(format)
<pipework> But then it requires a default to use in Erb as cleanly as I'd like. :(
<wald0> will continue brainstorming in house, office closed!
j_mcnally has quit [Read error: Connection reset by peer]
<wald0> see ya! shevy, godd2, etc*
reset has quit [Quit: Linkinus - http://linkinus.com]
cleopatra has quit [Quit: Saliendo]
<godd2> lol good luck :)
marens has joined #ruby
wald0 has quit [Quit: Lost terminal]
jaffachief has quit [Ping timeout: 245 seconds]
dkphenom has joined #ruby
dc_ has joined #ruby
godd2 has quit [Remote host closed the connection]
cleopatra has joined #ruby
Xiti` has quit [Quit: Xiti`]
Xiti has joined #ruby
adriancb has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
ptrrr has quit [Quit: ptrrr]
bMalum has joined #ruby
kamil has quit [Disconnected by services]
stunder has quit [Quit: Screw you guys I'm going home]
livinded has joined #ruby
Brando753 has quit [Ping timeout: 265 seconds]
<livinded> I'm making HTTPS requests to our API and 3 out of the 79 requsts are failing with this stack trace but I haven't been able to track down any useful information. Not sure if it's a bug in ruby or what's going on. https://gist.github.com/jrozner/2080a2bd6ea35637e51c
rshetty has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
<pipework> livinded: I think, but only glanced, that something closed the connection before sending what you expect.
<DTSCode> is there a particular reason why almost every ruby tutorial i find says ruby is the best for any task?
b3itz has joined #ruby
<pipework> DTSCode: Because it's a general purpose scripting and programming language.
takle has quit [Remote host closed the connection]
<DTSCode> pipework, i get that, but its not neccesarily better. im just venting about how people parrot it as the best language ever. not saying its not good, but its not a one size fits all
<livinded> pipework: alright. I'll take a look at the API code
<pipework> DTSCode: People like langauges they are excited about.
<DTSCode> meh... good point
havenwood has quit [Remote host closed the connection]
rshetty has quit [Read error: Connection reset by peer]
rudisimo_ has quit [Remote host closed the connection]
rshetty has joined #ruby
<pipework> I think the language itself is fantastic if you don't mind class-based OO and the whole no type checking at compile or runtime.
TPBallbag has joined #ruby
<zacts> pipework: I'm at ch 3 of the black book 2nd edition
<livinded> pipework: I don't see anything on the API side that would close the connection before sending back the data
<pipework> zacts: Good sir!
<pipework> livinded: I don't either, sorry. :(
Mon_Ouie has quit [Ping timeout: 264 seconds]
mikhail has joined #ruby
<pipework> I've got to get some lunch, but if I have time I'll keep looking and try to help.
Nieralyte has quit [Quit: Nieralyte]
econerd4ever has quit [Remote host closed the connection]
ht__th has joined #ruby
havenwood has joined #ruby
baweaver has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
arup_r1 has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
klmlfl_ has joined #ruby
TPBallbag has quit [Ping timeout: 250 seconds]
siwica has quit [Remote host closed the connection]
siwica has joined #ruby
arup_r has quit [Ping timeout: 244 seconds]
Lingos has quit [Quit: Be back later ...]
<zacts> so is rubinius ok to use for production code? or should I still use mruby?
Alina-malina has quit [Read error: Connection reset by peer]
<pipework> zacts: lol
Alina-malina has joined #ruby
<pipework> you're learning ruby using mruby?
rudisimo has joined #ruby
Lingos has joined #ruby
<pipework> zacts: The rbx team probably thinks rubinius is production-ready. If you trust them, then sure. I like jruby.
<pipework> zacts: ruby and mruby aren't the same thing.
<zacts> oh ok!
<pipework> MRI is the ruby written in C and maintained by the ruby core team.
klmlfl has quit [Ping timeout: 265 seconds]
omosoj has quit [Ping timeout: 256 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
<pipework> Some of us call it cruby, knowing that other rubies are written in c-ish languages.
hmsimha_ has quit [Ping timeout: 255 seconds]
<zacts> ok
<havenwood> zacts: mri is the same thing as cruby, or just ruby. it's the reference implementation. the author of cruby is now working on mruby, but it's its own thing.
randiman has joined #ruby
Juanchito has joined #ruby
omosoj has joined #ruby
siwica has quit [Remote host closed the connection]
RyanV has joined #ruby
siwica has joined #ruby
<zacts> I think I confused the 'm' in both of those, sorry
<pipework> We used to call cruby yarv when 1.9 happened because mri was the always interpreted vm for 1.8
<pipework> But now we no longer call it yarv at all.
zorak8 has quit [Ping timeout: 240 seconds]
Mars` has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Lingos has quit [Ping timeout: 264 seconds]
neoxquick has joined #ruby
crazydiamond has joined #ruby
lidaaa has joined #ruby
sambao21 has joined #ruby
St1gma has quit [Read error: Connection reset by peer]
St1gma has joined #ruby
Brando753 has joined #ruby
aspiers has quit [Quit: bye]
nkumari has quit [Remote host closed the connection]
shredding has joined #ruby
Versality has quit [Quit: Be back later ...]
sandelius has joined #ruby
Versality has joined #ruby
kumarat9pm has joined #ruby
<sandelius> is it useful to freeze a regexp object?
<pipework> sandelius: Does it have any possibility of being modified?
danijoo has quit [Remote host closed the connection]
<pipework> Do you want to prevent that?
danijoo has joined #ruby
<sandelius> pipework no It's actually a constant already
<pipework> sandelius: So?
<pipework> Objects that constants point to can be modified.
<pipework> Warnings are only raised if a new object is assigned to a constant. You can still mutate the object in place.
<sandelius> pipework keep it down, someone might here you that we can modify constants ;)
<sandelius> hear
<sandelius> pipework does it gain any performance?
Versality has quit [Ping timeout: 240 seconds]
hrrz has joined #ruby
<pipework> sandelius: 'gain'?
adriancb has joined #ruby
<sandelius> pipework do we "save" anything by freezing objects like that? performance wise
<b3itz> i need to count from 0 to [nums]...how do i loop nums times?
ldnunes has quit [Quit: Leaving]
<pipework> sandelius: I don't know if the use of the object is faster, honestly. You could benchmark it.
Mon_Ouie has quit [Ping timeout: 265 seconds]
hmsimha_ has joined #ruby
<jhass> b3itz: nums.times do |i|
<sandelius> pipework that a'll do. get back in a few
marens has quit [Remote host closed the connection]
<b3itz> jhass: cool.. whats the |i| do?
<jhass> b3itz: read up on blocks and Fixnum#times
arescorpio has joined #ruby
<b3itz> oh, do i times
DLSteve has joined #ruby
Hijiri has joined #ruby
hiyosi has joined #ruby
<b3itz> how can i now implement what number im on, into the variable.. ex: i have 2 sides, loop through twice making side1 side2
<b3itz> something like side[i] = nums[0]
<jhass> b3itz: ? provide more context
<pipework> b3itz: !explain
<helpa> b3itz: Please explain your problem better as we are having trouble understanding what you mean. A Gist (http://gist.github.com) is always helpful!
marens has joined #ruby
marens has quit [Changing host]
marens has joined #ruby
<b3itz> so basically what im doing is reading in a line like r 2 4 - determining that its a rectangle with sides 2 and 4
<b3itz> so i need to see how many sides they gave me
<b3itz> nums = line.scan(/\d+/).map(&:to_i) data_points = nums.count
tercenya has quit []
<b3itz> then store each side
<b3itz> like side1 and side 2
<b3itz> lines 84-94ish
<shevy> b3itz
<shevy> remember to save with .rb ending on the gist
freerobby has quit [Quit: Leaving.]
<jhass> please, 1) gist with syntax highlighting 2) use two spaces soft tabs 3) use underscore_names
<b3itz> sorry shevy i never remember
<havenwood> b3itz: get rid of all those `return`s
<jhass> ^ and that
<b3itz> i know i know i know
<b3itz> thats the least of my worries right now
<shevy> b3itz also you can simplify a lot there
<shevy> take this line:
<shevy> if line.include?("S") || line.include?("s")
<shevy> you check whether it has S or s right?
<jhass> b3itz: if you want help you should make it easy to understand your programs. All of those things help that tremendously
<shevy> in that case you could simply downcase the line and check for "s" only
takle has joined #ruby
reinaldob has quit [Remote host closed the connection]
<havenwood> b3itz: snake_case method names, not headlessCamelCase
gtc has quit [Remote host closed the connection]
<sandelius> pipework seems like freeze is faster when iterating 10000 times with gsub but slower with less iterations
<havenwood> b3itz: get rid of excessive parens
hiyosi has quit [Ping timeout: 240 seconds]
kyb3r_ has joined #ruby
<shevy> hehe
<b3itz> i understand all these things as you guys have been hounding me, his is in an early stage and due tomorrow so im not worried about all that for my sake right now
<b3itz> ill go back and fix those if i have time
<shevy> we worry for our sake!
<b3itz> i need to get it to work first
mloveless has joined #ruby
<b3itz> >.<
hrrz has quit [Quit: hrrz]
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> the clarity is diluted by obscurity
<jhass> b3itz: no
<shevy> less code achieving the desired result is a good thing
<havenwood> b3itz: use #start_with? instead of #include? if you want to know if it starts with
<jhass> using a proper style is a requirement for getting it to work
<jhass> make it a habit as early as possible
<shevy> btw b3itz the puts " " seem not necessary or?
<shevy> you can replace them with a simple puts
<b3itz> havenwood: doesn't matter if its at the beginning or not
<shevy> or you do the shevy style; alias e puts
<pipework> sandelius: Oh neat. About how much faster?
<b3itz> thanks shevy
<havenwood> b3itz: so it might be?: 3 4 S
<shevy> as you can see b3itz, we are totally distracted by all other things
<b3itz> havenwood: could be.. but probably not
<b3itz> lol i can tell shevy
decoponio has quit [Quit: Leaving...]
<b3itz> tearing my shit apart
<havenwood> b3itz: just fix it real quick
robbyoconnor has quit [Ping timeout: 256 seconds]
<shevy> nums.times do |i|
<b3itz> so i have an array called nums with 0-3 data points.. i need to loop through and store them
<shevy> line 89 b3itz
<shevy> is confusing
<shevy> can you explain it
<b3itz> the nums.times?
<shevy> yes that is line 89
<b3itz> <jhass> b3itz: nums.times do |i|
<sandelius> pipework with less iterations it's almost the same, no-freeze is ms faster. and more iterations freeze is ms faster. not by much
n008f4g_ has joined #ruby
<shevy> b3itz ok where is the "end"?
<b3itz> thats the part im trying to figure out
a13x212 has joined #ruby
<jhass> b3itz: that was provided without knowing what you need, you described the solution you think you need, not your problem
anaeem1_ has quit [Remote host closed the connection]
<shevy> b3itz you can use {} rather than do/end if "do" confuses you
<b3itz> <b3itz> so i have an array called nums with 0-3 data points.. i need to loop through and store them
<b3itz> i just typed it
<shevy> ok you need to wake up your brain again
anaeem1_ has joined #ruby
<havenwood> b3itz: use two spaces to indent. you can set most text editors to two-space soft tabs, so the tab key does two spaces.
<b3itz> undefined method times
<shevy> nonono
<shevy> you got a wrong thing then
<b3itz> thanks havenwood
wallerdev has quit [Quit: wallerdev]
<shevy> >> "5".times
<eval-in__> shevy => undefined method `times' for "5":String (NoMethodError) ... (https://eval.in/221535)
<shevy> >> 5.times
<eval-in__> shevy => #<Enumerator: 5:times> (https://eval.in/221536)
<shevy> there b3itz
<b3itz> i need to count the numbers in the array.. then create side1 side2 etc
<shevy> b3itz a big advantage in reducing the characters and amount of code is that it is also much easier to spot errors
Mars` has quit [Ping timeout: 272 seconds]
<b3itz> i dont understand your point shevy
<b3itz> oh
<b3itz> ints vs string
<shevy> so how does your Array look like?
yeticry has quit [Quit: leaving]
<shevy> yeah
takle has quit [Remote host closed the connection]
<pipework> sandelius: Oh cool. I often use freeze before it's necessary. But I use it like this: SOME_CONSTANT=%w|some array of strings that should not be changed|.map(&:freeze).freeze
<shevy> String does not by default have the .times() method
<b3itz> shevy: [4 4]
<pipework> That way not only are they not changeable, developers know that's some serious shit and not to modify it.
yfeldblum has joined #ruby
econerd4ever has joined #ruby
<shevy> you could add it but please default to standard ruby and either convert your string into an integer or use something else
<shevy> b3itz you must have forgotten a , ?
<jhass> b3itz: what should happen if the input is r 1 2 3
<shevy> [4,4]
<sandelius> pipework paranoid :D
JBreit has joined #ruby
<shevy> b3itz can you update https://gist.github.com/anonymous/96426bd35c8a5663ce2b and also save it with a .rb end?
<pipework> sandelius: Or just aware of coworkers and the terrible things they do.
<b3itz> shevy: yes i did
<pipework> :p
<b3itz> jhass: it needs to explode
<sandelius> pipework touché
<shevy> well at that link it is still a .txt
<b3itz> yes hold on
<zacts> pipework: so would you say I should read poodr before or after metaprogramming ruby, and why? :-)
<jhass> b3itz: so you know how many items there are depending on the type
<zacts> just so I can plan the book I read after this one I'm reading now
<shevy> excellent we got colours now, havenwood will be all excited \o/
<pipework> zacts: After because you can poodr better when you know how ruby's object model works.
<b3itz> jhass: no, i know how many times it SHOULD be.. but it wont always be correct
<shevy> ok where is the error now?
* pipework likes the poodr, though it's not a nomicon, just a great read that contains a lot of awesome things to think about.
anaeem1_ has quit [Ping timeout: 258 seconds]
<zacts> pipework: poodr after metaprogramming? or poodr after black book?
<jhass> b3itz: that's enough to abort if that's not the case and safely extract them afterwards
<pipework> zacts: black > meta > poodr
<zacts> cool
<zacts> thanks
<havenwood> shevy: headlessCamelWhitespaceUnnecessaryParensExplicitReturnsSTDERR.putsWithEmptyStringGaaaaaaaah
<shevy> lol
<shevy> btw b3itz I noticed something
<zacts> so metaprogramming is writing code that writes code?
<zacts> basically?
<shevy> your indent is not consistent on line 125 to 136
<b3itz> jhass: i dont know what youre getting at
<b3itz> thanks shevy
<jhass> b3itz: read the first item, the type
<jhass> branch of that
shredding has quit [Quit: shredding]
<jhass> then you can count how many more items you have and you know how many you should have
<jhass> if that matches you can safely extract
<pipework> zacts: Generally it's that. It's something that dynamically causes something to do or become or exist as something.
<jhass> if it doesn't you want to abort
<shevy> I think havenwood really does not like camelCasedMethods
<shevy> lol pipework
<b3itz> jhass: exactly
<shevy> that was the most philosophical statement you ever wrote here
<zacts> ok, and what is the main advantage of that? how does it simplify your code?
<b3itz> but... im not sure how to loop through x amount of times where x is the number of arguments in the array
<jhass> b3itz: so all you need is Array#size and Array#[]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
<zacts> and then, I'm back to reading some more.
<jhass> b3itz: there's no sane solution using a loop here
shazaum is now known as Shazaum-br
Shazaum-br is now known as Shazaum
JBreit has quit [Ping timeout: 265 seconds]
<b3itz> jhass: ok gimme a second to comprehen
<b3itz> d
<b3itz> or lack there of
<jhass> b3itz: btw. don't use single letter variable names
JBreit has joined #ruby
<shevy> oh we get into personal preferences now
kireevco has joined #ruby
<b3itz> jhass: ok so i have nums.size returning the amount of data points
<pipework> Actually, it's not just a preference.
<apeiros> "don't use single letter variables" is hardly "personal" preference anymore :-)
thsig has joined #ruby
<shevy> most definitely it is
<b3itz> yeah the single letters were temporary
<pipework> Some tools already use single-letter variables, which is annoying, but egh.
<a13x212> is there an easy way to check if variable is set, not nil and not empty?
<pipework> Which means you might have some conflicting code.
JBreit has left #ruby [#ruby]
<pipework> Temporal need aside, use descriptive variables. Your editor probably has some support for completion.
<shevy> a13x212 all 3? what means not empty precisely, you mean on a string?
x77686d has joined #ruby
<b3itz> jhass: now say i have a size of 2.. i need to make 2 variables.. should i hard code it?
<jhass> yes
atomical has joined #ruby
<a13x212> shevy, var = ""
shazaum_ has joined #ruby
<shevy> ok a String
<jhass> a13x212: if you need to do that there's something very wrong with your code
<shevy> where was .blank? again?
adac has joined #ruby
<jhass> a13x212: if you're not certain that a local variable exists that is
<zacts> cool, bbl
Shazaum has quit [Ping timeout: 245 seconds]
<apeiros> the escalation is probably: personal preference -> community convention -> best practice
<graft> .blank? is in rails only i think
<shevy> apeiros and how do you determine best practice?
<apeiros> best practice is a consensus
arup_r1 has quit [Ping timeout: 272 seconds]
<apeiros> it's not you or me who define it. it's something which grows from conventions.
<graft> (said in his best batman voice)
<shevy> lol graft
<shevy> I pictured it more in a Darth Vader voice
<shevy> (with the heavy breathing)
x77686d has quit [Remote host closed the connection]
x77686d has joined #ruby
i0n has joined #ruby
<graft> maybe more like... "You don't know the POWER of best practices. it is useless to resist them."
jottr has quit [Ping timeout: 240 seconds]
<apeiros> resistance is futile
shazaum_ is now known as Shazaum
kireevco has quit [Quit: Leaving.]
Shazaum has quit [Changing host]
Shazaum has joined #ruby
benzrf|offline is now known as benzrf
nkumari has joined #ruby
gr33n7007h has quit [Ping timeout: 244 seconds]
takle has joined #ruby
<eam> and of course remember that half of all best practices aren't actually best practices
Mars` has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
<pipework> And the other half aren't often even practiced.
<shevy> I thought we had established a consensus just now!
<gsd> i'm hiring rails devs in los angeles - would it be ok if share a link to our careers page?
<shevy> would be better for the rails channel
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adac has quit [Quit: Leaving]
<gsd> well, i should say i'm hiring sr. software engineers - rails is a nice to have
<gsd> but ruby is a must
adac has joined #ruby
<gsd> i also welcome feedback on the job postings that i wrote too
<eam> like 65 and older?
<pipework> gsd: Sure.
troyready has quit [Ping timeout: 255 seconds]
<pipework> Just probably don't repeat the link too often. People dont' like being badgered.
<shevy> eam at that age you'll go to COBOl
<gsd> of course
stunder has joined #ruby
econerd4ever has quit [Remote host closed the connection]
<havenwood> Señor developer
nkumari has quit [Ping timeout: 258 seconds]
<gsd> it's on github and stackoverflow too - though, surprisingly, not many are biting
<gsd> i'd have expected more from stackoverflow
x77686d has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
rdark has quit [Quit: leaving]
Hijiri has quit [Ping timeout: 244 seconds]
volty has joined #ruby
<eam> try craigslist
jottr has joined #ruby
zacts has quit [Quit: leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
larissa has joined #ruby
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blizzy has quit [Ping timeout: 255 seconds]
Guest83282 has quit [Ping timeout: 255 seconds]
i0n has quit [Quit: snooze]
sambao21 has joined #ruby
Shazaum has quit [Quit: Leaving]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lingos has joined #ruby
aclearman037 has quit [Quit: I'm out!]
iamjarvo has joined #ruby
byprdct has quit [Ping timeout: 265 seconds]
Hijiri has joined #ruby
ndrei has joined #ruby
<b3itz> how do i do a file.write(array) and have it come out like [12, 45, 67]?
jerematic has quit [Read error: Connection reset by peer]
<apeiros> b3itz: array.inspect
anaeem1_ has joined #ruby
<b3itz> thanks
speed145a is now known as anotherZero
anaeem1_ has quit [Remote host closed the connection]
omosoj has quit [Ping timeout: 250 seconds]
sambao21 has quit [Ping timeout: 250 seconds]
DLSteve has quit [Quit: Leaving]
yeticry has joined #ruby
mleung has quit [Quit: mleung]
ta has quit [Ping timeout: 250 seconds]
timonv_ has joined #ruby
louism2wash has joined #ruby
<Cat_1> Probably an aside, I have multiple tables labeled *_RECORDS, there's like 30 of them. I want to do a query across all those tables. Does anyone know how to execute such a thing in an Oracle database?
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
sambao21 has joined #ruby
<Cat_1> besides writing a massive JOIN
<jhass> Cat_1: #sql ?
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
<havenwood> gsd: I think it'd be better to have a more concise about us: Asset Avenue is a crowdfunded real estate investment site. We're a start up in Los Angeles and we're growing!
<havenwood> gsd: "What we need" and "What we're looking for" seem redundant.
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
warreng has left #ruby [#ruby]
<havenwood> gsd: I don't like the emphasis on 3-years, 5-years, of doing stuff.
byprdct has joined #ruby
<gsd> why?
<gsd> just curious
byprdct has quit [Max SendQ exceeded]
max96at is now known as max96at|off
byprdct has joined #ruby
<pipework> Which job description are we looking at on the page?
<josephndenton> gsd: Still recruiting for those positions, yeah? Had any luck?
zorak8 has joined #ruby
<havenwood> gsd: In these polyglot days asking for years in a particular framework is kinda silly.
Fokki has joined #ruby
<gsd> josephndenton: yup - still recruiting. takes time to find folks. there's more demand than supply.
chrishough has joined #ruby
<Cat_1> What are you looking for?
<pipework> Cat_1: People to employ.
<pipework> And cookies.
<havenwood> gsd: You mention Cucumber in one of them. Are you using it?
dda has joined #ruby
<Cat_1> I like how people say they want 5 years of a framework that's only been out for 3 years really, and they want production use.
<havenwood> gsd: If you're not, I'd suggest dropping it from the ad. Many of us aren't fond of it.
TheNet has quit [Remote host closed the connection]
<gsd> Cat_1: honestly, we're just looking for culture fit first and then all-around good engineers.
<Cat_1> @havenwood you aren't fond of your tests taking forever? :)
ta has joined #ruby
<havenwood> The degree or equivalent experience is redundant with five+ years in particular languages.
<havenwood> How could you possibly not have equivalent?
<Cat_1> What's the website?
<Cat_1> Might be interested
<pipework> I don't know if I agree about the equivalency.
baweaver has joined #ruby
<pipework> You probably just want to filter by one or the other, but don't think of degrees as something you can compare years of experience to.
<gsd> Cat_1: if you're in the los angeles area, i'd be happy to give you a ring today. shoot me over your resume: joshua@assetavenue.com
b3itz has quit [Ping timeout: 246 seconds]
anaeem1 has joined #ruby
<Cat_1> Not in LA, currently in DC :)
<gsd> we would prefer a degree - but i also don't want to rule out someone who doesn't have a degree - many great engineers just don't have them
<graft> i don't think degrees and experience are equivalent
<Cat_1> Degree in physics! It's actually come in pretty handy
<graft> <- degree in biology
<havenwood> <- philosophy and law
<gsd> one of my best engineers has a law degree!
vectra has joined #ruby
<graft> anyone in here actually have a cs degree, heh
<benzrf> <- degree in sitting on my butt whilst reading about math
<graft> i guess all those people are in #lisp
<cajone> graft: not all of them ;)
gregf has joined #ruby
silkfox has quit [Ping timeout: 265 seconds]
<gsd> Cat_1: why don't you move to los angeles? :p
<havenwood> Cat_1: LA is great.
<pipework> LA isn't as terrible as some places.
<gsd> way to really sell it
<gsd> haha
<havenwood> pipework: Now you're just being reasonable!
nkumari has joined #ruby
giuseppesolinas has joined #ruby
<giuseppesolinas> hello
anaeem1 has quit [Ping timeout: 264 seconds]
<havenwood> giuseppesolinas: hi
yourrulessuck has joined #ruby
<yourrulessuck> hi
<giuseppesolinas> I'm trying to get sass to include bourbon, I'm using sass as a node package but I'd like to ask if it is necessary to tell to sass where bourbon is
randiman has quit [Quit: (null)]
<graft> ok, so here's an architecture question: I have a model which I'd like to be able to receive data either from a text file or from a database... seems like the best way to do this would be to parse the text-file into some sort of in-memory throwaway database so i can have a unified interface for my model to consume
jaequery has joined #ruby
<giuseppesolinas> is there any config file I need to edit?
<havenwood> graft: humans are editing the text file?
<graft> havenwood: err, let's say no. it's basically a flat file representing the same information as might exist in the db
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tkuchiki has joined #ruby
<graft> i.e., assume for convenience it's well-formed, if that's your worry
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> graft: Ruby has all sorts of interesting things built in, like YAML::DBM, YAML::Store, PStore, etc.
<graft> yeah! this is what i'm talking about
<graft> i dunno any of those :|
mleung has joined #ruby
<havenwood> graft: there are a variety of different ways to serialize and saving to disk transactionally, or not
<havenwood> s/saving/save
bbloom has quit [Quit: Textual IRC Client: www.textualapp.com]
sailias has quit [Quit: Leaving.]
sailias has joined #ruby
TPBallbag has joined #ruby
<yourrulessuck> sorry to bother you
<yourrulessuck> but what do you recommend to a noob learning ror
<havenwood> graft: Daybreak is a fun one that doesn't ship with Ruby: http://propublica.github.io/daybreak/
<yourrulessuck> im currently trying codeschool
<havenwood> yourrulessuck: I'd suggest focusing on Ruby and not Rails. :)
<havenwood> yourrulessuck: But for Rails, try #rubyonrails
DTSCode has quit [Quit: Leaving]
jheg has quit [Read error: Connection reset by peer]
jheg has joined #ruby
<yourrulessuck> ok
bbloom has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
wjimenez5271 has quit []
yourrulessuck has left #ruby ["Leaving"]
yourrulessuck has joined #ruby
yourrulessuck has left #ruby ["Leaving"]
josephndenton has quit [Ping timeout: 244 seconds]
n_blownapart has joined #ruby
Morkel has quit [Quit: Morkel]
jhwhite has quit [Ping timeout: 255 seconds]
mocchi_ has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
wallerdev has joined #ruby
sambao21 has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
mocchi has joined #ruby
sprihodko has quit [Quit: (null)]
<n_blownapart> hello why is it that in a proc, how is the scope different so that you cannot use pipe variable |n| on line 11 ? thanks: http://pastie.org/9719902
baweaver has joined #ruby
<jhass> pretty sure you can
<jhass> note most people use Kernel#proc to construct procs
<pipework> >> Proc.new {|t| puts t}.call('hi')
<eval-in__> pipework => hi ... (https://eval.in/221564)
<pipework> works for me
timonv_ has quit [Remote host closed the connection]
<n_blownapart> jhass: thanks one second
siwica has quit [Remote host closed the connection]
<n_blownapart> thanks pipework ...
siwica has joined #ruby
Avahey has joined #ruby
hiyosi has joined #ruby
raldu has quit [Changing host]
raldu has joined #ruby
<graft> havenwood: if i'm not interested in persistence, do you think this is all just overkill and i should just stick with Enumerable and a bunch of hashes? i think what i really want is the relational capacity, which i'm not sure these options favor
<havenwood> graft: why are you doing it? speed? something else?
<n_blownapart> when I add |n| to line 11 I get : `block in proc_incrementer': undefined method `+' for nil:NilClass (NoMethodError)
<pipework> n_blownapart: You know why, right? Did you pass anything into call?
St_Marx has joined #ruby
<havenwood> graft: have you considered memcached?
<graft> havenwood: i'm not clear on what my motives are... basically, the problem is: data usually comes in text files, and it would be faster and easy to interact with it in a DB usually, but it's not always possible. so i'd like to use models that CAN query from a db if available, but can also query from the text file if necessary
<n_blownapart> no pipework .. a bit confused
Notte has joined #ruby
<pipework> n_blownapart: What do you think happens when you call a proc that takes an argument without an argument?
<pipework> >> Proc.new{|arg|}.arity
<eval-in__> pipework => 1 (https://eval.in/221565)
josiah14 has joined #ruby
<bricker`work> pipework: Depends
<pipework> >> Proc.new{|arg| puts arg}.call
<eval-in__> pipework => ... (https://eval.in/221567)
<pipework> bricker`work: For a Proc?
<josiah14> I know about Array#partition -> how do I get the same behavior but stop searching on the first match?
<jhass> pipework: technically a lambda is a proc
<bricker`work> pipework: >> -> { }.is_a?(Proc)
<josiah14> All I'm really looking for is something that will allow me to grab the matched value and delete it out of the array without needing to do another lookp
<bricker`work> >> -> { }.is_a?(Proc)
<eval-in__> bricker`work => true (https://eval.in/221568)
<josiah14> lookup*
<pipework> jhass: I guess...
tkuchiki has quit [Ping timeout: 240 seconds]
<bricker`work> huehuehuehuee
hiyosi has quit [Ping timeout: 250 seconds]
<pipework> It's a Proc in that it's a subclass of the Proc class.
<jhass> mmh, no, actually it isn't
<pipework> In the same way a Class is a souped up subclass of Class and Module
<jhass> >> -> {}.class == Proc
<eval-in__> jhass => true (https://eval.in/221570)
<pipework> jhass: ancestors says so.
<pipework> >> -> {}.class.ancestors
<eval-in__> pipework => [Proc, Object, Kernel, BasicObject] (https://eval.in/221571)
<jhass> >> -> {}.lambda?
<eval-in__> jhass => true (https://eval.in/221572)
silkfox has joined #ruby
<jhass> >> proc {}.lambda?
<eval-in__> jhass => false (https://eval.in/221573)
<n_blownapart> pipework: sorry I don't understand it in terms of the rescue method and #arity
rshetty has joined #ruby
<jhass> it actually is a instance of Proc itself with a flag set
siwica1 has joined #ruby
siwica has quit [Ping timeout: 250 seconds]
<pipework> >> ->{}.instance_of? Proc
<eval-in__> pipework => true (https://eval.in/221574)
<n_blownapart> pipework: ok another one of those cryptic explanations of procs.. har thanks pipework
<pipework> well that's interesting, but not very nice because ambiguous
Hijiri has quit [Ping timeout: 245 seconds]
davidbug has joined #ruby
<pipework> n_blownapart: It's intentionally not cryptic.
<n_blownapart> pipework: thanks looking forward to it.
<giuseppesolinas> how do I install a gem in order to be able to use it globally in the command line?
<pipework> giuseppesolinas: gem install
<jhass> giuseppesolinas: that depends on your ruby setup
<giuseppesolinas> pipework, no, that doesn't work is there any option like --add-to-path or something?
<havenwood> giuseppesolinas: if it doesn't already work we can probably help you set up your path
<havenwood> giuseppesolinas: what is your os/distro? how'd you install ruby or did it come with?
<pipework> giuseppesolinas: It's all about the kind of PATH.
<giuseppesolinas> mac osx, ruby was already here in the first place
michaeldeol has joined #ruby
<giuseppesolinas> ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
<ddv> giuseppesolinas, install homebrew and then install something like rbenv
<pipework> Or better yet, don't install rbenv. Install chruby and ruby-install
<pipework> no one likes shims.
fabrice31 has joined #ruby
<ddv> works fine for me
<havenwood> brew install ruby chruby
<havenwood> ddv: but chruby is better :)
<pipework> ruby-install and chruby work better for everyone.
<josiah14> did my question go unnoticed?
rshetty has quit [Ping timeout: 240 seconds]
<ddv> josiah14, yes
<pipework> It was noticed, but I didn't have the answer.
<jhass> ^
<josiah14> I want to do something similar to partition on an array, but I want the search to stop on the first match
sambao21 has quit [Quit: Computer has gone to sleep.]
<pipework> Probably find the index of the item and then just do array[0..that_index]
<josiah14> is there an easy way to do this or am I just going to have to grap the index of the first match and the delete manually from the array?
<pipework> well, why not just get a subset of the array? Why deletE?
<graft> josiah14: you want something like #reject?
pandaant has quit [Remote host closed the connection]
<pipework> graft: No, that doesn't stop on the first match
<josiah14> reject doesn't give me back the matched value
<josiah14> what I have is 2 mathematical sets of data (that meaning, every item in the set is uniq)
<pipework> josiah14: Array#index is what you want.
<josiah14> I need to check to see if there are any items in set a common to set b
<giuseppesolinas> so, I don't know what chruby is about apart from installing different versions, I just need to get bourbon running
<pipework> The rest is just getting a subset of the array.
<jhass> #delete_at(#index) if I got that right but in a single operation, I don#t think it exists
<josiah14> but I need a custom matcher because the format of the data is different between sets
<pipework> giuseppesolinas: The problem is that your OSX ruby isn't as good as a recent ruby.
<havenwood> giuseppesolinas: chruby just properly sets up your environment variables to point at the Ruby you want to use
<graft> josiah14: ary2.map(&:convert_to_ary1) & ary1?
<pipework> giuseppesolinas: So go install homebrew then brew install chruby ruby-install, then use ruby-install to installyour preferred ruby.
jleishman has quit [Quit: Be back later ...]
fabrice31 has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
vhlfd has joined #ruby
IrishGringo has joined #ruby
<volty> i would stay with pre-installed ruby on an os x
ht__th has quit [Read error: Connection reset by peer]
<pipework> I would ignore that advice.
mistermocha has joined #ruby
siwica1 has quit [Remote host closed the connection]
<pipework> You definitely want the latest ruby security patches.
<volty> not all people have time to exercise hackering. Btw I do not usually ignore other's experience
siwica has joined #ruby
<pipework> And people should probably just ignore advice that suggests they don't use updated software that contains security fixes for major vulnerabilities.
<josiah14> well, if I wrote a select to pull out things that matched, it would look like set1.select {|x| findNextIdInHugeXML(xmlReader) == x.strip!.delete("\"").split("|").first} if that gives you any idea of what I'm up against
baweaver has quit [Remote host closed the connection]
<n_blownapart> http://pastie.org/9719902 pipework would you explain the scope of 'n = 0' on lines 2 and 10 -- how they differ?
whoisjake has quit []
mistermocha has quit [Remote host closed the connection]
paulfm has quit []
sailias has quit [Quit: Leaving.]
<josiah14> graft: ^^^^
<volty> It's not about updated software but about plain new version. You fail to catch the difference.
<pipework> n_blownapart: Like what do you mean? They're using the benefits of being a closure.
<volty> It's stability vs supposed security
<pipework> volty: You don't know what you're talking about. Feel free to prattle on.
jeremy04 has quit [Remote host closed the connection]
<pipework> But, I, for one, will upgrade my rubies that I use to the latest security patchlevels as soon as they're released.
<jhass> n_blownapart: the one on line 2 ceases to exist after incrementor returns, since there's no reference to the closure that captured it anymore
<volty> pipework: I find you quite hysteric. Get an easy. Give your advice and lets stop here.
<jhass> n_blownapart: the one on line 10 lives on as long as x lives on
<pipework> volty: My advice is for people to not listen to people who give bad advice. :)
<volty> some people have time, but some do not.
<havenwood> giuseppesolinas: here's an example of setting up the latest stable ruby with chruby: https://gist.github.com/havenwood/ba31f67c1d89ac236400
<n_blownapart> jhass interesting thanks. pondering that. thanks pipework
mloveless has quit [Remote host closed the connection]
<pipework> My bet is that the other people here who help others have this guy on ignore.
<pipework> havenwood: So, should we leave it to fate to arrange our meeting at rubyconfs?
cypheon has joined #ruby
<cypheon> hey
<volty> you are more sticky than a crab :)
<havenwood> pipework: ooh, reminds me i need to get a train ticket!
freerobby has joined #ruby
<pipework> havenwood: Do that, it would be a shame if I spent all of rubyconf looking for you to either say hello or hide.
<cypheon> How to manually put the files of the bootstrap on a rails app?
sambao21 has joined #ruby
<jhass> cypheon: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
<cypheon> okay
claymore has quit [Quit: Leaving]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework> jhass: Added that as a helpa factoid. :D
<pipework> !identify
<graft> josiah14: is xmlReader your set2?
michaeldeol has joined #ruby
<helpa> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
jleishman has joined #ruby
<jhass> !identify
<jhass> it still ignores me :(
louism2wash has quit [Quit: This computer has gone to sleep]
<pipework> Radar: You should add jhass. He's a really good helper and a smart guy.
<tzero> +1
<pipework> Radar: He contributed or contributes(?) to diaspora and other stuff.
allcentury has quit [Ping timeout: 256 seconds]
uptownhr has quit [Quit: Page closed]
<josiah14> graft: xmlReader streams data in from set two, which is a set larger than what my ram can hold
Jake232 has joined #ruby
<jhass> pipework: still doing maintenance stuff
<josiah14> if that gives you any idea about the size
<jhass> what's the reasoning for having a whitelist on those? did you see abuse in the past? I find it rather ridicouslus tbh
<pipework> jhass: neato. I wish they'd make as simple an api for their distributed network as possible.
<graft> josiah14: can you load it into a DB and index it?
<pipework> jhass: I haven't looked in a long while though.
<jhass> pipework: too old and too much undergradute college students code still. You'll like tent.io
<josiah14> I would still have to parse it out, but actually, that's not a bad idea
<graft> josiah14: basically it seems like you're trying to run queries on your raw data, and you need to transform it to something less ugly first before you do
<josiah14> yep
<toretore> ah, thank you logging. not only can i see exactly what happened, but i can link to each point in time to those questioning whether or not my code works to prove it's their fault :P
thsig_ has joined #ruby
baweaver has joined #ruby
<toretore> in ur face!!!
<pipework> jhass: Yeah, I saw that one. I'll have to look further, but I'm not sure it supports the kind of distributed network features I like.
iamjarvo has joined #ruby
n_blownapart has quit [Remote host closed the connection]
<pipework> I don't care about it making HTTP requests all over the place, really.
thsig has quit [Read error: Connection reset by peer]
arescorpio has quit [Excess Flood]
<josiah14> I think I know what I need to do.
<pipework> Then do not try, do.
mikhail has quit [Remote host closed the connection]
Soda has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
TheNet has joined #ruby
TheNet has quit [Remote host closed the connection]
Ankhers has quit [Ping timeout: 250 seconds]
<giuseppesolinas> pipework, so I've instelled ruby's lastest version via chruby do I need to tell my system to use that version?
cypheon has quit [Read error: Connection reset by peer]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
<pipework> giuseppesolinas: You mean via ruby-install?
cypheon has joined #ruby
<pipework> giuseppesolinas: now you need to open a new terminal, you can close the old one, and then use `chruby <version>`
enebo has joined #ruby
<pipework> Then if you just gem install <gem>, it'll be usable.
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<giuseppesolinas> pipework, ruby -v stil returns the pre-installed version
ratdaddy has joined #ruby
<pipework> giuseppesolinas: After using `chruby <version>`?
livingstn has quit []
jottr has quit [Quit: WeeChat 1.0.1]
<giuseppesolinas> chruby command not found
<giuseppesolinas> I've used ruby install
<giuseppesolinas> *ruby-install
RyanV has quit [Quit: (null)]
<pipework> giuseppesolinas: You may need to read the chruby readme for some stuff to stick in your shell profile files. https://github.com/postmodern/chruby#configuration
<giuseppesolinas> pipework, I've added source /usr/local/opt/chruby/share/chruby/chruby.sh
<pipework> giuseppesolinas: Run that in your current shell.
<pipework> And add it to your bashrc, profile, or whatever you use for shell config
<pipework> giuseppesolinas: Now try `chruby <version>` where you replace <version> with the version of the ruby you installed.
<giuseppesolinas> /usr/local/opt/chruby/share/chruby/chruby.sh: command not found
sambao21 has joined #ruby
<havenwood> giuseppesolinas: did you?: brew install chruby
<pipework> giuseppesolinas: 'source' is an important part of the command.
<havenwood> pipework: oh, hah
<pipework> havenwood: They did, they just didn't setup the config
spyderman4g63 has quit [Ping timeout: 265 seconds]
<giuseppesolinas> pipework, 200
<giuseppesolinas> ^^
<pipework> giuseppesolinas: 200 what?
<pipework> Oh 2.0.0
siwica has quit [Remote host closed the connection]
<giuseppesolinas> pipework, it worked
Notte has quit [Remote host closed the connection]
<pipework> giuseppesolinas: now run `chruby 2` and then if you use `which ruby` you'll see it's not /usr/bin/ruby
<giuseppesolinas> pipework, but doesn't the new version use a new set of gems?
siwica has joined #ruby
<zenspider> rawr
AFKGeek has joined #ruby
AFKGeek has quit [Max SendQ exceeded]
<pipework> giuseppesolinas: Yeah.
<pipework> zenspider: Spiders rawr?
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> What does the spider say?
<Radar> jhass: done
<shevy> fly
takle has quit [Remote host closed the connection]
AFKGeek has joined #ruby
<jhass> Radar: thanks!
<zenspider> sometimes, apparently
<giuseppesolinas> pipework, all green, thank you very much ^^
thsig has joined #ruby
unholycrab has quit [Ping timeout: 250 seconds]
nkumari has quit [Remote host closed the connection]
jerius has quit [Ping timeout: 255 seconds]
takle has joined #ruby
Scripore has quit [Ping timeout: 240 seconds]
cleopatra has quit [Ping timeout: 245 seconds]
dc_ has quit [Remote host closed the connection]
thsig_ has quit [Ping timeout: 264 seconds]
<havenwood> multiple dispatch in rubinius 3.0, interesting stuff!: http://rubini.us/blog/
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zorak8 has quit [Ping timeout: 264 seconds]
<jhass> oh, new buzzword for method overloading?
shanlar- has joined #ruby
<pipework> Those are the same thing?
TuxedoCat has quit [Ping timeout: 244 seconds]
<jhass> looks like it from the usage in the blog
<jhass> well, okay, it's a mixture of overloading and pattern matching
shanlar has quit [Ping timeout: 250 seconds]
<jhass> not sure yet if I want to call pattern matching a special kind of method overloading
timonv_ has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
<jhass> anyway, multiple dispatch kind of sounds like a paralleization technique to me, not sure I like the term
AFKGeek has quit [Quit: Bye]
enebo has quit [Quit: enebo]
ducklobster has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
<pipework> How do you set a default value and set the type?
atmosx has joined #ruby
<atmosx> hello
zacts has joined #ruby
Mars` has quit [Ping timeout: 244 seconds]
timonv_ has quit [Remote host closed the connection]
jleishman has quit [Ping timeout: 272 seconds]
AlSquirrel has quit [Quit: This computer has gone to sleep]
<havenwood> pipework: good question
adac has quit [Ping timeout: 244 seconds]
duncannz has joined #ruby
<pipework> havenwood: Rude of them to coopt the way you set default value.
tier has quit [Remote host closed the connection]
vhlfd has left #ruby [#ruby]
<pipework> Would it depend on the type method, like Fixnum and every other type to be able to take at least one argument?
St_Marx has quit [Remote host closed the connection]
<pipework> def something(Integer(3))
<zacts> so I guess the difficult task is to represent real world problems in terms of ruby objects
<diegoviola> lol wtf
<pipework> zacts: I'm pretty sure you can represent 99 problems as ruby objects, but a bitch won't be one. :p
jimbach has quit [Remote host closed the connection]
<zacts> lol
<jhass> Crystal does def something(foo : Bar, baz = 3 : Baz)
josiah14 has quit [Ping timeout: 246 seconds]
<pipework> diegoviola: ignorance isn't always funny, as depicted by your link.
<havenwood> pipework: ah, so you can do default arg with a type
it0a has quit [Ping timeout: 264 seconds]
<diegoviola> pipework: what?
hiyosi has joined #ruby
<pipework> havenwood: You can? I don't know, I was guessing for what I wrote.
<diegoviola> pipework: oh, you're talking about yourself
nkumari has joined #ruby
<pipework> diegoviola: No, your link. The poor guy thinks windows doesn't have a shell.
<diegoviola> pipework: oh lol
agent_white has quit [Quit: be back later]
<diegoviola> pipework: yeah sorry about that
<zacts> just FYI mksh has been ported to windows
<wasamasa> ignorance can be bliss
timonv_ has joined #ruby
<zenspider> hey wasamasa, how goes?
<wasamasa> zenspider: procrastination
<diegoviola> he was talking about bash though
jheg has quit [Quit: jheg]
gagan has quit [Quit: Leaving]
<zenspider> wasamasa: yay! me too!
<diegoviola> hrm, bash runs on windows right?
<diegoviola> cygwin?
<pipework> not so sure
<havenwood> pipework: def something number = Fixnum(42), string = String('sekret')
<wasamasa> diegoviola: for the record, <random git who attempted recruiting me for a company trying to connect people> stated that if microsoft were to opensource the nt kernel, it would be overall comparable to linux
<diegoviola> meh... people just like to hate on windows
timonv_ has quit [Remote host closed the connection]
<diegoviola> there are good reasons for that though
<wasamasa> diegoviola: some things worse, some better
<havenwood> i kinda like it
<wasamasa> diegoviola: and the better ones could be potentially startling
<pipework> havenwood: Ah so can I just define any method and pass that method in with an object?
<pipework> Or are there special methods?
<havenwood> pipework: i'm guessing they defined those on Kernel, and you can define your own? dunno..
siwica has quit [Remote host closed the connection]
mwlang has quit [Quit: mwlang]
siwica has joined #ruby
<pipework> havenwood: I'm curious about rbx for the first time in ages. This probably doesn't bode well.
<havenwood> pipework: haha
jheg has joined #ruby
ducklobster has joined #ruby
nkumari has quit [Ping timeout: 264 seconds]
hiyosi has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
klmlfl_ has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
procat has quit [Ping timeout: 244 seconds]
phoenixrlv has joined #ruby
mathias2 has quit [Ping timeout: 265 seconds]
codecop has quit [Remote host closed the connection]
dkphenom has joined #ruby
nkumari has joined #ruby
zorak8 has joined #ruby
mloveless has joined #ruby
ducklobster has quit [Quit: Bye!]
ducklobster has joined #ruby
Hijiri has joined #ruby
nkumari has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
silkfox has quit [Ping timeout: 264 seconds]
Mars` has joined #ruby
baweaver has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
adriancb has quit [Remote host closed the connection]
baweaver has joined #ruby
siwica has quit [Remote host closed the connection]
siwica has joined #ruby
phoenixrlv has left #ruby ["Leaving"]
phoenixrlv has joined #ruby
Spami has joined #ruby
<maestrojed> I have vagrant questions. Vagrant was written with Ruby I think and I believe my questions have to do with syntax. So I am going to try here. Run me out on a rail if this is inappropriate.
<maestrojed> Like my RoR pun?
<maestrojed> in my vagrant file I load a yaml file that has a collection. I think pass this collection to a shell script.
Spami has quit [Client Quit]
<maestrojed> In the shell script I don't get one variable that is a collection/array. Instead I get each collection item as its own variable. Like it was exploded for me or something. I was not expecting this.
Mars` has quit [Ping timeout: 265 seconds]
<maestrojed> Any ideas?
<maestrojed> I'd like to have an array in my shell script so that I can count it and loop over it.
nateberkopec has quit [Quit: Leaving...]
robbyoconnor has joined #ruby
econerd4ever has joined #ruby
DTSCode has joined #ruby
Rhainur1 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
cypheon has quit []
dc_ has joined #ruby
sambao21 has joined #ruby
tier has joined #ruby
Rhainur has quit [Ping timeout: 250 seconds]
bMalum has quit [Quit: bMalum]
<pipework> Seems pretty reasonable.
mloveless has quit [Remote host closed the connection]
marr has quit [Ping timeout: 244 seconds]
marr has joined #ruby
treehug8_ has quit []
davidbug has quit [Quit: davidbug]
nkumari has joined #ruby
fantazo has joined #ruby
apeiros_ has joined #ruby
deject3d_ has quit [Quit: Computer has gone to sleep.]
xiq_ has quit [Read error: Connection reset by peer]
xiq__ has joined #ruby
<jhass> maestrojed: if you ask in #ruby assume nobody knows vagrant. so, how is the YAML file read?
xiq__ has quit [Read error: Connection reset by peer]
<maestrojed> jhass YAML::load_file("vagrant_config.yml")
<jhass> and how does it look like?
xiq__ has joined #ruby
geggam has quit [Ping timeout: 240 seconds]
IrishGringo has quit [Ping timeout: 256 seconds]
<maestrojed> jhass not sure what you mean. This is an example of the yaml file. https://gist.github.com/maestrojed/6227d8c7ee28f9b769c7
<maestrojed> jhass the collection of databases is what I am messing with
<jhass> that should return you a hash
<jhass> config = YAML.load_file('vagrant_config.yml'); config["databases"] should give you an array
Mateon1 has quit [Ping timeout: 244 seconds]
apeiros_ has quit [Ping timeout: 272 seconds]
<maestrojed> It does. In that ruby file.
Kricir has quit [Remote host closed the connection]
<maestrojed> The next part is probably vagrant specific and is probably the issue.
<jhass> then the 400 people in #vagrant should be able to help you out ;)
tier has quit [Remote host closed the connection]
<maestrojed> But the vagrant provission allows you to pass arguments, Including arrays. But when I pass config["databases"] I gets items.
shortCircuit__ has quit [Remote host closed the connection]
<maestrojed> jhass I have been trying that channel is very quiet
<jhass> how long? :)
dda has quit [Remote host closed the connection]
testcore has quit [Ping timeout: 250 seconds]
<maestrojed> jhass Well today on this issue. I have been in #vagrant for many months. Maybe a year. Its always quiet
IrishGringo has joined #ruby
gregoriokusowski has joined #ruby
wsmoak has quit [Quit: wsmoak]
anaeem1 has joined #ruby
__aiguu__ has joined #ruby
<maestrojed> This is the vagrant commit that implied I could pass an array https://github.com/mitchellh/vagrant/pull/1949
Alayde has joined #ruby
<maestrojed> This is the syntax of that array I use when I pass it. #{vconfig['databases']}
<__aiguu__> Which is the common practice for creating record, ex 1: User.create(params[:user]) or, ex 2: User.create({ foo: params[:foo], bar: params[:bar] })
<__aiguu__> I'd ask in rails but their channel is foobar'd
siso has joined #ruby
<jhass> so I guess you know that response times of 4 hours and more are nothing uncommon for a quiet IRC channel ;)
<jhass> __aiguu__: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
<maestrojed> jhass yeah dude, just trying here. I am a IRC vet. :)
phoenixrlv has quit [Quit: Leaving]
<maestrojed> I wish I knew someone that knows more about vagrant than me :)
<__aiguu__> thanks!
__aiguu__ has left #ruby ["WeeChat 0.4.2"]
<Alayde> Has anyone come up with an easy solution to using sudo with the net/ssh library, whilst using public/private key authentication? The whole 'sudo: no tty present and no askpas, etc' problem only seems to have online solutions (stack overflow, etc) for folks using password authentication.
<jhass> maestrojed: so #{vconfig['databases']} is a comment. I assume that's somewhere inside "" which means your array will be converted to a string (Array#to_s) and interpolated into the string, it's no longer an array
TPBallbag has quit [Remote host closed the connection]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<maestrojed> jhass awesome that is probably the key
<maestrojed> Thanks I will investigate that.
<jhass> maestrojed: you probably just want to get rid of all the "" and #{}
mloveless has joined #ruby
mloveless has quit [Remote host closed the connection]
<jhass> config.vm.provision :shell, path: "foo", args: vconfig['databases']
anaeem1 has quit [Ping timeout: 244 seconds]
huddy has joined #ruby
blizzy has joined #ruby
Fokki has quit [Quit: Be back later ...]
<jhass> Alayde: why do you need to sudo to ssh?
<Alayde> Because we don't give our automation user full root access
<Alayde> er rather, we're not sshing as root in automated scripts
<jhass> your error sounds like you want ssh sudo and do sudo ssh
<jhass> but I'm not sure I follow you tbh
<atmosx> jhass: me either
<atmosx> which is weird
nkumari has quit [Remote host closed the connection]
<atmosx> Alayde: you sure you know what you want to do?
czhang has joined #ruby
<Alayde> Fairly sure.
<czhang> Okay I have a question about um, the inheritance of constants defined in modules that are included by a parent class
Fokki has joined #ruby
byprdct has quit []
<atmosx> czhang: should work
Fokki has quit [Client Quit]
<atmosx> czhang: they should be accessible from child class
<czhang> I want to overwrite it :(
jimbach has joined #ruby
zacts has quit [Quit: leaving]
<jhass> should work
<czhang> without using const_set or something terrible
<jhass> :P
<atmosx> czhang: awesome, just do it ! (by nike)
<czhang> it um
<czhang> didn't work
<czhang> i'm making a gist right now
<atmosx> czhang: there's this thing call mixin, you sure you need to overwrite it?
timonv_ has joined #ruby
<czhang> um, not sure
<czhang> what do you mean
DTSCode has quit [Ping timeout: 240 seconds]
<czhang> https://gist.github.com/cjzhang/e2946a31f6cb9614d4aa is my scenario, basically
<atmosx> czhang: why do you need to overwrite a method?
<Alayde> atmosx, jhass: Do people often not try to use sudo with the net-ssh gem?
<czhang> a constant
<jhass> >> module Foo; BAR = :foo; end; class Baz; include Foo; BAR = :baz; end; [Foo::BAR, Baz::BAR] # czhang
<eval-in__> jhass => [:foo, :baz] (https://eval.in/221581)
<atmosx> Alayde: people don't use sudo with ssh yes.
<Alayde> atmosx: I see. What would be the more preferred solution?
Snowstormer has joined #ruby
rshetty has joined #ruby
<jhass> Alayde: ssh sudo is quite common, sudo ssh is not
Snowstormer is now known as Guest21824
<jhass> you still didn't explain well what you're doing
baweaver has quit [Remote host closed the connection]
<Alayde> jhass: SSHing to a puppet master, sudo git pull on a git repo
<Alayde> Why would anyone ever sudo ssh?
<czhang> jhass: I don't understand
Lingos has quit [Quit: Be back later ...]
nkumari has joined #ruby
<atmosx> Alayde: there are many security models which allow fine grained control
<atmosx> Alayde: depends on the scenario
<atmosx> Alayde: the operating system and so forth
<czhang> The issue is that there's an inherited method there
<Alayde> atmosx: I suppose. Guess I've yet to work at a company that requires super user access to SSH
<czhang> actually, we managed to hack it
<atmosx> Alayde: why do you need to sudo to pull git?!
sklik has quit [Remote host closed the connection]
<maestrojed> jhass weird, I am having the same experience.
<Alayde> Repository is owned by root :( I suppose that could be changed
sklik has joined #ruby
<czhang> but it wasn't in an ideal way, and there's methods in the Foo module that are using the VAR defined by Foo instead of the VAR that I'm trying to overwrite in FooBar
jobewan has quit [Ping timeout: 255 seconds]
Lingos has joined #ruby
<Alayde> well, owned by root and not world writeable
<jhass> czhang: your SRP sounds broken
<czhang> SRP?
<maestrojed> Since I am passing an array to my shell script. In that script. I expected "${1}" to be my array. Instead its the first item in the array
<maestrojed> ${2} is the 2nd item, etc.
<atmosx> Alayde: c'mon be serious. Clone the repo to a user, this is awful design.
<jhass> maestrojed: yeah, I think that's the point of passing an array
<maestrojed> right.
<Alayde> atmosx: It's not my design, unfortunately I just inherited this house of cards
fabrice31 has joined #ruby
<jhass> maestrojed: argument passing only ever passes strings, you can't pass "an array as first argument", only a string representation of it
<maestrojed> My work around would be to count the array before passing it. pass the array and this count. Then I would know how many vars exist in the shell script and can loop. But that feels wonky at best
<jhass> maestrojed: in this case Array#join should give you a good string representation
<jhass> uhm, I vaguely recall there's a way to count array items in a shell script
<atmosx> czhang: The code on the gist works as expected.
<jhass> somehting with #
wjimenez_ has joined #ruby
<czhang> :(
<maestrojed> jhass really. Is this vagrant? Ruby? Shell?
<maestrojed> jhass yes, I can count arrays in shell with #
<czhang> wait, it doesn't return 1 for you?
<maestrojed> My issue is it was never an array.
<maestrojed> But I will try your join tip.
rshetty has quit [Ping timeout: 264 seconds]
<czhang> :( i'm on ruby 1.8.7
<jhass> maestrojed: .join(' ') so it gets spaces
everettForth has joined #ruby
<maestrojed> If I had 10 items I'd have 10 vars. But I don't know how many items there will be so thats been my struggle. (and why you use arrays :) ).
<atmosx> czhang: returns 1, should return 1.
<jhass> czhang: yeah well, my condolences, you missed the funeral
<maestrojed> jhass awesome thanks!
nkumari has quit [Remote host closed the connection]
<atmosx> jhass: please, be more polite with strangers
<atmosx> jhass: that tone of irony, is not adequate to the channel's history and ethos
<jhass> 1.8.7 is dead and he seems to know
<atmosx> jhass: I know, I'm just trolling :-P
Lingos has quit [Ping timeout: 255 seconds]
sklik has quit [Ping timeout: 264 seconds]
<pipework> atmosx using the word ethos should have been enough for you to know you were being trolled, jhass.
<jhass> sorry, not my best day
<czhang> atmosx: yeah but I want it to return 2; is there a way for me to make that happen?
wjimenez5271 has quit [Ping timeout: 255 seconds]
<pipework> Wait, so are we still talking about ruby, czhang?
<czhang> short of const_set and forking the gem
<czhang> yeah
<czhang> :(
<jhass> czhang: SRP = Single responsibility principle. If you got name conflicts by including a module, it's a good sign your class is way too big
<pipework> czhang: Did you gist your thing?
<atmosx> pipework: I like using Greek words (go figure...)
<czhang> it's not a name conflict, we're trying to overwrite it
siwica has quit [Remote host closed the connection]
<pipework> jhass: No one wants to have to write a library to use a Vagrantfile. :p
fabrice31 has quit [Ping timeout: 255 seconds]
<atmosx> czhang: of course it is!
siwica has joined #ruby
<czhang> okay um
<maestrojed> jhass when you told me "argument passing only ever passes strings, you can't pass "an array as first argument", only a string representation of it". Is this true because of Shell? Ruby? Vagrant? Just trying to google more.
<jhass> maestrojed: it's true because of unix
<czhang> So… is there a way to resolve it
<pipework> czhang: You could use `def self.included(mod); mod.const_set(:Foo, something);end` on the module.
<jhass> fundamental stuff when calling a program
<czhang> oh god
<maestrojed> jhass ok, thx
<czhang> yeah i'm not using const_set, it looks even worse than our current hack
mary5030 has quit [Remote host closed the connection]
<czhang> (we have a pretty brutal current hack that seems to have sort of resolved the issue, but it doesn't really overwrite the constant sooooo)
<pipework> czhang: Well, if the value you want is set at a constant, you're kinda screwed unless you cause whatever calls that constant to call your constant instead.
rudisimo has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework> Either way sounds bad.
<czhang> yeah the change was to overwrite the method definition and make it call our new constant with a different name but
ferr has joined #ruby
<czhang> that kind of makes me want to cry
<czhang> so
<czhang> welp
despai has joined #ruby
<jhass> is the actual code you need to overwrite open source?
<pipework> czhang: That's worse, imo.
<czhang> yeah we could fork the gem and rewrite parts of it
Alayde has left #ruby ["WeeChat 1.0"]
<czhang> but that would make it harder to upgrade to a newer version
<czhang> sooooo
<pipework> Yeah, if you could expose better configuration stuff and then pull request upstream...
<jhass> as a first step I'd be interested in removing all that abstraction in your descriptions
nkumari has joined #ruby
<jhass> there's the slight chance we notice something in the particular code that might make your life easier
<czhang> we're um
<czhang> a lot of versions behind
<jhass> oh, so I get free servers tonight? :)
<jhass> scnr
<txdv> boom
<atmosx> czhang: hm you can't override the method right?
<txdv> >> "shevy "*1000
<eval-in__> txdv => "shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy sh ... (https://eval.in/221585)
<czhang> i can override the method
<czhang> which is what i ended up doing
nkumari has quit [Remote host closed the connection]
<czhang> by making it use a different variable instead of the constant i was trying to override
sinequanon has quit []
nkumari has joined #ruby
Xeago has joined #ruby
<atmosx> czhang: will something like this help? It's not very dynamic https://gist.github.com/atmosx/140fcb98dd571ca19772
GGMethos has quit [Quit: WeeChat 1.0.1]
<czhang> hmm
havenwood has quit [Remote host closed the connection]
<atmosx> I mean re-writing the entire class...
zacts has joined #ruby
<atmosx> sucks
<czhang> so just redefining the method works?
<atmosx> czhang: sure
<atmosx> it's ruby
<czhang> fair enough
procat has joined #ruby
<czhang> i coudl do that, that i think is actually less bad, yeah
<volty> changing a constant is not good, anyway you need just : Foo::VAR = 2 // you have to change context, and it seems senseless to change it in FooBar class and expect it without 'bringing into life' FooBar
<czhang> actually hmm, that might make the underlying issue less explicit
<atmosx> It's not a DRY solution, but might work until you clean up the code (somehow)
<pipework> volty: Actually, that raises warnings in ruby.
<volty> yap
<pipework> The better way is to delete the constant then set it.
thagomizer has quit [Quit: Leaving.]
<czhang> Yeah I think i'm gonna go with "this is the ugly fix but at least it's obvious what's wrong"
<volty> the better way is to rethink everything, i can't see a clear point in his thinking
matled has quit [Remote host closed the connection]
matled has joined #ruby
<atmosx> Agreed.
<pipework> remove_const and then const_set
<pipework> I don't know why remove_const isn't const_remove
<pipework> or delete or something
byprdct has joined #ruby
RitterJack has quit [Remote host closed the connection]
<jhass> because const_set is backwards
<jhass> it should be set_const
<pipework> and const_get?
<jhass> should be const_get
<jhass> bah
<jhass> get_const
<jhass> ruby stop messing with me!
nobitanobi has quit [Remote host closed the connection]
<pipework> if const_defined?(DatConst); remove_const(DatConst); const_set(DatConst, SOMEVALUE); end
<pipework> Could use defined? but I like the const_defined? here
andrewlio has quit [Remote host closed the connection]
maestrojed has quit [Ping timeout: 264 seconds]
<atmosx> that's neat
<atmosx> const_defined?
deject3d_ has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
<pipework> >> const_defined?(Object)
<eval-in__> pipework => undefined method `const_defined?' for main:Object (NoMethodError) ... (https://eval.in/221586)
<jhass> stuff into class Module; def const_replace; ...; end; end; and never look at that codebase again
mistermocha has joined #ruby
<pipework> It's on module though
* jhass wonders if it wouldn't be easier to just upgrade all that stuff
<pipework> jhass: I wouldn't care about it but then I need to push it around everywhere
shredding has quit [Quit: shredding]
<pipework> Get people to not throw a fit.
anaeem1 has joined #ruby
maestrojed has joined #ruby
<jhass> >> method(:const_get).owner
<eval-in__> jhass => undefined method `const_get' for class `Object' (NameError) ... (https://eval.in/221587)
<jhass> >> Object.method(:const_get).owner
<volty> module Foo; def gVAR; self.kind_of?(FooBar) ? 2: 1; end; end // just a hint
<eval-in__> jhass => Module (https://eval.in/221588)
<jhass> so class Module seems like the right place
<pipework> >> Module.method(:const_defined?)
<eval-in__> pipework => #<Method: Class(Module)#const_defined?> (https://eval.in/221589)
<pipework> I'd use prepend with a module that defines the same method you want to override.
nobitanobi has joined #ruby
<pipework> Call super if you want.
<jhass> prepend is Ruby 2.0 iirc
<pipework> jhass: And 1.8.7 can go fuck itself
<jhass> totally
<pipework> that prepend though. Mmm
<atmosx> Is there any use case for this method, except from fucked up program design?
<jhass> hence "easier to upgrade"
<atmosx> I mean, it's clearly a fire-extinguisher of sorts
<pipework> atmosx: For which?
<volty> nice should be to have a simple and required method
spyderman4g63 has joined #ruby
<atmosx> pipework: why would you ever need to change a constant defined on a module included in a class?
kirun has quit [Quit: Client exiting]
<jhass> atmosx: fucked up OOD in a nice cocktail shaker with stone age platform and dependencies
<pipework> atmosx: For which method though, specifically?
<atmosx> pipework: all the const_
<czhang> "haha you're on a shitty old version of a gem"
<pipework> atmosx: Metaprogramming.
<czhang> "that uses an old version of the api"
<atmosx> pipework: hmmmmm
<czhang> "but the gem has a bug in it where it breaks on new versions of the api"
<atmosx> pipework: yes, might be
<pipework> atmosx: Making things available via constants that can be easily reached.
anaeem1 has quit [Ping timeout: 265 seconds]
<jhass> czhang: still saner to monkeypatch that bug and trying to upstream the monkeypatch
<pipework> If it were up to me everything would be allowed only one constant in the global namespace
<mostlybadfly> pipework: there is a beer here called pipeworks, just thought I'd share that :D
<pipework> Your gem would fail to build otherwise.
<pipework> mostlybadfly: Ooh, what kinda beer?
<atmosx> pipework: but variables in OO design should be dynamic, otherwise there's a reason if they are hard-coded
<czhang> i mean certainly "why not patch an old version of the gem instead of upgrading the gem" is an idea but
michaeldeol has joined #ruby
<mostlybadfly> it is actually a brewery
<mostlybadfly> they make all kinds, pretty good
<pipework> atmosx: You need some handle at the global namespace
<czhang> we are pretty sure it's been fixed in later versions (the later versions caused other issues for us)
<apeiros> pipework: add "and that constant must match the gem name" and I actually happen to agree with you :)
<atmosx> pipework: I mean, smells like bad code if you mess with these methods IMHO
<jhass> czhang: the idea is to fix those other issues, preferably upstream
<pipework> atmosx: Well, it is magical.
siwica has quit [Ping timeout: 244 seconds]