havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<Darmani> Ox0dea - It's not a song? That's what I really wanted.
<Darmani> I wanted to hear your rendition of Taylor Swift's - Wildest Dreams<3
<Ox0dea> kspencer: Definitely.
<Ox0dea> You can even reopen stdin and write there if you expect some user might redirect both stdout and stderr.
hannelita has joined #ruby
<Ox0dea> Like, if you *really* want them to see the message. :P
cschneid_ has quit [Remote host closed the connection]
<Ox0dea> RubyGems executes `rake` and sends output to the null device, so I had to write to stdin.
freerobby has quit [Client Quit]
<Ox0dea> Darmani: brb recording
SCHAAP137 has quit [Remote host closed the connection]
<Darmani> Ox0dea: Lulz :p
kalopsian has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mrsolo_ has quit [Quit: This computer has gone to sleep]
hannelita has quit [Ping timeout: 240 seconds]
hobodave has joined #ruby
last_staff has quit [Quit: last_staff]
BTRE has quit [Quit: Leaving]
<lucasb> I never thought about reopening *stdin* for writing. that was interesting
<Darmani> Ox0dea: I changed my mind. I want you to do this one
fschuindt has joined #ruby
Domaldel has joined #ruby
<lucasb> strange that it seems you don't even need to open with 'w' mode, IO.new(0) is enough
tubuliferous_ has joined #ruby
alex88 has joined #ruby
<alex88> hi there, does Time.at(somefloat) correctly handles and stores milliseconds?
cdg has quit [Remote host closed the connection]
<Ox0dea> >> Time.at(0.5).to_f # alex88
<ruby[bot]> Ox0dea: # => 0.5 (https://eval.in/507793)
<Ox0dea> So that's a yes.
<alex88> ok thanks
<Ox0dea> Sure thing.
<alex88> so I need to find out in logstash where it loses that information
BTRE has joined #ruby
moeabdol has quit [Quit: WeeChat 1.4]
kalopsian has quit [Ping timeout: 240 seconds]
TomPeed has joined #ruby
ZerGabriel has joined #ruby
wilbert has joined #ruby
atomical has joined #ruby
jottr has joined #ruby
lucasb has quit [Quit: leaving]
platzhirsch has quit [Ping timeout: 264 seconds]
dlitvak has quit [Ping timeout: 264 seconds]
Ebok has joined #ruby
maikowblue has quit [Quit: .]
firstdayonthejob has quit [Ping timeout: 240 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
matp has quit [Ping timeout: 264 seconds]
skcin7 has joined #ruby
vvalien has quit [Quit: vvalien]
freerobby has joined #ruby
FernandoBasso has quit [Quit: Leaving]
matp has joined #ruby
hxegon is now known as hxegon_AFK
<alex88> why by default I've the Time class, and with "require 'time'" I've another class called Time with more functions?
codefo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<alex88> one is http://ruby-doc.org/core-2.1.1/Time.html and the other the stdlib one?
<alex88> since in the core examples (e.g. rounds) it says to run "require 'time'"
kirillzh has joined #ruby
<apeiros> it's not another. core is required to be C. require 'time' adds methods to Time in pure ruby.
sftrabbit has quit [Quit: sftrabbit]
saneax_AFK is now known as saneax
dwfait has joined #ruby
Toledo|gone has joined #ruby
saneax is now known as Guest11950
hxegon_AFK is now known as hxegon
skofo has quit [Ping timeout: 240 seconds]
<alex88> so core is pure C code and require 'time' adds some methods? since without that something like Time.new().iso8601 doesn't work
symm-_ has joined #ruby
<alex88> this isn't working probably since it's just a shortcut with a default formatting?
symm- has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
weemsledeux has joined #ruby
victortyau has joined #ruby
kfpratt has quit [Remote host closed the connection]
Toledo|gone has left #ruby [#ruby]
musicnode has quit [Ping timeout: 272 seconds]
croberts has joined #ruby
dwfait has quit [Ping timeout: 272 seconds]
kfpratt has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
<Ox0dea> alex88: It's not working properly because Time#iso8601 is provided by the standard library, not core.
<alex88> ok thanks Ox0dea
<Ox0dea> >> %i[to_i iso8601].map { |m| Time.instance_method(m).source_location } # alex88
<ruby[bot]> Ox0dea: # => undefined method `iso8601' for class `Time' (NameError) ...check link for more (https://eval.in/507795)
binaryplease1 has joined #ruby
<Ox0dea> Dammit,
<Ox0dea> >> require 'time'; %i[to_i iso8601].map { |m| Time.instance_method(m).source_location } # alex88
<ruby[bot]> Ox0dea: # => [nil, ["/execpad/interpreters/ruby-2.3.0/lib/ruby/2.3.0/time.rb", 674]] (https://eval.in/507796)
itscalleddaytwah has joined #ruby
kies^ has joined #ruby
<Ox0dea> #source_location returns `nil` for C methods, for future reference.
symm-_ has quit [Ping timeout: 256 seconds]
binaryplease has quit [Ping timeout: 240 seconds]
<alex88> gotcha, thanks
joneshf-laptop has joined #ruby
mrsolo_ has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
devlitzi has joined #ruby
chipotle has joined #ruby
ebbflowgo has quit [Ping timeout: 240 seconds]
<alex88> since I'm trying to understand why this block of code https://github.com/elastic/logstash/blob/v2.1.1/lib/logstash/timestamp.rb#L22-L28 was returning a time without milliseconds, https://gist.github.com/alex88/deec53d2da99d3b5cf7f locally it works fine, time.to_f returns the milliseconds too, however while initialising the Logstash::Timestamp class it cuts the decimals
freerobby has quit [Quit: Leaving.]
scottschecter has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
iateadonut has joined #ruby
baweaver has quit [Remote host closed the connection]
joneshf-laptop has quit [Ping timeout: 245 seconds]
<alex88> and locally also that .utc.to_f result is correct
wolffles has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
ebbflowgo has joined #ruby
hannelita has joined #ruby
<wolffles> hey guys im back with a new problem :[
workmad3 has joined #ruby
ympeg_ has quit [Ping timeout: 250 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
<wolffles> i have a list of numbers 20 x 20 and im trying to make an array of arrays 20 numbers in each one,
ympeg has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
<wolffles> the problem is instead of just listing all 400 numbers in one single line its already nicely layed out
<eam> alex88: I assume it has something to do with the def_delegators?
SaintAardvark has joined #ruby
<Ox0dea> wolffles: File.read('euler11').split
spider-mario has quit [Remote host closed the connection]
<alex88> eam: but those delegates to the @time variable, which you're calling those methods on the main class instance isn't it? here I'm dealing just with the internal variables
<kirillzh> wolffles how are the numbers represented?
<eam> alex88: ah, I misread what you're doing
<kirillzh> Ox0dea that was quick
workmad3_ has joined #ruby
<Ox0dea> #dealwithit
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ebbflowgo has quit [Quit: ebbflowgo]
<alex88> eam: I'm trying to understand why it loses the milliseconds and right after the @time = time.utc they're gone
<Ox0dea> alex88: I could well be missing something, but I don't see where in LogStash::Timestamp it could be throwing away the precision. :/
workmad3 has quit [Ping timeout: 260 seconds]
<Ox0dea> Are you on JRuby?
dlitvak has joined #ruby
yqt has quit [Ping timeout: 260 seconds]
rehat_ has quit [Ping timeout: 264 seconds]
<Ox0dea> wolffles: It's actually a lot easier if you don't split it into 20 sub-arrays, mind.
<wolffles> oh really?
<Ox0dea> Oui.
<alex88> Ox0dea: https://gist.github.com/alex88/deec53d2da99d3b5cf7f I've added "time.utc.to_f.to_s" so it does that on ".utc" even on the argument... anyway, let me check, I haven't installed it on my system but I'm not sure if logstash has it bundled or something like that
<wolffles> i was thinking of using position numbers if you can enlighten me
<Ox0dea> Position numbers?
<wolffles> in arrays to find out if its diagonal or ajacent
<Darmani> Ox0dea: You're working hard today =p
coyo has joined #ruby
<Ox0dea> Am I?
<alex88> btw, from another log line, when instead of a bigdecimal it passes a float, it works fine
drocsid has joined #ruby
chouhoulis has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<drocsid> is this part of the standard library: http://ruby-doc.org/stdlib-2.3.0/libdoc/resolv/rdoc/Resolv/DNS.html
<drocsid> ?
<alex88> oh yeah, it seems to be jruby, sorry for bothering here
whippythellama has quit [Quit: WeeChat 1.4]
<Ox0dea> Heh. Well, glad you got it sorted.
dlitvak has quit [Ping timeout: 245 seconds]
<mondok> wolffles, File.readlines(fname).map { |ll| ll.split.map { |e| e.to_i } }
<drocsid> Can't seem to figure out how to use it.
<drocsid> NameError: uninitialized constant Resolv
<Ox0dea> mondok plz
<drocsid> LoadError: cannot load such file -- Resolv
<Ox0dea> >> require 'resolv' # drocsid
<ruby[bot]> Ox0dea: # => true (https://eval.in/507799)
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<drocsid> my bad. using Resolv
<wolffles> dont know the File class very well ill check it out thanks mondok and Ox0dea
<kspencer> Ox0dea: see pm
<Ox0dea> wolffles: If you leave it as a single flat array, here's an example of the indices of a southeast diagonal: [10,31,52,73].
<Ox0dea> See a pattern? :)
user083 has quit [Ping timeout: 260 seconds]
frem has quit [Quit: Connection closed for inactivity]
chouhoulis has quit [Ping timeout: 265 seconds]
atomical_ has joined #ruby
<wolffles> ohh i get what your talking about
musicnode has joined #ruby
jottr_ has joined #ruby
<wolffles> that makes lots more sense
<Ox0dea> Much better than mucking with vector addition when adding either 19, 20, or 21 a couple times will suffice.
<wolffles> true
atomica__ has joined #ruby
CloCkWeRX has joined #ruby
<Ox0dea> Not that it wouldn't be a good opportunity to write a simple Vector class. :)
<wolffles> ill do both ways
Ebok has joined #ruby
Ebok has quit [Client Quit]
<alex88> is there some online tool that runs ruby code with different implementations?
guacamole has joined #ruby
atomical has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 250 seconds]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> mondok: Gross.
atomical_ has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
guacamole has quit [Client Quit]
<kbni> greetings
<Ox0dea> alex88: Can't find anything for anything other than MRI. :/
<alex88> Ox0dea: yeah me too, thanks anyway
<Ox0dea> Makes sense, though. C is C.
jottr_ has quit [Ping timeout: 260 seconds]
guacamole has joined #ruby
Mon_Ouie has quit [Ping timeout: 276 seconds]
workmad3_ has quit [Ping timeout: 245 seconds]
mondok has quit [Remote host closed the connection]
scottschecter has joined #ruby
davedev24 has joined #ruby
TomyLobo has quit [Ping timeout: 256 seconds]
musicnode has quit [Quit: musicnode]
kfpratt has quit [Remote host closed the connection]
justicefries has left #ruby [#ruby]
IsaacGuerra has joined #ruby
<IsaacGuerra> ok
dlitvak has joined #ruby
<Darmani> Ox0dea - Dude what should I be working on?
<Darmani> I'm at a loss
mfb2 has quit [Remote host closed the connection]
<Ox0dea> Darmani: Have you started sucking yet?
baweaver has joined #ruby
<Darmani> Ox0dea - LMAO
<Darmani> good one.
<Ox0dea> ?twgr
<ruby[bot]> Ox0dea: I don't know anything about twgr
<Darmani> fail
<Darmani> mann I'm not made out of money
<Darmani> books cost munniess
h99h9h88 has joined #ruby
<Ox0dea> ¯\_(ツ)_/¯
<Ox0dea> Knowledge is priceless.
<Ox0dea> Or something.
<Darmani> Ox0dea - Or something =P
dlitvak has quit [Remote host closed the connection]
h99h9h88 has quit [Remote host closed the connection]
<alex88> Ox0dea: thanks for helping, seems to be a jruby bug when instancing Time from a bigdecimal
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest11950 is now known as saneax_AFK
usershell has joined #ruby
Mon_Ouie has joined #ruby
<Ox0dea> alex88: Hmm, good find. In Joda Time's defense, that's not an operation you see every day. :P
babblebre has quit [Quit: Connection closed for inactivity]
<alex88> oh nope, but I could still say "MRI handles it fine" j/k :D
<Darmani> On the other hand, if someone can tell me why this code doesn't work I would be eternally grateful.
minimalism has quit [Quit: minimalism]
atomical has joined #ruby
devbug has joined #ruby
<Ox0dea> You still don't grok #each. :<
usershell has quit [Ping timeout: 240 seconds]
<Darmani> Q.Q
<Ox0dea> Each is for *doing* something. A Hash doesn't *do* something; it just exists.
<Darmani> I want to grok it though
<Darmani> it just exists.....
<Darmani> o.O??
<Ox0dea> Your block is just yielding a Hash, which is then thrown away.
minimalism has joined #ruby
<Darmani> I have to map it? :O
<Ox0dea> If you want to?
* Darmani sighs
binaryplease1 has quit [Ping timeout: 250 seconds]
<wolffles> im getting (Errno::ENOENT) even tho the file path is correct
atomical_ has joined #ruby
atomica__ has quit [Ping timeout: 256 seconds]
<Ox0dea> You "re-implemented" a solid chunk of Enumerable last week, and today you're futzing with guessing which method to use. Something's not right.
<Ox0dea> You're not trying to learn.
<Darmani> I'm experimenting D:
<Ox0dea> It's not working.
<Darmani> Well yeah... But I just wanted to see if it would work...
tvw has quit [Remote host closed the connection]
<Ox0dea> Guessing is for suckers.
<Darmani> -,-
dwfait has joined #ruby
<Ox0dea> wolffles: Computers can't lie.
<Radar> wolffles: hint: the file path is not correct
<wolffles> i did puts Dir.pwd
<wolffles> your right
<Radar> wolffles: code plz
<Radar> you're*
<Darmani> Ox0dea - I mean at least I have the right idea though right? I'm not like... Struggling to understand what hashes are and arrays and what not... It's just making them and transforming them now.
<Darmani> That's not progress? Q.Q
<wolffles> oh radar you would hate texting me
<Radar> wolffles: c
n_blownapart has joined #ruby
<Ox0dea> Darmani: It is progress, but it's gonna be slow going if you don't stop to internalize what you're learning.
dcunit3d has joined #ruby
ebbflowgo has joined #ruby
* Darmani sighs
<Darmani> Ox0dea - rite..
atomical has quit [Ping timeout: 256 seconds]
<volty> >> "Ciao miao hao hi ciao".split.inject(Hash.new(0)) { |h, w| h[w.downcase] += 1; h }
<ruby[bot]> volty: # => {"ciao"=>2, "miao"=>1, "hao"=>1, "hi"=>1} (https://eval.in/507801)
<Ox0dea> Needs more #each_with_object.
<Ox0dea> And the #downcase is in the wrong spot.
kfpratt has joined #ruby
<Darmani> >> "why does programming suck so much".each_with_object(Hash.new(0)){|e, v| v[e] += 1}
<Ox0dea> Denied.
<Radar> Ah the Eternal Question is asked again.
dwfait has quit [Ping timeout: 240 seconds]
<Darmani> Ox0dea - Shutuppp at least I got it right xP
mfb2 has joined #ruby
<Radar> >> "why does programming suck so much".each_with_object(Hash.new(0)){|e, v| v[e] += 1}
<Radar> >> "why does programming suck so much".each_with_object(Hash.new(0)){|e, v| v[e] += 1}
<ruby[bot]> Radar: # => undefined method `each_with_object' for "why does programming suck so much":String (NoMethodError) ...check link for more (https://eval.in/507803)
<Radar> Darmani: Did you? ;)
<Darmani> Radar - Lol......
<Darmani> Oh shit
musicnode has joined #ruby
<Darmani> I forgot to split the string.
<baweaver> thems the breaks
<Darmani> >> "How come I can't use the bot. It's not fair.".split.each_with_object(Hash.new(0)){|e,v| v[e] += 1}
Guerra has joined #ruby
atomical has joined #ruby
griffindy has joined #ruby
<Radar> :)
unreal has joined #ruby
<Darmani> Radar: xP
rsc___ has joined #ruby
rsc___ has quit [Client Quit]
nbdy has joined #ruby
<Darmani> Radar - http://ideone.com/EM5RGV
<Darmani> Here's what I don't get
atomical_ has quit [Ping timeout: 256 seconds]
skofo has joined #ruby
<Darmani> OH WAIT
<Radar> Yes the code is doing exactly as you ask.
<Darmani> DONT LOOK AT THAT
<Darmani> I just had an epiphany.
IsaacGuerra has quit [Ping timeout: 276 seconds]
<Radar> I looked at it.
<Radar> Twice.
<Darmani> NUUU
<Radar> Three times now.
<Darmani> That was never there
<Radar> I can't stop locking,.
<Radar> It has me.
<Ox0dea> I'm gonna go look too.
<Darmani> Lol
<Radar> Looking*
<Darmani> NUU
wonk has joined #ruby
<Darmani> I get it now.
skofo has quit [Client Quit]
conmaxo has joined #ruby
mfb2 has quit [Ping timeout: 250 seconds]
<Ox0dea> I agree with the output: https://eval.in/507808
<Ox0dea> Don't see why String shouldn't be Enumerable.
<Radar> hahaha
<Darmani> this doesn't work either.
<Darmani> What am I missinggg
<Radar> what is word.each.length supposed to be doing?
n_blownapart has quit []
<Ox0dea> Saints preserve us.
<Radar> Perhaps you want to SELECT all the WORDS that are the same as the current WORD and then COUNT them?
conmaxo has quit [Quit: Leaving]
xet7 has quit [Quit: Leaving]
<Darmani> :O
<Darmani> Radar - That's how I have to do it o.o
devbug has quit [Ping timeout: 240 seconds]
itscalleddaytwah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
bithon has quit [Ping timeout: 240 seconds]
<Darmani> Radar, Ox0dea - http://ideone.com/EM5RGV
gix has quit [Ping timeout: 272 seconds]
hannelita has quit [Remote host closed the connection]
<Radar> Consider splitting the words only once.
<Ox0dea> Nice Array of Hashes; that'll come in handy, surely.
Ebok has joined #ruby
<Darmani> Why can't everyone just be happy for me
<Darmani> Q.Q
<Radar> Ox0dea: Beat me to it.
<Radar> Darmani: We are happy.
<Radar> Darmani: Like Russian Gymnastics coach happy.
ebbflowgo has quit [Quit: ebbflowgo]
<Radar> 9.5/10 is not 10.
<Ox0dea> ^
<Radar> :D :D
<Ox0dea> <3 <3
<Darmani> Russian Gymnastics coach
x77686d has quit [Quit: x77686d]
<Darmani> Sounds like you've had a terrible past Radar lol
<Ox0dea> It's a synonym for High Expectations Asian Father.
joneshf-laptop has joined #ruby
<Darmani> Was that your experience Ox0dea? =P
<Ox0dea> Darmani: 9.5/10 was a paddlin'.
<Radar> Ox0dea: "B? You Asian, not Bsian"
<Darmani> Ox0dea - Lmaoooo
<volty> enough to count if you want to realize who's doped, all the rest is propaganda
<Radar> Darmani: I just tried being better than the kids in the ghetto where I grew up and so I still have a massive "I must compete at everything and be the best" streak.
<volty> count medals
<volty> I mean the share of medals
<Ox0dea> Straya has ghettos?
devlitzi has quit [Quit: devlitzi]
<Radar> Ox0dea: Better believe it.
<Radar> (or else)
<Darmani> Radar - damn son. Never would have thought.
<Ox0dea> Ha.
gix has joined #ruby
<Ox0dea> I do, of course; I just like saying Straya.
mrsolo_ has quit [Quit: This computer has gone to sleep]
<Ox0dea> Straya, Murica, and Yurop.
yfeldblum has joined #ruby
<Radar> Canadia.
<Darmani> Straya = Australia...?
<Radar> Darmani: Yes.
kirillzh has joined #ruby
kirillzh has quit [Client Quit]
<Darmani> It took me way too long to figure that out lol
<Ox0dea> this.guy
underplank has quit [Quit: underplank]
<Radar> Ox0dea: You were noob once too.
<Darmani> Radar: HE WAS??
<Ox0dea> We're all evernoobs in one way or another.
kirillzh has joined #ruby
<Radar> Oh yeah he was. They had to invent a new measurement of time because he wasn't noob for very long.
<Ox0dea> Planck time long time.
<Darmani> riiiight
<volty> experience with sequel ? (in the chan there are mainly zombies)
<Radar> volty: likely
pawnbox has joined #ruby
ebbflowgo has joined #ruby
<volty> i got nervous with all repeating of checking etc etc.
craysiii has quit [Quit: Leaving.]
<volty> could this go, or there are other ways to check and/or insert if not present ?
<Radar> Got an example of how that is used?
<Radar> I am not understanding the alphabet soup
asccigcc has quit [Read error: Connection reset by peer]
<Ox0dea> volty: Er, could you not just use UNIQUE on the table?
<Darmani> Now what's wrong with it? -,-
<Radar> Darmani: look hard at line 4.
<Radar> Darmani: why are you calling select on word?
asccigcc has joined #ruby
<Darmani> oh shit that shouldn't be there
<Darmani> hold on.
govg has joined #ruby
<Ox0dea> volty: I realize you're going for unique by attribute rather than record in the code, but maybe unique by record is what you actually want?
<Ox0dea> Ah, never mind, then.
<volty> Ox0dea: already unique by attribute
<Radar> Darmani: You will want to look at using .each_with_object instead of .each on line 3.
<volty> don't want exception, don't want to check. My question was if already there was something like that - for not reinventing the wheel. I'm quite new to sequel (few days)
<Darmani> Radar - yeah I know... I could just use that. I really thought I could get it to work like this though...
<Radar> Darmani: No, it won't do what you want it to do with the .each.
blackgoat has quit [Ping timeout: 260 seconds]
<Darmani> Oh shit that's right. Ox0dea told me not to use that.
<volty> I mean I don't want to check all the time in the main code. (when appropriate, of course)
bb010g has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
Jardayn has quit [Ping timeout: 265 seconds]
amclain has quit [Quit: Leaving]
frog0909_ has joined #ruby
Pande has joined #ruby
<Darmani> Alright... Well I guess I got it to work. I suppose it's not practical though cause the hash is within an array.
guacamol_ has joined #ruby
<Darmani> Whatever. I'm glad I got it to work. I just had to see if it was possible like this lol
<volty> ah ah ah
<Ox0dea> volty: I think you'll want to combine #exists and #invert.
<Ox0dea> EXISTS doesn't have to do any record enumeration.
guacamole has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
ramfjord_ has quit [Ping timeout: 240 seconds]
<Ox0dea> Still seems like you want to make the table UNIQUE on url, though.
<volty> Ox0dea: I must have missed something. I was listing instance_methods, saw exists, tried it, and saw it wants no parameters. I'll check again
davedev24 has quit [Ping timeout: 250 seconds]
nbdy has quit [Ping timeout: 256 seconds]
wilbert has quit [Ping timeout: 260 seconds]
frog0909 has quit [Ping timeout: 276 seconds]
<volty> Ox0dea: The table is already unique on URL. So, if you try to insert duplicate it throws exception - so you have to check if it's already there, and it's so annoying for certain tables.
mjuszczak has joined #ruby
arlek has joined #ruby
underplank has joined #ruby
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ebok has joined #ruby
mfb2 has joined #ruby
mfb2 has quit [Remote host closed the connection]
toretore has joined #ruby
mfb2 has joined #ruby
underplank has quit [Client Quit]
<Ox0dea> volty: Just trying to avoid using exceptions as control flow, then?
mjuszczak has quit [Ping timeout: 265 seconds]
trabulmonkee has joined #ruby
<volty> Yes, exceptions or checking. Just like insert into the array if not present, and return index. . I have to add a return of id (primary, auto) of that row.
moeabdol has joined #ruby
<Ox0dea> volty: How about #insert_ignore?
<volty> next thing that I miss is a hook for modify & insert (notify of). I saw that sqlite has it, but sequel has not implemented it. And the author of sequel told me (in the rel. chan) that he isn't going to implement it at that level (though notifiers exist at activerecord-like level)
<volty> Ox0dea: to name it that way?
<Ox0dea> volty: It's a method you should be able to call.
<Darmani> So... This is a really stupid question. But when is it appropriate to use each & map?
zambini has quit [Quit: Leaving.]
<Ox0dea> #each for iteration, #map for transformation.
<volty> yes, I was thinking half an hour how to name it :)
<Ox0dea> !next
<Ox0dea> volty: No, I mean, instead of #insert, you can use #insert_ignore.
<Ox0dea> For SQLite, MySQL, and Postgres, anyway.
itscalleddaytwah has joined #ruby
<volty> Ox0dea: I don't see it in Sequel::Dataset.instance_methods. You say I should go with injecting a literal SQL INSERT_IGNORE?
<volty> nice, thx
<Ox0dea> volty: What, no? Don't use raw SQL.
blur3d has joined #ruby
chipotle has quit [Quit: cheerio]
<volty> no, sqlite seems to not have it.
treaki_ has quit [Ping timeout: 276 seconds]
<volty> ok, I am finding it
<Ox0dea> But you shouldn't have to do anything fancy to get the right statement to execute.
C0L0R has joined #ruby
pdoherty has joined #ruby
<volty> ok, I got it, thx a lot :)
<Ox0dea> Happy to help. :)
hannelita has joined #ruby
arescorpio has joined #ruby
dlitvak has joined #ruby
foufou31d has quit [Ping timeout: 252 seconds]
<volty> only 'has' could remain, though remained as 'any?'
chouhoulis has joined #ruby
<volty> *renamed
mfb2 has quit [Remote host closed the connection]
treaki_ has joined #ruby
<volty> gn
volty has quit [Quit: Konversation terminated!]
<Ox0dea> Darmani: Okay, I think I got this.
<Ox0dea> What does #puts return?
musicnode has quit [Ping timeout: 260 seconds]
dwfait has joined #ruby
Pathfinder_ has quit [Ping timeout: 256 seconds]
mary5030 has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
Pathfinder_ has joined #ruby
mfb2 has joined #ruby
ESpiney has joined #ruby
dwfait has quit [Ping timeout: 276 seconds]
<Darmani> Ox0dea - aw shit man
<Darmani> I went to take a shower
<Ox0dea> No worries.
<Darmani> uhhh puts returns something with \n
C0L0R has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Negatory.
<Darmani> Q.Q
bronson has joined #ruby
<Ox0dea> That's what it *does*, but what's its return value?
govg has quit [Ping timeout: 276 seconds]
<Darmani> uhh...
asccigcc has quit [Quit: asccigcc]
<Darmani> I don't know. Is that a trick question? Lol
<Ox0dea> No.
hlegius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
govg has joined #ruby
<Ox0dea> Get back to me when you really, genuinely, honestly understand what's happening there.
* Darmani sighs
<Darmani> okay..
<Ox0dea> It will be crucial to our understanding of the difference between #each and #map.
<Darmani> right...
bronson has quit [Ping timeout: 265 seconds]
Bloomer has joined #ruby
jaequery has joined #ruby
isomorph1smes is now known as isomorphismes
mfb2 has quit [Remote host closed the connection]
<Darmani> Ox0dea - Am I allowed to ask questions? o.o
<eam> no
<eam> most especially not that one
<Darmani> lmao
wheresmyjetpack has joined #ruby
* baweaver scratches beard sagely
* Darmani can't grow a beard
fschuindt has quit [Quit: WeeChat 1.3]
pdoherty has quit [Ping timeout: 276 seconds]
chipotle has joined #ruby
C0L0R has joined #ruby
craigp has quit [Remote host closed the connection]
mfb2 has joined #ruby
jaequery has quit [Client Quit]
<Ox0dea> You can have half of mine?
craigp has joined #ruby
jaequery has joined #ruby
<Darmani> Ox0dea - Thanks man. That means a lot.
<Ox0dea> I think it means we're both gonna look really silly.
Pande has quit [Ping timeout: 264 seconds]
<Darmani> pshh.
<Ox0dea> As if, amirite?
jaequery has quit [Client Quit]
<Darmani> sorite
<Ox0dea> Anyway, look, #map literally invokes #each: https://eval.in/507820
<Ox0dea> #select and #reduce and #map and all the other Enumerable methods *have* to visit every element, and that's why #each exists.
<Darmani> :O they all use each??
<Ox0dea> You could theoretically use any Enumerable method to implement any other, since #each just yields every element to a block, and a block is just a place to "do something".
mfb2 has quit [Ping timeout: 264 seconds]
<Ox0dea> We should strive to have our "do something"s be The Right Thing.
usershell has joined #ruby
<Ox0dea> All of these methods seem so similar because, well, they are; they receive every element and "do something".
<Darmani> Right....
craigp has quit [Ping timeout: 240 seconds]
<Darmani> But "each" would be like the base method or foundation that all the others follow?
<Darmani> They just do "extra" things too?
<Ox0dea> It couldn't be any other way.
guacamole has joined #ruby
<Darmani> But so.. map could be considered each_with_array?
<Darmani> I mean if that was a thing.
atomical_ has joined #ruby
guacamol_ has quit [Ping timeout: 260 seconds]
<Ox0dea> each_with_transformation.
<Darmani> so what would you call select?
<Ox0dea> each_with_choice
<Darmani> :O
* Darmani mind blown
<Ox0dea> My work here is done.
Ox0dea has left #ruby ["WeeChat 1.5-dev"]
<Darmani> LOL
<Darmani> What the hell??? How come none of the tutorials ever say that shit??
<Darmani> That seems SO goddamn important and no one felt the need to tell me.....
<Darmani> wttttffff
<baweaver> you weren't ready for it yet
<Darmani> baweaver - lies.
jaequery has joined #ruby
<eam> well, each isn't quite a base method for all of these
pdoherty has joined #ruby
<eam> some of them may not iterate through every element, for example
newbie22 has joined #ruby
<baweaver> find
<baweaver> though that's just a break
Ox0dea has joined #ruby
itscalleddaytwah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<baweaver> I'd have to look to remember, Mondays are hard
cholq has joined #ruby
<baweaver> back so soon from your mike drop Ox0dea?
<Darmani> Lol ike
<Ox0dea> Darmani: Don't believe their lies! https://eval.in/507839
<Darmani> ikr*
atomical has quit [Ping timeout: 265 seconds]
<baweaver> _though that's just a break_
<Ox0dea> > well, each isn't quite a base method for all of these
<Ox0dea> I was mostly debunking that one.
wolffles has quit [Quit: wolffles]
Pathfinder_ has quit [Remote host closed the connection]
<baweaver> ask eam
rsc___ has joined #ruby
<eam> Ox0dea: for all methods which iterate?
hxegon has quit [Ping timeout: 250 seconds]
<Darmani> Ox0dea - Honestly I'm still kind of struggling with the realization you just gave me... I wonder why it never occurred to me before.
itscalleddaytwah has joined #ruby
<Ox0dea> eam: For all Enumerable methods.
<eam> did I sall all Enumerable methods?
<eam> say?
wolffles has joined #ruby
cholq has quit [Client Quit]
<eam> ;)
<newbie22> Ok, I am learning ruby and I have a problem, can someone help me with it??
<Ox0dea> Unlikely.
<baweaver> Unsure
<havenwood> Definitely yes.
<baweaver> lies
<Ox0dea> Insufficient data for meaningful answer.
<baweaver> ^'
<Darmani> lmao Ox0dea
<baweaver> newbie22: what be the issue?
<newbie22> Okay then no,,
sneakerhax has joined #ruby
<Ox0dea> newbie22: Tell us your sins, child.
<Darmani> LOL
<newbie22> I have a script I am trying to get to work, but it's failing
<Ox0dea> Keep going.
<newbie22> how can I post the script ??
<havenwood> newbie22: What's the error?
jaequery has quit [Ping timeout: 240 seconds]
<baweaver> !gist
<Ox0dea> ?gist newbie22
<ruby[bot]> newbie22: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<havenwood> newbie22: gist.github.com
<baweaver> ...every time.
betafive has joined #ruby
<baweaver> so many bots
<Darmani> Ox0dea - That made me laugh so hard lol
guacamole has quit [Read error: Connection reset by peer]
truenito has joined #ruby
guacamole has joined #ruby
<newbie22> ok, here it is
bungoman has joined #ruby
joneshf-laptop has quit [Ping timeout: 276 seconds]
dlitvak has quit [Ping timeout: 265 seconds]
jottr_ has joined #ruby
guacamole has quit [Client Quit]
<baweaver> and what's wrong with it?
<baweaver> other than no divide being present after line 17
<newbie22> ex21.rb:13:in `*': nil can't be coerced into Fixnum (TypeError)
<newbie22> from ex21.rb:13:in `multiply'
<newbie22> from ex21.rb:32:in `<main>'
<havenwood> ^ one does not look like the others
<baweaver> it's in divide
<havenwood> >> puts "DIVIDING #{a} / #{b}"
<ruby[bot]> havenwood: # => undefined local variable or method `a' for main:Object (NameError) ...check link for more (https://eval.in/507841)
<baweaver> also, return is not needed in ruby
<havenwood> ahh, wanted a `nil` return but forgot about errors
<newbie22> oh yeah, a divide
<baweaver> >> def add(a,b) a + b end; add(1,2)
<ruby[bot]> baweaver: # => 3 (https://eval.in/507842)
<havenwood> newbie22: #puts returns: nil
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
mfb2 has joined #ruby
<havenwood> newbie22: It prints, but the return value is nil.
<baweaver> also you _probably want to use to_f on one of those numbers unless you want integer division
<baweaver> >> 5/2 # integer division
<ruby[bot]> baweaver: # => 2 (https://eval.in/507843)
<havenwood> newbie22: Note how #puts isn't the last line in your #add, #subtract or #multiply methods.
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> >> 5/2.0 # float
<eam> omg 5 / 2 isn't 2, ruby is buggy
<ruby[bot]> baweaver: # => 2.5 (https://eval.in/507844)
<havenwood> eam: agreed!
<Ox0dea> >> 5/2r
<ruby[bot]> Ox0dea: # => (5/2) (https://eval.in/507845)
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> >> 5.fdiv 2
<ruby[bot]> havenwood: # => 2.5 (https://eval.in/507846)
sdothum has joined #ruby
<Ox0dea> >> 5/2i
<ruby[bot]> Ox0dea: # => ((0/1)-(5/2)*i) (https://eval.in/507847)
<Ox0dea> That doesn't look right, but I don't know enough about Complexity to dispute it.
<baweaver> you're having fun
<baweaver> welcome to IRC, where we take a simple problem and poke it to death.
<newbie22> Thanks guys
newbie22 has quit [Quit: Leaving]
<Darmani> baweaver lol
<havenwood> newbie22: happy coding!
Anothermoron has quit [Quit: Leaving]
sdothum has quit [Client Quit]
<baweaver> they DC'd already
<havenwood> aye, the nick lost color
* Ox0dea Marvels
<havenwood> ;)
jottr_ has quit [Ping timeout: 264 seconds]
<Darmani> Alright I'll be back. Probably. Maybe. We'll see.
wheresmyjetpack has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
wheresmyjetpack has joined #ruby
<Ox0dea> Bye, Darmani. I'm glad we met.
<Darmani> Not like that dum dum -__-
<Darmani> I mean today.
dlitvak has joined #ruby
<kspencer> when doing a gather, would it be say a.ask(Question.gather("Question")) or something else, because I'm not too sure x_X
sdothum has joined #ruby
<kspencer> in highline :|
victortyau has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
victortyau has joined #ruby
victortyau has quit [Client Quit]
poguez_ has quit [Quit: Connection closed for inactivity]
wolffles has quit [Quit: wolffles]
dlitvak has quit [Ping timeout: 256 seconds]
truenito has quit [Remote host closed the connection]
dlitvak has joined #ruby
truenito_ has joined #ruby
jbrhbr has quit [Quit: Leaving.]
Dimik has quit [Ping timeout: 240 seconds]
jaequery has joined #ruby
x77686d has joined #ruby
truenito_ has quit [Remote host closed the connection]
truenito_ has joined #ruby
truenito_ has quit [Remote host closed the connection]
truenito has joined #ruby
wolffles has joined #ruby
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
shadoi has quit [Quit: Leaving.]
newbie22 has joined #ruby
truenito has left #ruby [#ruby]
Sucks has joined #ruby
rsc___ has quit [Quit: rsc___]
truenito has joined #ruby
<havenwood> Hark ye Rubyists, step lazily!
dlitvak has quit [Ping timeout: 276 seconds]
rsc___ has joined #ruby
znz_jp has quit [Ping timeout: 260 seconds]
terminalrecluse has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<kspencer> Ox0dea: still around?
<havenwood> `1.step.lazy` rather than `1.upto(Float::INFINITY).lazy` seems like a good thing.
<havenwood> In third place: 1.upto(Float::NAN).lazy
<Ox0dea> kspencer: The documentation is pretty straightforward: http://www.rubydoc.info/github/JEG2/highline/HighLine%2FQuestion%3Agather
<kspencer> Ox0dea: I'm actually looking at how to set the output with initialize, I found more examples on gather
<kspencer> when i tried it said initialize was private
<baweaver> that's what new is for
newbie22 has quit [Quit: Leaving]
<kspencer> .new(output=$stderr) then @baweaver
alex88 has quit [Quit: Leaving...]
ebbflowgo has quit [Read error: Connection reset by peer]
<kspencer> ?
<Ox0dea> havenwood: I feel like `1.step 2` does the wrong thing.
wheresmyjetpack has quit [Ping timeout: 265 seconds]
terminalrecluse has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> Why have a method that does exactly what we already have a literal for?
<havenwood> Ox0dea: I think that's why they semi-deprecated the positional args in favor of keywords.
_djbkd has quit [Remote host closed the connection]
truenito has quit [Remote host closed the connection]
<Ox0dea> Gone are the days of the subtle satisfaction of symmetry.
<havenwood> by: and to:
truenito has joined #ruby
<kspencer> er did that now I get stupidly that the first ask just goes straight to an error about eof?
<Ox0dea> Making #step one of the handful of core methods that take keyword arguments. :/
<kspencer> Server Name? /var/lib/gems/2.0.0/gems/highline-1.7.8/lib/highline.rb:869:in `eof?': not opened for reading (IOError)
<Ox0dea> kspencer: You're trying to read from $stderr.
<Ox0dea> You're gonna have a bad time.
_djbkd has joined #ruby
<kspencer> eh?
<baweaver> back and forth on deployments so probably won't answer much right now.
<kspencer> hmm think i fixed it, by using the order
newdan has quit [Remote host closed the connection]
<kspencer> a = HighLine.new($stdin, $stderr)
<kspencer> I was trying output = $stderr
<kspencer> :|
<baweaver> $stdout
<Ox0dea> Nah, he wants $stderr; got bit by positional arguments.
<baweaver> ah
devlitzi has joined #ruby
crdpink2 has joined #ruby
<havenwood> Ox0dea: It'd be nice if whatever `by:` was took a Proc as well.
<kspencer> baweaver: I want the question to be in $stderr so it doesn't get caught by a >
<Ox0dea> havenwood: Everything should take a Proc. :)
<havenwood> Ox0dea: indeed
crdpink has quit [Ping timeout: 250 seconds]
terminalrecluse has joined #ruby
maletor_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kspencer> dis is nice
<kspencer> Numeric? A00
<kspencer> Your answer isn't valid (must match /[0-9][0-9A-Z][0-9A-Z]/).
<kspencer> ?
znz_jp has joined #ruby
<kspencer> sorry for 3+ :<
<havenwood> >> 'A' =~ /[0-9]/
<ruby[bot]> havenwood: # => nil (https://eval.in/507857)
petersaints has quit [Ping timeout: 250 seconds]
hxegon has joined #ruby
<havenwood> kspencer: you can `\d` in place of `[0-9]`
<kspencer> so [A-Z]\d\d
<kspencer> ?
<kspencer> er
<kspencer> nvm
<kspencer> I'm tired
<havenwood> kspencer: if you want upcase and two digits?
QpQ4 has joined #ruby
bungoman has quit [Remote host closed the connection]
hxegon is now known as hxegon_AFK
<kspencer> upcase alpha, and 2 either digit or alpha
yeticry has quit [Remote host closed the connection]
<kspencer> er
truenito has quit [Quit: truenito]
<kspencer> digit, then two digit or alpha upcase
truenito has joined #ruby
moeabdol has quit [Quit: WeeChat 1.4]
ramfjord has joined #ruby
<Ox0dea> Then the regex is correct, but it doesn't match "A00".
<kspencer> I don't want it to
<kspencer> lol
<kspencer> that's why I said the validation was nice
<kspencer> its a TS6 SID numeric
joneshf-laptop has joined #ruby
C0L0R has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> String#matchcase might be nice.
<Ox0dea> 'foobar'.matchcase('Az') == 'FoObAr'
<kspencer> also, why is it saying .gather is a private one now :|
hxegon_AFK is now known as hxegon
<Ox0dea> Computers can't lie.
<Ox0dea> You're invoking #gather on something you're not supposed to.
<Ox0dea> It's just an attribute reader anyway, so that's probably not the method you're looking for.
petersaints has joined #ruby
<kspencer> Well I'm trying to get <admin> lines from it into an array
solocshaw has quit [Ping timeout: 245 seconds]
<kspencer> and that seemed the logical choice
<havenwood> >> 'À১9' =~ /[[:upper:]][[[:upper:]][[:digit:]]]{2}/
<ruby[bot]> havenwood: # => 0 (https://eval.in/507858)
podman has quit [Quit: Connection closed for inactivity]
pdoherty has quit [Ping timeout: 265 seconds]
hxegon has quit [Quit: BRB]
baweaver has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
Pathfinder_ has joined #ruby
Rasi has quit [Quit: WeeChat 1.3]
Rasi has joined #ruby
truenito has quit [Quit: truenito]
Rasi has quit [Client Quit]
Rasi has joined #ruby
truenito has joined #ruby
zast has joined #ruby
asccigcc has joined #ruby
truenito has quit [Client Quit]
Darmani has quit [Quit: Page closed]
QpQ4 has quit [Quit: Textual IRC Client: www.textualapp.com]
treaki has joined #ruby
truenito has joined #ruby
dlitvak has joined #ruby
truenito has quit [Remote host closed the connection]
truenito has joined #ruby
underplank has joined #ruby
treaki_ has quit [Ping timeout: 276 seconds]
braincrash has joined #ruby
blt has joined #ruby
truenito has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 240 seconds]
truenito has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
truenito has quit [Remote host closed the connection]
truenito has joined #ruby
truenito_ has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
truenito_ has quit [Client Quit]
truenito has quit [Remote host closed the connection]
truenito has joined #ruby
Sucks has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 260 seconds]
Sucks has joined #ruby
mprelude has quit [Quit: WeeChat 1.3]
truenito has quit [Remote host closed the connection]
truenito has joined #ruby
hobodave has joined #ruby
tildes has joined #ruby
tyrbo has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
c355e3b has quit [Quit: Connection closed for inactivity]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
diegoviola has quit [Quit: WeeChat 1.3]
dwfait has joined #ruby
jcdesimp has quit [Ping timeout: 264 seconds]
Sucks has quit [Read error: Connection reset by peer]
truenito has quit [Ping timeout: 256 seconds]
jcdesimp has joined #ruby
mfb2 has quit [Remote host closed the connection]
C0L0R has joined #ruby
dwfait has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
bronson has joined #ruby
mfb2 has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
uri_ has joined #ruby
_djbkd has quit [Remote host closed the connection]
uri_ has quit [Client Quit]
gix has quit [Ping timeout: 276 seconds]
hannelita has quit [Remote host closed the connection]
asccigcc has quit [Quit: asccigcc]
itscalleddaytwah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jcdesimp has quit [Remote host closed the connection]
gix has joined #ruby
bungoman has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
devlitzi has quit [Quit: devlitzi]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astrobun_ has joined #ruby
arlek has quit [Ping timeout: 240 seconds]
krz has joined #ruby
UtkarshRay has joined #ruby
norc has quit [Ping timeout: 252 seconds]
jroddevs has joined #ruby
<jroddevs> hi anyone know how to stub an if call inside of a method test in rspec?
pawnbox has quit [Ping timeout: 250 seconds]
arescorpio has quit [Quit: Leaving.]
jottr_ has joined #ruby
craigp has joined #ruby
trabulmonkee has quit [Quit: Connection closed for inactivity]
PedramT has joined #ruby
houhoulis has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 256 seconds]
bungoman has quit []
usershell has quit [Remote host closed the connection]
jam_ has joined #ruby
arlek has joined #ruby
ayonkhan has joined #ruby
workmad3 has joined #ruby
pawnbox has joined #ruby
mary5030 has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
jroddevs has quit [Quit: Leaving...]
freerobby has quit [Quit: Leaving.]
Kryptonical has quit [Ping timeout: 260 seconds]
skcin7 has joined #ruby
baweaver has joined #ruby
chipotle has joined #ruby
colegatron has quit [Ping timeout: 250 seconds]
chipotle has quit [Max SendQ exceeded]
tyrbo has quit [Ping timeout: 256 seconds]
Kryptonical has joined #ruby
chipotle has joined #ruby
PedramT has quit [Remote host closed the connection]
sigurding has joined #ruby
lxsameer has joined #ruby
colegatron has joined #ruby
Kryptonical has quit [Ping timeout: 240 seconds]
PedramT has joined #ruby
ccaffeini has joined #ruby
Kryptonical has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mon_Ouie has quit [Ping timeout: 265 seconds]
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
underplank has quit [Quit: underplank]
tildes has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
znz_jp has quit [Quit: kill -QUIT $$]
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
znz_jp has joined #ruby
arlek has quit [Ping timeout: 250 seconds]
Lildirt|SomeoneT has quit [Read error: Connection reset by peer]
ur5us has quit [Remote host closed the connection]
_djbkd has joined #ruby
astrobun_ has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Kryptonical has quit [Ping timeout: 260 seconds]
sigurding has quit [Quit: sigurding]
Ilyes512 has joined #ruby
darkf has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
devbug has joined #ruby
PedramT has quit [Remote host closed the connection]
Kryptonical has joined #ruby
PedramT has joined #ruby
ur5us has joined #ruby
user_ has joined #ruby
astrobun_ has joined #ruby
PedramT has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 256 seconds]
sigurding has joined #ruby
ur5us has joined #ruby
blackgoat has joined #ruby
devlitzi has joined #ruby
arup_r has joined #ruby
ccaffeini has quit [Ping timeout: 250 seconds]
Ebok has joined #ruby
jgpawletko has quit [Ping timeout: 245 seconds]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
C0L0R has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dwfait has joined #ruby
norc has joined #ruby
aganov has joined #ruby
<norc> ast>> Viva(:COUNTER).--> { c += 1 } { |v| c = v }
<ruby[bot]> norc: I have parsed your code, the result is at https://eval.in/507886
<norc> Ox0dea: Looks neat.
<norc> Ox0dea: How does Viva work exactly?
PedramT has joined #ruby
framling has quit [Remote host closed the connection]
<norc> Ox0dea: Im guessing it essentially takes a gvar, calls the lambda with the gvar as arg, yields the result to the block, and writes the result back into the gvar - every time the gvar is referenced?
dwfait has quit [Ping timeout: 245 seconds]
weemsledeux has joined #ruby
<Ox0dea> norc: It's open-source. :P
<norc> Oh.
<norc> The lack of sleep has deprived me of my deductive skills.
ccaffeini has joined #ruby
ur5us has joined #ruby
<norc> Ox0dea: Remove the comments and then open a bug for discussion?
<norc> ;-)
nbdy has joined #ruby
<Ox0dea> Ah, well, there's no getting around $-10 and under being syntax errors.
<Ox0dea> It's essentially an accident of history that $-9 to $-1 are valid.
bronson has joined #ruby
nbdy has quit [Max SendQ exceeded]
<Ox0dea> $-<foo> is valid because they exist to contain command-line arguments, and better to preempt the addition of a new one than have a whitelist.
jgpawletko has joined #ruby
<norc> What the heck is rb_define_virtual_variable
<Ox0dea> There's a README. :P
<norc> Is that some magic for some $ vars?
<Ox0dea> Indeed.
<norc> One does not simply read documentation when dealing with Ruby C code.
<Ox0dea> Ah, well, fair enough.
user_ has quit [Ping timeout: 250 seconds]
claw has quit [Ping timeout: 245 seconds]
<Ox0dea> All globals are actually "hooked" variables, which take a default value, and a C function for the getter and setter.
<Ox0dea> All of these can be zero values.
user has joined #ruby
musicnode has joined #ruby
<norc> I simply assumed the match would be setting them, but I guess a simple scope test would then invalidate that?
<norc> (For regex matches I mean)
<Ox0dea> I'm still not sure how exactly $~ works.
musicnode has quit [Client Quit]
<Ox0dea> I can't figure out how to scope Viva-defined variables. :/
<Ox0dea> What with Ruby closures being closures, I'm not sure it's possible without hax.
PedramT has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cheerio]
solars has joined #ruby
<Ox0dea> Mm, yeah, match_setter() is crazy.
noyb has joined #ruby
noyb has quit [Client Quit]
<norc> Ox0dea: Oh!
<Ox0dea> Very quickly gets into CFP land.
barajasfab has quit [Ping timeout: 250 seconds]
<norc> So that is why you kept nagging me about the hash tables Ruby uses for lvars?
<Ox0dea> Hm?
PedramT has joined #ruby
<norc> I remember you asking me a few times about vtables
<Ox0dea> The only issue I had with Viva was that I spent an inordinate amount of time trying to decide how best to dynamically define C functions at runtime.
<Ox0dea> I was trying to use delayed macro expansion and GCC's __COUNTER__ magic.
<Ox0dea> And then I thought about using dlopen().
<Ox0dea> And then I realized that, duh, of course the relevant ID gets passed to the accessor function.
hannelita has joined #ruby
user has quit [Ping timeout: 265 seconds]
<Ox0dea> I found out that there are such things as "junk" IDs and that the empty identifier is not considered one, which might be a bug.
noyb has joined #ruby
noyb has quit [Client Quit]
<shevy> you two remind me of Statler and Waldorf
jcdesimp has joined #ruby
user has joined #ruby
karapetyan has joined #ruby
<Ox0dea> Curmudgeonly, or--?
noyb has joined #ruby
noyb has quit [Client Quit]
<norc> Ox0dea: Okay I get it now. You just give generic access to virtual variables, allowing custom getters/setters.
<norc> "just"
<Ox0dea> norc: Aye, pretty straightforward in the end.
<norc> Ox0dea: Just for giggles, can you override the behaviour of the already implemented vvars?
<Ox0dea> norc: Well, of course.
<Ox0dea> Alas, you can't undo it and give them their magic back. :(
<Ox0dea> Same as for `unset RANDOM` in modern shells.
<Ox0dea> I could just use Process.pid for $$, but it's hardly that simple for most of the others.
hannelita has quit [Ping timeout: 240 seconds]
claw has joined #ruby
<norc> Aside from short scripts, I do not see much use for all these weird variables anyhow.
<Ox0dea> Even just hardcoding the map to default C functions wouldn't do, since most of them aren't exported.
ohaibbq has joined #ruby
<Ox0dea> Ah, well, $~ and its descendants are quite nice sometimes.
Pathfinder_ has quit [Ping timeout: 264 seconds]
wolffles has quit [Quit: wolffles]
jcdesimp has quit [Ping timeout: 276 seconds]
zast has quit [Remote host closed the connection]
ympeg_ has joined #ruby
ympeg has joined #ruby
<norc> Mostly I try to use ìf md = "b".match(/b/); puts md; end´ for any kind of regular expression matching.
<norc> Maybe its just me, but I try to stay clear of this Perl syntax.
<Ox0dea> > for science and the lulz
<Ox0dea> It's certainly not just you.
<norc> tok>> "a" + 'b'
<ruby[bot]> norc: I have tokenized your code, the result is at https://eval.in/507918
<norc> ast>> "a" + 'b'
<ruby[bot]> norc: I have parsed your code, the result is at https://eval.in/507919
mfb2 has quit [Remote host closed the connection]
<Ox0dea> That said, what's the fundamental difference in "discoverability" (or whatever) between $' and MatchData#post_match?
<norc> I do not understand your question
usershell has joined #ruby
<norc> ast>> "#{$$}" + 'b'
<ruby[bot]> norc: I have parsed your code, the result is at https://eval.in/507920
<norc> tok>> "#{$$}" + 'b'
<ruby[bot]> norc: I have tokenized your code, the result is at https://eval.in/507921
<Ox0dea> What's all this, then?
<norc> Found you. You are hiding in the depths of the lexer.
jottr_ has joined #ruby
ta has quit [Remote host closed the connection]
karmatr0n has quit [Read error: Connection reset by peer]
_djbkd has quit [Quit: My people need me...]
<Ox0dea> Know what's annoying?
<Ox0dea> >> $1 = 1
<ruby[bot]> Ox0dea: # => /tmp/execpad-83af5f3a8a68/source-83af5f3a8a68:2: Can't set variable $1 (https://eval.in/507922)
codecop has joined #ruby
<norc> You could have genuinely surprised me a little over 30 minutes ago with this.
SOLDIERz has joined #ruby
<Ox0dea> It's just explicitly forbidden: https://git.io/vzX7U
<Ox0dea> Bet I can still surprise ya. ^_^
<Ox0dea> >> $999999999999999999999999999=0
<ruby[bot]> Ox0dea: # => /tmp/execpad-6e8b4ff761a8/source-6e8b4ff761a8:2: warning: `$999999999999999999999999999' is too big ...check link for more (https://eval.in/507923)
TomyLobo has joined #ruby
<Ox0dea> Fixed-width identifiers. :P
<norc> Ox0dea: Wow!
<norc> I found a bug.
<norc> >> $2147483647
<Ox0dea> Oh?
<ruby[bot]> norc: # => /tmp/execpad-19e7280eef47/source-19e7280eef47:2: warning: `$2147483647' is too big for a number vari ...check link for more (https://eval.in/507924)
<norc> Mmm.
<norc> On my shell that crashed pry.
<Ox0dea> Huh.
<norc> Try it out.
<Ox0dea> Same.
konsolebox has joined #ruby
solars has quit [Ping timeout: 272 seconds]
<norc> The error message is rather bizarre.
<Ox0dea> It's doubling it.
<norc> Not exactly.
jottr_ has quit [Ping timeout: 272 seconds]
ympeg_ has quit [Read error: Connection reset by peer]
ympeg has quit [Read error: Connection reset by peer]
<norc> Ox0dea: I dont understand what its doing, but its not doubling it.
<Ox0dea> It's definitely doubling it here.
<Ox0dea> `eval': integer 4000000000 too big to convert to `int' (RangeError)
<Ox0dea> That for $2000000000.
devbug_ has joined #ruby
craysiii has joined #ruby
craysiii has quit [Max SendQ exceeded]
<norc> Oh you are right. I suck at math it seems.
ur5us has quit [Remote host closed the connection]
<Ox0dea> Never mind that these variables can't ever be set or got; this is definitely a bug. :P
<shevy> you could file a bug report and have nobu comment :)))
craysiii has joined #ruby
craysiii has quit [Max SendQ exceeded]
<Ox0dea> Please nobody tell nobu we can hook into the virtual variable API.
<Ox0dea> He'll give it the FrozenCore treatment in a heartbeat.
<shevy> I will have forgotten the above in a few minutes anyway
devbug has quit [Ping timeout: 260 seconds]
PedramT has quit [Remote host closed the connection]
<norc> Ox0dea: It would be pretty awesome if we could tap into the getters/setters from Rubyland entirely.
craysiii has joined #ruby
bigkevmcd has joined #ruby
<Ox0dea> norc: I mean, it's all just data in memory in the end.
PedramT has joined #ruby
<Ox0dea> Forgive me if I explore that concept no further just now.
<norc> Oh that is fine. A while ago I was the one advocating fiddling to manage every single bit and byte.
Pupp3tm4st3r has joined #ruby
yardenbar has joined #ruby
<Ox0dea> Oh, I certainly advocate for it; I just don't wanna be the one that has to determine if a function pointer is a vvar setter.
<norc> Any chance there is an exported function that we can Fiddle::Handle#sym to define a new virtual variable?
<Ox0dea> Er, rb_define_virtual_variable() is exported.
<norc> Oh. Sweet.
<Ox0dea> I might be retarded.
<Ox0dea> It was still fun, though.
tyrbo has joined #ruby
<norc> I do not think there is anything retarded about it.
hnagamin has joined #ruby
mdw has joined #ruby
<Ox0dea> I was referring to writing it as a C extension instead of with Fiddle.
craysiii has quit [Quit: Leaving.]
<norc> I understand, I still do not think it was retarded. After all this is just experimentation.
craysiii has joined #ruby
craysiii has quit [Max SendQ exceeded]
<norc> Retarded is what you might call the process scheduler this team I once met came up with.
<norc> They called it "The revolver" - that should already give you an impression of what it did.
<Ox0dea> Aye, I think I see what they were going for.
<Ox0dea> Process carousel.
<norc> Specification just said: "The CSCI shall support and make use of multiple CPU cores".
<norc> Everybody was happy, because the spec was met.
karapetyan has quit [Remote host closed the connection]
craysiii has joined #ruby
karapetyan has joined #ruby
th_ has joined #ruby
th_ is now known as th__
sandstrom has joined #ruby
last_staff has joined #ruby
tyrbo has quit [Ping timeout: 256 seconds]
dwfait has joined #ruby
yardenbar has quit [Ping timeout: 245 seconds]
TomyLobo has quit [Ping timeout: 264 seconds]
dwfait has quit [Ping timeout: 265 seconds]
sigurding has quit [Quit: sigurding]
mdw_ has joined #ruby
dcunit3d has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
firstdayonthejob has joined #ruby
sperant has joined #ruby
andikr has joined #ruby
mdw has quit [Ping timeout: 256 seconds]
agit0 has quit [Quit: zzzZZZ….]
sperant has quit [Client Quit]
craigp_ has joined #ruby
craigp has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
dcunit3d has joined #ruby
elaptics`away is now known as elaptics
flaguy48 has quit [Ping timeout: 265 seconds]
gagrio has joined #ruby
arup_r has quit [Remote host closed the connection]
<Bloomer> hi all
Xeago has quit [Ping timeout: 240 seconds]
* baweaver crickets
craigp_ has left #ruby [#ruby]
hannelita has joined #ruby
scripore has joined #ruby
crickets has joined #ruby
<crickets> you rang?
<baweaver> ...
<baweaver> huh
ascarter has joined #ruby
yardenbar has joined #ruby
<baweaver> well go figure
joonty has joined #ruby
h99h9h88 has joined #ruby
dionysus69 has joined #ruby
arup_r has joined #ruby
hannelita has quit [Ping timeout: 240 seconds]
mdw_ has quit [Quit: Sleeping Zzzzz]
devbug has joined #ruby
mfb2 has joined #ruby
PedramT has quit [Remote host closed the connection]
joonty has quit [Ping timeout: 240 seconds]
<crickets> Ox0dea: no you don't
<Ox0dea> I so do, though.
rkazak has joined #ruby
<baweaver> Ox0dea: lies
<crickets> and slander
<Ox0dea> Amusement.
<Ox0dea> And consternation.
<baweaver> naturally
<crickets> I aim to please
flaguy48 has joined #ruby
<crickets> were you
<baweaver> expecting something
<crickets> different?
<Ox0dea> My initial reaction was that it was somebody else in here.
<baweaver> I have
<crickets> way too much
<baweaver> free time on
<crickets> my hands
crickets has left #ruby [#ruby]
<Ox0dea> There should be a script to do that.
<baweaver> My script is called CMD + Tab
devbug_ has quit [Ping timeout: 250 seconds]
PedramT has joined #ruby
mark2 has joined #ruby
ta has joined #ruby
mfb2 has quit [Ping timeout: 250 seconds]
<Ox0dea> Mine are Mod4Key+j/k.
<Ox0dea> I can go in both directions just as easily; you've got to do some kinda crazy chording to go backwards.
mkosaki has joined #ruby
craysiii has quit [Quit: Leaving.]
<Ox0dea> What're you, an Emacs user?
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
baweaver has quit [Remote host closed the connection]
flaguy48 has quit [Ping timeout: 250 seconds]
dseitz has joined #ruby
darkf_ has joined #ruby
wonk has quit [Ping timeout: 250 seconds]
sigurding has joined #ruby
rsc___ has quit [Quit: rsc___]
darkf has quit [Ping timeout: 265 seconds]
agit0 has joined #ruby
jbrhbr has joined #ruby
DoubleMalt has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elaptics is now known as elaptics`away
queden has joined #ruby
darkf_ is now known as darkf
karapetyan has quit [Remote host closed the connection]
<queden> hi. I have a quick question as I am a newbie with rails webrick: into what folder can I upload a file that is than publicly available through an url? I understand that the url logic is not just the folder structure (as opposed to apache)
sftrabbit has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Burgestrand has joined #ruby
karapetyan has joined #ruby
<Ox0dea> queden: public/
blur3d has quit [Quit: blur3d]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<queden> Ox0dea: thanks
<Ox0dea> queden: Sure thing.
mdw has joined #ruby
antgel has joined #ruby
arup_r has quit []
flaguy48 has joined #ruby
solars has joined #ruby
ohaibbq has quit [Quit: Leaving...]
benoror has quit [Quit: Connection closed for inactivity]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x77686d has quit [Quit: x77686d]
tvw has joined #ruby
platzhirsch has joined #ruby
user has quit [Ping timeout: 265 seconds]
sepp2k has joined #ruby
tomphp has joined #ruby
Kryptonical has quit [Ping timeout: 240 seconds]
rkazak has quit [Quit: Sleep.....ing....]
PaulCapestany has quit [Read error: Connection reset by peer]
dwfait has joined #ruby
PaulCapestany has joined #ruby
Kryptonical has joined #ruby
hnagamin has quit [Quit: さようなら]
hnagamin has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
rodfersou has joined #ruby
sandstrom has joined #ruby
sandstrom has quit [Client Quit]
Abrin has quit [Ping timeout: 240 seconds]
dwfait has quit [Ping timeout: 240 seconds]
juddey has quit [Ping timeout: 240 seconds]
BSaboia has joined #ruby
hnagamin has quit [Ping timeout: 240 seconds]
romero has joined #ruby
devbug has quit [Read error: Connection reset by peer]
devbug has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
pawnbox has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
hnagamin has joined #ruby
pawnbox has joined #ruby
blaxter has joined #ruby
PedramT has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
chipotle has joined #ruby
lindistock has joined #ruby
PedramT has joined #ruby
hnagamin has quit [Max SendQ exceeded]
hnagamin has joined #ruby
aufi has joined #ruby
hannelita has joined #ruby
jcdesimp has joined #ruby
platzhirsch has left #ruby [#ruby]
karapetyan has quit [Ping timeout: 245 seconds]
elaptics`away is now known as elaptics
astrofog has joined #ruby
mdw has joined #ruby
hannelita has quit [Ping timeout: 264 seconds]
jcdesimp has quit [Ping timeout: 250 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
user_ has joined #ruby
sandstrom has joined #ruby
drptbl has joined #ruby
scepticulous has quit [Ping timeout: 272 seconds]
blaxter has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
toretore has quit [Ping timeout: 256 seconds]
queden has quit [Quit: Page closed]
einarj has joined #ruby
chipotle has quit [Ping timeout: 264 seconds]
jottr_ has joined #ruby
relix has joined #ruby
SCHAAP137 has joined #ruby
baweaver has joined #ruby
bweston92 has quit [Remote host closed the connection]
mfb2 has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
scripore has quit [Quit: This computer has gone to sleep]
jas02 has joined #ruby
skade has joined #ruby
rsc___ has joined #ruby
mfb2 has quit [Ping timeout: 276 seconds]
baweaver has quit [Ping timeout: 260 seconds]
scripore has joined #ruby
sigurding has quit [Quit: sigurding]
sigurding has joined #ruby
sigurding has quit [Client Quit]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
jaequery has joined #ruby
astrofog has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
blaxter has joined #ruby
<SebastianThorn> I'd like some input, Im generating methods from xsd-files. There is one file that is 7.7k lines, this creates a class that is 6k lines, would you keep it like this? or does it not matter?
dlitvak has joined #ruby
mondok has joined #ruby
platzhirsch has joined #ruby
<ddv> SebastianThorn: why are you doing this?
<SebastianThorn> to create ruby-classes from the xsd's
<ddv> SebastianThorn: yeah but why so many methods?
chouhoulis has joined #ruby
<SebastianThorn> not sure i understad, they all exist in the API, so i just thought i generate them all. I'm I thinking "wrong"?
k13nox has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
<ddv> SebastianThorn: your API requires 6000 line classes?
Snowy has joined #ruby
Hunter_ has joined #ruby
k13nox has quit [Client Quit]
k13nox has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<SebastianThorn> they deliver all the datatypes in 1 file, this file is this long
<ddv> SebastianThorn: we know too little about your environment to give any advice
scripore has joined #ruby
scripore has quit [Remote host closed the connection]
<SebastianThorn> the API has about 2k functions/commands i think
<SebastianThorn> well, ill dig more into it later
CloCkWeRX has quit [Remote host closed the connection]
<SebastianThorn> ddv: thanks for the thoughts :=
<SebastianThorn> :)
chouhoulis has quit [Ping timeout: 276 seconds]
Pumukel has joined #ruby
Snowy is now known as Snowjob
dwfait has joined #ruby
Wizek has joined #ruby
saneax_AFK is now known as saneax
saneax is now known as Guest23168
BSaboia has quit [Ping timeout: 265 seconds]
mfb2 has joined #ruby
blackmesa has joined #ruby
lipoqil has joined #ruby
dwfait has quit [Ping timeout: 256 seconds]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
binaryplease1 has joined #ruby
chipotle has joined #ruby
mfb2 has quit [Ping timeout: 240 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
UtkarshRay has quit [Ping timeout: 240 seconds]
rsc___ has quit [Quit: rsc___]
sigurding has quit [Quit: sigurding]
devlitzi has quit [Quit: devlitzi]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sftrabbit has quit [Quit: sftrabbit]
scepticulous has joined #ruby
dwfait has joined #ruby
UtkarshRay has joined #ruby
mikecmpbll has joined #ruby
<mikecmpbll> anyone familiar with the behaviour of net/ssh's channels, specifically the on_data callback?
<mikecmpbll> i thought initially it would return each line of data as it came in, but noticed just now i got two lines (data with \n)
huyderman has joined #ruby
dwfait has quit [Ping timeout: 260 seconds]
FernandoBasso has joined #ruby
DirtyFinn has joined #ruby
tomphp has joined #ruby
Burgestrand has joined #ruby
hannelita has joined #ruby
<mikecmpbll> assuming it always returns complete lines i should be okay.
jas02 has quit [Ping timeout: 264 seconds]
Abrin has joined #ruby
jam_ has quit [Remote host closed the connection]
blur3d has joined #ruby
dwfait has joined #ruby
usershell has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
hannelita has quit [Ping timeout: 245 seconds]
usershell has joined #ruby
solars has quit [Quit: WeeChat 0.4.2]
chipotle has quit [Quit: cheerio]
solars has joined #ruby
chipotle has joined #ruby
Guest23168 is now known as saneax_AFK
stuartb_ has left #ruby ["Textual IRC Client: www.textualapp.com"]
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
dlitvak has joined #ruby
MrSamuel has joined #ruby
Jamo_ has quit [Ping timeout: 276 seconds]
pdoherty has joined #ruby
Jamo has joined #ruby
MrSamuel has quit [Client Quit]
user_ has quit [Ping timeout: 265 seconds]
sftrabbit has joined #ruby
MrSamuel has joined #ruby
Azulinho has joined #ruby
codecop has quit [Read error: Connection reset by peer]
tubuliferous_ has quit [Ping timeout: 276 seconds]
dlitvak has quit [Ping timeout: 264 seconds]
hnagamin has quit [Ping timeout: 240 seconds]
Hunter_ has quit [Quit: WeeChat 1.3]
chipotle has quit [Quit: cheerio]
chipotle has joined #ruby
FooMunki has joined #ruby
marr has joined #ruby
futilegames has joined #ruby
futilegames has quit [Client Quit]
<mikecmpbll> ach, doesn't even return whole lines
UtkarshRay has quit [Remote host closed the connection]
FooMunki has quit [Client Quit]
FooMunki has joined #ruby
codecop has joined #ruby
devbug has quit [Read error: Connection reset by peer]
Bloomer has quit [Remote host closed the connection]
ldnunes has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Pumukel has quit [Ping timeout: 240 seconds]
rsc___ has joined #ruby
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
ledestin has joined #ruby
tyrbo has joined #ruby
sigurding has joined #ruby
tomphp has quit [Ping timeout: 240 seconds]
Jamo has quit [Ping timeout: 260 seconds]
slackbotgz has joined #ruby
pawnbox_ has joined #ruby
blaxter has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
pawnbox has quit [Ping timeout: 245 seconds]
binaryplease1 has quit [Quit: WeeChat 1.3]
tomphp has joined #ruby
iateadonut has quit [Read error: Connection reset by peer]
karoshi has joined #ruby
AlexJakeGreen has joined #ruby
<karoshi> Please, I need a help. I am crafting a code which writes a value on a textbox of HTML in ruby.
bronson has joined #ruby
pawnbox has joined #ruby
tomphp has quit [Client Quit]
karoshi is now known as kazundo
tomphp has joined #ruby
kazundo is now known as karohsi
karohsi is now known as karoshi
dlitvak has joined #ruby
pawnbox_ has quit [Ping timeout: 265 seconds]
bronson has quit [Ping timeout: 265 seconds]
tomphp has quit [Client Quit]
olspookishmagus has joined #ruby
<olspookishmagus> a ruby book recommendation?
<olspookishmagus> !books
<olspookishmagus> !book
karmatr0n has joined #ruby
blaxter has joined #ruby
dlitvak has quit [Ping timeout: 260 seconds]
jcdesimp has joined #ruby
hannelita has joined #ruby
tvw has quit [Read error: Connection reset by peer]
avenj has quit [Ping timeout: 250 seconds]
ramblinpeck has quit [Ping timeout: 240 seconds]
TomyWork has joined #ruby
donnoc has joined #ruby
andersh has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
<Mon_Ouie> ?links
<atmosx> olspookishmagus: για σένα τίποτα
vondruch has quit [Ping timeout: 264 seconds]
<atmosx> olspookishmagus: είσαι ανεπίδεκτος!
jcdesimp has quit [Ping timeout: 245 seconds]
<Ox0dea> Yeah, sorry. That's all Greek to me.
ramblinpeck has joined #ruby
<atmosx> Ox0dea: :-) just poking him
nettoweb has joined #ruby
andersh has joined #ruby
tomphp has joined #ruby
hannelita has quit [Ping timeout: 272 seconds]
tvw has quit [Client Quit]
tvw has joined #ruby
gagrio has quit [Ping timeout: 265 seconds]
hannelita has joined #ruby
rdark has joined #ruby
vondruch has joined #ruby
tyrbo has quit [Ping timeout: 256 seconds]
araujo has quit [Ping timeout: 264 seconds]
araujo has joined #ruby
ledestin has quit [Max SendQ exceeded]
karoshi has quit [Quit: Page closed]
araujo has quit [Max SendQ exceeded]
Jamo has joined #ruby
Guest18755 has joined #ruby
jottr_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
sigurding has quit [Quit: sigurding]
astrobun_ has quit [Remote host closed the connection]
Guest18755 has quit [Max SendQ exceeded]
Burgestrand has quit [Ping timeout: 245 seconds]
Guest18755 has joined #ruby
dlitvak has joined #ruby
skade has joined #ruby
user___ has joined #ruby
Guest18755 has quit [Max SendQ exceeded]
Burgestrand has joined #ruby
kobain has joined #ruby
Guest18755 has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
Guest44358 has quit [Read error: Connection reset by peer]
Burgestrand has quit [Client Quit]
gagrio has joined #ruby
Guest18755 has quit [Max SendQ exceeded]
yonatankoren has quit [Ping timeout: 256 seconds]
zzz_ has joined #ruby
jottr has joined #ruby
Guest18755 has joined #ruby
drptbl has joined #ruby
jottr_ has quit [Ping timeout: 265 seconds]
slackbotgz has quit [Remote host closed the connection]
Guest18755 has quit [Max SendQ exceeded]
bweston92 has joined #ruby
Guest18755 has joined #ruby
astrobun_ has joined #ruby
mark2 has quit [Read error: Connection reset by peer]
mark2 has joined #ruby
evidex has joined #ruby
chipotle has quit [Quit: cheerio]
zzz_ has quit [Quit: Leaving...]
pawnbox has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 276 seconds]
Xeago has quit [Remote host closed the connection]
zenlot1 is now known as zenlot
pawnbox has joined #ruby
tyrbo has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
PedramT has quit [Remote host closed the connection]
skade has joined #ruby
PedramT has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
colegatron has quit [Ping timeout: 260 seconds]
nchambers is now known as nnttcc
astrobun_ has quit [Remote host closed the connection]
Guest18755 has quit [Quit: Leaving]
jottr_ has joined #ruby
dlitvak has joined #ruby
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
nnttcc is now known as nchambers
CloCkWeRX has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
ebbflowgo has joined #ruby
jottr_ has quit [Client Quit]
shadeslayer has quit [Ping timeout: 240 seconds]
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti> Hi
arup_r has joined #ruby
krz has quit [Ping timeout: 250 seconds]
tyrbo has quit [Ping timeout: 256 seconds]
shadeslayer has joined #ruby
CloCkWeRX has quit [Ping timeout: 264 seconds]
colegatron has joined #ruby
<GeorgesLeYeti> I have an array of number and a number (For example A= [1,5,7] n=2) and i want to return the minum value of n-A[i] not negative. I thought about A.min_by{|i| n-i}
<Abrin> hiya
karapetyan has joined #ruby
<Abrin> I am not sure if everyone other than me is asleep or not. :)
blackmesa has quit [Ping timeout: 260 seconds]
<GeorgesLeYeti> but of course it returns a negative 7
<GeorgesLeYeti> Sorry make a little mistake in my request, I want to return the value of A where n-A[i] is minimum
<mondok> select{ |el| n -el >0}.min
joonty has joined #ruby
PedramT has quit [Remote host closed the connection]
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> GeorgesLeYeti: ary.min_by { |i| (n-i).abs }
<apeiros> Abrin: you are asleep. you're just dreaming.
diegoviola has joined #ruby
<Abrin> Oh good. Thank you apeiros.
<apeiros> yw
FAMAS has joined #ruby
<FAMAS> greetings to all
puria has joined #ruby
<apeiros> hi FAMAS
Jamo has quit [Ping timeout: 265 seconds]
<mondok> консу возьмешь на седьмой день
<mondok> ползи в низ
<Abrin> Wait a second, I dream about code? Hmmm....I was warned about that. :)
Jamo has joined #ruby
<FAMAS> this user sends out gratitudes towards the founder and the arbitrators of the ruby community
<apeiros> mondok: this channel is english. please use another channel for other languages. thank you.
<FAMAS> for the strong opposition and refusal towards the PC+SJW invasion of the ruby community
<apeiros> ?ot FAMAS
<ruby[bot]> FAMAS: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<olspookishmagus> atmosx: years and zamans!
<atmosx> :-)
<atmosx> zamans indeed!! :-)
jameser has joined #ruby
<olspookishmagus> I think I will finally settle for the "pickaxe" book
CloCkWeRX has joined #ruby
karapetyan has quit [Remote host closed the connection]
vondruch has quit [Quit: Ex-Chat]
<olspookishmagus> oh wait, there'a a ".* the hard way" book ^^
vondruch has joined #ruby
jameser` has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
jam_ has joined #ruby
jameser has quit [Ping timeout: 240 seconds]
<zotherstupidguy> olspookishmagus you want a book coz you are new to ruby?
<zotherstupidguy> or programming in general?
FAMAS has left #ruby [#ruby]
Xeago has joined #ruby
<zotherstupidguy> olspookishmagus all you need to watch is this https://www.youtube.com/watch?v=X2sgQ38UDVY and a couple of other Dave thomas metaprogramming videos
skade has quit [Ping timeout: 265 seconds]
<olspookishmagus> no glasgow smiles were carved in that video?
karapetyan has joined #ruby
<olspookishmagus> zotherstupidguy: thanks, noted!
peteyg has quit [Read error: Connection reset by peer]
__main__ has quit [Read error: Connection reset by peer]
peteyg has joined #ruby
karapetyan has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
jam_ has quit [Ping timeout: 265 seconds]
Xeago has quit [Remote host closed the connection]
<zotherstupidguy> olspookishmagus De nada :))
jameser` has quit [Ping timeout: 240 seconds]
ZerGabriel has quit []
<Abrin> I've been reading 'Computer Science Programming with Ruby' but it is probably way to basic for most people. I was working on 'Beginning Ruby' but got frusterated and eventually gave up on it.
shredding has joined #ruby
__main__ has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
sftrabbit has quit [Quit: sftrabbit]
karapetyan has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 256 seconds]
dlitvak_ has joined #ruby
<Abrin> My laptop battery is almost dead...I should stop fighting with code and sleep. Sweet dreams #ruby
chipotle has joined #ruby
gbgdev has joined #ruby
gbgdev has quit [Remote host closed the connection]
<atmosx> Abrin: https://xkcd.com/722/
<apeiros> gn8 Abrin
Pupp3tm4st3r has joined #ruby
gbgdev_ has joined #ruby
yfeldblu_ has quit [Ping timeout: 245 seconds]
Burgestrand has joined #ruby
ZerGabriel has joined #ruby
dlitvak has joined #ruby
dlitvak_ has quit [Ping timeout: 240 seconds]
Abrin has quit [Ping timeout: 276 seconds]
PedramT has joined #ruby
jaiks has quit [Remote host closed the connection]
sgambino has joined #ruby
sftrabbit has joined #ruby
ZerGabriel has quit [Ping timeout: 272 seconds]
sgambino has quit [Client Quit]
blt has quit [Ping timeout: 245 seconds]
c355e3b has joined #ruby
hannelita has quit [Remote host closed the connection]
pdoherty has quit [Ping timeout: 240 seconds]
howdoi has joined #ruby
ItSANgo has quit [Quit: Leaving...]
dwfait has quit [Remote host closed the connection]
GuerraIsaac has joined #ruby
lost has joined #ruby
ZerGabriel has joined #ruby
kerunaru has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
themsay2 has joined #ruby
aupadhye has joined #ruby
Kruppe has quit [Ping timeout: 256 seconds]
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
Jackneill has joined #ruby
lost has quit [Client Quit]
sftrabbit has joined #ruby
sigurding has joined #ruby
hannelita has joined #ruby
Kruppe has joined #ruby
Guerra has quit [Ping timeout: 256 seconds]
dlitvak_ has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
themsay has quit [Ping timeout: 256 seconds]
blt has joined #ruby
workmad3 has joined #ruby
gagrio has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
ebbflowgo has quit [Quit: ebbflowgo]
drptbl has joined #ruby
scripore has joined #ruby
ferr has quit [Ping timeout: 240 seconds]
lucasb has joined #ruby
k13nox has quit [Remote host closed the connection]
iateadonut has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
shevy has quit [Ping timeout: 240 seconds]
k13nox has joined #ruby
dwfait has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
avenj has joined #ruby
avenj has quit [Changing host]
avenj has joined #ruby
Bloomer has joined #ruby
blur3d has quit [Quit: blur3d]
kerunaru_ has joined #ruby
jcdesimp has joined #ruby
kerunaru has quit [Read error: Connection reset by peer]
blaxter has quit [Ping timeout: 264 seconds]
rafadc has joined #ruby
Xeago has joined #ruby
rafadc has quit [Client Quit]
sandstrom has quit [Quit: My computer has gone to sleep.]
jcdesimp_ has joined #ruby
DexterLB has joined #ruby
ebbflowgo has joined #ruby
shanemcd has quit [Remote host closed the connection]
themsay2 has quit [Read error: Connection reset by peer]
themsay has joined #ruby
chipotle has quit [Quit: cheerio]
jcdesimp has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
blackmesa has quit [Read error: Connection reset by peer]
shanemcd has joined #ruby
blackmesa has joined #ruby
kerunaru_ has quit [Read error: Connection reset by peer]
shevy has joined #ruby
gagrio has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
krz has joined #ruby
psy_ has quit [Read error: Connection reset by peer]
ItSANgo has joined #ruby
zenlot has quit [Quit: WeeChat 1.1.1]
shanemcd has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 245 seconds]
joonty has quit [Ping timeout: 250 seconds]
zenlot has joined #ruby
dlitvak_ has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
russt has quit [Ping timeout: 272 seconds]
djellemah has quit [Ping timeout: 264 seconds]
Pip has joined #ruby
blaxter has joined #ruby
<Pip> What happened to Ruby Conference?
joonty has joined #ruby
<Pip> Is there something wrong?
svkurowski has quit [Remote host closed the connection]
svkurowski has joined #ruby
sonOfRa is now known as snfr
synthroid has joined #ruby
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
skade has joined #ruby
DirtyFinn has quit [Remote host closed the connection]
oz has quit [Quit: EOF]
jaiks has joined #ruby
mdw has joined #ruby
oz has joined #ruby
sdothum has joined #ruby
sandstrom has joined #ruby
jaiks has quit [Remote host closed the connection]
jaiks has joined #ruby
<kbni> Can I overload calling a class as a method?
workmad3 has joined #ruby
bweston92 has quit [Read error: Connection reset by peer]
burbus has joined #ruby
ta_ has joined #ruby
<lucasb> for class Foo, you want to call it like Foo(...) or Foo[...] ?
PedramT has quit [Ping timeout: 256 seconds]
aufi has quit [Ping timeout: 240 seconds]
<kbni> where f is an instance of Foo, I want to be able to do f(...)
<lucasb> ah, I don't know if that's possible
<lucasb> but you can call it like f.() or f.call()
<kbni> sure, but that doesn't look as neat
<lucasb> just define a 'call' method, and the f.() syntax will work
bweston92 has joined #ruby
<Mon_Ouie> f() will always call the method f, it will never look at the local variable f
Or1on has joined #ruby
<Mon_Ouie> You can do f[x] though
mondok has quit [Ping timeout: 276 seconds]
ta has quit [Ping timeout: 245 seconds]
<kbni> [] could look okay
<kbni> how does one overload []?
jaiks has quit [Remote host closed the connection]
jaiks has joined #ruby
<lucasb> def [](args) ...
shredding has quit [Ping timeout: 245 seconds]
PedramT has joined #ruby
<kbni> haha yeah I just realised
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
tyrbo has joined #ruby
araujo has quit [Max SendQ exceeded]
mfb2 has joined #ruby
hxegon has joined #ruby
arup_r has quit []
gigetoo has quit [Ping timeout: 272 seconds]
gigetoo has joined #ruby
pdoherty has joined #ruby
mfb2 has quit [Ping timeout: 240 seconds]
jespada has joined #ruby
Lildirt has joined #ruby
PedramT has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
PedramT has joined #ruby
nfk|laptop has joined #ruby
solars has quit [Ping timeout: 256 seconds]
Azure has quit [Excess Flood]
Azure has joined #ruby
<mikecmpbll> ugh, i'm sure this is possible but I always forget gsub intricacies
<mikecmpbll> i'd like to exclude part of my regex expression from being replaced
<mikecmpbll> e.g. "foo bar. foo".gsub(/ foo/, "baz") only replaces foo with baz if it's after a space
<mikecmpbll> oops, nevermind answered my own question
* mikecmpbll slips out unnoticed.
ldnunes_ has joined #ruby
dlitvak has quit [Ping timeout: 245 seconds]
flujan has joined #ruby
<flujan> Hi There, I created a tcpserver using ruby. Now I am reaching the limit of 1024-1028 connections and the server start to refuse the connections.
<Ox0dea> kbni: You *can* make a class look like a method call, though, if that's what you're actually trying to do.
<kbni> Ox0dea, well, yeah.
<flujan> I already increase the limit using linux ulimit. But it is still limiting it to 1024-1028 connections. Is there a way to increase the number of connections?
[ace]_ has quit [Ping timeout: 264 seconds]
dlitvak has joined #ruby
HisShadow has joined #ruby
govg has quit [Ping timeout: 240 seconds]
<Ox0dea> lucasb: Remember yesterday learning that stdin can be written to?
Rickmasta has joined #ruby
ldnunes has quit [Ping timeout: 240 seconds]
dexter-tzu has quit [Ping timeout: 250 seconds]
<lucasb> Ox0dea: yeah, why? :)
<flujan> I am using ruby ruby 2.0.0p645
<Ox0dea> lucasb: https://eval.in/508186
[ace] has joined #ruby
<HisShadow> hello. I'm using IO.popen to read spawned process' output like this IO.popen({"ss"=>"aa"}, "/bin/bash /home/wedge/1.sh", :err=>[:child, :out], :out=>["test","w"]) do |io| Process.wait(io.pid) end, but ruby throws error fd 1 specified twice, I can't google that, isn't mentioned anywhere
govg has joined #ruby
sftrabbit has joined #ruby
<Ox0dea> Writing to stdin is how "modern" terminals give you mouse event data.
<Ox0dea> And it makes plenty of sense; you wouldn't want them written to your output streams, but the data's gotta get to you somehow.
last_staff has quit [Quit: last_staff]
jottr has joined #ruby
bronson has joined #ruby
fl_ has joined #ruby
sftrabbit has quit [Client Quit]
<mikecmpbll> can anyone help me with this regexp? I'm trying to get it to only replace jim if it's got a non-word character either side or at the start or end of string
<mikecmpbll> >> "Jim jimbarjim it jim. jim jim".gsub(/(^|[^\w])Jim($|[^\w])/i, "\\1***\\2")
<ruby[bot]> mikecmpbll: # => "*** jimbarjim it ***. *** jim" (https://eval.in/508187)
griffindy has joined #ruby
<mikecmpbll> however, if you look at the end, it's not replacing that "jim"
<HisShadow> what is the right way to do it with popen? I was stderr redirected to stdout and the whole thing written to a file
<lucasb> Ox0dea: that is interesting. the other day I was running '$ somecmd &> /dev/null' and was amazed that it was still producing output. now I know it must have been writing to stdin or something. thanks for the snippet.
<mikecmpbll> because it proceeds another replacement immediately (and the regexp is overlapping, i guess)
gagrio has quit [Ping timeout: 245 seconds]
<Ox0dea> lucasb: It was producing input. :P
howdoicomputer has joined #ruby
krz has quit [Ping timeout: 256 seconds]
norc has quit [Ping timeout: 252 seconds]
shredding has joined #ruby
gnudon has joined #ruby
kerunaru has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
<Ox0dea> mikecmpbll: The word you're looking for is "boundary".
<Ox0dea> >> "Jim jimbarjim it jim. jim jim".gsub /\bjim\b/i, ?x
<ruby[bot]> Ox0dea: # => "x jimbarjim it x. x x" (https://eval.in/508189)
* mikecmpbll cries
<Ox0dea> ?
* mikecmpbll bows to Ox0dea
<Ox0dea> <3
<mikecmpbll> :D
<mikecmpbll> what's the ?x all about?
jam_ has joined #ruby
pdoherty has quit [Ping timeout: 240 seconds]
<shevy> fancy way for "x"
<Ox0dea> I will be the last person that still uses it to represent a character literal.
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mikecmpbll> ugh, gotcha.
<mikecmpbll> still had my mind in regexp mode.
<shevy> in the changelog to ruby, there was some japanese dev who got rid of it in some .rb file, saying something along the lines of "don't use magic" or like that
gbgdev_ has quit [Remote host closed the connection]
<Ox0dea> It's still in there all over the place, though. ^_^
<Ox0dea> They'll neve get all of 'em!
zotherstupidguy has quit [Quit: WeeChat 1.3]
ramortegui has joined #ruby
sftrabbit has joined #ruby
<diegoviola> how do I format a number in ruby, let's say I pass 1000 to a method and I want to return a string like "10,000"
<diegoviola> or 100_000 and return "100,000"
fl_ has quit [Quit: Leaving]
VeryBewitching has joined #ruby
krz has joined #ruby
jam_ has quit [Ping timeout: 265 seconds]
<VeryBewitching> Morning.
shanemcd has joined #ruby
hnagamin has joined #ruby
shanemcd has quit [Remote host closed the connection]
<shevy> diegoviola can you decide on (a) input and (b) output
shanemcd has joined #ruby
<shevy> your multiple requirements make my head dizzy!
* VeryBewitching gives shevy some solid ground to stand on
<diegoviola> I've just used a case statement and returned a string based on the input
<shevy> VeryBewitching thanks :D
<diegoviola> but I'm trying to make it dynamic
<shevy> well
<shevy> 100_000 becomes 100000 if it is a number
UtkarshRay has joined #ruby
shanemcd has quit [Remote host closed the connection]
sgambino has joined #ruby
<shevy> using ',' is probably custom
<shevy> may be best to use a method that will reformat it to the target format you want, in this case, add the ',' (to your string)
<mikecmpbll> >> 12341848341.chars.reverse.each_slice(3).to_a.map(&:join).join(",").reverse
<ruby[bot]> mikecmpbll: # => undefined method `chars' for 12341848341:Bignum ...check link for more (https://eval.in/508191)
<mikecmpbll> >> 12341848341.to_s.chars.reverse.each_slice(3).to_a.map(&:join).join(",").reverse
<ruby[bot]> mikecmpbll: # => "12,341,848,341" (https://eval.in/508192)
flujan has quit [Quit: flujan]
<mikecmpbll> :D that's probably awful.
hnagamin has quit [Client Quit]
<shevy> but it works
<diegoviola> shevy: should I add the numbers to an array and iterate over and it and just call gsub and always add a ,?
<diegoviola> not sure how I can solve this
<shevy> if you only ever need ',' then you can keep it always that way
<shevy> but I assume you only need it when you have to display it
rsc___ has quit [Quit: rsc___]
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
mary5030 has joined #ruby
malconis has joined #ruby
B1n4r10 has joined #ruby
gagrio has joined #ruby
<Ox0dea> >> x = 1234567; Math.log(x, 1000).ceil.times.map { x, m = x.divmod 1000; m }.reverse * ?,
<ruby[bot]> Ox0dea: # => "1,234,567" (https://eval.in/508193)
nettoweb has joined #ruby
<Ox0dea> Yay, science!
<HisShadow> what is the right way to do it with popen? I want stderr redirected to stdout and the whole thing written to a file
gnudon has quit [Remote host closed the connection]
<Ox0dea> There's already `tee` for that.
krobzaur_ has joined #ruby
tyrbo has quit [Ping timeout: 256 seconds]
<shevy> and coffee!
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
nettoweb has quit [Client Quit]
araujo has quit [Max SendQ exceeded]
howdoicomputer has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
codefo has joined #ruby
shanemcd has joined #ruby
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
shanemcd has quit [Remote host closed the connection]
shanemcd has joined #ruby
the_drow has joined #ruby
nav_ has joined #ruby
AlexJakeGreen has quit [Quit: Leaving]
<diegoviola> this works for me, but how can I make it better?
<the_drow> How do I hook the log4r logger into bunny?
<diegoviola> it says my test is passing at least
ta_ has quit [Remote host closed the connection]
kerunaru has quit [Read error: Connection reset by peer]
nfk|laptop has quit [Quit: yawn]
cdg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> diegoviola: Make it better by writing your own.
<Ox0dea> I'd recognize that regex anywhere.
<diegoviola> I don't know regex
<shevy> lol
<diegoviola> :-(
shredding has quit [Ping timeout: 260 seconds]
<shevy> just test on http://rubular.com/
<shevy> the simpler you can do your regex the better
lidenbrock has joined #ruby
<diegoviola> ok
<diegoviola> ty
scepticulous has quit [Quit: Konversation terminated!]
<Ox0dea> That's as simple as it gets for sticking commas between thousands.
newdan has joined #ruby
lidenbrock has quit [Client Quit]
araujo has joined #ruby
<ljarvis> >> "162537485".to_s.reverse.gsub(/(\d{3})(?=\d)/, '\\1,').reverse
<ruby[bot]> ljarvis: # => "162,537,485" (https://eval.in/508195)
araujo has quit [Max SendQ exceeded]
aegis3121 has joined #ruby
scepticulous has joined #ruby
araujo has joined #ruby
nettoweb has joined #ruby
<kbni> C: Redundant self detected.
<kbni> am I insane for thinking using self. makes ruby more readable?
<Ox0dea> Yep.
<mikecmpbll> heh
<kbni> it just irks me so much
<aegis3121> I think the only time I ever like to use it is for comparison operators.
dwfait has quit [Remote host closed the connection]
<kbni> also not using parenthesis for calling a method without arguments
<Ox0dea> Even then, the symmetry makes it obvious what's happening without the explicit `self`.
<kbni> foo.call(blah)
<kbni> foo.call
<aegis3121> Ox0dea: true, I just like it.
c355e3b has quit [Ping timeout: 245 seconds]
andersh has quit [Ping timeout: 245 seconds]
<kbni> looks so wrong
kies^ has quit [Ping timeout: 256 seconds]
<aegis3121> kbni looks perfect to me :)
<aegis3121> >> [1, 2, 3].first.zero?
<ruby[bot]> aegis3121: # => false (https://eval.in/508199)
<Ox0dea> [1,2,3].first().zero?() looks so stupid.
dlitvak has quit [Remote host closed the connection]
devlitzi has joined #ruby
andersh has joined #ruby
segmond has quit [Ping timeout: 260 seconds]
c355e3b has joined #ruby
snfr is now known as sonOfRa
<kbni> I agree in that context it does
<kbni> but obj1.foo(asdasd)\nobj2.foo(asdasd)\obj3.foo(somearg)\obj4.foo
arup_r has quit [Remote host closed the connection]
nettoweb has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
<newdan> kbni: Imo coming from Java and Python I *love* that zero-arg methods don't use parens in Ruby :D
arup_r has joined #ruby
<kbni> I think it's great when you are chaining them
B1n4r10 has quit [Ping timeout: 272 seconds]
<kbni> oh well, my first piece of ruby~
<shevy> yay kbni!
<shevy> let the revolution proceed
<kbni> rubocop didn't even complain all that much in the end
nettoweb has joined #ruby
<shevy> newdan I sorta thought python users love the () :D
HisShadow has left #ruby [#ruby]
<kbni> shevy, I think in times where you may want to avoid them there are perfectly decent ways to get around them
<newdan> shevy: As a Python user... not all of us lol. I don't love the () and I don't love explicit self (or the super awkward super)
<kbni> I think explicitness is great
<kbni> makes things easier to follow
<kbni> I'd like to know who thought of @/@@/$ nonsense
<newdan> kbni: I agree, but the method is explicitly in a class. I don't see how passing self as first arg all the time helps anything, really
<shevy> yeah, explicit self annoyed me. it feels as if I need to hold python hands to tell it where self is
<aegis3121> kbni: i believe that comes from roots in Perl
<aegis3121> kbni at least $ does. @ and @@ are simply ways to immediately signify what kind of variable you're dealing with. It's apparent in the name, so you should immediately have a good idea of its scope.
<newdan> shevy: The things about Python I like compared to Ruby are the modules/namespacing, and also I find Ruby's method scoping a litle surprising
<shevy> oh I want something more powerful than plain require too
aryaching has joined #ruby
<kbni> newdan, you don't pass self as an arg, only when it's called - you can have a class method without that construct work in some weird circumstances
<shevy> I want to reshuffle namespaces at require-time! I want to attach modules to classes at require-time!
<kspencer> What's best gem/program to make ruby scripts into self-contained programs, needing no libraries on the executing end, this would be my first time trying to package an app
<newdan> kbni: Sorry, I meant declaring self as the first arg
gbgdev has joined #ruby
<shevy> unfortunately I think require will stay as it is because it is very simple... but perhaps there be a new mechanism for more control
<kbni> well, as someoone who mostly uses python
<newdan> shevy: Yes. This probably sounds trivial but it would almost be fine if Ruby modules didn't require everything in the module to be wrapped in the module block. Something like e.g. the package statement in Java that says "Everything in this file belongs to this module" would be nice imo
<kbni> well actually I completely agree with newdan
rippa has joined #ruby
tubulife- has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
<aegis3121> newdan: that does in fact sound trivial heh
<kbni> also I think the overloading methods are insanely nasty looking: https://github.com/kbni/autotask_api_util/blob/master/lib/autotask_api_query2.rb#L75
<aegis3121> ? Looks like C++
<newdan> aegis3121: Flat is better than nested :) I just find it ugly to have to indent everything in my .rb file in order to not pollute the global namespace
segmond has joined #ruby
<newdan> kbni: I like that tbh. Better than __neq__ or __iadd__ imo
<kbni> additionally, I want my four-spaced tabs back
<aegis3121> o_O but that's so much wasted space lol
<newdan> I also like two-space tabs
<newdan> Well, two space indents
<havenwood> kbni: Two space soft tabs. Two. Space. Soft. Tabs!
solars has joined #ruby
MrSamuel has quit [Ping timeout: 240 seconds]
devlitzi has quit [Quit: devlitzi]
<ljarvis> ^
<kbni> why does it even matter
<kbni> I should be able to do what I want
<havenwood> kbni: No!
<ljarvis> of course it matters
<kbni> tabs are superior because it allows the editor to have it their way
devlitzi has joined #ruby
<havenwood> kbni: Incorrect. You must comply.
<ljarvis> *must*
pwnd_nsfw has quit [Read error: Connection reset by peer]
<kbni> To what?
<ljarvis> to the thing
<ljarvis> the space thing
<ljarvis> Space Jam.
<kbni> some unwritten hipster rule?
<ljarvis> Precisely.
pwnd_nsfw has joined #ruby
<newdan> kbni: Comply to Rubocop
<kbni> I feel like ruby does things just to be contrarian
<kbni> just like that guy at the party that nobody likes
<ljarvis> 2 space indent is contrarian?
<ljarvis> I mean I know I'm joking and having fun, but that's ridiculous
TomPeed has joined #ruby
<havenwood> Note Ruby's 100%: https://ukupat.github.io/tabs-or-spaces/
<ljarvis> yeah I wish that was the case for projects I've had to read
Xeago has quit [Remote host closed the connection]
<ljarvis> RLTK is 4 space/tabs and it hurts
<havenwood> kbni: Maybe you can use Lua and join the 3-space 12%ers for a compromise.
<ljarvis> enjoy
rdark has quit [Ping timeout: 240 seconds]
saneax_AFK is now known as saneax
kaleido has joined #ruby
saneax is now known as Guest15913
Xeago has joined #ruby
<kbni> screw it, writing everything in autohotkey
tyrbo has joined #ruby
<newdan> ljarvis: Weird, def child_names; @child_names; end
<newdan> ljarvis: Why wouldn't they just use attr_reader :child_names?
<aegis3121> o_O
<kbni> newdan, feel free to make fun of my code some
<ljarvis> newdan: not sure really
<Ox0dea> newdan: Because there is no love there.
decoponio has joined #ruby
<Ox0dea> `self.superclass == ASTNode` instead of #is_a?.
<Ox0dea> It looks almost machine-generated.
<kbni> oh yeah
<kbni> what's with this ? crap
<kbni> I could understand MAYBE if it was #is_a(Thing)?
<aegis3121> Indicates that a method returns a value that should be treated as a boolean
<kbni> are you serious
<newdan> kbni: It's a valid character in method names. So is !
<kbni> is that was it means
<aegis3121> yes
<aegis3121> >> nil.nil?
<ruby[bot]> aegis3121: # => true (https://eval.in/508224)
<newdan> kbni: It's just a convention
<kbni> wait, how does that work?
<newdan> kbni: Not actual language syntax. It can't be is_a(Thing)? because then ? wouldn't be part of the method name
<kbni> >> nil?
poguez_ has joined #ruby
<ruby[bot]> kbni: # => false (https://eval.in/508225)
<ljarvis> >> a = "foo"; def a.foo?; self == "foo"; end; a.foo?
<kbni> that doesn't seem easier to read than bool(None)
<ruby[bot]> ljarvis: # => true (https://eval.in/508226)
<kbni> amirite?
<ljarvis> it's just a method name
<aegis3121> what on earth does bool(None) mean?
<ljarvis> it converts None (nil) to a boolean (False)
<ljarvis> anyway
<ljarvis> that's irrelevant
dwfait has joined #ruby
jespada has quit [Ping timeout: 250 seconds]
Dimik has joined #ruby
<newdan> kbni: Lisp/Scheme do things similarly. In Scheme you have (string->number "32") giving 32 and (string? 3) giving #f
<kbni> I propose a new convention. foo~ for when your method is to return an integer
<ljarvis> we're not going to compare Ruby to Python and whoever wants to do that can do so in #ruby-offtopic
<kbni> That's how this stuff starts, right?
<Ox0dea> Rules of the Internet #14: Do not argue with trolls -- it means that they win.
Shaboum has joined #ruby
<Ox0dea> Just something to bear in mind.
<lucasb> this convention may be some 30 years old, it started in Scheme. and Clojure uses that too
<ljarvis> ?ot
<ruby[bot]> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<ljarvis> next person feels the wrath of something
blackgoat has quit [Ping timeout: 240 seconds]
<yorickpeterse> the wrath of a boot to the head?
<havenwood> The two-spaced gods.
<ljarvis> da boot
<kbni> ljarvis, sorry mate.
kalopsian has joined #ruby
<Ox0dea> $ python -c 'print(True * True + True)'
<Ox0dea> 2
<Ox0dea> My sides.
<Ox0dea> At least it rhymes?
<Ox0dea> (Fin.)
<ljarvis> :|
<platzhirsch> bravo
* platzhirsch claps
<kbni> that's because those operators are treating them as ints
<Ox0dea> Danke. <3
Hammy_Work has quit [Read error: Connection reset by peer]
<shevy> two is true?
<Ox0dea> Too true.
<kbni> True is 1
<kbni> int(True)*int(True)+int(True)
<ljarvis> !kick Ox0dea "The next person"
Ox0dea was kicked from #ruby by ruby[bot] ["The next person"]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ljarvis> kbni: you too?
<platzhirsch> ouch
evidex has quit [Ping timeout: 256 seconds]
stannard has joined #ruby
<kbni> ljarvis, I was simply replying to him. For your information also the advertised rules page states "Excessive off-topic talk while Ruby related topics are discussed". Perhaps this could be changed to "Any off-topic talk" so as not to cause any further confusion
evidex has joined #ruby
zerowaitstate has joined #ruby
<arup_r> ^^ +1
<ljarvis> I gave you a warning. That should have helped avoid confusion
<apeiros> kbni: excessive is on the ops, ljarvis warned
<aegis3121> kspencer: I'm not sure, but I imagine any running machine would have to have at the last Ruby.
<aegis3121> at the least*
babblebre has joined #ruby
Bodah has joined #ruby
<kspencer> aegis3121: Well I've looked at releasy and might try that, that way even dummies can run it with no ruby experience
duckpuppy has joined #ruby
<havenwood> kspencer: Traveling Ruby is another option.
<kbni> kspencer, What sort of app are you packaging and who is the package to be targeted for?
duckpuppy has quit [Client Quit]
duckpuppy has joined #ruby
IronD has quit [Ping timeout: 264 seconds]
<kspencer> right now my projects are a gui that's going to turn into a helper for users on my network, with rss and services help things, and right now I'm working on porting a config generator from unrealircd&python script over to an inspircd&ruby script
<newdan> kspencer: Have you tried Ocra?
<kspencer> newdan: never packaged a script in my life
<kspencer> so no lol
<newdan> kspencer: Ocra is for packaging Windows stuff
<newdan> Might help
<kspencer> well releasey allows all three and runs on linux ruby, plus has the most options i've seen so far, haven't looked at Traveling Ruby yet
<kbni> Isn't that Orca?
TomyWork has quit [Ping timeout: 248 seconds]
<kspencer> kbni: no, looking at the gems page right now, its o c r a
IronD has joined #ruby
<diegoviola> I need to learn some regular expressions, is the ruby regex engine the same as the perl regex engine for example?
<diegoviola> or are they different
nertzy2 has joined #ruby
<kspencer> diegoviola: basically the same
<diegoviola> ok
aupadhye has quit [Ping timeout: 265 seconds]
dionysus69 has quit [Ping timeout: 265 seconds]
<kbni> ah, you are correct
ZerGabriel has quit []
polishdub has joined #ruby
whippythellama has joined #ruby
<havenwood> Onigmo!
solars has quit [Remote host closed the connection]
karmatr0n has quit []
aadam21 has joined #ruby
dhollinger has joined #ruby
Sourx has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> diegoviola: not the same. but similar.
tyrbo has quit [Ping timeout: 256 seconds]
Sourx has left #ruby [#ruby]
<ljarvis> Ruby uses a custom version of Oniguruma (as havenwood mentions, Onigmo) but for initial learning purposes you can mostly assume they're the same
<apeiros> for differences between to two you need to go to the more sophisticated features. so for learning regular expressions the differences in the *engine* will almost certainly not matter.
al2o3-cr has quit [Ping timeout: 264 seconds]
al2o3-cr has joined #ruby
<diegoviola> ok
aufi has joined #ruby
<diegoviola> so I can grab a book on regular expressions and they will work just fine in ruby?
freerobby has joined #ruby
last_staff has joined #ruby
<kspencer> Also, I was wondering with highline, if when doing 'a.ask("Question? ", Type) ' instead of just {} are you able to do a do block or do I have to do something extra to allow that?
<newdan> diegoviola: What book? I like Ruby, but if the book's not written for Ruby, why not use the language it is written for?
<newdan> diegoviola: You should be mostly fine either way but there's always the chance for some small difference in the regex engines to give you a minor headache while you're trying to learn
chouhoulis has joined #ruby
Jardayn has joined #ruby
rodfersou has quit [Quit: leaving]
<diegoviola> not sure about the book, what is a good way to learn regex from a ruby perspective?
<kspencer> practically, just google for ruby regex
<diegoviola> ok
<diegoviola> ty
<kspencer> np
FLeiXiuS has joined #ruby
jespada has joined #ruby
kmckelvin has joined #ruby
TomyWork has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
underplank has joined #ruby
IronD has quit [Ping timeout: 276 seconds]
GeorgesLeYeti has quit [Quit: Quitte]
synthroid has quit [Remote host closed the connection]
Sucks has joined #ruby
Pip_ has joined #ruby
Pip has quit [Disconnected by services]
Pip_ is now known as Pip
kalopsian has quit [Quit: Lost terminal]
Pip has quit [Changing host]
Pip has joined #ruby
Pip has left #ruby [#ruby]
elaptics is now known as elaptics`away
agit0 has quit [Quit: zzzZZZ….]
graffix222 is now known as graffix
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
tvw has quit []
mjuszczak has joined #ruby
kmckelvi1 has joined #ruby
shinnya has joined #ruby
kmckelvin has quit [Read error: Connection reset by peer]
IronD has joined #ruby
russt has joined #ruby
alexherbo2 has joined #ruby
darkxploit has joined #ruby
PedramT has quit [Read error: Connection reset by peer]
B1n4r10 has joined #ruby
PedramT has joined #ruby
RedNifre has joined #ruby
asccigcc has joined #ruby
<RedNifre> Hey there. What's the most elegant way to get the current time as UTC in the form "2016012614"? (year, month, day, hour)
<ljarvis> RedNifre: probably strftime
darkxploit has quit [Max SendQ exceeded]
IronD has quit [Ping timeout: 260 seconds]
davedev24 has joined #ruby
darkxploit has joined #ruby
<ljarvis> >>Time.now.strftime("%Y%m%d%H")
<ruby[bot]> ljarvis: # => "2016012615" (https://eval.in/508238)
<ljarvis> or something
TomyWork has quit [Quit: Leaving]
sftrabbit has joined #ruby
TomyWork has joined #ruby
<RedNifre> Ah, thanks. Looks perfect.
<apeiros> >> require 'time'; Time.now.utc.strftime("%F%H")
<ruby[bot]> apeiros: # => "2016-01-2615" (https://eval.in/508239)
<apeiros> oh
<apeiros> that has dashes
PedramT_ has joined #ruby
<RedNifre> Ah, wait, Time.now.strftime seems to use local time.
<ljarvis> yeah, you can change it if you want
<ljarvis> but the idea is that you have a Time object
ljames has joined #ruby
<ljarvis> that you can call strftime on
<apeiros> RedNifre: .utc
<apeiros> before .strftime
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
C0L0R has joined #ruby
sgambino has joined #ruby
<RedNifre> I see, makes sense. Works, thank you very much!
bronson has joined #ruby
underplank has quit [Quit: underplank]
PedramT has quit [Ping timeout: 260 seconds]
davedev2_ has joined #ruby
C0L0R has quit [Client Quit]
fsapo has joined #ruby
Bodah has quit [Quit: leaving]
aganov has quit [Remote host closed the connection]
PedramT_ has quit [Remote host closed the connection]
davedev24 has quit [Ping timeout: 250 seconds]
duckpuppy has quit [Ping timeout: 264 seconds]
PedramT has joined #ruby
Bodah has joined #ruby
kies^ has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
shanemcd has quit [Remote host closed the connection]
Bodah has left #ruby [#ruby]
arup_r has quit []
Bodah has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
shanemcd has joined #ruby
duckpuppy has joined #ruby
aupadhye has joined #ruby
jam_ has joined #ruby
solars has joined #ruby
sneakerhax has quit [Quit: Leaving]
fsapo_ has joined #ruby
PedramT has quit [Ping timeout: 240 seconds]
fsapo has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
DexterLB has quit [Ping timeout: 250 seconds]
underplank has joined #ruby
jam_ has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
Azulinho has quit [Quit: Azulinho]
fsapo_ has quit [Ping timeout: 240 seconds]
the_drow has quit [Ping timeout: 252 seconds]
UtkarshRay has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
Azulinho has joined #ruby
FAMAS has joined #ruby
underplank has quit [Ping timeout: 276 seconds]
shanemcd has quit []
<hightower4> Hey, why when I run ruby program as root it works, but when I run it as a regular user it says: "Ignoring curb-0.8.8 because its extensions are not built. Try: gem pristine curb --version 0.8.8"
x77686d has joined #ruby
<lucasb> maybe it looks for the compiled code in root's home, not your user's home
pdoherty has joined #ruby
<hightower4> I figured it out, I had leftovers of .rvm in shell's config files
<hightower4> So it was overriding GEM_HOME and GEM_PATH with incorrect values
<hightower4> thanks
lxsameer has quit [Quit: Leaving]
nettoweb has joined #ruby
workmad3 has joined #ruby
govg has quit [Ping timeout: 240 seconds]
<apeiros> hightower4: glad to have been of help ;-D
<Burgestrand> I check in once in a while, and it's been a very long time, it's nice that you're still here apeiros
<Burgestrand> :)
<apeiros> Burgestrand: even with new duties noawdays ;-) nice to see you too!
<apeiros> *nowadays
govg has joined #ruby
<Burgestrand> apeiros you've been operator quite a long time now though, or are you speaking of different duties?
<apeiros> I now have founder status
<apeiros> finally managed to get that whole problem with fflush resolved
<apeiros> which also allowed us to finally merge with #ruby-lang :D
<Burgestrand> apeiros nice :D
<Burgestrand> apeiros yes I very much like the merge, feels nice to have
<apeiros> last year we spent with getting some basics in place. this year I hope to make some advancements with regards to a more community driven channel. the new tools we got allow for that :)
<apeiros> like we've now a proper channel bot, proper log recording, proper companion website.
B1n4r10 has quit [Ping timeout: 264 seconds]
rkazak has joined #ruby
<apeiros> things are coming along slowly, but nicely
<Burgestrand> ?cookie
<ruby[bot]> here's your cookie:
<Burgestrand> indeed!
govg has quit [Client Quit]
terminalrecluse has joined #ruby
<apeiros> oh, and last but not least: we've finally got proper staff :D
toretore has joined #ruby
<Burgestrand> apeiros huh, for real? what do they do?
<apeiros> Burgestrand: as in more than 3 ops
<Burgestrand> hehe, ok :)
mark2 has left #ruby ["PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :PART #nethunter :PONG :orwell.freenode.net"]
dhollinger has quit [Quit: WeeChat 1.4]
karapetyan has joined #ruby
chouhoulis has joined #ruby
GuerraIsaac has quit [Quit: Leaving]
rkazak has quit [Ping timeout: 250 seconds]
<shevy> they do nothing useful!!!
<Burgestrand> ?shevy
<ruby[bot]> shevy is the hound of baskerville (see http://irclog.whitequark.org/ruby/2015-08-13#13699759)
<Burgestrand> I knew something was amiss
<shevy> :D
dwfait has quit [Remote host closed the connection]
Nanuq has quit [Ping timeout: 264 seconds]
mfb2 has joined #ruby
govg has joined #ruby
FAMAS has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
FAMAS has joined #ruby
Nanuq has joined #ruby
kmckelvi1 has quit [Ping timeout: 272 seconds]
skade has quit [Quit: Computer has gone to sleep.]
jbrhbr has quit [Quit: Leaving.]
FAMAS has quit [Client Quit]
scepticulous has quit [Ping timeout: 265 seconds]
duckpuppy has quit [Ping timeout: 264 seconds]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
IronD has joined #ruby
[Butch] has joined #ruby
benoror has joined #ruby
aufi has quit [Quit: Konversation terminated!]
h99h9h88 has joined #ruby
arlek has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sgambino has joined #ruby
karapetyan has quit [Remote host closed the connection]
psy has joined #ruby
karapetyan has joined #ruby
psy has quit [Max SendQ exceeded]
psy has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Azulinho has quit [Quit: Azulinho]
dstarh has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Burgestrand has joined #ruby
h99h9h88 has quit [Ping timeout: 240 seconds]
Azulinho has joined #ruby
<shevy> highline is a peculiar gem
tomchapin has joined #ruby
<shevy> one day I should take the snippet where they show * rather than the password (or no input-character at all)
iateadonut has left #ruby [#ruby]
Jello_Raptor_ has quit [Ping timeout: 265 seconds]
dopamean_ has joined #ruby
Snowjob is now known as brunettesgf
Xeago has quit [Remote host closed the connection]
Sucks has quit [Ping timeout: 250 seconds]
robh71 has joined #ruby
AlexJakeGreen has joined #ruby
huyderman has quit [Remote host closed the connection]
xapak has joined #ruby
rsc___ has joined #ruby
<xapak> Hello.
brunettesgf is now known as Snowy
<Burgestrand> ?welcome
<ruby[bot]> Burgestrand: I don't know anything about welcome
<Burgestrand> Darn!
jbrhbr has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
<Burgestrand> shevy ruby has $stdin.noecho { $stdin.gets.chomp } in io/console
Jello_Raptor has joined #ruby
IronD has quit [Ping timeout: 264 seconds]
<shevy> hmm
<shevy> can it be so simple?
yardenbar has quit [Ping timeout: 245 seconds]
hannelita has quit [Remote host closed the connection]
Bodah has quit [Quit: leaving]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
atomical has joined #ruby
momomomomo has joined #ruby
bryancp has joined #ruby
<shevy> seems to work
hannelita has joined #ruby
gizmore has joined #ruby
centrx has joined #ruby
evidex has quit [Remote host closed the connection]
<Burgestrand> ;)
astrobun_ has joined #ruby
arup_r has joined #ruby
amclain has joined #ruby
<kspencer> hmm my only thing right now is getting answer_or_default to work
ramfjord has quit [Ping timeout: 272 seconds]
agit0 has joined #ruby
mjuszczak has quit []
RedNifre has quit [Remote host closed the connection]
symm- has joined #ruby
rideh has joined #ruby
FernandoBasso1 has joined #ruby
<kspencer> Here's a gist of one of the blocks https://gist.github.com/IotaSpencer/cc97d53996d059a8ab6e
<kspencer> the a is "a = HighLine.new($stdin, $stderr)"
marr has quit [Ping timeout: 240 seconds]
lucasb has quit [Quit: leaving]
yaewa has joined #ruby
FLeiXiuS` has joined #ruby
marr has joined #ruby
skade has joined #ruby
valetudo has joined #ruby
einarj_ has joined #ruby
skade has quit [Remote host closed the connection]
groteworld has joined #ruby
poguez__ has joined #ruby
scottschecter has quit [Quit: Leaving]
[ace]_ has joined #ruby
sigurding_ has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
sgambino has quit [Ping timeout: 245 seconds]
gregf1 has joined #ruby
aegis312_ has joined #ruby
thiagomarcal has joined #ruby
Or1on_ has joined #ruby
PedramT has joined #ruby
Jamo_ has joined #ruby
poguez_ has quit [Ping timeout: 240 seconds]
FernandoBasso has quit [Ping timeout: 240 seconds]
moei has quit [Ping timeout: 240 seconds]
gregf has quit [Ping timeout: 240 seconds]
whiteline has quit [Ping timeout: 240 seconds]
Or1on has quit [Ping timeout: 240 seconds]
shevy has quit [Ping timeout: 240 seconds]
Jamo has quit [Ping timeout: 240 seconds]
einarj has quit [Ping timeout: 240 seconds]
andikr has quit [Ping timeout: 240 seconds]
aegis3121 has quit [Ping timeout: 240 seconds]
codefo has quit [Ping timeout: 240 seconds]
[ace] has quit [Ping timeout: 240 seconds]
FLeiXiuS has quit [Ping timeout: 240 seconds]
poguez__ is now known as poguez_
astrobun_ has quit [Ping timeout: 240 seconds]
sigurding has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
hobodave has joined #ruby
whiteline has joined #ruby
Guest56913 has quit [Ping timeout: 240 seconds]
BTRE has quit [Quit: Leaving]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
treehug88 has joined #ruby
theslow1 has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
wanderer has joined #ruby
andikr has joined #ruby
zotherstupidguy has joined #ruby
solars has quit [Ping timeout: 260 seconds]
tubulife- has quit [Ping timeout: 250 seconds]
zambini has joined #ruby
wanderer is now known as Guest34283
thiagomarcal is now known as crunk_br
underplank has joined #ruby
rakm has joined #ruby
hobodave has quit [Max SendQ exceeded]
Pumukel has quit [Ping timeout: 260 seconds]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hobodave has joined #ruby
devlitzi has quit [Read error: Connection reset by peer]
FooMunki has quit [Quit: FooMunki]
PedramT has quit [Ping timeout: 260 seconds]
tomphp has quit [Ping timeout: 256 seconds]
PedramT has joined #ruby
Xeago has joined #ruby
devlitzi has joined #ruby
<centrx> ?damn
<ruby[bot]> centrx: I don't know anything about damn
_ht has joined #ruby
hlegius has joined #ruby
rkazak has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
BTRE has joined #ruby
govg has quit [Ping timeout: 265 seconds]
Xeago has quit [Remote host closed the connection]
govg has joined #ruby
sftrabbit has joined #ruby
x77686d has quit [Quit: x77686d]
finisherr has quit [Quit: finisherr]
gregf1 is now known as gregf
baweaver has joined #ruby
sgambino has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
krobzaur has joined #ruby
einarj_ has quit [Remote host closed the connection]
AlexJakeGreen has quit [Remote host closed the connection]
hobodave_ has joined #ruby
whiteline_ has joined #ruby
blt_ has joined #ruby
<theslow1> Hey everyone, I need some help debuging why rake db:migrate does not work on my system: I am not quite familiar with ruby: https://dpaste.de/rtJR#L
rkazak has quit [Ping timeout: 272 seconds]
krandi has joined #ruby
snockerton has joined #ruby
whiteline has quit [Ping timeout: 240 seconds]
krobzaur_ has quit [Ping timeout: 240 seconds]
hxegon has quit [Ping timeout: 240 seconds]
hobodave has quit [Ping timeout: 240 seconds]
robh71 has quit [Ping timeout: 240 seconds]
blt has quit [Ping timeout: 240 seconds]
andikr has quit [Ping timeout: 240 seconds]
krandi has quit [Remote host closed the connection]
<xapak> I’m starting to work on a script, I’m kind a new to Ruby, so I’m curious if this approach looks good for creating a command line tool with subcommands: http://pastebin.com/uguxjSrT
<ruby[bot]> xapak: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/39826b9066d4ecaa74a6
<ruby[bot]> xapak: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
workmad3 has quit [Ping timeout: 245 seconds]
<centrx> At least we can all agree not to use pastebin.com!
<theslow1> what about dpaste.de?
<xapak> Sorry, didn’t read topic. :(
joonty has quit [Ping timeout: 250 seconds]
baweaver has quit [Ping timeout: 250 seconds]
<newdan> theslow1: That's fine
<centrx> theslow1, Sounds like unable to load the Datashift file with require? Maybe missing?
kernelpanik has joined #ruby
<xapak> I was going to use pastie.org, but it was down, and also I didn’t know I could have anonymous gists...
<centrx> xapak, Thor is a good option (library) for command-line with subcommands
<kernelpanik> Hi to all, why warbler does not consider jruby-jars9.0.4.0 but only old versions?
<theslow1> centrx, I am not sure why datashift is installed (see line 111) at version 0.15.0
wilbert has joined #ruby
<newdan> xapak: No worries, ruby[bot] took care of it, you're not in trouble lol
hxegon_ has joined #ruby
tomphp has joined #ruby
dwfait has joined #ruby
<xapak> centrx, but in general, does mine look good enough? I think I’ll be limited to Ruby libraries only (policies), so I’m kinda restrictred to using Ruby-provided only. In any case, this is more of a helper than anything else, so I don’t want to get complicated with frameworks or anything either.
<centrx> theslow1, does Gemfile.lock show it as depended on by another gem?
maletor has joined #ruby
tubuliferous_ has joined #ruby
aegis312_ has quit [Ping timeout: 240 seconds]
<centrx> xapak, Looks solid, not clear what's going on with 'subcommands' though
e4xit has quit [Read error: Connection reset by peer]
<centrx> xapak, Is the value of that what's returned by the OptionParser.new block?
e4xit has joined #ruby
<xapak> Yes. That way I could have multiple subcommands. Let me update it.
karmatr0n has joined #ruby
maletor has quit [Read error: Connection reset by peer]
<centrx> xapak, Personally I would use a class with different methods, more organized than putting a bunch of OptionParser blocks in a hash
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
solars has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
colegatron has quit [Ping timeout: 272 seconds]
ceej has quit [Ping timeout: 260 seconds]
edulix_ has quit [Quit: No Ping reply in 180 seconds.]
<theslow1> centrx, datashift_spree required datashift >= 0.12.0
sftrabbit has quit [Quit: sftrabbit]
baweaver has joined #ruby
<centrx> theslow1, So is that something you use, or is it required by yet another thing?
benlovell has joined #ruby
Bish has quit [Quit: ZNC - http://znc.sourceforge.net]
djellemah has joined #ruby
edulix has joined #ruby
blt_ has quit [Ping timeout: 265 seconds]
toretore has quit [Ping timeout: 260 seconds]
v0n has quit [Ping timeout: 260 seconds]
ex0ns_ has quit [Ping timeout: 260 seconds]
ex0ns has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
s0undw4ve has quit [Ping timeout: 260 seconds]
PaulePanter has quit [Ping timeout: 260 seconds]
lindistock has quit [Read error: Connection reset by peer]
jbrhbr has quit [Quit: Leaving.]
s0undw4ve has joined #ruby
Bish_ has joined #ruby
PaulePanter has joined #ruby
hlegius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tarantul has joined #ruby
<xapak> centrx, how do you mean a class?
<theslow1> centrx I think it is a dependency brought in by spree. I'll check github to see if that is really the case
marr has quit []
<xapak> centrx, if you know of a project which has a good command line interface, let me know.
marr has joined #ruby
gregf has joined #ruby
<ljarvis> xapak: Have you considered using something like Thor?
Snowy has quit []
SOLDIERz has quit [Ping timeout: 250 seconds]
<xapak> ljarvis, I have limited availability of anything outside Ruby-default libraries.
<xapak> centrx, I still don’t see the picture of what you mean. Let me reread your previous comment.
<ljarvis> ok.. and you can't vendor something?
<centrx> xapak, You could have a method for each subcommand
<centrx> xapak, that's how Thor does it
toretore has joined #ruby
sftrabbit has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
ceej has joined #ruby
finisherr has joined #ruby
v0n has joined #ruby
<tarantul> anyone can help?
<ruby[bot]> tarantul: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/82fb4158315cbc2dcfc6
<ruby[bot]> tarantul: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
cschneid_ has joined #ruby
mikecmpbll has quit [Ping timeout: 272 seconds]
Pumukel has joined #ruby
<ljarvis> tarantul: because "_type" != :_type
<ljarvis> tarantul: record["_type"] if record.has_key?("_type")
sigurding_ has quit [Quit: sigurding_]
<tarantul> ljarvis: I try both, problem not here
<ljarvis> otherwise you're comparing Strings and Symbols
<ljarvis> heh
<ljarvis> ok, so please update with the correct code and log
dlitvak has joined #ruby
dionysus69 has joined #ruby
<ljarvis> and use p() not puts()
<xapak> centrx, oh, I see what you mean.
<xapak> Thank you all!
baweaver has quit [Remote host closed the connection]
<newdan> tarantul: Is it possible that record['_type'] *is* nil?
xapak has left #ruby [#ruby]
<ljarvis> there's that too
zast has joined #ruby
SCHAAP137 has joined #ruby
<ljarvis> has_key? will return true if the key exists but the value is nil
<newdan> tarantul: e.g. {"_type" => nil}
<ljarvis> enter, using p() and not puts()
scottschecter has joined #ruby
scottschecter has quit [Max SendQ exceeded]
<ljarvis> and maybe p(record) ... you know, important information is useful in debugging :)
puria has quit [Ping timeout: 272 seconds]
<tarantul> ljarvis: newdan I add new code and log as comment
<tarantul> record doesn't have _type
antgel has quit [Ping timeout: 265 seconds]
<ljarvis> then it works as expected
mdw has joined #ruby
dionysus69 has quit [Remote host closed the connection]
sftrabbit has quit [Quit: sftrabbit]
musicnode has joined #ruby
<newdan> tarantul: Oh. ...well then there you go
snockerton has quit [Quit: Leaving.]
<ljarvis> type_name is nil because that's the default value for Hash#[] if the key does not exist
dionysus69 has joined #ruby
<tarantul> ljarvis: why second call 'p type_name' return nil ?
<ljarvis> tarantul: See my comment above
<ljarvis> >> {}[:foo]
<ruby[bot]> ljarvis: # => nil (https://eval.in/508293)
<ljarvis> this is why everyone should use Hash#fetch
antgel has joined #ruby
psy has quit [Disconnected by services]
kies^ has quit [Ping timeout: 250 seconds]
rsc___ has quit [Quit: rsc___]
<newdan> ljarvis: Well, the assignment shouldn't be happening if has_key?("_type") is false
psy_ has joined #ruby
<newdan> ljarvis: Which it should be according to his output
<ljarvis> right, it's not happening
colegatron has joined #ruby
<ljarvis> so yes good point :)
<ljarvis> but something tells me trying to describe scopes and lvar values is going to be confusing
solars has quit [Ping timeout: 240 seconds]
hakunin_ has joined #ruby
nav_ has quit [Remote host closed the connection]
hakunin has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
nav_ has joined #ruby
<tarantul> ljarvis: newdan I don't understand
<tarantul> I have 'if record.has_key()'
<ljarvis> tarantul: https://eval.in/508295
nav_ has quit [Read error: Connection reset by peer]
<tarantul> has_key() returns false
portiad has joined #ruby
<ljarvis> this is why it's nil
nav_ has joined #ruby
<newdan> ljarvis: But his variable is previously defined
kernelpanik has quit [Ping timeout: 252 seconds]
davedev24 has joined #ruby
<ljarvis> where?
<ljarvis> oh
<newdan> ljarvis: The second line of his code is "p type_name"
<ljarvis> ffs this code output is ridiculous
portiad has quit [Remote host closed the connection]
<newdan> ljarvis: Haha, I agree
jespada has quit [Quit: WeeChat 1.5-dev]
<tarantul> ljarvis: ok
pandaant has joined #ruby
<newdan> tarantul: What is record.class
davedev2_ has quit [Ping timeout: 260 seconds]
<tarantul> ruby strange
devlitzi has quit [Quit: devlitzi]
<newdan> tarantul: I don't think Ruby is the thing that's strange here
TomPeed has joined #ruby
<ljarvis> here's another approach, I don't believe this is the exact code you're showing us. You need to show us *everything* related. Otherwise we build code which looks like this: https://eval.in/508296
<ljarvis> which works as it should
scottschecter has joined #ruby
scottschecter has quit [Max SendQ exceeded]
B1n4r10 has joined #ruby
<tarantul> ljarvis: newdan big tnx!
<ljarvis> :/
DexterLB has joined #ruby
nertzy2 has quit [Quit: This computer has gone to sleep]
<newdan> tarantul: wat
fmcgeough has joined #ruby
<newdan> tarantul: Uh... you're welcome I guess
IronD has joined #ruby
duckpuppy has joined #ruby
<tarantul> hmhm...
<tarantul> I wrote 'type_name = record.fetch("_type", type_name)', but have nil anyway
<ljarvis> so, type_name *must* be nil
<ljarvis> and your code is not exactly how you show it
nav_ has quit [Remote host closed the connection]
nav_ has joined #ruby
<tarantul> ljarvis: I want rewrite type_name from record key "_type"
Abrin has joined #ruby
bronson has joined #ruby
skade has joined #ruby
<ljarvis> tarantul: show us *all* of your code
kies^ has joined #ruby
synthroid has joined #ruby
Pupp3tm4st3r has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
<ljarvis> kspencer: I don't use Highline but your question doesn't actually explain what's wrong
solars has joined #ruby
<tarantul> ljarvis: http://pastebin.com/BT5abZLN
<ruby[bot]> tarantul: as I told you already, please use https://gist.github.com
<ljarvis> kspencer: "I've not been successful" is not a good description of your problem
Ishido has joined #ruby
User458764 has joined #ruby
pawnbox has quit [Remote host closed the connection]
<newdan> tarantul: https://eval.in/508307
<newdan> tarantul: So something else is happening that you're not telling us or perhaps you're unaware of
bronson has quit [Ping timeout: 265 seconds]
jam_ has joined #ruby
Macaveli has joined #ruby
<tarantul> newdan: I test my code in irb, all works fine. But if I run it on server, type_name sets to nil :(
<kspencer> ljarvis: fixing the question, but the problem being if I try to var.answer_or_default outside, it says the var has no method named it, when used inside there is an argument error which the documentation says 'answer_string' which inside the block I don't know how to exactly get my 'answer_string' considering the var has the answer inside it, and as far as i know can't be used inside its own block
DexterLB has quit [Ping timeout: 250 seconds]
<newdan> tarantul: So the code on the server is different from the code you're pasting us. Either record is different or the code as written is different (and perhaps contains a typo) or something else, I dunno. But it's not really possibly to help you since the code you're giving us doesn't lead to the output you're giving us
guacamole has joined #ruby
DexterLB has joined #ruby
tubuliferous_ has quit [Ping timeout: 272 seconds]
pawnbox has joined #ruby
aeontech has joined #ruby
DoubleMalt has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
mdw has quit [Ping timeout: 250 seconds]
jam_ has quit [Ping timeout: 245 seconds]
blackmesa has joined #ruby
pareidolia has joined #ruby
firstdayonthejob has joined #ruby
PedramT has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
freerobby has quit [Quit: Leaving.]
araujo has quit [Quit: Leaving]
hahuang65 has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
<pareidolia> Does anyone know why the default object string representation (e.g. #<Object:0x00000000937b00>) looks the way it does with the #< and > ?
<apeiros> probably to provide a good delimiter
<newdan> pareidolia: Probably so it doesn't cause an error when pasted into irb
<theslow1> centrx, problem solved.. I downgraded datashift to 0.12.0 and everything worked fine
<newdan> Other representations work as literals you can paste back into irb/Ruby source
<theslow1> thanks for the support!
hahuang65 has joined #ruby
kriskropd has quit [Ping timeout: 264 seconds]
kirillzh has joined #ruby
<pareidolia> newdan: I am curious because it looks exactly like the style of the method print-object of standard-object in Common Lisp
tildes has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
<newdan> pareidolia: Oh, well maybe that's why then
<newdan> <- not an expert
<apeiros> easily possible that it was an influence
kalopsian has joined #ruby
<centrx> theslow1, excellent!
<pareidolia> It would be cool to read about this in "official history" but it's kinda hard to google :'(
dlitvak has quit [Ping timeout: 250 seconds]
<apeiros> not just that, but tons of rationales for decisions are probably nowhere documented
camillo has joined #ruby
solars has quit [Remote host closed the connection]
sigurding has joined #ruby
jbrhbr has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
<pareidolia> In CL it has special functionality because #< is a reader macro, it's part of the syntax of http://clhs.lisp.se/Body/m_pr_unr.htm
user___ has quit [Ping timeout: 245 seconds]
<pareidolia> I'm going back to #lisp now :P
<pareidolia> Cheers!
pareidolia has left #ruby [#ruby]
<kspencer> ljarvis: fixed
sol_ has quit [Ping timeout: 240 seconds]
camillo is now known as sol_
symm- has quit [Quit: Leaving...]
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
maletor has joined #ruby
<maletor> Is there a canonical way to use Enumerable to run #select but stop after the first ten?
k13nox has quit [Remote host closed the connection]
IronD has quit [Ping timeout: 264 seconds]
<apeiros> first ten results?
Marsupermammal has joined #ruby
<maletor> ya
<apeiros> enum.lazy.select { … }.first(10)
<maletor> fun
k13nox has joined #ruby
dwfait has quit [Remote host closed the connection]
hobodave_ has quit [Quit: Computer has gone to sleep.]
pawnbox has quit [Remote host closed the connection]
mfb2 has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
mfb2 has joined #ruby
pdoherty has quit [Ping timeout: 272 seconds]
musicnode has quit [Quit: musicnode]
<shevy> so lazy
freerobby1 has quit [Quit: Leaving.]
musicnode has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
toretore has quit [Ping timeout: 256 seconds]
<diegoviola> how do you guys remember all the methods that ruby has when you want to do something specific
<kspencer> constant use
<kspencer> basically
kriskropd has joined #ruby
mfb2 has quit [Client Quit]
B1n4r10 has quit [Ping timeout: 240 seconds]
DoubleMalt has quit [Ping timeout: 272 seconds]
yardenbar has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
tvw has joined #ruby
<shevy> diegoviola the big ones tend to be in enumerable or enumerator...
wonk has joined #ruby
<mg^> Also, GIYF
howdoi has quit [Quit: Connection closed for inactivity]
mrsolo_ has joined #ruby
djellemah_ has joined #ruby
<kspencer> mg^ is right, if there's something you forget, just look it up
<diegoviola> ty
<mg^> you don't have to remember everything, you do need to remember how to find the information
<kspencer> if you can't understand the documentation, that's another problem entirely :|
<mg^> "A disturbing amount of my codebase consists of stackoverflow answers"
Azulinho has quit [Ping timeout: 250 seconds]
platzhirsch has left #ruby [#ruby]
krz has quit [Quit: WeeChat 1.2]
PedramT has joined #ruby
maletor has quit [Read error: Connection reset by peer]
guacamole has quit [Read error: Connection reset by peer]
sftrabbit has joined #ruby
<diegoviola> rofl
guacamole has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
djellemah has quit [Ping timeout: 240 seconds]
Marsupermammal has quit [Quit: Textual IRC Client: www.textualapp.com]
musicnode has quit [Quit: musicnode]
dseitz has joined #ruby
<shevy> lol
djellemah__ has joined #ruby
djellemah__ is now known as djellemah
araujo has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has quit []
framling has joined #ruby
araujo has quit [Max SendQ exceeded]
mfb2 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
x77686d has joined #ruby
crime has joined #ruby
chouhoulis has joined #ruby
sgambino has joined #ruby
djellemah_ has quit [Ping timeout: 272 seconds]
sigurding has quit [Quit: sigurding]
jxs_ has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
zast has quit [Remote host closed the connection]
musicnode has joined #ruby
djellemah_ has joined #ruby
djellemah has quit [Ping timeout: 272 seconds]
sneakerhax has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
devbug has joined #ruby
<hxegon_> found another use for &. : instead of log = options.delete(:logfile) ? log.write(stuff) : STDOUT.write(stuff), do options.delete(:logfile)&.write(stuff) || STDOUT.write(stuff)
aeontech has quit [Quit: aeontech]
FernandoBasso1 has quit [Quit: Leaving]
mdw has joined #ruby
DoubleMalt has joined #ruby
tyrbo has joined #ruby
skade has joined #ruby
jxs_ has quit [Remote host closed the connection]
nertzy2 has joined #ruby
frem has joined #ruby
aeontech has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
groteworld has left #ruby ["Bye!"]
gruz0 has joined #ruby
ur5us has joined #ruby
pawnbox has joined #ruby
<drbrain> hxegon_: but write is duplicated, so why not log = options.delete(:logfile) || $stdout; log.write(stuff)
<drbrain> hxegon_: also, use $stdout, not STDOUT because it's easier to write tests for the former
hlegius has joined #ruby
<hxegon_> drbrain I like that better.
<drbrain> (you can set $stdout to anything IO-like, but you can only reopen STDOUT to another file)
k13nox has quit [Remote host closed the connection]
<hxegon_> drbrain didn't know that, thanks
ascarter has joined #ruby
baweaver has joined #ruby
arlek has quit [Ping timeout: 250 seconds]
pawnbox has quit [Ping timeout: 250 seconds]
hahuang65 has quit [Ping timeout: 264 seconds]
ascarter has quit [Remote host closed the connection]
ascarter has joined #ruby
tubuliferous_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
lektrik has joined #ruby
user has joined #ruby
ascarter has quit [Max SendQ exceeded]
baweaver has quit [Remote host closed the connection]
aadam21 has quit []
musicnode has quit [Quit: musicnode]
ascarter has joined #ruby
ramfjord_ has joined #ruby
musicnode has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
hobodave has joined #ruby
synthroid has quit [Remote host closed the connection]
freerobby has joined #ruby
gruz0 has quit [Quit: Leaving]
TomyWork has quit [Ping timeout: 248 seconds]
tubuliferous_ has quit [Ping timeout: 250 seconds]
IronD has joined #ruby
hxegon_ has quit [Quit: PEACE OUT]
hxegon has joined #ruby
user___ has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
Waheedi has joined #ruby
<Waheedi> join #httpd
<Waheedi> sorry!
usershell has quit [Remote host closed the connection]
<Waheedi> i have done that for ruby channel before in httpd :)
hahuang65 has joined #ruby
baweaver has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
user has quit [Ping timeout: 250 seconds]
jxs_ has joined #ruby
freerobby has quit [Quit: Leaving.]
aegis3121 has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
[Butch] has joined #ruby
hlegius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkxploit has quit [Ping timeout: 245 seconds]
karmatr0n has joined #ruby
bronson has joined #ruby
kmckelvi1 has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lemur has joined #ruby
sgambino has joined #ruby
Ilyes512 has joined #ruby
kalopsian has quit [Ping timeout: 240 seconds]
kalopsian has joined #ruby
rehat has joined #ruby
dlitvak has joined #ruby
juddey has joined #ruby
<shevy> you don't like us so you wanna go somewhere else :(
<crime> #ruby is pretty ok
<crime> #lua has better banter sometimes
fantazo has joined #ruby
lemur has quit [Ping timeout: 260 seconds]
sdwrage has joined #ruby
Bloomer has quit [Remote host closed the connection]
<baweaver> Someone's mooning over lua?
Abrin has quit [Quit: Nettalk6 - www.ntalk.de]
<baweaver> Lua is translated to Moon
<baweaver> no?
<diegoviola> yes
<baweaver> drat, tough crowd today
spider-mario has joined #ruby
<baweaver> yes no?
sandstrom has quit [Quit: My computer has gone to sleep.]
<baweaver> or no yes?
<baweaver> maybe yes yes.
<eam> m o o n, that spells lua
guacamole has quit [Read error: Connection reset by peer]
<crime> lua is moon in portugese, a sister to Sol, PUC-RIO's other language. moon and sun, etc etc
guacamole has joined #ruby
<kspencer> still not understanding this "Adds the default choice to the end of question between <tt>|...|</tt>." in the highline documentation/code
musicnode has quit [Ping timeout: 245 seconds]
[Butch] has quit [Ping timeout: 240 seconds]
arlek has joined #ruby
okdas has quit [Remote host closed the connection]
okdas has joined #ruby
okdas has quit [Changing host]
okdas has joined #ruby
<crime> kspencer: Question.default is an accessor, you can change it to anything you want
TomyLobo has joined #ruby
graphettion has joined #ruby
ramfjord_ has quit [Ping timeout: 276 seconds]
<kspencer> crime: I want to show it in the in question, but progmaticly as shown in the docs, I already have set the default via q.default
[Butch] has joined #ruby
moeabdol has joined #ruby
<crime> im not sure what you mean, any instance of question should have the default accessor, append_default just sets that accessor. a method of your own could have identical functionality
<crime> you can change default however you want in your own methods
guacamole has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
yardenbar has quit [Ping timeout: 245 seconds]
guacamole has joined #ruby
shadoi has joined #ruby
yqt has joined #ruby
pawnbox has joined #ruby
Brklyn has joined #ruby
cdg has quit [Remote host closed the connection]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gruz0 has joined #ruby
elaptics`away has quit [Ping timeout: 256 seconds]
crunk_br has quit [Ping timeout: 250 seconds]
<Brklyn> hi guys, quick question from a non-rubyist.... I have a long line sh %(mysql --protocol=tcp -P3306 -e "some long SQL statement" -u root -pfoo) the entire statement spans for something like 105 characters and I'd like to split it to comply with rubocop.... any hints sd to how I should split that??
baweaver has quit [Remote host closed the connection]
duckpuppy has joined #ruby
zeroDivisible has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
Limix has joined #ruby
baweaver has joined #ruby
mostlybadfly has joined #ruby
ramfjord has joined #ruby
sandstrom has joined #ruby
<crime> cant you split it with \?
<crime> im no expert or anything
marr has quit [Ping timeout: 260 seconds]
themsay has quit [Quit: AtomicIRC: The nuclear option.]
guacamole has quit [Read error: Connection reset by peer]
guacamole has joined #ruby
Guest15913 is now known as saneax_AFK
mfb2 has quit [Remote host closed the connection]
TomPeed has joined #ruby
sneakerhax has quit [Ping timeout: 240 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wonk has quit [Ping timeout: 264 seconds]
benlovell has joined #ruby
baweaver has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
dlitvak has joined #ruby
elaptics`away has joined #ruby
tvw has quit [Remote host closed the connection]
crunk_br has joined #ruby
mfb2 has joined #ruby
baweaver has joined #ruby
nettoweb has quit [Ping timeout: 245 seconds]
guacamole has quit [Read error: Connection reset by peer]
guacamole has joined #ruby
d10n-work has joined #ruby
dionysus69 has quit [Remote host closed the connection]
goodcodeguy has joined #ruby
dionysus69 has joined #ruby
Xeago has quit [Remote host closed the connection]
guacamole has quit [Read error: Connection reset by peer]
blackgoat has joined #ruby
baweaver has quit [Remote host closed the connection]
guacamole has joined #ruby
Xeago has joined #ruby
B1n4r10 has joined #ruby
nettoweb has joined #ruby
user___ has quit [Ping timeout: 272 seconds]
blaxter has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
hxegon has quit [Ping timeout: 240 seconds]
itscalleddaytwah has joined #ruby
nettoweb has quit [Max SendQ exceeded]
dlitvak has quit [Ping timeout: 240 seconds]
sasdasd has joined #ruby
sasdasd has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
jam_ has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
pandaant has quit [Remote host closed the connection]
casadei has joined #ruby
Xeago has quit [Remote host closed the connection]
pawnbox has joined #ruby
Pupp3tm4st3r has joined #ruby
_djbkd has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
tubuliferous_ has joined #ruby
jam_ has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
dlitvak has joined #ruby
valetudo has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 240 seconds]
Cohedrin has joined #ruby
stannard_ has joined #ruby
Xeago has quit [Remote host closed the connection]
saneax_AFK is now known as saneax
saneax is now known as Guest16327
usershell has joined #ruby
zotherstupidguy has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 245 seconds]
stannard has quit [Ping timeout: 276 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sandstrom has quit [Quit: My computer has gone to sleep.]
ByronJoh1son has quit [Ping timeout: 260 seconds]
stannard_ has quit [Ping timeout: 240 seconds]
FernandoBasso has joined #ruby
ldnunes_ has quit [Quit: Leaving]
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
stannard has joined #ruby
usershell has quit [Ping timeout: 256 seconds]
DoubleMalt has quit [Remote host closed the connection]
stannard has quit [Remote host closed the connection]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
itscalleddaytwah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
yaewa has quit [Quit: Leaving...]
ramfjord has joined #ruby
synthroid has joined #ruby
benlovell has quit [Read error: Connection reset by peer]
crime has quit [Ping timeout: 252 seconds]
Pupp3tm4st3r has quit [Remote host closed the connection]
last_staff has quit [Ping timeout: 276 seconds]
last_staff has joined #ruby
Guest16327 is now known as saneax_AFK
ur5us has quit []
arlek has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
tyrbo has quit [Ping timeout: 256 seconds]
finisherr has quit [Quit: finisherr]
hannelita has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
<gruz0> Brklyn, use HEREDOC, Luke! :-)
dlitvak_ has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
smileart has joined #ruby
ur5us has joined #ruby
Ebok has joined #ruby
arup_r has joined #ruby
kies^ has quit [Ping timeout: 264 seconds]
mdw has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
guacamole has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
baweaver has joined #ruby
skcin7 has joined #ruby
wonk has joined #ruby
jackjackdripper has joined #ruby
xz has joined #ruby
jbrhbr1 has joined #ruby
<zambini> This may be too specific/off topic a question for #ruby (has to do with Mongoid), but if I've got multiple chains of Mongoid scopes in a method, what's the cleanest way to write specs for that?
yfeldblum has joined #ruby
xz has left #ruby [#ruby]
mdw has quit [Client Quit]
skade has joined #ruby
micalexander has joined #ruby
jbrhbr has quit [Ping timeout: 272 seconds]
<zambini> Specifically around the expects and the mock responses
dome22xl has joined #ruby
betafive has quit [Ping timeout: 252 seconds]
skade has quit [Client Quit]
marr has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
fantazo has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 245 seconds]
last_staff1 has joined #ruby
last_staff has quit [Ping timeout: 276 seconds]
last_staff1 is now known as last_staff
B1n4r10 has quit [Ping timeout: 245 seconds]
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
yalue has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.3]
al2o3-cr has joined #ruby
atomical_ has joined #ruby
djellemah__ has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
atomical has quit [Ping timeout: 264 seconds]
e4xit has quit [Quit: Right I'm out!]
e4xit has joined #ruby
x77686d has joined #ruby
mdw has joined #ruby
djellemah_ has quit [Ping timeout: 264 seconds]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
[Butch] has quit [Quit: I'm out . . .]
jbrhbr1 has quit [Quit: Leaving.]
symm- has joined #ruby
IronD has quit [Ping timeout: 272 seconds]
dome22xl has quit [Remote host closed the connection]
guacamole has joined #ruby
zotherstupidguy has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
fmcgeough has quit [Quit: fmcgeough]
pdoherty has joined #ruby
djellemah_ has joined #ruby
h99h9h88 has joined #ruby
Ox0dea has joined #ruby
pawnbox has joined #ruby
sandstrom has joined #ruby
djellemah__ has quit [Ping timeout: 256 seconds]
gruz0 has quit [Quit: Leaving]
workmad3 has joined #ruby
chilerails has joined #ruby
B1n4r10 has joined #ruby
ferr has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
pwnd_nsfw has joined #ruby
arup_r has quit []
pawnbox has quit [Ping timeout: 264 seconds]
zotherstupidguy has quit [Quit: WeeChat 1.3]
last_staff has quit [Quit: last_staff]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
bithon has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
davedev24 has quit [Ping timeout: 240 seconds]
m8 has joined #ruby
davedev24 has joined #ruby
_djbkd has quit [Ping timeout: 256 seconds]
stannard has joined #ruby
graphettion has quit [Ping timeout: 256 seconds]
zoo-zed has joined #ruby
e4xit has quit [Quit: Right I'm out!]
despai has joined #ruby
PedramT_ has joined #ruby
PedramT has quit [Ping timeout: 265 seconds]
chilerails has quit [Quit: Textual IRC Client: www.textualapp.com]
lucasb has joined #ruby
mrsolo_ has quit [Quit: This computer has gone to sleep]
tris has quit [Ping timeout: 250 seconds]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
haxrbyte has joined #ruby
stannard has quit [Ping timeout: 276 seconds]
jbrhbr has joined #ruby
PedramT_ has quit [Remote host closed the connection]
haxrbyte has quit [Client Quit]
Snowy has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
moeabdol has quit [Quit: WeeChat 1.4]
nymous has joined #ruby
moeabdol has joined #ruby
<nymous> hey folks
<nymous> i need an advice
<centrx> Just one?
hahuang65 has joined #ruby
<nymous> i need to check a data structure for key existence and return value or nil
tris has joined #ruby
micalexander has quit [Remote host closed the connection]
kies^ has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
<nymous> something like data["history"][0]["fields"][mykey]
Burgestrand has joined #ruby
tyrbo has joined #ruby
Burgestrand has quit [Client Quit]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
<nymous> i can't be sure that all this level even exist
bithon has quit [Quit: WeeChat 1.4]
<nymous> my first attempt was to just use rescue
<shevy> is this not a use case for .dig
_djbkd has joined #ruby
<centrx> nymous, If you use Ruby 2.3, you can use the new method hash#dig
despai has quit [Quit: This computer has gone to sleep]
<nymous> but rescue is slow and i need to go throught gigabytes of data
toretore has joined #ruby
<Ox0dea> nymous: #dig it, man!
<nymous> i'm on 1.9.3 (
despai has joined #ruby
<nymous> debian 7 oldstable
<Ox0dea> Onoes!
<Ox0dea> You won't be able to #dig it without a polyfill.
akkad has quit [Excess Flood]
<lucasb> is upgrading an option?
hannelita has joined #ruby
aef has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 264 seconds]
hobodave has joined #ruby
kirillzh has joined #ruby
devbug has quit [Ping timeout: 272 seconds]
Mojo_Nixon has joined #ruby
Ilyes512 has joined #ruby
<nymous> not yet
cdg has joined #ruby
Mojo_Nixon has quit [Client Quit]
<nymous> and data structure is not a pure hash, it might contain arrays as well
cdg has quit [Read error: Connection reset by peer]
<Ox0dea> Sure, that's part of #dig's "contract".
<Ox0dea> It attempts to drill down into anything #diggable.
cdg has joined #ruby
<atomical_> i dig it
<nymous> so, any option for 1.9.3&
<nymous> ?
yfeldblum has quit [Ping timeout: 250 seconds]
Sucks has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
akkad has joined #ruby
sneakerhax has joined #ruby
devbug has joined #ruby
_ht has quit [Quit: Konversation terminated!]
theslow1 has quit [Quit: Leaving]
<Ox0dea> >> h = {a: [1, {b: :*}]}; [:a, 1, :b].reduce(h) { |h, k| h[k] or break nil } # nymous: Or just this.
<ruby[bot]> Ox0dea: # => :* (https://eval.in/508416)
tenderlove has joined #ruby
tildes has quit [Ping timeout: 256 seconds]
matp has quit [Remote host closed the connection]
<nymous> oh, i'll try the last one :)
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> <3
tyrbo has quit [Ping timeout: 256 seconds]
Ilyes512 has joined #ruby
dexter-tzu has joined #ruby
matp has joined #ruby
sigurding has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
PedramT has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
ghoti has quit [Quit: Changing server]
saneax_AFK is now known as saneax
saneax is now known as Guest36761
Mojo_Nixon has joined #ruby
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hannelita has quit [Remote host closed the connection]
Shaboum has quit [Quit: WeeChat 1.4]
PedramT has quit [Ping timeout: 250 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zacts> hi rubyists
babblebre has joined #ruby
<Ox0dea> Ahoy, zacts!
h99h9h88 has joined #ruby
bronson has quit [Remote host closed the connection]
pawnbox has joined #ruby
baweaver has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 250 seconds]
kirillzh has joined #ruby
Mojo_Nixon has quit [Quit: Textual IRC Client: www.textualapp.com]
<zacts> hi =)
<zacts> So, I'm working on my first Ruby app
<zacts> it's just a simple little web bookmarks cli tool
<zacts> but maybe it will evolve into something
<zacts> I may pastebin here for advice
<zacts> once I have it working.
karapetyan has quit [Ping timeout: 245 seconds]
<zacts> I'm going to try to use it as a vehicle for learning Ruby, and for RSpec eventually, and all that jazz
aeontech has quit [Quit: aeontech]
TomyLobo has quit [Ping timeout: 264 seconds]
mrsolo_ has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
h99h9h88 has quit [Ping timeout: 265 seconds]
<gizmore> hola zacts
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nav_ has quit []
synthroid has quit []
aegis3121 has quit [Ping timeout: 250 seconds]
tyrbo has joined #ruby
framling has quit [Remote host closed the connection]
<zacts> hola gizmore
<zacts> :-)
<gizmore> what gems are you using for your cliwebmarks?
<zacts> gizmore: thus far, none
<gizmore> what is your coding background?
<zacts> although, I'm following a few books
<zacts> the command line apps with ruby2 by pragprog
<zacts> text processing with ruby by pragprog
<gizmore> nice
<zacts> gizmore: a bit of Perl5
<gizmore> aight
<gizmore> :enjoy
<zacts> and the ruby2 black book, metaprogramming ruby 2, and poodr are next on my list
jgpawletko has quit [Quit: jgpawletko]
<zacts> I just completed the codeacademy ruby and final projet
<zacts> project*
momomomomo has joined #ruby
<zacts> just to get up and running, Perl5 was like 3 - 4 years ago, so I was totally out of practice
<zacts> gizmore: I do use vim btw, and I <3 <3 the command line
agit0 has quit [Ping timeout: 264 seconds]
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zacts> let me pastebin what I have now
<Ox0dea> Even with this ridiculously logo, nobody seems to spell it right. http://i.imgur.com/5jKVTwl.png
<zacts> I know you mention gist in the /topic, but is sprunge.us ok?
<Ox0dea> *ridiculous
aeontech has joined #ruby
aegis3121 has joined #ruby
<gizmore> i am quite a newbie still... for me sprunge.us seems ok
dcunit3d has quit [Ping timeout: 276 seconds]
<zacts> heh Ox0dea I didn't realize this
<gizmore> but excpect less people click that
<gizmore> Ox0dea: you should contact codeacademy... seems like a rip off
mfb2 has quit [Remote host closed the connection]
<Ox0dea> gizmore: Never heard of it. :P
<nymous> i'm writing output to stdout redirecting it to a file. will explicit flushing or something like that make things faster?
<Papierkorb> codæcademy ?
guacamole has joined #ruby
<gizmore> nymous: file operations always ring my race condition bell :S
<Ox0dea> Is there no EA ligature, then?
<gizmore> try ltr it
<gizmore> rtl
dlitvak_ has quit [Ping timeout: 245 seconds]
<gizmore> else mirrorflip april first css rule
<Papierkorb> nymous: No, if at all, slower. Flushing the data may make the HDD/SSD 'spin' and thus waste time for writing a few bytes. let the OS do its job and let it do its caching thing
haxrbyte has joined #ruby
baweaver has joined #ruby
<nymous> Papierkorb: i meant ruby's output flushing
<Ox0dea> nymous: Why are you redirecting instead of writing to the file directly?
gizmore has quit [Quit: n8yn8]
zoo-zed has quit [Ping timeout: 245 seconds]
<Papierkorb> nymous: are you redirecting the output from the shell, or do you bend $stdout yourself?
<nymous> Papierkorb: shell
<nymous> Ox0dea: it's a filter script. json on stdin, csv on stdout
jam_ has joined #ruby
<Papierkorb> sounds fine to me
<Papierkorb> nymous: oh and for that stuff, if you're not using ARGF, then have a look at it
lektrik has quit [Quit: Leaving]
<nymous> i'm using ARGF
<Papierkorb> yay
<Ox0dea> nymous: I'm not sure I follow. You're writing a tool that's explicitly intended to be redirected?
<nymous> ARGF.each do |line| raw = JSON.parse(line) ...
<nymous> Ox0dea: yes
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
binaryplease has joined #ruby
<Papierkorb> Ox0dea: what's wrong with it? That's how tools following unix principles work
<lucasb> hmm, you are parsing one line at a time?
binaryplease has quit [Client Quit]
<Papierkorb> especially for filter tools like sed or grep
<nymous> yes, line by line
guacamole has joined #ruby
<Ox0dea> Papierkorb: Aye, the bit about nymous being the one doing the redirection threw me.
momomomomo has quit [Quit: momomomomo]
casadei has quit [Remote host closed the connection]
<Ox0dea> nymous: Are you sure that works? JSON.parse doesn't have a memory.
rkazak has joined #ruby
<nymous> you mean what?
ghoti has joined #ruby
aegis3121 has quit [Ping timeout: 265 seconds]
<nymous> it works, but kinda slow
jam_ has quit [Ping timeout: 264 seconds]
skcin7 has joined #ruby
Darmani has joined #ruby
<Darmani> Hey kids<3
tyrbo has quit [Ping timeout: 256 seconds]
<lucasb> can it parse "{\n}" ?
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
newbie22 has joined #ruby
davedev2_ has joined #ruby
postmodern has joined #ruby
<nymous> well, not that slow though, but 11 million lines got parsed aprox 60 minutes
<Ox0dea> Heavens. Maybe you ought to just use `jq` instead.
<nymous> it's a little bit complicated for jq
dcunit3d has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
stevemackinnon has joined #ruby
betafive has joined #ruby
<nymous> it depends on 2 external dictionaries to get proper values and overall structure of input json is complicated
ta has joined #ruby
hannelita has joined #ruby
sigurding has quit [Quit: sigurding]
ElFerna has joined #ruby
pawnbox has joined #ruby
rkazak has quit [Ping timeout: 260 seconds]
newbie22 has quit [Quit: Leaving]
darkf has quit [Quit: Leaving]
blackgoat has joined #ruby
mdw has quit [Ping timeout: 240 seconds]
djdj has joined #ruby
<nymous> hm, i'm piping from zcat, maybe it does slowdown
djdj has left #ruby [#ruby]
ebbflowgo has joined #ruby
mfb2 has joined #ruby
djdj has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
B1n4r10 has quit [Ping timeout: 240 seconds]
Liquid-- has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
ebbflowgo has quit [Client Quit]
zodoz has joined #ruby
<Ox0dea> Sounds like you need `jz`.
asmodlol has quit [Quit: Leaving]
<Ox0dea> I totally use that as the extension on gzipped JSON files.
mrsolo_ has quit [Quit: This computer has gone to sleep]
<sts> hello folks. I'm looking for a way to compare path patterns in a more simple way than the standard ruby regex. are there any libraries to do this? eg. I want to compare strings against strings such as [ '/.config.yaml', '/dir/**', '/dir*' ]
jgpawletko has joined #ruby
<Ox0dea> sts: Compare them how? Character-wise?
Rickmasta has joined #ruby
<sts> I have a list of files, and I want to compare each item against a list of simple regex patterns.
<sts> Usabillity wise, it shouldn't be full regexes.
x77686d has quit [Quit: x77686d]
<Ox0dea> sts: I think you might want Regexp.union.
<sts> More like file globbings
<Ox0dea> So you want to touch the filesystem during string comparison?
mlohstroh has joined #ruby
wilbert has quit [Ping timeout: 265 seconds]
mlohstroh has left #ruby [#ruby]
<Darmani> Is there a way to capture specific numbers within a Regex? Like if I only wanted to get numbers 1 - 12?
wonk has quit [Ping timeout: 240 seconds]
<sts> Ox0dea: well, basically the construct looks like Find.find(path) { |file| next if exceptions.any? { |pattern| file =~ Regexp.new(pattern) }}
<Ox0dea> sts: And that's not fine?
<Ox0dea> As mentioned, that could just be `next if Regexp.union(exceptions).match(file)`.
<sts> But i want to match paths in case I have exceptions like: [ '/.config.yaml', '/tmp/sess_*', '/pub/uploads' ]..etc
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tyrbo has joined #ruby
<sts> I would like to avoid '\/tmp\/sess_.*$'
<Ox0dea> Because masochism?
gbgdev has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<sts> usability :)
stannard has joined #ruby
devbug has quit [Ping timeout: 272 seconds]
oivoodoo has joined #ruby
<Ox0dea> >> %r(a/b/c).class # sts
<ruby[bot]> Ox0dea: # => Regexp (https://eval.in/508435)
<sts> so simple patterns, as eg. one would be used to in bash
uri_ has joined #ruby
<sts> Regexp.escape looks pretty neat, but it would escape a * as well..
davedev2_ has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
djdj has quit [Quit: Leaving]
symm- has quit [Ping timeout: 272 seconds]
smileart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lucasb has quit [Quit: leaving]
chouhoulis has quit [Remote host closed the connection]
davedev24 has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
shadoi has quit [Quit: Leaving.]
tubuliferous_ has joined #ruby
* sts searching the ruby toolbox
betafive has quit [Quit: connection reset by pear]
blackmesa has joined #ruby
x77686d has joined #ruby
<Papierkorb> sts: you can 'translate' that globbing pattern into a regular expression
shadoi has joined #ruby
ur5us has joined #ruby
mrsolo_ has joined #ruby
newdan has quit [Remote host closed the connection]
ur5us_ has joined #ruby
ta has quit [Ping timeout: 245 seconds]
<Darmani> \[\d\d\-\d\d\]
<Darmani> oopss
user083 has joined #ruby
<Darmani> \[(1-12)\-(1-31)\] < -- I thought this would capture a range of numbers but it doesn't.
<Darmani> And now I'm sad.
<Papierkorb> Darmani: capturing a specific range of numbers is not something regexps are good at
<bnagy> that is the usual outcome when using regex
<Darmani> nnuuuuu...
k13nox has joined #ruby
pengus has joined #ruby
<bnagy> "I thought [something] so I tried with a regex and now I am sad" ~ Everyone, Ever
ur5us has quit [Ping timeout: 256 seconds]
<Papierkorb> Darmani: consider just matching any number and then doing the validation in code
mrsolo_ has quit [Ping timeout: 240 seconds]
<Darmani> Papierkorb - ohh that's a good idea.
ceej has quit [Remote host closed the connection]
<Papierkorb> sts: replace the 2 with a 3 in the regex ..
polishdub has quit [Quit: Leaving]
<sts> damn, true :)
m8 has quit [Quit: Sto andando via]
<sts> actually he was right, but not >9 :)
ceej has joined #ruby
pawnbox has joined #ruby
zodoz has quit [Quit: Ex-Chat]
scripore has quit [Quit: This computer has gone to sleep]
<Papierkorb> sts: you were looking for [1-4] btw
<Papierkorb> (well or similar, you get the idea)
bronson has joined #ruby
zenlot has quit [Ping timeout: 256 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenlot has joined #ruby
betafive has joined #ruby
victortyau has joined #ruby
<sts> anyways there are better ways to dael with numbers
pawnbox has quit [Ping timeout: 240 seconds]
scripore has joined #ruby
tyrbo has quit [Ping timeout: 256 seconds]
sdwrage has quit [Quit: Leaving]
<Ox0dea> Start by treating them as numbers ASAP.
Limix has quit [Read error: Connection reset by peer]
Limix has joined #ruby
aeontech has quit [Quit: aeontech]
graphettion has joined #ruby
tomphp has joined #ruby
scripore has quit [Client Quit]
davedev24 has quit [Ping timeout: 240 seconds]
hobodave has quit [Ping timeout: 245 seconds]
tlaxkit has joined #ruby
baweaver has joined #ruby
artX000 has quit [Ping timeout: 245 seconds]
patrick99e99 has joined #ruby
uri_ has quit [Ping timeout: 250 seconds]
<patrick99e99> Hi everyone.. just curious, is there any easy way around this: CGI.escapeHTML '&amp;' --> '&amp;amp;' ?
<patrick99e99> i suppose I can do CGI.escapeHTML(CGI.unescapeHTML('&amp;'))
<patrick99e99> seems awful though
FernandoBasso has quit [Quit: Leaving]
<Zarthus> that's the way I'd do it, but why is there unescaped HTML in your string to begin with?
<Zarthus> s/un//
<Zarthus> seems like you forgot to decode a string earlier on, or that it doesn't need encoding to begin with
PedramT has joined #ruby
devbug has joined #ruby
<patrick99e99> Zarthus: thats a good question.. yeah, its for allowing user to put html in emails that may or may not be escaped...
<patrick99e99> *users
<sts> Ox0dea: do you know if there is any research regarding the performance of doing multiple regexes vs Regexp.union? Does union lower complexity?
<Zarthus> I don't trust my users to insert HTML.
<drbrain> sts_: I think that would depend upon the regexp
<Ox0dea> sts: ^, but doing it with a union means it only has to walk the string at most once.
ElFerna has quit [Ping timeout: 250 seconds]
<Zarthus> patrick99e99, generally you want to store a string as-is, and then decode it later on. If they're inserting &amp;, I'd say it should be stored as &amp - and if they want to insert &, they should insert &.
<Ox0dea> sts: Consider the simpler case of counting the number of As, Bs, and Cs in "abracadabra".
<patrick99e99> Zarthus: yes.... I am on the mailer side, trying to make all the encoding uniform.. right now < works but &lt; is turning into &amplt; which is not working... so I am trying to normalize everything
<Zarthus> you could decode it twice on processing time; none of the solutions are very elegant, and generally implies an issue with design earlier on.
<Ox0dea> >> require 'cgi'; CGI.unescapeHTML '&lt;3' # patrick99e99
<ruby[bot]> Ox0dea: # => "<3" (https://eval.in/508453)
<Ox0dea> Are you sure that's not what you want?
PedramT has quit [Ping timeout: 272 seconds]
<Zarthus> Ox0dea, he has users submitting &amp;, and then encodes it again to become &amp;amp;
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
musicnode has joined #ruby
<Ox0dea> But... why?
<Zarthus> Their users are allowed to input HTML.
<Zarthus> ¯\_(ツ)_/¯
<Ox0dea> Fun fun.
bronson has quit [Remote host closed the connection]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ropeney has joined #ruby
_djbkd has quit [Remote host closed the connection]
aeontech has joined #ruby
davedev24 has joined #ruby
<sandstrom> I have a global constant named `PIPELINE`, and I don't quite understand where its coming from. Is this a native ruby thing, or just some weirdness in my project or a gem?
<nymous> damn, without rescue my script now performs during 53 minutes
<nymous> 8 minutes better than with rescue
<nymous> still a lot of time
guacamole has quit [Read error: Connection reset by peer]
ziyadb has joined #ruby
guacamole has joined #ruby
oivoodoo has quit [Remote host closed the connection]
hlegius has joined #ruby
<baweaver> what is it doing?
avat has joined #ruby
pdoherty has quit [Ping timeout: 240 seconds]
ebbflowgo has joined #ruby
avat has quit [Client Quit]
_djbkd has joined #ruby
pawnbox has joined #ruby
<pengus> exit
pengus has quit [Quit: Bitchx: Better than peer]
guacamole has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
guacamole has joined #ruby
ByronJohnson has joined #ruby
<nymous> baweaver: are you asking me?
tyrbo has joined #ruby
moeabdol has quit [Quit: WeeChat 1.4]
<baweaver> yep. Forgot to tag names.
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
moeabdol has joined #ruby
whippythellama has quit [Ping timeout: 250 seconds]
Jackneill has quit [Ping timeout: 240 seconds]
kies^ has quit [Ping timeout: 265 seconds]
pawnbox has quit [Ping timeout: 272 seconds]
pengus has joined #ruby
<nymous> it does conversion from json to csv
workmad3 has quit [Ping timeout: 260 seconds]
<nymous> line by line
Scriptonaut has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
ellistaa has joined #ruby
<Scriptonaut> Hey y'all. Could you guys recommend 1 or 2 of the best online ruby tutorials? I'm already proficient in ruby, but I'm convincing a friend to learn ruby and want to give them the best resources
<centrx> Ruby Monk, Ruby Koans are two
<ellistaa> i’m watching this video on pointers in c and it says if i were to write &arr[i] id get the pointer for element i … is there a way to do this in ruby?
<zerowaitstate> Scriptonaut: get a safaribooksonline.com account and read the well-rounded rubyist
<Scriptonaut> zerowaitstate: you mean the well grounded rubyist?
<Scriptonaut> I have a copy :)
<centrx> ellistaa, Ruby does not expose memory address or pointers. The Array class handles all of that for you
<zerowaitstate> that, sorry
<Scriptonaut> that book is amazing
<ellistaa> centrx: oh ok
<Scriptonaut> I've read it twice over
guacamole has quit [Read error: Connection reset by peer]
mfb2 has quit [Remote host closed the connection]
<Scriptonaut> thanks centrx
<centrx> ellistaa, It's important computer science fundamentals to know about though
davedev24 has quit [Remote host closed the connection]
despai has joined #ruby
guacamole has joined #ruby
davedev24 has joined #ruby
hobodave has joined #ruby
ceej has quit [Remote host closed the connection]
<ellistaa> centrx: thanks
ascarter has joined #ruby
<zerowaitstate> ellistaa: very few of the automatically-GC'ed languages support direct memory access
<ellistaa> GC?
ICantCook has joined #ruby
<zerowaitstate> ellistaa: garbage-collected.
<ellistaa> oh
<eam> well, I mean, you can
ceej has joined #ruby
<zerowaitstate> ellistaa: when you create objects in Ruby, the VM actually allocates RAM for that object. It has to keep track of references to that object and when there are no more references to it the object's RAM is reclaimed
decoponio has quit [Quit: Leaving...]
<eam> you need something like FFI though, it's not part of the language
<zerowaitstate> ellistaa: in Ruby, this happens automatically, where in C it is a manual process
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ellistaa> sounds terrible
mfb2 has joined #ruby
<ellistaa> manually creating space that is
<baweaver> nymous: do you have the source?
<eam> ellistaa: most memory in C is automatically managed just like ruby -- because it's allocated on the stack
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
<eam> the manual allocations here are "heap allocations" and are for objects that need to persist beyond function scope
<ellistaa> eam: mmm intersting
musicnode has quit [Quit: musicnode]
mprelude has joined #ruby
colegatron has quit [Ping timeout: 264 seconds]
<eam> the tradeoff is between manually managing heap allocations and paying a rather high runtime cost to run the GC
<Scriptonaut> does ruby use mark and sweep for it's GC?
<Scriptonaut> or ref counts or what
<Scriptonaut> its*
<zerowaitstate> eam: are Ruby objects actually stack-allocated, or is merely the reference to the object stack allocated?
<eam> in real world C you never manage every bit of memory by hand, you use tools that help you keep track of allocations
<eam> zerowaitstate: I'm saying C is stack allocated. Ruby is entirely heap allocations
<eam> (afaik)
<zerowaitstate> that's true; C dev's usually use frameworks to handle malloc/free
whippythellama has joined #ruby
<nymous> baweaver: i can't publish it, sorry, it's commercial stuff. not my script, but data i'm parsing
whippythellama has quit [Client Quit]
<zerowaitstate> eam: even in C, if you are doing any kind of elaborate structure (anything involving a linked list for example) you are into heap allocations.
<eam> certainly
<baweaver> Look into OJ json ruby
<betafive> besides, if you keep everything on the stack, you're just asking for someone to smash it
<baweaver> it's faster.
<eam> betafive: haha, no
hobodave has quit [Quit: Computer has gone to sleep.]
<baweaver> eam: I C what you did there.
<zerowaitstate> betafive: stack-smashing isn't as easy as it used to be.
scripore has joined #ruby
<betafive> zerowaitstate: sure, if you've got the nx bit and aslr and runtime bounds-checking and whatever.
<betafive> it's still possible though.
<nymous> zerowaitstate: hm, i'll try it, thanks
tyrbo has quit [Ping timeout: 256 seconds]
davedev2_ has joined #ruby
kirillzh has joined #ruby
gruz0 has joined #ruby
<betafive> presumably ruby does have a foreign function interface though?
malconis has quit [Read error: Connection reset by peer]
<eam> yes, FFI is really slick
<zerowaitstate> betafive: yeah, it does. Quite a few gem's actually have C modules as part of their package
k13nox has quit [Remote host closed the connection]
davedev24 has quit [Ping timeout: 250 seconds]
goodcodeguy has joined #ruby
<zerowaitstate> I actually have a question, though. Let's say your Ruby calls into a C function and the C function segfaults. What happens?
<eam> probably your entire process ends
<betafive> if your process segfaults, it gets killed
<eam> not always!
<betafive> nonrecoverable signal or something
<eam> it's recoverable
<betafive> segfault?
<eam> yes
<betafive> naw. seriously?
<eam> some runtimes use segv for memory allocations
<eam> the jvm is probably the most common example
goodcodeguy has quit [Client Quit]
<eam> take a look at a jvm, you'll see constant segfaults
<eam> (they're handled)
dopamean_ has quit [Ping timeout: 250 seconds]
<nymous> baweaver: oh, sorry, clicked wrong nick :) thanks goes to you
<betafive> quoting man signal: "According to POSIX, the behavior of a process is undefined after it ignores a SIGFPE, SIGILL, or SIGSEGV signal that was not generated by kill(2) or raise(3)."
<zerowaitstate> so, FFI loads code into the same OS process as the caller?
<eam> after it ignores it, yes -- but handling != ignoring
<eam> zerowaitstate: FFI uses dlopen() to map shared objects into the process space and dlsym() and so on to call them
<zerowaitstate> k
<eam> the same stuff your dynamic linker does but at runtime
k13nox has joined #ruby
<zerowaitstate> yeah, i'm familiar with dlopen
dcunit3d has quit [Ping timeout: 245 seconds]
mlohstroh has joined #ruby
musicnode has joined #ruby
DarkElement has joined #ruby
zerowaitstate has quit [Quit: leaving]
aryaching has quit [Ping timeout: 240 seconds]
<DarkElement> Trying to get ruby and more specifically nokogiri to work in my red hat server, however it keeps failing to build the gem native extension. Anyone willing to help?
shadoi has quit [Quit: Leaving.]
colegatron has joined #ruby
pawnbox has joined #ruby
shadoi has joined #ruby
<centrx> ?paste
<ruby[bot]> centrx: I don't know anything about paste
<centrx> DarkElement, need error message, past at gist.github.com
<centrx> DarkElement, probably missing ruby header/dev files or build tools
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
ellistaa has quit [Quit: ellistaa]
<DarkElement> whois centrx
<DarkElement> Was checking if he was still here
<eam> betafive: btw, this article explains some of how the jvm handles segv http://fusionsecurity.blogspot.co.uk/2011/10/why-am-i-seeing-sigsegv-when-i-strace.html
<DarkElement> That's what I thought
<DarkElement> I'm pasting now
dexter-tzu has quit [Ping timeout: 276 seconds]
<DarkElement> Anyone able to help with this problem doing gem install nokogiri ?
<betafive> eam, how about that. thanks!
ellistaa has joined #ruby
ur5us_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
dlitvak has joined #ruby
ellistaa has quit [Client Quit]
DarkElement has quit [Read error: Connection reset by peer]
ebbflowgo has quit [Quit: ebbflowgo]
DarkElement has joined #ruby
<DarkElement> Back
<DarkElement> Anyone have any ideas relating to my proble3m?
dlitvak_ has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
dlitvak_ has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<drbrain> DarkElement: how did you install ruby?
<DarkElement> sudo yum install ruby
dlitvak has quit [Ping timeout: 245 seconds]
shadoi has quit [Quit: Leaving.]
<drbrain> DarkElement: try sudo yum install ruby-dev, then install nokogiri
<DarkElement> ok
<DarkElement> no package ruby-dev available, doing ruby-devel
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
<DarkElement> Tried to install nokogiri again, failed. https://gist.github.com/DarkElement75/f6e7154d906390d98ad2
duncannz has joined #ruby
wonk has joined #ruby
duncannz has quit [Max SendQ exceeded]
dlitvak_ has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 276 seconds]
duncannz has joined #ruby
PedramT has joined #ruby
<DarkElement> brb
DarkElement has quit [Remote host closed the connection]
<zambini> Isn't the "correct" way to use rbenv?
<zambini> (or your favorite virtual ruby environment)
guacamole has joined #ruby
tubuliferous_ has joined #ruby
dcunit3d has joined #ruby