havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
SuperLag_ is now known as SuperLag
SuperLag is now known as Guest18657
milardovich has joined #ruby
Guest18657 has quit [Quit: leaving]
volty has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SuperLag_ has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
impermanence has joined #ruby
<impermanence> Is there triple quoting in Ruby or not? Zed Shaw's book has an exercise covering it, but the internet seems to suggest that this is not actual Ruby syntax.
SuperLag_ has quit [Client Quit]
hutch34 has joined #ruby
SteenJobs has joined #ruby
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthewd> impermanence: Nope
<impermanence> Some parts of the internet would disagree.
<cerulean> meaning """?
<cerulean> i think that it starts a multi-line string
<cerulean> am i wrong
<impermanence> for starters
<matthewd> impermanence: Wait.. are you suggesting some parts of the internet are wrong? ;)
<impermanence> asking...
<impermanence> k, check this out: https://learnrubythehardway.org/book/ex10.html
<impermanence> I mean...wtf...
<cerulean> ahh my eyes hurt
<cerulean> ok here's the facts
<cerulean> don't do it
<cerulean> ever
<cerulean> use '' and ""
<cerulean> the end
<matthewd> It *works*.. but it's not a thing
<impermanence> okay.
<impermanence> but did you check out the Zed Shaw link? I mean...he has a whole exercise in there...wtf?
t-recx has quit [Quit: t-recx]
<matthewd> """foo""" is actually three strings next to each other, which get auto-concatenated
<matthewd> >> """foo"""
<ruby[bot]> matthewd: # => "foo" (https://eval.in/771510)
<matthewd> >>> "x""foo""x"
<impermanence> """bar"""
<impermanence> >>"""bar"""
<ruby[bot]> impermanence: # => "bar" (https://eval.in/771511)
ryan_notabot has quit [Ping timeout: 240 seconds]
<impermanence> yay!
<cerulean> he does what i told you to do, use it for multi line strings
<matthewd> >> "x""foo""x"
<ruby[bot]> matthewd: # => "xfoox" (https://eval.in/771513)
skweek has joined #ruby
<cerulean> """ makes it obvious you're doing a multiline
<impermanence> cerulean: k. Why?
<cerulean> makes it obvious to your eyes whats going on
<impermanence> ah
<matthewd> Do not do that.
PresidentBiscuit has joined #ruby
<matthewd> It makes it obvious it's been written by a python programmer who doesn't understand ruby syntax
<impermanence> oh fuck.
<cerulean> yeah fair enough
<cerulean> you can do <<---HEREDOC or something as well
<cerulean> just google ruby multiline strings for the correct syntax
<matthewd> Yeah, if you want a really multi-line string, use a heredoc
<cerulean> i agree with matthewd and i never see """ in 7 years of ruby coding
<impermanence> maybe I shouldn't use his book then. Fuck.
<matthewd> For a simple case, just use ordinary quotes
<cerulean> yeah isnt zed shaw from python?
<cerulean> his python book is huge in the python community or something
Lord_of_Life has quit [Excess Flood]
<impermanence> Well he apparently wrote Mongrel...
esObe_ has joined #ruby
<impermanence> not apparently, he did.
<cerulean> yeah i know he wrote mongrel, its a foundational piece of ruby architecture
<impermanence> sarcasm?
<cerulean> nope
<cerulean> look how all the modern ruby webservers are based on it
<cerulean> i remember when i first got monrel
<cerulean> from webrick
<cerulean> huge speed difference
<impermanence> Well...his book is probably okay for a Ruby quickstart then...
<cerulean> probably fine
<cerulean> """ will work for multiline string. ultimately its up to you. there's no one true way of coding
<cerulean> i dont agree with this string tho """""""""hi""""""""
<impermanence> helicopter
<cerulean> yea
<matthewd> (Part of) the point of triple-quoted strings in python is that they can contain quotes -- because they're not a real thing in ruby, and more just a quirk of the parse rules, that doesn't apply
<cerulean> oh i c
<cerulean> depends on what you need
<cerulean> code at your own risk
<cerulean> no life guard
PresidentBiscuit has quit [Ping timeout: 255 seconds]
<matthewd> So, """x""" is effectively "" + "x" + ""
<impermanence> okay. got it.
<impermanence> thanks for the insight as usual :)
Lord_of_Life has joined #ruby
mim1k has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
* flips just started reading the Eloquent Ruby book. Seems helpful for getting good habits and better understanding
<impermanence> is it true that while loops are rare in ruby?
<volty> as it is true that goto's are rare
<impermanence> what's a goto?
<volty> is your a quiz ?
<matthewd> impermanence: Yes; most loops will generally be using Enumerable methods
<cerulean> yeah you dont use while much
<cerulean> ... ever?
<cerulean> instead of while i == 1 do you can do (0...x).each do
<impermanence> matthewd: eh, I don't know what Enumberable methods are yet so I'll have to come back to that. But okay. no while loops.
<impermanence> oh that's cool. yeah, cool syntax. okay.
<cerulean> .each is an enumarable method. .map is one too
<cerulean> they are methods which iterate an array (an enumerable) and run a function, passing your block
<cerulean> for each item
<cerulean> yes it is a a cool and good syntax for you to use :)
mim1k has quit [Ping timeout: 245 seconds]
<cerulean> check out #each #map #reject #collect
<cerulean> and #sort
<matthewd> 134 'while', 1416 '.each', 846 '.map'
<matthewd> So yeah.. rare
<cerulean> where'd you get that statistic?
<matthewd> (and that's without trying to exclude mentions of 'while' from comments/strings, for example)
<matthewd> rails/rails
<cerulean> i see i see
<cerulean> they probably SAID while and not used it
<cerulean> i doubt they used while
<cerulean> at all
<matthewd> We do use it a reasonable amount
hahuang61 has joined #ruby
<cerulean> you're on rails team?
<cerulean> nice 8-)
<cerulean> i love rails 5
<matthewd> Yes, I am
<cerulean> nice
cschneid_ has joined #ruby
<cerulean> what could be the reason to use while?
<matthewd> Some crude exclusions suggest it could be in the 40-50 range
<cerulean> 40 lines using while?
<cerulean> i'm suspicious of zed's titles of books. "the hard way". obviously it is the hard way if he's gonna teach you to use """ lol
<matthewd> Yes, 40 lines contain 'while' and don't contain '#' or '"'
PresidentBiscuit has joined #ruby
<matthewd> Sometimes it just fits what we're doing, and sometimes we're in enough of a hotspot that it's worth writing the ugly fast thing
hahuang61 has quit [Ping timeout: 255 seconds]
<matthewd> And in one case, I use `while true` to avoid the stack frames from #loop
milardovich has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
marr has quit [Ping timeout: 240 seconds]
<volty> stack frames? what goes on the stack ?
PresidentBiscuit has quit [Ping timeout: 255 seconds]
<cerulean> i get to that point matthewd too and go the fast way as well
<cerulean> i think he means #each requires more frames than a simple white true
<cerulean> because it uses a #loop which is more complicated than while true
<matthewd> >> loop { explode! }
<ruby[bot]> matthewd: # => undefined method `explode!' for main:Object (NoMethodError) ...check link for more (https://eval.in/771523)
<matthewd> >> while true; explode!; end
<ruby[bot]> matthewd: # => undefined method `explode!' for main:Object (NoMethodError) ...check link for more (https://eval.in/771524)
<cerulean> >> `ls /`
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cerulean> heeh
Lord_of_Life has quit [Excess Flood]
<cerulean> >> puts rand(256)
<matthewd> Ugly backtrace, nice backtrace
<cerulean> oh, im not authorized
<cerulean> i believe you
nowhere_man has quit [Remote host closed the connection]
skweek has quit [Remote host closed the connection]
<matthewd> I was answering volty
<volty> yes, thanks
b3l914n has joined #ruby
<volty> but that's only one extra call per loop
<impermanence> is there a name for just a basic .rb file? rube, gemmy, something? Like in python it's module, in java it's class file, in puppet it's manifest, etc...
<cerulean> "dot rb file" is what i call it?
skweek has joined #ruby
<matthewd> volty: In this case, it was literally about preventing the lines in the backtrace
def_jam has joined #ruby
Lord_of_Life has joined #ruby
<impermanence> k. regarding gets...what part of the language is this of?
<volty> I see
<cerulean> impermanence: i/o
<impermanence> I assume there are a ton of methods associated with it?
<cerulean> line based i/o
<impermanence> k.
jgt2 has joined #ruby
<matthewd> &ri Kernel#gets
eb0t_ has joined #ruby
<impermanence> So is gets like a package or a gem or a module...or what would I call that?
<impermanence> class?
eb0t has quit [Ping timeout: 246 seconds]
<matthewd> impermanence: It's a method ^
<cerulean> it's a method
<cerulean> inside module Kernel
<cerulean> # means it's a method in the sense of <class/module>#<method>
eblip has quit [Ping timeout: 268 seconds]
<impermanence> oh, it's a method. I assume class: gets ; method: chomp => gets.chomp
<impermanence> assumed.
<matthewd> Being defined in Kernel, which every object contains, it's effectively global
<impermanence> kernel of MRI?
<matthewd> Yeah.. no. Method #gets returns a string, which has a #chomp method.
esObe_ has joined #ruby
<matthewd> Kernel, yes. Kernel is a module.
jgt1 has quit [Ping timeout: 240 seconds]
<impermanence> So in Ruby a module is a bunch of classes...?
<matthewd> No.
skweek has quit [Ping timeout: 240 seconds]
<cerulean> module is where you put methods that dont need to have an object
<cerulean> classes are for when you need an object
<impermanence> module is a bunch of functions.
<matthewd> A module is a collection of methods that can be included into a class
<impermanence> interface.
<matthewd> (and also a namespace that can contain nested constants)
<matthewd> No; methods with implementations
<impermanence> ah. But these methods are static...?
<volty> nothing static here
<cerulean> not necessarily
<matthewd> >> module X; def hello; "hello from #{self}"; end; end; class String; include X; end; class Integer; include X; end; ["world".hello, 17.hello]
<ruby[bot]> matthewd: # => ["hello from world", "hello from 17"] (https://eval.in/771527)
mzo has quit [Quit: :*]
esObe_ has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
<impermanence> Is the concept of Ruby module equal to concept of Python module? Because in Python methods that don't require an object are called functions...
<matthewd> No
<impermanence> okay.
<impermanence> thx. I'll keep reading.
<cerulean> gl
<volty> and breaking :)
* cerulean pets the #ruby cat
Xiti` has joined #ruby
<volty> >> loop
<ruby[bot]> volty: # => #<Enumerator: main:loop> (https://eval.in/771529)
<cerulean> >> loop
<cerulean> :(
<volty> what can be done with this enumerator ?
<cerulean> its the equivelent of while 1
<volty> ops, what could
<cerulean> an infinite loop
<cerulean> any recursive stuff
<volty> recursive ? how that ?
<volty> though I understand the useless 'infinite'
<cerulean> maybe not recursive
<cerulean> just infite
<cerulean> you can call break or something when you wanna break
<volty> also inside a simple loop
Xiti has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 255 seconds]
Jayson_Virissimo has joined #ruby
<impermanence> so are there methods on chomp? I mean...if there are method on gets the maybe there are methods on chomp?
<matthewd> impermanence: There aren't methods on gets. gets is returning a string. There are methods on String.
<matthewd> chomp also returns a String.
<impermanence> oh. chomp is a String method.
<impermanence> from the String module, presumably?
lightheaded has quit [Ping timeout: 240 seconds]
<volty> impermanence is a double expert — expert in ruby, and expert in stupid question on ruby (and I have a good nose and good memory :) )
<impermanence> volty: not sure you need to act like in that in either here or life in general. but I have no control over that. later then.
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
AndBobsYourUncle has joined #ruby
jgt2 has quit [Ping timeout: 255 seconds]
<volty> never mind, dear. I have to add that I find you useful since you force people to articulate well their knowledge on ruby
<matthewd> volty: That seemed quite uncalled for
<volty> I don't know what you mean, matthewd. I can only repeat that I have an expert nose and excellent memory of benevolent trolls
solocshaw has joined #ruby
Xiti` has quit [Quit: Xiti`]
pwnd_nsfw` is now known as pwnd_nsfw
Xiti has joined #ruby
<volty> (I didn't know what 'uncalled for' means; went for a dictionary - that english is not my mother lang)
harfangk has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
bruce_lee has quit [Remote host closed the connection]
herbmillerjr has quit [Quit: Konversation terminated!]
<cerulean> he wasn't a trol
<cerulean> troll*
<cerulean> try to be nicer, you scared off a n00b
<volty> loop enumerator could find a use in functional programming constructs, but I can't imagine a case usage now.
cisco has quit [Quit: Leaving.]
<volty> cerulean: no way
herbmillerjr has joined #ruby
<cerulean> he wasnt asking stupid questions, he was just learning
<cerulean> don't be so paranoid
<volty> though the next time I can state the same with other words
<cerulean> k
<volty> nothing to do with fear (paranoid).
<pwnd_nsfw> loop enumerator? an enumerator enumerator?
<volty> >> loop
<ruby[bot]> volty: # => #<Enumerator: main:loop> (https://eval.in/771532)
<pwnd_nsfw> rite..
<volty> cerulean: anyway the next time you see somebody that seems a bit too noob, try to give a look at the coherency of his not-knowledge
<volty> anybody here tried scala ?
CloCkWeRX has joined #ruby
<cerulean> ok
nankyokusei has joined #ruby
milardovich has quit []
<allisio> >> loop.first 3
<ruby[bot]> allisio: # => [nil, nil, nil] (https://eval.in/771533)
Guest89413 is now known as nebiros
nebiros has quit [Changing host]
nebiros has joined #ruby
nebiros has joined #ruby
hndk has joined #ruby
<allisio> >> loop { 1 }.lazy.first 3
<ruby[bot]> allisio: # => (https://eval.in/771534)
<allisio> I feel like that should work?
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
<volty> no, it returns enumerator only without block
nankyokusei has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
<allisio> Makes sense. It'd be nice if `loop.lazy` were an Enumerator over the naturals, though.
solocshaw has quit [Ping timeout: 255 seconds]
<volty> >> (1..Float::INFINITY).first(5)
<ruby[bot]> volty: # => [1, 2, 3, 4, 5] (https://eval.in/771536)
<allisio> >> (0..Float::INFINITY).map { |n| n * 2 }.first 5
<ruby[bot]> allisio: # => (https://eval.in/771537)
lxsameer has quit [Quit: WeeChat 1.7]
<volty> >> (0..Float::INFINITY).lazy.map { |n| n * 2 }.first 5
<ruby[bot]> volty: # => [0, 2, 4, 6, 8] (https://eval.in/771538)
<allisio> Right; block-less `loop` as a synonym for `(0..Float::INFINITY)` would be nifty.
jokester has joined #ruby
<volty> >> def loop_naturals; (0..Float::INFINITY).to_enum; end
<ruby[bot]> volty: # => :loop_naturals (https://eval.in/771542)
hutch34 has quit [Ping timeout: 255 seconds]
esObe_ has joined #ruby
SuperLag has joined #ruby
<matthewd> loop is intended to be used in places where it will loop ~infinitely
astrobunny has joined #ruby
<matthewd> .. which means it would count high enough to get into bignums, at which point every iteration is an allocation. That would be bad.
ebbflowgo has joined #ruby
<volty> yes, but that is a limit of ruby trying to mimic the true functional languages
impermanence has joined #ruby
esObe_ has quit [Ping timeout: 252 seconds]
soppe has joined #ruby
<impermanence> In Learn Ruby the Hard Way it is suggested that to take an integer from STDIN to use gets.chomp.to_i? but is this bad practice? because can't I just use gets.to_i? Or I suppose that the latter takes in the integer and then converts it to a string?
br0d1n has quit [Remote host closed the connection]
<volty> Hard Way brings hard questions. How can a newbie doubt the words of the 'hard way'?
br0d1n has joined #ruby
<matthewd> impermanence: bad practice how?
<impermanence> matthewd: After the triple quote thing when I ran into that I wanted to just check if there was anything strange with that because I've had a couple of doubts about continuing with hard way and starting with something else. But it sounds like that's normal use.
soppe has quit [Quit: Mutter: www.mutterirc.com]
br0d1n has quit [Read error: Connection reset by peer]
<volty> our expert probably meant 'redundant' - since the chars removed by chomp do not change the result ? but his instinct tells him that we should always chomp, because chomp could change the result.
libastral has quit [Ping timeout: 255 seconds]
ddffg has quit [Ping timeout: 240 seconds]
<volty> >> $/ = "3"; s = "33"; [s.to_i, s.chomp.to_i]
<ruby[bot]> volty: # => [33, 3] (https://eval.in/771553)
<volty> did I prove that he is an expert ? :)
libastral has joined #ruby
<impermanence> volty: I guess I don't understand the difference between gets.to_i and gets.chomp.to_i ... I think chomp removes \r\n but is there any other difference?
<matthewd> impermanence: No; that is indeed what chomp does.
<volty> impermanence: I wanted so say the same you are asking about — how can a novice imagine there could be "other difference"
minimalism has quit [Quit: minimalism]
<impermanence> matthewd: okay.
<volty> chomp removes whatever $/ 's value is
<impermanence> ah. I see.
<volty> seen :)
claudevandort has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soppe has joined #ruby
soppe has quit [Client Quit]
acalycine has joined #ruby
_djbkd has quit [Remote host closed the connection]
acalycine has quit [Client Quit]
armyriad has quit [Read error: Connection reset by peer]
<nofxxx> volty, actually nice is that it's kinda of beginning of /^\d regex... so "123-rocknroll".to_i -> 123
armyriad has joined #ruby
<nofxxx> what's nice in #to_i*
<nofxxx> easy to make permalinks that way
rexb0t has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
mim1k has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
mim1k has quit [Ping timeout: 240 seconds]
volty has quit [Quit: Konversation terminated!]
hahuang61 has joined #ruby
xall has joined #ruby
PresidentBiscuit has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
rexb0t has quit [Quit: Mutter: www.mutterirc.com]
yaewa has joined #ruby
PorcoRex has joined #ruby
<PorcoRex> Good evening.
yaewa has quit [Client Quit]
yaewa has joined #ruby
PresidentBiscuit has quit [Ping timeout: 240 seconds]
yaewa has quit [Remote host closed the connection]
yaewa has joined #ruby
maum has joined #ruby
yaewa has quit [Remote host closed the connection]
moei has quit [Ping timeout: 240 seconds]
<maum> hello
<PorcoRex> Hey.
<maum> how can I get author value from {:author=>"Clow GD, McKay CP, Simmons Jr. GM, and Wharton RA, Jr.", :date=>"1988.", :title=>"Climatological observations and predicted sublimation rates at La ke Hoare, Antarctica.", :journal=>"Journal of Climate", :volume=>"1:", :pages=>"715-728."} ?
<maum> This is hash
xall has quit [Ping timeout: 255 seconds]
<Radar> maum: So what have you tried?
<maum> h[:author]
moei has joined #ruby
<Radar> maum: Did that not work?
<maum> yes
<Radar> How did that not work?
<Radar> >> {:author=>"Clow GD, McKay CP, Simmons Jr. GM, and Wharton RA, Jr."}[:author]
<ruby[bot]> Radar: # => "Clow GD, McKay CP, Simmons Jr. GM, and Wharton RA, Jr." (https://eval.in/771571)
<maum> anystyle.rb:21:in `[]': can't convert Symbol into Integer (TypeError)
_djbkd has joined #ruby
<Radar> maum: looks like you're calling [] on an array instead. Show us the rest of the code please.
soppe has joined #ruby
hutch34 has joined #ruby
<Radar> maum: Output h for us please.
<Radar> I think it's an array, not a hash.
<maum> how to get the value from array?
<PorcoRex> It seems you're using Anystyle. Not sure what it is, but that may not be a raw hash.
<Radar> Example here shows it does indeed return an array
<maum> the output of h is {:author=>"Clow GD, McKay CP, Simmons Jr. GM, and Wharton RA, Jr.", :date=>"1988.", :title=>"Climatological observations and predicted sublimation rates at La ke Hoare, Antarctica.", :journal=>"Journal of Climate", :volume=>"1:", :pages=>"715-728."}
<Radar> maum: I would suggest experimenting with how to get the first element of an array.
<Radar> maum: Did you use puts or p?
<Radar> maum: to get that output: did you use puts or p?
<maum> puts
<PorcoRex> There's also something, in the original input, there isn't an "author" key. Where should that be coming from?
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
__Yiota has joined #ruby
<Radar> maum: puts takes an array and iterates through it all, outputting each element
<Radar> maum: use `p` to get the actual object's representation.
<Radar> maum: It's an array. You'll need to find the first element of that array and then call [:author] on that element.
<Radar> bbl
hutch34 has quit [Ping timeout: 245 seconds]
<maum> Radar: how? would you show me an example?
<Radar> maum: ?g ruby first element on array
<PorcoRex> h[0]
<Radar> ?g ruby first element on array
<ruby[bot]> Radar: I don't see no ruby, whom should I tell about g?
<Radar> one day I will figure out ruby[bot]
<Radar> maum: experiment in irb. Create an array and then try to get the _first_ element from that array. I'm sure you can figure it out.
<Radar> *gone*
<maum> h[0] shows {:author=>"Clow GD, McKay CP, Simmons Jr. GM, and Wharton RA, Jr.", :date=>"1988.", :title=>"Climatological observations and predicted sublimation rates at La ke Hoare, Antarctica.", :journal=>"Journal of Climate", :volume=>"1:", :pages=>"715-728."}
<PorcoRex> maum, interesting... How about h[0][:author] ?
<maum> PorcoRex: you are very nice commentor
<PorcoRex> Did that work or are you just stroking my ego?
<maum> it shows Clow GD, McKay CP, Simmons Jr. GM, and Wharton RA, Jr.
<PorcoRex> That's pretty close I think.
<maum> but why 0?
<maum> the output of h and h[0] are same
<PorcoRex> How about h.first[:author] ?
<maum> also same
<maum> it prints the authors
<PorcoRex> How about h.class ?
<maum> array
<PorcoRex> Ah, you should always print arrays with "p", not "puts".
<PorcoRex> Try now p h .
<maum> anystyle.rb:23:in `<main>': private method `puts' called for #<Array:0x00000002808610> (NoMethodError)
<PorcoRex> Uh oh.
<PorcoRex> Why are you using anystyle?
<maum> to parse references
<PorcoRex> How about puts h.inspect ?
<maum> it prints [{:author=>"Clow GD, McKay CP, Simmons Jr. GM, and Wharton RA, Jr.", :date=>"1988.", :title=>"Climatological observations and predicted sublimation rates at L ake Hoare, Antarctica.", :journal=>"Journal of Climate", :volume=>"1:", :pages=>"715-728."}]
jokester has quit [Ping timeout: 252 seconds]
<PorcoRex> Ah, there's the array.
cschneid_ has quit [Remote host closed the connection]
<PorcoRex> You'll notice it's different from puts h.first.inspect .
<maum> anystyle.rb:22:in `<main>': private method `puts' called for #<String:0x00000003548140> (NoMethodError)
<PorcoRex> Well, that's different, alright.
<PorcoRex> That gem doesn't seem to be too flexible, but to answer you question, it seems to parse several records. So, you want to get the first record (using h[0] or h.first) and then query the :author from that record.
GodFather has quit [Ping timeout: 252 seconds]
soppe has quit [Quit: Mutter: www.mutterirc.com]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_djbkd has quit [Quit: My people need me...]
gix has quit [Ping timeout: 252 seconds]
astrobunny has quit [Remote host closed the connection]
xenops has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
astrobunny has joined #ruby
_djbkd has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
gix has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
xenops has quit [Ping timeout: 240 seconds]
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Pumukel has quit [Remote host closed the connection]
_tk421_ has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
impermanence has joined #ruby
impermanence has quit [Client Quit]
esObe_ has joined #ruby
msafi has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
b3l914n has quit [Ping timeout: 240 seconds]
impermanence has joined #ruby
impermanence has quit [Client Quit]
<msafi> Hey folks, I don't know much about Ruby, but Travis CI is telling me I need to use their gem to encrypt values for the CI. Thing is, I tried `gem install travis` but got a permission error. So I tried `gem install travis --user-install` and it worked.
<msafi> Then I don't know what I did, and it broke. Now I get this error when I run it https://i.imgur.com/auGJAga.png
<msafi> Any ideas how to fix this?
astrobunny has quit [Remote host closed the connection]
impermanence has joined #ruby
impermanence has quit [Client Quit]
_tk421_ has joined #ruby
esObe_ has quit [Ping timeout: 245 seconds]
<PorcoRex> Looks like it's not finding the gem where it expects it to. Also, are encripted values used for integration with code climate or something like that? I don't remember you needing to generate a key for Travis only use.
SHyx0rmZ has joined #ruby
_djbkd has quit [Remote host closed the connection]
knight33 has joined #ruby
<msafi> PorcoRex: I need to use Travis CI for an unrelated project on GitHub
_djbkd has joined #ruby
<PorcoRex> msafi, do you have a .travis.yml file in your project?
<msafi> Yes
<PorcoRex> Did you configure the travis dashboard to login through Github?
jusa has joined #ruby
<msafi> Hmmm, I found a fix. I needed to remove `export GEM_HOME` and `export GEM_PATH` which were = `~/.gem` from my environment
<PorcoRex> Good deal.
nankyokusei has joined #ruby
_djbkd has quit [Ping timeout: 255 seconds]
hutch34 has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]
solocshaw has joined #ruby
claw has quit [Ping timeout: 264 seconds]
xall has joined #ruby
<cerulean> i let some designers from twitter connect to my secret app without an NDA
<cerulean> am i a fucking idiot?
<msafi> Nah, you'll be fine
<cerulean> alright cool
<msafi> 👍
<cerulean> thanks :)
HoierM has quit [Ping timeout: 252 seconds]
jdm has joined #ruby
impermanence has joined #ruby
_djbkd has joined #ruby
claw has joined #ruby
jgt2 has joined #ruby
Channel6 has quit [Quit: Leaving]
jgt2 has quit [Ping timeout: 240 seconds]
esObe_ has joined #ruby
acalycine has joined #ruby
msafi has quit [Remote host closed the connection]
_tk421_ has quit [Ping timeout: 240 seconds]
grh has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
PorcoRex has quit [Quit: Leaving]
Ropeney has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
tristanp has joined #ruby
babykosh has joined #ruby
govg has quit [Quit: leaving]
<babykosh> greetings ruby makers…..noob question….is an easy to understand comparison chart between ruby 2.1.2 and 2.4? Trying to understand what differences exist. Thank you in advance.
mim1k has joined #ruby
iamayam has quit [Ping timeout: 255 seconds]
impermanence has quit [Ping timeout: 252 seconds]
<Radar> babykosh: You could always look at the changelogs for 2.2, 2.3 and 2.4
enterprisey has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
figures_ has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
<babykosh> @radar thank you
<babykosh> @radar looking now
figuresofstick has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
grh has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
balazs has quit [Remote host closed the connection]
lele has quit [Ping timeout: 240 seconds]
lele has joined #ruby
iamayam has joined #ruby
am55 has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 245 seconds]
solocshaw has joined #ruby
am55 has joined #ruby
zapata has quit [Ping timeout: 245 seconds]
Jayson_Virissimo has quit []
eclecticjohny has joined #ruby
astrobunny has joined #ruby
babykosh has quit [Quit: babykosh]
astrobunny has quit [Ping timeout: 240 seconds]
jdm has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
enterprisey has quit [Remote host closed the connection]
eclecticjohny has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
eclecticjohny has joined #ruby
eclecticjohny has quit [Client Quit]
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
figures_ has quit [Read error: Connection reset by peer]
xenops has joined #ruby
babykosh has joined #ruby
_djbkd has quit [Remote host closed the connection]
goodroot has joined #ruby
xenops has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
RobertBirnie has joined #ruby
<babykosh> ok ruby makers…on github for ruby 2.1… where is the kernel module…I want to look at it with my human eyes.
hndk has quit [Quit: Leaving]
jdm has joined #ruby
<herwin> `git grep Kernel`
RobertBirnie has quit [Client Quit]
armyriad has quit [Ping timeout: 245 seconds]
naprimer has joined #ruby
armyriad has joined #ruby
esObe_ has joined #ruby
nankyokusei has joined #ruby
_tk421_ has joined #ruby
esObe_ has quit [Ping timeout: 252 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
<wkoszek> So I'm still looking for testers for my reproducible Ruby builds: https://github.com/wkoszek/ruby_packages
solocshaw has quit [Quit: solocshaw]
solocshaw has joined #ruby
BubonicPestilenc has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
Silthias1 has quit [Ping timeout: 240 seconds]
soppe has joined #ruby
cam27 has quit [Quit: cam27]
_djbkd has joined #ruby
hutch34 has joined #ruby
yaewa has joined #ruby
_djbkd has quit [Ping timeout: 252 seconds]
User458764 has joined #ruby
moei has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dminuoso> Radar in here? :o
<Radar> dminuoso: yes
<dminuoso> ?seen Radar
<ruby[bot]> dminuoso: I don't know anything about seen
<dminuoso> Amazing. How did you find this channel?
<Radar> dminuoso: I've known about it for a while.
<Radar> Sorry for not telling you.
djbkd_ has joined #ruby
<dminuoso> babykosh: Also be sure to look at the minor changelogs. Ruby has a tendency to shove syntax changes down your throat in minor versions. ;-)
jgt2 has joined #ruby
<babykosh> @dminuoso are those in the same location as the regular changelogs (on github)?
c-fu has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
soppe has quit [Quit: Mutter: www.mutterirc.com]
charliesome has joined #ruby
<dminuoso> babykosh: Personally I would go for the announcements at ruby-lang.org -> they have summaries of the most notable features. The changelog from the git repository will usually contain a lot of technical things that are less relevant just to get an impression of the differences.
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<babykosh> @dminuoso oh this is good yes! combined with the general changelogs, I have a good place to start. Thank you!
vali has joined #ruby
ferr1 has joined #ruby
soppe has joined #ruby
vali has quit [Client Quit]
soppe has quit [Client Quit]
hfp has quit [Ping timeout: 252 seconds]
Xiti has quit [Quit: Xiti]
hfp has joined #ruby
mim1k has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
rgtk has joined #ruby
hahuang61 has joined #ruby
vali has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
ddrmanxbxfr has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 240 seconds]
PresidentBiscuit has joined #ruby
bungoman has quit [Ping timeout: 240 seconds]
bungoman has joined #ruby
conta has joined #ruby
boz_ has joined #ruby
Qchmqs has joined #ruby
hahuang61 has quit [Ping timeout: 255 seconds]
PresidentBiscuit has quit [Ping timeout: 255 seconds]
griff has joined #ruby
babykosh has quit [Quit: babykosh]
fantasticsid has joined #ruby
boz__ has joined #ruby
griff has quit [Client Quit]
fantasticsid has quit [Client Quit]
boz_ has quit [Ping timeout: 252 seconds]
Silthias has quit [Read error: Connection reset by peer]
vondruch_ has quit [Ping timeout: 264 seconds]
vali has quit [Ping timeout: 255 seconds]
jokester has joined #ruby
bigkevmcd has joined #ruby
djbkd_ has quit [Remote host closed the connection]
esObe_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
esObe_ has quit [Remote host closed the connection]
esObe_ has joined #ruby
esObe_ has quit [Remote host closed the connection]
esObe_ has joined #ruby
ddffg has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
Arpanet69 has joined #ruby
yaewa has quit [Quit: Leaving...]
moei has joined #ruby
Pumukel has joined #ruby
bungoman has quit [Ping timeout: 255 seconds]
Silthias has joined #ruby
zun has joined #ruby
TomyWork has joined #ruby
nofxxxx has joined #ruby
nofxxx has quit [Ping timeout: 245 seconds]
anisha has quit [Ping timeout: 252 seconds]
anisha has joined #ruby
mim1k has joined #ruby
lenwood has joined #ruby
jusa has quit [Ping timeout: 252 seconds]
mark_66 has joined #ruby
renchan has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
nankyokusei has joined #ruby
biberu has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
vondruch_ has joined #ruby
kristofferR has joined #ruby
babykosh has joined #ruby
jusa has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]
jamesaxl has quit [Quit: WeeChat 1.7]
govg has joined #ruby
andikr has joined #ruby
rgr has quit [Remote host closed the connection]
goodroot has quit [Quit: WeeChat 1.4]
Snickers has joined #ruby
jusa has quit [Ping timeout: 245 seconds]
flying has joined #ruby
grh has joined #ruby
Burgestrand has joined #ruby
impermanence has joined #ruby
impermanence has quit [Client Quit]
vondruch_ is now known as vondruch
conta has quit [Quit: conta]
Olipro has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
pifon has quit [Quit: Connection closed for inactivity]
tvw has joined #ruby
mim1k has joined #ruby
Olipro has joined #ruby
Mortomes|Work has joined #ruby
aenialis_ has joined #ruby
_tk421_ has quit [Ping timeout: 255 seconds]
aenialis_ has quit [Client Quit]
ferr1 has quit [Quit: WeeChat 1.7]
jsrn_ has joined #ruby
esObe_ has quit [Remote host closed the connection]
Yxhuvud has quit [Read error: Connection reset by peer]
Yxhuvud has joined #ruby
marr has joined #ruby
nowhere_man has joined #ruby
gizmore has joined #ruby
hahuang61 has joined #ruby
postmodern has joined #ruby
hahuang61 has quit [Ping timeout: 245 seconds]
conta has joined #ruby
toretore has joined #ruby
xenops has joined #ruby
ctompkinson has joined #ruby
lxsameer has joined #ruby
boz__ has quit [Quit: This computer has gone to sleep]
cgfbee has joined #ruby
Beams has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
ctompkin1on has joined #ruby
pulkit4tech has joined #ruby
ctompkinson has quit [Ping timeout: 252 seconds]
maum has quit [Quit: Page closed]
mim1k has quit [Ping timeout: 252 seconds]
ledestin has joined #ruby
raspado has joined #ruby
esObe_ has joined #ruby
pandaant has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
ctompkin1on has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
TeddySmoker has joined #ruby
jaequery has joined #ruby
nankyokusei has joined #ruby
<ddffg> why i get such error libreadline.so.6: cannot open shared object file: No such file or directory
Arpanet69 has quit [Ping timeout: 252 seconds]
<Lartza> ddffg, Probably because you have readline 7 but your ruby is compiled with 6
<ddffg> No such file or directory - /home/user/.rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-linux/readline.so
nankyokusei has quit [Ping timeout: 255 seconds]
<ddffg> it wokred 4 weeks ago
lenwood has quit [Ping timeout: 252 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
boz__ has joined #ruby
acalycine has quit [Quit: bye]
jaequery has joined #ruby
bodgix has joined #ruby
acalycine has joined #ruby
dionysus69 has joined #ruby
griff has joined #ruby
jennyrgb has joined #ruby
<jennyrgb> I hate racial mixing. Niggerapes and humans shouldn't mix
psychicist__ has joined #ruby
<tobiasvl> !ops
<ruby[bot]> tobiasvl: ops currently in #ruby: adaedra, aredridel, havenwood, Radar, apeiros, baweaver, helpa, jhass, ljarvis, matthewd, miah, ruby[bot], zenspider and zzak
<matthewd> !ban jennyrgb
jennyrgb was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
<tobiasvl> thanks
ferr1 has joined #ruby
stoffus has joined #ruby
halogenandtoast has joined #ruby
<halogenandtoast> Is there any good documentation discouraging the extension of ruby's core classes?
ctompkinson has joined #ruby
jottr has joined #ruby
griff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<halogenandtoast> herwin: that's subclassing though, I meant reopening the class and adding `my_random_method` to that class.
<tobiasvl> monkey patching
<halogenandtoast> or duck punching, whatever your flavor is.
<matthewd> halogenandtoast: That comes down to "there might be name conflicts"
boz__ is now known as boz_
<matthewd> That makes it rather rude for a random library to be doing... but doesn't really affect the application author, or a library whose whole purpose is to make such extensions
<halogenandtoast> matthewd: right, I'm trying to find a good way to discourage my students from doing this arbitrarily
<halogenandtoast> I mentioned name conflicts.
<matthewd> In their end application? I'm not sure I necessarily see anything wrong with that.
fivmo has joined #ruby
<matthewd> It's then an API design question: "does this method make sense on every String, or does it only really work for this particular one?", etc
<halogenandtoast> matthewd: It opens the door for unexpected errors. And these students will be contributing to our companies code base at some point
<halogenandtoast> *company's
<matthewd> i.e., exactly the same "is this the right class for that method" questions you'd ask about any other class
jottr has quit [Quit: WeeChat 1.7]
fivmo has quit [Client Quit]
<halogenandtoast> Sure in this case they've monkey-patched Integer to have a digits method, to return the number of digits a number has.
<matthewd> Well that's an ideal example
<halogenandtoast> Seems like its not an ideal example then...
<halogenandtoast> as this will conflict
<halogenandtoast> actually it depends on what you meant by example
<matthewd> I mean it's an ideal example for your "don't do this" argument
<matthewd> But, that conflict with the future notwithstanding, I'd personally be fine with the addition of such a method
<matthewd> Again, within the application -- not a library.
ebbflowgo has joined #ruby
ebbflowgo has quit [Client Quit]
moei has quit [Read error: Connection reset by peer]
moei has joined #ruby
blackwind_123 has quit [Ping timeout: 255 seconds]
<halogenandtoast> matthewd: thanks for the insight.
<halogenandtoast> I generally have a "no extending core classes" mentality, only because I've been bitten by it every single time I've done it.
blackwind_123 has joined #ruby
<halogenandtoast> but that's the result of library authors extending core classes (I'm looking at you rails)
<matthewd> *gulp*
raspado has quit [Remote host closed the connection]
raspado has joined #ruby
raspado has quit [Read error: Connection reset by peer]
<matthewd> My counter-argument is that Rails is primarily a framework, so we play by different rules: we're generally present from the start, to adjust the base environment... not pulled in as some arbitrary dependency to stomp on your namespace unexpectedly
raspado has joined #ruby
<halogenandtoast> matthewd: yeah still not sure why rails needed to add Numeric#bytes
<matthewd> Admittedly, that doesn't work so well when you think about using activerecord in isolation, or similar
<halogenandtoast> seems like "not the frameworks responsibility"
<halogenandtoast> and of course that meant they added gigabytes, exabytes, and friends...
<halogenandtoast> </rant> heading home now, thanks again.
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Burgestrand has quit [Quit: Closing time!]
raspado has quit [Ping timeout: 245 seconds]
halogenandtoast has quit [Quit: leaving]
zun has quit [Quit: Connection closed for inactivity]
nadir has quit [Quit: Connection closed for inactivity]
kent\n has quit [Quit: No Ping reply in 180 seconds.]
jenrzzz has quit [Ping timeout: 255 seconds]
kent\n has joined #ruby
pwnd_nsfw` has joined #ruby
hahuang61 has joined #ruby
pwnd_nsfw has quit [Ping timeout: 255 seconds]
PresidentBiscuit has joined #ruby
GodFather has joined #ruby
Guest96 has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 255 seconds]
Guest96 has joined #ruby
PresidentBiscuit has quit [Ping timeout: 240 seconds]
jusa has joined #ruby
boz_ has quit [Quit: This computer has gone to sleep]
postmodern has quit [Quit: Leaving]
boz_ has joined #ruby
cschneid_ has joined #ruby
xall has quit [Ping timeout: 240 seconds]
Lord_of_Life has quit [Excess Flood]
cschneid_ has quit [Ping timeout: 240 seconds]
Lord_of_Life has joined #ruby
mazeinmaze_ has quit [Ping timeout: 260 seconds]
mim1k_ has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
rgtk has quit [Ping timeout: 240 seconds]
impermanence has joined #ruby
impermanence has quit [Client Quit]
impermanence has joined #ruby
impermanence has quit [Client Quit]
jeyraof^mbpr has joined #ruby
astrobunny has quit [Remote host closed the connection]
mim1k_ is now known as mim1k
jgt2 has quit [Ping timeout: 240 seconds]
ebbflowgo has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jwheare has quit []
jwheare has joined #ruby
kent\n has quit [Quit: No Ping reply in 180 seconds.]
kent\n has joined #ruby
impermanence has joined #ruby
impermanence has quit [Client Quit]
jeyraof^mbpr has quit [Quit: Leaving]
jgt2 has joined #ruby
boz_ has quit [Quit: Leaving]
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
Burgestrand has joined #ruby
valkyrka has joined #ruby
<valkyrka> hi guys, a little bit of an odd one, I wrote a script which doesn’t behave as I would expect it
<valkyrka> https://gist.github.com/anonymous/ade70d93dee45a08c13adceaab0cb8e7 is the script and basically when I call it script.rb 5, instead of printing the beers with more than 5 abv, I get odd results
<valkyrka> I mean, I don’t understand when I run it with the parameter 5 why it’s printing out a beer w/ 4.5 alchohol
psychicist__ has quit [Ping timeout: 245 seconds]
harfangk has joined #ruby
<dminuoso> valkyrka: ?testcase
<dminuoso> ?testcase
<ruby[bot]> dminuoso: I don't know anything about testcase
* dminuoso sighs.
<dminuoso> valkyrka: Let's clean up some things for readabilities sake.
<dminuoso> valkyrka: "#{beer["abv"]}" is ugly. Use beer["abv"].to_s instead.
govg has quit [Ping timeout: 252 seconds]
<valkyrka> ok, cool, let me do that
<dminuoso> And that puts is replaced best with sprinft using the following shorthand:
<dminuoso> well that last puts is fine
<dminuoso> valkyrka: For that second, please read the documentation of https://ruby-doc.org/core-2.2.0/String.html#method-i-3C-3D-3E
<valkyrka> thanks for pointing me in the right direction
ddrmanxbxfr has joined #ruby
Lord_of_Life has quit [Excess Flood]
nadir has joined #ruby
Lord_of_Life has joined #ruby
KrzaQ has left #ruby [#ruby]
yaw has joined #ruby
mim1k has quit [Ping timeout: 252 seconds]
rippa has joined #ruby
stoffus_ has joined #ruby
ldnunes has joined #ruby
HoierM has joined #ruby
stoffus has quit [Ping timeout: 240 seconds]
yaw has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
naprimer has quit [Quit: Leaving]
stoffus_ has quit [Quit: leaving]
pulkit4tech has quit [Quit: Connection closed for inactivity]
gdonald has quit [Quit: Leaving]
Lord_of_Life has quit [Excess Flood]
cseder has joined #ruby
Lord_of_Life has joined #ruby
bungoman has joined #ruby
jgt2 has quit [Ping timeout: 252 seconds]
csk has joined #ruby
iamayam has quit [Ping timeout: 252 seconds]
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
pupsicle has joined #ruby
csk has quit [Remote host closed the connection]
jdm has quit [Remote host closed the connection]
mim1k has joined #ruby
csk has joined #ruby
csk has quit [Client Quit]
jamesaxl has joined #ruby
xall has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gdonald has joined #ruby
hahuang61 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
AlienElite_ has joined #ruby
Pumukel has quit [Remote host closed the connection]
naprimer has joined #ruby
CloCkWeRX has quit [Ping timeout: 252 seconds]
CloCkWeRX has joined #ruby
gnufied has joined #ruby
<AlienElite_> Whats up?
hahuang61 has quit [Ping timeout: 260 seconds]
<AlienElite_> Anyone seen a nigga on a bike lately?
CloCkWeRX has quit [Client Quit]
CloCkWeRX1 has joined #ruby
<matthewd> !ban AlienElite_
AlienElite_ was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
Arpanet69 has joined #ruby
aupadhye has joined #ruby
Pumukel has joined #ruby
bodgix has quit [Quit: Leaving.]
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Lord_of_Life has quit [Excess Flood]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
HoierM has quit [Ping timeout: 245 seconds]
harfangk has joined #ruby
iamayam has joined #ruby
SuperLag_ has joined #ruby
User458764 has joined #ruby
jusa has quit [Ping timeout: 252 seconds]
__Yiota has joined #ruby
SuperLag has quit [Ping timeout: 240 seconds]
bodgix has joined #ruby
polysics has joined #ruby
grh has quit [Ping timeout: 260 seconds]
HoierM has joined #ruby
CloCkWeRX1 has quit [Quit: Leaving.]
CloCkWeRX has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
ramortegui has joined #ruby
ghornet has joined #ruby
ghornet has quit [Client Quit]
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
hutch34 has joined #ruby
polysics has quit [Read error: Connection reset by peer]
ramortegui has quit [Ping timeout: 240 seconds]
polysics has joined #ruby
polysics_ has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
grh has joined #ruby
gdonald has joined #ruby
polysics_ has quit [Client Quit]
polysics has quit [Ping timeout: 245 seconds]
polysics has joined #ruby
pulkit4tech has joined #ruby
SuperLag_ is now known as SuperLag
SuperLag has quit [Changing host]
SuperLag has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
c-fu has quit [Ping timeout: 260 seconds]
ramortegui has joined #ruby
claudevandort has joined #ruby
banisterfiend has joined #ruby
rgtk has joined #ruby
DLSteve has joined #ruby
grh has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
iMadper has quit [Ping timeout: 240 seconds]
TeddySmoker has quit [Quit: Leaving]
scrooloose has quit [Quit: WeeChat 1.4]
scrooloose has joined #ruby
patarr has joined #ruby
charliesome has joined #ruby
xall has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
xall has joined #ruby
mazeinmaze_ has joined #ruby
grh has joined #ruby
IRCFrEAK has joined #ruby
millerti has joined #ruby
ferr1 has quit [Quit: WeeChat 1.7]
IRCFrEAK has left #ruby [#ruby]
xall has quit [Ping timeout: 255 seconds]
yasu__ has quit [Quit: Tiarra 0.1+svn-39209: SIGTERM received; exit]
pupsicle has quit [Remote host closed the connection]
gdonald has quit [Ping timeout: 252 seconds]
jusa has joined #ruby
gdonald has joined #ruby
meshsmith has joined #ruby
pupsicle has joined #ruby
bounb has joined #ruby
bounb has joined #ruby
bounb has quit [Changing host]
mazeinmaze_ has quit [Ping timeout: 240 seconds]
<conta> what's good ruby book these days? general intermediate stuff
agent_white has joined #ruby
bounb has quit [Quit: ...]
grh has quit [Ping timeout: 260 seconds]
impermanence has joined #ruby
bounb has joined #ruby
bounb has joined #ruby
bounb has quit [Changing host]
houhoulis has joined #ruby
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
mzo has joined #ruby
LambdaSix has quit [Quit: Try not to hemorrhage your brain.]
exchgr has joined #ruby
rgtk has quit [Ping timeout: 240 seconds]
houhoulis has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby
xall has joined #ruby
ldnunes has quit [Quit: Leaving]
CloCkWeRX has quit [Ping timeout: 240 seconds]
yehowyada has joined #ruby
jgt2 has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Client Quit]
roshanavand has joined #ruby
lmc has joined #ruby
mim1k has quit [Ping timeout: 252 seconds]
shinnya has joined #ruby
ldnunes has joined #ruby
<impermanence> What module is ARGV in?
raspado has joined #ruby
govg has joined #ruby
chouhoulis has quit [Remote host closed the connection]
jusa has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby
<impermanence> found it :)
flying has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 240 seconds]
flying has joined #ruby
<agent_white> Mornin' folks
Snickers has quit [Ping timeout: 240 seconds]
raspado has quit [Ping timeout: 260 seconds]
flying has quit [Remote host closed the connection]
flying has joined #ruby
t-recx has joined #ruby
knight33 has joined #ruby
babykosh has quit [Quit: babykosh]
flying has quit [Client Quit]
roshanavand has quit [Quit: roshanavand]
gsilva has joined #ruby
narval has joined #ruby
User458764 has joined #ruby
polysics has quit []
ebbflowgo has quit [Ping timeout: 255 seconds]
Mortomes|Work has quit [Ping timeout: 260 seconds]
hahuang61 has joined #ruby
cdg has joined #ruby
Beams has quit [Quit: .]
dionysus69 has joined #ruby
cdg has quit [Read error: Connection reset by peer]
govg has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
mazeinmaze_ has joined #ruby
mim1k has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
Xiti has joined #ruby
Beams has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
solocshaw has joined #ruby
ghormoon_ has quit [Quit: ZNC - http://znc.in]
ghormoon has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
<impermanence> Why does the following fail: dir_to_create = gets.chomp ; ARGV[0] = dir_to_create ? (ignore the semi-colon obviously)
<impermanence> maybe it doesn't, actually.
<impermanence> heh. nevermind.
CloCkWeRX has joined #ruby
eneas has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eneas has left #ruby ["Adiós"]
anisha has quit [Quit: This computer has gone to sleep]
<allisio> impermanence: How did that happen?
<impermanence> I'm new and was rushing. I didn't read the interpret output carefully enough.
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
conta has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
amargherio has joined #ruby
meshsmith has quit [Remote host closed the connection]
bodgix1 has joined #ruby
bodgix has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
haylon has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mazeinmaze_ has quit [Ping timeout: 255 seconds]
jwheare has quit [Remote host closed the connection]
jwheare has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
<cerulean> gmourin guys
gdonald has joined #ruby
boombox_ has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
cdg_ has joined #ruby
griff has joined #ruby
Siyfion has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
hxegon has joined #ruby
govg has joined #ruby
boombox_ has quit [Remote host closed the connection]
<Siyfion> Does anyone know what my issue might be here (http://imgur.com/a/QKsXZ)
amargherio has quit [Quit: amargherio]
<Siyfion> I think I'
<Siyfion> *I've got all the gems installed that I need, but for some reason it comes up with this...
psychicist__ has joined #ruby
<baweaver> !gist
<baweaver> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<baweaver> much easier to use than imgur
<Siyfion> baweaver true, but it's a bit of a mess with word-wrap
<impermanence> morning. Do I need to require anything in order for Dir.chdir("/tmp") to work? I'm calling it but my current shell does not change directory...
dlitvak has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
hxegon has quit [Client Quit]
<baweaver> impermanence: It'll only "cd" inside the ruby process
<impermanence> baweaver: oh. so basically in the threads being executed...the cd is happening there?
<baweaver> yep
<impermanence> oh, wow. okay then.
pulkit4tech has quit [Quit: Connection closed for inactivity]
<baweaver> Siyfion: which OS / how did you install it?
<Siyfion> OSX / gem install
<baweaver> brew?
<Siyfion> or bundle install
<Siyfion> Ah yes
<baweaver> seeing some issues cropping around there
<Siyfion> Ah ha
<Siyfion> Good spot
<baweaver> though I'd go with another manager for it honestly
polishdub has joined #ruby
<baweaver> brew ruby can be a bit off on occasion
<Siyfion> Okay, thats a shame.. I love brew :(
<baweaver> that'll get you ready for Rails, so you can skip a few steps if you won't need that.
griff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> brew works for most things
<baweaver> languages can be finnicky, especially if you need more than one version
<Siyfion> rvm / nvm to the rescue?
<baweaver> I've used rvm in the past and currently use nvm
<baweaver> there's a lot of skepticism lately around RVM though it seems
<baweaver> something about 20k line shell scripts being dangerous
nankyokusei has joined #ruby
<baweaver> I think ruby-install / chruby are the new favorites
<Siyfion> Ah... so at the moment you'd recommend chruby?
<baweaver> yeah
<Siyfion> Okay, I'll take a look
<baweaver> Radar's guide there does a good job of getting everything working
<baweaver> If you're only using the one version though it may not be worth the effort
<Siyfion> Yeah, I generally only use latest
<Siyfion> I only do a *very* small app in Ruby, everything else is Node.js/React/etc.
bounb is now known as mearnsh
<Siyfion> To create PDFs weirdly
<Siyfion> But it works well... so hey, why not!?
<baweaver> Wicked was it?
<Siyfion> No, PrawnPDF actually ;)
* baweaver wishes pdf would die
dionysus69 has joined #ruby
<Siyfion> Haha... well for very accurate printing, it's quite useful.. ie. labelling.
dionysus69 has quit [Remote host closed the connection]
<baweaver> Never said it wasn't, but the caveats leave some things to be desired :)
<Siyfion> But it's not generated from HTML, due to the simple fact that I don't think I'd be able to position things as accurately as I'd like..
nankyokusei has quit [Ping timeout: 240 seconds]
<baweaver> namely playing chicken with Java for most exploits on record
<Siyfion> Oh there's a hell of a LOT to be desired from PDFs
<dminuoso> Siyfion: Such as?
<dminuoso> PDFs are actually one of the better formats out there.
<baweaver> uh oh
<baweaver> you summoned dminuoso
* Siyfion runs away and hides
* dminuoso growls
<baweaver> 'mornin
<Siyfion> Hey I like them... *for my use case
<Siyfion> But there are places where they are used that I'd prefer they weren't!
gregf_ has joined #ruby
andikr has quit [Remote host closed the connection]
<dminuoso> Siyfion: The thing that really triggers me about them if when companies start abusing cmap to make them un-copy-pastable, and then do positional tricks to ruin OCR attempts.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Siyfion> dminuoso: Couldn't agree more
rgtk has quit [Ping timeout: 255 seconds]
<Siyfion> For creating a document that you want printed in a *very* specific way... I love them, I don't think there's much else I could use...
ketan has joined #ruby
<dminuoso> Siyfion: They are at least truly portable.
<Siyfion> Yup, and fairly printer-friendly
TomyLobo has joined #ruby
rakm has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
preyalone has joined #ruby
amargherio has joined #ruby
[Butch] has joined #ruby
amclain has joined #ruby
levifig has quit [Ping timeout: 260 seconds]
levifig has joined #ruby
Slinky_Pete has joined #ruby
jusa has joined #ruby
Dry_Lips has joined #ruby
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
patarr_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
cloaked1 has quit [Quit: reboot]
patarr has quit [Ping timeout: 240 seconds]
Beams has quit [Quit: .]
Beams has joined #ruby
jsrn_ has quit [Quit: Leaving]
amargherio has quit [Quit: amargherio]
knight33 has joined #ruby
bodgix has joined #ruby
bodgix1 has quit [Read error: Connection reset by peer]
jgt2 has quit [Ping timeout: 252 seconds]
mephistophocles has joined #ruby
Sweetlie has joined #ruby
amargherio has joined #ruby
mark_66 has quit [Quit: Leaving.]
cloaked1 has joined #ruby
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
patarr_ has quit [Quit: leaving]
cschneid_ has quit [Remote host closed the connection]
outreachdan has joined #ruby
cschneid_ has joined #ruby
Slinky_Pete has quit []
solocshaw has quit [Remote host closed the connection]
solocshaw has joined #ruby
GinoManWorks has joined #ruby
nitric has joined #ruby
ResidentBiscuit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gsilva has quit [Ping timeout: 245 seconds]
nowhere_man has quit [Ping timeout: 252 seconds]
ResidentBiscuit has joined #ruby
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
grh has joined #ruby
govg has quit [Ping timeout: 245 seconds]
amargherio has quit [Remote host closed the connection]
govg has joined #ruby
gusrub has joined #ruby
solocshaw has quit [Ping timeout: 252 seconds]
ddffg has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Ping timeout: 255 seconds]
raspado has joined #ruby
ntnvgu has joined #ruby
hahuang61 has joined #ruby
nitric has quit [Quit: sleep]
mim1k has quit [Ping timeout: 252 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
esObe_ has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 260 seconds]
Pumukel has quit [Remote host closed the connection]
Beams has quit [Quit: .]
jaequery has joined #ruby
ddffg has joined #ruby
AndBobsYourUncle has joined #ruby
cdg_ has quit [Read error: Connection reset by peer]
cdg has joined #ruby
Qchmqs has quit [Ping timeout: 252 seconds]
AndBobsYourUncle has quit [Ping timeout: 252 seconds]
Guest39925 has quit [Remote host closed the connection]
valkyrka has quit [Ping timeout: 260 seconds]
bodgix has quit [Quit: Leaving.]
jusa has quit [Ping timeout: 240 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_djbkd has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
br0d1n has joined #ruby
Guest57405 has joined #ruby
chouhoulis has joined #ruby
Ishido has joined #ruby
Burgestrand has quit [Quit: Closing time!]
gusrub has quit [Remote host closed the connection]
esObe_ has joined #ruby
pandaant has quit [Remote host closed the connection]
nitric has joined #ruby
ddffg has quit [Ping timeout: 252 seconds]
gusrub has joined #ruby
gusrub has quit [Client Quit]
gusrub has joined #ruby
jgt2 has joined #ruby
outreachdan has quit [Read error: Connection reset by peer]
outreachdan has joined #ruby
renchan has quit [Quit: Leaving...]
moei has quit [Quit: Leaving...]
mim1k has joined #ruby
jgt2 has quit [Ping timeout: 240 seconds]
ketan has quit [Remote host closed the connection]
ketan has joined #ruby
griff has joined #ruby
s2013 has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 245 seconds]
ketan has quit [Ping timeout: 245 seconds]
ddffg has joined #ruby
moei has joined #ruby
mikecmpbll has joined #ruby
chouhoulis has quit [Remote host closed the connection]
nankyokusei has joined #ruby
chouhoulis has joined #ruby
jgt2 has joined #ruby
xall has quit [Ping timeout: 255 seconds]
ResidentBiscuit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ResidentBiscuit has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
griff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nitric has quit [Read error: Connection reset by peer]
ResidentBiscuit has quit [Ping timeout: 240 seconds]
spiette has quit [Remote host closed the connection]
jespada has joined #ruby
hahuang61 has joined #ruby
acalycine has quit [Quit: bye]
cgibsonmm has joined #ruby
ResidentBiscuit has joined #ruby
duderonomy has joined #ruby
antoniobeyah has joined #ruby
gusrub has quit [Remote host closed the connection]
ntnvgu has quit [Remote host closed the connection]
gusrub has joined #ruby
ResidentBiscuit has quit [Ping timeout: 255 seconds]
csk_ is now known as csk
gusrub has quit [Ping timeout: 245 seconds]
gbailey has joined #ruby
gusrub has joined #ruby
bodgix has joined #ruby
GodFather has joined #ruby
cfec0b8d has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
bungoman has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
dn` has quit [Quit: dn`]
GodFather has quit [Client Quit]
GodFather has joined #ruby
cgibsonmm has quit []
cdg has quit [Ping timeout: 240 seconds]
dn` has joined #ruby
nitric has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
jespada has quit [Ping timeout: 240 seconds]
cerulean has quit [Quit: leaving]
GodFather has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
contradictioned_ has quit [Ping timeout: 240 seconds]
_sfiguser has joined #ruby
contradictioned has joined #ruby
lel has quit [Ping timeout: 240 seconds]
GodFather has quit [Ping timeout: 240 seconds]
Bock has quit [Read error: Connection reset by peer]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
outreachdan has joined #ruby
SeepingN has joined #ruby
User458764 has joined #ruby
ski7777 has quit [Ping timeout: 260 seconds]
rgtk has joined #ruby
lagweezle_away is now known as lagweezle
ResidentBiscuit has joined #ruby
jusa has joined #ruby
reaVer has quit [Remote host closed the connection]
reaVer has joined #ruby
cseder has quit [Quit: Textual IRC Client: www.textualapp.com]
grh has quit [Ping timeout: 260 seconds]
Jayson_Virissimo has joined #ruby
nowhere_man has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
lagweezle is now known as lagweezle_away
lagweezle_away is now known as lagweezle
loincloth has joined #ruby
pupsicle has quit [Quit: pupsicle]
patarr has joined #ruby
war_pigs has joined #ruby
br0d1n has quit [Quit: Leaving]
d10n-work has joined #ruby
grh has joined #ruby
chrisgopher has joined #ruby
minimalism has joined #ruby
esObe_ has quit [Remote host closed the connection]
esObe_ has joined #ruby
skweek has joined #ruby
minimalism has quit [Quit: minimalism]
<Pierreb|home> system('perl /opt/ruby/sms.pl' "#{phone}") is there a way to add space between when sent to cmdline? it's sent as perl /opt/ruby/sms.pl11111111111
<apeiros> system('perl', '/opt…', phone)
<apeiros> (assuming phone already contains a string, then "#{phone}" is being pointlessly verbose)
bodgix has quit [Quit: Leaving.]
<Pierreb|home> just phone didnt work
<Pierreb|home> ill try that, thanks apeiros
<apeiros> "didn't work" doesn't work as a problem description
<apeiros> and it probably didn't work because you passed the arguments wrongly to system
jusa has quit [Ping timeout: 245 seconds]
<apeiros> if phone truly is not a string, phone.to_s is IMO still cleaner than "#{phone}" (and that's just what that construct does anyway)
lel has joined #ruby
<Pierreb|home> ok ill play around a bit
<lagweezle> I'm also noting that your call, apeiros, has commas, where as Pierreb|home just has strings following each other.
AndBobsYourUncle has joined #ruby
<apeiros> lagweezle: yes, that's the main part
<Pierreb|home> i tried the commas between perl /opt/script, variable
<Pierreb|home> not sure why i didnt do it that time
_tk421_ has joined #ruby
<lagweezle> Not just that, but breaking up 'perl /opt/...' into 'perl', '/opt/...'
<apeiros> you have to either put everything into a single string (creates a subshell) or use separate arguments for each (bypasses subshell)
<apeiros> &ri Kernel#system
darwish_ has joined #ruby
<darwish_> Hi .. I see this line in some open-source project: execute_cmdstager(flavor: :vbs)
cek has joined #ruby
<darwish_> Is the "flavor: vbs" part a hash short form?
<apeiros> yes
<apeiros> it's either keyword arguments, or a hash. depends on the method definition.
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cek> Anyone knows how to use http://www.w3.org/TR/xpath#section-String-Functions in nokogiri, so that it returns not a nodeset but an actual substring ?
<havenwood> darwish_: Either a "naked hash" short form of Hash or it could be a keyword argument with default value.
<apeiros> cek: I'm sure people over in ##ruby know
<darwish_> havenwood, apeiros .. yeah the method takes a hash; So it's 100% equivalent to execute_cmdstager(:flavor => :vbs)
esObe_ has quit [Remote host closed the connection]
<apeiros> yes. which in turn is equivalent to execute_cmdstager({:flavor => :vbs})
esObe_ has joined #ruby
<darwish_> apeiros, hmm .. from a language design perspective, was it worth it to create new syntax for such a very special case?
muelleme_ has joined #ruby
<apeiros> darwish_: yes. but I wish they'd done it differently.
<darwish_> apeiros, if you have the time, I'd be very interested to listen :D
<apeiros> I don't have the issues and IMO better solution at the ready anymore, sorry. you're about 5y late ;-)
<apeiros> it mainly boils down to me preferring to have explicit kwarg syntax, which is not mixed up with hash syntax
psychici1t__ has joined #ruby
psychicist__ has quit [Read error: Connection reset by peer]
outreachdan has joined #ruby
jespada has joined #ruby
jespada has quit [Client Quit]
esObe_ has quit [Ping timeout: 240 seconds]
xenops has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<darwish_> apeiros, I see :-)
bodgix has joined #ruby
bodgix has quit [Client Quit]
nankyokusei has joined #ruby
skweek has quit [Ping timeout: 255 seconds]
xenops has joined #ruby
skweek has joined #ruby
enterprisey has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]
Lord_of_Life has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
zapata has joined #ruby
babykosh has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esObe_ has joined #ruby
Guest96_ has joined #ruby
Guest96 has quit [Ping timeout: 252 seconds]
wilbert has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
raul782 has joined #ruby
Lord_Squirrel has joined #ruby
Lord_Squirrel has left #ruby [#ruby]
Robtop__ has joined #ruby
enterprisey has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
galtgendo has left #ruby [#ruby]
cdg has joined #ruby
Lord_Squirrel has joined #ruby
bungoman has joined #ruby
SteenJobs has joined #ruby
knight33 has joined #ruby
Lord_Squirrel has quit [Quit: leaving]
ozcanesen has joined #ruby
NightMonkey has quit [Ping timeout: 252 seconds]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
meshsmith has joined #ruby
muelleme_ has quit [Ping timeout: 252 seconds]
AndBobsYourUncle has joined #ruby
chrisseaton has joined #ruby
GodFather has joined #ruby
nankyokusei has joined #ruby
NightMonkey has joined #ruby
enterprisey has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
biberu has quit []
gusrub has quit [Remote host closed the connection]
raul782 has quit [Remote host closed the connection]
kitikonti has joined #ruby
cyphase has quit [Ping timeout: 240 seconds]
GodFather has quit [Ping timeout: 240 seconds]
Silthias has quit [Read error: Connection reset by peer]
hxegon has joined #ruby
hxegon has quit [Client Quit]
nankyokusei has quit [Remote host closed the connection]
hazelux has joined #ruby
toretore has quit [Ping timeout: 240 seconds]
NightMonkey has quit [Ping timeout: 240 seconds]
grh has quit [Ping timeout: 260 seconds]
NightMonkey has joined #ruby
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
Fin1te has joined #ruby
jdm has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
cam27 has joined #ruby
dlitvak has quit [Quit: Connection closed for inactivity]
jane_booty_doe has joined #ruby
toretore has joined #ruby
jdm has quit [Remote host closed the connection]
cam27 has quit [Quit: cam27]
lxsameer has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ryan_notabot has joined #ruby
gusrub has joined #ruby
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
cisco has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
narval has quit [Ping timeout: 240 seconds]
toretore has quit [Ping timeout: 255 seconds]
rakm has joined #ruby
psychici1t__ has quit [Quit: Lost terminal]
<hays> what's the best way to compatibly integrate a ruby script into a logging facility like syslog? I know about Syslog::Logger
<hays> but it seems like maybe some Linux distros for example are shipping without syslog these days
* lagweezle lights systemd on fire.
cek has left #ruby [#ruby]
<matthewd> hays: You want the best way to integrate with syslog without using syslog? :/
<hays> i don't particulrly care about using syslog or whatever else, just looking for something as platform independent as practicable
<hays> something that would hopefully end up in syslog for a system running syslog, but end up wherever else is appropriate for a system running something else
<matthewd> AFAIK, the "whatever else is appropriate" is still syslog
war_pigs has quit [Quit: later... computer is sleeping]
_tk421_ has quit [Ping timeout: 252 seconds]
<eam> syslog(3) is a posix defined libc call. It's not going anywhere
<eam> the daemon that services the /dev/log socket is more or less irrelevant
<hays> ok. well that is helpful actually
<hays> so Syslog::Ruby is tying to a POSIX call
<eam> most likely
<eam> the posix call is, in turn, very simple and probably amounts to a particular string format and sendto() to /dev/log
<hays> erm Syslog::Logger
maattdd has quit [Ping timeout: 240 seconds]
<hays> I started down this rabbit hole because my Syslog::Logger messages look crappy in console.log (MacOS)
<hays> just trying to get a flavor at this point that its working..
narval has joined #ruby
<hays> all my messages show up with the name 'ruby' instead of what I pass into the Syslog::Logger constructor
<hays> and levels don't seem to be coming through
NightMonkey has quit [Ping timeout: 240 seconds]
<hays> yeah, just verified that Syslog::Logger works with a Syslog module, that is an interface for syslog(3) which I think means POSIX
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eam> hays: because /dev/log is just a regular old socket it's pretty easy to debug. Try attaching strace and looking at the format of the string being sent to the socket
<hays> not sure how to do that
war_pigs has joined #ruby
kitikonti has quit [Quit: Textual IRC Client: www.textualapp.com]
<eam> here's a pretty fun 'zine about how to use it https://jvns.ca/blog/2015/04/14/strace-zine/
<eam> strace shows you the system calls a process is making, easiest way to test it: `strace ls` to see what system calls the `ls` program invokes
NightMonkey has joined #ruby
<eam> anyway, you can use it to see what data is flowing over a descriptor
__Yiota has joined #ruby
jane_booty_doe has quit [Quit: Leaving]
jusa has joined #ruby
raul782 has joined #ruby
millerti has joined #ruby
ldnunes has quit [Quit: Leaving]
skweek has quit [Ping timeout: 240 seconds]
jusa has quit [Ping timeout: 240 seconds]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782 has quit [Ping timeout: 252 seconds]
hxegon has joined #ruby
Fin1te has quit [Quit: Later, tater.]
ddffg has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
enterprisey has quit [Ping timeout: 245 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spiette has joined #ruby
mim1k has joined #ruby
aupadhye has quit [Ping timeout: 245 seconds]
mim1k has quit [Ping timeout: 252 seconds]
chichou has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
ramortegui has quit [Quit: Ex-Chat]
JoshS has quit [Quit: Leaving]
nadir has joined #ruby
am55 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
am55 has joined #ruby
skweek has joined #ruby
lmc has quit [Quit: Leaving...]
_tk421_ has joined #ruby
pupsicle has joined #ruby
claudevandort has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
babykosh has quit [Remote host closed the connection]
polishdub has quit [Quit: Leaving]
am55 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chichou has quit [Quit: WeeChat 1.7]
babykosh has joined #ruby
babykosh has quit [Client Quit]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
outreachdan has joined #ruby
lagweezle is now known as lagweezle_away
yehowyada has quit [Quit: Textual IRC Client: www.textualapp.com]
haylon has quit [Remote host closed the connection]
war_pigs has quit [Quit: later... computer is sleeping]
blackwind_123 has quit [Ping timeout: 240 seconds]
chichou has joined #ruby
nitric_ has joined #ruby
blackwind_123 has joined #ruby
nitric has quit [Ping timeout: 240 seconds]
esObe_ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
esObe_ has quit [Remote host closed the connection]
esObe_ has joined #ruby
war_pigs has joined #ruby
rakm has joined #ruby
agent_white has quit [Quit: leaving]
wilbert has quit [Ping timeout: 252 seconds]
meshsmith has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
NightMonkey has quit [Ping timeout: 252 seconds]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
war_pigs has quit [Quit: later... computer is sleeping]
hanmac has quit [Ping timeout: 260 seconds]
chichou has quit [Quit: WeeChat 1.7]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
nankyokusei has quit [Ping timeout: 240 seconds]
NightMonkey has joined #ruby
war_pigs has joined #ruby
jamesaxl has quit [Quit: WeeChat 1.7]
chouhoulis has quit [Ping timeout: 240 seconds]
hazelux has quit [Remote host closed the connection]
pupsicle has quit [Quit: pupsicle]
skweek has quit [Ping timeout: 245 seconds]
hazelux has joined #ruby
hazelux has quit [Ping timeout: 240 seconds]
hanmac has joined #ruby
cam27 has joined #ruby
Arpanet69 has quit [Ping timeout: 245 seconds]
rexb0t has joined #ruby
TomyLobo has quit [Ping timeout: 255 seconds]
war_pigs has quit [Quit: later... computer is sleeping]
milardovich has joined #ruby
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
millerti has joined #ruby
workmad3 has joined #ruby
esObe_ has quit [Remote host closed the connection]
skweek has joined #ruby
s2013 has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
griff has joined #ruby
_tk421_ has quit [Ping timeout: 255 seconds]
<mikecmpbll> anyone know any guides on writing protocols over TCP, in general or specifically in ruby?
<mikecmpbll> (TCP or UDP)
<dminuoso> mikecmpbll: RFC.
cdg has quit [Remote host closed the connection]
<mikecmpbll> dminuoso : got a link? can't find anything
esObe_ has joined #ruby
<mikecmpbll> oh, do you mean the standards. i don't mean implementing existing protocols but creating a custom one
am55 has joined #ruby
<matthewd> mikecmpbll: 1. Don't; use an existing protocol. 2. Open a socket and read & write to it.
<mikecmpbll> yeah. i don't really know why i asked the question, i know it's as simple as that.
hazelux has joined #ruby
<mikecmpbll> it's late, my brain isn't functioning good :d
<matthewd> Yeah, beyond that it's a matter of protocol design, in which case see 1.
_sfiguser has quit [Quit: Leaving]
<mikecmpbll> hmm. lots of software implement custom protocols for talking between their various components
esObe_ has quit [Remote host closed the connection]
narval has quit [Ping timeout: 240 seconds]
rexb0t has quit [Quit: Mutter: www.mutterirc.com]
esObe_ has joined #ruby
jusa has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
esObe_ has quit [Ping timeout: 240 seconds]
minimalism has joined #ruby
jusa has quit [Ping timeout: 252 seconds]
hutch34 has joined #ruby
outreachdan has joined #ruby
Guest96_ has quit [Remote host closed the connection]
Guest96 has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
gizmore has quit [Ping timeout: 260 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tdy has joined #ruby
griff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BubonicPestilenc has quit [Quit: Textual IRC Client: www.textualapp.com]
mim1k has joined #ruby
s2013 has joined #ruby
s2013 has quit [Client Quit]
mim1k has quit [Ping timeout: 255 seconds]
knight33 has quit [Read error: Connection reset by peer]
jdbrowne has joined #ruby
tvw has quit [Ping timeout: 252 seconds]
mint has joined #ruby
mzo has quit [Quit: :*]
cam27 has quit [Quit: cam27]
chouhoulis has joined #ruby
mint has quit [Ping timeout: 245 seconds]
enterprisey has joined #ruby
jdbrowne has quit [Quit: WeeChat 1.4]
rexb0t has joined #ruby
jdbrowne has joined #ruby
ryan_notabot has quit [Remote host closed the connection]
jdbrowne has quit [Client Quit]
ryan_notabot has joined #ruby
jgt2 has quit [Ping timeout: 252 seconds]
rexb0t has quit [Client Quit]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_tk421_ has joined #ruby