« Back to channel list

#ruby - 22 April 2016

« Back 1 day Forward 1 day »
[00:00:59] wldcordeiro: has joined #ruby
[00:01:11] flaf: has left #ruby: ("WeeChat 1.0.1")
[00:03:14] william3: has joined #ruby
[00:03:35] skweek: has joined #ruby
[00:04:01] charliesome: has joined #ruby
[00:04:10] n008f4g_: has joined #ruby
[00:04:27] rahult_: has joined #ruby
[00:06:05] bronson: has joined #ruby
[00:07:42] ssiris: has joined #ruby
[00:07:42] govg: has joined #ruby
[00:08:38] Dimik1: has joined #ruby
[00:10:25] solocshaw: has joined #ruby
[00:13:16] giz|work: has joined #ruby
[00:13:22] govg: has joined #ruby
[00:16:08] bruno-: has joined #ruby
[00:17:53] Moosashi: has joined #ruby
[00:18:51] govg: has joined #ruby
[00:21:08] Sammichmaker: has joined #ruby
[00:21:34] bronson: has joined #ruby
[00:21:58] rkazak: has joined #ruby
[00:23:45] darkf: has joined #ruby
[00:23:53] elifoster: has joined #ruby
[00:24:06] statelesscode: has joined #ruby
[00:24:37] govg: has joined #ruby
[00:25:38] vdamewood: has joined #ruby
[00:26:30] jaguarmagenta: has joined #ruby
[00:29:46] Rutix: has joined #ruby
[00:29:46] Rutix: has joined #ruby
[00:30:20] chouhoul_: has joined #ruby
[00:30:34] govg: has joined #ruby
[00:30:48] armatechnicos: has joined #ruby
[00:33:09] CloCkWeRX: has joined #ruby
[00:34:50] neanderslob: has joined #ruby
[00:35:52] duncannz: has joined #ruby
[00:35:53] bruno-: has joined #ruby
[00:36:20] chipotle: has joined #ruby
[00:37:32] grassass: has joined #ruby
[00:39:13] pawnbox: has joined #ruby
[00:40:50] duncannz: has joined #ruby
[00:43:12] charliesome: has joined #ruby
[00:50:07] RegulationD: has joined #ruby
[00:50:08] hxegon: has joined #ruby
[00:50:27] nando293921: has joined #ruby
[00:50:34] ur5us: has joined #ruby
[00:53:31] neanderslob: has joined #ruby
[00:55:21] aegis3121: has joined #ruby
[01:00:25] Channel6: has joined #ruby
[01:00:29] bruno-: has joined #ruby
[01:03:16] sudoubuntu: has joined #ruby
[01:03:46] KramerC: has joined #ruby
[01:05:50] uri___: has joined #ruby
[01:06:51] karapetyan: has joined #ruby
[01:12:03] havenwood: crystal77: It seems the rbenv readme still shows manual rehashing. Folk still seem to need to rehash. Unsure.
[01:12:53] havenwood: crystal77: Use chruby to free yourself of your garden of shims and the need to rehash them: https://github.com/postmodern/chruby#readme
[01:14:31] havenwood: crystal77: Or if you like rbenv maybe search their docs for how to enable the autorehashing? I don't think there's an rbenv irc channel. There are #rvm or #chruby channels.
[01:14:46] crystal77: is this like rbenv? never heard of it
[01:14:53] pawnbox: has joined #ruby
[01:16:03] havenwood: crystal77: chruby sets env variables like GEM_HOME and GEM_PATH instead of maintaining shims for rubies and gems like rbenv
[01:16:41] havenwood: It's simpler and faster. No need to create a C extension for a shell builtin like rbenv.
[01:16:56] havenwood: crystal77: See the code: https://github.com/postmodern/chruby/blob/master/share/chruby/chruby.sh
[01:17:18] havenwood: crystal77: And then to enable autoswitching you can also source: https://github.com/postmodern/chruby/blob/master/share/chruby/auto.sh
[01:17:26] crystal77: Looks rad! I'm just surprised I've never seen it mention in any rails/ruby guide.
[01:17:31] crystal77: The RVM stuff got old quick.
[01:17:54] havenwood: crystal77: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/
[01:18:28] havenwood: http://blog.steveklabnik.com/posts/2012-12-13-getting-started-with-chruby
[01:18:57] terminalrecluse: has joined #ruby
[01:19:01] havenwood: crystal77: Lots of folk still use RVM. I mostly see chruby recommended here and in #RubyOnRails. :)
[01:20:41] diegoaguilar: has joined #ruby
[01:20:44] shum: has joined #ruby
[01:21:24] davedev24: has joined #ruby
[01:23:16] agentmeerkat: has joined #ruby
[01:26:24] BSab: has joined #ruby
[01:26:30] terminalrecluse: has joined #ruby
[01:26:37] kareeoleez: has joined #ruby
[01:27:56] jrafanie: has joined #ruby
[01:31:59] jackjackdripper: has joined #ruby
[01:32:17] noobsu: has joined #ruby
[01:34:09] RahulT: has joined #ruby
[01:34:24] astrobunny: has joined #ruby
[01:38:13] jenenliu: has joined #ruby
[01:38:27] bradleyprice: has joined #ruby
[01:41:29] Ropeney: has joined #ruby
[01:43:15] chouhoulis: has joined #ruby
[01:44:12] yfeldblum: has joined #ruby
[01:45:14] Cohedrin: has joined #ruby
[01:48:35] jenenliu: hi guys, my os is windows 7, I want to write a ruby script to open many instances of the same exe file
[01:48:40] jenenliu: how can I do that ?
[01:49:18] Arcaire: jenenliu: Install Ruby and write a for loop.
[01:50:06] jenenliu: I don't want to click so many times of the exe file
[01:50:19] jenenliu: can I write a script to click for me ?
[01:50:36] Arcaire: You can write a script to open the program yeah
[01:50:36] jenenliu: I mean, many cmd terminals open
[01:50:44] bruno-: has joined #ruby
[01:51:01] pawnbox: has joined #ruby
[01:51:05] jenenliu: are you sure ? I am afraid it will not pop up a new window
[01:51:13] Arcaire: Why wouldn't it?
[01:51:29] jenenliu: just run the program on the terminal I run ruby script
[01:51:47] Arcaire: Was that supposed to be an answer to my question?
[01:52:24] Arcaire: If not: Yeah, that's what I'd do in this case. You want to write a Ruby script that opens the application a certain amount of times, not one that clicks for you.
[01:52:35] Arcaire: Since all you're doing when you're clicking is opening the application, you can skip the click step.
[01:53:00] rkazak: has joined #ruby
[01:55:01] jenenliu: but I want to do that
[01:55:08] Arcaire: Why do you want to click?
[01:55:13] Arcaire: You can just open the program without clicking.
[01:55:31] chagel: has joined #ruby
[01:55:59] rahult_: has joined #ruby
[01:56:10] hxegon: has joined #ruby
[01:56:26] jenenliu: the app is a network client, and show many outputs, I want to see the output
[01:59:11] vdamewood: has joined #ruby
[01:59:19] bronson: has joined #ruby
[02:00:27] davedev24: has joined #ruby
[02:01:01] bruno-: has joined #ruby
[02:01:51] davedev24: has joined #ruby
[02:02:23] BSaboia: has joined #ruby
[02:03:40] bradleyprice: has joined #ruby
[02:05:12] A124: has joined #ruby
[02:10:47] droptone: has joined #ruby
[02:10:47] flashpoint9: has joined #ruby
[02:12:05] droptone: Question: I use constants when declaring my logger instance so I can easily alter various components. For some reason though, despite me setting a constant to "monthly", when I declare my logger instance it does not generate a new log file every month.
[02:12:21] droptone: I'd gist this but it's two lines of code.
[02:12:26] droptone: Can someone see why this wouldn't work?
[02:12:28] droptone: LOGGER_FREQ = 'daily'; LOGGER_LEVEL = Logger::DEBUG;
[02:12:34] droptone: logger = Logger.new(LOGGER_FILENAME, LOGGER_FREQ); logger.level = LOGGER_LEVEL
[02:12:55] droptone: I'm testing using "daily" but LOGGER_LEVEL was previously set to 'monthly' and it had no effect
[02:12:57] chipotle: has joined #ruby
[02:13:01] droptone: yet LOGGER_FILENAME works fine
[02:13:37] droptone: Seems pretty basic, no?
[02:15:01] sdothum: has joined #ruby
[02:15:44] bruno-: has joined #ruby
[02:16:09] Ropeney: looks like it should work
[02:16:16] droptone: Yes, very strange.
[02:16:24] droptone: Would using single quotes when declaring the constant matter?
[02:16:38] Ropeney: it shouldn't
[02:17:08] Ropeney: droptone, http://ruby-doc.org/stdlib-2.3.0/libdoc/logger/rdoc/Logger.html#class-Logger-label-How+to+create+a+logger uses singles
[02:17:20] droptone: Right, so that shouldn't matter.
[02:17:52] charliesome_: has joined #ruby
[02:18:31] Moosashi: has joined #ruby
[02:19:19] arescorpio: has joined #ruby
[02:22:20] impermanence: has joined #ruby
[02:23:08] impermanence: What does "${::some_string}" in ruby, please?
[02:25:29] test: has joined #ruby
[02:25:41] mdih: has joined #ruby
[02:26:04] chipotle: has joined #ruby
[02:26:46] ramfjord: has joined #ruby
[02:27:14] jaguarmagenta: has joined #ruby
[02:27:30] impermanence: What does "${::some_string}" mean in ruby?
[02:29:48] impermanence: fuck so after five this room is fucking dead, eh?
[02:30:16] impermanence: fuck I guess everybody is off work and just chilling. good.
[02:30:38] Ropeney: nice attitude, did you try researching?
[02:30:47] Ropeney: did you try testing in irb?
[02:30:58] Ropeney: or post questions in here, swear when people don't stop their jobs and help you
[02:31:10] neha-: has joined #ruby
[02:31:31] impermanence: I got you to respond.
[02:31:46] impermanence: I was just kicking up the juice for a sec to see if anyone was actually here.
[02:31:54] impermanence: I posted my very basic question twice.
[02:32:09] impermanence: So I figured I'd get ignorant for a second.
[02:32:13] impermanence: Sorry if I was offensive.
[02:32:33] Ropeney: well your on your own from me now
[02:32:52] impermanence: shuckles. have a good night, then.
[02:34:00] neha-: has joined #ruby
[02:34:43] impermanence: hmm. seems like it is ruby syntax.
[02:35:10] impermanence: I thought the double colons were for accessing stuff from outside something or other...
[02:36:07] peter: has joined #ruby
[02:36:27] last_staff: has joined #ruby
[02:36:47] peter: how do I declare a gem wide utility function?
[02:37:04] peter: specifically, I have a gem, which has a top level module MyGem
[02:37:23] peter: and I'd like to make a set of puts_color methods global, within that module
[02:38:00] peter: such that in any methods or classes within the module I can simply use puts_red
[02:38:02] hxegon: has joined #ruby
[02:38:07] x77686d: has joined #ruby
[02:39:05] rkazak: has joined #ruby
[02:39:20] peter: I declared the methods on the top level module, and other module methods (including submodules) can access them, but not classes defined within the modules
[02:39:32] braincrash: has joined #ruby
[02:41:52] zacstewart: has joined #ruby
[02:42:52] peter: actually is there _any_ way a class within a module can access the module methods without including the module?
[02:42:55] peter: I'm beginning to think not
[02:44:01] terminalrecluse: has joined #ruby
[02:46:34] pawnbox: has joined #ruby
[02:47:12] FooMunki: has joined #ruby
[02:48:44] jackjackdripper: has joined #ruby
[02:51:38] impermanence: peter, my friend, I asked for some guidance here as well, but it did not go so well.
[02:51:47] impermanence: And then I was rebuked for being rude.
[02:52:00] impermanence: Anyway, good luck!
[02:52:13] impermanence: I know nothing of this wonderful language so I couldn't help you anyway.
[02:52:19] fedexo: has joined #ruby
[02:52:33] impermanence: But in all seriousness I think this room gets very slow after work hours U.S.
[02:52:37] impermanence: I could be wrong.
[02:53:22] impermanence: Hey, let me ask you, since you seem to know Ruby. Do you know if this syntax is Ruby: "${::some_string}" ?
[02:53:52] Arcaire: That looks like Perl.
[02:53:59] Arcaire: Variable interpolation in Ruby is with a #{}.
[02:54:09] Arcaire: "#{:some_symbol}"
[02:54:12] impermanence: Fuck. perl. what?
[02:54:28] impermanence: The guys at my office luuuuuuv perl...so that would make sense...
[02:55:22] karapetyan: has joined #ruby
[02:55:29] goodroot: has joined #ruby
[02:55:39] Arcaire: https://eval.in/557817
[02:55:41] impermanence: Hm. Why would they put perl in a puppet manifest?
[02:56:38] Arcaire: Oh, if it's a Puppet manifest it's Puppet's own language kinda.
[02:56:44] Arcaire: https://docs.puppet.com/puppet/latest/reference/lang_summary.html
[02:56:51] Arcaire: It's not Ruby and it's kind of only half Perl.
[02:57:09] impermanence: I know. But puppet is written in Ruby and well I thought that you could talk to the ol' Pupp-dawg in ruby so fuck.
[02:57:35] impermanence: Arcaire: thanks for responding.
[02:57:41] impermanence: I just need to read is the deal.
[02:58:06] impermanence: But I'll be darned if that old Puppet Domain Specific Language doesn't look a lot like Ruby, man.
[02:58:12] al2o3-cr: has joined #ruby
[02:58:32] Arcaire: "its syntax was inspired by the Nagios configuration file format"
[02:59:42] impermanence: Arcaire: I guess I was hoping that learning puppet would give me an excuse to learn Ruby since puppet is written in Ruby.
[03:00:40] bronson: has joined #ruby
[03:00:48] Arcaire: Chef is probably what you're after in that case.
[03:00:52] Arcaire: The recipes for Chef are in Ruby.
[03:01:07] Arcaire: afaik you can use Puppet too but not for that.
[03:01:09] Arcaire: https://puppet.com/blog/using-ruby-puppet-ruby-dsl
[03:01:32] impermanence: Arcaire: you're right about chef. I actually wish we used chef, big time, for that exact reason, too.
[03:01:56] impermanence: Anyway, yeah, okay, so I need to look at the docs. Good night, to you, Sir. Thanks for talking. Talk to you later maybe.
[03:02:54] al2o3-cr: i knew a chef once, lovely piece of duck
[03:03:15] Arcaire: Cheers impermanence. See ya. :)
[03:03:33] Arcaire: [12:36:47] <peter> how do I declare a gem wide utility function?
[03:03:36] impermanence: al2o3-cr: confit si my favorite. How about you?
[03:03:37] Arcaire: class MyModule::Utility
[03:04:21] al2o3-cr: impermanence: pan fried, then oven quite simple like me
[03:05:09] Rodya_: has joined #ruby
[03:05:20] al2o3-cr: with a bit of slag bag sauce
[03:06:00] bruno-: has joined #ruby
[03:06:23] impermanence: al2o3-cr: am I walking into an American trap here...what is slag bag sauce?
[03:06:32] Arcaire: impermanence: I opted not to Google it just in case.
[03:06:55] al2o3-cr: impermanence: someting tart
[03:07:41] impermanence: al2o3-cr: (I'm tough) ((sigh of relief)) Oh, okay. cool. yeah, tart is good.
[03:07:57] impermanence: Arcaire: I goog'd immediately.
[03:08:17] Arcaire: impermanence: I'm presently in the office so Googling it may have resulted in questions. :D
[03:08:37] impermanence: Arcaire: yeah, I gathered that. What country are you in?
[03:08:45] Arcaire: East Australia.
[03:09:08] devbug: has joined #ruby
[03:09:39] impermanence: Arcaire: Damn, cool. Wish I was there. The states are shit right now. Alright, I really have to go now. Later guys.
[03:09:49] zenlot6: has joined #ruby
[03:10:02] Arcaire: >the states are shit right now
[03:10:19] Arcaire: I hope impermanence is voting to make America great again, in that case.
[03:10:23] impermanence: has joined #ruby
[03:13:08] ebbflowgo: has joined #ruby
[03:15:23] yfeldblum: has joined #ruby
[03:16:17] braincrash: has joined #ruby
[03:16:42] bruno-: has joined #ruby
[03:17:14] Moosashi: has joined #ruby
[03:18:01] stardiviner: has joined #ruby
[03:21:03] rideh: has joined #ruby
[03:21:39] Spami: has joined #ruby
[03:22:20] pawnbox: has joined #ruby
[03:23:07] zast: has joined #ruby
[03:23:24] hostess: has joined #ruby
[03:23:40] mattp_: has joined #ruby
[03:31:17] SilverKey: has joined #ruby
[03:31:21] bruno-: has joined #ruby
[03:31:48] devbug: has joined #ruby
[03:34:40] jackjackdripper: has joined #ruby
[03:40:46] nisstyre_: has joined #ruby
[03:41:12] gix: has joined #ruby
[03:41:41] jobewan: has joined #ruby
[03:45:35] Moosashi: has joined #ruby
[03:47:29] hxegon: has joined #ruby
[03:48:05] hostess: has joined #ruby
[03:51:09] bluOxigen: has joined #ruby
[03:51:47] zenlot: has joined #ruby
[03:52:44] QpQ4_: has joined #ruby
[03:53:22] william3: has joined #ruby
[03:53:30] LoneHerm_: has joined #ruby
[03:55:28] Moosashi: has joined #ruby
[03:57:02] karapetyan: has joined #ruby
[03:57:41] PaulCape_: has joined #ruby
[03:58:42] pawnbox: has joined #ruby
[04:00:21] yxhuvud: has joined #ruby
[04:00:21] terminalrecluse: has joined #ruby
[04:01:32] CloCkWeRX: has joined #ruby
[04:01:41] aydintd: has joined #ruby
[04:05:40] tax: has joined #ruby
[04:08:39] kareeoleez: has joined #ruby
[04:11:40] Cohedrin_: has joined #ruby
[04:13:42] Yeomra: has joined #ruby
[04:14:00] tubbo: has joined #ruby
[04:17:05] vdamewood: has joined #ruby
[04:17:44] zacts: has joined #ruby
[04:26:03] Dimik1: has joined #ruby
[04:26:45] astrobunny: has joined #ruby
[04:27:26] baweaver: has joined #ruby
[04:27:38] pawnbox: has joined #ruby
[04:27:58] jaguarmagenta: has joined #ruby
[04:28:34] astrobun_: has joined #ruby
[04:28:41] Moosashi: has joined #ruby
[04:29:10] Spami: has joined #ruby
[04:29:40] Rasi: has joined #ruby
[04:30:29] pawnbox: has joined #ruby
[04:31:33] chagel: has joined #ruby
[04:32:51] bb010g: has joined #ruby
[04:34:35] agentmee1kat: has joined #ruby
[04:36:11] rbennacer: has joined #ruby
[04:38:24] dopie: has joined #ruby
[04:40:25] matp: has joined #ruby
[04:45:19] tvon: has joined #ruby
[04:50:58] crystal77: has joined #ruby
[04:51:58] RegulationD: has joined #ruby
[04:55:08] chagel: has joined #ruby
[04:56:05] william3: has joined #ruby
[04:56:44] rbennacer: has joined #ruby
[04:58:12] Arahael: has joined #ruby
[04:58:30] Arahael: : invalid byte sequence in UTF-8 (ArgumentError) <-- How do I fix this?
[04:58:44] Arahael: I've already called: .encode! "UTF-8"
[04:59:54] duncannz: has joined #ruby
[04:59:59] baweaver: which would bring up this - https://robots.thoughtbot.com/fight-back-utf-8-invalid-byte-sequences
[05:00:29] Arahael: baweaver: Yes, I've seen that. But if the string had an invalid sequence, then surely the .encod!e itself should fail?
[05:01:19] tildes: has joined #ruby
[05:01:50] baweaver: did you read _all_ of it?
[05:01:57] zacstewart: has joined #ruby
[05:02:03] baweaver: string.encode('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: '')
[05:02:12] zacstewart: has joined #ruby
[05:02:35] Arahael: baweaver: Well, that doesn't make sense. What source encoding is "binary"?
[05:03:04] baweaver: &ri String#encode
[05:03:04] `derpy: http://ruby-doc.org/core-2.3.0/String.html#method-i-encode
[05:03:05] Arahael: baweaver: And furthermore, the error I get with that line is *after* the encode! call. Ie, when it's been encoded.
[05:04:00] ruby[bot]: We can't help you without your code, please post it to https://gist.github.com
[05:04:14] baweaver: ACTION mumbles something about bot prefixes
[05:04:31] Arahael: baweaver: I just found something subtle in those docs: If the source and target encodings are the same, then encode! is a no-op.
[05:05:00] Arahael: And as it turns out, the encoding is UTF-8 for some unfathomable reason. How does ruby guess the results of my `shell calls`?
[05:05:42] baweaver: ACTION shrugs
[05:05:50] Arahael: so, I have, for instance: p = `diff foo bar`, and I'm surprised to see that p.encoding is UTF-8.
[05:05:59] baweaver: probably a system configuration, though I wouldn't know where to look
[05:06:17] baweaver: also naming something p is a bad idea
[05:06:29] Arahael: I have p to represent "patch".
[05:06:37] baweaver: then type out patch
[05:06:43] kfpratt: has joined #ruby
[05:06:47] Arahael: It's only a local variable.
[05:07:03] baweaver: p is a method, which will lead to confusion later.
[05:07:22] Arahael: I mean, p is a method?
[05:07:26] baweaver: people reading your code
[05:07:36] baweaver: puts *.inspect == p *
[05:07:48] baweaver: well, p returns the object as well
[05:07:53] ruby[bot]: baweaver: # => 1 ...check link for more (https://eval.in/557838)
[05:07:58] havenwood: arahael: http://ruby-doc.org/core/Kernel.html#method-i-p
[05:08:29] baweaver: more of from a glance it's going to confuse people, so best to avoid that.
[05:09:05] Arahael: I see ruby has built-in one-character methods. I guess I learnt something new.
[05:09:35] baweaver: not a fan of it myself, but such it is
[05:09:40] devbug: has joined #ruby
[05:09:42] Arahael: baweaver: It sounded more like that it was a bad name, because it's a confusing name that doesn't explain what it is for.
[05:09:53] Arahael: baweaver: But as it clobbers a builtin, that's an excellent reason to avoid it.
[05:10:04] baweaver: it won't clobber it
[05:10:11] Arahael: For that scope, anyway.
[05:10:12] baweaver: it'll just be annoying to read
[05:10:20] baweaver: the parser can tell
[05:10:37] Arahael: Ah. Still confusing in any case.
[05:10:39] baweaver: >> p = 5; p 6
[05:10:40] ruby[bot]: baweaver: # => 6 ...check link for more (https://eval.in/557842)
[05:10:42] sauvin: has joined #ruby
[05:10:49] baweaver: which is why I avoid it
[05:10:59] Arahael: So, my p1 and p2 are still fine.
[05:11:44] baweaver: If I told you Ruby has a p1 to p50 function?
[05:12:13] Arahael: Then I give up on ruby!
[05:12:15] baweaver: ACTION is pulling your leg on that one
[05:12:38] baweaver: as far as default encoding it's probably set on a system level
[05:12:48] baweaver: probably based on locale
[05:12:51] Arahael: I suspect it's incorrectly getting it from my locale, yeah.
[05:12:59] jenrzzz: has joined #ruby
[05:13:14] Arahael: Even though there's no reason whatsoever that the output of an arbitrary command would be in that locale.
[05:13:40] Arahael: Heck, it would still think that: music = `cat /dev/pcm` would be UTF-8 encoded.
[05:13:44] Arahael: (No, don't do that...)
[05:14:01] Arahael: Now that I've forced the encoding, it makes a lot more sense.
[05:14:34] Arahael: patch.force_encoding('binary').encode('UTF-8') results in the error. Which is good.
[05:14:55] Don_John: has joined #ruby
[05:15:18] noobsu: has joined #ruby
[05:17:24] Arahael: baweaver: This is where I'd say that python does it better - but python3 probably does the same thing. :(
[05:18:09] Moosashi: has joined #ruby
[05:18:11] hxegon: has joined #ruby
[05:18:14] baweaver: are they still arguing over 2 vs 3?
[05:18:48] Arahael: Not as such. More that they've mutually decided not to talk about it.
[05:19:00] baweaver: that's healthy
[05:19:06] Arahael: pypy, for instance, is python2 comptible, they're not focusing on python3 at all due lack of funding.
[05:19:09] galeido: has joined #ruby
[05:19:09] galeido: has joined #ruby
[05:19:34] Arahael: There's a pypy3 version, but that isn't anywhere nearly as good as the pypy release, apparently)
[05:19:49] apeiros: has joined #ruby
[05:19:53] baweaver: Python rules and formatting always bothered me, but the 2 3 debate and shenanigans kinds seals it for me.
[05:20:10] Arahael: baweaver: It's widely regarded as a bit of a mistake.
[05:20:11] baweaver: Sure, Ruby has its issues
[05:20:44] Arahael: Though, I feel that ruby-the-language is better.
[05:20:45] baweaver: but end of the day I can trust that the community will move forwards and Matz will make sane calls
[05:21:07] Arahael: I otherwise prefer python's ecosystem, though ruby is maturing nicely.
[05:21:12] baweaver: Though Ruby 3.... That'll be interesting
[05:21:20] aufi_: has joined #ruby
[05:21:27] astrobunny: has joined #ruby
[05:21:33] baweaver: SciRuby is a thing now as well.
[05:21:33] Arahael: I wasn't impressed with how ruby kept breaking code from 1.8, 1.9, and 2.0
[05:21:42] Arahael: (Particularly relating to encodings)
[05:22:00] baweaver: 1.8 to 1.9 and 1.9.2 to 1.9.3 were the bad ones
[05:22:10] baweaver: other than that it's been fairly straightforward
[05:22:31] astrobun_: has joined #ruby
[05:22:49] Arahael: That sounds like my experience there.
[05:23:07] baweaver: after 1.9.3 I've not had any major issues.
[05:23:15] flashpoint9: has joined #ruby
[05:23:19] baweaver: 1.8.7 was straight shenanigans
[05:23:29] Arahael: In ruby's credit, even those "bad ones" could still be coped with. In python's case, it's effectively a different langauge.
[05:23:34] Devalo: has joined #ruby
[05:24:03] baweaver: Scala has a nasty habit of binary incompatibility
[05:24:23] Arahael: I could never quite get into Scala.
[05:24:27] baweaver: even on minor patches
[05:24:33] Arahael: Going into haskell more though. But only as time allows.
[05:24:41] baweaver: It's my job now, so there's that
[05:24:56] baweaver: Scala / Spark / Machine Learning
[05:25:31] baweaver: Combine with Couchbase, Cassandra, and Terabytes of logs a day on AWS.
[05:26:56] Arahael: Ah, fun stuff.
[05:26:58] baweaver: Kotlin tends to be a much more sane and pared down Scala
[05:27:26] Arahael: You're not using AWS's kibana and elasticsearch, I see?
[05:27:30] baweaver: Jetbrains got pissed with Java and realized that making an IDE got them most of the way to a language already, so they made Kotlin
[05:27:31] Arahael: (I think AWS has redis, too)
[05:27:42] baweaver: We broke ES to hell and back
[05:27:46] baweaver: doesn't scale that high
[05:28:02] dionysus69: has joined #ruby
[05:28:10] Arahael: Doesn't surprise me. :/
[05:28:23] baweaver: It turned out to not be very Elastic :/
[05:28:47] baweaver: Grafana, OpenTSDB, Kafka, and a few others
[05:28:55] hxegon: has joined #ruby
[05:29:22] Xiti: has joined #ruby
[05:29:50] jenrzzz: has joined #ruby
[05:29:51] jenrzzz: has joined #ruby
[05:30:23] baweaver: We're one of the places that benchmarks and scaling claims go to die horrible painful deaths :(
[05:30:41] Arahael: A lot of places can do that.
[05:30:48] Arahael: The thing is, you have to *measure* them.
[05:30:51] baweaver: hence one of
[05:31:14] Arahael: The log stash guys have quite complex processing queues setup.
[05:31:30] baweaver: Now if only Apache could hire better tech writers for their docs
[05:31:37] baweaver: Kafka is illegible from a glance
[05:31:58] baweaver: I know Logstash is somewhere in the pipeline
[05:32:29] baweaver: * disclaimer: I'm new to that team, so I don't pretend to know the domain extremely well yet
[05:32:48] Arahael: No worries. :)
[05:33:03] Arahael: I prefer those who are more outspoken, to those who keep everything back until they _know_ the answer.
[05:33:14] Arahael: The latter tend not to say very much at all.
[05:33:59] BrunoSaboia: has joined #ruby
[05:37:39] stardiviner: has joined #ruby
[05:39:07] chouchen: has joined #ruby
[05:41:11] djbkd_: has joined #ruby
[05:41:18] raeoks: has joined #ruby
[05:42:06] LoneHerm_: has joined #ruby
[05:43:52] Cohedrin: has joined #ruby
[05:45:09] chagel: has joined #ruby
[05:50:36] tessi: has joined #ruby
[05:50:45] ramfjord: has joined #ruby
[05:52:57] SilverKey: has joined #ruby
[05:53:09] yfeldblum: has joined #ruby
[05:54:22] jenrzzz: has joined #ruby
[05:54:23] jenrzzz: has joined #ruby
[05:57:36] william3: has joined #ruby
[05:58:22] Polysics_: has joined #ruby
[05:59:12] navneet_: has joined #ruby
[05:59:34] RahulT: has joined #ruby
[05:59:46] navneet_: has joined #ruby
[06:00:28] navneet__: has joined #ruby
[06:01:29] bronson: has joined #ruby
[06:01:34] blaxter: has joined #ruby
[06:05:44] kareeoleez: has joined #ruby
[06:09:08] kareeoleez: has joined #ruby
[06:11:23] nisstyre_: has joined #ruby
[06:12:49] DanKnox: has joined #ruby
[06:15:43] astrobunny: has joined #ruby
[06:15:45] TheMoonMaster: has joined #ruby
[06:15:46] paulgrmn2: has joined #ruby
[06:16:13] pLaToOn: has joined #ruby
[06:17:38] null__: has joined #ruby
[06:18:44] armyriad: has joined #ruby
[06:19:01] Caelum: has joined #ruby
[06:22:42] minster_prime: has left #ruby: ()
[06:23:35] null__: has joined #ruby
[06:23:56] agit0: has joined #ruby
[06:24:43] aganov: has joined #ruby
[06:25:21] null__: has joined #ruby
[06:27:44] pawnbox_: has joined #ruby
[06:28:43] jaguarmagenta: has joined #ruby
[06:29:59] tax: has joined #ruby
[06:30:06] firstdayonthejob: has joined #ruby
[06:30:40] devbug: has joined #ruby
[06:30:51] null__: has joined #ruby
[06:31:35] gagrio_: has joined #ruby
[06:33:12] toretore: has joined #ruby
[06:33:51] gooodroot: has joined #ruby
[06:34:13] antgel: has joined #ruby
[06:35:23] william3: has joined #ruby
[06:40:12] andikr: has joined #ruby
[06:40:33] jud: has joined #ruby
[06:42:29] CausaMortis: has joined #ruby
[06:42:50] solars: has joined #ruby
[06:44:15] ur5us: has joined #ruby
[06:46:10] astrobunny: has joined #ruby
[06:50:23] Polysics: has joined #ruby
[06:51:35] TheMoonMaster: has joined #ruby
[06:52:16] Chagel_: has joined #ruby
[06:54:44] null__: has joined #ruby
[07:02:06] sameerynho: has joined #ruby
[07:06:39] mark_66: has joined #ruby
[07:10:35] neanderslob: has joined #ruby
[07:11:48] Caelum: has joined #ruby
[07:12:55] TheMoonMaster: has joined #ruby
[07:12:55] TheMoonMaster: has joined #ruby
[07:14:00] LoneHerm_: has joined #ruby
[07:14:24] aiguu__: has joined #ruby
[07:14:43] agentmeerkat: has joined #ruby
[07:15:23] anisha: has joined #ruby
[07:16:29] tagaulap_: has joined #ruby
[07:16:47] vondruch: has joined #ruby
[07:17:01] tagaulap: has joined #ruby
[07:18:46] conta: has joined #ruby
[07:20:22] jaruga___: has joined #ruby
[07:20:40] anisha_: has joined #ruby
[07:20:57] Caelum: has joined #ruby
[07:22:24] TomyWork: has joined #ruby
[07:22:54] Couch: has joined #ruby
[07:24:02] navneet_: has joined #ruby
[07:27:53] Macaveli: has joined #ruby
[07:30:56] last_staff: has joined #ruby
[07:32:19] Moosashi: has joined #ruby
[07:34:58] sinanislekdemir: has joined #ruby
[07:36:45] terlar: has joined #ruby
[07:38:35] marr: has joined #ruby
[07:39:59] howdoi: has joined #ruby
[07:40:07] snowy: has joined #ruby
[07:43:33] biberu: has joined #ruby
[07:43:40] mikecmpbll: has joined #ruby
[07:45:57] navneet_: has joined #ruby
[07:46:12] navneet_: has joined #ruby
[07:49:05] bruno-: has joined #ruby
[07:49:39] igam: has joined #ruby
[07:53:32] yfeldblum: has joined #ruby
[07:54:42] pawnbox: has joined #ruby
[07:55:50] kareeole_: has joined #ruby
[08:00:21] victortyau: has joined #ruby
[08:01:13] benlieb: has joined #ruby
[08:01:46] DoubleMalt: has joined #ruby
[08:03:06] araujo: has joined #ruby
[08:03:11] sepp2k: has joined #ruby
[08:03:15] bronson: has joined #ruby
[08:03:49] mikecmpbll: has joined #ruby
[08:05:16] karivolas: has joined #ruby
[08:06:00] maneken: has joined #ruby
[08:06:05] karate: has joined #ruby
[08:08:29] baweaver: has joined #ruby
[08:09:30] drptbl: has joined #ruby
[08:09:46] null__: has joined #ruby
[08:11:12] bsinhy: has joined #ruby
[08:17:05] goooodroot: has joined #ruby
[08:20:16] MagePsycho: has joined #ruby
[08:21:49] poerror: has joined #ruby
[08:21:52] poerror: has left #ruby: ()
[08:22:38] postmodern: has joined #ruby
[08:24:24] noobsu: has joined #ruby
[08:24:38] william3: has joined #ruby
[08:26:14] william3_: has joined #ruby
[08:28:54] william3: has joined #ruby
[08:29:28] jaguarmagenta: has joined #ruby
[08:34:12] yeticry: has joined #ruby
[08:37:43] tessi: has joined #ruby
[08:37:54] shredding: has joined #ruby
[08:38:56] davidrsmorris: has joined #ruby
[08:39:55] evidex: has joined #ruby
[08:40:01] davidrsmorris: Hi, I'm using IO.popen, and I noticed that when I gets a certain program, it hangs. When I call the program from bash, it gives lines of output to stdout. What could be the problem?
[08:40:10] skislak: has joined #ruby
[08:41:16] apeiros: davidrsmorris: the program might wait for stdin to be closed
[08:41:55] davidrsmorris: bash does this? This program gives multiple lines, as the data becomes available. It is written in C++.
[08:42:32] davidrsmorris: How would I do this with popen or other non-blocking ruby IO?
[08:42:47] codecop: has joined #ruby
[08:43:03] pawnbox: has joined #ruby
[08:43:25] william3: has joined #ruby
[08:44:49] apeiros: example: io = IO.popen('ruby -e "p data: ARGF.read"', 'w+'); io.write "hello"; io.close_write; io.read
[08:50:19] davidrsmorris: would opening with a mode of 'r' and no io.close_write simulate calling it from bash with no pipes?
[08:51:10] Moosashi: anyone ever set up a bot for slack
[08:53:23] RegulationD: has joined #ruby
[08:53:40] pandaant: has joined #ruby
[08:56:06] apeiros: Moosashi: no. no one. ever.
[08:56:19] Moosashi: damn not a single person ever
[08:57:36] MagePsycho: has joined #ruby
[08:58:08] davidrsmorris: I'm not sure that's my problem, since I can wrap it in bash -c and it still won't feed its output up. What could cause this?
[08:58:48] pawnbox: has joined #ruby
[09:00:19] gooooodroot: has joined #ruby
[09:00:27] jhass: davidrsmorris: if you redirect the output to a file and tail -f the file at the same time, does it update live?
[09:00:52] jhass: so we know it doesn't behave differently when stdout isn't a tty
[09:01:45] davidrsmorris: it does not update live, I am now mad at my prof.
[09:01:52] sid_fules: has joined #ruby
[09:02:08] davidrsmorris: it updates when the gui is killed
[09:02:46] jhass: we don't even want to know, do we?
[09:05:02] davidrsmorris: roboticist. So is there some option for popen, or should I figure out how to do it with the script command?
[09:06:06] benlieb: has joined #ruby
[09:06:42] bruno-: has joined #ruby
[09:10:10] william3: has joined #ruby
[09:10:34] sid_fules: has joined #ruby
[09:10:57] workmad3: has joined #ruby
[09:15:06] jhass: option for what?
[09:15:22] jhass: what script command?
[09:15:59] davidrsmorris: script -c can be used to simulate having an interactive session, and I'm wondering if ruby has a built-in thing for doing that because apparently doing that is not straightforward
[09:16:40] mikenovikov: has joined #ruby
[09:17:18] Weavel: has joined #ruby
[09:19:29] jhass: script's manpage says specifically that with -c stdout won't be a tty either
[09:19:32] ferr: has joined #ruby
[09:19:46] jhass: Run the command rather than an interactive shell. This makes it easy for a script to capture the output of a program that behaves differently when its
[09:19:48] jhass: stdout is not a tty.
[09:19:48] Aerik: has joined #ruby
[09:20:48] senayar: has joined #ruby
[09:20:49] senayar: has joined #ruby
[09:20:54] sid_fules: has joined #ruby
[09:21:35] ddv: has joined #ruby
[09:22:10] blackmesa: has joined #ruby
[09:24:00] binaryplease: has joined #ruby
[09:24:19] nisstyre_: has joined #ruby
[09:25:05] doublemalt_: has joined #ruby
[09:25:23] khaki: has joined #ruby
[09:29:05] ayonkhan: has joined #ruby
[09:29:20] victortyau: has joined #ruby
[09:30:39] goodroot: has joined #ruby
[09:33:36] darkxploit: has joined #ruby
[09:33:48] shredding: i need to compare page loads of various pages.
[09:34:02] shredding: e.g. including assets loaded (the "Finish" value in chrome network tab.
[09:34:18] shredding: is there a way to do that with capybara / waitr or so?
[09:40:52] gooodroot: has joined #ruby
[09:46:12] william3: has joined #ruby
[09:46:58] davidrsmorris: jhass: script seems to be the only thing this joe code will output to in realtime
[09:47:05] karapetyan: has joined #ruby
[09:48:40] MagePsycho: has joined #ruby
[09:48:54] noobsu: has joined #ruby
[09:49:49] al2o3-cr: has joined #ruby
[09:51:18] DaniG2k: has joined #ruby
[09:51:39] ruby[bot]: -bbb Bridge!*@*$#ruby-banned SuperSaiyan!*@*$#ruby-banned *!*@gateway/web/cgi-irc/kiwiirc.com/ip.45.117.135.174$#ruby-banned
[09:52:20] blaxter: has joined #ruby
[09:54:00] navneet: has joined #ruby
[09:57:34] Nahra: has joined #ruby
[09:59:01] idletask: has joined #ruby
[09:59:30] navneet_: has joined #ruby
[10:01:40] karapetyan: has joined #ruby
[10:02:29] hk238: has joined #ruby
[10:04:31] TheMoonMaster: has joined #ruby
[10:04:32] TheMoonMaster: has joined #ruby
[10:04:46] bronson: has joined #ruby
[10:06:03] Caelum: has joined #ruby
[10:07:14] troulouliou_div2: has joined #ruby
[10:07:32] aeterne: has joined #ruby
[10:07:38] bruno-: has joined #ruby
[10:08:48] karapetyan: has joined #ruby
[10:09:50] norc: has joined #ruby
[10:10:12] shevy: what is the route to epicness
[10:10:47] baweaver: has joined #ruby
[10:12:57] shevy: hmm... I think I'll slowly start a ruby-gtk games project on rubygems
[10:13:22] william3: has joined #ruby
[10:15:18] Emmanuel_Chanel: has joined #ruby
[10:15:20] karapetyan: has joined #ruby
[10:18:00] gnufied: has joined #ruby
[10:21:27] p0p0pr37: has joined #ruby
[10:24:24] n008f4g_: has joined #ruby
[10:24:47] DaniG2k_: has joined #ruby
[10:25:35] sxjnsy: has joined #ruby
[10:26:09] TheMoonMaster: has joined #ruby
[10:26:13] sid_fules: has joined #ruby
[10:26:18] TheMoonMaster: has joined #ruby
[10:26:39] shevy: is there a way to jump back in an iteration? like on http://pastie.org/10808033 if the user enters "p" or "previous", to "reset" the .each loop to the element before (or the element -2)
[10:27:19] MagePsycho: has joined #ruby
[10:29:04] ruby-lang400: has joined #ruby
[10:29:24] Ox0dea: Good morning, ruby-lang400.
[10:29:38] ruby-lang400: is there a way we can reset the .each method on an array to reloop from the start?
[10:29:46] ruby-lang400: (like java cursors of sort)
[10:29:53] Ox0dea: ruby-lang400: You'll have to make it an Enumerator, and then you can #rewind it.
[10:30:02] Ox0dea: There's #to_enum for that first part.
[10:30:11] ruby-lang400: awesome, that's what I needed
[10:30:17] Ox0dea: No worries.
[10:30:18] jaguarmagenta: has joined #ruby
[10:31:21] ocbtec: has joined #ruby
[10:35:40] karapetyan: has joined #ruby
[10:36:50] blackmesa: has joined #ruby
[10:38:11] Caelum: has joined #ruby
[10:43:22] mikeiniowa: has joined #ruby
[10:44:44] tvw: has joined #ruby
[10:45:25] terlar: has joined #ruby
[10:45:44] karapetyan: has joined #ruby
[10:48:34] qrvljf: has joined #ruby
[10:48:47] dezull: has joined #ruby
[10:50:47] sdothum: has joined #ruby
[10:54:01] troulouliou_div2: has joined #ruby
[10:54:31] william3: has joined #ruby
[10:54:33] jaguarmagenta: has joined #ruby
[10:55:54] sid_fules: has joined #ruby
[10:57:46] ur5us: has joined #ruby
[10:59:38] william3: has joined #ruby
[11:00:47] johnmilton: has joined #ruby
[11:03:43] sid_fules: has joined #ruby
[11:04:32] Carella: has joined #ruby
[11:08:24] JagaJaga: has joined #ruby
[11:08:32] bruno-: has joined #ruby
[11:10:55] Ropeney: has joined #ruby
[11:11:32] jaguarma_: has joined #ruby
[11:12:04] Polysics: has joined #ruby
[11:12:57] william3: has joined #ruby
[11:13:16] sdothum: has joined #ruby
[11:14:48] chagel: has joined #ruby
[11:15:08] william3: has joined #ruby
[11:15:12] tubuliferous: has joined #ruby
[11:15:48] jaguarmagenta: has joined #ruby
[11:20:20] Fernando-Basso: has joined #ruby
[11:21:45] Ropeney: has joined #ruby
[11:22:12] gooodroot: has joined #ruby
[11:22:13] ldnunes: has joined #ruby
[11:27:32] rippa: has joined #ruby
[11:30:30] terlar: has joined #ruby
[11:37:49] GodFather: has joined #ruby
[11:38:57] kfpratt: has joined #ruby
[11:39:32] Xeago: has joined #ruby
[11:40:04] banister: has joined #ruby
[11:42:40] rodfersou: has joined #ruby
[11:43:22] stardiviner: has joined #ruby
[11:43:33] MagePsycho: has joined #ruby
[11:44:42] william3: has joined #ruby
[11:45:13] sdothum: has joined #ruby
[11:49:38] Fernando-Basso: I have a class/singleton method define like "def self.foo". I want to call it inside "initialize". It seems I must do "self.class.foo". Why "class" has to be there?
[11:49:53] moeabdol: has joined #ruby
[11:50:28] Weavel: has joined #ruby
[11:50:38] Fernando-Basso: I mean, insin't `self` already referencing the class itself?
[11:50:48] apeiros: Fernando-Basso: because without .class you'd call it on self which is the instance of the class and not the class itself.
[11:51:25] apeiros: Fernando-Basso: no. self in initialize is the instance. remember, initialize is an instance method (you didn't define it as def self.initialize after all, right?)
[11:51:37] apeiros: alexherbo2: hi gal
[11:51:39] Xzanron: has joined #ruby
[11:51:40] alexherbo2: How get named arguments in a hash form?, and convert hash to named arguments.
[11:52:18] alexherbo2: Use case is to implement a bind method with named argument support.
[11:52:24] apeiros: >> def foo(**kwargs); p kwargs; end; foo bar: 1, baz: 2 # alexherbo2
[11:52:25] alexherbo2: https://gist.github.com/alexherbo2/fe575ed40aae72f9d9f8c96ba6c2bfee
[11:52:25] ruby[bot]: apeiros: # => {:bar=>1, :baz=>2} ...check link for more (https://eval.in/557997)
[11:53:13] null__: has joined #ruby
[11:53:51] rkazak: has joined #ruby
[11:53:54] alexherbo2: apeiros: I guess foo **{ bar: 1, baz: 2 } will convert hash to named arguments?
[11:53:56] Fernando-Basso: apeiros: Makes sense. Since `initialize` is called when creating an _instance_, `self` references the _instance_, not the class. Got it.
[11:54:10] Fernando-Basso: I just want to find where in the docs that is mentioned.
[11:54:14] charliesome: has joined #ruby
[11:54:21] apeiros: alexherbo2: yes, but it's not necessary. last hash in the args is treated as named args already.
[11:54:28] Fernando-Basso: It seems strange that I have to ask these type of questions...
[11:54:36] Fernando-Basso: 08:53:21 alexherbo2 | Hi guys
[11:55:06] apeiros: Fernando-Basso: it'd also be difficult to initialize ivars if it wasn't an instance method ;-) (you'd access the class' ivars otherwise)
[11:57:10] alexherbo2: apeiros: What is the built-in equivalent of #bind I try to implement?
[11:58:29] apeiros: binded -> bound
[11:58:35] dezull: has joined #ruby
[11:58:44] apeiros: not quite sure what you're trying to do there
[11:58:46] sepp2k: has joined #ruby
[11:59:18] apeiros: looks like currying
[11:59:23] alexherbo2: Yes currying
[11:59:38] apeiros: &ri Proc#curry
[11:59:38] `derpy: http://ruby-doc.org/core-2.3.0/Proc.html#method-i-curry
[12:00:48] banister: has joined #ruby
[12:01:54] poerror: has joined #ruby
[12:02:07] poerror: has left #ruby: ()
[12:03:37] alexherbo2: apeiros: There is no Boost-like implemention?
[12:03:44] alexherbo2: http://boost.org/doc/libs/1_49_0/libs/bind/bind.html#Purpose
[12:05:07] apeiros: sorry, not gonna read that wall of text
[12:06:45] workmad3: alexherbo2: no, nothing to the level of boost's implementation... but then, you can just use a proc or lambda in ruby for that sort of thing
[12:06:52] trinaldi: has joined #ruby
[12:07:32] workmad3: so instead of doing `bind(f, _1, _1)` you'd do `->(x) {f(x,x)}`
[12:07:36] shevy: boost for ruby
[12:08:32] shevy: "Using bind with function objects"
[12:08:34] chris2: curl -sL http://repo.voidlinux.eu/void-updates/void-updates.txt | awk '/chneukirchen@/,/^$/'
[12:08:39] shevy: they have function objects!
[12:09:03] synthroid: has joined #ruby
[12:10:16] pawnbox_: has joined #ruby
[12:10:26] Polysics: has joined #ruby
[12:11:26] Polysics_: has joined #ruby
[12:11:36] baweaver: has joined #ruby
[12:12:44] jhn: has joined #ruby
[12:15:16] roelof: has joined #ruby
[12:15:48] roelof: hello, what is the best way to learn ruby ?
[12:16:01] shevy: to write ruby code
[12:16:32] Weavel: has joined #ruby
[12:16:38] roelof: shevy: yes
[12:16:45] Ox0dea: roelof: Did you learn anything from RubyMonk?
[12:16:49] Fernando-Basso: apeiros: I mentioned I wanted to find that `self.class` thingy in the docs. Would it be this one? http://ruby-doc.org/core-2.2.3/Object.html#class-method
[12:17:01] Fernando-Basso: "Returns the class of obj. This method must always be called with an explicit receiver, as class is also a reserved word in Ruby."
[12:17:32] Ox0dea: Fernando-Basso: That tells you why you have to say `self.class`, but not why `self` is the instance being constructed in #initialize.
[12:17:43] Fernando-Basso: Yeah, that is what I was wondering.
[12:17:45] Ox0dea: It's really just that #initialize is an instance method.
[12:18:56] Ox0dea: The VM allocates the memory for your Object, assigns it a class, then invokes the relevant #initialize method to construct it.
[12:19:16] navneet: has joined #ruby
[12:19:59] workmad3: Fernando-Basso: what you're asking for is documentation of the language scoping rules... such docs exist in the form of a language overview (as given by countless tutorials, etc.), but you won't find them attached to a specific item like `Object` because it's a global property of the language
[12:20:02] roelof: yes. I learned a lot . In 2 weeeks I have a job interview and I want to be prepared. So practice a lot, Ox0dea
[12:20:17] Fernando-Basso: My goal is to increment a counter every time I instantiate a class. Instead of using self.class.increment_counter (to call a method that increments @count), I could just as well have used @@count += 1 inside `initialize`, I suppose.
[12:20:59] Ox0dea: Fernando-Basso: Are you perfectly certain that you'll never subclass this class?
[12:21:13] flashpoint9: has joined #ruby
[12:21:32] Fernando-Basso: Ox0dea: I am just making some study cases, not a real project.
[12:21:53] workmad3: Fernando-Basso: `def self.new; @count += 1; super; end`
[12:22:26] workmad3: (I missed out argument specification there, but it's another alternative to what you want ;) )
[12:22:28] flashpoint9: has joined #ruby
[12:22:35] Ox0dea: Fernando-Basso: Ah, well, something to be mindful of: https://eval.in/558016
[12:22:40] blackmesa: has joined #ruby
[12:22:53] navneet_: has joined #ruby
[12:24:08] tildes: has joined #ruby
[12:24:23] jhass: (and it's not because the inherited initialize would be run in the scope of the parent class, that's not the case)
[12:24:27] roelof: Ox0dea: maybe a idea to do the ruby monk course again ?
[12:24:40] snowy: has joined #ruby
[12:24:41] Ox0dea: roelof: Definitely not.
[12:24:49] Ox0dea: It just doesn't suit your learning style, I think.
[12:24:51] Fernando-Basso: But this is two ways to do the same, right? https://eval.in/558028
[12:25:04] dgncn: has joined #ruby
[12:25:23] Ox0dea: Fernando-Basso: I was just demonstrating that class variables are shared, which is almost never what you want.
[12:25:27] workmad3: Fernando-Basso: nearly the same... there's edge-case differences like the one Ox0dea pointed out
[12:25:28] roelof: Ox0dea: why do you think that way ?
[12:26:08] Ox0dea: roelof: Er, well, RubyMonk is a pretty massive course that touches on most of Ruby, and yet here you are still at the beginning. :/
[12:26:12] Ox0dea: Something didn't go as intended.
[12:27:07] Fernando-Basso: Okay. Thank you all. I took notes. I'll review everything.
[12:27:31] dn`: has joined #ruby
[12:27:40] aupadhye: has joined #ruby
[12:28:32] jhass: Fernando-Basso: to show it based on your sample: https://eval.in/558035
[12:30:30] goooodroot: has joined #ruby
[12:30:34] roelof: oke, I will look for better alternatives
[12:35:56] Fernando-Basso: jhass: Just a moment. I'm reviewing.
[12:36:21] jhass: no hurry, take your time
[12:36:30] Ox0dea: roelof: ^ :P
[12:37:07] ramortegui: has joined #ruby
[12:38:06] pchcrb: has joined #ruby
[12:38:19] LoneHermit: has joined #ruby
[12:41:06] Yiota: has joined #ruby
[12:43:57] victortyau: has joined #ruby
[12:44:56] roelof: Ox0dea: ?? ^:p
[12:45:02] Ox0dea: roelof: Take your time.
[12:45:12] Ox0dea: With whichever resource(s) you end up using.
[12:45:15] william3: has joined #ruby
[12:45:19] roelof: Thanks , I wil
[12:45:28] kfpratt: has joined #ruby
[12:45:29] roelof: I think sometimes I want to fast
[12:46:25] Ox0dea: You treated RubyMonk like some sort of competition.
[12:47:36] Xeago: has joined #ruby
[12:48:11] roelof: Ox0dea: not complete. I wanted to fast so I could do other challenges
[12:48:36] Ox0dea: roelof: To your detriment. The point is to learn, not to "win".
[12:48:54] roelof: yep , I know
[12:48:58] jrafanie: has joined #ruby
[12:49:09] roelof: sometimes im too eager to solve a problem
[12:50:17] antgel: has joined #ruby
[12:52:11] Ropeney: has joined #ruby
[12:52:18] ChiefAlexander: has joined #ruby
[12:52:30] MagePsycho: has joined #ruby
[12:52:35] william3: has joined #ruby
[12:53:44] Fernando-Basso: jhass: So, @a is not incremented upon Sub instantiations because `initialize` is not inherited?
[12:54:43] jhass: Fernando-Basso: no, because @a belongs to a specific class instance whereas @@ is shared down the ancestry chain
[12:54:55] RegulationD: has joined #ruby
[12:55:05] tobiasvl: also don't use @@ :P
[12:55:17] Ox0dea: Unless you *really* mean it.
[12:55:36] william3: has joined #ruby
[12:56:06] roelof: Ox0dea: thanks for the advice ?
[12:56:12] roelof: Ox0dea: thanks for the advice
[12:56:19] Ox0dea: Sure thing?
[12:56:29] roelof: Sure thing
[12:57:28] rbennacer: has joined #ruby
[12:58:05] BSaboia: has joined #ruby
[12:58:31] MagePsycho: has joined #ruby
[12:59:00] roelof: Ox0dea: I like people who are honest
[12:59:56] rbennacer: has joined #ruby
[13:00:18] Ox0dea: roelof: Nothing higher than truth, and thus nothing more virtuous than honesty.
[13:02:08] roelof: Ox0dea: yep
[13:02:28] rbennacer: has joined #ruby
[13:02:34] william3: has joined #ruby
[13:02:48] roelof: last question : Are there more places that I can practice ruby on problems so I can get more and more familiar with it ?
[13:02:49] banister: has joined #ruby
[13:02:58] Ox0dea: You should read a book.
[13:03:40] ChiefAlexander: has joined #ruby
[13:05:07] roelof: Ox0dea: can your recommend one
[13:05:28] Ox0dea: roelof: The Well-Grounded Rubyist is the one I got the most out of when I was first learning.
[13:06:07] roelof: oke, I wil look at that one
[13:06:13] Fernando-Basso: My comments on the example. I hope it is at leat partially corret. https://eval.in/558048
[13:06:22] ItSANgo: has joined #ruby
[13:07:17] Ox0dea: Fernando-Basso: Almost. The comment on Line 15 isn't quite right.
[13:07:22] Fernando-Basso: I should reword some comments... They are ...
[13:07:30] nettoweb: has joined #ruby
[13:07:54] Fernando-Basso: Yeah, it can be incremented upon invoking new on child objects.
[13:08:07] Fernando-Basso: But it will be particular to that one child class.
[13:08:12] Ox0dea: Just so. :)
[13:08:45] Fernando-Basso: Line 15: # Incremented separately for each class, super or child.
[13:08:57] Xeago: has joined #ruby
[13:09:05] Fernando-Basso: Well, still lacking.
[13:09:10] Ox0dea: s/super/base/
[13:09:39] bruno-: has joined #ruby
[13:11:23] roelof: Ox0dea: have a good day
[13:11:29] Ox0dea: roelof: And you.
[13:11:58] davedev24: has joined #ruby
[13:13:25] Lucas0231: has joined #ruby
[13:13:30] Lucas0231: http://lucas0231.taledar.com/
[13:13:32] Lucas0231: has left #ruby: ()
[13:14:07] malconis: has joined #ruby
[13:15:24] aegis3121: has joined #ruby
[13:16:04] impermanence: has joined #ruby
[13:17:50] impermanence: Will upgrading my ruby.x86_64 package from 2 to 2.3 break all of my other ruby packages and everything else that depends on ruby? OS is CentOS.
[13:21:41] victortyau: has joined #ruby
[13:22:05] charliesome: has joined #ruby
[13:22:49] Arcaire: has joined #ruby
[13:23:05] dsimon: impermanence, maybe? that depends on how CentOS packages things
[13:23:23] crameth: has joined #ruby
[13:23:25] dsimon: however, it might be possible to install 2.3 in addition to the current ruby, if you only need it for certain things
[13:23:36] Arcaire: totally possible, but not through the OS package manager
[13:23:39] dionysus69: has joined #ruby
[13:23:46] Arcaire: sorry, i missed all chat prior to my reconnection, my bouncer wasn't logging properly
[13:24:10] dsimon: yeah, or if you don't want to or can't use CentOS packaging to do it, you could use rvm
[13:24:20] dsimon: however that can be tricky to set up upfront
[13:24:53] Arcaire: well, you *can't* do it otherwise
[13:24:55] Arcaire: not cleanly
[13:25:03] Arcaire: and chruby/ruby-install is definitely the best way, and not too hard to set up
[13:28:23] trinaldi: has joined #ruby
[13:30:17] crystal77: has joined #ruby
[13:30:34] hxegon: has joined #ruby
[13:30:35] sudoubuntu: has joined #ruby
[13:31:28] godzillaenlacasa: has joined #ruby
[13:34:45] sgambino: has joined #ruby
[13:37:51] swills: has joined #ruby
[13:39:08] impermanence: has joined #ruby
[13:39:31] impermanence: Sorry. Did anybody answer my question? I quit but accident before I looked...
[13:39:42] Arcaire: what was your question? :^)
[13:39:44] Arcaire: i only just joined
[13:39:56] ruby[bot]: You can find a log of this channel at http://irclog.whitequark.org/ruby/
[13:40:04] Arcaire: but that's effort jhass
[13:40:14] Arcaire: wow is this even hosted on cloudflare
[13:40:16] Arcaire: it took 10s to load
[13:40:18] impermanence: bot: good to know.
[13:40:25] cdg: has joined #ruby
[13:40:43] Arcaire: 13:17 <impermanence> Will upgrading my ruby.x86_64 package from 2 to 2.3 break all of my other ruby packages and everything else that depends on ruby? OS is CentOS.
[13:41:02] impermanence: Arcaire: damn.
[13:41:07] Arcaire: Linux is notoriously shite for installation of languages like Ruby and Python.
[13:41:14] Arcaire: You need to make use of chruby/ruby-install and pyenv.
[13:41:21] Arcaire: Otherwise you end up with an awful mess.
[13:41:45] impermanence: Arcaire: wait, wait? If Linux is shite then what OS isn't?
[13:41:53] Arcaire: All of them are pretty bad lmao
[13:41:58] Ox0dea: Nice cop-out.
[13:42:17] impermanence: Arcaire: Going with 0x0dea on this one, boss...
[13:42:30] Arcaire: Don't really need validation. :)
[13:42:44] Ox0dea: "I don't need my beliefs to square with reality."
[13:42:58] Arcaire: That's a behaviour endemic to #ruby, Ox0dea. :)
[13:43:07] Arcaire: But for real, impermanence: A lot of issues come up using systemwide Ruby.
[13:43:13] tubuliferous: has joined #ruby
[13:43:21] WaqasA: has joined #ruby
[13:43:29] Arcaire: The issue is across Linux and BSD/OSX, and less so on Windows but Windows has its own issues with Ruby installation sometimes.
[13:43:34] shevy: it comes because of most distributions using the FHS so they can't have multiple versions at /usr/bin/ruby and so on
[13:43:56] Arcaire: I figured there was no real need to get into the technical details of why, but sure. :^)
[13:44:02] Arcaire: It's less so on Windows due to the fact that it's *usually* single user.
[13:44:43] impermanence: Here's the deal. I didn't know that all of these other ruby packages were installed on my centos box like rubygem-psych and a bunch of others. I'm just trying to figure out if upgrading to 2.3 will render all these other packages useless, basically.
[13:44:44] apeiros: I'd say that's the same for desktop linux
[13:44:45] Arcaire: But if you have two Ruby apps that need different versions of Ruby (lol), unless you're using something like chruby or RVM or whatever flavour of the month tool, you're in a tight spot.
[13:44:59] impermanence: I mean...what am I supposed to do...? Upgrade all of the others?
[13:45:12] impermanence: And the repos only offer ruby.x86_64 2.0 so WTF?
[13:45:23] Arcaire: Yes, that's why these tools exist.
[13:45:32] Arcaire: λ ruby --version
[13:45:32] Arcaire: ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
[13:45:51] Arcaire: λ /usr/bin/ruby -v
[13:45:51] Arcaire: ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]
[13:46:12] banister: has joined #ruby
[13:46:20] impermanence: I'm about to lose connection because I'm almost at work. I'll be back most likely. Thanks Arcaire. I ain't runnin' no Mac though unfort.
[13:46:30] Arcaire: I run pretty much everything so it's ok.
[13:46:36] Arcaire: wow they cut that close.
[13:47:05] mustmodify: Arcaire: Are you saying it's odd that you have two different apps that require different versions of Ruby? If so, were you thinking that all languages were forward compatible?
[13:47:20] shevy: Arcaire where is the other ruby installed btw? the first one
[13:47:31] Arcaire: shevy: λ which ruby
[13:47:36] Arcaire: alright thanks textual
[13:47:40] Arcaire: /Users/elliot/.rubies/ruby-2.3.0/bin/ruby
[13:47:57] Arcaire: I use ruby-install on most of my boxen.
[13:48:12] Arcaire: mustmodify: Generally when I run into things like this I'm surprised they're not on separate systems.
[13:48:20] Arcaire: mustmodify: Because the apps are big enough that upgrading is not worth the hassle.
[13:49:28] SilverKey: has joined #ruby
[13:49:32] bruno-: has joined #ruby
[13:50:07] tubuliferous: has joined #ruby
[13:50:33] whippythellama: has joined #ruby
[13:50:48] bluOxigen: has joined #ruby
[13:55:08] Carella: has joined #ruby
[13:55:11] freerobby: has joined #ruby
[13:57:44] agent_white: has joined #ruby
[13:58:28] william3: has joined #ruby
[13:58:52] alexherbo2: apeiros: is there a built-in method to detect if arguments are named?
[13:59:50] pawnbox: has joined #ruby
[13:59:51] Ox0dea: &ri Method#parameters alexherbo2
[13:59:51] `derpy: alexherbo2: http://ruby-doc.org/core-2.3.0/Method.html#method-i-parameters
[14:00:55] CloCkWeRX: has joined #ruby
[14:01:01] bruce_lee: has joined #ruby
[14:01:05] davedev24: has joined #ruby
[14:02:40] ibba: has joined #ruby
[14:02:40] pawnbox: has joined #ruby
[14:03:16] davedev24: has joined #ruby
[14:03:19] ibba: Hiya sysadmin looking at learning ruby to make life deautiful
[14:03:54] Arcaire: learn python instead
[14:03:57] ibba: what resources can i look into to learn ruby to make my sysadmin life easier
[14:04:01] davedev24: has joined #ruby
[14:04:18] Arcaire: ibba: Depends really, are you looking at sticking with general sysadmin-y tasks?
[14:04:24] tobiasvl: Arcaire: heresy!
[14:04:45] ibba: i here you Arcaire, with a lof of work "to be done" in puppet ppl tell me ruby is the way to go
[14:04:48] Arcaire: tobiasvl: I agree. Mixing snake case and camel case in the standard library alone should bring the death penalty to the language.
[14:04:52] Arcaire: ibba: Yeah.
[14:05:37] alexherbo2: `derpy: Thanks!
[14:05:43] shevy: ibba depends on your prior knowledge too. starting irb and work through https://pine.fm/LearnToProgram/chap_01.html - it should not take longer than an hour or so if you are concentrated
[14:06:01] ibba: yeah...something i can't do on shell i would like to look at Ruby. What ever task that's complicated to de done in shell i like to use Ruby
[14:06:25] ibba: You folks are amazing
[14:06:27] akem: has joined #ruby
[14:07:01] ibba: you folks don't sympathise any ruby books ?
[14:07:06] shevy: yeah I do so too, don't have a need to write shell scripts much at all anymore. I only keep them for legacy purposes mostly or when I am in weird restricted environments
[14:09:26] crime: has joined #ruby
[14:09:26] shevy: I used the pickaxe back then, not sure about other good books
[14:09:47] havenwood: ibba: The Well-Grounded Rubyist, Second Edition
[14:10:26] havenwood: ibba: http://ruby-community.com/pages/links
[14:11:00] crime: WGR is really good, and once you have a basic handle on ruby semantics, Sandi Metz POODR book is fantastic for learning how to actually organize
[14:11:24] shevy: the good old poodle book
[14:11:48] crime: yeah, I got introduced to it for the first time a few months ago, and it has blown my mind
[14:12:23] baweaver: has joined #ruby
[14:12:33] crime: the way that sandi is able to convey her wisdom so concisely is just amazing. you can just hear the years of experience in her words, I think my code has really grown from the whole ordeal
[14:13:23] ibba: havenwood: wellgrounded rubyist, published in 2009 isn't that dated ? or is that ruby syntax semantics in what i'm looking at ( sysadminy ) work will still be current in dated releases ?
[14:14:16] Ox0dea: ibba: The second edition is much more recent, but the first would suffice in a pinch.
[14:14:30] gigetoo: has joined #ruby
[14:16:06] ibba: 0x0dea, ty
[14:16:35] norc: Ox0dea: So I was thinking about how shadowing lvars could be created to really obfuscate the heck out of code.
[14:16:40] norc: *used I mean.
[14:17:05] ibba: ACTION slaps ibba around a bit with a large trout
[14:17:41] neha-: can anyone recommend an advanced ruby book
[14:17:55] Ox0dea: norc: With block parameters and such?
[14:18:13] norc: Ox0dea: Mmm no with dead code.
[14:18:30] Ox0dea: norc: I'm having trouble seeing it.
[14:18:37] r0b3rt: has joined #ruby
[14:18:53] Ox0dea: As soon as you find out it's dead, elide it and the shadows go with it, no?
[14:19:06] yude: has joined #ruby
[14:19:24] norc: Ox0dea: a; if false a = $1; a;
[14:19:39] norc: Ox0dea: The first will attempt a method invocation whereas the the second will not.
[14:20:03] Ox0dea: norc: Sure, but "obfuscate the heck out of" means something different to me by now. :P
[14:20:10] SilverKey: has joined #ruby
[14:20:18] norc: Ox0dea: Well, maybe Im still in the state of mind I was yesterday. :S
[14:20:24] shevy: Statler and Waldorf are at it again!
[14:20:31] norc: Thinking in terms of lexer time is still disgusting.
[14:20:40] Ox0dea: norc: Having to use lambdae for everything makes for some remarkably tortuous code.
[14:21:05] mrmortondk: has joined #ruby
[14:21:08] Ox0dea: I inadvertently gave myself deobfuscation practice material a while back.
[14:21:35] charliesome_: has joined #ruby
[14:22:08] norc: Ox0dea: Though in all fairness, the king of all obfuscation remains this: http://www.bellard.org/otcc/otcc.c
[14:22:41] smathy: has joined #ruby
[14:22:51] hxegon: has joined #ruby
[14:23:24] Ox0dea: norc: Aye, that's freakin' incredible.
[14:23:35] adaedra: > calloc(1,99999)
[14:24:43] norc: adaedra: Well the whole compiler needs some buffers... ;)
[14:25:27] crime: neha-: Eloquent Ruby is pretty advanced
[14:25:30] crime: some of it
[14:25:46] Ox0dea: Metaprogramming Ruby as well.
[14:25:54] zast: has joined #ruby
[14:25:57] mr_rich101: has joined #ruby
[14:26:08] MagePsycho: has joined #ruby
[14:27:06] Xeago: has joined #ruby
[14:29:35] tvon: has joined #ruby
[14:31:41] Ropeney: has joined #ruby
[14:32:03] rbr: has joined #ruby
[14:32:41] soxet: has joined #ruby
[14:32:41] neha-: thanks crime and Ox0dea
[14:33:57] danman: has joined #ruby
[14:34:58] ChiefAlexander: has joined #ruby
[14:36:43] gooooodroot: has joined #ruby
[14:37:49] newjersey: has joined #ruby
[14:40:16] diegoviola: has joined #ruby
[14:40:21] akem: has joined #ruby
[14:46:11] hosttor: has joined #ruby
[14:47:05] diegoaguilar: has joined #ruby
[14:47:42] charliesome: has joined #ruby
[14:48:42] GodFather: has joined #ruby
[14:48:53] mrgrieves: has joined #ruby
[14:49:27] last_staff: has joined #ruby
[14:51:14] blackmesa: has joined #ruby
[14:52:59] william3: has joined #ruby
[14:54:23] dhollinger: has joined #ruby
[14:54:38] isxek: has joined #ruby
[14:54:39] Devalo: has joined #ruby
[14:54:47] stardiviner: has joined #ruby
[14:55:43] chipotle: has joined #ruby
[14:56:37] DenSchub: has joined #ruby
[14:57:34] siaW: has joined #ruby
[14:58:15] troulouliou_div2: has joined #ruby
[14:58:39] tvw: has joined #ruby
[15:07:13] i: has joined #ruby
[15:09:03] dopie: has joined #ruby
[15:09:19] agit0: has joined #ruby
[15:09:38] yo61: has joined #ruby
[15:09:42] bronson: has joined #ruby
[15:12:57] ixti: has joined #ruby
[15:14:09] chouhoulis: has joined #ruby
[15:14:58] davedev24: has joined #ruby
[15:16:25] chouhoul_: has joined #ruby
[15:18:38] chridal: has joined #ruby
[15:19:17] freerobby: has joined #ruby
[15:19:40] freerobby: has joined #ruby
[15:20:23] bruno-: has joined #ruby
[15:21:13] bluOxigen: has joined #ruby
[15:21:21] newjersey: has joined #ruby
[15:21:25] freerobby: has joined #ruby
[15:22:55] aegis3121: has joined #ruby
[15:23:09] newjersey: has joined #ruby
[15:23:18] davedev24: has joined #ruby
[15:23:35] Ropeney: has joined #ruby
[15:23:45] mlakewood: has joined #ruby
[15:24:06] tubuliferous: has joined #ruby
[15:25:10] infernix: has joined #ruby
[15:33:12] rubeegginor: has joined #ruby
[15:33:54] x77686d: has joined #ruby
[15:34:34] ibba: what would be the tooling to start ruby on linux/unix ? emacs/vi customisations some modules ?
[15:35:22] chouhoulis: has joined #ruby
[15:35:48] tvon: ibba: I don't understand the question
[15:35:54] william3: has joined #ruby
[15:36:42] polishdub: has joined #ruby
[15:36:51] smathy: ibba, both of those editors have decent ruby support/plugins, just google for whichever is your preferred editor. Then the other thing that will make your life easier is to use a version manager to actually install ruby itself, take a look at chruby and it's installation helpers ruby-install or ruby-build
[15:37:20] smathy: None of those are essential, just "make life easier" things.
[15:37:27] ibba: ty smathy
[15:37:54] amclain: has joined #ruby
[15:38:54] rubeegginor: Hi, learning ruby here :) - I'm curious to know if there's a more elegant/short way to do what this code is doing? https://gist.github.com/anonymous/ff615f71bfbf9822732096e2472e3fbb
[15:39:18] rubeegginor: (except my typo for 'b'...sorry)
[15:39:44] dhollinger: has joined #ruby
[15:40:49] william3: has joined #ruby
[15:41:41] rubeegginor: oh actually I can do that too: https://gist.github.com/anonymous/b745816ca7df2a4a92e3f59cae328108
[15:42:46] dionysus69: has joined #ruby
[15:43:02] kareeoleez: has joined #ruby
[15:43:04] smathy: rubeegginor, yeah, and you can drop the arg to split and you don't have to chomp.
[15:43:20] noService: has joined #ruby
[15:44:58] lxsameer: has joined #ruby
[15:45:08] marcdel: has joined #ruby
[15:46:05] rht: has joined #ruby
[15:46:09] szulak: has joined #ruby
[15:46:13] GodFather: has joined #ruby
[15:47:20] shevy: ibba just the brain tool - and syntax highlighting helps too
[15:47:27] rubeegginor: smathy: what do you mean by dropping the arg to split? The input is a string like that one "2 3", I'm forced to split, no?
[15:48:29] swills: has joined #ruby
[15:48:39] swills: has joined #ruby
[15:50:26] crime: ibba, ruby syntax is very simple. you can easily use any text editor that you feel comfortable with.
[15:50:47] william3: has joined #ruby
[15:50:58] mfb2_: has joined #ruby
[15:52:21] smathy: rubeegginor, the argument that you're passing to the split method.
[15:52:30] mfb2: has joined #ruby
[15:52:41] smathy: rubeegginor, ie. this will do what you want: gets.split.map &:to_i
[15:52:47] johnmilton: has joined #ruby
[15:53:19] smathy: rubeegginor, split's default argument is " "
[15:53:33] rubeegginor: oh I see smathy, thanks :)
[15:54:10] baweaver: has joined #ruby
[15:54:42] martxel: has joined #ruby
[15:56:29] RegulationD: has joined #ruby
[15:57:29] aswen: has joined #ruby
[15:58:48] bronson: has joined #ruby
[15:58:52] bradleyprice: has joined #ruby
[16:00:15] Pupeno: has joined #ruby
[16:00:15] Pupeno: has joined #ruby
[16:00:27] pawnbox: has joined #ruby
[16:00:33] hxegon: has joined #ruby
[16:02:24] TomyLobo: has joined #ruby
[16:02:49] VeryBewitching: has joined #ruby
[16:03:15] shinnya: has joined #ruby
[16:03:57] martxel: has left #ruby: ("Leaving")
[16:04:41] smathy: rubeegginor, np.
[16:04:52] iwmrby: has joined #ruby
[16:05:17] bradleyprice: has joined #ruby
[16:05:56] pawnbox: has joined #ruby
[16:06:17] Mia: has joined #ruby
[16:06:17] Mia: has joined #ruby
[16:06:32] Spami: has joined #ruby
[16:06:47] rbr: has joined #ruby
[16:07:34] ayonkhan: has joined #ruby
[16:08:25] synthroid: has joined #ruby
[16:09:04] allcentury: has joined #ruby
[16:09:35] nando293921: has joined #ruby
[16:09:53] crime: so I'm fiddling with 2.3, and if I do "something&.split("")" I get a no-method error. I thought the lonely operator was supposed to fix that?
[16:10:06] crime: something would be nil in that scenario, so shouldnt it just return nil?
[16:10:13] evidex: has joined #ruby
[16:10:14] mrmortondk: has joined #ruby
[16:10:28] smathy: crime, nope, that's not what the lonely op fixes.
[16:10:49] crime: so how do I do whatever that is?
[16:11:09] tubuliferous: has joined #ruby
[16:11:27] brent__: has joined #ruby
[16:11:38] smathy: crime, don't call non-existent methods, use respond_to?, or rescue that exception.
[16:12:10] crime: ok, so then what does &. actually do?
[16:13:06] nealix: has joined #ruby
[16:13:39] devbug: has joined #ruby
[16:14:11] crime: its something && something.split, got it. didnt realize
[16:14:19] crime: so if its nil it just stops, ok
[16:17:05] skade: has joined #ruby
[16:17:36] that2: has joined #ruby
[16:18:04] that2: has left #ruby: ()
[16:18:46] djbkd: has joined #ruby
[16:19:09] AnoHito_: has joined #ruby
[16:19:44] monoprotic: has joined #ruby
[16:19:44] monoprotic: has joined #ruby
[16:19:58] hays_: has joined #ruby
[16:20:00] davedev24: has joined #ruby
[16:20:20] zzak: [travis-ci, irc.freenode.net] The build was broken. by @nagachika: See https://travis-ci.org/ruby/ruby/builds/125060185
[16:20:46] mustmodify: has left #ruby: ()
[16:20:59] PedramT: has joined #ruby
[16:25:47] Axy: has joined #ruby
[16:25:49] M-shine: has joined #ruby
[16:26:49] treehug88: has joined #ruby
[16:26:56] roger_rabbit: has joined #ruby
[16:26:57] M-Kodo: has joined #ruby
[16:27:39] Yiota: has joined #ruby
[16:27:41] PedramT: has joined #ruby
[16:27:49] siaW: has joined #ruby
[16:29:13] Yiota: has joined #ruby
[16:30:45] mikecmpbll: has joined #ruby
[16:31:22] Cohedrin: has joined #ruby
[16:33:11] dhollinger: has joined #ruby
[16:34:42] symm-: has joined #ruby
[16:35:36] Cohedrin_: has joined #ruby
[16:35:43] ramfjord: has joined #ruby
[16:36:30] IrishGringo: has joined #ruby
[16:36:40] cdg: has joined #ruby
[16:37:08] sepp2k: has joined #ruby
[16:40:19] GodFather: has joined #ruby
[16:41:29] moeabdol: has joined #ruby
[16:44:43] Rodya_: has joined #ruby
[16:45:22] johnmilton: has joined #ruby
[16:45:43] nofxx: has joined #ruby
[16:47:10] kareeoleez: has joined #ruby
[16:47:46] ruby-lang418: has joined #ruby
[16:48:31] elifoster: has joined #ruby
[16:48:45] Guest38: has joined #ruby
[16:49:08] ruby-lang418: hi there. Ruby newbie here
[16:49:25] skade: has joined #ruby
[16:50:12] MagePsycho: has joined #ruby
[16:51:56] goodroot: has joined #ruby
[16:52:23] moeabdol: has joined #ruby
[16:54:18] PedramT: has joined #ruby
[16:54:38] Carella: has joined #ruby
[16:55:03] bronson: has joined #ruby
[16:56:23] roelof: has joined #ruby
[16:56:30] IrishGringo: has joined #ruby
[16:56:36] dopie: has joined #ruby
[16:56:40] roelof: Hello, Im trying to do this exercise : https://rubymonk.com/learning/books/1-ruby-primer/chapters/10-hashes-in-ruby/lessons/47-hashes-in-and-out#solution3361
[16:57:13] roelof: Now the answer is this : http://lpaste.net/161243
[16:57:25] roelof: but where is the :zig part coming from ?
[16:58:13] smathy: roelof, who said that was the answer?
[16:58:36] shevy: roelof just a symbol that he used at the "Example Code:" part
[16:58:53] ericindc: has joined #ruby
[16:59:18] tristanp: has joined #ruby
[16:59:19] roelof: oke, so irl zig is defined somewhere ? , shevy
[16:59:22] shevy: roelof in this case, it actually equals to nil
[16:59:29] firstdayonthejob: has joined #ruby
[16:59:30] karapetyan: has joined #ruby
[16:59:40] shevy: no, the hash does not have a key like that - I have no idea why he picked that example
[16:59:53] mfb2: has joined #ruby
[17:00:10] shevy: was there no explanation in that tutorial how hashes work?
[17:00:29] davedev24: has joined #ruby
[17:00:33] freerobby: has joined #ruby
[17:00:34] smathy: roelof, he's showing the default value function of a ruby hash, see the second last sentence preceding that example.
[17:01:13] smathy: (why you took his example and put it in a separate paste for your question thereby destroying all context, I'll never understand)
[17:01:19] roelof: oke, so :zig contains what the hash.new provides , in the first there is only hash.new so :zig is nill. in the second one it's Hash.new("brown") so :zig is "brown"
[17:02:24] roelof: smathy: sorry, so the next time I schould paste the whole chapter part ?
[17:02:43] smathy: roelof, it's not really right to say that :zig contains anything, it doesn't exist in the hash, no keys do.
[17:03:12] william3: has joined #ruby
[17:03:13] shevy: the RUN functionality is cool though
[17:03:54] MagePsycho: has joined #ruby
[17:04:00] smathy: roelof, don't be a smart ass, but you took the example out of context, instead you should have just pasted the first link and explained where the example was.
[17:04:14] PedramT: has joined #ruby
[17:04:20] roelof: oke, I will do that the next time
[17:04:40] smathy: roelof, you understand the default value thing now?
[17:05:17] roelof: smathy: yes, I do
[17:05:53] Silox|: has joined #ruby
[17:06:15] tobiasvl: smathy: did you mean "not to be a smart ass"?
[17:06:24] tobiasvl: carries a different meaning than what you wrote ;)
[17:06:36] smathy: tobiasvl, no, I meant what I said.
[17:06:42] tobiasvl: ah, all right.
[17:06:43] smathy: roelof, cool, what's really mind bending is that you can provide a proc as well, and that proc can create a hash on the fly.
[17:06:45] patrick_star_2: has joined #ruby
[17:06:50] hakunin: has joined #ruby
[17:06:59] shevy: roelof has earned a beer now
[17:07:02] karmatr0n: has joined #ruby
[17:07:27] roelof: smathy: I hope I wil learn that in the ruby monk course later
[17:07:33] kasisnu: has joined #ruby
[17:07:53] pawnbox: has joined #ruby
[17:07:59] roelof: ACTION is now drunk. He is not used to alcohol 
[17:08:14] mfb2: has joined #ruby
[17:08:24] smathy: roelof, I hope so too, but I'm not sure it does. Enjoy.
[17:08:37] aegis3121: has joined #ruby
[17:09:39] pawnbox: has joined #ruby
[17:10:09] roelof: I m doing to ruby monk another time. The first time I did it too fast. After that I think I will do the codingame challenges or the codewars challenges
[17:10:45] UlisesG: has joined #ruby
[17:11:15] naftilos76: has joined #ruby
[17:13:10] bluOxigen: has joined #ruby
[17:13:21] monoprotic: has joined #ruby
[17:13:21] monoprotic: has joined #ruby
[17:13:46] tvon[laptop]: has joined #ruby
[17:14:38] theRealAlexz: has joined #ruby
[17:14:38] valeri_ufo: has joined #ruby
[17:14:38] theRealAlexz: has joined #ruby
[17:15:04] gigetoo: has joined #ruby
[17:15:15] agent_white: has joined #ruby
[17:15:37] ltp: has joined #ruby
[17:15:55] Devalo: has joined #ruby
[17:16:17] DoubleMalt: has joined #ruby
[17:16:20] _djbkd: has joined #ruby
[17:16:39] Waqas: has joined #ruby
[17:18:40] ChiefAlexander: has joined #ruby
[17:19:03] spacemud: has joined #ruby
[17:19:07] Junaos: has joined #ruby
[17:19:26] priodev: has joined #ruby
[17:19:32] fragtastic: has joined #ruby
[17:20:28] Amnez777: has joined #ruby
[17:20:34] Cohedrin: has joined #ruby
[17:20:36] pietr0: has joined #ruby
[17:20:51] Fridtjof: has joined #ruby
[17:21:15] JagaJaga: has joined #ruby
[17:21:27] hobodave: has joined #ruby
[17:21:42] papercode: has joined #ruby
[17:21:49] marienz: has joined #ruby
[17:22:05] Sou|cutter: has joined #ruby
[17:22:12] hays: has joined #ruby
[17:23:37] dsimon: has joined #ruby
[17:23:40] JesseH: has joined #ruby
[17:24:33] benlieb: has joined #ruby
[17:25:07] n008f4g_: has joined #ruby
[17:26:12] Fernando-Basso: roelof: What about using anki to help you review?
[17:26:29] baweaver: has joined #ruby
[17:26:45] roelof: Fernando-Basso: what or who is anki ?
[17:27:05] SilverKey: has joined #ruby
[17:27:50] Xiti: has joined #ruby
[17:27:57] Fernando-Basso: It is a spaced repetion software that is intended to make you review something when you are about to forget about it.
[17:29:21] roelof: Fernando-Basso: you mean this one :https://ankiweb.net/shared/info/664741051 ?
[17:30:01] malconis: has joined #ruby
[17:31:12] Fernando-Basso: I have started and stopped using it about 4 times already. It helps for me.
[17:31:14] Es0teric: has joined #ruby
[17:31:47] Fernando-Basso: Yeah, but other people's cards is not what I advise.
[17:32:18] PedramT: has joined #ruby
[17:32:23] diegoaguilar: has joined #ruby
[17:32:52] Fernando-Basso: And this is off-topic here anyway. I just wanted to tell you this software exists. See for your self. There are some posts on the web about using anki to help one memorize (you learn something, and only then you make some anki cards for reviewing what you learned)
[17:33:07] pietr0: has joined #ruby
[17:33:42] Fernando-Basso: http://www.jackkinsella.ie/2011/12/05/janki-method.html and https://sivers.org/srs if you want to read some more (there is more on th web)
[17:33:50] tvon: has joined #ruby
[17:35:25] cmckee: has joined #ruby
[17:35:46] Fernando-Basso: One of my cards says "get the last char of a string", and the answer is: (substring str (- (string-length str) 1))
[17:36:50] Fernando-Basso: https://plus.google.com/+FernandoBasso/posts/A91H3xmsHp7
[17:37:24] devbug: has joined #ruby
[17:37:35] RegulationD: has joined #ruby
[17:38:40] ramfjord: has joined #ruby
[17:40:11] mdw: has joined #ruby
[17:41:00] mdw: has joined #ruby
[17:41:04] MagePsycho: has joined #ruby
[17:44:01] karapetyan: has joined #ruby
[17:44:05] hxegon: has joined #ruby
[17:45:57] karapetyan: has joined #ruby
[17:46:13] roelof: Fernando-Basso : thanks for the tip
[17:46:37] gizmore: has joined #ruby
[17:49:16] replay: has joined #ruby
[17:49:26] Fernando-Basso: roelof: If you ever adopt this approach, remember this one thing: spaced repetition is to help remember small details, not to "learn". Learning happens before making review notes.
[17:50:06] karapetyan: has joined #ruby
[17:50:57] mfb2_: has joined #ruby
[17:52:12] mfb2_: has joined #ruby
[17:53:08] [Butch]: has joined #ruby
[17:55:46] crime: fernando is one a them smart people
[17:57:50] baweaver: has joined #ruby
[17:58:38] ledestin: has joined #ruby
[17:58:40] karapetyan: has joined #ruby
[17:59:20] poerror: has joined #ruby
[18:04:03] mfb2: has joined #ruby
[18:05:09] agit0: has joined #ruby
[18:10:32] SilverKey: has joined #ruby
[18:10:34] SCHAAP137: has joined #ruby
[18:10:50] gregf: has joined #ruby
[18:10:58] Dimik: has joined #ruby
[18:11:26] eam: has anyone built native ruby mri for android? I know about ruboto, but I want something for non-android apps
[18:12:14] karapetyan: has joined #ruby
[18:13:06] antgel: has joined #ruby
[18:14:53] flashpoint9: has joined #ruby
[18:15:10] tubbo: eam: you want ruby mri for android so you can make non-android apps?
[18:15:38] flashpoint9: has joined #ruby
[18:16:13] joneshf-laptop: has joined #ruby
[18:16:14] smathy: eam, http://www.rubymotion.com/ ?
[18:16:31] r0b3rt: has joined #ruby
[18:16:55] baweaver: well, jRuby there
[18:17:02] jhass: tubbo: of course, don't you use your old android has homeserver? :P
[18:18:02] dmr8: has joined #ruby
[18:18:23] sphex: has joined #ruby
[18:19:32] agentmeerkat: has joined #ruby
[18:20:23] aegis3121: has joined #ruby
[18:20:49] blackmesa: has joined #ruby
[18:22:09] devbug: has joined #ruby
[18:22:49] Asher: has joined #ruby
[18:25:40] hakunin: has joined #ruby
[18:26:18] eam: tubbo: I want to write some system scripts
[18:26:54] mikecmpbll: has joined #ruby
[18:27:23] codecop: has joined #ruby
[18:27:25] codecop_: has joined #ruby
[18:27:30] eam: stuff like interacting with hardware for a testing framework
[18:27:38] poerror: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[18:27:43] flashpoint9: has joined #ruby
[18:29:33] yfeldblum: has joined #ruby
[18:30:38] darkxploit: has joined #ruby
[18:30:56] snowy: has joined #ruby
[18:31:25] mfb2: has joined #ruby
[18:31:46] moeabdol: has joined #ruby
[18:32:10] navneet: has joined #ruby
[18:33:47] raeoks: has joined #ruby
[18:33:52] darkxploit: has joined #ruby
[18:34:00] shevy: eam goes hardcore mode - beastmode!
[18:34:14] navneet_: has joined #ruby
[18:37:14] Yeomra: has joined #ruby
[18:37:18] mdw: has joined #ruby
[18:37:59] diegoaguilar: has joined #ruby
[18:38:05] darkxploit: has joined #ruby
[18:39:33] diego1: has joined #ruby
[18:41:34] shevy: hmm I just saw this in code written by someone else: @game_pause ^= true
[18:41:46] shevy: what does that mean?
[18:42:44] Hanmac: shevy: it does flipflop the boolean value
[18:42:59] Hanmac: it does set true to false, and false to true
[18:43:07] hxegon: has joined #ruby
[18:43:09] apeiros: shevy: check TrueClass#^ (and FalseClass#^), it's boolean XOR
[18:43:19] shevy: hmm weird
[18:43:24] devbug: has joined #ruby
[18:44:03] shevy: http://ruby-doc.org/core-2.3.0/TrueClass.html#method-i-5E
[18:46:31] SilverKey: has joined #ruby
[18:47:05] tobiasvl: why not just !@game_pause
[18:47:50] jhass: I guess @game_pause = !@game_pause was considered more verbose
[18:48:11] tobiasvl: verbosity is not always a bad thing :P
[18:48:14] jhass: or the author didn't feel smart enough with it
[18:48:25] gizmore: hmmm weird bug: ... @arm_gcache[other.table_name] => Exception no [] for nil .... but the second call works Oo
[18:48:42] gizmore: like the same row twice works... but the first call gives an exception
[18:49:02] jhass: gizmore: try to write a minimal reproducer, this can have a myriad of reasons
[18:49:10] thejamespinto: has joined #ruby
[18:49:10] shevy: tobiasvl yeah, I am so used to the ! there too
[18:49:28] gizmore: jhass: would you like to clone and run spec that halts exactly there?
[18:49:29] Cohedrin_: has joined #ruby
[18:49:36] karmatr0n: has joined #ruby
[18:49:36] shevy: some of this code is in old ruby-gtk, I have not even noted down who wrote this (was not me!)
[18:50:12] jhass: gizmore: not sure, I suspect some > 1kloc codebase involved
[18:50:40] gizmore: yeah... could be the reason it is on self.inherited ?
[18:51:07] jhass: trying to reduce it will also have a high likelihood of you understanding the issue afterwards
[18:51:25] jhass: with the current amount of context, sure why not
[18:51:44] antgel: has joined #ruby
[18:52:00] jhass: (or even in the process of writing the reproducer)
[18:52:37] anik120: has joined #ruby
[18:53:20] Dry_Lips: has joined #ruby
[18:53:20] Dry_Lips: has joined #ruby
[18:53:47] jhill_: has joined #ruby
[18:53:52] tubuliferous: has joined #ruby
[18:54:31] PedramT: has joined #ruby
[18:55:04] baweaver: has joined #ruby
[18:56:37] Fernando-Basso: crime: No, I am not.
[18:57:00] crime: u cant fool me
[18:58:29] jhack: has joined #ruby
[18:58:43] Fernando-Basso: That was cute. ♥
[18:59:27] jackjackdripper: has joined #ruby
[18:59:32] jackjackdripper1: has joined #ruby
[18:59:36] darkxploit: has joined #ruby
[19:00:30] Papierkorb: I'm about to write a spec with Rack::Test. Is that a 'feature' test?
[19:01:36] knowtheory: has joined #ruby
[19:01:37] akahn: has joined #ruby
[19:01:48] hayden_: has joined #ruby
[19:01:50] ckrailo: has joined #ruby
[19:01:56] chouhoulis: has joined #ruby
[19:03:30] DukeDave: has joined #ruby
[19:03:39] crime: So I wrote some ruby to run markov chains on characters in apt package names, here are some potential names for your next APT package: http://pastebin.com/qLjqmjQT
[19:03:41] ruby[bot]: crime: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/4fdacc5aa42d10687088b39162c1e279
[19:03:56] ruby[bot]: crime: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[19:04:38] jhass: meh, should've stripped trailing numbers or at least throw out candidates with \d+\.\d+ in the middle
[19:04:55] tubuliferous: has joined #ruby
[19:04:56] jackjackdripper: has joined #ruby
[19:04:59] ItSANgo_: has joined #ruby
[19:05:38] crime: jhass, I left the noise actually specifically to disappoint you
[19:05:48] jhass: appreciated
[19:05:53] crime: thats the level of detail that I consider in order to foster our relationship
[19:05:55] siaW: has joined #ruby
[19:06:04] err_ok: has joined #ruby
[19:07:10] Fernando-Basso: crime: It is all over now. I thought you loved me, not jhass. I hate you.
[19:09:01] crime: how can I write ruby code to this noose tonight? my life has lost meaning just now
[19:09:13] crime: to tie the noose, I meant
[19:09:51] Devalo: has joined #ruby
[19:11:18] yude: has joined #ruby
[19:11:23] kasisnu: has joined #ruby
[19:11:34] tvon: has joined #ruby
[19:13:48] skade: has joined #ruby
[19:15:57] baweaver: has joined #ruby
[19:16:06] tax: has joined #ruby
[19:18:02] troulouliou_div2: has joined #ruby
[19:19:07] crankharder: has joined #ruby
[19:19:17] _djbkd: has joined #ruby
[19:19:48] PedramT: has joined #ruby
[19:22:09] moeabdol: has joined #ruby
[19:25:03] mfb2: has joined #ruby
[19:25:17] chouhoulis: has joined #ruby
[19:25:46] auxbuss: has joined #ruby
[19:25:57] mikecmpbll: has joined #ruby
[19:27:01] `tim`: has joined #ruby
[19:27:18] ChiefAlexander: has joined #ruby
[19:31:35] Cohedrin: has joined #ruby
[19:31:49] crime: if I compiled ruby from source, how can I uninstall it?
[19:32:23] crime: nvm i am stupid
[19:32:23] jenrzzz: has joined #ruby
[19:32:24] jenrzzz: has joined #ruby
[19:33:11] yfeldblum: has joined #ruby
[19:33:20] Fernando-Basso: nvm is for nodejs. rvm is for ruby. :D
[19:33:36] crime: i'm using ruby-install right this second actually
[19:33:39] crime: is rvm better?
[19:33:51] shevy: I think havenwood knows the answer to this!
[19:34:11] MagePsycho: has joined #ruby
[19:34:18] havenwood: ACTION goes mute
[19:34:57] Coldblackice_: has joined #ruby
[19:35:01] shevy: crime we will get an answer to this epic duel
[19:35:33] crime: you dont have to, i was just wondering if one of them was like obviously vastly better
[19:35:42] crime: if they're similar i'm sure i'll be fine
[19:35:56] bradleyprice: has joined #ruby
[19:36:09] mfb2: has joined #ruby
[19:37:17] devbug: has joined #ruby
[19:38:01] gmas: has joined #ruby
[19:38:04] smathy: crime, one's not obviously, vastly better - although one is obviously, vastly worse, just that not everyone seems to agree ;)
[19:38:17] crime: which one is worse?
[19:38:43] crime: oh. sucks for them, i suppose
[19:38:58] smathy: They have a loyal following nonetheless.
[19:40:45] bradleyp_: has joined #ruby
[19:41:19] Rodya_: has joined #ruby
[19:51:31] Es0teric: has joined #ruby
[19:51:45] lomex: has joined #ruby
[19:53:34] jenrzzz: has joined #ruby
[19:53:35] jenrzzz: has joined #ruby
[19:54:16] Rodya_: has joined #ruby
[19:55:18] Fernando-Basso: Damn open source options. Life is getting harder and harder because all of the choices we have to make.
[19:55:27] tobiasvl: decision fatigue
[19:55:32] Fernando-Basso: I wanted one. Just that.
[19:56:11] apeiros: Fernando-Basso: I can sell you a magical decision coin
[19:56:28] smathy: Fernando-Basso, I have one two, choose mine instead.
[19:57:02] apeiros: I can sell you a lesser coin to decide which coin to buy
[19:57:08] smathy: ACTION too
[19:57:42] smathy: ...in fact I have hundreds of coins to choose from.
[19:57:46] Fernando-Basso: According to "the paradox of choice" (ted talk) more options tend to make people unhappy and undecisive. It certainly happens to me.
[19:58:28] Fernando-Basso: Should I use vim or emacs? Atom, sublime brackets?
[19:58:29] crime: ruby has a method for that, guys
[19:58:31] smathy: Seems to be something that affects people who struggle to make decisions, maybe people without a good handle on their hierarchy of values.
[19:58:42] Fernando-Basso: Debian, fedora, ubuntu, mint, atch linux, gentoo?
[19:58:53] apeiros: crime: stop ruining my business!
[19:58:55] crime: I code in nano, you guys need to step it up
[19:58:58] smathy: I have no problem with choices, the more the merrier, the right choice always seems pretty clear to me.
[19:59:08] minimalism: has joined #ruby
[19:59:14] crime: i'd write ruby in punchcards if there were any
[19:59:28] crime: damn young people, where's my beard
[19:59:54] smathy: That's more something you'd find as a CPAN module.
[20:00:12] Hanmac: crime: what about using stone cycles for that? XD
[20:00:27] blackmesa: has joined #ruby
[20:00:46] Fernando-Basso: smathy: How do you handle/organize your hierarchy of values?
[20:00:51] crime: I loved that the left-pad situation happened to the kind of people that talk shit about CPAN
[20:00:58] crime: absolutely glorious
[20:01:32] Fernando-Basso: That is another situation where the plethora of options was bad from a certain point of view.
[20:02:07] Fernando-Basso: I took a look at some npm "modules"... Too many of them are a single, small and simple function.
[20:02:11] _djbkd: has joined #ruby
[20:02:39] shevy: because javascript itself lacks simple functions
[20:02:47] Fernando-Basso: "I have 43 modules published on npm. I'm the guy."
[20:03:11] Fernando-Basso: Is that the reason people write so much modules?
[20:03:21] flashpoint9: has joined #ruby
[20:03:29] smathy: Fernando-Basso, I was lucky in that most of it was good to begin with, as a result of my upbringing, genetics, whatever - the areas that were in conflict I spent introspecting on and making conscious choices about the direction I wanted to go, the person I wanted to be, and I contemplated a lot of things, especially different philosophies, in order to make decisions about what was important to me. This materializes in decisions as mundane as emacs vs
[20:03:29] smathy: vim: I value consistency and predictability over extensibility and customization, so I choose vim.
[20:03:31] shevy: small is beautiful
[20:03:54] shevy: you can customize vim!!! you can even play tetris in it
[20:04:04] mfb2: has joined #ruby
[20:04:27] smathy: shevy, I know, but its customization isn't close to emacs's - VimScript is a clusterfuck.
[20:04:50] hobodave_: has joined #ruby
[20:04:52] jhass: ACTION only plays tetris in sed
[20:04:55] joneshf-laptop: has joined #ruby
[20:05:07] smathy: shevy, your comment itself is funny because it suggests that my decision was based on some absolute, like that I had said "vim has no customization" - I didn't.
[20:05:29] smathy: shevy, decisions are often about evaluating strengths not absolutes.
[20:06:00] crime: neovim will run on lua, p rad
[20:06:07] shevy: jhass is that really possible???
[20:06:10] crime: ruco already runs on ruby tho
[20:06:12] smathy: Both in the attributes of what you're evaluating but also in your own value system. I *do* value extensibility, just that I value consistency and predictability more.
[20:06:51] crime: shevy: https://www.youtube.com/watch?v=0TFdHRIiuqc
[20:07:15] jhass: shevy: yes
[20:07:21] Don_John: has joined #ruby
[20:07:38] jhass: shevy: https://github.com/uuner/sedtris
[20:08:00] shevy: I have to try this
[20:08:33] pawnbox: has joined #ruby
[20:08:40] hakunin: has joined #ruby
[20:10:08] northrup: has joined #ruby
[20:11:33] Emmanuel_Chanel: has joined #ruby
[20:14:45] dionysus69: has joined #ruby
[20:15:04] crime: does re.c usually take 15min+ to compile?
[20:16:33] shevy: amazingly sedtris works very well
[20:17:22] anik120: has joined #ruby
[20:21:33] `tim`: has joined #ruby
[20:22:46] crime: I'm more of a nethack kinda guy
[20:24:15] shevy: typical hacker crime
[20:24:27] devbug: has joined #ruby
[20:25:51] tAn: has joined #ruby
[20:26:18] PedramT: has joined #ruby
[20:27:48] agentmeerkat: has joined #ruby
[20:27:52] crime: when i get old im gonna have one of those big white beards and write code on a blackboard and stuff
[20:30:24] LastWhisper____: has joined #ruby
[20:30:53] moei: has joined #ruby
[20:30:55] LastWhisper____: has joined #ruby
[20:31:03] jenrzzz: has joined #ruby
[20:32:58] LastWhisper____: has joined #ruby
[20:33:35] shevy: santa claus!
[20:33:55] bradleyprice: has joined #ruby
[20:36:56] Regulati_: has joined #ruby
[20:37:56] devbug: has joined #ruby
[20:40:33] symm-: has joined #ruby
[20:40:46] babblebre: has joined #ruby
[20:41:54] marr: has joined #ruby
[20:42:28] emilford: has joined #ruby
[20:43:25] skade: has joined #ruby
[20:45:24] BTRRY: has joined #ruby
[20:47:22] [Butch]: has joined #ruby
[20:48:16] mlakewood: has joined #ruby
[20:48:55] william3: has joined #ruby
[20:48:55] newjersey: has joined #ruby
[20:49:22] crime: more like santa guard clause, ho ho ho
[20:49:48] dionysus69: has joined #ruby
[20:51:53] diegoaguilar: has joined #ruby
[20:52:20] ur5us: has joined #ruby
[20:52:35] diegoaguilar: has joined #ruby
[20:53:35] daguilaraguilar: has joined #ruby
[20:53:55] Moosashi: has joined #ruby
[20:54:40] yfeldblum: has joined #ruby
[20:58:12] crime: I'm running my markov chain thing on gem names now, they are coming out much worse
[20:59:19] dionysus69: has joined #ruby
[21:02:29] mfb2: has joined #ruby
[21:03:29] blackmesa: has joined #ruby
[21:04:31] lomex: has joined #ruby
[21:05:35] PedramT: has joined #ruby
[21:07:05] davedev24: has joined #ruby
[21:07:39] Rodya_: has joined #ruby
[21:08:07] Spami: has joined #ruby
[21:09:48] jenrzzz: has joined #ruby
[21:11:18] FooMunki: has joined #ruby
[21:11:29] Devalo: has joined #ruby
[21:14:03] wuyin: has joined #ruby
[21:15:07] musl: has joined #ruby
[21:16:21] rkazak: has joined #ruby
[21:17:05] Spami: has joined #ruby
[21:23:10] Madplatypus: has joined #ruby
[21:23:18] devbug: has joined #ruby
[21:25:11] blackgoat: has joined #ruby
[21:25:24] gnufied: has joined #ruby
[21:26:15] Yiota: has joined #ruby
[21:27:56] blackmesa: has joined #ruby
[21:29:37] jottr: has joined #ruby
[21:30:47] IrishGringo: has joined #ruby
[21:35:34] crime: https://gist.github.com/anonymous/02137a640424c99f6e3d0864186c4cff
[21:35:43] crime: gem names are terrible, apparently
[21:36:13] Dimik1: has joined #ruby
[21:40:50] weaksauce: you might want to break up the chains at the _ for input
[21:41:04] jenrzzz: has joined #ruby
[21:41:04] jenrzzz: has joined #ruby
[21:41:05] kareeoleez: has joined #ruby
[21:43:16] crime: it was done by character for this one and apt one
[21:44:05] crime: split at " " and "\n"
[21:44:36] crime: and then just using n=2 cons cells to represent transitions
[21:47:51] mfb2: has joined #ruby
[21:49:10] pawnbox: has joined #ruby
[21:49:50] CausaMortis: has joined #ruby
[21:51:07] aegis3121: has joined #ruby
[21:52:28] rbennacer: has joined #ruby
[21:53:16] rbennacer: has joined #ruby
[21:54:21] rbennacer: has joined #ruby
[21:55:09] threh: has joined #ruby
[21:55:15] rbennacer: has joined #ruby
[21:56:30] rbennacer: has joined #ruby
[21:56:31] ramfjord: has joined #ruby
[21:57:24] Majost: has joined #ruby
[21:57:25] rbennacer: has joined #ruby
[21:57:33] GodFather: has joined #ruby
[21:58:33] dopie: has joined #ruby
[21:59:16] Rodya__: has joined #ruby
[21:59:17] bkxd: has joined #ruby
[21:59:35] kareeoleez: has joined #ruby
[22:00:55] x77686d: has joined #ruby
[22:02:18] Xeago: has joined #ruby
[22:03:47] Contigi: has joined #ruby
[22:05:36] Es0teric: has joined #ruby
[22:07:36] Xeago: has joined #ruby
[22:09:30] kareeoleez: has joined #ruby
[22:09:50] Yiota: has joined #ruby
[22:11:26] mfb2: has joined #ruby
[22:13:01] Moosashi: has joined #ruby
[22:13:28] bronson: has joined #ruby
[22:13:36] kith: has joined #ruby
[22:16:37] swills: has joined #ruby
[22:18:00] kareeoleez: has joined #ruby
[22:20:17] hxegon: has joined #ruby
[22:20:38] Trynemjoel: has joined #ruby
[22:23:18] Yiota: has joined #ruby
[22:25:41] tessi: has joined #ruby
[22:26:52] skweek: has joined #ruby
[22:27:05] kareeoleez: has joined #ruby
[22:27:23] jonr22: has joined #ruby
[22:30:28] pawnbox: has joined #ruby
[22:30:52] brianpWins: has joined #ruby
[22:31:43] ebbflowgo: has left #ruby: ()
[22:32:02] robbyoconnor: has joined #ruby
[22:34:24] jrafanie: has joined #ruby
[22:35:04] tessi: has joined #ruby
[22:36:41] emilford: has joined #ruby
[22:37:45] zenlot6: has joined #ruby
[22:38:39] troulouliou_div2: has joined #ruby
[22:43:39] jackjackdripper1: has joined #ruby
[22:45:16] kareeoleez: has joined #ruby
[22:45:16] Xeago: has joined #ruby
[22:45:58] freerobby: has joined #ruby
[22:47:23] baweaver: has joined #ruby
[22:47:45] jolts: has joined #ruby
[22:48:26] SilverKey: has joined #ruby
[22:49:17] william3: has joined #ruby
[22:51:29] kareeoleez: has joined #ruby
[22:51:29] Pupeno: has joined #ruby
[22:51:29] Pupeno: has joined #ruby
[22:52:25] Rodya_: has joined #ruby
[22:52:30] diegoaguilar: has joined #ruby
[22:53:09] jonr22: has joined #ruby
[22:53:24] crime: has joined #ruby
[22:55:03] bradleyprice: has joined #ruby
[22:55:47] jonr2219: has joined #ruby
[22:56:50] Yiota: has joined #ruby
[22:57:27] jottr: has joined #ruby
[22:57:46] lemur: has joined #ruby
[22:58:01] bradleyprice: has joined #ruby
[22:58:12] jhack: has joined #ruby
[23:02:42] SilverKey: has joined #ruby
[23:05:18] bronson: has joined #ruby
[23:05:47] tubuliferous: has joined #ruby
[23:09:34] solocshaw: has joined #ruby
[23:09:35] bkxd: has joined #ruby
[23:10:07] rkazak: has joined #ruby
[23:11:39] mfb2: has joined #ruby
[23:12:25] nando293921: has joined #ruby
[23:14:09] Devalo: has joined #ruby
[23:19:48] gnufied: has joined #ruby
[23:20:29] ur5us: has joined #ruby
[23:21:27] zeroDivisible: has joined #ruby
[23:22:46] ur5us_: has joined #ruby
[23:23:00] Trynemjoel: has joined #ruby
[23:24:22] baweaver: has joined #ruby
[23:24:37] DotKite: has joined #ruby
[23:25:38] bradleyprice: has joined #ruby
[23:26:15] tvon: has joined #ruby
[23:26:18] hays: has joined #ruby
[23:28:45] darkf: has joined #ruby
[23:30:08] ur5us: has joined #ruby
[23:31:24] agentmeerkat: has joined #ruby
[23:33:46] jdm: has joined #ruby
[23:34:37] binaryplease1: has joined #ruby
[23:36:01] ur5us: has joined #ruby
[23:38:15] Es0teric: has joined #ruby
[23:39:24] terminalrecluse: has joined #ruby
[23:40:55] triangles2: has joined #ruby
[23:42:33] cdg: has joined #ruby
[23:44:30] ebbflowgo: has joined #ruby
[23:48:49] RegulationD: has joined #ruby
[23:49:34] FooMunki: has joined #ruby
[23:50:06] Devalo: has joined #ruby
[23:54:16] pawnbox: has joined #ruby
[23:54:26] Devalo: has joined #ruby
[23:54:44] sneakerhax: has joined #ruby
[23:55:04] Rodya_: has joined #ruby
[23:55:56] _blizzy_: has joined #ruby
[23:56:40] Rodya_: has joined #ruby