apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<dllama> hey guys. i'm trying to upgrade ruby to 2.0 on osx mavericks. and its failing with error make -j4 any ideas?
<shiney> -> is a synonym for Proc.new ?
yfeldblum has quit [Remote host closed the connection]
<shiney> that's a nice syntax. new in 2.0 i take it?
yfeldblum has joined #ruby
drumsrgr_ has quit [Ping timeout: 246 seconds]
mixel has joined #ruby
jhulten has joined #ruby
<bricker`work> shiney: no, -> is a synonym for 'lambda', since 1.9
<DouweM> shiney: it's a synonym for lambda {} which has slightly different behaviour than proc {} and Proc.new. it's bee naround since 1.9
bradhe has joined #ruby
<shiney> ah, right
<shiney> thanks
mixel has quit [Client Quit]
<bricker`work> dllama: by the way, ruby 2.0 is already installed on Mavericks
<dllama> oh?
mixel has joined #ruby
<dllama> how do i set my env to use that then?
Gerente has quit [Quit: gerente]
<bricker`work> dllama: upgrade your Xcode, Command Line Tools, and you might need to specify the GCC path when you install
<bricker`work> dllama: it should just be default system ruby
Aryasam has quit [Ping timeout: 252 seconds]
<dllama> ruby -v
<dllama> ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.3.0]
<dllama> i could have sworn i just updated xcode
<dllama> guess i'll try again
<bricker`work> dllama: are you using rvm?
<dllama> yea
<bricker`work> oh
<bricker`work> how are you trying to install ruby?
<dllama> rvm install 2.0.0
Caleb has joined #ruby
Caleb is now known as Guest83786
Aryasam has joined #ruby
brennanMKE has joined #ruby
jkline has quit [Quit: jkline]
danshultz has quit [Remote host closed the connection]
<h0rrorvacui> did you say that you were using rvm?
<dllama> yes
<h0rrorvacui> then have you used rvm use system?
danshultz has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
ffranz has quit [Quit: Leaving]
<h0rrorvacui> and see if that gives you system with 2.0.0
DarthGandalf has quit [Ping timeout: 260 seconds]
<dllama> wow
<dllama> that did it
<dllama> and to keep that as default, just add default to that?
mikepack has quit [Remote host closed the connection]
jamblack has joined #ruby
mikepack has joined #ruby
<h0rrorvacui> yeah you can go rvm use system --default
Nogbit has joined #ruby
<dllama> ty!
<h0rrorvacui> sure np
intuxicated has joined #ruby
Guest83786 has quit [Quit: Guest83786]
<dllama> hmm, so after switching to use system, do i have to modify my profile or chown anything? i can't seem to install gems now due to permissions
volty has quit [Quit: Konversation terminated!]
danshultz has quit [Ping timeout: 265 seconds]
kirun has quit [Quit: Client exiting]
lfox has joined #ruby
<Apane> How do you ensure unique values in an array?
b00stfr3ak has quit [Ping timeout: 252 seconds]
DarthGandalf has joined #ruby
theRoUS has joined #ruby
<benwoody> Array#uniq Apane
hiroyuki has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
<Apane> great,ty benwoody
willob1 has joined #ruby
<h0rrorvacui> dllama: yeah thats because you are not using rvm's single user
somasonic has joined #ruby
<somasonic> does a good irclib exist?
<h0rrorvacui> dllama: instead you are on your system and using rubygems there
<dllama> so what do i do?
<dllama> i really would hate to have to sudo for gems in dev mode
<dllama> everything i'm reading suggests that i should really stick to rvm
<h0rrorvacui> yeah if you have rvm there is no reason you can install another 2.0.0 with rvm
<h0rrorvacui> you can't*
<dllama> the only updates i see from xcode are pertaining to docs
<dllama> nothing for gcc, etc
<dllama> so that shouldn't be it
<h0rrorvacui> have you installed with rvm install 2.0.0-p247 or w/e? then rvm use 2.0.0-p247
benwoody has quit [Quit: benwoody]
kaspergrubbe has quit [Remote host closed the connection]
<h0rrorvacui> that should use rvm's rubygems
johnnyfuchs has quit [Quit: Leaving.]
kaspergrubbe has joined #ruby
<dllama> i forgot to include p… so it was trying to do -p0
<Apane> what do you guys think of this code? https://gist.github.com/anonymous/f6262d288f00c9b7d4f2
<dllama> stupid mistake on my part, hopefuly now it'll go smoother
<scottstamp> Uh, anyone know why RubyForge is down?
VTLob has quit [Quit: VTLob]
<dllama> h0rrorvacui, same thing… Error running 'make -j4'
nwertman has quit [Ping timeout: 244 seconds]
<bnagy> looks like some code I saw 3 minutes ago
kaspergrubbe has quit [Ping timeout: 252 seconds]
<Apane> what did you think when you saw it bnagy?
<Apane> :)
Beoran_ has joined #ruby
<bnagy> that it looks like rails
<Apane> does it look like good rails code to you?
<Apane> or bad rails code
<bnagy> that would be a good question to ask in #rubyonrails
<bnagy> but, you know, it's one line
<bnagy> there's a limited amount of bad that can fit in there
<Apane> right :)
<bnagy> don't know how I feel about using strings for categories
Aryasam has quit [Ping timeout: 272 seconds]
tjad has joined #ruby
Beoran__ has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
bigoldrock has joined #ruby
jhulten has quit [Remote host closed the connection]
jhulten has joined #ruby
hogeo has joined #ruby
<shevy> hmm with .uniq I get the unique entries back, but how to get the duplicates?
Astralum has quit [Read error: Operation timed out]
osvico has quit [Ping timeout: 260 seconds]
<bnagy> I usually group_by and select keys with more than one value entry
katselphrime has joined #ruby
dnyy has quit [Remote host closed the connection]
laputa has quit [Quit: WeeChat 0.4.2]
echevemaster has quit [Quit: Leaving]
kaspergrubbe has joined #ruby
marcgg has joined #ruby
iamjarvo has quit [Ping timeout: 265 seconds]
<shevy> ah
<shevy> that's a clever idea, thanks
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dnyy has joined #ruby
<bnagy> not sure how efficient it is, if you have something big
zastern has joined #ruby
<zastern> Anybody else having issues building native C gems on mavericks?
<bnagy> _should_ be ok, naively O(n) to build the grouped hash then an O(n) select
<bnagy> unless I'm missing something
peregrine81 has joined #ruby
<h0rrorvacui> dllama: seems to be a long shot but, try adding --autolibs to the install
<DouweM> bnagy: yeah, that sounds about right. so the whole procedure would be O(n)
<dllama> h0rrorvacui, for now i'm trying to fix the openssl error
<dllama> so i'm hoping 1 by 1 i can knock them out
Aryasam has joined #ruby
jhulten has quit [Ping timeout: 272 seconds]
hogeo has quit [Remote host closed the connection]
<dllama> this all started because i couldn't install ruby_speech
nobitanobi has joined #ruby
marcgg_ has quit [Ping timeout: 265 seconds]
kevind has quit [Quit: kevind]
hogeo has joined #ruby
echevemaster has joined #ruby
pel_daniel has left #ruby [#ruby]
hiall has quit [Quit: hiall]
Tearan has joined #ruby
<h0rrorvacui> autolibs will try to install the dependencies on linux but your mileage will vary as I've never used a mac for ruby dev.
theRoUS is now known as theRoUS|afk
<bnagy> zastern: is your problem 'it was working, upgrade broke it' or new install on mavericks?
<zastern> bnagy: ruby works fine, but I can't compile anything new since upgrading to mavericks
jamblack has quit [Quit: jamblack]
<bnagy> maybe the upgrade broke xcode commandline tools?
Aryasam has quit [Ping timeout: 265 seconds]
<bnagy> I haven't upgraded yet, I'm just clarifying your issue in case someone else knows :)
<zastern> bnagy: yeah, trying to figure that out
maletor has quit [Quit: Computer has gone to sleep.]
ehc has joined #ruby
Aryasam has joined #ruby
hogeo_ has joined #ruby
hogeo has quit [Read error: No route to host]
lethjakm1 has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
hiall has joined #ruby
ddpunk has quit []
mikepack_ has joined #ruby
<lethjakm1> hey, so I have a regex that looks like this: /\A[a-zA-Z1-9-]+\z/ but it won't match subdomain-20 however it will matche subdomain-19
<lethjakm1> why is that?
dnyy has quit [Remote host closed the connection]
Foredoomed has joined #ruby
<somasonic> lethjakm1, use 0-9
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
<somasonic> oh
Liquid-- has quit [Quit: Computer has gone to sleep.]
dnyy has joined #ruby
<lethjakm1> ....crap.
<lethjakm1> that seems right lemme check.
<lethjakm1> oh I am so mad at myself
Aryasam has quit [Ping timeout: 265 seconds]
mikepack has quit [Ping timeout: 265 seconds]
<somasonic> lol
<lethjakm1> ...also why was 10 valid....
<somasonic> i just checked, it fixes it
<lethjakm1> I feel I should have caught that a lot earlier on
<lethjakm1> thank you
<somasonic> dont worry, lol
<lethjakm1> lol
<lethjakm1> I feel dumb.
jhulten has joined #ruby
<h0rrorvacui> dllama: what are you using for your package manager?
platzhirsch has left #ruby [#ruby]
gyre007 has joined #ruby
<dllama> rvm
<dllama> oh
<h0rrorvacui> I mean are you using homebrew or what?
<dllama> homebrew yea
<somasonic> lethjakm1, http://rubular.com is good sometimes
mikepack_ has quit [Ping timeout: 252 seconds]
dumdedum has quit [Quit: KTHXBYE]
<lethjakm1> lol that's where I was validating it on....
<somasonic> lol
<lethjakm1> why is 10 valid?
<h0rrorvacui> okay try rvm install 2.0.0-p247 --autolibs=4
<lethjakm1> I'm confused about that.
<somasonic> lethjakm1, it isnt for me
<somasonic> with your 1-9
Lewix has quit [Remote host closed the connection]
bootcoder has quit [Quit: Konversation terminated!]
<lethjakm1> huh....must be factory girl doing something funky.
<lethjakm1> no clue what that is then....
bootcoder has joined #ruby
<h0rrorvacui> dllama: that should use your package manager and try to resolve dependencies
yfeldblum has joined #ruby
duggiefresh has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Aryasam has joined #ruby
yfeldblum has joined #ruby
thumpba_ has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<h0rrorvacui> dllama: it may try to install macports though...
Lewix has joined #ruby
<h0rrorvacui> dllama: scratch that I looked it up and it says it will search for package managers then if none found it will install macports
predator217 has joined #ruby
<dllama> after doing rvm pkg install openssl, it said to update gems. so i did use 1.9.3 (as thats whats in my user environment rather than system) and its been reinstalling 1.9.3 for past 15 minutes
<dllama> so i'm waiting on that to finish b4 trying to upgrade to 2.0 again
<h0rrorvacui> also reading rvm.io/rvm/autolibs says "rvm install --autolibs=packages 2.0.0-p247"
peregrine81 has quit []
<dllama> running that now
<dllama> hoping for the best
RichardBaker has quit [Quit: RichardBaker]
predator117 has quit [Ping timeout: 240 seconds]
<jalcine> rvm's quite patchy to work with
robustus has quit [Ping timeout: 264 seconds]
<h0rrorvacui> I think it just takes some getting use to
<h0rrorvacui> Their suggested use isn't enough to really cover all bases well.
<lethjakm1> I don't like rvm...I liked rbenv a lot better.
<lethjakm1> I've had better luck with it
<h0rrorvacui> rbenv is great for people who don't need the gemsets
<h0rrorvacui> and other features of rvm
yfeldblu_ has joined #ruby
robustus has joined #ruby
dnyy has quit [Remote host closed the connection]
<dllama> nice, 2.0 ready to go
<dllama> thank you h0rrorvacui!
<h0rrorvacui> dllama: if you want to avoid the problem in the future you might want to set "rvm autolibs packages" or something
timonv has joined #ruby
<jalcine> lethjakm1: same here
dnyy has joined #ruby
mlpinit has joined #ruby
<dllama> great, now ssl errors
<dllama> for gems
<jalcine> it just handles the act of building ruby, nothing more
<dllama> this is never going to end
<h0rrorvacui> lol thats the same problem
<jalcine> rvm tries to hammer your entire env
sross has joined #ruby
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
<h0rrorvacui> just set rvm autolibs packages
<h0rrorvacui> see if that fixes that
<lethjakm1> jalcine: yep...and all I want from a ruby installer is ruby
<lethjakm1> and gem I suppose
<jalcine> the occasional gem is nice :p
yfeldblum has quit [Ping timeout: 240 seconds]
jamblack has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
iaj_ has quit [Read error: Operation timed out]
<dllama> sigh….
<dllama> u guys seen this error?
<dllama> Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
<h0rrorvacui> didn't work did it
sross has left #ruby [#ruby]
<zastern> bnagy: i def had command line tools installed, but running xcode-select --install seems to have fixed it regardless
<zastern> so there's a thing.
sevenseacat has joined #ruby
yfeldblu_ has quit [Ping timeout: 252 seconds]
<dllama> h0rrorvacui, i'm on 2.0.0-p247 now, so the upgrade worked, but hte ssl error preventing me from being able to do antyhign
Aryasam has quit [Ping timeout: 246 seconds]
banisterfiend has joined #ruby
<h0rrorvacui> dllama: I'm at a lost for the SSL error
<h0rrorvacui> My best bet would be to google it :P
ch0mskiii has quit [Read error: Connection reset by peer]
sepp2k has quit [Quit: Leaving.]
chomskiii has joined #ruby
<jalcine> yeah, sounds like either you might be missing certs or something's borked
TheShaun is now known as TheShaun|AFK
mlpinit has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 240 seconds]
<dllama> rvm osx-ssl-certs update all fixed it
Aryasam has joined #ruby
willob1 has quit [Quit: Leaving.]
taternuts has joined #ruby
sross has joined #ruby
soba has joined #ruby
tkuchiki has joined #ruby
mlpinit has joined #ruby
soba_ has joined #ruby
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
<h0rrorvacui> awesome seems like you had everything possible go wrong then
<dllama> thats an understatement lol
willob1 has joined #ruby
<dllama> but after up'ing to 2.0, i was able to install ruby_speech
katselphrime has quit [Quit: WeeChat 0.3.7]
<dllama> so now waiting on adhearsion :)
havenwood has joined #ruby
iliketurtles has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
mojjojo has joined #ruby
weszlem has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dnyy has quit [Remote host closed the connection]
soba has quit [Ping timeout: 240 seconds]
dnyy has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
huttan has joined #ruby
mrsolo has joined #ruby
ssvo_ has quit [Ping timeout: 260 seconds]
theRoUS|afk is now known as theRoUS
ping-pong has joined #ruby
huttan has quit [Ping timeout: 246 seconds]
awefawf has joined #ruby
<awefawf> Hello
bigoldrock has left #ruby [#ruby]
<havenwood> helloo
<awefawf> So I don't really understand the placeholder for the .each method, the one between the | |
<havenwood> awefawf: block arguments go in between those
<h0rrorvacui> what don't you understand about them?
DrCode has joined #ruby
<awefawf> The example on codeacdemy is object.each { |item| # Do something }
<awefawf> But I don't really get what goes between | |
<awefawf> if my object is an array, I'm saying for each element int he array, do something
<h0rrorvacui> its a variable, it takes the value of each item of object iterating over them each
<havenwood> awefawf: So it iterates over `object` and on each iteration, `item` gets set to what the value is on that iteration.
<awefawf> Just in case I need to use it later?
<havenwood> awefawf: No, so you can use it within the block on each pass.
<h0rrorvacui> just in the blcok
freerobby has quit [Quit: Leaving.]
<awefawf> I think I get it
freerobby has joined #ruby
<awefawf> So I can say if |item| is something, do something else
stkowski has quit [Quit: stkowski]
<h0rrorvacui> Ruby is different in its use of iterators
dnyy has quit [Remote host closed the connection]
<h0rrorvacui> .each is for doing something to each item of a collection
<awefawf> hm
<h0rrorvacui> for each item do something
<havenwood> awefawf: Like: 1.upto(10).each { |number| puts "#{number} is set to the value of the enumerator on this iteration." }
kaspergrubbe has quit [Remote host closed the connection]
dnyy has joined #ruby
<awefawf> okay
<awefawf> Cool, ty
<h0rrorvacui> what maybe confusing you is why you even have to assign a value
kaspergrubbe has joined #ruby
Fuzai has quit [Remote host closed the connection]
Fuzai has joined #ruby
kaspergr_ has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
<jalcine> Anyone have luck with vim-ruby-debugger or any of the debugger gems?
iamjarvo has joined #ruby
nwertman has joined #ruby
SevenWolf has joined #ruby
maletor has joined #ruby
mr_red has quit [Quit: Bye :)]
keppy has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Client Quit]
lukec has quit [Quit: lukec]
dnyy has quit [Remote host closed the connection]
tommyvyo has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
nfk has quit [Quit: yawn]
danshultz has quit [Remote host closed the connection]
soba_ has quit [Ping timeout: 240 seconds]
dmyers has quit [Quit: dmyers]
dnyy has joined #ruby
danshultz has joined #ruby
rjhunter has joined #ruby
atno has quit [Remote host closed the connection]
<awefawf> Why doesn't this code double the value of the numbers in the array when it prints?
bugsinlights has joined #ruby
<h0rrorvacui> first
<h0rrorvacui> you should put the #{...} in double quotes
kayloos has joined #ruby
<awefawf> oh right
Soliah has joined #ruby
<sevenseacat> or just not use it at all
<h0rrorvacui> or do what he says
falood has joined #ruby
<h0rrorvacui> and just puts whatever*2
<awefawf> Thanks again...I'll probably have more questions, lol
<h0rrorvacui> you don't need that because puts will call the to_s on the result
<awefawf> I don't know wha to_s is yet, but I'll get there
<h0rrorvacui> to_string
<awefawf> I'm 34% of the way through on codecademy
<h0rrorvacui> think of it that way
<awefawf> ah ok
danshultz has quit [Ping timeout: 246 seconds]
angusiguess has joined #ruby
<h0rrorvacui> later check out http://www.slideshare.net/dablack/wgnuby
<Apane> What are the differences between or and || ? What are the differences between and and && ?
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
<jalcine> there isn't
<havenwood> Apane: Just precedence. Just like how `*` has a higher precedence than `+`, `&&` and `||` have a higher precedence than `and` and `or`.
<jalcine> just aliases
<jalcine> afaik
<jalcine> ah
* jalcine lurks
<awefawf> i will
<h0rrorvacui> awefawf: better yet watch the presentation http://www.youtube.com/watch?v=Xt6c6r4fbBs
ch0mskiii has joined #ruby
<havenwood> Apane: It does matter, and is why `&&` and `||` are generally recommended and `and` and `or` are relegated to flow control.
mr_red has joined #ruby
<h0rrorvacui> or the smaller url http://youtu.be/Xt6c6r4fbBs
<Apane> havenwood, nice - thanks
Mars__ has quit [Remote host closed the connection]
Mars__ has joined #ruby
chomskiii has quit [Read error: Connection reset by peer]
<havenwood> Apane: The one that burns people most often with `and` and `or` is that they have lower precedence than `=`: http://zenspider.com/Languages/Ruby/QuickRef.html#operators-and-precedence
<awefawf> ok ty h0rror
whunt has quit [Quit: Computer has gone to sleep.]
dnyy has quit [Remote host closed the connection]
dnyy has joined #ruby
<Apane> good to know, thanks havenwood
dnyy has quit [Read error: Connection reset by peer]
<havenwood> jalcine: Yeah, with parens explicitly dealing with precedence (or where that doesn't come up) same thing.
dnyy has joined #ruby
<havenwood> Apane: np
jeffdb has joined #ruby
hogeo_ has quit [Remote host closed the connection]
hogeo has joined #ruby
Mars__ has quit [Ping timeout: 265 seconds]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
pwh has joined #ruby
DanKnox is now known as DanKnox_away
failshell has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
alvaro_o has quit [Quit: Ex-Chat]
dhruvasagar has joined #ruby
jeffdb has quit [Quit: jeffdb]
<Apane> https://gist.github.com/Apane/0edc310388b5a087b3f1 my guess is defining foo1(foo2) with foo2 as the param?
brianpWins has quit [Quit: brianpWins]
jamblack has quit [Quit: jamblack]
fenicks has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
<h0rrorvacui> perhaps the use of a block yield so its dry?
lukec has joined #ruby
julian-delphiki has joined #ruby
mojjojo has quit [Quit: mojjojo]
<h0rrorvacui> yield the specific part
failshell has joined #ruby
<h0rrorvacui> or proc call ...
<h0rrorvacui> block would mean writing the block
<h0rrorvacui> :P so forget I said that
DanBoy has joined #ruby
marr has quit [Read error: No route to host]
<h0rrorvacui> so what you said basically
kaspergr_ has quit [Remote host closed the connection]
<Apane> ok thanks h0rrorvacui
dnyy has quit [Remote host closed the connection]
<h0rrorvacui> Apane: why are you refactoring if I may ask?
<h0rrorvacui> I like to defer till I know more later
kaspergrubbe has joined #ruby
mojjojo has joined #ruby
<Apane> it's more or less an excercise h0rrorvacui
<h0rrorvacui> ohh
CaptainJet has quit []
Zesty has joined #ruby
dnyy has joined #ruby
tvw has quit [Remote host closed the connection]
bean has quit [Ping timeout: 248 seconds]
failshell has quit [Ping timeout: 252 seconds]
mojjojo has quit [Client Quit]
starchild_ has quit [Ping timeout: 272 seconds]
Norns has joined #ruby
mojjojo has joined #ruby
kaspergrubbe has quit [Ping timeout: 260 seconds]
Norns has quit []
ehc has quit [Quit: ehc]
iliketurtles has joined #ruby
saarinen has quit [Quit: saarinen]
awkwords has joined #ruby
tommyvyo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nisstyre has joined #ruby
mojjojo has quit [Client Quit]
wfwfawefawef has joined #ruby
mojjojo has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
iliketurtles has quit [Ping timeout: 246 seconds]
dnyy has quit [Remote host closed the connection]
dubios has quit [Read error: Operation timed out]
ravster has joined #ruby
dnyy has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
hello_world_ has quit [Ping timeout: 250 seconds]
malomalo has joined #ruby
nwertman has quit [Remote host closed the connection]
awefawf has quit [Ping timeout: 265 seconds]
<malomalo> I've written a C extension and was wondering how to profile my c extension. I was trying to add gprof, but am having difficultly having it compile with gprof.
mrsolo has joined #ruby
cads has joined #ruby
jblack has quit [Quit: Lost terminal]
Mars__ has joined #ruby
lethjakm1 is now known as lethjakman
ravster has quit [Read error: Connection reset by peer]
soba has joined #ruby
ravster has joined #ruby
sparq_ has joined #ruby
dubios has joined #ruby
nwertman has joined #ruby
cads has quit [Remote host closed the connection]
Monie has joined #ruby
mlpinit_ has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
dnyy has quit [Remote host closed the connection]
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
<bricker> Is it stupid to put comments inside of a module_eval?
thumpba_ has quit [Remote host closed the connection]
<Nilium> Why would it matter if there was a comment in one?
benlieb has quit [Quit: benlieb]
mlpinit has quit [Ping timeout: 260 seconds]
<Nilium> It's a comment, it's not like it does anything.
kayloos has quit []
<bricker> yeah, you're right
Monie has quit [Ping timeout: 246 seconds]
jkhwan_ has quit [Remote host closed the connection]
Mars__ has quit [Remote host closed the connection]
jkhwan has joined #ruby
kayloos has joined #ruby
Mars__ has joined #ruby
jamesaanderson has joined #ruby
banjara has quit [Quit: Leaving.]
maletor has quit [Quit: Computer has gone to sleep.]
asteros has quit [Quit: asteros]
jkhwan has quit [Ping timeout: 272 seconds]
malomalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mars__ has quit [Ping timeout: 272 seconds]
nwertman has quit [Ping timeout: 252 seconds]
jhulten has quit [Remote host closed the connection]
jhulten has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
dnyy has quit [Remote host closed the connection]
asteros has joined #ruby
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
willob1 has quit [Quit: Leaving.]
dhruvasagar has quit [Ping timeout: 272 seconds]
bugsinlights has quit [Ping timeout: 265 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mojjojo has quit [Quit: mojjojo]
dhruvasagar has joined #ruby
jhulten has quit [Ping timeout: 246 seconds]
mojjojo has joined #ruby
DanKnox_away is now known as DanKnox
duggiefresh has quit [Remote host closed the connection]
bugsinlights has joined #ruby
bugsinlights has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
aces1up has quit []
jamesaanderson has joined #ruby
tomzx_mac has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 265 seconds]
duggiefresh has quit [Ping timeout: 252 seconds]
dnyy has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
__LX__ has joined #ruby
tomzx_mac has joined #ruby
Guest5934 has quit [Ping timeout: 265 seconds]
dnyy has joined #ruby
funburn has quit [Quit: funburn]
ewnd9 has joined #ruby
ch0mskiii has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
ravster has quit [Quit: Leaving.]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
neaer has joined #ruby
Bry8Star{T2 has joined #ruby
timonv has joined #ruby
jamesaanderson has joined #ruby
mojjojo has quit [Quit: mojjojo]
mmitchell has joined #ruby
mmitchell has quit [Remote host closed the connection]
mojjojo has joined #ruby
dnyy has quit [Remote host closed the connection]
mojjojo has quit [Client Quit]
mojjojo has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
kev has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
mojjojo has quit [Client Quit]
kev is now known as Guest51403
<Guest51403> hey guys, sounds like a joke but it ain't - what's the name for ruby programmers?
hogeo has quit [Remote host closed the connection]
Bry8Star{T2_ has joined #ruby
<Guest51403> I've heard of Perl-monks
dllama has left #ruby [#ruby]
hogeo has joined #ruby
<sevenseacat> rubyists?
<Guest51403> ah cool
<sevenseacat> i know python people call themselves pythonistas
<Guest51403> is that commonly used?
<Guest51403> never heard that one haha
colonolGron has quit [Quit: ciao]
<Guest51403> thankyou then !
<sevenseacat> np :)
havenwood has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
Guest51403 has quit [Client Quit]
Apane has quit []
Apane has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
iliketurtles has joined #ruby
Apane has quit [Client Quit]
Apane has joined #ruby
mary5030 has joined #ruby
hogeo has quit [Ping timeout: 244 seconds]
nobitanobi has quit [Ping timeout: 252 seconds]
Apane is now known as Enape_1
Enape_1 has quit [Client Quit]
Apane has joined #ruby
Apane has quit [Client Quit]
Enape_101 has joined #ruby
huttan has joined #ruby
divi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DanKnox is now known as DanKnox_away
dnyy has quit [Remote host closed the connection]
hogeo has joined #ruby
divi has joined #ruby
Zeeo has joined #ruby
dnyy has joined #ruby
<Zeeo> Good evening good mr's
iliketurtles has quit [Ping timeout: 244 seconds]
huttan has quit [Ping timeout: 252 seconds]
kaspergrubbe has joined #ruby
rezzack has joined #ruby
<Zeeo> is it possible to define a method with no arguments(for example: object.to_a), but affects the object on wich is called ? if so, how is that archieved. If I completely misunderstood everything feel free to enlighten me
<sam113101> Zeeo: you can define the method on the class of the object, or on the object itself
<Zeeo> sam113101 I want a method that I can call in this way: (object.method) and I can possibly pass data to by just typing this with no arguments added
kaspergrubbe has quit [Ping timeout: 252 seconds]
<havenwood> Zeeo: Don't do this, but things along these lines:
<havenwood> >> class Object; def to_a; [self] end end; 5.to_a #=> [5]
<eval-in_> havenwood => [5] (https://eval.in/63402)
<havenwood> Zeeo: Monkey patching.
mixel has quit [Quit: mixel]
ItSAN____ has quit [Ping timeout: 240 seconds]
<Zeeo> havenwood: is that even gonna work? in my case the object is an array wich I don't know how to refer to inside the said method
<havenwood> Zeeo: So for example, if you wanted to add an Array#sum method: class Array; def sum; reduce :+ end end; [1,2,3].sum #=> 6
verynew has joined #ruby
<sam113101> you should tell us exactly what you want to do
<havenwood> Zeeo: So you open up the Array class `class Array` then add your method `def your_method`.
keppy has quit [Quit: leaving]
axl_ has joined #ruby
nari has joined #ruby
polaco is now known as polaco_zZz
<havenwood> Zeeo: but yeah, whatcha doing?
<Zeeo> sam113101: I have an object wich I want to edit in a separate method, this object is actually an hash and I want to retrieve its values inside the method, but since I don't want it to accept any parameters, I don't know how to refer to its values
nowthatsamatt has quit [Quit: nowthatsamatt]
<havenwood> Zeeo: Inside the method, the Array object is `self`.
<havenwood> i said that poorly, but anyways `self`
<Zeeo> sam113101: the method is defined inside a class
<havenwood> Zeeo: I didn't understand your explanation. :O Is it an Array or a Hash you have? What would example input be, and the output?
zz_tsykoduk is now known as tsykoduk
verynew has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 244 seconds]
lfox has quit [Quit: ZZZzzz…]
ewnd9 has quit [Ping timeout: 252 seconds]
scottstamp is now known as zz_scottstamp
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Zeeo> havenwood: nevermind, " <havenwood> Zeeo: Inside the method, the Array object is `self`. " solved it for me, I thought that "self" inside the method was object.class
railsraider has joined #ruby
io_syl has quit [Ping timeout: 244 seconds]
Enape_101 has quit []
petey has joined #ruby
jamesaanderson has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
havenn has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
Aryasam has quit [Ping timeout: 265 seconds]
nari has quit [Ping timeout: 252 seconds]
axl_ has quit [Ping timeout: 260 seconds]
Soda has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
gyre007 has quit [Remote host closed the connection]
gyre007 has joined #ruby
railsraider has quit [Quit: railsraider]
mrsolo has quit [Quit: This computer has gone to sleep]
mrsolo has joined #ruby
axl_ has joined #ruby
Mars__ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
gyre007 has quit [Ping timeout: 252 seconds]
Aryasam has joined #ruby
havenn is now known as havenwoo
havenwoo is now known as havenwood
mrbrdo_ has joined #ruby
<mrbrdo_> anyone knows what's going on with RubyForge? It's been down for me for days now
Mars__ has quit [Ping timeout: 240 seconds]
rezzack has quit [Quit: Leaving.]
iamjarvo has quit [Remote host closed the connection]
luckyruby has joined #ruby
<sevenseacat> whats rubyforge?
jhulten has joined #ruby
<havenwood> mrbrdo_: Google was warning RubyForge was hacked a bit ago then it went offline.
<havenwood> sevenseacat: I think a pre-cursor to RubyGems.org?
<havenwood> I never use it.
<havenwood> mrbrdo_: What do you use RubyForge for?
<mrbrdo_> damn
<mrbrdo_> havenwood: sequel docs were there
<sevenseacat> ah hah
<havenwood> mrbrdo_: ewww, so they were...
<mrbrdo_> :)
radic has quit [Disconnected by services]
radic_ has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
ewnd9 has joined #ruby
tsykoduk is now known as zz_tsykoduk
iliketurtles has joined #ruby
<mrbrdo_> I just noticed there is an issue open to move the docs heh
epichero has joined #ruby
asteros has quit [Quit: asteros]
Aryasam has quit [Ping timeout: 244 seconds]
psyl0n has quit [Quit: psyl0n]
phinfonet has quit []
jhulten has quit [Ping timeout: 240 seconds]
Aryasam has joined #ruby
ner0x has joined #ruby
saarinen has joined #ruby
ixti has quit [Ping timeout: 252 seconds]
Aryasam has quit [Ping timeout: 260 seconds]
rockets has joined #ruby
<rockets> Anybody have a favorite way of getting a system-wide ruby 1.9.3 on RHEL/CentOS systems?
<rockets> System-wide rbenv feels a bit hacky
Aryasam has joined #ruby
<havenwood> rockets: I like ruby-install with chruby. I also saw a recent "community" or something yum package for 1.9, sec looking for it.
<rockets> hmm
aley has quit [Quit: aley]
iliketurtles has quit [Ping timeout: 244 seconds]
sambao21 has joined #ruby
<havenwood> rockets: Collections not Community**
<rockets> havenwood: yeah I was trying to figure out how to enable those
<rockets> havenwood: ahh, these are via RHN
<rockets> That's not going to help me :(
<havenwood> rockets: chruby
<havenwood> :P
<rockets> heh
<havenwood> rockets: Saw latest Fedora 19 is on 2.0.0-p247, and a nice installation of it seemingly .
zastern has quit [Disconnected by services]
rockets is now known as zastern
<zastern> Yeah, well, that's fedora.
<havenwood> yup
hiyosi has quit [Read error: Operation timed out]
<zastern> But yeah presumably RHEL 7 will be Ruby 1.9.3 or 2.x
pu22l3r has joined #ruby
zastern_ has joined #ruby
burgess has quit [Quit: ^zzz]
<havenwood> and then just a few years later CentOS should be updated >.>
<zastern> I wonder how good a job Red Hat does of backporting security updates for ruby to 1.8.7
sambao21 has quit [Ping timeout: 246 seconds]
tjad has quit [Ping timeout: 272 seconds]
wfwfawefawef has quit [Read error: Connection reset by peer]
mr_red has quit [Ping timeout: 244 seconds]
axl_ has left #ruby [#ruby]
sparq_ has quit [Ping timeout: 240 seconds]
<zastern> havenwood: ah one of my coworkers maintains this: http://elruby.websages.com/
<zastern> so that's neat.
<zastern> it's slightly out of date, CVE-wise
<havenwood> zastern: interesting, i'd not seen that
DanKnox_away is now known as DanKnox
nowthatsamatt has joined #ruby
awefawf has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
Lewix has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
mr_red has joined #ruby
Aryasam has joined #ruby
mr_red has quit [Ping timeout: 244 seconds]
Tearan has quit [Quit: Sleepy Badger....]
saarinen has quit [Quit: saarinen]
Tearan has joined #ruby
Tearan has quit [Client Quit]
seoNinjaWarrior has joined #ruby
Tearan has joined #ruby
Aryasam has quit [Ping timeout: 240 seconds]
mr_red has joined #ruby
PhilK has quit [Ping timeout: 245 seconds]
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
chickenf_ has joined #ruby
Tearan has quit [Ping timeout: 265 seconds]
jaimef has quit [Excess Flood]
burlyscudd has quit [Quit: Leaving.]
Tearan has joined #ruby
Tearan has quit [Client Quit]
wfwfawefawef has joined #ruby
yfeldblum has joined #ruby
hogeo has joined #ruby
awefawf has quit [Ping timeout: 252 seconds]
dkamioka has joined #ruby
havenwood has quit []
ananthakumaran has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
mlpinit has joined #ruby
Aryasam has joined #ruby
jaimef has joined #ruby
hiyosi has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
zastern has quit [Read error: Connection reset by peer]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zastern has joined #ruby
Monie has joined #ruby
hiyosi has quit [Ping timeout: 252 seconds]
bassclef has joined #ruby
dkamioka has quit [Ping timeout: 272 seconds]
bassclef is now known as Guest56481
nowthatsamatt has quit [Quit: nowthatsamatt]
nisstyre has quit [Read error: Connection reset by peer]
`Chris`_ has joined #ruby
vipjun has joined #ruby
varfoo has joined #ruby
Aryasam has quit [Ping timeout: 252 seconds]
Aryasam has joined #ruby
vipjun has quit [Client Quit]
`Chris` has quit [Ping timeout: 252 seconds]
bluOxigen has joined #ruby
inimit has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
banisterfiend has joined #ruby
amacgregor has joined #ruby
JonahR has joined #ruby
heidi has quit [Quit: Leaving.]
lmickh has quit [Ping timeout: 244 seconds]
amacgregor_ has quit [Ping timeout: 246 seconds]
lmickh has joined #ruby
timonv has joined #ruby
sambao21 has joined #ruby
randomnick_ has quit [Ping timeout: 240 seconds]
<zastern> fyi
banisterfiend has quit [Ping timeout: 260 seconds]
mary5030 has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
Aryasam has quit [Ping timeout: 265 seconds]
iliketurtles has joined #ruby
yacks has quit [Remote host closed the connection]
Aryasam has joined #ruby
sambao21 has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 260 seconds]
kung has joined #ruby
CreativeEmbassy has joined #ruby
wfwfawefawef has quit [Ping timeout: 244 seconds]
Aryasam has quit [Ping timeout: 265 seconds]
ananthakumaran has joined #ruby
s3itz has joined #ruby
Aryasam has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<jalcine> Anyone got tips for vim and Ruby?
huttan has joined #ruby
newton has quit [Ping timeout: 246 seconds]
Aryasam has quit [Ping timeout: 265 seconds]
<s3itz> What sort of tips?
Aryasam has joined #ruby
dik_dak has joined #ruby
dik_dak has quit [Remote host closed the connection]
jlast has joined #ruby
Tearan has joined #ruby
Raimondii has joined #ruby
Shidash has joined #ruby
Tearan has quit [Client Quit]
huttan has quit [Ping timeout: 244 seconds]
inimit has quit [Quit: inimit]
Foredoomed has quit [Quit: Going offline, see ya! (www.adiirc.com)]
Raimondi has quit [Ping timeout: 272 seconds]
<jalcine> Improving auto-completing, macros that'd speed up coding, and the likes
Tearan has joined #ruby
luckyruby has quit [Remote host closed the connection]
amacgregor_ has joined #ruby
amacgregor_ has quit [Read error: Connection reset by peer]
amacgregor_ has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
mrsolo has joined #ruby
petey_ has joined #ruby
Tearan has quit [Quit: Tearan]
<s3itz> jalcine: chris hunt has some good videos are vim, ruby, and productivity - he keeps his dotfiles on github
<jalcine> s3itz: smooth thanks
mityaz has quit [Quit: See ya!]
ner0x has quit [Quit: Leaving]
<s3itz> vim is a live-recording macro editor, i'd watch some videos showing some tricks
kcombs has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
petey has quit [Ping timeout: 252 seconds]
ewnd9 has quit [Ping timeout: 252 seconds]
nisstyre has joined #ruby
framling has quit [Ping timeout: 264 seconds]
lukec has quit [Quit: lukec]
framling has joined #ruby
iliketurtles has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
platypine has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
freerobby has quit [Client Quit]
Aryasam has quit [Ping timeout: 240 seconds]
phantasm66 has quit [Client Quit]
Aryasam has joined #ruby
<eph3meral> <3 vim
<eph3meral> macros are sweet
<eph3meral> jalcine, sudo apt-get install exuberrant-ctags
<eph3meral> jalcine, :help :tag
dhruvasagar has joined #ruby
iliketurtles has joined #ruby
havenwood has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
diegoviola has joined #ruby
Mars__ has joined #ruby
dkamioka has joined #ruby
hiyosi has joined #ruby
<s3itz> ripper-tags is a new option too
eeriegeek has quit [Quit: Leaving.]
ewnd9 has joined #ruby
iamjarvo has joined #ruby
JonahR has quit [Quit: jonahR]
zeade has quit [Quit: Leaving.]
amacgregor has joined #ruby
taternuts has quit []
ehaliewicz has quit [Remote host closed the connection]
wildroman2 has joined #ruby
amacgregor__ has joined #ruby
ehaliewicz has joined #ruby
krz has joined #ruby
<jalcine> looking at ripper now
baroquebobcat has quit [Quit: baroquebobcat]
IceDragon has quit [Quit: Space~~~]
amacgregor_ has quit [Ping timeout: 246 seconds]
dkamioka has quit [Ping timeout: 272 seconds]
DanKnox is now known as DanKnox_away
wildroman2 has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 252 seconds]
varfoo has quit [Quit: WeeChat 0.4.0]
Foredoomed has joined #ruby
havenwood has quit []
baroquebobcat has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
Aryasam has quit [Ping timeout: 244 seconds]
Andrevan has quit [Ping timeout: 264 seconds]
Aryasam has joined #ruby
wildroman2 has joined #ruby
io_syl has joined #ruby
wildroman2 has quit [Remote host closed the connection]
Mars__ has quit [Remote host closed the connection]
Mars__ has joined #ruby
awkwords has quit [Quit: Leaving.]
Fire-Dragon-DoL has left #ruby [#ruby]
rickruby has joined #ruby
Andrevan has joined #ruby
awkwords has joined #ruby
krz has quit [Ping timeout: 244 seconds]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
pryorda has left #ruby [#ruby]
DanKnox_away is now known as DanKnox
Mars__ has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
hamakn has joined #ruby
vpretzel|away has quit [Quit: Adios!]
hamakn_ has quit [Ping timeout: 252 seconds]
Aryasam has quit [Ping timeout: 246 seconds]
jlast has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
Aryasam has joined #ruby
tomzx_mac has quit [Ping timeout: 240 seconds]
tommyvyo has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has quit [Client Quit]
apeiros has quit [Read error: Connection reset by peer]
awkwords has quit [Quit: Leaving.]
apeiros has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
hakunin has quit []
Aryasam has quit [Ping timeout: 252 seconds]
banjara has joined #ruby
jblack has joined #ruby
varfoo has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
godd2 has quit [Quit: Page closed]
bootcoder has quit [Quit: Konversation terminated!]
bootcoder has joined #ruby
Aryasam has joined #ruby
krz has joined #ruby
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
thepumpkin has quit [Remote host closed the connection]
awarner has joined #ruby
thepumpkin has joined #ruby
Aryasam has quit [Ping timeout: 252 seconds]
mlpinit_ has joined #ruby
awarner has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
awarner has joined #ruby
mlpinit has quit [Read error: Operation timed out]
jkhwan has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
thepumpkin has quit [Ping timeout: 252 seconds]
simoz has joined #ruby
Zeeo has quit [Quit: -]
mlpinit_ has quit [Ping timeout: 240 seconds]
awarner has quit [Ping timeout: 240 seconds]
kung has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
kobain has quit []
dhruvasagar has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
xeno_ has quit [Ping timeout: 250 seconds]
eph3meral has quit [Quit: Leaving]
jlast has joined #ruby
iamjarvo has quit [Remote host closed the connection]
tomasso1 has joined #ruby
aryaching has joined #ruby
tomasso has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
Mars__ has joined #ruby
mercwithamouth has joined #ruby
Macaveli has joined #ruby
chickenf_ has quit [Quit: Textual IRC Client: www.textualapp.com]
fgo has joined #ruby
diegoviola has quit [Ping timeout: 272 seconds]
thesheff17 has quit [Ping timeout: 272 seconds]
artm has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
ananthakumaran has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
Soliah has quit [Quit: Soliah]
Aryasam has joined #ruby
Bry8Star{T2_ has quit [Remote host closed the connection]
thams has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
freerobby has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has joined #ruby
tewmten has quit [Ping timeout: 260 seconds]
jkhwan has quit [Remote host closed the connection]
Catie has quit [Ping timeout: 260 seconds]
jblack has left #ruby [#ruby]
banjara has quit [Quit: Leaving.]
dkamioka has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
banjara has joined #ruby
Aryasam has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
hiyosi has joined #ruby
Catie has joined #ruby
Catie is now known as Guest45190
mercwithamouth has joined #ruby
dkamioka has quit [Ping timeout: 260 seconds]
awarner has joined #ruby
vlad_starkov has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
Aryasam has joined #ruby
tewmten has joined #ruby
malomalo has joined #ruby
simoz has quit [Ping timeout: 260 seconds]
apeiros has joined #ruby
Lewix has joined #ruby
noop has joined #ruby
malomalo has quit [Client Quit]
timonv has quit [Remote host closed the connection]
ehaliewicz has quit [Ping timeout: 265 seconds]
valesk has joined #ruby
timonv has joined #ruby
<valesk> I have a rails question if anyone has a little bit of time
<sevenseacat> #rubyonrails
<valesk> Ahhh <3
awarner has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
banjara has quit [Client Quit]
banjara has joined #ruby
Mars__ has quit [Remote host closed the connection]
lmickh has quit [Quit: lmickh]
Mars__ has joined #ruby
Aryasam has quit [Ping timeout: 252 seconds]
Aryasam has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
wildroman2 has joined #ruby
Mars__ has quit [Ping timeout: 244 seconds]
tagrudev has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
Mars__ has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Raimondii has quit [Ping timeout: 260 seconds]
krz has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
varfoo has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
pu22l3r has quit [Remote host closed the connection]
wildroman2 has quit [Ping timeout: 265 seconds]
Aryasam has joined #ruby
pu22l3r has joined #ruby
thams has quit [Quit: thams]
Jetchisel has joined #ruby
amritanshu_RnD has joined #ruby
Raimondi has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
Soliah has joined #ruby
dhruvasagar has quit [Client Quit]
dhruvasagar has joined #ruby
banjara has quit [Quit: Leaving.]
Aryasam has quit [Ping timeout: 260 seconds]
brennanMKE has quit [Remote host closed the connection]
banjara has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
dhruvasagar has quit [Client Quit]
dhruvasagar has joined #ruby
falood has quit [Remote host closed the connection]
krz has joined #ruby
banjara has quit [Client Quit]
nateberkopec has joined #ruby
dhruvasagar has quit [Client Quit]
banjara has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Client Quit]
dhruvasagar has joined #ruby
newton has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
dhruvasagar has quit [Client Quit]
dhruvasagar has joined #ruby
Macaveli_ has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
hotpancakes has quit [Remote host closed the connection]
banjara has quit [Client Quit]
banjara has joined #ruby
varfoo has joined #ruby
pdimitrov has quit [Ping timeout: 252 seconds]
pr0ggie has quit [Ping timeout: 244 seconds]
h0rrorvacui has quit [Quit: Leaving]
pr0ggie has joined #ruby
pdimitrov has joined #ruby
awarner has joined #ruby
anderse has joined #ruby
graydot has joined #ruby
Log1x_ has left #ruby ["Leaving"]
petey_ has quit [Remote host closed the connection]
petey has joined #ruby
digital-ghost has quit [Remote host closed the connection]
BizarreCake has joined #ruby
awkwords has joined #ruby
falood has joined #ruby
awarner has quit [Ping timeout: 252 seconds]
h0rrorvacui has joined #ruby
mrbrdo_ has quit [Quit: mrbrdo_]
thams has joined #ruby
graydog has joined #ruby
Astralum has joined #ruby
h0rrorvacui has quit [Client Quit]
dhruvasagar has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
d45h has joined #ruby
osvico has joined #ruby
nateberkopec has quit [Quit: Leaving...]
dhruvasagar has joined #ruby
graydot has quit [Ping timeout: 244 seconds]
graydog is now known as graydot
petey has quit [Ping timeout: 265 seconds]
ahawkins has joined #ruby
h0rrorvacui has joined #ruby
kunday has joined #ruby
gyzmodo has joined #ruby
anderse has quit [Quit: anderse]
Bry8Star{T2_ has joined #ruby
justsee has quit [Ping timeout: 244 seconds]
bradhe has quit [Ping timeout: 252 seconds]
GudRiddanz has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
staafl has joined #ruby
GudRiddanz has quit [Client Quit]
pwh has quit []
freerobby has joined #ruby
vlad_sta_ has joined #ruby
banjara has quit [Quit: Leaving.]
vlad_starkov has quit [Ping timeout: 246 seconds]
banjara has joined #ruby
Foredoomed has quit [Quit: Going offline, see ya! (www.adiirc.com)]
Macaveli_ has quit [Remote host closed the connection]
MrThePlague has joined #ruby
freerobby has quit [Ping timeout: 272 seconds]
WillAmes has quit [Remote host closed the connection]
banjara has quit [Client Quit]
MrThePlague has quit [Remote host closed the connection]
relix has joined #ruby
banjara has joined #ruby
Xeago has joined #ruby
banjara has quit [Client Quit]
WillAmes has joined #ruby
banjara has joined #ruby
brennanMKE has joined #ruby
Soliah has quit [Quit: Soliah]
valesk has quit [Ping timeout: 240 seconds]
dkamioka has joined #ruby
hiyosi has joined #ruby
berroa has joined #ruby
chickenf_ has joined #ruby
mrsolo has left #ruby ["Leaving"]
Xeago has quit [Ping timeout: 252 seconds]
Aryasam has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
dkamioka has quit [Ping timeout: 240 seconds]
hiyosi has quit [Ping timeout: 246 seconds]
Mon_Ouie has quit [Ping timeout: 248 seconds]
awkwords has quit [Quit: Leaving.]
braincrash has quit [Ping timeout: 248 seconds]
LMolr has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
robert__ has joined #ruby
robert__ has joined #ruby
robert__ has quit [Changing host]
awarner has joined #ruby
dhruvasagar has joined #ruby
braincrash has joined #ruby
huttan has joined #ruby
robert_ has quit [Ping timeout: 252 seconds]
thams has quit [Quit: thams]
Gooder has joined #ruby
tjad has joined #ruby
DanKnox is now known as DanKnox_away
Bry8Star{T2_ is now known as Bry8Star{T2
pyrac has joined #ruby
newbiehacker has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
awarner has quit [Ping timeout: 240 seconds]
ph8 has quit [Read error: Operation timed out]
tjad_ has joined #ruby
tjad has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
Kneferilis has joined #ruby
sergicles has quit [Quit: sergicles]
XenoWolf has quit [Ping timeout: 240 seconds]
Aryasam has joined #ruby
tjad_ has quit [Read error: Connection reset by peer]
niop has joined #ruby
tjad has joined #ruby
user258467 has joined #ruby
<niop> hi, i'm trying to install brew, but keep getting this error on mac:
kayloos has quit [Remote host closed the connection]
<niop> usr/local/Library/brew.rb:38: uninitialized constant OS (NameError)
eeriegeek has joined #ruby
<niop> just found some unexplored pages on the problem, but if any ideas here, would be glad to hear.
Aryasam has quit [Ping timeout: 260 seconds]
ph8 has joined #ruby
dagobah has joined #ruby
bradhe has joined #ruby
XenoWolf has joined #ruby
Mars__ has quit [Remote host closed the connection]
thepumpkin has joined #ruby
pyrac has quit [Ping timeout: 260 seconds]
newbiehacker has quit [Ping timeout: 246 seconds]
chickenf_ has quit [Quit: Computer has gone to sleep.]
SevenWolf has quit [Quit: Leaving]
threesome has joined #ruby
wchun has quit [Ping timeout: 245 seconds]
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
dnewkerk-keyz has joined #ruby
jblack has joined #ruby
thepumpkin has quit [Ping timeout: 272 seconds]
<jblack> I tried using opencv with ruby earlier. It's a disaster.
<jblack> a half dozen competing gems at 0.0.x and a whole bunch of versioning stuff with opencv going on
Aryasam has joined #ruby
<h0rrorvacui> jblack: do you have rvm?
<jblack> Nope. I don't use rvm.
<h0rrorvacui> jblack: well if you did you could possibly setup a gemset
<jblack> Oh, the gems don't conflict.
dnewkerk-keyz has quit [Remote host closed the connection]
<jblack> there's just a pile of don't work gems out there... afeld-opencv, artoo-opencv, hornetseye-opencv, opencv,opencv-ffi, opencv-ffi-fast, ropencv, ruby-opencv
Nogbit has quit [Quit: Leaving.]
bigkevmcd has quit [Ping timeout: 248 seconds]
<h0rrorvacui> I see.
h_kon has joined #ruby
<jblack> it's mostly opencv's fault, I suspect. It looks like they've been going through heavy api changes.
falood has quit [Read error: Connection reset by peer]
<h0rrorvacui> I took it to mean that the gems were conflicting sorry
frustrum has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
noname001 has joined #ruby
frustrum has quit [Client Quit]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<benlieb> is there a way to programmatically determine if an email address can receive mail?
awarner has joined #ruby
bigkevmcd has joined #ruby
<jblack> only by attempting delivery, and not even then.
falood has joined #ruby
CADBOT has joined #ruby
CADBOT has left #ruby [#ruby]
Clooth has joined #ruby
jxw1024 has quit [Quit: Lost terminal]
<jblack> You can try and be sneaky.. embed a 1 pixel gif for example
Aryasam has quit [Ping timeout: 244 seconds]
<jblack> the could have plenty of false negatives and positives
claymore has joined #ruby
zigomir has joined #ruby
yacks has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
berroa has quit [Remote host closed the connection]
Mars__ has joined #ruby
XenoWolf has quit [Ping timeout: 246 seconds]
forced_request has joined #ruby
relix has joined #ruby
agent_white has quit [Quit: leaving]
_Andres has joined #ruby
apeiros has joined #ruby
awarner has quit [Ping timeout: 265 seconds]
hisle has joined #ruby
DropsOfSerenity has joined #ruby
freerobby has joined #ruby
newbiehacker has joined #ruby
echevemaster has quit [Quit: Leaving]
`Chris` has joined #ruby
`Chris`_ has quit [Read error: Connection reset by peer]
Mars__ has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
Mars__ has joined #ruby
epichero has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
XenoWolf has joined #ruby
freerobby has quit [Ping timeout: 260 seconds]
simoz has joined #ruby
gyzmodo has quit [Ping timeout: 240 seconds]
memex has joined #ruby
einarj has joined #ruby
hisle has quit [Remote host closed the connection]
Mars__ has quit [Ping timeout: 260 seconds]
epichero has joined #ruby
brennanMKE has joined #ruby
Hanmac has joined #ruby
memex has quit [Quit: leaving]
dkamioka has joined #ruby
andikr has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
bradhe has quit [Remote host closed the connection]
relix has joined #ruby
chineduu has joined #ruby
osvico has quit [Ping timeout: 246 seconds]
bradhe has joined #ruby
aganov has joined #ruby
<Hanmac> benzrf: look at this:
<Hanmac> >> self.methods(false)
<eval-in_> Hanmac => [:to_s, :inspect] (https://eval.in/63566)
<Hanmac> >> self.private_methods(false)
<eval-in_> Hanmac => [:public, :private, :include, :using, :define_method] (https://eval.in/63567)
dkamioka has quit [Ping timeout: 240 seconds]
brennanMKE has quit [Ping timeout: 272 seconds]
h0rrorvacui has quit [Quit: Leaving]
mengu has quit [Remote host closed the connection]
kayloos has joined #ruby
mengu has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
SB_gho has joined #ruby
avril14th has joined #ruby
gyre007 has joined #ruby
skaflem has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
LarsSmit has joined #ruby
nari has joined #ruby
relix has joined #ruby
mengu has quit [Ping timeout: 260 seconds]
gyre007 has quit [Ping timeout: 244 seconds]
blo has quit [Ping timeout: 245 seconds]
kaspergrubbe has joined #ruby
blo has joined #ruby
avril14th has quit [Read error: Connection reset by peer]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
awarner has joined #ruby
dmyers has joined #ruby
relix has joined #ruby
Xeago has joined #ruby
io_syl has quit []
jbpros has joined #ruby
lolmaus has joined #ruby
<lolmaus> Is there an IRC channel dedicated to Middleman?
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
amacgregor has joined #ruby
amacgregor__ has quit [Read error: Connection reset by peer]
relix has quit [Client Quit]
awarner has quit [Ping timeout: 265 seconds]
kayloos has quit [Remote host closed the connection]
kayloos has joined #ruby
marr has joined #ruby
falood has quit [Read error: Connection reset by peer]
falood has joined #ruby
falood has quit [Remote host closed the connection]
kayloos has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
mengu has joined #ruby
clmsy has joined #ruby
droo has joined #ruby
bradhe has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
<clmsy> Hello every1 , i would wanted to know the equivalent of the python requests.post function on ruby, but i couldn't find an exact match. im looking for a ruby library that i can send post request with xml
droo has left #ruby ["Leaving"]
banjara has quit [Client Quit]
banjara has joined #ruby
amacgregor_ has joined #ruby
Gooder has quit [Remote host closed the connection]
amacgregor has quit [Ping timeout: 246 seconds]
bradhe has quit [Ping timeout: 244 seconds]
falood has joined #ruby
<clmsy> i think i found what im looking for , something very similar to this : https://github.com/rest-client/rest-client
wallerdev has quit [Quit: wallerdev]
mercwithamouth has quit [Ping timeout: 240 seconds]
amacgregor_ has quit [Ping timeout: 246 seconds]
typicalbender has joined #ruby
nvrch has joined #ruby
ayaz has joined #ruby
mikecmpbll has joined #ruby
typicalbender1 has quit [Ping timeout: 246 seconds]
noop has quit [Ping timeout: 265 seconds]
typicalbender1 has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jibi has joined #ruby
camilasan has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
weszlem has joined #ruby
obs has joined #ruby
timonv has joined #ruby
camilasan has quit [Remote host closed the connection]
typicalbender has quit [Ping timeout: 252 seconds]
bigkevmcd has quit [Quit: Ex-Chat]
camilasan has joined #ruby
hakunin has joined #ruby
ephemerian has joined #ruby
bigkevmcd has joined #ruby
joonty has joined #ruby
jhaals has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
camilasa_ has joined #ruby
timonv has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
camilasan has quit [Ping timeout: 244 seconds]
apeiros has quit [Remote host closed the connection]
timonv has joined #ruby
alup has joined #ruby
Aryasam has joined #ruby
banisterfiend has joined #ruby
chickenf_ has joined #ruby
awarner has joined #ruby
chickenf_ has quit [Client Quit]
freerobby has joined #ruby
chickenf_ has joined #ruby
wildroman2 has joined #ruby
sevenseacat has quit [Quit: Leaving.]
freerobby1 has joined #ruby
benlieb has quit [Quit: benlieb]
mr_red has quit [Quit: Bye :)]
bigkevmcd has quit [Remote host closed the connection]
apeiros has joined #ruby
Aryasam has quit [Ping timeout: 244 seconds]
freerobby has quit [Ping timeout: 265 seconds]
mr_red has joined #ruby
Monie has quit [Ping timeout: 246 seconds]
noop has joined #ruby
weszlem has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SB_gho has quit [Excess Flood]
freerobby1 has quit [Ping timeout: 260 seconds]
awarner has quit [Ping timeout: 260 seconds]
marcgg has quit [Ping timeout: 260 seconds]
skogis has joined #ruby
skogis has quit [Client Quit]
brennanMKE has joined #ruby
marcgg has joined #ruby
dkamioka has joined #ruby
unholycrab has quit [Ping timeout: 246 seconds]
bubbajoness has quit [Ping timeout: 248 seconds]
hiyosi has joined #ruby
weszlem has joined #ruby
tskogberg has joined #ruby
sbos99 has joined #ruby
fbernier has quit [Ping timeout: 245 seconds]
brennanMKE has quit [Ping timeout: 260 seconds]
Mars__ has joined #ruby
fbernier has joined #ruby
dkamioka has quit [Ping timeout: 272 seconds]
hiyosi has quit [Ping timeout: 252 seconds]
lkba has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
varfoo has quit [Read error: Connection reset by peer]
m0no has joined #ruby
TMM has joined #ruby
einarj has quit [Remote host closed the connection]
MrV_ has joined #ruby
pranny has joined #ruby
shaunbaker has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
shaunbak_ has joined #ruby
ItSANgo_ has joined #ruby
Mars__ has quit [Ping timeout: 240 seconds]
olivier_bK has joined #ruby
shaunbaker has quit [Ping timeout: 252 seconds]
popl has joined #ruby
popl has joined #ruby
Kricir has joined #ruby
banjara has quit [Quit: Leaving.]
kunday has quit [Quit: Textual IRC Client: www.textualapp.com]
barratt has joined #ruby
banjara has joined #ruby
varfoo has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
epichero has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
SB2 has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
dnyy has quit [Remote host closed the connection]
Aryasam has joined #ruby
dnyy has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
dhruvasagar has joined #ruby
yrrrep has joined #ruby
gianlucadv has quit [Quit: ZNC - http://znc.sourceforge.net]
timonv has quit [Ping timeout: 240 seconds]
tylersmith has quit [Ping timeout: 272 seconds]
KenDhia has joined #ruby
awarner has joined #ruby
wildroman2 has quit [Remote host closed the connection]
gadgetoid has quit [Ping timeout: 260 seconds]
tylersmith has joined #ruby
bradhe has joined #ruby
epichero has joined #ruby
jibi has quit [Quit: .]
ewnd9 has quit [Remote host closed the connection]
drumusician has joined #ruby
gianlucadv has joined #ruby
einarj has joined #ruby
Aryasam_ has joined #ruby
clmsy has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 265 seconds]
gianlucadv has quit [Client Quit]
mikecmpbll has quit [Ping timeout: 252 seconds]
Aryasam_ has quit [Client Quit]
falood has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 252 seconds]
awarner has quit [Ping timeout: 246 seconds]
KenDhia has quit [Ping timeout: 252 seconds]
thepumpkin has joined #ruby
mengu has quit [Remote host closed the connection]
aa47f8 has joined #ruby
nongeek has joined #ruby
mengu has joined #ruby
bradhe has joined #ruby
awarner has joined #ruby
dnyy has quit [Remote host closed the connection]
nongeek has left #ruby [#ruby]
jokar has joined #ruby
mikecmpbll has joined #ruby
dnyy has joined #ruby
dmyers has quit [Quit: dmyers]
Jetchisel has quit [Ping timeout: 260 seconds]
joonty_ has joined #ruby
joonty_ has quit [Client Quit]
joonty_ has joined #ruby
klaut has joined #ruby
epichero has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
thepumpkin has quit [Ping timeout: 252 seconds]
<jokar> Hello Folks
<juo> sup
graydot has quit [Ping timeout: 240 seconds]
mengu has quit [Ping timeout: 265 seconds]
bradhe has quit [Ping timeout: 272 seconds]
<jokar> What is the primary ruby document web site?
awarner has quit [Ping timeout: 252 seconds]
<jokar> I saw some web sites about it
maveonair has joined #ruby
<bnagy> ruby-doc.org
joonty has quit [Ping timeout: 260 seconds]
<jokar> ruby-doc.org or ruby-docs.com ?
maveonair has quit [Client Quit]
<jokar> bnagy: Thank you. Thus it is official
decoponio has joined #ruby
<juo> I've been using http://kapeli.com/dash lately, its pretty handy
unholycrab has joined #ruby
banjara has quit [Quit: Leaving.]
KenDhia has joined #ruby
banjara has joined #ruby
dnyy has quit [Remote host closed the connection]
thesheff17 has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
mikecmpbll has quit [Ping timeout: 252 seconds]
sputnik13 has joined #ruby
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
joonty_ is now known as joonty
dnyy has joined #ruby
rdark has joined #ruby
heftig has quit [Quit: Quitting]
msuszczy has joined #ruby
mikecmpbll has joined #ruby
unholycrab has quit [Ping timeout: 246 seconds]
msuszczy has quit [Client Quit]
Squarepy has joined #ruby
aryaching has quit []
wildroman2 has joined #ruby
aryaching has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
MrV_ has quit [Quit: MrV_]
mikecmpbll has quit [Read error: Operation timed out]
MrV_ has joined #ruby
Xeago has quit [Remote host closed the connection]
banjara has quit [Client Quit]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
banjara has joined #ruby
freerobby has joined #ruby
nomenkun has joined #ruby
mikecmpbll has joined #ruby
ewnd9 has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
dnyy has quit [Remote host closed the connection]
dnyy has joined #ruby
banjara has quit [Client Quit]
dnyy has quit [Read error: Connection reset by peer]
zipper has joined #ruby
banjara has joined #ruby
dnyy has joined #ruby
bigkevmcd has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
<zipper> Hey nicks o/
freerobby has quit [Ping timeout: 260 seconds]
MrV_ has quit [Ping timeout: 252 seconds]
MrV_ has joined #ruby
<rickruby> is there a preference for how many 2 space indents to enter when a line goes over 80 chars and continues on the next line ?
unholycrab has joined #ruby
brennanMKE has joined #ruby
KenDhia has quit [Ping timeout: 252 seconds]
dkamioka has joined #ruby
<hoelzro> rickruby: for which editro?
<hoelzro> *edito
<hoelzro> *editor
<hoelzro> wow.
* hoelzro stops typing for the day
<rickruby> hoelzro sublime text
<hoelzro> ok, I'm sure someone here can help you then (but not I)
bubbajones has joined #ruby
flops has joined #ruby
hiyosi has joined #ruby
<rickruby> hoelzro I just mean in ruby programming in general, if there's a convention of how many tabs to enter on multilines
<hoelzro> I'm also not a very good person to ask about Ruby conventions =P
ahawkins has quit [Quit: Lost terminal]
<hoelzro> I would personally use a 2 space indent for a continued line
<rickruby> ohh, okay np then :)
<hoelzro> but not always
khushildep has joined #ruby
<hoelzro> ex. for an assignment, I would align the lines with the RHS of the assignment
aryaching has joined #ruby
aryaching has quit [Client Quit]
apeiros has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
<rickruby> how would you align that piece?
<hoelzro> hang on
dkamioka has quit [Ping timeout: 244 seconds]
<hoelzro> rickruby: http://pastebin.com/cEbASuCV
<hoelzro> I see this a lot in Perl
banjara has quit [Quit: Leaving.]
<hoelzro> $really_long_statement \n if $condition;
apeiros has quit [Read error: Operation timed out]
banjara has joined #ruby
<hoelzro> in my not so humble opinion, statement if/unless/etc should never be split up across lines
dnyy has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 260 seconds]
karupanerura is now known as zz_karupanerura
jokar has left #ruby [#ruby]
banjara has quit [Client Quit]
banjara has joined #ruby
dnyy has joined #ruby
nari has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Ping timeout: 240 seconds]
hogeo has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
hogeo has joined #ruby
<rickruby> hoelzro, cool thanks I settled on this way of writing it:
kitak has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<rickruby> looks neater I think, even though adds an extra line for the end
pranny has quit [Quit: Leaving.]
dhruvasagar has joined #ruby
<hoelzro> it's ok; they don't cost anything ;)
<workmad3> hoelzro: they require the bytecode compiler to process extra unnecessary information!!!
ldnunes has joined #ruby
mikecmpbll has joined #ruby
MrV_ has quit [Quit: MrV_]
MrV_ has joined #ruby
thesheff17 has quit [Ping timeout: 246 seconds]
hogeo has quit [Ping timeout: 252 seconds]
tkuchiki has quit [Ping timeout: 260 seconds]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
Astralum has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
adambeynon has joined #ruby
dnyy has quit [Remote host closed the connection]
dnyy has joined #ruby
ewnd9 has quit [Ping timeout: 246 seconds]
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
wildroman2 has quit [Ping timeout: 272 seconds]
srji has joined #ruby
hiall has quit [Quit: hiall]
MrV_ has quit [Quit: MrV_]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
bradhe has joined #ruby
banjara has quit [Quit: Leaving.]
Xeago has joined #ruby
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
eka has joined #ruby
krz has quit [Quit: krz]
includex has joined #ruby
dnyy has quit [Remote host closed the connection]
dnyy has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
Xeago has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
simoz has quit [Ping timeout: 240 seconds]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
ItSANgo_ has quit [Ping timeout: 252 seconds]
h_kon has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 265 seconds]
weszlem has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JohnBat26 has joined #ruby
dhruvasagar has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
wildroman2 has joined #ruby
vlad_starkov has joined #ruby
h_kon_ has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
MrV_ has joined #ruby
dnyy has quit [Remote host closed the connection]
banjara has quit [Client Quit]
banjara has joined #ruby
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
niop has quit [Quit: niop]
noop has quit [Ping timeout: 272 seconds]
platypine has joined #ruby
wildroman2 has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
weszlem has joined #ruby
niop has joined #ruby
fgo has quit [Remote host closed the connection]
platypine has quit [Ping timeout: 265 seconds]
ewnd9 has joined #ruby
TheShaun|AFK is now known as TheShaun
<CalimeroTeknik> how can I cut a very long string into as many 80-character strings as necessary?
vlad_starkov has joined #ruby
banjara has quit [Quit: Leaving.]
tvw has joined #ruby
banjara has joined #ruby
<Hanmac> CalimeroTeknik: str.scan(/.{1,80}/) ?
chickenf_ has quit [Quit: Textual IRC Client: www.textualapp.com]
dnyy has quit [Remote host closed the connection]
<Mon_Ouie> Unless you don't want to split in the middle of a word
dnyy has joined #ruby
freerobby has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
workmad3 has quit [Read error: Operation timed out]
apeiros has joined #ruby
heftig has joined #ruby
noop has joined #ruby
Guest56481 is now known as bassclef
tomii has joined #ruby
bassclef is now known as Guest72529
<CalimeroTeknik> thank you hanmac!
freerobby has quit [Ping timeout: 272 seconds]
camilasa_ has quit [Remote host closed the connection]
camilasan has joined #ruby
LMolr has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
brennanMKE has joined #ruby
vlad_starkov has joined #ruby
banjara has quit [Quit: Leaving.]
yacks has joined #ruby
Xeago has joined #ruby
banjara has joined #ruby
dkamioka has joined #ruby
hiyosi has joined #ruby
camilasan has quit [Ping timeout: 246 seconds]
Lewix has quit [Remote host closed the connection]
dnyy has quit [Remote host closed the connection]
tonni_ has quit [Remote host closed the connection]
tonni has joined #ruby
brennanMKE has quit [Ping timeout: 260 seconds]
dkamioka has quit [Ping timeout: 244 seconds]
dnyy has joined #ruby
hiyosi has quit [Ping timeout: 244 seconds]
Xeago has quit [Ping timeout: 252 seconds]
Monie has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
Guest72529 is now known as fluffheadsr
ewnd9 has quit [Ping timeout: 252 seconds]
jbpros has quit [Quit: jbpros]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
thelamest has quit [Quit: reboot]
mercwithamouth has joined #ruby
thelamest has joined #ruby
sepp2k has joined #ruby
colonolGron has joined #ruby
hiyosi has joined #ruby
dnyy has quit [Remote host closed the connection]
dnyy has joined #ruby
jbpros has joined #ruby
<niop> hi, running "gem pristine rmagick" gives the follow error: gem pristine rmagick
<niop> Restoring gems to pristine condition...
<niop> ERROR: While executing gem ... (Errno::EACCES)
<niop> Permission denied - /Volumes/External/Users/zhixiangzheng/.rvm/gems/ruby-2.0.0-p247/gems/rmagick-2.13.2/build_tarball.rake
Banistergalaxy has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
<niop> any idea why there's an access error?
dhruvasagar has joined #ruby
<_br_> do any of the folders in that path have insufficient permissions ?
<_br_> is the volume remounted as read only?
<niop> haven't installed things as root as far as i know. but new to bash/linux, so maybe earlier sudo command left it in root
zipper is now known as urbanslug
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
<_br_> well, sounds like you already have an answer then
<niop> what's insufficient? read only, the rake file is.
fgo has joined #ruby
jbpros has quit [Client Quit]
camilasan has joined #ruby
<niop> you mean.. it can hang about in root mode? and that means i'll have to reinstall everything from scratch? how i do i know what was rooted and what wasn't. that would be enough to drive one crazy almost.
starchild_ has joined #ruby
fgo has quit [Read error: No route to host]
<_br_> niop: type "mount"
<_br_> niop: Does the mounted filesystem appear as read only?
mercwithamouth has quit [Ping timeout: 244 seconds]
banjara has quit [Quit: Leaving.]
<niop> ok,, i'm using another's mac at the moment, so not so familiar with volumes here and mounts. but i have the output of the command you mentioned...
banjara has joined #ruby
<niop> is there a way to find out what vol it is? like vol?
<niop> 22:44:44-~$ mount
<niop> devfs on /dev (devfs, local, nobrowse)
<niop> map -hosts on /net (autofs, nosuid, automounted, nobrowse)
<niop> map auto_home on /home (autofs, automounted, nobrowse)
<niop> localhost:/5T9QfNBivnKlgc-nb--_CQ on /Volumes/MobileBackups (mtmfs, nosuid, read-only, nobrowse)
<_br_> don't paste output here, Paste >3 lines of text on http://gist.github.com
<niop> ok, that was truncated
brtdv has joined #ruby
brtdv has joined #ruby
<niop> that's a 'secret' one. will try public.
bradhe has joined #ruby
relix has joined #ruby
amacgregor has joined #ruby
sayan has joined #ruby
dnyy has quit [Remote host closed the connection]
dnyy has joined #ruby
<niop> i think rvm is on External volume
<niop> i.e. /dev/disk1s2 on /Volumes/External (hfs, local, journaled)
jcromart_ has joined #ruby
kirun has joined #ruby
hiall has joined #ruby
bradhe has quit [Ping timeout: 244 seconds]
camilasan has quit []
nari has joined #ruby
Soda has joined #ruby
brtdv has quit []
thepumpkin has joined #ruby
ekarlso has quit [Changing host]
ekarlso has joined #ruby
bradhe has joined #ruby
BigBlueBacon has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
Gerente has joined #ruby
mephux has quit [Quit: w0ots...]
Astralum has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
mephux has joined #ruby
jbpros has joined #ruby
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zz_scottstamp is now known as scottstamp
niop has left #ruby [#ruby]
thepumpkin has quit [Ping timeout: 244 seconds]
bradhe has quit [Ping timeout: 252 seconds]
<urbanslug> Bug fix gif :D https://plus.google.com/u/0/
mercwithamouth has joined #ruby
gyre007 has joined #ruby
Banistergalaxy has quit [Ping timeout: 246 seconds]
dnyy has quit [Remote host closed the connection]
danshultz has joined #ruby
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
brtdv has joined #ruby
gyre007 has quit [Ping timeout: 260 seconds]
Banistergalaxy has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
timonv_ has joined #ruby
hello_world has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
<dzan> hi, looked over the api a while and googled but what is the best way to delete a slice in the middle of an array?
Xeago has joined #ruby
drumusician has quit [Ping timeout: 240 seconds]
atno has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
urbanslug is now known as satanicAnalAbuse
Aryasam has joined #ruby
fedalto has joined #ruby
Aryasam has quit [Client Quit]
dnyy has quit [Remote host closed the connection]
Bofu2U has joined #ruby
dnyy has joined #ruby
<dzan> tobiasvl, yes I saw but no way without a block
<dzan> seemed like if there was a .slice and a .drop there would be something I missed
dangerousdave has joined #ruby
<apeiros> tobiasvl: and the accepted answer is horrible :(
<tobiasvl> well you do need to delete the elements based on the indices
bluOxigen has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
<apeiros> dzan: you just want to remove e.g. "from index 5 to index 8"?
kayloos has joined #ruby
<dzan> apeiros, yes
<apeiros> if so: `ary[from, length] = []` or `ary[from..to] = []`
postmodern has quit [Quit: Leaving]
mick_laptop has quit [Disconnected by services]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
wildroman2 has joined #ruby
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
dkamioka has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
timonv_ has quit [Remote host closed the connection]
<dzan> apeiros, thx :)
gadgetoid has joined #ruby
timonv has joined #ruby
dkamioka has quit [Read error: Connection reset by peer]
randomnick_ has joined #ruby
dkamioka has joined #ruby
dnyy has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 240 seconds]
brennanMKE has joined #ruby
timonv_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
wildroman2 has quit [Ping timeout: 265 seconds]
olivier_bK has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
pranny has joined #ruby
dkamioka has quit [Ping timeout: 245 seconds]
hello_world has quit [Ping timeout: 250 seconds]
polaco_zZz is now known as polaco
brennanMKE has quit [Ping timeout: 264 seconds]
_Andres has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
TheShaun is now known as TheShaun|AFK
mixel has joined #ruby
derebos has joined #ruby
tomii has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dnyy has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
Gerente has quit [Quit: gerente]
adambeynon has joined #ruby
Hanmac has quit [Quit: Leaving.]
LMolr has joined #ruby
codenapper has quit [Read error: Connection reset by peer]
dbRenaud has left #ruby ["Quit message"]
codenapper has joined #ruby
freerobby has joined #ruby
codenapper has quit [Read error: Connection reset by peer]
codenapper has joined #ruby
intuxicated has quit [Quit: Leaving]
tobago has joined #ruby
tobago has quit [Changing host]
tobago has joined #ruby
Banistergalaxy has quit [Ping timeout: 244 seconds]
dnyy has quit [Remote host closed the connection]
Hanmac has joined #ruby
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
TMM has quit [Ping timeout: 260 seconds]
bluenemo has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
mupkoo has joined #ruby
psyl0n has joined #ruby
aapzak has quit [Read error: Connection reset by peer]
DanBoy has quit [Remote host closed the connection]
ayaz has quit [Ping timeout: 260 seconds]
nouitfvf has joined #ruby
bradhe has joined #ruby
platzhirsch has joined #ruby
kraljev has joined #ruby
satanicAnalAbuse is now known as urbanslug
kraljev has left #ruby [#ruby]
jkamenik has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
Xykon has quit [Remote host closed the connection]
aapzak has joined #ruby
bradhe has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
IceDragon has joined #ruby
ayaz has joined #ruby
freerobby has quit [Quit: Leaving.]
gskwrk has joined #ruby
pranny has quit [Quit: Leaving.]
dnyy has quit [Remote host closed the connection]
ravster has joined #ruby
dnyy has joined #ruby
allsystemsarego has joined #ruby
banjara has quit [Client Quit]
bradhe has quit [Ping timeout: 265 seconds]
olivier_bK has joined #ruby
<urbanslug> I just want to finish the koans and start making stuff with ruby shoes then move on to rails.
psyl0n has quit [Quit: psyl0n]
banjara has joined #ruby
ewnd9 has joined #ruby
rockets has joined #ruby
vt102 has joined #ruby
jamesaanderson has joined #ruby
Mohan__ is now known as Mohan
rickruby has quit [Remote host closed the connection]
MrV_ has quit [Quit: MrV_]
rickruby has joined #ruby
zastern has quit [Ping timeout: 252 seconds]
drumusician has joined #ruby
<platzhirsch> urbanslug: the GUI toolkit?
_Andres has quit [Read error: Connection reset by peer]
bigkevmcd has joined #ruby
bigkevmcd has quit [Remote host closed the connection]
dnyy has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
dnyy has joined #ruby
banjara has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
psyl0n has joined #ruby
osvico has joined #ruby
dkamioka has joined #ruby
_Andres has joined #ruby
banjara has quit [Client Quit]
<urbanslug> platzhirsch: yeah
<urbanslug> platzhirsch: why do you act/sound surprised?
banjara has joined #ruby
<platzhirsch> urbanslug: never heard if it
ahawkins has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
mark_locklear has joined #ruby
bluOxigen has joined #ruby
<Hanmac> i am prefers wxwidgets as tool kit …
banisterfiend has joined #ruby
gyre007 has joined #ruby
mlpinit has joined #ruby
mlpinit has quit [Remote host closed the connection]
<urbanslug> See this http://shoesrb.com/
mlpinit has joined #ruby
dnyy has quit [Remote host closed the connection]
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
tonni has quit [Read error: Connection reset by peer]
`Chris` has quit []
dnyy has joined #ruby
banjara has joined #ruby
`Chris` has joined #ruby
banjara has quit [Client Quit]
ffranz has joined #ruby
banjara has joined #ruby
srji has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Ping timeout: 244 seconds]
Mon_Ouie has quit [Ping timeout: 252 seconds]
varfoo has quit [Quit: WeeChat 0.4.0]
tonni has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
gyre007 has quit [Ping timeout: 264 seconds]
benzrf has joined #ruby
<benzrf> hey
<benzrf> is there _any_ difference between . and ::?
<apeiros> yes
soba has quit [Ping timeout: 252 seconds]
<benzrf> what is it?
RaCx has quit [Ping timeout: 244 seconds]
<apeiros> . can't be used to lookup constants
<benzrf> ..?
<benzrf> I do not know what that means
banjara has quit [Client Quit]
<tobiasvl> well, the difference is that :: is a namespace resolution operator
<apeiros> Errno::ENOENT # can't do that with .
<tobiasvl> while . lets you access members directly
brennanMKE has joined #ruby
<benzrf> so :: is more like python or js' .
railsraider has joined #ruby
camilasan has joined #ruby
<DouweM> Foo::Bar, Foo::bar, Foo.bar, but no Foo.Bar where Foo and Bar are constants and bar is a method
<apeiros> tobiasvl: :: can be used in every place where . can be used iirc
RaCx has joined #ruby
<benzrf> so constants can act like attributes?
<benzrf> *in other languages
<benzrf> >> class Foo; Bar = 3; end; Foo::bar
<eval-in_> benzrf => undefined method `bar' for Foo:Class (NoMethodError) ... (https://eval.in/63958)
<benzrf> ?
<benzrf> oops
banjara has joined #ruby
<benzrf> >> class Foo; Bar = 3; end; Foo::Bar
<eval-in_> benzrf => 3 (https://eval.in/63959)
<benzrf> huh
psyl0n has quit [Quit: psyl0n]
<apeiros> that's why constants are better than globals
<apeiros> they can be namespaced
<benzrf> constants are lexically scoped, right?
<apeiros> yes
<benzrf> neat
banjara has quit [Client Quit]
<apeiros> but not just
banjara has joined #ruby
<benzrf> hm?
<apeiros> or, well, don't actually know what the proper name is
<Hanmac> when you use ::Constant to access the top-level you only get constants and not methods
<Hanmac> >> ::Array
<eval-in_> Hanmac => Array (https://eval.in/63960)
shay- has joined #ruby
<Hanmac> >> ::Array(2)
<eval-in_> Hanmac => /tmp/execpad-d8d8e6660ac5/source-d8d8e6660ac5:2: syntax error, unexpected '(', expecting keyword_end ... (https://eval.in/63961)
<Hanmac> >> Kernel::Array(2)
<eval-in_> Hanmac => [2] (https://eval.in/63962)
danshultz has quit [Remote host closed the connection]
<apeiros> while the resolution of constants depends on the lexical scope, you can get every constant from anywhere
<benzrf> apeiros: explain?
<benzrf> also, closures over constants work right?
sayan has quit [Ping timeout: 240 seconds]
<apeiros> the lexical scope is a bit like "current working directory" and the constant name like "relative or absolute path"
danshultz has joined #ruby
banjara has quit [Client Quit]
<benzrf> ok
<apeiros> where Foo::Bar is equivalent to a relative path, and ::Foo::Bar to an absolute path
banjara has joined #ruby
<benzrf> what is storing Foo in ::Foo?
<benzrf> main?
<apeiros> ::Foo means "top level Foo"
<benzrf> yes, what is the top level
<apeiros> and top level namespace is Object
<benzrf> what is BasicObject then
danshult_ has joined #ruby
<shay-> hi, I want to write a program where I can run several other programs (bash, ruby, perl, ...) in parallel. This programs will print text and prompts the user for input from time to time. Do you think this can be done easily in ruby? If yes do you have some hints or helpful articles for this or at least some catchwords to search for?
danshultz has quit [Read error: Connection reset by peer]
hashpuppy has joined #ruby
<apeiros> BasicObject has no constants and no lookup
brennanMKE has quit [Ping timeout: 265 seconds]
<benzrf> ok
<apeiros> it's a bit special in that regard
bigkevmcd has joined #ruby
<benzrf> shay-: maybe
<benzrf> shay-: i'm not so knowledgable about ruby, but it seems like a perfectly capable language
<Hanmac> >> BasicObject.instance_methods
<eval-in_> Hanmac => [:==, :equal?, :!, :!=, :instance_eval, :instance_exec, :__send__, :__id__] (https://eval.in/63963)
<apeiros> benzrf: note that unlike paths, ruby will search relative to all constants in Module.nesting
<apeiros> and Module.nesting depends on how you entered the current namespace
dnyy has quit [Remote host closed the connection]
danshult_ has quit [Remote host closed the connection]
cody-- has joined #ruby
<benzrf> argh
<apeiros> e.g.
<apeiros> >> module Foo; module Bar; end; end; {__a__: module Foo::Bar; Module.nesting; end, __b__: module Foo; module Bar; Module.nesting; end; end}
<eval-in_> apeiros => {:__a__=>[Foo::Bar], :__b__=>[Foo::Bar, Foo]} (https://eval.in/63964)
danshultz has joined #ruby
<apeiros> you see, in a it will try to resolve `Baz` as Foo::Bar::Baz and as ::Baz
<benzrf> is there a book or something that explains all of the details of ruby's semantics (like this stuff & metaclasses & Kernel vs main vs Object)
<apeiros> in b it will try `Foo::Bar::Baz`, `Foo::Baz` and `::Baz`
<apeiros> I'd assume matz' and flannagans book does
<benzrf> what is it called/
<apeiros> don't remember. but search by those two and you'll surely find it :)
<benzrf> ok
dnyy has joined #ruby
<apeiros> might be that I misspell flannagan - but google will know ;-)
<benzrf> i got my detailed knowledge of python mostly by asking everything in irc
<benzrf> it was painful
<benzrf> ;_;
srji has joined #ruby
fgo has joined #ruby
* Hanmac hides his constant at the place where the sun does not shine ;P
Astralum has quit [Read error: Connection reset by peer]
<hoelzro> hanmac: in C++?
<hoelzro> ;)
<urbanslug> hahahhahahaha
Astralum has joined #ruby
<urbanslug> I think that the ass gets some sunshine
<urbanslug> I don't really get that statement
stringoO has joined #ruby
<urbanslug> especially with my sagging jeans and the fact that people bask in the sun.
nomenkun has quit [Read error: Connection reset by peer]
<DouweM> the inside of your asshole doesn't though, usually
<DouweM> that's the most explicit thing I've ever said on IRC
<apeiros> unless you're goatse
nomenkun has joined #ruby
danshultz has quit [Ping timeout: 264 seconds]
tomzx_mac has joined #ruby
<IceDragon> hey gentlefolks, is there a comprehensive guide on writing test suites/cases?
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
<Hanmac> hoelzro: http://www.youtube.com/watch?v=c-qNS2x0H2E << where the sun does not shine ;P
<hoelzro> ha
<apeiros> holy f*ck, this is so sweet: https://pbs.twimg.com/media/BGd7KjtCEAEMoHq.jpg
<DouweM> apeiros: omg
<shay-> benzrf: thanks, but any point to start or some code to look at?
<apeiros> "everybody needs a friend"
bigkevmcd has joined #ruby
<benzrf> apeiros: i just got diabetes
<apeiros> sweetness overdose? :)
<benzrf> :I
freerobby has joined #ruby
<benzrf> also wtf is with rubinius X
<Hanmac> benzrf: they are only posers
<hoelzro> has that gone anywhere?
<benzrf> i figured
<benzrf> >To be relevant today, a programming language must provide simple yet powerful facilities for composition and collaboration. A language does not need general immutable state, purely pure functions, or complex type systems, no matter how inferred.
<hoelzro> I stopped listening when I read the "remove everything from Perl" bit
<benzrf> A language does not need general immutable state, purely pure
<benzrf> functions, or complex type systems, no matter how inferred.
<benzrf> come on maaaan
<benzrf> you know you love haskell
* hoelzro <3 haskell
<benzrf> I only wish ruby had sections & currying & composition
<DouweM> yeah, haskell is great
<benzrf> im gettin tired of writing blocks like {|foo| foo.bar baz}
dnyy has quit [Remote host closed the connection]
<benzrf> why cant i say &:bar baz
<DouweM> oh god, this whole thing again
banjara has quit [Client Quit]
<benzrf> :D
kaldrenon has joined #ruby
<benzrf> have you seen LiveScript
<benzrf> it has *attribute sections*
<shay-> is it possible to launch several bash script in parallel from ruby and communicate with them? E.g. asking the user some questions and so on? If you know how, do you have some keywords to google for?
<benzrf> [foo, bar, baz].map (.attr)
dnyy has joined #ruby
`Chris` has quit []
<benzrf> shay-: in python id use subprocess
<benzrf> dunno about ruby
<benzrf> :|
jcromart_ has joined #ruby
lkba has joined #ruby
<benzrf> >Rubinius X is an experiment in modernizing Ruby. Rubinius X can be imagined as a time machine that brings the future to the present, enabling us to write modern programs now.
<benzrf> u srs m8
noop has quit [Ping timeout: 240 seconds]
banjara has joined #ruby
<shay-> benzfr: ok thx but I want to use ruby :)
<benzrf> shaman42: yeah
<benzrf> man why does ruby have such an inferior import system
<benzrf> D:<
freerobby has quit [Ping timeout: 245 seconds]
BizarreCake has quit [Ping timeout: 252 seconds]
vlad_sta_ has joined #ruby
* benzrf swoons
ffranz has quit [Quit: Leaving]
vlad_sta_ has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
bradhe has joined #ruby
ffranz has joined #ruby
wchun has joined #ruby
mmitchell has joined #ruby
wchun has quit [Client Quit]
wchun has joined #ruby
vlad_starkov has joined #ruby
`Chris` has joined #ruby
RORgasm has quit [Remote host closed the connection]
tjad has quit [Ping timeout: 260 seconds]
^Chris^ has joined #ruby
allaire has joined #ruby
MrV has joined #ruby
axl_ has joined #ruby
<lolmaus> Is there an IRC channel dedicated to Middleman?
mercwithamouth has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
dnyy has quit [Remote host closed the connection]
`Chris` has quit [Client Quit]
weszlem has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dnyy has joined #ruby
bradhe has joined #ruby
allaire has quit [Client Quit]
rhunter has joined #ruby
rjhunter has quit [Ping timeout: 260 seconds]
diegoviola has joined #ruby
BizarreCake has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
buscon has joined #ruby
h_kon_ has quit [Remote host closed the connection]
railsraider has quit [Quit: railsraider]
jcromart_ has left #ruby ["Textual IRC Client: www.textualapp.com"]
banjara has quit [Quit: Leaving.]
blaxter has joined #ruby
freezey has joined #ruby
osvico has quit [Ping timeout: 244 seconds]
banjara has joined #ruby
jerius has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
Kneferilis has quit [Quit: Leaving]
nari has quit [Ping timeout: 252 seconds]
theRoUS has quit [Ping timeout: 240 seconds]
dnyy has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
benzrf has quit [Quit: leaving]
fijimunkii has joined #ruby
pwh has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
mupkoo has quit [Remote host closed the connection]
neonlex has joined #ruby
SteveBenner9 has quit [Ping timeout: 268 seconds]
danshultz has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesaanderson has joined #ruby
TheShaun|AFK is now known as TheShaun
geekbri has joined #ruby
geekbri has quit [Client Quit]
ChrisValentinial has joined #ruby
banjara has quit [Quit: Leaving.]
araujo has quit [Read error: Connection reset by peer]
banjara has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
ggordan has joined #ruby
vpretzel has joined #ruby
justsee has joined #ruby
jamblack has joined #ruby
Valentinial has quit [Ping timeout: 260 seconds]
dnyy has quit [Remote host closed the connection]
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
TMM has joined #ruby
lukec has joined #ruby
urbanslug has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
benwoody has joined #ruby
axl_ has quit [Quit: axl_]
nowthatsamatt has joined #ruby
weszlem has joined #ruby
fgo has quit [Remote host closed the connection]
Floydzy has joined #ruby
nateberkopec has joined #ruby
mary5030 has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
Kneferilis has joined #ruby
andrew2123 has quit [Quit: Page closed]
brennanMKE has joined #ruby
iamjarvo has quit [Remote host closed the connection]
burlyscudd has joined #ruby
iamjarvo has joined #ruby
chineduu has quit [Quit: Konversation terminated!]
shay- has left #ruby [#ruby]
bean has joined #ruby
dmyers has joined #ruby
RORgasm has joined #ruby
Astral_ has joined #ruby
dnyy has quit [Remote host closed the connection]
kcombs has joined #ruby
dnyy has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
seoNinjaWarrior has quit [Quit: Computer has gone to sleep.]
Coolhand is now known as niharvey
iamjarvo has quit [Ping timeout: 240 seconds]
Astralum has quit [Ping timeout: 264 seconds]
ehc has joined #ruby
pushpak has joined #ruby
ZoanthusR has joined #ruby
sailias has joined #ruby
duggiefresh has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kaspergrubbe has joined #ruby
justsee has quit [Ping timeout: 248 seconds]
benwoody has quit [Quit: benwoody]
thesheff17 has joined #ruby
SeySayux has quit [Ping timeout: 246 seconds]
drumusician has quit [Ping timeout: 252 seconds]
drag00n has joined #ruby
dnyy has quit [Remote host closed the connection]
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
justsee has joined #ruby
matchaw has quit [Read error: Operation timed out]
Shidash has quit [Quit: Leaving.]
RTG` has quit []
RTG` has joined #ruby
workmad3 has joined #ruby
nari has joined #ruby
SeySayux has joined #ruby
<hiall> Hi, after selecting a hash wanted into a multihash object how do i update that hash and reinsert it? i.e. http://paste2.org/3LCAsf97
matchaw has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benwoody has joined #ruby
<waxjar> you don't have to "reinsert"
<waxjar> >> hash = { :a => 1, :b => 2 }; hash[:a] = 5; hash
<eval-in_> waxjar => {:a=>5, :b=>2} (https://eval.in/64090)
TheShaun is now known as TheShaun|AFK
endash has joined #ruby
peregrine81 has joined #ruby
MrV has quit [Quit: MrV]
<waxjar> you can use hash.find { ... } instead of hash.select { ... }.fist, btw
jlast has joined #ruby
bradhe has joined #ruby
freerobby has joined #ruby
<hiall> waxjar: even to get that hash back into the array?
vlad_sta_ has joined #ruby
MrV has joined #ruby
kevind has joined #ruby
sambao21 has joined #ruby
jamesaanderson has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
dnyy has quit [Remote host closed the connection]
sweeper_ is now known as sweeper
tobago has quit [Remote host closed the connection]
thesheff17_ has joined #ruby
<Hanmac> >> hashes = [{"id"=>"78", "values"=>"fgdsfgdfg"}, {"id"=>"79", "values"=>"dfsgdfg"}]; hash_wanted = hashs.first{ |x| x['id'] == "78" }; hash_wanted['values'] = 'new value'; hashes
<eval-in_> Hanmac => undefined local variable or method `hashs' for main:Object (NameError) ... (https://eval.in/64105)
banjara has quit [Quit: Leaving.]
<Hanmac> >> hashes = [{"id"=>"78", "values"=>"fgdsfgdfg"}, {"id"=>"79", "values"=>"dfsgdfg"}]; hash_wanted = hashes.first{ |x| x['id'] == "78" }; hash_wanted['values'] = 'new value'; hashes
<eval-in_> Hanmac => [{"id"=>"78", "values"=>"new value"}, {"id"=>"79", "values"=>"dfsgdfg"}] (https://eval.in/64108)
banjara has joined #ruby
dnyy has joined #ruby
iaj has joined #ruby
<Hanmac> hiall: see? id did changed
banjara has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 272 seconds]
banjara has joined #ruby
Floydzy_ has joined #ruby
<hiall> o0 wow never even knew that was possible
bradhe has quit [Ping timeout: 248 seconds]
<hiall> thanks a lot hanmac
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
thesheff17 has quit [Remote host closed the connection]
thesheff17_ has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
Floydzy has quit [Ping timeout: 264 seconds]
Floydzy_ is now known as Floydzy
awkwords has joined #ruby
thesheff17 has joined #ruby
bradhe has joined #ruby
RTG` has quit []
RTG` has joined #ruby
RTG` has quit [Client Quit]
diegoviola has quit [Quit: WeeChat 0.4.2]
banjara has quit [Client Quit]
banjara has joined #ruby
Floydzy has quit [Read error: Connection reset by peer]
newbiehacker has quit [Read error: Connection reset by peer]
newbiehacker has joined #ruby
klaut_ has joined #ruby
thams has joined #ruby
endash has quit [Quit: endash]
bradhe has quit [Ping timeout: 272 seconds]
klaut has quit [Ping timeout: 252 seconds]
jamesaanderson has quit [Ping timeout: 244 seconds]
^Chris^ has quit [Quit: Linkinus - http://linkinus.com]
wallerdev has joined #ruby
juan_ has quit [Quit: Leaving]
TMM has quit [Quit: Ex-Chat]
_maes_ has joined #ruby
aryaching has joined #ruby
lfox has joined #ruby
Floydzy has joined #ruby
dnyy has quit [Remote host closed the connection]
^Chris^ has joined #ruby
drag00n has quit [Ping timeout: 248 seconds]
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
banjara has quit [Quit: Leaving.]
jamesaanderson has joined #ruby
banjara has joined #ruby
jamesaanderson has quit [Client Quit]
vpretzel has quit [Remote host closed the connection]
matchaw_ has joined #ruby
vpretzel has joined #ruby
nateberkopec has quit [Quit: Leaving...]
banjara has quit [Client Quit]
banjara has joined #ruby
nari has quit [Ping timeout: 265 seconds]
_maes_ has quit [Client Quit]
matchaw has quit [Ping timeout: 272 seconds]
_maes_ has joined #ruby
andrewcarter has joined #ruby
<andrewcarter> I've written a Rakefile that performs quite a few shell commands, and I'm wondering which method of running those commands I should be using
pwh has quit []
juan_ has joined #ruby
<andrewcarter> I want to provide the option of showing or not showing the output of those commands
<andrewcarter> and I want to be able to evaluate the success of those commands
jhaals has quit [Ping timeout: 252 seconds]
<andrewcarter> any thoughts on that?
nari has joined #ruby
keen___ has quit [Read error: Connection reset by peer]
drumsrgr8forn8 has joined #ruby
banjara has quit [Client Quit]
keen_ has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
banjara has joined #ruby
voodoofish has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
hogeo has joined #ruby
blackmesa has joined #ruby
aa47f8 has quit [Quit: aa47f8]
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brtdv has quit []
<_br_> andrewcarter: you mean running shell commands either with system "" to get a status code or `` to get output ?
iamjarvo has joined #ruby
<andrewcarter> right
<andrewcarter> like `` works fine but
<andrewcarter> I want an option to actually show the stream, which `` doesn't do
wallerdev has joined #ruby
<andrewcarter> system does that with the ability to specify out: and stuff
<workmad3> andrewcarter: sounds like you may want to deal with Popen
<andrewcarter> workmad3: I was looking at that- can I show the stream as it happens with Popen?
benwoody has quit [Quit: benwoody]
jd_ has joined #ruby
dnyy has quit [Remote host closed the connection]
heftig_ has joined #ruby
<jd_> hi, I invite people to come discuss the redesign proposals available for ruby-lang.org on https://github.com/ruby/www.ruby-lang.org/pulls
<jd_> happy discussion ^^
dnyy has joined #ruby
hogeo has quit [Remote host closed the connection]
RTG` has joined #ruby
nari has quit [Ping timeout: 264 seconds]
adjo has joined #ruby
hogeo has joined #ruby
jbpros has quit [Quit: jbpros]
benwoody has joined #ruby
CreativeEmbassy has joined #ruby
neonlex has quit []
heftig has quit [Ping timeout: 244 seconds]
<workmad3> andrewcarter: pretty sure you can grab the stdout pipe with that
<workmad3> andrewcarter: just tested - Open3.popen2("sleep 2 && echo 'hello' && sleep 2 && echo 'done'") {|stdin, stdout, wait_thr| print stdout.gets while wait_thr.alive?}
RaCx has joined #ruby
RTG` has quit [Client Quit]
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
RTG` has joined #ruby
petey has joined #ruby
jbpros has joined #ruby
hogeo has quit [Ping timeout: 252 seconds]
RTG` has quit [Client Quit]
iamjarvo has quit [Remote host closed the connection]
heftig_ is now known as heftig
olivier_bK has quit [Remote host closed the connection]
iamjarvo has joined #ruby
atno has quit [Read error: Connection reset by peer]
klaas has joined #ruby
elux has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
^Chris^ has quit [Quit: Linkinus - http://linkinus.com]
fluffheadsr has quit [Ping timeout: 246 seconds]
banjara has quit [Client Quit]
CreativeEmbassy has quit [Ping timeout: 245 seconds]
banjara has joined #ruby
ggordan has quit [Ping timeout: 245 seconds]
timonv_ has quit [Remote host closed the connection]
voodoofish has joined #ruby
olivier_bK has joined #ruby
timonv has joined #ruby
dnyy has quit [Remote host closed the connection]
jrhe has joined #ruby
lastk has joined #ruby
Speed has joined #ruby
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
dnyy has joined #ruby
jgrevich2 has quit [Quit: ZNC - http://znc.in]
<_br_> Can anyone recommend some good FOSS CRM system ?
Squarepy has quit [Quit: Leaving]
klaut has joined #ruby
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
<lastk> HI guys, im trying run autotest here with minitest using ruby 2.0, but it doesnt work with autotest, when i run ruby test/test_bleh.rb it works but if i do autotest instead it doenst find minitest: https://gist.github.com/lastk/5a029d880fef7a2fcb4d
johnnyfuchs has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
tagrudev has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
nari has joined #ruby
banisterfiend has joined #ruby
ShellFu has joined #ruby
Hanmac has quit [Quit: Leaving.]
brennanMKE has quit [Ping timeout: 272 seconds]
kaldrenon has quit [Read error: Connection reset by peer]
hamakn has quit [Remote host closed the connection]
kaldrenon has joined #ruby
baroquebobcat has joined #ruby
ce_afk is now known as cescalante
klaut_ has quit [Ping timeout: 264 seconds]
hamakn has joined #ruby
psyl0n has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
jrhe has quit [Ping timeout: 264 seconds]
TMM has joined #ruby
vlad_starkov has joined #ruby
nari has quit [Ping timeout: 245 seconds]
stringoO has quit [Read error: Connection reset by peer]
timonv has joined #ruby
geekbri has joined #ruby
jbpros has quit [Quit: jbpros]
vlad_starkov has quit [Read error: Connection reset by peer]
zz_tsykoduk is now known as tsykoduk
dnyy has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 272 seconds]
nari has joined #ruby
banjara has quit [Quit: Leaving.]
Floydzy has quit [Quit: Floydzy]
banjara has joined #ruby
dnyy has joined #ruby
rippa has joined #ruby
Clooth has quit [Quit: Leaving...]
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
heftig has quit [Quit: Quitting]
JonahR has joined #ruby
drumusician has joined #ruby
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
banjara has quit [Client Quit]
banjara has joined #ruby
stringoO has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
jrhe has joined #ruby
vpretzel_ has joined #ruby
gskwrk has quit [Read error: Connection reset by peer]
vpretzel has quit [Disconnected by services]
gskwrk has joined #ruby
vpretzel_ is now known as vpretzel
vlad_starkov has joined #ruby
pixelgremlins has joined #ruby
sbos99 has quit [Quit: Leaving]
psyl0n has quit [Quit: psyl0n]
joost_like_toast has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
dnyy has quit [Remote host closed the connection]
jrhe has quit [Quit: jrhe]
bradhe has joined #ruby
jrhe has joined #ruby
DropsOfSerenity has joined #ruby
thams has quit [Quit: thams]
dnyy has joined #ruby
AntelopeSalad has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
<joost_like_toast> anyone been able to successfully install rails4 on rubinius 2.1?
<joost_like_toast> i kee having troubles with the mime-types gem
AntelopeSalad has joined #ruby
<joost_like_toast> Bundler::GemspecError: Could not read gem at /home/vagrant/.rbenv/versions/rbx-2.1.0/gems/cache/mime-types-1.25.gem. It may be corrupted.
<joost_like_toast> An error occurred while installing mime-types (1.25), and Bundler cannot
<joost_like_toast> continue
yalue has joined #ruby
cescalante is now known as ce_afk
<joost_like_toast> version 2.0 of the gem does work fine on the other hand
banjara has quit [Quit: Leaving.]
ffranz1 has joined #ruby
banjara has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
scottstamp is now known as zz_scottstamp
ffranz has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
nateberkopec has joined #ruby
CaptainJet has joined #ruby
gskwrk has quit [Quit: Lost terminal]
thepumpkin has joined #ruby
vlad_sta_ has joined #ruby
Davey has joined #ruby
baordog has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
mengu has quit []
nari has quit [Ping timeout: 272 seconds]
dnyy has quit [Remote host closed the connection]
dnyy has joined #ruby
jrhe has quit [Read error: Connection reset by peer]
thepumpkin has quit [Ping timeout: 264 seconds]
scottstamp has joined #ruby
jrhe has joined #ruby
zz_scottstamp has quit [Disconnected by services]
LarsSmit has quit [Quit: Leaving.]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
ce_afk is now known as cescalante
jrhe has left #ruby [#ruby]
Lewix has joined #ruby
buscon has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 248 seconds]
VTLob has joined #ruby
<platzhirsch> joost_like_toast: no idea, had my problems with alternative Ruby machines, too
ShellFu is now known as ShellFu_hotbeand
workmad3 has quit [Ping timeout: 264 seconds]
<joost_like_toast> platzhirsch: mhmmm... the annoying thing is the newer version of the gem works fine
banjara has quit [Client Quit]
shredding has joined #ruby
banjara has joined #ruby
<platzhirsch> and you need the old one for legacy dependencies?
<joost_like_toast> platzhirsch rails gem 4.0.1 has it as dependancy
lethjakman has joined #ruby
banjara has quit [Client Quit]
ShellFu_hotbeand is now known as ShellFu
banjara has joined #ruby
<platzhirsch> ah.. darn
banjara has quit [Client Quit]
banjara has joined #ruby
yfeldblum has quit [Remote host closed the connection]
dnyy has quit [Remote host closed the connection]
<joost_like_toast> platzhirsch yup...
benwoody has quit [Quit: benwoody]
Czupa has joined #ruby
mmcdaris has joined #ruby
dnyy has joined #ruby
zarubin has joined #ruby
EddSeabrook has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Read error: Operation timed out]
lethjakm1 has joined #ruby
banjara has quit [Client Quit]
sumark has quit [Remote host closed the connection]
lethjakman has quit [Ping timeout: 245 seconds]
banjara has joined #ruby
zipper has joined #ruby
amritanshu_RnD has quit [Remote host closed the connection]
brennanMKE has joined #ruby
acrussell has joined #ruby
Xeago_ has joined #ruby
weszlem has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sumark has joined #ruby
nari has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
taion809 is now known as zzz_taion809
benwoody has joined #ruby
<joost_like_toast> platzhirsh: worked around it changes the gem file.lock to use the 2.0 version
aganov has quit [Remote host closed the connection]
iamjarvo has joined #ruby
DropsOfSerenity has quit [Quit: Peace.]
Xeago_ has quit [Ping timeout: 245 seconds]
thepumpkin has joined #ruby
divi_ has joined #ruby
saarinen has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
marr has quit [Read error: Connection reset by peer]
weszlem has joined #ruby
banjara has quit [Client Quit]
kaspergrubbe has quit [Remote host closed the connection]
banjara has joined #ruby
aapzak has quit [Ping timeout: 272 seconds]
dnyy has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 264 seconds]
MrV has quit [Quit: MrV]
dnyy has joined #ruby
aapzak has joined #ruby
ahawkins has quit [Quit: leaving]
pwh has joined #ruby
weszlem has quit [Read error: Operation timed out]
vince_prignano has joined #ruby
vlad_starkov has joined #ruby
yfeldblum has joined #ruby
lmickh has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
theRoUS has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
camilasan has quit [Remote host closed the connection]
robert__ is now known as robert_
camilasan has joined #ruby
vlad_sta_ has quit [Ping timeout: 265 seconds]
nwertman has joined #ruby
benwoody has quit [Quit: benwoody]
acrussell1 has joined #ruby
acrussell has quit [Remote host closed the connection]
ner0x has joined #ruby
maiconrcf has joined #ruby
TMM has quit [Quit: Ex-Chat]
zipper has quit [Ping timeout: 240 seconds]
banjara has quit [Client Quit]
banjara has joined #ruby
tkuchiki has quit [Remote host closed the connection]
banjara has quit [Client Quit]
banjara has joined #ruby
tkuchiki has joined #ruby
saarinen has quit [Quit: saarinen]
banjara has quit [Client Quit]
<maiconrcf> anyone use know sinatra? i have troubles for make a struct mvc for it
<platzhirsch> holy #%@&
wallerdev has quit [Quit: wallerdev]
deanrock0__ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
awarner has joined #ruby
camilasan has quit [Ping timeout: 264 seconds]
maiconrcf has quit [Quit: Leaving.]
zipper has joined #ruby
weszlem has joined #ruby
lurraca has joined #ruby
banjara has joined #ruby
Liquid-- has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
dnyy has quit [Remote host closed the connection]
kobain has joined #ruby
banjara has quit [Client Quit]
deanrock0 has joined #ruby
<platzhirsch> oh, I hope maiconrcf didn't take that on him
benwoody has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
dnyy_ has joined #ruby
araujo has quit [Read error: Connection reset by peer]
banjara has joined #ruby
araujo has joined #ruby
mikecmpbll has joined #ruby
bernardo_ has joined #ruby
jamblack has quit [Quit: jamblack]
sepp2k has quit [Quit: Konversation terminated!]
mercwithamouth has quit [Ping timeout: 244 seconds]
benzrf has joined #ruby
<benzrf> so MRI isn't used anymore?
camilasan has joined #ruby
<waxjar> what gave you that idea? o.O
<_br_> benzrf: No, no, its obviously called MRI. Must-Run-Indenfinetly ;)
aspires has joined #ruby
noname001 has quit [Ping timeout: 240 seconds]
<_br_> .oO(matz ruby interpreter is way to boring name.. )
<benzrf> waxjar: well hasnt it been yarv since 1.8
msuszczy has joined #ruby
zigomir has quit [Quit: zigomir]
acrussell1 has quit [Quit: Leaving.]
heftig has joined #ruby
hamakn has joined #ruby
<waxjar> mri?
banjara has quit [Quit: Leaving.]
<waxjar> i dont think so, it's still called mri.
<benzrf> huh
banjara has joined #ruby
ggordan has joined #ruby
<platzhirsch> I don't see MRI disappering soon, the other VMs feel to be way too much bleeding edge
phinfonet has joined #ruby
banjara has quit [Client Quit]
acrussell has joined #ruby
<benzrf> However, starting with version 1.9, Ruby switched to the YARV interpreter, whose performance is comparable to that of PHP.
buscon has joined #ruby
<_br_> benzrf: Joking aside, many people still use it, but its considered old-stable. Please go and play with 2.x
<benzrf> wikipedia
<benzrf> ok
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banjara has joined #ruby
banjara has quit [Client Quit]
<platzhirsch> ah ok, I didn't know that about YARV
banjara has joined #ruby
buscon has quit [Remote host closed the connection]
banjara has quit [Client Quit]
banjara has joined #ruby
<_br_> YARD
dnyy_ has quit [Remote host closed the connection]
mrfoto has joined #ruby
<platzhirsch> no, not YARD :P
banjara has quit [Client Quit]
<waxjar> the dominant and ("official") ruby is still MRI
<_br_> YARV is a interesting piece of software, by koichi sasara (tokyo u)
weszlem has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<_br_> platzhirsch: mistyped.
banjara has joined #ruby
<platzhirsch> though I don't see the connection here, Matz does MRI and he is still the designer of the Ruby language
dnyy has joined #ruby
<waxjar> i think they just borrowed a lot of yarv stuff
<_br_> waxjar: Nonsense.
dnyy has quit [Read error: Connection reset by peer]
banjara has quit [Client Quit]
<waxjar> hm?
dnyy has joined #ruby
banjara has joined #ruby
hamakn has quit [Ping timeout: 264 seconds]
<_br_> < waxjar> the dominant and ("official") ruby is still MRI
<waxjar> isnt it
<platzhirsch> What determinates this? I thought it's Matz who is in charge of this decision
banjara has quit [Client Quit]
benwoody has quit [Quit: benwoody]
<_br_> Yes, he is sort of a benevolent dictator in this sense.
<benzrf> for life?
banjara has joined #ruby
bradhe has joined #ruby
<waxjar> why's that nonsense _br_ ?
<_br_> well, inventors priviledge I guess
Al_ has joined #ruby
<_br_> waxjar: Matz, clearly moved onto Yarv stack when it came out as far as I know
barratt has quit [Quit: Leaving...]
RichardBaker has joined #ruby
zipper has quit [Quit: Lost terminal]
geggam has joined #ruby
<waxjar> oh i see. i just meant MRI as in "standard ruby". isn't that just called MRI?
<platzhirsch> so MRI incoporates YARV stuff?
scottstamp has quit [Quit: ZNC - http://znc.in]
Czupa has quit [Remote host closed the connection]
seoNinjaWarrior has joined #ruby
jaimef has quit [Excess Flood]
scottstamp has joined #ruby
revans has joined #ruby
<platzhirsch> so, bottomline. MRI is still MRI, but technically it has merged all the sweetness of YARV into it
ssvo has joined #ruby
zigomir has joined #ruby
jalcine has quit [Excess Flood]
<_br_> waxjar: MRI ? I know MRI as acronym for Matz Ruby Interpreter. Might have some different meaning now. e.g. KRI Koichi Ruby Interpreter etc.
bradhe has quit [Ping timeout: 245 seconds]
digital-ghost has joined #ruby
<_br_> yeah yarv is merged into mainline
Soda has quit [Read error: Connection reset by peer]
<waxjar> oh well
bradhe has joined #ruby
Papipo has joined #ruby
<Papipo> Hi
awarner has quit [Remote host closed the connection]
<Papipo> Do you know if there is any library to add support for localized fields to ActiveModel/ActiveAttr?
awarner has joined #ruby
theoretick has joined #ruby
lurraca has quit [Quit: This computer has gone to sleep]
nvrch has quit [Quit: nvrch]
drag00n has joined #ruby
<_br_> Ko's rubyconf slides are quite interesting regarding the internals of 2.0 http://www.atdot.net/~ko1/activities/rubyconf.tw2012_ko1.pdf
seoNinjaWarrior has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby
jaimef has joined #ruby
saarinen has joined #ruby
nari has quit [Ping timeout: 265 seconds]
Targen has joined #ruby
deever has joined #ruby
<deever> hi
wallerdev has joined #ruby
dnyy has quit [Remote host closed the connection]
<deever> what are the reasons why stdin.reopen can fail?
brtdv has joined #ruby
ffranz has joined #ruby
ffranz1 has quit [Ping timeout: 264 seconds]
aley has joined #ruby
dnyy has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
<mrfoto> Papipo: try #rubyonrails channel ;)
phinfone_ has joined #ruby
awarner has quit [Ping timeout: 265 seconds]
marr has joined #ruby
<Papipo> I asked there too
RichardBaker has quit [Quit: RichardBaker]
kidoz has joined #ruby
<Papipo> I use ActiveModel in non-rails projects thou :P
phinfonet has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tiglog has joined #ruby
bradhe has joined #ruby
duggiefresh has quit [Remote host closed the connection]
jkhwan has joined #ruby
claymore has quit [Quit: Leaving]
scottstamp is now known as zz_scottstamp
duggiefresh has joined #ruby
lfox has quit [Quit: ZZZzzz…]
<mrfoto> Papipo: oh :P well idk, im not an expert but i did a multilingual site with this https://github.com/globalize/globalize and also found this interesting https://github.com/barsoom/traco
RichardBaker has joined #ruby
RichardBaker has quit [Client Quit]
duggiefresh has quit [Read error: Connection reset by peer]
pel_daniel has joined #ruby
<Papipo> db-less models here
<Papipo> :/
<Papipo> thanks anyway
Voodoofish430 has joined #ruby
<mrfoto> then just do it by hand
<mrfoto> i18n
sepp2k has joined #ruby
a8wj4f934 has joined #ruby
a8wj4f934 is now known as dan_
bradhe has quit [Ping timeout: 272 seconds]
earthquake has joined #ruby
shredding has quit [Quit: shredding]
<dan_> I'm having trouble with adding additional ruby sources. When I add "http://production.s3.rubygems.org" as a source, and /etc/host blank out rubygems.org, I still fail on Errno::ECONNREFUSED: Connection refused - connect(2) (https://rubygems.org/latest_specs.4.8.gz) (it doesn't appear to be trying the mirror)? Anyone understand how this is supposed to work?
adambeynon has joined #ruby
awkwords has quit [Quit: Leaving.]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Mars__ has joined #ruby
banjara has quit [Quit: Leaving.]
IcyDragon has joined #ruby
banjara has joined #ruby
io_syl has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
nomenkun has quit [Ping timeout: 245 seconds]
dnyy has quit [Remote host closed the connection]
dnyy has joined #ruby
banjara has quit [Client Quit]
Liquid-- has quit [Quit: Computer has gone to sleep.]
dnyy has quit [Read error: Connection reset by peer]
banjara has joined #ruby
dnyy has joined #ruby
jbpros has joined #ruby
banjara has quit [Client Quit]
IceDragon has quit [Ping timeout: 272 seconds]
banjara has joined #ruby
timonv has quit [Read error: Connection reset by peer]
jbpros has quit [Client Quit]
banjara has quit [Client Quit]
banjara has joined #ruby
user258467 has quit [Quit: Quitte]
timonv has joined #ruby
seoNinjaWarrior has joined #ruby
pwh has quit []
aspires has quit [Quit: sudo making a sandwich]
banjara has quit [Client Quit]
banjara has joined #ruby
typicalbender has joined #ruby
ehaliewicz has joined #ruby
iamjarvo has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
mrfoto has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
seoNinjaWarrior has quit [Client Quit]
kevind_ has joined #ruby
lfox has joined #ruby
benlieb has joined #ruby
DanKnox_away is now known as DanKnox
aspires has joined #ruby
mrsolo has joined #ruby
nisstyre has quit [Quit: Leaving]
benzrf has left #ruby [#ruby]
cescalante is now known as ce_afk
Tuxist has joined #ruby
deception has joined #ruby
dagobah has quit [Remote host closed the connection]
h0rrorvacui has joined #ruby
banjara has quit [Quit: Leaving.]
sbos99 has joined #ruby
kevind has quit [Ping timeout: 272 seconds]
kevind_ is now known as kevind
banjara has joined #ruby
dnyy has quit [Remote host closed the connection]
mikepack has joined #ruby
pwh has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
zipper has joined #ruby
einarj has quit [Remote host closed the connection]
bradhe has joined #ruby
dnyy has joined #ruby
einarj has joined #ruby
maletor has joined #ruby
Mars__ has quit [Read error: Connection reset by peer]
MrZYX|off is now known as MrZYX
claymore has joined #ruby
SHyx0rmZ has joined #ruby
einarj has quit [Read error: Operation timed out]
SloggerKhan has quit [Quit: Leaving.]
Mars__ has joined #ruby
Mars__ has quit [Remote host closed the connection]
Mars__ has joined #ruby
bluOxigen has joined #ruby
Mars___ has joined #ruby
srji has quit [Ping timeout: 264 seconds]
dan_ has quit []
banjara has quit [Quit: Leaving.]
shaunbak_ has quit []
banjara has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
mark_locklear has quit [Ping timeout: 244 seconds]
Mars__ has quit [Ping timeout: 240 seconds]
d45h has quit [Ping timeout: 252 seconds]
ShellFu has quit [Remote host closed the connection]
zastern has joined #ruby
camilasan has quit []
apeiros has quit [Remote host closed the connection]
RichardBaker has joined #ruby
ShellFu has joined #ruby
apeiros has joined #ruby
dnyy has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
dnyy has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
zastern_ has quit [Ping timeout: 246 seconds]
burlyscudd has quit [Quit: Leaving.]
m0no has quit [Quit: leaving]
whunt has joined #ruby
benlieb has quit [Quit: benlieb]
burlyscudd has joined #ruby
werdnativ has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
Magic has joined #ruby
obs has quit [Quit: ChatZilla 0.9.87 [Iceape 2.7.12/20130119095535]]
Magic has left #ruby [#ruby]
ismlages has quit [Ping timeout: 272 seconds]
kro0ub has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
joost_like_toast has quit [Read error: Operation timed out]
RichardBaker has quit [Ping timeout: 264 seconds]
Dave is now known as Guest76398
Es0teric has joined #ruby
danman has joined #ruby
artm has quit [Read error: Operation timed out]
Underbyte has joined #ruby
Underbyte has joined #ruby
Underbyte has quit [Changing host]
DanBoy has joined #ruby
<kro0ub> Hi, I have some personal data in a JSON file which I need to process according to these specifications: https://github.com/kro0ub/script-spec/blob/master/README.md Could anyone have a look at them and estimate how long it would take for a competent coder to implement, and perhaps give me a rough quote?
banjara has quit [Quit: Leaving.]
<ericwood> kro0ub: this isn't a place for hiring
banjara has joined #ruby
nomenkun has joined #ruby
carraroj has joined #ruby
<ericwood> now, if you wanted to implement it yourself and had questions as to how that would work, that's a different story
banjara has quit [Client Quit]
<kro0ub> nope, i don't know even a bit of ruby.
<kro0ub> sorry for the disturbance.
<typicalbender> http://rubykoans.com/
<ericwood> kro0ub: there's websites where you can have freelancers bid on projects, maybe try there
dnyy has quit [Remote host closed the connection]
<ericwood> forgot the name though
lukec has quit [Quit: lukec]
adjo has quit [Quit: leaving]
saarinen has quit [Quit: saarinen]
banjara has joined #ruby
mrfoto has joined #ruby
alup has quit [Quit: Leaving]
awarner has joined #ruby
dnyy has joined #ruby
weszlem has joined #ruby
danshultz has quit [Remote host closed the connection]
johnnyfuchs has quit [Quit: Leaving.]
danshultz has joined #ruby
rdark has quit [Quit: leaving]
pwh has quit []
jkhwan has quit [Remote host closed the connection]
seoNinjaWarrior has joined #ruby
jkhwan has joined #ruby
zipper has quit [Ping timeout: 272 seconds]
carif has joined #ruby
banjara has quit [Quit: Leaving.]
fedalto has quit [Ping timeout: 252 seconds]
nomenkun has quit [Remote host closed the connection]
Mars___ has quit [Remote host closed the connection]
zipper has joined #ruby
hello_world has joined #ruby
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danshultz has quit [Ping timeout: 265 seconds]
timonv has quit []
peregrine81 has quit []
srji has joined #ruby
Czupa has joined #ruby
Guest76398 has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
PhilK has joined #ruby
ce_afk is now known as cescalante
Mon_Ouie has quit [Ping timeout: 264 seconds]
benlieb has joined #ruby
RichardBaker has joined #ruby
dnyy has quit [Remote host closed the connection]
dnyy has joined #ruby
JRizzle has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
brtdv has quit []
ffranz has quit [Quit: Leaving]
adambeynon has joined #ruby
iliketurtles has joined #ruby
Czupa has quit [Quit: Wychodzi]
nari has joined #ruby
zastern has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
Spami has joined #ruby
ffranz has joined #ruby
Papipo has quit [Quit: Leaving.]
srji has quit [Ping timeout: 260 seconds]
iamjarvo has joined #ruby
klaut has quit [Remote host closed the connection]
fedalto has joined #ruby
apeiros has joined #ruby
mrfoto has quit []
havenwood has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
hello_world_ has joined #ruby
andikr has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
benwoody has joined #ruby
dnyy has quit [Remote host closed the connection]
seoNinjaWarrior has quit [Quit: Computer has gone to sleep.]
awkwords has joined #ruby
hello_world has quit [Ping timeout: 250 seconds]
iamjarvo has quit [Ping timeout: 240 seconds]
pwh has joined #ruby
<nhmood> ericwood: elance and odesk are two, not sure how good they are
dnyy has joined #ruby
RichardBaker has left #ruby [#ruby]
apeiros has quit [Ping timeout: 272 seconds]
rezzack has joined #ruby
rezzack has quit [Changing host]
rezzack has joined #ruby
MrZYX is now known as MrZYX|off
khushildep has quit [Ping timeout: 246 seconds]
typicalbender has quit [Quit: Leaving.]
iliketurtles has quit [Quit: zzzzz…..]
jhaals has joined #ruby
maroloccio has joined #ruby
<shevy> am I the only one who would love to see alternative names possible on rubygem?
MrZYX|off is now known as MrZYX
rezzack has quit [Client Quit]
<shevy> there is a gem called "chemistry" but it is inactive, it blocks other names though
apeiros has joined #ruby
rezzack has joined #ruby
zipper has quit [Quit: leaving]
altivec has joined #ruby
seoNinjaWarrior has joined #ruby
c0rn has joined #ruby
olivier_bK has quit [Ping timeout: 252 seconds]
awarner has quit [Remote host closed the connection]
hiall has quit [Ping timeout: 244 seconds]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
awarner has joined #ruby
zeade has joined #ruby
danshultz has joined #ruby
Monie has joined #ruby
blaxter has quit [Read error: Connection reset by peer]
blaxter has joined #ruby
dnyy has quit [Remote host closed the connection]
peregrine81 has joined #ruby
Davey has joined #ruby
apeiros_ has joined #ruby
seoNinjaWarrior has quit [Quit: Computer has gone to sleep.]
dnyy has joined #ruby
lukec has joined #ruby
awarner has quit [Ping timeout: 248 seconds]
apeiros has quit [Ping timeout: 240 seconds]
whunt has quit [Ping timeout: 245 seconds]
apeiros_ has quit [Remote host closed the connection]
thams has joined #ruby
sambao21 has joined #ruby
axl_ has joined #ruby
tsykoduk is now known as zz_tsykoduk
duggiefresh has joined #ruby
RichardBaker has joined #ruby
yacks has quit [Quit: Leaving]
ph8 has quit [Ping timeout: 272 seconds]
whunt has joined #ruby
robonerd has quit [Ping timeout: 260 seconds]
benlieb has quit [Quit: benlieb]
heidi has joined #ruby
stringo0 has joined #ruby
Dave has joined #ruby
typicalbender has joined #ruby
Dave is now known as Guest22926
jibi has joined #ruby
klaut has joined #ruby
hello_world_ has quit [Ping timeout: 250 seconds]
klaut has quit [Client Quit]
stringoO has quit [Ping timeout: 265 seconds]
stringo0 is now known as stringoO
altivec has quit [Quit: Textual IRC Client: www.textualapp.com]
bernardo_ has quit [Quit: Page closed]
dangerousdave has quit [Ping timeout: 245 seconds]
awarner has joined #ruby
theRoUS has quit [Read error: Operation timed out]
SHyx0rmZ has quit [Ping timeout: 272 seconds]
banjara has joined #ruby
petey has quit [Remote host closed the connection]
ph8 has joined #ruby
petey has joined #ruby
aagdbl has joined #ruby
tylersmith has joined #ruby
asteros has joined #ruby
tylersmith has quit [Remote host closed the connection]
johnnyfuchs has joined #ruby
artm has joined #ruby
tylersmith has joined #ruby
whunt has quit [Quit: Textual IRC Client: www.textualapp.com]
LMolr has quit [Ping timeout: 252 seconds]
petey has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
diegoviola has joined #ruby
dnyy has quit [Remote host closed the connection]
Guest22926 has quit [Read error: Connection reset by peer]
blaxter has quit [Quit: KTHXBYE]
vlad_starkov has quit [Remote host closed the connection]
dangerousdave has joined #ruby
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
havenwood has quit [Remote host closed the connection]
Elhu has joined #ruby
^Chris^ has joined #ruby
includex has quit [Quit: Textual IRC Client: www.textualapp.com]
banisterfiend has joined #ruby
Mitchellvanw has joined #ruby
blaxter has joined #ruby
apeiros has joined #ruby
miza has joined #ruby
`mr`jones has joined #ruby
<`mr`jones> hi folks. i have a question about enumerable and arrays in ruby
sambao21 has joined #ruby
<`mr`jones> is it a bad idea to try to modify an array while iterating over it with an each?
iliketurtles has joined #ruby
vlad_starkov has joined #ruby
<MrZYX> it tends to indicate that you use the wrong method for your purpose
<`mr`jones> i.e. if i delete elements from the array while looping over it.
<MrZYX> have a look at #reject
Mars__ has joined #ruby
<`mr`jones> that makes sense. i'll look at it.
<apeiros> `mr`jones: what MrZYX said, and "yes, it generally is a bad idea"
dangerousdave has quit [Read error: Connection reset by peer]
<apeiros> (manually modifying the array, that is - doing it by using things like reject! etc. is fine)
<`mr`jones> question - what about modifying a hash which happens to be in the array? if i delete a key from a hash then the array is still all right?
dangerousdave has joined #ruby
<MrZYX> sure
<apeiros> `mr`jones: that's not modifying the array
<`mr`jones> sweet. makes sense!
<MrZYX> the array just stores a reference to the hash object
<MrZYX> it won't even notice you modified the hash
carraroj has quit [Read error: Operation timed out]
banjara has quit [Quit: Leaving.]
ewnd9 has quit [Read error: Connection reset by peer]
<`mr`jones> it worked!!!!!!!
ewnd9_ has joined #ruby
<miza> hi, i have a general question
kevinykchan has quit [Quit: Computer has gone to sleep.]
RichardBaker has quit [Quit: RichardBaker]
banjara has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
asteros has quit [Quit: asteros]
<miza> do you have to propose any good gem, that is a wrapper of a public api
<`mr`jones> i am pretty sure PHP makes a copy of the array before iterating over it. maybe it helps keep it noob-safe
<miza> `mr`jones reject returns new array
banjara has quit [Client Quit]
dnyy has quit [Remote host closed the connection]
<miza> if you want to do it in the same array use rejec!
<miza> reject!
dnyy has joined #ruby
banjara has joined #ruby
bricker`work has quit [Ping timeout: 245 seconds]
Liquid-- has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
<MrZYX> `mr`jones: you might want to educate yourself about shallow / flat and deep copies
dnyy has joined #ruby
<MrZYX> might help you to understand the whole topic of when you need to copy what a bit better
banjara has quit [Client Quit]
<miza> there are good documentation for this stuff
<miza> `mr`jones
freezey has quit [Remote host closed the connection]
nari has quit [Ping timeout: 240 seconds]
<MrZYX> am I the only one who can't stand the apidock format?
banjara has joined #ruby
freezey has joined #ruby
<miza> i like it more
<`mr`jones> MrZYX miza I'm in the same boat as this guy was http://thingsaaronmade.com/blog/ruby-shallow-copy-surprise.html
theRoUS has joined #ruby
<miza> but is not updated for rails4 and ruby2
<`mr`jones> i don't like apidock much either
banjara has quit [Client Quit]
axl_ has quit [Quit: axl_]
bricker`work has joined #ruby
sepp2k has quit [Ping timeout: 252 seconds]
banjara has joined #ruby
<miza> MrZYX use what you like :p
sepp2k has joined #ruby
<MrZYX> I do (yard btw ;P)
jaiiii has joined #ruby
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
flops has quit [Quit: leaving]
banjara has quit [Client Quit]
petey has joined #ruby
banjara has joined #ruby
nobitanobi has joined #ruby
banjara has quit [Client Quit]
<nobitanobi> I am using MiniMagick, and when trying to open an IMG which has a https protocol, I am getting "SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed" - Any thoughts on how to bypass this?
<miza> anyone has proposal for my previus question?
<miza> I want to write a ruby wrapper for an api and i want to read some wellwritten wrappers to see some good stuff that i should follow
freezey has quit [Remote host closed the connection]
nongeek has joined #ruby
hiyosi has quit [Ping timeout: 246 seconds]
zz_tsykoduk is now known as tsykoduk
banjara has joined #ruby
<apeiros> MrZYX: to be honest, I haven't yet seen an html documentation format I *really* liked.
freezey has joined #ruby
<nongeek> Hello Ruby folks
<nongeek> Is ruby die?
<nobitanobi> nongeek, yup.
yacks has joined #ruby
<DouweM> indeed, ruby is die
<nongeek> My mean is that we have node.js and angular
<nobitanobi> miza, I've based one of mine on this one: https://github.com/nvd/yelpster
<nobitanobi> nongeek, are bananas dead?
<nobitanobi> cuz we have apples and pears...
<nobitanobi> :P
divi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has quit [Read error: Connection reset by peer]
BigBlueBacon has quit [Ping timeout: 246 seconds]
<nongeek> In your idea future is for Javascript?
weszlem has quit []
<nongeek> nobitanobi: why?
danshultz has joined #ruby
<nobitanobi> why what?
<nongeek> why you say me yes
bricker`1ork has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
<nobitanobi> nongeek, I was being sarcastic. Obviously is not dead.
Liquid-- has quit [Ping timeout: 272 seconds]
dnyy has quit [Remote host closed the connection]
<nongeek> some Node.js users told me that Ruby will be die
vlad_sta_ has joined #ruby
freezey has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #ruby
dnyy has joined #ruby
^Chris^ has quit [Read error: Connection reset by peer]
<nongeek> I hope it was joking
aspires has quit [Quit: sudo making a sandwich]
bricker`work has quit [Ping timeout: 265 seconds]
<MrZYX> okay here's a ruby user and I'm telling you now that node.js will die
<DouweM> apples and oranges. different languages, different use cases, different strengths, differen weaknesses
^Chris^ has joined #ruby
ffranz has quit [Ping timeout: 245 seconds]
<MrZYX> just because I can
<nobitanobi> nongeek, some people like talking too much
bricker`1ork is now known as bricker`work
<nobitanobi> nongeek, do you like programming in Ruby?
<shevy> DouweM but you say that everything is relative!
<nongeek> I'm a beginner and I want to learn it
barratt has joined #ruby
weszlem has joined #ruby
<nobitanobi> nongeek, tryruby.org go for it. Make Ruby survive :)
<nongeek> I'm confused
<shevy> nongeek languages rarely die. in most cases they just have less and less people use it
vlad_starkov has quit [Ping timeout: 264 seconds]
<nongeek> shevy: My big concern is position
<nobitanobi> position on what?
<shevy> nongeek in general there is a need for certain tasks that are fulfilled by scripting languages. i.e. what perl started is still useful today and ruby is a better language than perl
jkline has joined #ruby
<nongeek> job
<nobitanobi> industry?
<MrZYX> nongeek: if you want to be a good programmer learn programming, not a language
zarubin has quit [Ping timeout: 245 seconds]
SHyx0rmZ has joined #ruby
<nobitanobi> +1
<shevy> +1 I always told people to go into COBOL
<terrellt> If you pick a language to learn for the industry you've failed before you've begun.
<nongeek> Agree but I want to select ruby
<nobitanobi> nongeek, good choice
<MrZYX> learn a few, ideally really different, languages now and you'll never have to worry
awkwords has quit [Read error: Operation timed out]
<nongeek> MrZYX: I don't like to waste time
<MrZYX> you won't
<shevy> ;)
<nobitanobi> nongeek, learn Prolog too
<shevy> learn all languages that are no longer used today
<shevy> we need more fossil coders
<nobitanobi> ha
<shevy> dinosaur hackers
<nongeek> shevy: Why?
<MrZYX> shevy: name a few :P
asteros has joined #ruby
<shevy> nongeek because then you realize that there are many programming languages that suck
<apeiros> for computer archeology
awkwords has joined #ruby
<nongeek> MrZYX: I'm afraid if I learn Ruby job positions died :(
<shevy> ack
<shevy> go java man
<ShellFu> you still have the constructs you learned from ruby and can learn other languages
<MrZYX> ^
<MrZYX> that's what I mean when I say learn programming
<nongeek> shevy: Why java?
<typicalbender> as a software developer I dont feel i get paid for the language I know, I get paid because im good at solving problems and applying technology
<MrZYX> stop worrying and start with ruby, you'll understand what we mean with it
<nongeek> Thank you
<nobitanobi> btw...any Ruby 2.0 books?
<nobitanobi> that you guys would recommend
<shevy> nongeek you said you need a language where there are job positions, so java it is: http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
<MrZYX> I think cobol has quite a few job positions too
<shevy> nongeek learn cobol too
<MrZYX> might even get fortran ones
<shevy> nongeek learn fortran as well
<shevy> nongeek and ruby
c0rn has quit [Quit: Computer has gone to sleep.]
awarner has quit [Remote host closed the connection]
<nobitanobi> prolog, prolog.
<shevy> in school we had to learn turbopascal for one year :(
havenwood has joined #ruby
<nongeek> shevy: Is it a trusted site?
<nobitanobi> do a sudoku solver in prolog.
<shevy> nongeek I dont trust it but you can visit it
awarner has joined #ruby
jkhwan has joined #ruby
<shevy> prolog is kinda cool from a neutral point of view
<nongeek> my mean was about the contents
<shevy> nongeek no it's unsafe, you could get AIDS, dont visit
<shevy> totally viral content
<nongeek> :)
burlyscudd has quit [Ping timeout: 272 seconds]
<ShellFu> Full blown? Not even the HIV?
<ShellFu> brutal
<shevy> the whole www is unsafe
banjara has quit [Quit: Leaving.]
<nongeek> shevy: Are you still on Ruby?
<ShellFu> not pr0n though right shevy?
Zesty has joined #ruby
lethjakm1 is now known as lethjakman
<nobitanobi> I don't want to smell a troll, but...
<shevy> nongeek sure, since about 10 years
<shevy> ShellFu dunno. I can't find pr0n on the www
banjara has joined #ruby
<nongeek> Thus you know somethings about ruby that i don't know
<shevy> nongeek but I would never pick a main language because of "industry need"
<ShellFu> lol probably for the best
<shevy> nongeek how do you infer that? we don't have the same use case
Xeago has quit [Remote host closed the connection]
<nongeek> shevy: Honestly, is ruby live for future?
miza has left #ruby [#ruby]
awarner_ has joined #ruby
dnyy has quit [Remote host closed the connection]
tvw has joined #ruby
dnyy has joined #ruby
<ShellFu> nongeek. a loop is a loop a variable a variable. learn programming constructs and you may apply them to any language. A lot of compiled coders prototype in a scripting language then go implement that in C or whatever
aagdbl has quit [Quit: This computer has gone to sleep]
dnyy has quit [Read error: Connection reset by peer]
awarner has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
<nongeek> ShellFu: Thank you. Can I send Pm?
danshultz has quit [Remote host closed the connection]
mark_locklear has joined #ruby
danshultz has joined #ruby
ffranz has joined #ruby
<ShellFu> I dunno. Can ya :) My point is there isnt any tutorial or ide or mysweetVIMplugin to make good code
aagdbl has joined #ruby
<ShellFu> YOU have to make good code. Or make bad code and ocme here and get torn a new one until you write good code
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
<ShellFu> My first few were pretty rough, but these guys happily beat me into submission. My code now benefits from said beatings
tiglog has quit [Quit: Leaving]
<shevy> nongeek I don't get whether you really want to learn something or not. I told you that scripting languages fit into a niche and as long as that niche persists, so will scripting languages. why do you think this need goes away in the future? there is no reason I can think of.
Elhu has quit [Quit: Computer has gone to sleep.]
alvaro_o has joined #ruby
banjara has quit [Quit: Leaving.]
<h0rrorvacui> nongeek: you can do what node.js does in ruby the only real plus to node.js is that most the whole framework is built around non-blocking where in ruby eventmachine you have to watch out for a block.
<nobitanobi> What am I doing wrong here: objects = [ {:area => -30}, {:area => 20}, {:area => 30}] -- objects.min_by { |el| (el[:area] if el[:area] > 0) } - Basically I want to get the object which area is minimum, while area is > 0
<h0rrorvacui> so in that regard node is just the event model we already have in many other languages
kro0ub has left #ruby [#ruby]
<apeiros> nongeek: min_by with an `if`
banjara has joined #ruby
<apeiros> nongeek: that `if` will return nil, which is incomparable
<nobitanobi> apeiros, that was for me I guess :P
Zesty has quit [Quit: Linkinus - http://linkinus.com]
<apeiros> gah
<apeiros> yes, both nobitanobi
<nobitanobi> ouch apeiros I see :/
<nongeek> Thank you for useful guidance
<nobitanobi> so...If I want to have that condition, what would you suggest?
<apeiros> nongeek: your block has to *always* return a value which is comparable with other returned values
<apeiros> nobitanobi: it's not obvious what you want to happen when the condition is false
dmyers has quit [Quit: dmyers]
<nongeek> I hope ruby developed time by time
nari has joined #ruby
<nobitanobi> just not take into account that element
<apeiros> damit! I wrote nongeek again :(
robonerd has joined #ruby
<nobitanobi> oh... apeiros I see.
<nobitanobi> so I should filter my array first
<nobitanobi> ?
<apeiros> nobitanobi: that's one way, yes
nongeek has left #ruby [#ruby]
<nobitanobi> ok
<apeiros> nobitanobi: or use e.g. Float::INFINITY
dhruvasagar has quit [Ping timeout: 245 seconds]
kayloos has quit [Remote host closed the connection]
banjara has quit [Client Quit]
<nobitanobi> uh shit
<apeiros> since that's bigger than all other values and won't be minimal
benlieb has joined #ruby
benlieb has quit [Client Quit]
jaiiii was kicked from #ruby by apeiros [no pm spam]
jaiiii has joined #ruby
<nobitanobi> apeiros, I don't follow you now. How would I use that?
kayloos has joined #ruby
jaiiii was kicked from #ruby by apeiros [no pm spam]
banjara has joined #ruby
weems is now known as squeems
divi has joined #ruby
<apeiros> objects.min_by { |el| el[:area] > 0 ? el[:area] : Float::INFINITY }
saarinen has joined #ruby
saarinen has quit [Client Quit]
<nobitanobi> ha clever
<apeiros> in my `sorting` gem, I also have Sorting::Bigger, which always compares as the bigger value
<apeiros> with that, it'd be: objects.min_by { |el| el[:area] > 0 ? el[:area] : Sorting::Bigger }
<nobitanobi> apeiros, I will try to do the "filtering" so I can improve on that
<nobitanobi> yes. Thanks
<apeiros> nobitanobi: IMO the filtering is the nicer way anyway
dhruvasagar has joined #ruby
<nobitanobi> ok, I will try to do that.
pixelgremlins has quit [Ping timeout: 240 seconds]
<nobitanobi> thanks for your help
<apeiros> object.select(&:has_area?).min_by(&:area)
dnyy has quit [Remote host closed the connection]
Senjai`work has joined #ruby
<apeiros> your `el[:area]` implies you're using plain hashes - IMO you should look into using a proper class instead - much more readable code.
skaflem has quit [Quit: This computer has gone to sleep]
dnyy has joined #ruby
Senjai`work has quit [Changing host]
Senjai`work has joined #ruby
kayloos has quit [Ping timeout: 264 seconds]
Elhu has joined #ruby
yfeldblum has joined #ruby
saarinen has joined #ruby
jalcine_ has joined #ruby
jalcine_ has quit [Excess Flood]
<nobitanobi> apeiros, actually I am using objects
decoponio has quit [Quit: Leaving...]
<nobitanobi> I mean, object from a specific class
<apeiros> hashes are objects :-p
<nobitanobi> that is not Hash
<nobitanobi> :P
<apeiros> heh
<nobitanobi> yeah hehehe
<platzhirsch> I have two Ruby scripts, both quite similar, accessing the database, iterating objects. The one has a memory leak, the other one not. Now I am adjusting the one script to the one without the leak in a successive fashion... I am really tense... and feeling more and more dense without a clue what its origin is
<nobitanobi> I wanted to make it easy to read
<apeiros> nobitanobi: great opportunity to add readable methods then :)
<nobitanobi> apeiros, actually
<nobitanobi> I should have written the object itself
<nobitanobi> :P
<nobitanobi> it looks like this
<nobitanobi> ( this is for a max I have too: max_area = all.max_by { |el| (el.area) }.area)
<nobitanobi> but I was testing in the IRB console, and I created hashes
<nobitanobi> :D
aspires has joined #ruby
DrShoggoth has joined #ruby
<apeiros> binding.pry -> try with the real data ;-)
<nobitanobi> apeiros, anyway. I chained select{|h| h[:area] > 0}
alexherbo2 has quit [Ping timeout: 265 seconds]
<nobitanobi> thanks for your help. always useful
<nobitanobi> I was doubting between select and reject
jd_ has left #ruby ["Leaving"]
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
alexherbo2 has joined #ruby
<platzhirsch> omg
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
<DouweM> platzhirsch: everything exploded?
<platzhirsch> double u, tee, eff
<shevy> hmm
<shevy> is there a general guideline when to favour .select over .reject? it seems to me as if .select would be the more natural choice
<platzhirsch> DouweM: seems I have found to plug the memory leak accidentally, through a typo
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
<DouweM> platzhirsch: care to share?
<platzhirsch> shevy: guess it solely depends on your conditional statement, what you find more natural to read
<havenwood> shevy: same guideline as when to use #odd? or #even?
<DouweM> shevy: depends on the predicate
DrShoggoth has quit [Remote host closed the connection]
noop has joined #ruby
<havenwood> aye, whatever reads best
<nobitanobi> shevy, I like select better :P
<apeiros> shevy: my rule is: don't negate
yfeldblum has quit [Remote host closed the connection]
newbiehacker has quit [Read error: Connection reset by peer]
<nobitanobi> it comes more naturally to me
<platzhirsch> DouweM: it's a MongoDB, Mongoid issue. I have three entities. Repository has Snapshots embedded. A snapshot has many metadata records: Repository.all.first.snapshots.first.metadata_records.each_with_index (LEAK), Repository.all.first.snapshots.first.metadata_records.all.each_with_index (NO LEAK)
newbiehacker has joined #ruby
<DouweM> say you have an array of arrays. I'd prefer array.reject(&:empty?) over array.select(:any?)
<apeiros> if I have `foo.select { |x| !x.bar }`, then IMO it should rather be `foo.rejet { |x| x.bar }`
<apeiros> *reject
<shevy> DouweM hmm or :non_empty?
<nobitanobi> apeiros, +1
<platzhirsch> the only difference is the additional all, and I guess it changes the query to get all metadata records instead of the ones selected through the relationship
<DouweM> apeiros: definitely
<h0rrorvacui> precisely
jibi has quit [Quit: .]
<DouweM> platzhirsch: huh
<DouweM> platzhirsch: I'd think they'd do the same
<shevy> h0rrorvacui you have a weird nick!
<DouweM> shevy: non_empty is another option, but then you'd have the negation apeiros mentions
DrShoggoth has joined #ruby
<platzhirsch> DouweM: I can replace the no leak example with MetadataRecord.all.each_with_index and it does not leak, too
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nobitanobi> guys, any recommended books for Ruby 2.0?
dnyy has quit [Remote host closed the connection]
<nobitanobi> I enjoyed Rubyist 1.0
<nobitanobi> 1.9
<nobitanobi> :)
bklane has joined #ruby
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
benwoody has quit [Quit: benwoody]
dnyy has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
<platzhirsch> at least I can reproduce the leak now from a fresh database
anderse has joined #ruby
timonv has joined #ruby
_Andres has joined #ruby
atno has joined #ruby
awarner_ has quit [Remote host closed the connection]
awarner has joined #ruby
revans has quit [Quit: Linkinus - http://linkinus.com]
dangerousdave has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
dangerousdave has joined #ruby
skaflem has joined #ruby
jaybonci has joined #ruby
zz_jrhorn424 is now known as jrhorn424
kevinykchan has joined #ruby
sambao21 has joined #ruby
awarner has quit [Ping timeout: 248 seconds]
bklane has quit [Quit: Leaving...]
awarner has joined #ruby
dnyy has quit [Remote host closed the connection]
nari has quit [Ping timeout: 248 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
<jaybonci> Hey folks, am trying to build ruby with the openssl extension (w/ 1.0.1e, built statically).
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
zipper has joined #ruby
dnyy has joined #ruby
<jaybonci> And it is erroring on this construct int (*i2d_func)_((DSA*, unsigned char**));
jaimef has quit [Excess Flood]
<jaybonci> inside of ruby-1.9.3-p448/ext/openssl/ossl_pkey_dsa.c
jaimef has joined #ruby
<jaybonci> Basically, it doesn't like the _
relix has joined #ruby
havenwood has quit [Remote host closed the connection]
<jaybonci> That construct is all over the place, and I'm not a C ninja. Any ideas what's causing it?
nonamehero has quit [Ping timeout: 240 seconds]
nari has joined #ruby
achwarizmi has joined #ruby
<shevy> I am not a C ninja either
<shevy> but my ruby is compiled from source with openssl support. what openssl version do you have?
<jaybonci> 1.0.1e, built statically
<jaybonci> in another directory. It's finding the headers.
jkline has quit [Quit: jkline]
aagdbl has quit [Quit: This computer has gone to sleep]
typicalbender has quit [Quit: Leaving.]
nari has quit [Ping timeout: 240 seconds]
<shevy> hmm I have 1.0.1c
fixl has joined #ruby
<shevy> I just noticed that I have an older ruby ... ruby 1.9.3p194 (2012-04-20 revision 35410) [i486-linux] damn
<jaybonci> I mean I could grab an earlier openssl
tsykoduk is now known as zz_tsykoduk
<jaybonci> 1.0.1c is the ubuntu LTS version
<jaybonci> I think
mr_red has quit [Ping timeout: 252 seconds]
dnyy has quit [Remote host closed the connection]
nonamehero has joined #ruby
nonamehero has joined #ruby
nonamehero has quit [Changing host]
achwarizmi has quit [Ping timeout: 272 seconds]
ffranz has quit [Ping timeout: 272 seconds]
dnyy has joined #ruby
awarner has quit [Remote host closed the connection]
dnyy has quit [Read error: Connection reset by peer]
typicalbender has joined #ruby
dnyy has joined #ruby
awarner has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
mr_red has joined #ruby
_if___ has joined #ruby
kayloos has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
srji has joined #ruby
awarner has quit [Read error: Connection reset by peer]
awarner_ has joined #ruby
benwoody has joined #ruby
duggiefresh has quit [Remote host closed the connection]
awarner_ has quit [Remote host closed the connection]
peregrine81 has quit []
duggiefresh has joined #ruby
awarner has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
mikepack_ has joined #ruby
acrussell has quit [Quit: Leaving.]
duggiefresh has joined #ruby
DrShoggoth has quit [Quit: Leaving]
mikepack has quit [Ping timeout: 272 seconds]
BizarreCake has quit [Ping timeout: 244 seconds]
nari has joined #ruby
brianpWins has joined #ruby
atno has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
ravster has quit [Quit: Leaving.]
DrShoggoth has joined #ruby
atno has joined #ruby
kayloos has quit [Remote host closed the connection]
awarner has quit [Ping timeout: 272 seconds]
<shevy> now I am on ruby 1.9.3p448 (2013-06-27 revision 41675) [i686-linux]
kayloos has joined #ruby
phinfone_ has quit [Read error: Connection reset by peer]
dnyy has quit [Remote host closed the connection]
skaflem has quit [Quit: Leaving]
<ericwood> about fucking time, shevy
phinfonet has joined #ruby
<shevy> hehe
dnyy has joined #ruby
<shevy> jaybonci, here is my system info right now http://pastie.org/pastes/8466287/text
dnyy has quit [Read error: Connection reset by peer]
<jaybonci> shevy: That's pretty close to what I have.
dnyy has joined #ruby
<jaybonci> For semi-obscure reasons, I'm in an older linux VBE
<shevy> yeah... will compile 1.0.1e in a moment, but I think I may have not the error you have
<jaybonci> Yeah, that's totally strange.
<shevy> well
<jaybonci> I don't know how those lines compile, at all.
<shevy> I used to be able to compile ruby 1.8.7 on some distributions by default
<shevy> on others, with different glibc, I no longer could
ffranz has joined #ruby
<shevy> yeah, but perhaps it's not openssl to blame
<jaybonci> This is what I'm getting: http://pastie.org/8466290
<shevy> I'll soon see
<jaybonci> It's not. Openssl is fine.
<jaybonci> I have other things building with it.
<jaybonci> like, say PHP (not to speak the devil's name)
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketurtles has joined #ruby
<shevy> you said your openssl is static? how did you compile that?
Elhu has quit [Quit: Computer has gone to sleep.]
<shevy> ./config --prefix=/usr -static
<shevy> ?
<jaybonci> Kind of.
kayloos has quit [Ping timeout: 245 seconds]
<shevy> ok... my current openssl was built in a shared way ...
ldnunes has quit [Quit: Leaving]
photon has joined #ruby
benwoody has quit [Quit: benwoody]
<shevy> jaybonci if PHP manages to do something, and ruby fails, then ruby sucks more than php which we could not let stand, in that case I'd file a bug at the bugtracker at once ;)
zipper has quit [Ping timeout: 272 seconds]
Elhu has joined #ruby
yfeldblum has joined #ruby
zz_tsykoduk is now known as tsykoduk
<jaybonci> Yeah, I can probably google this down if someone can tell me what this line means: int (*i2d_func)_((DSA*, unsigned char**));
<phinfonet> hellow
<phinfonet> *hello
timonv has quit [Remote host closed the connection]
<phinfonet> i'm trying to install rails on ruby 2.0.0-p247, and i receive a "illegal hardware instruction
<shevy> jaybonci hmm... looks like a macr expansion perhaps...
<phinfonet> 4
<shevy> *macro
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<shevy> where are the C gurus!
<phinfonet> is this a common issue?
timonv has joined #ruby
<shevy> ext/openssl/ossl_pkey_rsa.c: i2d_func = i2d_RSAPrivateKey;
<jaybonci> A common issue? No I haven't seen anyone else with this problem
<shevy> i2d_func(pkey->pkey.dsa, NULL)
dnyy has quit [Remote host closed the connection]
<jaybonci> though there was a checkin to dir.c in 2005 that removed a similar notation
<shevy> phinfonet perhaps you have a strange architecture, I never had that error before
<phinfonet> shevy: me too. i've done a clean 10.9 osx install, and when try to install ruby + rbenv
dnyy has joined #ruby
<platzhirsch> DouweM: I have created 1,5 scripts which suffice to reproduce the leak, if you are interested I would be curious if it was reproducible https://github.com/mongoid/mongoid/issues/3139
<phinfonet> or any rubygem, i receive it
dnyy has quit [Read error: Connection reset by peer]
<jaybonci> phinfonet: Oh do you get this as well?
dnyy has joined #ruby
petey has quit [Remote host closed the connection]
petey has joined #ruby
<phinfonet> nope, jaybonci, i just said that never was received it
<jaybonci> ah, cool.
<phinfonet> Mountain lion works perfectly
<phinfonet> but mavericks no
aspires has quit [Quit: sudo making a sandwich]
hiyosi has joined #ruby
fedalto has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
<phinfonet> jaybonci: you know this issue?
<jaybonci> Nope, no idea on the mountain lion thing
<jaybonci> I think it's a gcc/clang issue maybe?
timonv has quit [Ping timeout: 264 seconds]
<phinfonet> hmm
<phinfonet> maybe i need to install and older gcc...
srji has quit [Ping timeout: 264 seconds]
ghazi has joined #ruby
<phinfonet> jaybonci: http://pastie.org/8466327
<jaybonci> try it with CC=gcc
ghazi is now known as cafe
hiyosi has quit [Ping timeout: 248 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
johnnyfuchs has quit [Quit: Leaving.]
cafe is now known as ghazi
blaxter has quit [Quit: KTHXBYE]
Mitchellvanw has quit [Ping timeout: 240 seconds]
dnyy has quit [Remote host closed the connection]
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
timonv has joined #ruby
sambao21 has joined #ruby
xk_id has joined #ruby
jkline has joined #ruby
DonRichie has joined #ruby
Guest45190 has quit [Ping timeout: 244 seconds]
jbpros has joined #ruby
Catie has joined #ruby
Biohazard has quit [Ping timeout: 245 seconds]
c0rn has joined #ruby
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
simoz has joined #ruby
bio has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
divi has joined #ruby
andrewcarter has left #ruby [#ruby]
theoretick has joined #ruby
benlieb has joined #ruby
mixel has quit [Quit: mixel]
dnyy has quit [Remote host closed the connection]
dnyy_ has joined #ruby
Hellcat has joined #ruby
simoz has quit [Ping timeout: 264 seconds]
Hellcat is now known as Guest25321
Guest25321 has quit [Excess Flood]
Guest25321 has joined #ruby
byprdct has joined #ruby
Guest25321 has left #ruby [#ruby]
divi has quit [Ping timeout: 248 seconds]
jbpros has quit [Quit: jbpros]
noop has quit [Ping timeout: 252 seconds]
noop has joined #ruby
nari has quit [Ping timeout: 272 seconds]
typicalbender has quit [Quit: Leaving.]
<phinfonet> not solutions on google for my issue ://
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
johnnyfuchs has joined #ruby
Kricir has quit [Remote host closed the connection]
jkline has quit [Quit: jkline]
dnyy_ has quit [Remote host closed the connection]
typicalbender has joined #ruby
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
aryaching has quit [Ping timeout: 240 seconds]
dnyy has joined #ruby
dmyers has joined #ruby
typicalbender2 has joined #ruby
ffranz has quit [Quit: Leaving]
fedalto has joined #ruby
artm has quit [Ping timeout: 248 seconds]
timonv has quit [Ping timeout: 252 seconds]
Elhu has joined #ruby
JonahR has quit [Quit: jonahR]
jkline has joined #ruby
artm has joined #ruby
fluffheadsr has joined #ruby
typicalbender has quit [Ping timeout: 245 seconds]
fluffheadsr is now known as Guest23322
darkc0met has quit [Quit: ZNC - http://znc.in]
aspires has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
ph8 has quit [Read error: Operation timed out]
jaimef has quit [Excess Flood]
typicalbender2 has quit [Read error: Connection reset by peer]
jbpros has joined #ruby
typicalbender has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnyy has quit [Remote host closed the connection]
o11c has joined #ruby
kaspergrubbe has joined #ruby
<o11c> I'm having trouble installing a gem, is this a good place for help?
axl_ has joined #ruby
ewnd9_ has quit [Ping timeout: 248 seconds]
dnyy has joined #ruby
havenwood has joined #ruby
theRoUS has quit [Ping timeout: 252 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
jbpros has quit [Client Quit]
matchaw has joined #ruby
alexherbo2 has quit [Ping timeout: 264 seconds]
cjs226 has joined #ruby
matchaw_ has quit [Ping timeout: 264 seconds]
nari has joined #ruby
robertjpayne has joined #ruby
fijimunkii has quit [Ping timeout: 272 seconds]
vince_prignano has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
fijimunkii has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
jaimef has joined #ruby
<robertjpayne> Is ||= thread safe in ruby? Or do I need to worry about race conditions if two threads are attempting the same ||=?
<apeiros> robertjpayne: assume nothing is thread-safe except explicitly labeled as "thread-safe"
<robertjpayne> apeiros: sounds good
<apeiros> note, that "thread-safe" is a very vague term (hence the quotes)
<robertjpayne> yeah
<apeiros> -,
<robertjpayne> I'll ensure to wrap these ||= in mutexes
brtdv has joined #ruby
somasonic has quit [Ping timeout: 272 seconds]
<robertjpayne> Or is there any better way in ruby to ensure a block of code is only every run once regardless of thread?
brjannc| has quit [Ping timeout: 272 seconds]
brtdv has quit [Client Quit]
pwh has quit []
somasonic has joined #ruby
madb055 has joined #ruby
<apeiros> you could put the mutex only around the rhs
<apeiros> and repeat the value itself
claymore has quit [Quit: Leaving]
<platzhirsch> DouweM: Maybe, Repository.all.first.metadata_records.each is the wrong way to iterate, because Ruby will see the method chain as an ongoing reference and thus, will not garbage collect the elements being iterated
<apeiros> e.g. def lazy_value; @_value ||= @mutex.synchronize { @_value || calculate_value }; end
Elhu has quit [Quit: Computer has gone to sleep.]
brjannc has joined #ruby
<apeiros> that way you save yourself the expensive mutex on every lookup, but still have it for the potentially contended initialization
<robertjpayne> apeiros: yea thats what I wanted to make sure thanks :)
fijimunk1i has joined #ruby
typicalbender has quit [Quit: Leaving.]
banjara has quit [Quit: Leaving.]
asteros has quit [Quit: asteros]
ph8 has joined #ruby
banjara has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
o11c has left #ruby ["WeeChat 0.4.2-dev"]
vlad_starkov has joined #ruby
axl_ has quit [Quit: axl_]
fijimunkii has quit [Ping timeout: 244 seconds]
ner0x has quit [Quit: Leaving]
<apeiros> robertjpayne: could meta-program that behavior :)
mrsolo has joined #ruby
<robonerd> is this the channel i was recently chatting with others about ... cluster of low power computers? there was some acronym for it i cannot remember. help?
dnyy has quit [Remote host closed the connection]
<robertjpayne> apeiros: 1 spot :P it works for now
benlieb has quit [Quit: benlieb]
matchaw_ has joined #ruby
ffranz has joined #ruby
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
matchaw has quit [Ping timeout: 264 seconds]
vlad_sta_ has quit [Ping timeout: 264 seconds]
psyl0n has joined #ruby
<apeiros> hm, missed o11c's paste - and now he left.
allsystemsarego has quit [Quit: Leaving]
workmad3 has joined #ruby
claymore has joined #ruby
<shevy> he is a weakling
<shevy> let's kill him
<shevy> hmm he is still on freenode
<shevy> let's invite him back, then kill him
yalue has quit [Quit: Leaving]
asteros has joined #ruby
Eg0N|2 has joined #ruby
photon has quit [Quit: photon]
<shevy> seemed to be a typical debian "I hate mkmf so I will remove it" distribution error
<platzhirsch> lol
mr_red has quit [Ping timeout: 240 seconds]
<platzhirsch> o11c's paste? What's going on :)
<robonerd> hate speech
alexherbo2 has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<apeiros> a typical "we from apt know better what 'standard installation' is supposed to mean and therefore we will throw out everything you consider standard into separate packages."
mr_red has joined #ruby
tsykoduk has quit [Quit: ZNC - http://znc.in]
pixelgremlins has joined #ruby
<platzhirsch> Okay, just ping me for any mob and lynch action
Elhu has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<platzhirsch> The memory leak has boiled down to: Repository.all.first.metadata_records.each { ... } vs. MetadataRecord.where(repository: repository).each { ... }. The former one leaks, the latter one not.
hiyosi has joined #ruby
<platzhirsch> Do you think the Ruby GC, interprets the first one as an intact reference, hence no garbage collection?
<platzhirsch> as in, the repository object is referencing metadata_records, hence no mark and sweep
<apeiros> platzhirsch: mongoid is a C extension?
<platzhirsch> apeiros: no
jkamenik has quit [Quit: Leaving.]
<apeiros> you sure?
<platzhirsch> no
<apeiros> well, not mongoid, whatever thing you use
smlgs has quit [Ping timeout: 245 seconds]
brtdv has joined #ruby
simoz has joined #ruby
<apeiros> because chances that ruby has a memory leak vs. your mongo driver…
yan_ has joined #ruby
<platzhirsch> I use Mongoid :) but the memory leak has been observed with ObjectSpace.count_objects[:T_STRING] so I think I monitored the Ruby VM heap
<apeiros> lets just say its skewed in favor of ruby not being the culprit :)
Eg0N|2 has left #ruby ["Later peeps"]
<DouweM> moped is all ruby as well, no c ext
<DouweM> (moped being the mongo driver behind mongoid)
<platzhirsch> DouweM: I have reposted it as a new issue https://github.com/mongoid/mongoid/issues/3387 and I get more and more the feeling it was my mistake anyway
<yan_> Do i have to do anything special to get block invocations to work over drb? I'm getting 'The requested address is not valid in its context. - connect(2) (DRb::DRbConnError)' exception when my remote code tries to invoke a block my local code registered
<platzhirsch> which would not be too bad, if it works.. at least I have documented it for the next one
<apeiros> platzhirsch: or are you using an old ruby version? because iirc some older version did have some issue wrt return values not being properly freed (but I think that was back in 1.8)
<platzhirsch> apeiros: no, I tested it on Ruby 2.0.0 and 1.9.3
dnyy has quit [Remote host closed the connection]
benwoody has joined #ruby
awkwords has quit [Quit: Leaving.]
hiyosi has quit [Ping timeout: 245 seconds]
Mitchellvanw has joined #ruby
Hellcat has joined #ruby
<DouweM> platzhirsch: wow, that memory leak is significant
dnyy has joined #ruby
Hellcat is now known as Guest39759
<platzhirsch> DouweM: well, it grows linear, doesn't it? So simply each document stays on the heap
<shevy> I would not mind that debian changed things so much if they would just put a big disclaimer "we modified ruby to exclude mkmf - please ask us on #debian and not anyone else on #ruby why errors are the cause because of that"
<shevy> *case
banjara has quit [Quit: Leaving.]
<DouweM> platzhirsch: right
sambao21 has joined #ruby
<platzhirsch> I really hope that's it and my solution is the right one, finally I would able to get my application to scale memory wise :P
srji has joined #ruby
banjara has joined #ruby
<platzhirsch> shevy: what did they do to the ruby package? :(
alexherbo2 has quit [Ping timeout: 264 seconds]
<shevy> platzhirsch they modify things
<platzhirsch> things..
<shevy> yeah, mkmf and others
benwoody has quit [Client Quit]
<DouweM> platzhirsch: didn't you mention that going from Repository.all.first.metadata_records.each to Repository.all.first.metadata_records.all.each fixed the problem as well?
<platzhirsch> DouweM: yes, but that is just a verbose way to write MetadataRecords.all
<platzhirsch> it turns the whole query into a simpler one, although the Ruby DSL query is longer
wzbyte has quit [Remote host closed the connection]
<DouweM> ah, is it? I thought .all.each and .each would just do the same thing
geekbri has quit []
Guest39759 has quit [Client Quit]
<DouweM> makes sense that #all would remove all where()'s inserted by the relation
RaCx has quit [Quit: Computer has gone to sleep.]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
<DouweM> platzhirsch: I think I know what's going on. gimme a sec to investigate
<platzhirsch> DouweM: ah.. yeah. MetadataRecord.all.each == MetadataRecord.each
<DouweM> platzhirsch: also when at the end of the has_many relation?
<platzhirsch> when at the end?
srji has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
<DouweM> Repository.all.first.metadata_records.each vs Repository.all.first.metadata_records.all.each
<DouweM> still the same?
<platzhirsch> DouweM: no, the first one leaks, the latter one not
tsykoduk has joined #ruby
vlad_sta_ has joined #ruby
<DouweM> right, but does the version with .all. ignore the where()s set by the relation? i.e. is it equal to MetadataRecord.all rather than MetadataRecord.where(repo: repo) ?
<platzhirsch> DouweM: that's just my interpreation, I could try to look it up, maybe Mongoid gives me the query string without debugging through the library code
ChrisValentinial is now known as Valentinial
vlad_starkov has quit [Ping timeout: 272 seconds]
jdbentley has joined #ruby
<DouweM> just puts any Mongoid::Criteria, it'll give you the query.
dnyy has quit [Remote host closed the connection]
<DouweM> I'm on 3.0 btw, so things might have changed
Soda has joined #ruby
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
<DouweM> or in the case of relations, obj.relation.criteria
typicalbender has joined #ruby
dnyy has joined #ruby
<bricker`work> This syntax amazes me every time: `Audio::DirectAudio <= Audio`
failshell has joined #ruby
<shevy> what's this do
<shevy> is that something related to comparable?
<shevy> ugh
<bricker`work> Yes
<shevy> or lesser than or equal ?
<shevy> I dont think I have seen that used before
glacius has quit [Quit: WeeChat 0.4.2]
<apeiros> shevy: it checks inheritance
<apeiros> >> Array < Enumerable
<eval-in_> apeiros => true (https://eval.in/64233)
<shevy> hmm
mark_locklear has quit [Quit: Leaving]
<shevy> >> Array <= Enumerable
<eval-in_> shevy => true (https://eval.in/64234)
<apeiros> bricker`work: the syntax is actually the same as other comparisons ;-) (5 <= 10)
<bricker`work> apeiros: I understand that, it's just less intuitive
<shevy> hah here it is used too!
<shevy> >> class Bar; end; class Foo < Bar; end
<apeiros> I found it unexpected, but rather intuitive actually
<eval-in_> shevy => nil (https://eval.in/64235)
<shevy> Foo is less than Bar!
<platzhirsch> DouweM: oh, it does NOT clear the selector, which I guessed
hashpuppy has quit [Quit: Computer has gone to sleep.]
tkuchiki has joined #ruby
<bricker`work> Like, it's obvious what "5 < 10" is doing, but "Class < Module" would be confusing for anybody who didn't read the documentation
<shevy> it now is to me
<shevy> why is class smaller than module
<DouweM> platzhirsch: Klass.all.each {} uses batching and doesn't store references to the docs, object.relation.each memoizes every object in the object's relation array
WillAmes has quit [Ping timeout: 246 seconds]
Al_ has quit [Quit: Al_]
timonv has joined #ruby
<platzhirsch> DouweM: so far my understanding, have you looked it up?
<DouweM> yup
_Andres has quit [Read error: Connection reset by peer]
<platzhirsch> thanks a lot :) it's good to have an explanation
<DouweM> platzhirsch: yup. I'll have to keep that in mind as well when working with larger relations
nateberkopec has joined #ruby
nuilonhuhn has joined #ruby
danman has quit [Quit: danman]
<bricker`work> shevy: calling it "smaller than" is not quite right. It makes more sense to say it's "earlier in the inheritance chain"
<bricker`work> >> Class.class
<eval-in_> bricker`work => Class (https://eval.in/64236)
<bricker`work> >> Module.class
<eval-in_> bricker`work => Class (https://eval.in/64237)
fijimunk1i has quit [Ping timeout: 248 seconds]
<platzhirsch> that is really a drawback with Ruby's way of performing the same task with different code snippets. I am glad I spent some time to document the issue
tsykoduk is now known as zz_tsykoduk
Astral_ has quit [Ping timeout: 265 seconds]
<shevy> >> Class.class > Module.class
<eval-in_> shevy => false (https://eval.in/64238)
<shevy> >> Class.class >= Module.class
<eval-in_> shevy => true (https://eval.in/64239)
simoz has quit [Ping timeout: 264 seconds]
<nuilonhuhn> does any one no how to call a method form a method
<shevy> nuilonhuhn just write it in your method?
<shevy> >> def foo; puts 'hi from foo'; end; def bar; foo; end; bar
<eval-in_> shevy => hi from foo ... (https://eval.in/64240)
hiall has joined #ruby
whunt has joined #ruby
dnyy has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
dnyy has joined #ruby
nfk has quit [Quit: yawn]
dnyy has quit [Read error: Connection reset by peer]
kcombs has quit [Remote host closed the connection]
nuilonhuhn has quit [Quit: irc2go]
dnyy has joined #ruby
whunt has quit [Client Quit]
derebos has quit [Ping timeout: 245 seconds]
deception has quit [Quit: Goodbye]
jdbentley has left #ruby ["Textual IRC Client: www.textualapp.com"]
noop has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
LMolr has joined #ruby
mixel has joined #ruby
ffranz has quit [Read error: Operation timed out]
kaspergrubbe has joined #ruby
nfk has joined #ruby
whunt has joined #ruby
nari has quit [Ping timeout: 244 seconds]
carlyle has joined #ruby
Xeago has joined #ruby
fijimunkii has joined #ruby
failshell has quit [Remote host closed the connection]
darkc0met has joined #ruby
failshell has joined #ruby
kaspergrubbe has quit [Ping timeout: 245 seconds]
Thanatermesis has joined #ruby
workmad3 has joined #ruby
staafl has quit [Ping timeout: 272 seconds]
earthquake has quit [Quit: earthquake]
dnyy has quit [Remote host closed the connection]
Jetchisel has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
dnyy has joined #ruby
yfeldblum has joined #ruby
vpretzel has quit [Quit: Adios!]
jfelchne_ has joined #ruby
vpretzel has joined #ruby
saarinen has quit [Quit: saarinen]
<nobitanobi> do you guys usually write 'return true' or just 'true' ?
<nobitanobi> code styling wise...
withnale has joined #ruby
jfelchne_ is now known as jfelchner
carraroj has joined #ruby
whunt has quit [Quit: Textual IRC Client: www.textualapp.com]
kaldrenon has quit [Remote host closed the connection]
<DanBoy> convention would be just true
<DouweM> yup, let implicit return do its thing
carlyle has quit [Remote host closed the connection]
kaldrenon has joined #ruby
b00stfr3ak has quit [Ping timeout: 245 seconds]
ffranz has joined #ruby
<apeiros> only place I have return is at the top of a method to deal with edge-cases (very early returns)
jkhwan has quit [Remote host closed the connection]
jbpros has joined #ruby
failshell has quit []
vpretzel has quit [Client Quit]
jkhwan has joined #ruby
<DanBoy> i normally don't use return true
<DanBoy> but i think its more declarative of what your doing
<apeiros> oh, and in some very low level plumbing cases - e.g. things like reimplementing Enumerable#first in plain ruby
Underbyte has quit [Quit: Linkinus - http://linkinus.com]
_if___ has quit [Quit: Lost terminal]
derebos has joined #ruby
<apeiros> (hard to do without premature return)
jamesaanderson has joined #ruby
<apeiros> well, actually doable with a sibling of return: break
ExCa|iBuR has joined #ruby
pwh has joined #ruby
platypine has joined #ruby
jamesaanderson has quit [Client Quit]
carraroj has quit [Client Quit]
<havenwood> i couldn't agree more, just `true`
amacgregor has quit [Ping timeout: 246 seconds]
<havenwood> i cringe when i see a `return` at the end of a method
jrhorn424 is now known as zz_jrhorn424
<DouweM> yup. it's a tell tale sign of an inexperienced Ruby developer
kaldrenon has quit [Ping timeout: 272 seconds]
<havenwood> would be like putting an, `if true` `end` around parts of your code
DrShoggoth has quit [Quit: Leaving]
nisstyre has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<shevy> god... youtube added something like when you write a comment, there is a check-box to also automatically share on g+
alexherbo2 has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
jamesaanderson has joined #ruby
<havenwood> of course true is true, of course the end of the method returns
ehaliewicz has quit [Remote host closed the connection]
Underbyte has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
dnyy has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
dnyy has joined #ruby
ffranz has quit [Quit: Leaving]
<platzhirsch> In Well-grounded Rubyist, the author claims that using return has become the more popular idiom, but I observed the opposite
dnyy has quit [Read error: Connection reset by peer]
elux has quit [Quit: Bye!]
rodan- has joined #ruby
<DouweM> wut, that's completely incorrect
dnyy has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
<apeiros> funny
<apeiros> I wonder in what world he's living :-p
<shevy> nobody has any data
jamesaanderson has quit [Client Quit]
<apeiros> github has
urthbound has joined #ruby
<shevy> what does github data say in percentages?
stringoO has quit [Quit: stringoO]
<DouweM> yeah, I've read a lot of gems' sources and I've never seen a project that used explicit return
<apeiros> quick shevy, write a crawler, a deduplicator and a code analyzer
havenwood has quit [Remote host closed the connection]
<shevy> so you dont have any idea about the %
<apeiros> I have an idea
<apeiros> I just have nothing to back it up
cjs226 has quit []
<apeiros> my idea is: 92.84% use implicit return at method end
<shevy> we could if we would find someone to write a crawler, a deduplicator and a code analyzer!
mlpinit has quit [Remote host closed the connection]
<apeiros> do it!
<shevy> I say about 80%
<platzhirsch> To the Batmobile! Let's go
<apeiros> your number is so vague, I'm sure you totally made it up!
mlpinit has joined #ruby
heftig has quit [Quit: Quitting]
mansi has joined #ruby
blackmesa has joined #ruby
<shevy> platzhirsch I think most people finally agree that the Well-grounded Rubyist author must be wrong
<shevy> now one of you goes to #ruby-lang and ask him ok? :-)
jfelchner has quit [Quit: jfelchner]
whunt has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<shevy> actually, I will check on his projects now ...
asteros has quit [Quit: asteros]
heftig has joined #ruby
<platzhirsch> "Ruby gives you a keyword for making return values explicit: return . The use of this keyword is usually optional, but many programmers like to use it because it makes explicit what is otherwise implicit..."
billiam has quit [Quit: WeeChat 0.4.1]
<platzhirsch> ok my fault "many" != "most"
<shevy> :(
Hanmac has joined #ruby
<shevy> it seems that in most cases where ruby gives people a choice, they prefer to not want to use it
<platzhirsch> I postulate he is still wrong. There are not even many that use it :P
workmad3 has quit [Ping timeout: 264 seconds]
<shevy> like all those weird people who do:
<shevy> def foo a,b,c
<Morrolan> I usually leave it out when it's trivial.
cpruitt has joined #ruby
<DouweM> shevy: ugh
<platzhirsch> shevy: gross, put it in a cage
<Morrolan> But I've fallen on my nose often enough that I use it in non-obvious cases. ;D
asteros has joined #ruby
<shevy> platzhirsch but I know some who do so hardcore all the time!
colonolGron has quit [Quit: Lost terminal]
<platzhirsch> it becomes an obstacle if you work on the same code base
VictorSK has joined #ruby
<shevy> perhaps it is influenced by DSL style
mlpinit has quit [Ping timeout: 252 seconds]
<shevy> for instance:
jkline has quit [Quit: jkline]
<platzhirsch> Ruby makes you feel good on solo coding, but otherwise I might prefer Nazi-PEP8
<shevy> on :message, /^#{PREFIX}pry #{K.sekretpasswords}\s*/ do |m|
workmad3 has joined #ruby
<shevy> no () in this type of style
johnnyfuchs has quit [Quit: Leaving.]
VictorSK has quit [Client Quit]
<shevy> platzhirsch, here is an example for ()-less def style
<platzhirsch> What's David Blacks handle again?
<shevy> platzhirsch I mistook him for dblack or drbrain, and now I am confused who is who... perhaps none of them is David A. Black
hiyosi has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<shevy> DouweM how do you like: def initialize s = SpaceGame::ChooseGame
johnnyfuchs has joined #ruby
<platzhirsch> Well, doesn't matter. On the internet, nobody knows you're a dogh
<platzhirsch> dog*
dnyy has quit [Remote host closed the connection]
<DouweM> *doge
<shevy> *god
<DouweM> shevy: ewwww
<shevy> :)
byprdct has joined #ruby
<shevy> one day I must interview matz
jbpros has quit [Quit: jbpros]
<DouweM> lol
<shevy> I will have prepared some of the smaller questions
<shevy> like "Why did you make it optional to have people use () in method definitions?"
_Andres has joined #ruby
<shevy> or perhaps when ... I need to try out ruby before 1.0
havenwood has joined #ruby
dnyy has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
threesome has quit [Ping timeout: 260 seconds]
<sweeper> shevy: where IS drbrain anyways? haven't seen him in a while :v
lastk has left #ruby ["Leaving"]
<platzhirsch> sweeper: he's in #ruby-lang
<platzhirsch> so that's him mh? Then I will write him
<havenwood> sweeper: he is standing right in front of me
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LMolr has quit [Quit: Leaving]
<sweeper> tell him to say hi to unf for me then \o
timonv has quit [Remote host closed the connection]
<shevy> unf?
hiyosi has quit [Ping timeout: 264 seconds]
<sweeper> unful
<sweeper> *unfurl
timonv has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<shevy> I always have to register before I can write on #ruby-lang so I dont go there
amacgregor has joined #ruby
<platzhirsch> I should start idling there again and if someone asks a question redirect him/her here
<Morrolan> You always have to register? :P
<Morrolan> You'd think registering once suffices. Afterwards it's just a signin.
<Morrolan> +g
<Morrolan> -g
<shevy> singing?
jrhorn424 is now known as zz_jrhorn424
jalcine_ has joined #ruby
<apeiros> gsinin
<shevy> god, you guys have awful kyeboards!
<Morrolan> Yea, keep making fun of me. ;D
<apeiros> :)
<popl> Ok.
whunt has quit [Quit: Textual IRC Client: www.textualapp.com]
<Morrolan> As much as I'd like to, I can't blame my keyboard for that mess up there.
<apeiros> of course you can
<apeiros> maybe not rightfully
squeems has quit [Read error: Connection reset by peer]
<Morrolan> Somehow my brain thought that it should be 'signing' rather than 'signin'.
weeems has joined #ruby
<apeiros> but that never stopped anybody
<Morrolan> Hah, true.
<shevy> I used to mistype on IRC clients like irssi or weechat a lot
<shevy> with xchat, I can edit what I mistype quickly, so you see only like 1% typing errors I do
weeems is now known as weems
weems has quit [Changing host]
weems has joined #ruby
<apeiros> I wrote @myself as @mysqlf for a long time when coming from php and working on my first ruby project
<Morrolan> Haha.
<apeiros> muscle memory. so strong.
<shevy> those kind of typos can be scary
<shevy> def intialize
zz_jrhorn424 is now known as jrhorn424
<shevy> @myself is a cool name though
<sweeper> I had cancelled vs canceled today o.o
<jblack> nothing like muscle-memorying your favorite password in plaintext in front of someone on accident
<DouweM> apeiros: DUDE I did the same thing
<shevy> a bit like perl or? like ... my @self ... dunno if that is valid perl... or was it ... my $self
<shevy> sweeper the english can be difficult, I always have to hesitate before writing usage ... or useage ...
timonv has quit [Ping timeout: 264 seconds]
<apeiros> jblack: hehe
<Morrolan> A few weeks ago I found out, by sheer chance, that I misspelled some variable's name. Did a quick 'git grep', found a few hits in the current project. Did a search through all recent projects, and found dozens of hits. :P
<apeiros> jblack: I usually muscle-memorize my pin codes. learning them by heart is too boring.
<sweeper> shevy: well interestingly enough, both are valid :v
<shevy> cool
<shevy> perl makes valid code out of line noise
<platzhirsch> oh, it's really him
<jblack> I did even worse. I set all of my bank pins to the same number.
<shevy> ack
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
<shevy> I am only slightly better perhaps... I keep only about 3 different passwords in total
cescalante is now known as ce_afk
<DouweM> :| ever heard of a password manager?
bugsinlights has joined #ruby
jalcine_ has quit [Excess Flood]
dnyy has quit [Remote host closed the connection]
<jblack> Oh sure, and that's waht I stick with in production environments.
<apeiros> DouweM: and you pull that one out every time you're in front of an ATM or a check-out? :)
<DouweM> I'm responding to shevy using only 3 passwords ;)
<jblack> I don't treat my responsibilities to others with the same disregard as I do my facebook and checking accounts
<apeiros> ah
<apeiros> yeah, that's silly
<DouweM> for PINs, I can understand
<apeiros> I even use different PINs
<DouweM> yeah me too
jkhwan has joined #ruby
dnyy has joined #ruby
<apeiros> I mean they're what, 4-6 digits? easy enough
<DouweM> but I can never remember the one for my credit card or business debit card
<Morrolan> Hah.
<Morrolan> I have a hard enough time remembering *one*, let alone *four*. :P
<apeiros> I think I have 7
<Morrolan> Words, fine, sentences, easy, numbers, nope.
<jblack> The problem I used to have with 4-5 different pin #s was that I would freeze atm card A becuase I was sure the pin was the same as card B.
withnale has quit [Read error: Operation timed out]
<jblack> Locking myself out is more secure than I need!
<apeiros> plus around a dozen of 12 char passwords :)
<apeiros> oh, if I forget them, I do have them in my password storage.
banjara has quit [Quit: Leaving.]
<jblack> Yeah, I use vault on my cell phone for most any pass
<apeiros> which has happened - didn't use a card for over a year and no longer remembered the PIN :(
<DouweM> all my passwords, pins, software licenses etc are in 1Password. <3 1Password
<jblack> passworded vault + one of those free sync services.
DanBoy has quit [Ping timeout: 240 seconds]
banjara has joined #ruby
<jblack> vault is probably similiar
<shevy> DouweM one that depends on a computer?
<DouweM> shevy: ?
psyl0n has quit [Quit: psyl0n]
<shevy> password manager
<jblack> I'm wearin camo pants because I'm out of clean laundry. Now I'm going to have to pretend to hide in every tree I walk past to be funny about it
kcombs has joined #ruby
RichardBaker has joined #ruby
<DouweM> shevy: 1Password's on my Mac and iPhone
<DouweM> jblack: :)
<shevy> Morrolan the odd thing with remembering things is that I remember the sequence I have to type at the terminal
<shevy> I mean like, right when I am at it
drumusician has quit [Ping timeout: 245 seconds]
<shevy> it's like playing notes on a piano
<Morrolan> But not when trying to think of it earlier on? Yea.
<shevy> yeah
<shevy> or rather I have a much harder time then
saarinen has joined #ruby
awkwords has joined #ruby
lmickh has left #ruby [#ruby]
JRizzle has left #ruby ["Leaving"]
withnale has joined #ruby
urthbound has quit [Remote host closed the connection]
jeffdb has joined #ruby
tjad has joined #ruby
lfox has quit [Quit: ZZZzzz…]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iliketurtles has joined #ruby
Matip has joined #ruby
Matip has left #ruby [#ruby]
iliketurtles has quit [Max SendQ exceeded]
Wixy has joined #ruby
<Wixy> Hello
jeffdb has quit [Client Quit]
axl_ has joined #ruby
<Wixy> I've been using ruby for a while, and the thing I miss the most is block comments. is there any sane way to comment a block other than =begin and =end (which is not sane if you ask me :P)
<Wixy> ?
dnyy has quit [Remote host closed the connection]
iliketurtles has joined #ruby
<apeiros> Wixy: we commonly just use an editor which can put # in front of a whole block of text
threesome has joined #ruby
dnyy has joined #ruby
<Wixy> what editor?
<Wixy> I think sublime doesn't do that
<Wixy> in any case, it's not a reason not to have /**/ !
<DouweM> select the lines, hit command + /
vpretzel has joined #ruby
axl_ has quit [Read error: Operation timed out]
drumsrgr8forn8 has quit [Remote host closed the connection]
vpretzel has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
vpretzel has joined #ruby
rickruby has joined #ruby
nobitanobi has quit [Ping timeout: 244 seconds]
<Wixy> doesn't work here
<Wixy> { "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": false } },
<Wixy> { "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": true } },
<Wixy> weird, but it doesn't seem to work
havenwood has quit [Remote host closed the connection]
Wixy has left #ruby ["Leaving"]
Wixy has joined #ruby
banjara has quit [Quit: Leaving.]
freezey has joined #ruby
banjara has joined #ruby
jerius has quit [Read error: Operation timed out]
cjs226 has joined #ruby
rickruby has quit [Ping timeout: 241 seconds]
tkuchiki has quit [Remote host closed the connection]
banjara has quit [Client Quit]
`mr`jones has quit [Remote host closed the connection]
fedalto has quit [Ping timeout: 252 seconds]
banjara has joined #ruby
<shevy> Wixy there is only # and =begin/=end
<apeiros> wiak: yes, sublime does, in two different ways even
<apeiros> *Wixy
<apeiros> (sorry wiak)
<Wixy> it's weird /**/ is not supported
<Wixy> you know why is that?
<shevy> I don't
<DouweM> because matz didn't feel it was necessary?
<shevy> perhaps it would interfere
<apeiros> because it's not C
<apeiros> and /**/ interferes with regex syntax
<Wixy> it doesn't matter if it's not C
<apeiros> and possibly other syntax
<shevy> ah yes
<DouweM> apeiros: right
<apeiros> Wixy: it matters very much
<Wixy> well, that would be a reason, I agree, apeiros
<Wixy> (the regexp reason)
<apeiros> C can have /**/ because of other syntax design decisions
Tuxist has quit [Remote host closed the connection]
<apeiros> and ruby made *vastly* different syntax design decisions
<shevy> Wixy perhaps there are more reasons, ruby also uses * for splat operator
dnyy has quit [Remote host closed the connection]
<Wixy> ok, even if it's because it interfere, come on! don't you feel the NEED to indent the first like of the comment? (=begin)
<Wixy> :P
<apeiros> you can't just pluck different syntaxes together and think it'd work
<shevy> Wixy you could always try to file a feature request to at least get an explanation from nobu ... ;)
<Wixy> I think the worst part is not "=begin" (which is ugly, yes), but the fact that I can't add even a space before it :|
gr33n7007h has joined #ruby
<shevy> I dont use =begin
<Morrolan> I don't think any of us actually uses =begin. :P
<shevy> for some reason, =begin always stood out incorrectly in my code
Mitchellvanw has quit [Quit: Dozing off...]
<Morrolan> We tend to have editors which support block comments. :)
dnyy has joined #ruby
<Wixy> you would if it wasn't so ugly :P
<shevy> I dont! NOTEPAD FOR LIFE!!!
danshult_ has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<Morrolan> Haha. :P
<shevy> Wixy perhaps, hard to say. In general when something seems to conflict, I try to not use it. For instance, tabs
newbiehacker has quit [Ping timeout: 264 seconds]
<apeiros> shevy: harsh mistress you serve there…
<shevy> I tried to align code blocks with tabs
axl_ has joined #ruby
<shevy> that did not work out at all :(
<shevy> so I gave up on tabs
<shevy> oh wait. *code blocks AND comments
tkuchiki has joined #ruby
<shevy> now I have a ruby question...
petey has quit [Read error: Operation timed out]
<Wixy> =being
<Wixy> this is ugly :)
<Wixy> =end
jeffdb has joined #ruby
ZenGuy311 has quit [Ping timeout: 240 seconds]
<Wixy> you see what I mean?
<Morrolan> Yes, so use #. :P
<shevy> some_string =~ /Some identifier(.+)$/ # I want to grab what comes after the identifier
<shevy> match = $1.dup
baordog has quit [Remote host closed the connection]
<shevy> but somehow using $1 makes me shiver
zzz_taion809 is now known as taion809
<shevy> Wixy agreed, =being is awful. stop using it!
sailias has quit [Read error: Connection reset by peer]
<Wixy> shevy, you can use \1
ZenGuy311 has joined #ruby
<Wixy> instead
theRoUS has quit [Read error: Operation timed out]
<shevy> where
<MrZYX> some_string[/identifier(.+)/, 1]
<shevy> aha!
<shevy> interesting
<shevy> I am gonna try that...
<Morrolan> Cryptic.
vpretzel has quit [Remote host closed the connection]
<Morrolan> How about string#match, then call #first on the yielded matchdata?
danshultz has quit [Ping timeout: 272 seconds]
<Wixy> yep, I would use that, definitely ^
RichardBaker has quit [Quit: RichardBaker]
<apeiros> shevy: in `match = $1.dup`, the .dup is not needed.
<apeiros> but String#[] is a much nicer solution anyway
kaspergrubbe has joined #ruby
<Wixy> but $1 isn't such a good idea anyway
jlast has quit [Remote host closed the connection]
claymore has quit [Quit: night]
<shevy> hmm but [] seems better than #match or?
<Wixy> because if I'm not wrong it has the value of the last thing that was evaluated
zz_scottstamp is now known as scottstamp
<shevy> yeah
<apeiros> shevy: it's certainly more efficient
<Wixy> so if you add a line in the future it'll crash
<apeiros> Wixy: almost
<shevy> $1 scares me, but I always thought I have to use MatchData, which I can never remember offhand
jlast has joined #ruby
<Wixy> I mean, a line in the middle
<shevy> I could however remember the [//,1] part on string objects
<apeiros> Wixy: $1-$9 and friends are rather odd "globals". they're not really globals at all.
<Wixy> yep
<apeiros> I don't really remember their current locality setting. but I think they're tied to both stackframe and thread. not sure, though.
<shevy> alright, my brain chip will replace $1-$9 with [//,1-9]
<Wixy> > "foo bar 123"[/\d+/]
<Wixy> => "123"
<Wixy> this is what I would do
<shevy> huh
<shevy> where is the () ?
<Wixy> you don't need it
colonolGron has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
<shevy> this scares me
ExCa|iBuR has quit [Quit: I was using serenepIRCh http://www.serenity-irc.net/ :-]
whowantstolivefo has joined #ruby
<Wixy> (I'm assuming a few things about the strings)
whowantstolivefo has left #ruby [#ruby]
ReachingFarr has left #ruby [#ruby]
<shevy> hmm
vpretzel has joined #ruby
Xeago has quit [Remote host closed the connection]
<shevy> >> "foo bar 123" =~ /\d+/
<eval-in_> shevy => 8 (https://eval.in/64273)
gyre007 has joined #ruby
gyre007 has quit [Remote host closed the connection]
<shevy> >> "foo bar 123"[/\d+/]
<eval-in_> shevy => "123" (https://eval.in/64274)
<shevy> hmmmmm
<shevy> but good to know
<Wixy> right, no bug there
<Wixy> :P
fedalto has joined #ruby
kaspergrubbe has quit [Ping timeout: 245 seconds]
saarinen has quit [Quit: saarinen]
zarul has quit [Ping timeout: 245 seconds]
ner0x has joined #ruby
jlast has quit [Ping timeout: 244 seconds]
<shevy> I shall eliminate all my old $1 in ruby code this weekend
* popl gives shevy a cookie.
shiney has quit [Ping timeout: 240 seconds]
calmyournerves is now known as calmyournerves-
matchaw has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
calmyournerves_ has joined #ruby
nisstyre has quit [Quit: Leaving]
<shevy> thanks
calmyournerves_ is now known as calmyournerves
c0rn has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
speakingcode-wor has quit [Quit: Lost terminal]
matchaw_ has quit [Ping timeout: 244 seconds]
ghazi has quit [Ping timeout: 252 seconds]
<lolmaus> Please suggest an elegant way of saying: `if my_hash[:foo] then my_hash[:foo] += "bar" else my_hash[:foo] = "bar" end`
reset has joined #ruby
iliketurtles has quit [Ping timeout: 245 seconds]
Mars__ has quit [Read error: Connection reset by peer]
srji has joined #ruby
<Wixy> my_hash[:foo] ||= "" \n my_hash[:foo] = "bar"
<Wixy> err
<Wixy> my_hash[:foo] ||= "" \n my_hash[:foo] += "bar"
mikepack_ has quit [Remote host closed the connection]
<MrZYX> my_hash[:foo] = "#{my_hash[:foo}bar" still don't like the repetition though
Mars__ has joined #ruby
Shellcat has joined #ruby
<MrZYX> lolmaus: maybe there's a more elegant solution for your actual problem
<Wixy> or like this: a = (a || "") + "b"
sambao21 has quit [Quit: Computer has gone to sleep.]
vpretzel has quit [Remote host closed the connection]
fijimunkii has quit [Ping timeout: 264 seconds]
<DouweM> (my_hash[:foo] ||= "") += "bar"
<DouweM> eh, << instead of +=
ShellFu is now known as ShellFu_afk
mrsolo has joined #ruby
devdazed has quit [Quit: Bye]
<shevy> is this elegant!
calmyournerves has quit [Remote host closed the connection]
calmyournerves has joined #ruby
iliketurtles has joined #ruby
barratt has quit [Quit: Leaving...]
vlad_starkov has joined #ruby
phantummm has quit [Quit: phantummm]
ehc has quit [Quit: ehc]
vlad_sta_ has quit [Ping timeout: 245 seconds]
jaybonci has quit [Read error: Operation timed out]
drag00n has quit [Ping timeout: 264 seconds]
vlad_sta_ has joined #ruby
hiyosi has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
c0rn has joined #ruby
vlad_st__ has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
<lolmaus> Wixy, DouweM, thank you.
mudmaster has quit [Quit: Leaving...]
<MrZYX> lolmaus: try posting a larger excerpt of your code where you need to do this, I never had to ;)
jamesaanderson has joined #ruby
RichardBaker has joined #ruby
vlad_sta_ has quit [Ping timeout: 245 seconds]
hiyosi has quit [Ping timeout: 252 seconds]
RichardBaker has quit [Client Quit]
calmyournerves- has quit [Quit: ZNC - http://znc.in]
cody-- has quit [Quit: derp]
postmodern has joined #ruby
brtdv has quit []
ehaliewicz has quit [Remote host closed the connection]
srji has quit [Ping timeout: 260 seconds]
zigomir has quit [Ping timeout: 244 seconds]
TheShaun|AFK is now known as TheShaun
jamesaanderson has quit [Client Quit]
scottstamp is now known as zz_scottstamp
amacgregor has quit [Read error: Connection reset by peer]
fijimunkii has joined #ruby
brtdv has joined #ruby
^Chris^ has quit [Read error: Connection reset by peer]
^Chris^ has joined #ruby
agent_white has joined #ruby
gr33n7007h has quit [Quit: Where's John Conner]
<lolmaus> MrZYX, i'm creating a Padrino template helper. The hash in question may contain a `:class` element that contains a string of HTML classes. I would like to add a class to that string. But i don't know whether the class element exists. If it doesn't exist, doing simply `options[:class] << "classname"` would fail.
jaybonci has joined #ruby
RichardBaker has joined #ruby
RichardBaker has quit [Client Quit]
sepp2k has quit [Quit: Leaving.]
platypine has quit [Ping timeout: 252 seconds]
ce_afk is now known as cescalante
cpruitt has quit [Read error: Connection reset by peer]
timonv has joined #ruby
cpruitt has joined #ruby
<MrZYX> class = options.fetch(:class) { "default" }
<MrZYX> class << "classname"
larissa has joined #ruby
dangerousdave has quit [Quit: Leaving...]
<MrZYX> extracing the values of an options hash at the beginning of a method is a common thing to see
vlad_st__ has quit [Remote host closed the connection]
<MrZYX> setting defaults while doing this too
Es0teric has quit [Quit: Computer has gone to sleep.]
jrhorn424 is now known as zz_jrhorn424
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<lolmaus> MrZYX, the matter is that i don't need that class outside the hash. The hash is passed to a method, i just want to append to one of the hash's elements.
<DouweM> in that case my onelines probably looks nicest: `(options[:class] || "") << "newclass"`
<DouweM> *one-liner
apeiros has joined #ruby
<DouweM> and use ||= instead of ||
apeiros has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 244 seconds]
srji has joined #ruby
kirun has quit [Quit: Client exiting]
banjara has quit [Quit: Leaving.]
TheShaun is now known as TheShaun|AFK
Kiba has joined #ruby
<Kiba> hi
tkuchiki has quit [Remote host closed the connection]
banjara has joined #ruby
<Kiba> I am working on a survival analysis of gems
<Kiba> is there a way to get the list of all the gems that ever been downloaded?
<Kiba> err
tkuchiki has joined #ruby
<Kiba> uploaded
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
yfeldblum has quit [Ping timeout: 240 seconds]
jkhwan has quit [Remote host closed the connection]
Shidash has joined #ruby
VTLob has quit [Quit: VTLob]
jkhwan has joined #ruby
banjara has quit [Client Quit]
cescalante is now known as ce_afk
mary5030 has quit [Ping timeout: 272 seconds]
octarine is now known as octariNSA
typicalbender has quit [Quit: Leaving.]
yfeldblum has joined #ruby
banjara has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
jkamenik has joined #ruby
Mon_Ouie has quit [Ping timeout: 248 seconds]
tsykoduk is now known as zz_tsykoduk
jkhwan has quit [Ping timeout: 272 seconds]
nobitanobi has joined #ruby
banjara has quit [Client Quit]
<nobitanobi> Hi guys. I am trying to parse this JSON: https://gist.github.com/novito/7379496 (which according to http://jsonlint.com/) is valid. when doing JSON.parse(..) everything seems fine. However when trying to do @parsed_json['potentialProductImages'].each do |img| I get "undefined method `each' for #<String:0xb54c2970>". Any thoughts on that?
yfeldblum has quit [Remote host closed the connection]
<nobitanobi> is treating the array as a string, so I guess is not being parsed correctly?
yfeldblum has joined #ruby
jkhwan has joined #ruby
c0rn has quit [Ping timeout: 245 seconds]
srji has quit [Quit: leaving]
marr has quit [Ping timeout: 265 seconds]
<MrZYX> your "array" is a valid json string
fedalto has quit [Quit: Leaving]
gyre007 has joined #ruby
c0rn has joined #ruby
<nobitanobi> MrZYX, uhm... It's just confusing, because I get this from different page's contexts, and sometimes the array is not quoted. So, I guess it depends on the implementation of JSON they have in their JS libraries.
<nobitanobi> MrZYX, However, how would you suggest being able to parse this?
<MrZYX> the contents of that string are in turn valid json, so if you really are unable to fix whatever the source of that data is, you could pass it through JSON.parse again
<nobitanobi> uhm...
<nobitanobi> I see
<nobitanobi> yeah, that's my best bet
<nobitanobi> MrZYX, thanks :)
yfeldblum has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]