apeiros changed the topic of #ruby-lang to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste code on http://gist.github.com
yusuf has joined #ruby-lang
rwe has joined #ruby-lang
Miphix has joined #ruby-lang
usershell has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
usershell has quit [Ping timeout: 240 seconds]
g0bl1n has quit [Quit: Leaving]
pyttepatsy has quit [Ping timeout: 265 seconds]
kurko__ has quit [Ping timeout: 250 seconds]
mistym_ has joined #ruby-lang
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jmrepetti has quit [Remote host closed the connection]
mistym has quit [Disconnected by services]
mistym_ is now known as mistym
jmrepett_ has joined #ruby-lang
charliesome has quit [Quit: zzz]
rwe has quit [Ping timeout: 246 seconds]
Narzew has quit [Quit: Wychodzi]
rcvalle has quit [Quit: rcvalle]
JoshuaPaling has joined #ruby-lang
mcclurmc has joined #ruby-lang
jgpawletko has joined #ruby-lang
mcclurmc_ has joined #ruby-lang
charliesome has joined #ruby-lang
jmrepett_ has quit [Remote host closed the connection]
dorei has quit []
mcclurmc has quit [Ping timeout: 250 seconds]
matp has joined #ruby-lang
xff has joined #ruby-lang
matp_ has quit [Ping timeout: 264 seconds]
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
xff has quit [Quit: Page closed]
vieq has quit [Ping timeout: 240 seconds]
vieq has joined #ruby-lang
matp_ has joined #ruby-lang
matp has quit [Ping timeout: 265 seconds]
Lewix has joined #ruby-lang
hahuang61 has joined #ruby-lang
hahuang61 has quit [Client Quit]
tkuchiki has joined #ruby-lang
abder has joined #ruby-lang
<abder> Hi, What is the purpose of "attr" in Ruby?
marr has quit []
<apeiros> abder: make your life easier
<abder> Can you kindly clarify? I'm really new to Ruby
<apeiros> it writes methods for you
<apeiros> e.g. `attr_reader :foo` does the same as if you'd write `def foo; return @foo; end`
wink_ndge has joined #ruby-lang
<apeiros> the docs can tell you that just as well. you know how to use ri? or ruby-doc.org etc?
<abder> Regarding the docs, not yet a professional on that
<apeiros> o0
<abder> I'm aware of attr_reader, attr_writer, attr_accessor, but was confused about "attr" alone
<abder> The issue is what does using "attr" alone mean?
<apeiros> iirc it's the same as attr_reader. not sure. *checking*
<weaksauce> abder it stands for attribute... you can put them on classes to expose readers and writers of a variable
<weaksauce> abder without writing the boilerplate code like in java
<apeiros> ah, right
<apeiros> attr :foo # same as attr_reader
<apeiros> attr :foo, false # same as attr_reader
<apeiros> attr :foo, true # same as attr_accessor
<apeiros> and reading the source it's deprecated.
<apeiros> use att_reader/_writer/_accessor instead
<abder> h, got what you mean. Very nice. Appreciate it!
<abder> And, just a quick question
<abder> I came across this line:
<abder> conditions ||= lambda {true}
<abder> I really didn't understand ||=
<abder> do you know what it mean?
<womble> It means "only set conditions if conditions isn't already set"
<ericwood> abder: it means assign whatever is on the right if the value of the left is falsy
<womble> It's equivalent to conditions = conditions || lambda {true}
<abder> great! thanks a lot for your kind support
<womble> No problems. The invoice is in the mail.
<godd2> also, if its false, it will get set to the new value
GarethAdams has quit [Ping timeout: 258 seconds]
hahuang61 has joined #ruby-lang
<jhass> womble: abder nitpick but a ||= b actually equivalent to a || a = b
<jhass> which in rare cases matters
NoNMaDDeN has quit [Remote host closed the connection]
<abder> jhass can you kindly clarify what a || a = b means?
<abder> an example maybe?
<ericwood> a = b won't be executed if a is "falsy"
hahuang61 has quit [Client Quit]
<jhass> yes, || && "short-circuit"
<ericwood> just because of the nature of conditionals; if it fails immediately the rest of the conditional isn't even evaluated
<jhass> their right hand side won't be run if the left hand side determines the output of the expression already
<ericwood> if you use ||= in the context of other code (don't do this!) operator precedence can get wonky
mji has joined #ruby-lang
<jhass> the difference is important because you can do a.b ||= c which calls the b= method on a
<jhass> if a.b ||= c expanded to a.b = a.b || c there would always be that method call
<jhass> which could have unwanted side effects
<ericwood> so general guidelines for ||= 1) use it on its own 2) only use it for values where falsy values aren't desired
mistym has quit [Remote host closed the connection]
GarethAdams has joined #ruby-lang
GarethAdams has joined #ruby-lang
usershell has joined #ruby-lang
<ericwood> one of these days I'll come up with a decent explanation of &:
<jhass> start by stopping to see '&:' as operator
<jhass> the operator is &, the : is part of it's operand already
shinnya has quit [Ping timeout: 240 seconds]
<jhass> &(:foo)
<ericwood> that's a good way to phrase it
<ericwood> the & is syntactic sugar, correct?
<jhass> not really, it's an operator
<ericwood> it only has that significance in function calls/declarations
<godd2> yea it runs to_proc on the symbol
<ericwood> right
kiyote23 has joined #ruby-lang
<jhass> syntax sugar means there's another way to write it
<jhass> there's none for &
drewxiu has joined #ruby-lang
<jhass> a.b = c is syntax sugar
<jhass> a.b=(c) is the canonical way to write that expression
<drewxiu> hey
<jhass> array.[](0) same
<ericwood> jhass: fair enough, that's the wrong term
<godd2> a[3] = 2 is syntactic sugar for a.[]=(3,2)
<jhass> or hash.[]=(k, v)
usershell has quit [Ping timeout: 264 seconds]
<jhass> ah, too slow
<jhass> ;P
<godd2> :D
<ericwood> :D
<apeiros> calling to_proc is more of a side-effect really
<ericwood> I was explaining operators as functions to a student recently, it was great :D
<apeiros> as it needs a Proc to work, to_proc is the tool it uses to normalize values "passed" to it
<abder> wombie invoice in the mail?
<ericwood> drewxiu: hi!
<abder> What is "lambda"?
<ericwood> abder: you can think of it as a function of sorts
<apeiros> something much less fun than its cousin, lambada
<godd2> abder think of it as a method you can pass around and execute later
<ericwood> abder: it's a function without a name
<drewxiu> ruby supports lambda expressions?
<drewxiu> oh sweet
<ericwood> drewxiu: Ruby is all about closures and like FP stuff and whatever
<abder> ericwood: i was just going through the tutorial you sent me. i saw "anonymus" but didn't get it
<ericwood> abder: that basically means it doesn't have a name
<drewxiu> nice.. (math minor) lol. i've been messing with ruby on rails recently.. good to know
<abder> so, is it just some anonymous function to work with
<ericwood> yah!
<abder> when should we use such function? does it have a purpose?
<jhass> many!
<ericwood> sometimes you want to pass chunks of code around as data!
<jhass> do you understand blocks yet?
<abder> yes, i understand blocks
<drewxiu> ericwood: thanks! I really hadn't explored the language as opposed to messing around with rails.
<jhass> abder: what would you do if you want to pass two blocks to a method?
<godd2> abder for example, rails stores named scopes in lambdas so that they can be run later for sql queries dynamically.
<jhass> abder: you would use a block and a lambda/proc or two lambdas/procs
<jhass> you can think of a lambda/proc as a block assigned to a variable that you can pass around
<jhass> in fact you can "capture" a block as such
abder has quit [Ping timeout: 246 seconds]
<drewxiu> jhass: that seems very 'functor' like
<jhass> well, ruby still is first class OOP, so not too many of the functional concepts, or at least terms apply well IMO
<jhass> but then I haven't seriously worked with a functional language yet, so I might be misjudging
<godd2> Lots of Ruby folk are learning Clojrue for their funcitonal language.
<godd2> You might like it jhass :)
<ericwood> seen a lot of people getting into Elixir as well
<drewxiu> Elixer?
<drewxiu> is that functional ?
jimbach has joined #ruby-lang
<ericwood> it's a functional language that runs on the Erlang VM
hendranata_ has joined #ruby-lang
<ericwood> pretty cool stuff, hides a lot of the ugliness of Erlang (yes, I know it's subjective)
<hendranata_> tes
<drewxiu> yeah now that sounds pretty cool
* jhass hands hendranata_ a t
<drewxiu> do any of you guys use ruby in industry? Do you commonly interface with other langs? or is rails normally the end all be all ?
kiyote23 has quit [Remote host closed the connection]
<ericwood> there's plenty of Ruby use outside of rails
<ericwood> I personally work at a rails shop of sorts, but we have all kinds of non-rails services written in Ruby
<ericwood> a big example (here in AUSTIN) is Rapid7 and their exploitation tool Metasploit
<ericwood> it's all ruby, with tie-ins to other languages, etc.
drewxiu has quit [Ping timeout: 245 seconds]
<ericwood> there's tools like Puppet, etc. written in Ruby as well
<ericwood> (puppet is very very commonly used in the ops world)
<red_menace> I think you scared him off
<ericwood> :'(
<ericwood> I hide joins/parts in this channel
<red_menace> it does add a lot of noise
jimbach has quit [Remote host closed the connection]
<jhass> smart filter ftw!
<ericwood> btw if any of you live in austin come to this tomorrow: http://www.meetup.com/austinrb/events/218735924/
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
kiyote23 has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
usershell has joined #ruby-lang
JoshuaPaling has joined #ruby-lang
usershell has quit [Ping timeout: 250 seconds]
Lewix has quit [Remote host closed the connection]
cornerma1 has joined #ruby-lang
cornerman has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
centrx has joined #ruby-lang
centrx has quit [Client Quit]
Lewix has joined #ruby-lang
jimbach has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
usershell has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
apeiros_ has quit [Ping timeout: 272 seconds]
mcclurmc_ has quit [Remote host closed the connection]
snoopybbt has quit [Ping timeout: 250 seconds]
Lewix has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
|jemc| has joined #ruby-lang
mcclurmc has quit [Ping timeout: 240 seconds]
|jemc| has quit [Client Quit]
|jemc| has joined #ruby-lang
diegoviola has quit [Remote host closed the connection]
kapil__ has joined #ruby-lang
senor_jalapeno has quit [Remote host closed the connection]
bmichelsen has joined #ruby-lang
klmlfl has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
imperator has joined #ruby-lang
iamninja has quit [Quit: Textual IRC Client: www.textualapp.com]
Lewix has joined #ruby-lang
jdecuirm has quit [Ping timeout: 250 seconds]
iamninja has joined #ruby-lang
gianlucadv has joined #ruby-lang
kyb3r_ has joined #ruby-lang
gix has quit [Ping timeout: 240 seconds]
NoNMaDDeN has quit [Quit: Leaving...]
iamninja has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros_ has joined #ruby-lang
iamninja has joined #ruby-lang
gix has joined #ruby-lang
mcclurmc has joined #ruby-lang
apeiros_ has quit [Ping timeout: 250 seconds]
klmlfl has joined #ruby-lang
mcclurmc has quit [Ping timeout: 256 seconds]
imperator has quit [Quit: Valete!]
matsutomo has joined #ruby-lang
|jemc| has quit [Ping timeout: 250 seconds]
gianlucadv has quit [Ping timeout: 255 seconds]
ur5us has quit [Ping timeout: 252 seconds]
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
mji has quit [Quit: This computer has gone to sleep]
usershel_ has joined #ruby-lang
usershell has quit [Ping timeout: 250 seconds]
koderok has joined #ruby-lang
ryez has joined #ruby-lang
koderok has left #ruby-lang [#ruby-lang]
jimbach has joined #ruby-lang
jimbach has quit [Ping timeout: 258 seconds]
oleo__ has joined #ruby-lang
mji has joined #ruby-lang
oleo is now known as Guest47763
Guest47763 has quit [Ping timeout: 264 seconds]
red_menace has quit [Quit: Quit]
fedexo has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
mji has quit [Quit: Leaving]
vondruch has quit [Ping timeout: 256 seconds]
drewxiu has joined #ruby-lang
AKASkip has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
AKASkip has quit [Ping timeout: 252 seconds]
usershell has joined #ruby-lang
kiyote23 has joined #ruby-lang
klmlfl has joined #ruby-lang
usershel_ has quit [Ping timeout: 258 seconds]
kiyote23 has quit [Ping timeout: 245 seconds]
drewxiu has quit [Ping timeout: 250 seconds]
usershel_ has joined #ruby-lang
mistym has joined #ruby-lang
usershell has quit [Ping timeout: 245 seconds]
oleo__ has quit [Quit: Verlassend]
pyttepatsy has joined #ruby-lang
usershell has joined #ruby-lang
usershel_ has quit [Ping timeout: 258 seconds]
pyttepatsy has quit [Ping timeout: 264 seconds]
Lewix has quit [Remote host closed the connection]
allomov has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 258 seconds]
matsutomo has quit [Quit: matsutomo]
fclausen has quit [Ping timeout: 272 seconds]
AKASkip has joined #ruby-lang
pyttepatsy has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
bmichelsen has quit [Quit: ZZZzzz…]
matsutomo has joined #ruby-lang
bmichelsen has joined #ruby-lang
pyttepatsy has quit [Ping timeout: 245 seconds]
dxta has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
spuk has quit [Ping timeout: 250 seconds]
spuk has joined #ruby-lang
quatron has quit [Quit: quatron]
jimbach has joined #ruby-lang
usershell has quit [Quit: Leaving...]
jimbach has quit [Ping timeout: 258 seconds]
Senjai has quit [Ping timeout: 250 seconds]
Lewix has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
mcclurmc has joined #ruby-lang
noaon has quit [Quit: WeeChat 1.0.1]
futilegames has joined #ruby-lang
mcclurmc has quit [Ping timeout: 256 seconds]
ryez has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby-lang
Senjai has joined #ruby-lang
hahuang65 has quit [Ping timeout: 265 seconds]
hendranata_ has quit [Remote host closed the connection]
darwin_ has joined #ruby-lang
darwin_ has quit [Client Quit]
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
slumos has joined #ruby-lang
benlovell has joined #ruby-lang
devgiant has joined #ruby-lang
ta has quit [Remote host closed the connection]
devgiant has quit [Ping timeout: 240 seconds]
emmesswhy has quit [Quit: Leaving]
oak has joined #ruby-lang
JohnBat26 has joined #ruby-lang
ta has joined #ruby-lang
banister has quit [Ping timeout: 250 seconds]
banister has joined #ruby-lang
mistym has quit [Remote host closed the connection]
davs has joined #ruby-lang
davs has quit [Client Quit]
solars has joined #ruby-lang
arBmind has joined #ruby-lang
ta has quit [Remote host closed the connection]
pyttepatsy has joined #ruby-lang
vondruch has joined #ruby-lang
ruby-lang748 has joined #ruby-lang
fjfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
qba73 has joined #ruby-lang
francisfish has quit [Ping timeout: 245 seconds]
ta has joined #ruby-lang
ta has quit [Remote host closed the connection]
ta has joined #ruby-lang
matsutomo has quit [Quit: matsutomo]
Iskarlar has joined #ruby-lang
jimbach has joined #ruby-lang
jimbach has quit [Ping timeout: 272 seconds]
pyttepatsy has quit [Quit: Lost terminal]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matsutomo has joined #ruby-lang
Iskarlar has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
skade has joined #ruby-lang
francisfish has joined #ruby-lang
kwd has joined #ruby-lang
kwd has quit [Client Quit]
mcclurmc has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
mcclurmc has quit [Ping timeout: 240 seconds]
matsutomo has quit [Quit: matsutomo]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
kyb3r_ has quit [Read error: Connection reset by peer]
matsutomo has joined #ruby-lang
elia has joined #ruby-lang
arBmind has joined #ruby-lang
ikrima_ has joined #ruby-lang
arBmind1 has joined #ruby-lang
yusuf has quit [Quit: Leaving.]
matsutomo has quit [Quit: matsutomo]
matsutomo has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
ruby-lang748 has quit [Ping timeout: 246 seconds]
arBmind has quit [Ping timeout: 256 seconds]
ledestin has quit [Quit: ledestin]
matsutomo has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: zzz]
nofxx__ has joined #ruby-lang
GBrawl has joined #ruby-lang
GBrawl has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
nofxx_ has quit [Ping timeout: 240 seconds]
dabradley has quit [Ping timeout: 240 seconds]
matsutomo has joined #ruby-lang
hanmac1 has joined #ruby-lang
bmichelsen has quit [Quit: ZZZzzz…]
kwd has joined #ruby-lang
matsutomo has quit [Ping timeout: 244 seconds]
dabradley has joined #ruby-lang
workmad3 has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
<yorickpeterse> morning
<ndrst> morning!
<Eising> morning :)
<hanmac1> nobu that meanie did break my binding again :/
andy888 has joined #ruby-lang
<andy888> test
apeiros_ has joined #ruby-lang
jds has joined #ruby-lang
andy888 has quit [Quit: Page closed]
sferik has joined #ruby-lang
jimbach has joined #ruby-lang
pablocantero has joined #ruby-lang
araujo has joined #ruby-lang
postmodern has quit [Quit: Leaving]
sferik has quit [Ping timeout: 250 seconds]
jimbach has quit [Ping timeout: 272 seconds]
francisfish has quit [Remote host closed the connection]
matsutomo has joined #ruby-lang
bmichelsen has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ledestin has joined #ruby-lang
matsutomo has left #ruby-lang [#ruby-lang]
ur5us has joined #ruby-lang
francisfish has joined #ruby-lang
fedexo has quit [Ping timeout: 240 seconds]
maloik_ is now known as maloik
ur5us has quit [Ping timeout: 264 seconds]
<darix> hanmac1: broke how?
ldnunes has joined #ruby-lang
<hanmac1> darix: https://github.com/ruby/ruby/commit/544d28c300b5a8084693968cb88b75443def8ab2 he disable rthat rb_data_type_t can have parents ... that does crash with my binding because i need that feature
<darix> hanmac1: i think that question might be more successful on the ruby ML :)
francisfish has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
<hanmac1> hm i send him a pm via https://www.ruby-forum.com/user/show/nobu
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
marr has joined #ruby-lang
dsilva has joined #ruby-lang
sferik has joined #ruby-lang
tkuchiki has quit [Ping timeout: 252 seconds]
bmichelsen has quit [Quit: ZZZzzz…]
chouhoulis has joined #ruby-lang
chouhoul_ has joined #ruby-lang
chouhoulis has quit [Read error: Connection reset by peer]
dsilva_ has joined #ruby-lang
iamninja has quit [Remote host closed the connection]
dsilva has quit [Ping timeout: 240 seconds]
dagda1_ has joined #ruby-lang
chouhoul_ has quit [Ping timeout: 240 seconds]
<maloik> yorickpeterse: you were changing to dotenv right... do you use that in production too?
<yorickpeterse> maloik: yes
<yorickpeterse> I know that makes me a sinner but w/e it's easy
<yorickpeterse> basically we take EC2 userdata, yank the env variables out of it and save it in ".env.userdata"
<yorickpeterse> which is then loaded by the app
<maloik> I'm considering doing the same if the team agrees... just ran into a little issue where a new key wasn't found in my own secrets.yml so my tests didn't run
<maloik> took a little while to figure that out
dsilva has joined #ruby-lang
<maloik> so I'll either end up writing a gem that stops the test run and/or deploys when that happens, or move to dotenv
<yorickpeterse> the load process we have is basically: ".env.userdata" -> ".env.$ENV" -> ".env"
<yorickpeterse> (priority in that order)
charliesome has joined #ruby-lang
charliesome has quit [Client Quit]
dsilva_ has quit [Ping timeout: 258 seconds]
Guest1882 has joined #ruby-lang
benlovell has quit [Ping timeout: 265 seconds]
ta has quit [Ping timeout: 264 seconds]
kirloo has joined #ruby-lang
kirloo is now known as Guest35729
Guest1882 has quit [Ping timeout: 264 seconds]
iamninja has joined #ruby-lang
dsilva has quit [Ping timeout: 272 seconds]
dsilva has joined #ruby-lang
ta has joined #ruby-lang
pablocantero has quit [Remote host closed the connection]
pablocantero has joined #ruby-lang
pablocantero has quit [Remote host closed the connection]
iamninja has quit [Remote host closed the connection]
Iskarlar has joined #ruby-lang
bmichelsen has joined #ruby-lang
mkaesz has joined #ruby-lang
iamninja has joined #ruby-lang
charliesome has joined #ruby-lang
francisfish has joined #ruby-lang
hhatch has joined #ruby-lang
Guest35729 has quit [K-Lined]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arBmind has joined #ruby-lang
arBmind1 has quit [Ping timeout: 240 seconds]
sferik has joined #ruby-lang
pablocantero has joined #ruby-lang
pablocantero has quit [Remote host closed the connection]
pablocantero has joined #ruby-lang
ledestin has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby-lang
dsilva_ has joined #ruby-lang
jimbach has joined #ruby-lang
dsilva has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Remote host closed the connection]
godd2 has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmichelsen has quit [Quit: ZZZzzz…]
jimbach has quit [Ping timeout: 258 seconds]
ledestin has joined #ruby-lang
yfeldblum has joined #ruby-lang
bmichelsen has joined #ruby-lang
ikrima_ has quit [Ping timeout: 255 seconds]
fclausen has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
BubonicPestilenc has quit [Quit: BubonicPestilenc]
chouhoulis has quit [Remote host closed the connection]
t3h_j4n170r has quit [Ping timeout: 258 seconds]
t7y9r has quit [Ping timeout: 265 seconds]
fclausen has quit [Ping timeout: 272 seconds]
t3h_j4n170r has joined #ruby-lang
benlovell has joined #ruby-lang
t7y9r has joined #ruby-lang
Iskarlar has joined #ruby-lang
yfeldblum has joined #ruby-lang
snoopybbt has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
chinmay_dd has joined #ruby-lang
drewxiu has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
yfeldblu_ has quit [Ping timeout: 250 seconds]
ledestin has quit [Quit: ledestin]
drewxiu has quit [Ping timeout: 258 seconds]
scampbell has joined #ruby-lang
chinmay_dd has quit [Ping timeout: 265 seconds]
hinbody has joined #ruby-lang
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
dsilva has joined #ruby-lang
dsilva_ has quit [Ping timeout: 264 seconds]
[spoiler] has joined #ruby-lang
skade has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
gix has quit [Ping timeout: 256 seconds]
caseydriscoll has quit [Remote host closed the connection]
gix has joined #ruby-lang
tkuchiki has joined #ruby-lang
dangerousdave has joined #ruby-lang
diegoviola has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby-lang
mcclurmc_ has joined #ruby-lang
mcclurmc has quit [Ping timeout: 264 seconds]
dsilva_ has joined #ruby-lang
futilegames_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
futilegames has quit [Ping timeout: 264 seconds]
futilegames_ is now known as futilegames
dsilva has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Remote host closed the connection]
Miphix has quit [Quit: Leaving]
tkuchiki has joined #ruby-lang
chouhoulis has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
midhir has quit [Ping timeout: 272 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 272 seconds]
rcvalle has joined #ruby-lang
chinmay_dd has joined #ruby-lang
midhir has joined #ruby-lang
futilegames has joined #ruby-lang
midhir has quit [Read error: Connection reset by peer]
midhir has joined #ruby-lang
malconis has joined #ruby-lang
pablocantero has quit [Remote host closed the connection]
dsilva has joined #ruby-lang
dsilva_ has quit [Ping timeout: 272 seconds]
melter has quit [Quit: Client exiting]
AKASkip has quit [Ping timeout: 250 seconds]
jimbach has joined #ruby-lang
ta has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
tkuchiki has joined #ruby-lang
pablocantero has joined #ruby-lang
shinnya has joined #ruby-lang
oleo has joined #ruby-lang
kiyote23 has joined #ruby-lang
red_menace has joined #ruby-lang
Iskarlar has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lewix has joined #ruby-lang
setanta has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
ConstantineXVI has joined #ruby-lang
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sferik has joined #ruby-lang
yfeldblum has quit [Ping timeout: 258 seconds]
dsilva_ has joined #ruby-lang
senor_jalapeno has joined #ruby-lang
dsilva has quit [Ping timeout: 250 seconds]
ConstantineXVI has quit [Remote host closed the connection]
ConstantineXVI has joined #ruby-lang
dsilva has joined #ruby-lang
cornerma1 has joined #ruby-lang
dsilva_ has quit [Ping timeout: 265 seconds]
francisfish has quit [Remote host closed the connection]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
svajone has joined #ruby-lang
cornerman has quit [Ping timeout: 240 seconds]
<svajone> Hello. Quick question, what's the best way to select items on an array?
cornerma1 is now known as cornerman
sferik has joined #ruby-lang
<darix> svajone: it depends
francisfish has joined #ruby-lang
<svajone> Say, I have an AR called orders that belongs to a table called users. I want to go through the orders whilst selecting only users that are active.
sferik has quit [Client Quit]
<apeiros> svajone: Array#select?
<svajone> I did something like this, orders.each { |order| order.user.status == active } but it seems to give me inconsistent results, sometimes it would return 2 or 3 or even 1 (I only have 5 sets of data, 3 are active, 2 are not).
<svajone> Sorry, I mean orders.select
<apeiros> svajone: AR? as in ActiveRecord model? let the db do the selection.
whippythellama has joined #ruby-lang
<apeiros> use .where
<apeiros> also AR models and relations are NOT arrays.
<svajone> I see.
lapide_viridi has joined #ruby-lang
<svajone> I thought they were?
<apeiros> no. what gave you that idea?
pricees has joined #ruby-lang
cmhobbs has joined #ruby-lang
<svajone> Someone who is more senior in Ruby in my work told me.
<svajone> Says, it's an AR but has more methods or something.
sferik has joined #ruby-lang
<apeiros> then either he poorly explained or should educate up
francisfish has quit [Ping timeout: 255 seconds]
<svajone> Maybe or maybe I misunderstood.
<apeiros> s/he/they/ … I'll never learn. sob.
gix has quit [Ping timeout: 240 seconds]
bmichelsen has quit [Quit: ZZZzzz…]
j2p2 has joined #ruby-lang
midhir has quit [Ping timeout: 245 seconds]
<svajone> I'll give it a whirl.
Steven___ has joined #ruby-lang
kappaloris has joined #ruby-lang
caseydriscoll has joined #ruby-lang
gix has joined #ruby-lang
<kappaloris> hello, can please anyone tell me wether Net::SSH is threadsafe or not?
Steven___ has left #ruby-lang [#ruby-lang]
<apeiros> kappaloris: nothing which does not explicitly state to be thread safe is thread safe.
<ljarvis> wat
<ljarvis> ah nothing
<ljarvis> that sentence reads so weird
bmichelsen has joined #ruby-lang
<apeiros> since I say it somewhat often - better phrasings?
<matti> Yo apeiros
<apeiros> hi matti
<matti> apeiros: You need a tatoo - "No, it's not thread-safe".
j2p2 has quit [Ping timeout: 256 seconds]
<ljarvis> i'd just negate it, anything which does not explicitly state to be thread safe is not thread safe, but yeah it was really just me missing the "nothing" it's still a double negative
<yorickpeterse> get a tramp stamp with "tharedngi" as the text
<ljarvis> "always semaphoring"
<yorickpeterse> haha
<yorickpeterse> or do something like
<yorickpeterse> mutex.synchronize { <butt here> }
<yorickpeterse> Though I wonder where you'd put the } then
noaon has joined #ruby-lang
<darix> svajone: ugh ... dont load all users into the memory of your app just to filter them there. -.-
<ljarvis> matti: :D
yalue has joined #ruby-lang
<darix> svajone: for things like that you could even provide a scope like scope :active, -> { where(active: true) }
<matti> yorickpeterse: Yo :)
<yorickpeterse> hai
jgpawletko is now known as jgpawletko_mtgs
<matti> ljarvis: Rub some Golang on it.
<yorickpeterse> channels bra
<ljarvis> matti: but it's covered in golang already
<ljarvis> and erlang
<yorickpeterse> with some sick goroutines
<matti> ljarvis: They I will be able to send you meme "No, it does not have Generics yet"
<ljarvis> derp
<matti> Haha
<matti> Erlang :)
<darix> svajone: with the scope you can do "Users.active..."
<yorickpeterse> I'd totally use Erlang, if I had a use case for it :|
<svajone> And just merge it?
<darix> i am missing some clojure in the discussion
<ljarvis> we dont need webscale yet
<svajone> Sorry, been awhile since I did IRC how do I mention someone again?
<svajone> --help
<svajone> ?
<svajone> -help
<matti> svajone: /help
<ljarvis> svajone: /help and you just prefix your message with their name
dsilva_ has joined #ruby-lang
<svajone> ljarvis, thanks!
<svajone> ljarvis: thanks
<matti> yorickpeterse: If you can't find a use-case for Elrnag, you are doing it wrong ;p
<ljarvis> learn to erlang?
tkuchiki has quit [Remote host closed the connection]
<yorickpeterse> you gotta feel your inner Erlang
<yorickpeterse> then Erlang will come to you
<matti> Yeah.
<ljarvis> unless you're using node, then you're always doing it right
<matti> Erlang, you must code.
<yorickpeterse> Well yeah, even IBM is using Node now
tkuchiki has joined #ruby-lang
<ljarvis> callbacks are the threads of 2015
<darix> yorickpeterse: microsoft too.;)
<matti> yorickpeterse: Oh no :(
<ljarvis> that doesn't make any sense but I'm sticking with it
<darix> yorickpeterse: but tbh ... IBM isnt really doing nodejs until they ported it to s390 ;)
<yorickpeterse> Alternative title: "How we wasted thousands of dollars by using a single-core language"
<apeiros> callbacks are great. but you can create horrible spaghetti with it.
<ljarvis> i really dislike callbacks
<darix> microsoft is using nodejs for the azure cloud cmdline tools
<ljarvis> cli-scale?
dsilva has quit [Ping timeout: 256 seconds]
<yorickpeterse> lol wtf
<yorickpeterse> Even using plain Bash makes more sense there
ledestin has joined #ruby-lang
* yorickpeterse wrote half a build server in Bash
* yorickpeterse fears the day he doesn't remember what it does
<yorickpeterse> Granted the rest is Jenkins/Java, can't get any worse any way
davs has joined #ruby-lang
<darix> yorickpeterse: imho ... bash sucks for everything beyond calling a few other tools. as soon as you start using array hashes or doing some more string mangling most of the other languages would be better.
<ljarvis> lies
<ljarvis> php
<yorickpeterse> darix: that's basically what it does, hence I used Bash
<yorickpeterse> just runs a bunch of rm/tar commands, etc
<ljarvis> darix: but it's metal, just use filename->contents as a hash
<ljarvis> and a directory to store them all
tkuchiki has quit [Ping timeout: 265 seconds]
<darix> ljarvis: ugh
shambrarian has joined #ruby-lang
<yorickpeterse> yay Rubinius can do bigints really fast
<yorickpeterse> that's totally gonna help those thousands of Rails apps :P
<yorickpeterse> Funny enough I think we were actually discussing something about using GMP or w/e it was
benlovell has quit [Ping timeout: 240 seconds]
klmlfl has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
<darix> that static linking argument again ...
<darix> we should really rip static linking out of our linker and compilers
ta has joined #ruby-lang
<headius> we should really rip GPL out of our systems, if you ask me
<darix> headius: i dont think your employer would agree ;)
tenderlove has joined #ruby-lang
<yorickpeterse> I agree on the GPL part
<headius> we use many licenses
<darix> headius: also LGPL is only an issue if you do link statically.
<darix> for dynamic linking it is fine.
<headius> has that been proven in court?
<headius> and what comprises dynamic linking? All classes are dynamically linked on JVM, for example
<darix> headius: i dont think anyone sued over that part yet. i think most cases in court were about plain GPL
<headius> we had to rip out all GPL or LGPL-only libraries in JRuby because many companies won't touch them
<workmad3> also, both GPL and LGPL do nothing if you aren't distributing the built binaries anyway... e.g. if you're using GPL code in some components that are never distributed, only exist on your server, you have no requirement to release any code
<darix> that too
<darix> but there is AGPL for that ;)
<darix> just saying
chinmay_dd has quit [Quit: Leaving]
<headius> Apache-2.0 ftw
<headius> or similar licenses like EPL
<yorickpeterse> workmad3: thing is, we do distribute binaries
<yorickpeterse> Not statically linked though
<yorickpeterse> well except for the stuff we vendor (e.g. libffi)
svajone has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
mistym has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
kapil__ has quit [Quit: Connection closed for inactivity]
hanmac1 has quit [Quit: Leaving.]
rippa has joined #ruby-lang
kwd has quit [Quit: Sleeping now. ZZZzzz…]
mistym has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: zzz]
dwknoxy has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
j2p2 has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
svajone has joined #ruby-lang
djwilcox has joined #ruby-lang
GBrawl has joined #ruby-lang
<djwilcox> i installed ruby with rvm, but im having some issues with my bash $PATH
<djwilcox> ruby is installed here - /usr/local/rvm/gems/ruby-1.9.3-p551/bin
<djwilcox> anyone know correct way to add this to my bash path
<ericwood> djwilcox: export PATH=$PATH:/usr/local/rvm
<djwilcox> thanks ericwood, cheers mate
<ericwood> typically you have something in your bash_profile that sets up any custom path stuffs
francisfish has joined #ruby-lang
<ericwood> there's also information on this in the RVM docs as part of the setup
<djwilcox> im setting up ruby in docker, and was having some issues
francisfish has quit [Read error: Connection reset by peer]
francisfish has joined #ruby-lang
hahuang65 has joined #ruby-lang
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
banister has joined #ruby-lang
svajone has quit [Ping timeout: 255 seconds]
mistym has joined #ruby-lang
djwilcox has quit [Quit: WeeChat 1.0.1]
mkaesz has quit [Remote host closed the connection]
midhir has joined #ruby-lang
diegovio1 has joined #ruby-lang
hahuang65 has quit [Ping timeout: 264 seconds]
diegovio1 is now known as diegovio1a
ta has quit [Remote host closed the connection]
solars has quit [Ping timeout: 265 seconds]
spastorino has joined #ruby-lang
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
svajone has joined #ruby-lang
<chris2> i found the first use for unicode identifiers!
<chris2> naming variables f′ as in haskell
futilegames has quit [Quit: futilegames]
<darix> o.O
<darix> chris2: stop being weird!
<chris2> are you denying my existence?
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lewix has joined #ruby-lang
<darix> there was also a gem that provided default aliases for things like lambda
dangerousdave has joined #ruby-lang
dxta has joined #ruby-lang
fedexo has joined #ruby-lang
havenwood has joined #ruby-lang
benlovell has joined #ruby-lang
pricees has quit [Ping timeout: 255 seconds]
banister has joined #ruby-lang
benlovell has quit [Ping timeout: 272 seconds]
pricees has joined #ruby-lang
sferik has joined #ruby-lang
stamina has joined #ruby-lang
fedexo has quit [Read error: Connection reset by peer]
fedexo has joined #ruby-lang
ta has joined #ruby-lang
matp_ has quit [Ping timeout: 240 seconds]
bmichelsen has quit [Quit: ZZZzzz…]
mcclurmc has joined #ruby-lang
jgpawletko_mtgs is now known as jgpawletko
AKASkip has joined #ruby-lang
mcclurmc_ has quit [Ping timeout: 244 seconds]
oak has quit [Ping timeout: 252 seconds]
GBrawl has quit [Quit: (null)]
pablocantero has quit [Remote host closed the connection]
matp has joined #ruby-lang
diegovio1a has quit [Quit: WeeChat 1.0.1]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby-lang
vladgh has joined #ruby-lang
vladgh has quit [Client Quit]
gorilla13 has joined #ruby-lang
caseydriscoll has quit [Remote host closed the connection]
vladgh has joined #ruby-lang
vladgh has quit [Remote host closed the connection]
vladgh has joined #ruby-lang
vladgh has quit [Client Quit]
__butch__ has joined #ruby-lang
matp has quit [Ping timeout: 256 seconds]
vladgh has joined #ruby-lang
qba73 has quit []
matp has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
vladgh has quit [Remote host closed the connection]
vladgh has joined #ruby-lang
vladgh_ has joined #ruby-lang
vladgh_ has quit [Remote host closed the connection]
senor_jalapeno has quit [Ping timeout: 252 seconds]
dsilva has joined #ruby-lang
chinmay_dd has joined #ruby-lang
Iskarlar_ has joined #ruby-lang
dsilva_ has quit [Ping timeout: 252 seconds]
vladgh has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
noaon has quit [Quit: WeeChat 1.0.1]
Iskarlar has quit [Ping timeout: 258 seconds]
chussenot has joined #ruby-lang
chinmay_dd has quit [Quit: Leaving]
hahuang65 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
jkad1 has joined #ruby-lang
ta has quit [Remote host closed the connection]
fedexo has quit [Ping timeout: 255 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
[H]unt3r has joined #ruby-lang
solars has joined #ruby-lang
hahuang65 has quit [Ping timeout: 252 seconds]
arBmind has quit [Quit: Leaving.]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
nathanstitt has joined #ruby-lang
NoNMaDDeN has quit [Quit: Leaving...]
mcclurmc_ has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
mcclurmc has quit [Ping timeout: 244 seconds]
centrx has joined #ruby-lang
chussenot has quit [Quit: chussenot]
mistym has joined #ruby-lang
oleo__ has joined #ruby-lang
oleo__ has quit [Read error: Connection reset by peer]
midhir has quit [Remote host closed the connection]
ruby-lang713 has joined #ruby-lang
mcclurmc_ has quit [Remote host closed the connection]
oleo has quit [Read error: Connection reset by peer]
mcclurmc has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
pablocantero has joined #ruby-lang
oleo has joined #ruby-lang
kiyote23 has joined #ruby-lang
vladgh has joined #ruby-lang
ruby-lang713 has quit [Ping timeout: 246 seconds]
kiyote23 has quit [Ping timeout: 250 seconds]
S3thc0n has joined #ruby-lang
dsilva_ has joined #ruby-lang
svajone has quit [Quit: Leaving]
<S3thc0n> Hello, I am trying to use Ruby for an API which isn't easily accessible in other ways, but I whenever I try executing a script I get a 'cannot load such file' error with seemingly EVERY 'require'. My version is 1.9.3 on Windows. What am I doing wrong?
dsilva has quit [Ping timeout: 244 seconds]
Narzew has joined #ruby-lang
ConstantineXVI has quit []
<centrx> S3thc0n, Hard to say. First impression is Windows does not work very well with Ruby and Ruby 1.9.3 is really quite old
<S3thc0n> centrx: Thanks, I'll try with a Vm
dsilva_ has quit [Ping timeout: 240 seconds]
benlovell has joined #ruby-lang
dsilva has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
benlovell has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby-lang
Lewix has joined #ruby-lang
ConstantineXVI has joined #ruby-lang
ConstantineXVI has quit [Client Quit]
futilegames has joined #ruby-lang
mcclurmc has joined #ruby-lang
davs has quit [Quit: Lost terminal]
GBrawl has joined #ruby-lang
ConstantineXVI has joined #ruby-lang
klmlfl has joined #ruby-lang
stamina has quit [Quit: WeeChat 1.0.1]
stamina has joined #ruby-lang
RobertBirnie has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
kiraz_ has joined #ruby-lang
wallerdev has joined #ruby-lang
<kiraz_> I am new to IRC and trying to understand the dynamic
<kiraz_> whats happening here?
<kiraz_> can someone explain:)?
yfeldblum has joined #ruby-lang
<red_menace> not much - what are you looking for?
<kiraz_> trying to udnerstand the dynamic in comparaison to reddit or stack overflow
<red_menace> depends on who is actually online, but reddit or SO are not real-time
stamina has quit [Ping timeout: 258 seconds]
<centrx> also reddit sucks
<kiraz_> why?
<centrx> they used to be cool
<kiraz_> what is it in the real time that you like?
<havenwood> kiraz_: there are snakes in the tubes delivering messages
<kiraz_> snakes??
ta has joined #ruby-lang
<red_menace> SO can be a bit rough also, especially if you are a noob
<havenwood> kiraz_: yeah, that's how irc works
<centrx> yes IRC is very dangerous
<centrx> snakes, trolls,...
<red_menace> FBI...
<kiraz_> i see
caseydriscoll has joined #ruby-lang
<kiraz_> so why are you using it??
<centrx> hookers and coke
<red_menace> it depends on what you are looking for - this conversation, for example, would not happen on reddit or SO
<havenwood> kiraz_: a higher percent of irc traffic is over tor
yfeldblum has quit [Ping timeout: 272 seconds]
<centrx> kiraz_, There's no better way than IRC to actually talk to a group of people
<centrx> kiraz_, Skype, Twitter, etc. are just knock-offs of IRC
<red_menace> yeah IRC is way old
<havenwood> kiraz_: but irc is more conversational. responses can be quicker, depends on the channel. it's not unusual for it to take minutes or hours to get a response, depends.
<havenwood> kiraz_: a chat
<havenwood> kiraz_: not a bulletin board or forum
allomov has quit [Remote host closed the connection]
<red_menace> the conversations are a lot more dynamic
ta has quit [Ping timeout: 250 seconds]
<havenwood> flurries of activity, then silence.
<kiraz_> what about the anonymity? do you like this?
gianlucadv has joined #ruby-lang
<kiraz_> would you use if it was not anonynous?
<centrx> It's not anonymous, Mr http://webchat.freenode.net
hahuang65 has joined #ruby-lang
|jemc| has joined #ruby-lang
midhir has joined #ruby-lang
sarkyniin has joined #ruby-lang
Iskarlar_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chills42 has joined #ruby-lang
workmad3 has quit [Ping timeout: 258 seconds]
chills42 has quit [Remote host closed the connection]
nofxx__ has quit [Ping timeout: 250 seconds]
solars has quit [Ping timeout: 240 seconds]
<kiraz_> what are people looking for here? they ask programing question?? share ressources? look to collaborate on projects?
pricees has quit [Ping timeout: 258 seconds]
S3thc0n has quit [Remote host closed the connection]
<jhass> all of that and more
<kiraz_> but how do you keep track of things - and especially people
<red_menace> this particular channel is mainly about the Ruby language itself - there are hundreds of others
<jhass> note that there are channels that have topics, you're in #ruby-lang so we tend to talk about Ruby
iamninja has quit [Remote host closed the connection]
<weaksauce> kiraz_ you don't really keep track but if you frequent some channels a few people keep popping up and you get to know them
<kiraz_> are you guys active on other plateform such as reddit or SO?
<red_menace> I quit SO a while back - they are a bit too cliquey
<kiraz_> cliquey?
<kiraz_> why is that?
<red_menace> yeah, once people get over a certain amount of points, or whatever, they seem to turn into asshats
<red_menace> half the comments on that site are about whether or not the current question is on topic or not
<centrx> asshat is one of the badges
[H]unt3r has quit []
<red_menace> I must have missed it - might have stayed for that one
micechal has joined #ruby-lang
pablocantero has quit [Read error: Connection reset by peer]
<kiraz_> lol, yea you are right SO people can be bitchy
pablocantero has joined #ruby-lang
<red_menace> after you've been there a while, it just isn't any fun - IRC isn't that much more fun, but it does get funny sometimes
hahuang65 has quit [Quit: WeeChat 1.0.1]
<micechal> can someone tell me if the statement in this: http://hastebin.com/oliwexodij.coffee
<micechal> is true?
hahuang65 has joined #ruby-lang
<micechal> of course these functions are inexistent
<micechal> but does it work this way in theory?
Lewix has quit [Remote host closed the connection]
<jhass> micechal: you can look at its implementation, it's just one line: [random_bytes(n)].pack("m*").delete("\n")
pricees has joined #ruby-lang
pablocantero has quit [Client Quit]
<micechal> I googled this page already but it didn't say too much to me
<ledestin> crud. Semaphore-CI runs specs faster than my own server.
<micechal> I really don't know much about Ruby, it's just that I've got some Ruby code and I want to translate it to different language
<micechal> so I am trying to understand it first
Narzew has quit [Quit: Wychodzi]
ta has joined #ruby-lang
postmodern has joined #ruby-lang
solars has joined #ruby-lang
<jhass> did you look at Array#pack then yet?
dsilva_ has joined #ruby-lang
<micechal> not yet, should I?
<jhass> well, it's an essential part of what happens as you can see in the implementation
dsilva has quit [Ping timeout: 250 seconds]
Iskarlar has joined #ruby-lang
arooni-mobile has joined #ruby-lang
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
kiraz_ has quit [Ping timeout: 246 seconds]
|jemc| has quit [Ping timeout: 272 seconds]
mcclurmc has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
yfeldblum has joined #ruby-lang
chills42 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
senor_jalapeno has joined #ruby-lang
mcclurmc has joined #ruby-lang
<jkad1> can anyone verify if the rvm website is down?
<yorickpeterse> jkad1: works fine here
<red_menace> same here
<jkad1> thanks, dunno why i cant connect
dsilva has joined #ruby-lang
hahuang65 has quit [Ping timeout: 264 seconds]
benlovell has joined #ruby-lang
dsilva_ has quit [Ping timeout: 264 seconds]
<wink_ndge> Seen a few services blaming a DNS outage. Could be related
<wink_ndge> Atom.io and Codeschool down
benlovell has quit [Ping timeout: 264 seconds]
kiyote23 has joined #ruby-lang
hahuang65 has joined #ruby-lang
duderonomy has joined #ruby-lang
shawnacscott has joined #ruby-lang
<jkad1> wink_ndge: yeah i cant connect to them rvm is back up now though
<jkad1> for me anyway
gorilla13 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kiyote23 has quit [Remote host closed the connection]
seank__ has quit [Remote host closed the connection]
seank_ has joined #ruby-lang
<ericwood> anything that uses DNSimple is down right now
<ericwood> it includes a lot of hip tech sites lol
<apeiros> hack or failure?
malconis has joined #ruby-lang
<ericwood> failure hack
<ericwood> idk keep checking hacker news
dsilva_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
dsilva has quit [Ping timeout: 240 seconds]
<voxxit> they should use cloudflare :P
chills42 has quit [Remote host closed the connection]
<ericwood> DDoS, nice
wallerdev has quit [Quit: wallerdev]
yfeldblum has quit [Ping timeout: 258 seconds]
iamninja has joined #ruby-lang
stamina has joined #ruby-lang
yfeldblum has joined #ruby-lang
[H]unt3r has joined #ruby-lang
stamina has quit [Client Quit]
chills42 has joined #ruby-lang
dagda1_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby-lang
charliesome has joined #ruby-lang
midhir has quit [Remote host closed the connection]
hhatch has quit [Ping timeout: 265 seconds]
mistym has quit [Remote host closed the connection]
dagda1 has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
midhir_ has joined #ruby-lang
ur5us has joined #ruby-lang
billy_ran_away has quit [Ping timeout: 264 seconds]
_fritchie has joined #ruby-lang
Narzew has joined #ruby-lang
billy_ran_away has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
bb010g has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister is now known as banisterfiend
<darix> brixen: RSTRUCT_PTR - should that be provided in rubinius header files?
dangerousdave has joined #ruby-lang
<yorickpeterse> darix: it appears to be related to MRI's rgenc, which we don't have. What do you need it for?
mcclurmc has joined #ruby-lang
<yorickpeterse> Probably still the case
midhir_ has quit [Remote host closed the connection]
GBrawl has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 258 seconds]
allomov has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arooni-mobile has quit [Ping timeout: 264 seconds]
dangerousdave has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
mistym has joined #ruby-lang
charliesome has quit [Quit: zzz]
charliesome has joined #ruby-lang
hahuang65 has quit [Ping timeout: 244 seconds]
ConstantineXVI has quit [Ping timeout: 258 seconds]
midhir has joined #ruby-lang
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby-lang
setanta has quit [Quit: Leaving]
gorilla13 has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fclausen has joined #ruby-lang
weaksauce has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
fclausen has quit [Ping timeout: 272 seconds]
chills42 has quit [Remote host closed the connection]
<wink_ndge> DNSimple is Saint Louis, US right? http://map.ipviking.com/
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
hahuang65 has joined #ruby-lang
dsilva has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sarkyniin has quit [Quit: Quitte]
AKASkip has quit [Ping timeout: 240 seconds]
<yorickpeterse> Darn parser tables
<yorickpeterse> (╯°□°)╯︵ ┻━┻
<yorickpeterse> At the end of the tunnel I can see how these bastards work, but holy crap it's explained in stupid ways
dsilva_ has quit [Ping timeout: 264 seconds]
shinnya has quit [Ping timeout: 240 seconds]
scampbell has quit [Ping timeout: 258 seconds]
mcclurmc has quit [Remote host closed the connection]
shinnya has joined #ruby-lang
snooc has joined #ruby-lang
snooc has left #ruby-lang [#ruby-lang]
ikrima_ has joined #ruby-lang
wallerdev has joined #ruby-lang
arooni-mobile has joined #ruby-lang
chills42 has joined #ruby-lang
_whitelogger_ has joined #ruby-lang
pskosinski_ has joined #ruby-lang
kalleth_ has joined #ruby-lang
heftig_ has joined #ruby-lang
mistym has joined #ruby-lang
xsdg_ has joined #ruby-lang
benlovell has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
oleo__ has joined #ruby-lang
tekacs has joined #ruby-lang
GarethAdams_ has joined #ruby-lang
GarethAdams_ has joined #ruby-lang
shtirlic_ has joined #ruby-lang
tekacs is now known as Guest36707
shinnya_ has joined #ruby-lang
unsymbol_ has joined #ruby-lang
hagabaka has quit [Ping timeout: 245 seconds]
hplar_ has joined #ruby-lang
womble` has joined #ruby-lang
skade has joined #ruby-lang
tzero_ has joined #ruby-lang
fusillicode has joined #ruby-lang
benlovell has quit [Ping timeout: 272 seconds]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Narzew has quit [Ping timeout: 245 seconds]
ConstantineXVI has quit [Remote host closed the connection]
oleo__ has quit [Quit: Verlassend]
dsilva_ has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 256 seconds]
malconis has joined #ruby-lang
fusillicode has quit [Ping timeout: 258 seconds]
hagabaka has joined #ruby-lang
lapide_viridi has quit [Read error: Connection reset by peer]
shinnya has quit [*.net *.split]
Lewix has quit [*.net *.split]
oleo has quit [*.net *.split]
spastorino has quit [*.net *.split]
j2p2 has quit [*.net *.split]
GarethAdams has quit [*.net *.split]
fusillicode1 has quit [*.net *.split]
apeiros has quit [*.net *.split]
toretore has quit [*.net *.split]
kith has quit [*.net *.split]
znz_jp has quit [*.net *.split]
womble has quit [*.net *.split]
unsymbol has quit [*.net *.split]
pskosinski has quit [*.net *.split]
_whitelogger has quit [*.net *.split]
Guest45628 has quit [*.net *.split]
shtirlic has quit [*.net *.split]
heftig has quit [*.net *.split]
tzero has quit [*.net *.split]
xsdg has quit [*.net *.split]
kalleth has quit [*.net *.split]
hplar has quit [*.net *.split]
GarethAdams_ is now known as GarethAdams
spastorino_ is now known as spastorino
dsilva has quit [Ping timeout: 272 seconds]
Narzew has joined #ruby-lang
lapide_viridi has joined #ruby-lang
oleo__ has joined #ruby-lang
jgpawletko is now known as jgpawletko_away
skade has quit [Ping timeout: 272 seconds]
oleo__ is now known as oleo
pskosinski_ is now known as pskosinski
havenwood has quit [Remote host closed the connection]
dagda1 has joined #ruby-lang
LapideViridi has joined #ruby-lang
_whitelogger has joined #ruby-lang
arBmind has joined #ruby-lang
_whitelogger has joined #ruby-lang
chills42 has joined #ruby-lang
<womble`> alec1: Not based on that description.
charliesome has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chills42 has quit [Remote host closed the connection]
alec1 has left #ruby-lang [#ruby-lang]
yfeldblum has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
oleo has quit [Quit: Verlassend]
oleo has joined #ruby-lang
caseydriscoll has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
workmad3 has quit [Client Quit]
workmad3 has joined #ruby-lang
apeiros__ is now known as apeiros
benlovell has joined #ruby-lang
fclausen has joined #ruby-lang
lapideviridi has quit [Read error: Connection reset by peer]
drewxiu has joined #ruby-lang
j2p2 has joined #ruby-lang
arBmind has joined #ruby-lang
yfeldblum has joined #ruby-lang
benlovell has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby-lang
sferik has quit [Read error: Connection reset by peer]
sferik has joined #ruby-lang
znz_jp has joined #ruby-lang
meizaps has quit [Ping timeout: 258 seconds]
svajone has joined #ruby-lang
<svajone> Looking for the person who told me earlier than ActiveRecords are not arrays.
<svajone> When using ruby's << method to push records into an ActiveRecord, what are the consequences?
meizaps has joined #ruby-lang
neurodam1ge has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Remote host closed the connection]
godd2 has joined #ruby-lang
neurodamage has joined #ruby-lang
<workmad3> svajone: a) #rubyonrails is a better channel for activerecord questions
<toertore> if by "an ActiveRecord" you mean an instance of ActiveRecord::Base, i'm pretty sure the consequence is a NoMethodError
kurko__ has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
<workmad3> svajone: b) << works on has_many associations within activerecord, not just any activerecord derived class
<svajone> workmad3, thanks!
<workmad3> svajone: c) the behaviour of << can be affected by configuration values away from where you're using it, so it can be non-obvious exactly what will happen when you use it
banister has joined #ruby-lang
<svajone> Oh, well the situation is this, first, I query a model using a set of scope, then after that query another model using a certain type of filters (scopes are not permissible at this point, let's assume that). And I want t push the second queried model to the first one using the << method, I just want to know what would the effects be.
kurko___ has quit [Ping timeout: 255 seconds]
banisterfiend has quit [Ping timeout: 245 seconds]
<workmad3> svajone: I'd suggest asking the question in #rubyonrails where they (and maybe me) will probably ask you for actual code because talking in generalities can be pretty confusing
Lingo____ has joined #ruby-lang
charliesome has quit [Quit: zzz]
vladgh has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
vladgh has joined #ruby-lang
senor_jalapeno has quit [Ping timeout: 272 seconds]
vladgh has quit [Remote host closed the connection]
vladgh has joined #ruby-lang
vladgh has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
Cyrano has joined #ruby-lang
justinreyesv has joined #ruby-lang
yfeldblum has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kiyote23 has joined #ruby-lang
skade has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
vladgh has joined #ruby-lang
nomadicoder has quit [Ping timeout: 258 seconds]
kurko___ has joined #ruby-lang
vladgh has quit [Remote host closed the connection]
kiyote23 has quit [Ping timeout: 244 seconds]
vladgh has joined #ruby-lang
centrx has quit [Quit: Did gyre and gymble in ye wabe]
kurko__ has quit [Ping timeout: 240 seconds]
Lingo____ has quit [Quit: Lingo: www.lingoirc.com]
nomadicoder has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
elia has joined #ruby-lang
banister has quit [Ping timeout: 250 seconds]
vladgh has quit [Remote host closed the connection]
banister has joined #ruby-lang
vladgh has joined #ruby-lang
vladgh has quit [Remote host closed the connection]
meizaps has quit [Ping timeout: 258 seconds]
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #ruby-lang
meizaps has joined #ruby-lang
ConstantineXVI has joined #ruby-lang
ConstantineXVI has quit [Remote host closed the connection]
kurko___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kappaloris has quit [Quit: kappaloris]
momomomomo has joined #ruby-lang
vladgh has joined #ruby-lang
kurko__ has joined #ruby-lang
_fritchie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allomov has quit [Remote host closed the connection]
allomov has joined #ruby-lang
hackeron_ has joined #ruby-lang
cmhobbs has quit [Remote host closed the connection]
hackeron has quit [Ping timeout: 265 seconds]
nathanstitt has quit [Ping timeout: 264 seconds]
womble` is now known as womble
Iskarlar has joined #ruby-lang
whippythellama has quit [Quit: whippythellama]
RickHull has joined #ruby-lang
_fritchie has joined #ruby-lang
<RickHull> Hello, I'm trying to work on performance optimization for a gem of mine: https://github.com/rickhull/conway_deathmatch
<RickHull> the last time i looked at perf and profiling in ruby was like 5 years ago, 1.8.x days
elia has quit [Quit: Computer has gone to sleep.]
<RickHull> things have changed, I'm sure. I'm starting with ruby-prof now
<RickHull> here is the default output for ruby-prof, above 0.5% self time: https://github.com/rickhull/conway_deathmatch
havenn has joined #ruby-lang
<RickHull> immediately, I'm wondering about my choice to use a range for bounds enforcement
t_ has quit [Ping timeout: 258 seconds]
<apeiros> int.between?(lower, upper)
<RickHull> perhaps I'm just doing "too much" bounds enforcement / checking?
havenwood has quit [Remote host closed the connection]
<RickHull> apeiros: ah. any reason to think it's faster than range.include?(int)
<havenn> >> [(1..10).cover?(5), 5.between?(1, 10)]
<eval-in__> havenn => [true, true] (https://eval.in/229153)
pricees has quit [Ping timeout: 244 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
vladgh has quit [Remote host closed the connection]
<havenn> RickHull: it can make a huge difference
<RickHull> i believe it. eval is just showing equivalent output, but not perf, right?
t_ has joined #ruby-lang
<whitequark> yes
<apeiros> RickHull: less object allocations
<havenn> RickHull: compare `("a1".."a1000000").include?("a1000000")` with `("a1".."a1000000").cover?("a1000000")`
<apeiros> also the method afaik is a bit simpler
<apeiros> but no idea what the diff is
<RickHull> cool, thanks for info all, playing around
<havenn> if they're simple numerics, #include? checks magnitude
<apeiros> Range#include? with numeric arguments is btw. special cased to be identical to cover?
shambrarian has quit [Read error: Connection reset by peer]
allomov has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
svajone has quit [Remote host closed the connection]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toertore has quit [Quit: This computer has gone to sleep]
workmad3 has quit [Ping timeout: 264 seconds]
hinbody has quit [Quit: leaving]
<RickHull> inneresting, Range#cover? provides no (apparent) benefit over #include? for integers https://gist.github.com/rickhull/3925531c1e6ee2860ea6
kith_ is now known as kith
lcdhoffman has joined #ruby-lang
Lewix has quit [Remote host closed the connection]