« Back to channel list

#ruby - 27 November 2017

« Back 1 day Forward 1 day »
[00:02:17] jrabe: has joined #ruby
[00:08:13] zanoni: well as I suspected, tr or gsub fixed my issue, however, what if I just want a character removed, but no replacement
[00:09:35] Arahael: has joined #ruby
[00:09:43] Arahael: What's a good tool for auto-formatting ruby code?
[00:09:51] Cohedrin: has joined #ruby
[00:11:12] Arahael: What's a good tool for auto-formatting ruby code?
[00:15:31] Cohedrin: has joined #ruby
[00:18:56] konsolebox: has joined #ruby
[00:18:59] zanoni: formatting for writing code? then any of the ide's sublime, jet brains, etc , also use something like Rubocop , that will give you feedback on your formatting
[00:19:22] Arahael: zanoni: Yes, but I want it to automatically fix the crap.
[00:20:45] zanoni: i doubt there is anything automatic, but if you follow style, then there shouldn't be any crap, the editors will normally give you the right indents
[00:20:51] Radar: Arahael: rubocop -a + pray
[00:22:27] nowhere_man: has joined #ruby
[00:22:47] Arahael: Radar: Awesome.
[00:22:57] Arahael: zanoni: Trouble is, we don't have a standard editor in the team.
[00:23:16] Radar: Arahael: yeah it sounds awesome but then it fucks with everyone's styles and generally causes messy commit messages which then lead to merge conflicts that take days to fix...
[00:23:58] Arahael: Radar: Git's -w to the rescue. But yes, we're introducing style guides to reduce just this from happening.
[00:24:28] Arahael: It's still manually triggered though, on a per-file / proejct basis, whenever appropriate, for the moment. :)
[00:27:04] bmurt: has joined #ruby
[00:29:27] konsolebox: has joined #ruby
[00:30:35] kobain: has joined #ruby
[00:30:38] nadir: has joined #ruby
[00:33:31] Technodrome: has joined #ruby
[00:46:31] devchild: has joined #ruby
[00:50:22] harfangk: has joined #ruby
[00:52:51] ferr: Could anyone tell me why is it so with Ruby hashes? https://gist.github.com/Fercell/ddb3dc3490f19c79028a99c4c9f3bd03
[00:53:57] konsolebox: has joined #ruby
[00:57:06] Radar: ferr: how is @discounts defined?
[00:57:16] Radar: My guess is it's got a default value
[00:57:23] ferr: Yes, that is correct
[00:57:37] ferr: @discounts = Hash.new(discount: 0, lp_l_used: 0)
[00:57:44] ferr: So why is it so?
[00:58:02] Radar: Hash.new's argument sets the default value for all keys for the Hash.
[00:58:13] Radar: I don't think that code is doing what you hope it to do.
[00:58:20] guardianx: has joined #ruby
[00:58:33] ferr: It is setting the default value for all keys, but why all of my new keys are mutating
[00:58:53] ferr: I can use any of a key and it will be not the default value, but the value I set before
[00:58:58] Radar: >> discounts = Hash.new { |h, k| h[k] = {discount: 0, lp_l_used: 0} }; discounts['a']
[00:58:59] ruby[bot]: Radar: # => {:discount=>0, :lp_l_used=>0} (https://eval.in/907981)
[00:59:20] alveric4: has joined #ruby
[00:59:30] Radar: All non-set keys will use the _same_ Hash object. You should use the block syntax instead.
[01:00:31] ferr: Ok, I got this now
[01:05:46] devchild: has joined #ruby
[01:11:52] orbyt_: has joined #ruby
[01:13:24] orbyt_: has joined #ruby
[01:15:02] konsolebox: has joined #ruby
[01:16:53] baweaver: ferr: https://medium.com/@baweaver/abusing-hash-constructors-65d59c0a5b27
[01:17:06] baweaver: That one will walk you through a lot of what you can do with Hash constructors
[01:17:24] baweaver: Though the black magic section may be a bit scary at the bottom ;)
[01:18:25] maum: has joined #ruby
[01:23:28] guacamole: has joined #ruby
[01:25:00] milardovich: has joined #ruby
[01:26:21] char_var[buffer]: has joined #ruby
[01:28:51] bmurt: has joined #ruby
[01:31:14] paradisaeidae: has joined #ruby
[01:31:15] paradisaeidae_: has joined #ruby
[01:31:31] konsolebox: has joined #ruby
[01:36:39] nofxx: has joined #ruby
[01:38:12] mim1k: has joined #ruby
[01:45:26] devchild: has joined #ruby
[01:45:47] Ropeney: has joined #ruby
[01:45:54] wald0: has joined #ruby
[01:47:12] oetjenj: has joined #ruby
[01:47:28] apeiros_: has joined #ruby
[01:48:03] oetjenj: has joined #ruby
[01:51:37] konsolebox: has joined #ruby
[01:56:35] milardovich: has joined #ruby
[01:59:37] konsolebox: has joined #ruby
[02:00:29] milardov_: has joined #ruby
[02:02:34] eckhardt: has joined #ruby
[02:02:56] milardovich: has joined #ruby
[02:04:52] mjolnird: has joined #ruby
[02:05:56] bmurt: has joined #ruby
[02:06:24] devchild: has joined #ruby
[02:22:06] silvermine: has joined #ruby
[02:22:10] Exhiled: has joined #ruby
[02:23:42] alveric4: has joined #ruby
[02:24:37] millerti: has joined #ruby
[02:25:50] devchild: has joined #ruby
[02:38:11] devchild: has joined #ruby
[02:39:36] astrobunny: has joined #ruby
[02:44:31] milardov_: has joined #ruby
[02:45:47] eckhardt: has joined #ruby
[02:46:05] gizmore|2: has joined #ruby
[02:47:14] Technodrome: has joined #ruby
[02:49:24] orbyt_: has joined #ruby
[02:51:09] yokel: has joined #ruby
[02:54:11] claw: has joined #ruby
[02:58:13] milardovich: has joined #ruby
[03:00:18] cadillac_: has joined #ruby
[03:02:03] d^sh: has joined #ruby
[03:05:17] devchild: has joined #ruby
[03:05:30] guardianx: has joined #ruby
[03:05:31] konsolebox: has joined #ruby
[03:06:51] uZiel: has joined #ruby
[03:11:29] gmconklin: has joined #ruby
[03:11:58] mson: has joined #ruby
[03:15:58] gmconklin_: has joined #ruby
[03:16:55] hndk: has joined #ruby
[03:21:39] drowze: has joined #ruby
[03:26:02] ramfjord: has joined #ruby
[03:27:58] milardovich: has joined #ruby
[03:29:46] konsolebox: has joined #ruby
[03:32:40] epochwolf: has joined #ruby
[03:37:17] devchild: has joined #ruby
[03:37:45] nicesignal: has joined #ruby
[03:38:42] mim1k: has joined #ruby
[03:44:25] milardovich: has joined #ruby
[03:45:23] eckhardt: has joined #ruby
[03:48:09] rainbowz: has joined #ruby
[03:50:44] i8igmac: has joined #ruby
[03:52:41] drowze: has joined #ruby
[03:53:33] daemonwrangler: has joined #ruby
[03:56:26] jackjackdripper: has joined #ruby
[04:02:28] milardovich: has joined #ruby
[04:08:17] konsolebox: has joined #ruby
[04:10:02] uZiel: has joined #ruby
[04:19:18] RexMundi41: has joined #ruby
[04:22:05] christiandsg: has joined #ruby
[04:25:28] Cohedrin: has joined #ruby
[04:29:29] devchild: has joined #ruby
[04:33:21] govg: has joined #ruby
[04:33:28] DaniG2k: has joined #ruby
[04:33:50] konsolebox: has joined #ruby
[04:40:33] enterprisey: has joined #ruby
[04:41:33] milardovich: has joined #ruby
[04:48:01] gix-: has joined #ruby
[04:53:24] Technodrome: has joined #ruby
[04:57:26] lupine_: has joined #ruby
[05:02:52] konsolebox: has joined #ruby
[05:03:21] milardovich: has joined #ruby
[05:03:38] Yzguy: has joined #ruby
[05:05:58] milardov_: has joined #ruby
[05:06:05] quobo: has joined #ruby
[05:09:31] Dimik: has joined #ruby
[05:15:05] devchild: has joined #ruby
[05:16:40] war_pigs: has joined #ruby
[05:20:26] konsolebox: has joined #ruby
[05:24:30] milardovich: has joined #ruby
[05:28:14] guacamole: has joined #ruby
[05:33:20] anisha: has joined #ruby
[05:39:12] mim1k: has joined #ruby
[05:40:12] ramfjord: has joined #ruby
[05:42:27] hays: has joined #ruby
[05:42:28] hays: has joined #ruby
[05:43:50] Lytol: has joined #ruby
[05:47:18] milardov_: has joined #ruby
[05:54:32] christiandsg: has joined #ruby
[05:57:48] iamarun: has joined #ruby
[05:57:50] dionysus69: has joined #ruby
[06:03:48] silvermine: has joined #ruby
[06:09:36] silvermine: has joined #ruby
[06:11:35] b100s: has joined #ruby
[06:13:24] b100s: hi2all; what if i want to call from class' method a function, which is decribed in the same namespace? is it possible? or everything described in the same namespace will be either class method or instance one?
[06:16:29] reber: has joined #ruby
[06:17:04] ShekharReddy: has joined #ruby
[06:17:28] Jello_Raptor: has joined #ruby
[06:18:30] konsolebox: has joined #ruby
[06:22:16] Exhiled: has joined #ruby
[06:22:32] silvermine: has joined #ruby
[06:22:49] devchild: has joined #ruby
[06:27:44] Cohedrin: has joined #ruby
[06:28:30] milardovich: has joined #ruby
[06:29:51] mjolnird: has joined #ruby
[06:32:54] yeticry: has joined #ruby
[06:37:23] silvermine: has joined #ruby
[06:39:26] b100s: is it possible to share var in threads?
[06:43:05] Exhiled: has joined #ruby
[06:43:14] silvermine: has joined #ruby
[06:44:12] war_pigs: b100s: `ruby -e "module NSpace ; def self.outside; puts 'outside'; end; class TheClass; def inside; puts 'inside'; NSpace.outside; end; end; end; NSpace::TheClass.new.inside"`
[06:44:41] silvermine: has joined #ruby
[06:44:44] war_pigs: you'd need to define it as a self method
[06:46:59] charliesome: has joined #ruby
[06:47:26] ur5us: has joined #ruby
[06:48:39] silvermine: has joined #ruby
[06:48:47] craysiii: hey everyone, looking to see if someone can critique my code and tell me if anything is sticking out before i publish as my first gem https://github.com/craysiii/binance
[06:52:48] anisha: has joined #ruby
[06:54:04] muelleme: has joined #ruby
[06:57:40] dminuoso: b100s: Yes. Keep in mind that most ruby structures and methods are not thread safe.
[06:59:57] b100s: dminuoso, i'm going to use http://ruby-doc.org/core-2.0.0/Thread.html#method-i-5B-5D for return some values from immortal thread to mortal one
[07:00:13] b100s: looks like it shouldn't be error prone
[07:00:40] dminuoso: b100s: Like I said. Almost no ruby core methods are thread safe.
[07:00:59] b100s: dminuoso, what do you mean by that?
[07:01:19] b100s: dminuoso, i mean in my context of http://ruby-doc.org/core-2.0.0/Thread.html#method-i-5B-5D
[07:01:32] dminuoso: b100s: Oh. You meant thread local variables?
[07:01:34] b100s: in general i understand what is 'thread safe'
[07:02:34] dminuoso: b100s: Also, please be aware that you are looking at 2.0 documentation.
[07:03:28] b100s: dminuoso, yup, it is for 2.0.0 (part of link: http://ruby-doc.org/..>>core-2.0.0<<...
[07:03:45] dminuoso: b100s: Are you on macOS?
[07:03:57] b100s: dminuoso, no
[07:04:30] dminuoso: b100s: Consider upgrading your Ruby. 2.0 is not supported, old and buggy.
[07:04:50] b100s: 2.3.3 is ok?
[07:04:51] b100s: dminuoso,
[07:05:17] b100s: here you go: http://ruby-doc.org/core-2.3.3/Thread.html#method-i-5B-5D
[07:05:52] dminuoso: b100s: You should always refer to the documentation relevant to your ruby installation.
[07:06:39] dminuoso: b100s: If you look at the documentation closely of the 2.3 variant, you will see at the bottom that you should use set_local_variable and get_local_variable
[07:06:53] dminuoso: Errr *thread_variable_get and *thread_variable_set
[07:08:16] banisterfiend: has joined #ruby
[07:09:50] rabajaj: has joined #ruby
[07:09:55] milardov_: has joined #ruby
[07:13:31] enterprisey: has joined #ruby
[07:17:05] hutch34: has joined #ruby
[07:20:09] Dimik: has joined #ruby
[07:28:01] aufi: has joined #ruby
[07:36:26] conta: has joined #ruby
[07:39:42] mjolnird: has joined #ruby
[07:39:44] mim1k: has joined #ruby
[07:41:22] RevanOne: has joined #ruby
[07:44:33] lupine: has joined #ruby
[07:47:02] RevanOne: has joined #ruby
[07:48:46] andikr: has joined #ruby
[07:51:08] milardovich: has joined #ruby
[08:00:16] Xiti: has joined #ruby
[08:01:27] oetjenj: has joined #ruby
[08:05:23] tAn: has joined #ruby
[08:07:17] oetjenj: has joined #ruby
[08:08:04] oetjenj: has joined #ruby
[08:08:49] oetjenj: has joined #ruby
[08:12:45] Yzguy: has joined #ruby
[08:14:21] guille-moe: has joined #ruby
[08:16:46] Xiti: has joined #ruby
[08:23:20] deepredsky: has joined #ruby
[08:26:31] Mia: has joined #ruby
[08:26:31] Mia: has joined #ruby
[08:27:21] claudiuinberlin: has joined #ruby
[08:27:21] vondruch: has joined #ruby
[08:29:25] vondruch: has joined #ruby
[08:30:58] miskatonic: has joined #ruby
[08:31:41] gradio: has joined #ruby
[08:32:28] milardov_: has joined #ruby
[08:32:44] Jameser: has joined #ruby
[08:34:30] tAn: has joined #ruby
[08:35:56] tomaw: has joined #ruby
[08:38:33] mim1k: has joined #ruby
[08:39:09] tao_: has joined #ruby
[08:41:39] aupadhye: has joined #ruby
[08:46:12] marr: has joined #ruby
[08:48:16] ur5us: has joined #ruby
[08:49:09] silverdust: has joined #ruby
[08:49:39] webguynow: has joined #ruby
[08:52:13] mark_66: has joined #ruby
[08:52:59] burgestrand: has joined #ruby
[08:56:08] TomyWork: has joined #ruby
[08:56:30] gr33n7007h: has joined #ruby
[08:58:20] aupadhye: has joined #ruby
[09:01:04] ramfjord: has joined #ruby
[09:02:06] burgestrand: has joined #ruby
[09:06:13] plexigras: has joined #ruby
[09:09:47] guille-moe: has joined #ruby
[09:11:36] mim1k: has joined #ruby
[09:12:51] mim1k_: has joined #ruby
[09:13:47] milardovich: has joined #ruby
[09:18:51] hutch34: has joined #ruby
[09:21:18] tAn: has joined #ruby
[09:22:46] bigkevmcd: has joined #ruby
[09:24:18] burgestrand: has joined #ruby
[09:29:50] p0s1x: has joined #ruby
[09:32:39] wopi: has joined #ruby
[09:46:11] c0ncealed: has joined #ruby
[09:48:11] SirOliver: has joined #ruby
[09:54:36] mikecmpbll: has joined #ruby
[09:55:06] milardov_: has joined #ruby
[09:59:45] charliesome: has joined #ruby
[10:01:23] dhollinger: has joined #ruby
[10:02:48] Serpent7776: has joined #ruby
[10:03:05] jottr: has joined #ruby
[10:05:46] despai: has joined #ruby
[10:06:10] CrazyEddy: has joined #ruby
[10:11:11] dionysus69: has joined #ruby
[10:13:08] GodFather_: has joined #ruby
[10:13:18] p0s1x: has joined #ruby
[10:18:49] burgestrand: has joined #ruby
[10:25:41] nofxx1: has joined #ruby
[10:36:24] milardovich: has joined #ruby
[10:37:19] astronavt: has joined #ruby
[10:41:13] astronavt: has joined #ruby
[10:43:12] uZiel: has joined #ruby
[10:43:15] michaelzinn: has joined #ruby
[10:44:01] ferr: has joined #ruby
[10:44:24] ferr: has left #ruby: ()
[10:45:55] shoogz: has joined #ruby
[10:46:07] dinfuehr: has joined #ruby
[10:47:21] shoogz: has joined #ruby
[10:48:48] shoogz: has joined #ruby
[10:49:51] burgestrand: has joined #ruby
[10:50:05] jaruga: has joined #ruby
[10:50:18] shoogz: has joined #ruby
[10:51:44] shoogz: has joined #ruby
[10:53:11] shoogz: has joined #ruby
[10:54:57] ldnunes: has joined #ruby
[11:01:37] kickr_: has joined #ruby
[11:02:58] miah_: has joined #ruby
[11:03:26] nicesignal: has joined #ruby
[11:04:11] c0ncealed: has joined #ruby
[11:07:37] deepredsky: has joined #ruby
[11:07:38] bkxd: has joined #ruby
[11:15:52] deepredsky: has joined #ruby
[11:15:56] tacoboy: has joined #ruby
[11:17:40] milardov_: has joined #ruby
[11:21:21] silvermine: has joined #ruby
[11:21:37] hutch34: has joined #ruby
[11:25:55] deepredsky: has joined #ruby
[11:27:15] bkxd_: has joined #ruby
[11:27:17] enterprisey: has joined #ruby
[11:31:26] deepredsky: has joined #ruby
[11:32:32] c0ncealed: has joined #ruby
[11:32:41] ahrs: has joined #ruby
[11:37:34] zapata: has joined #ruby
[11:39:05] ruurd: has joined #ruby
[11:39:15] michaelzinn: has joined #ruby
[11:52:42] Mia: has joined #ruby
[11:52:50] fyrril: has joined #ruby
[11:52:56] Vircung: has joined #ruby
[11:54:30] iamdevnul: has joined #ruby
[11:54:55] gmcintire: has joined #ruby
[11:55:04] TagNotFound: has joined #ruby
[11:55:22] ckrailo: has joined #ruby
[11:55:25] andywojo: has joined #ruby
[11:55:28] bove: has joined #ruby
[11:55:29] Travis-42: has joined #ruby
[11:55:30] janko_s: has joined #ruby
[11:55:31] rann: has joined #ruby
[11:55:41] Lloyd: has joined #ruby
[11:55:43] discopatrick: has joined #ruby
[11:55:46] cstrahan: has joined #ruby
[11:55:47] auv: has joined #ruby
[11:55:47] teej: has joined #ruby
[11:55:51] Majost: has joined #ruby
[11:55:51] kireevco: has joined #ruby
[11:55:57] boxrick: has joined #ruby
[11:55:59] jhill: has joined #ruby
[11:55:59] ghormoon: has joined #ruby
[11:56:04] yo61: has joined #ruby
[11:56:09] Meow-J: has joined #ruby
[11:57:50] Olipro: has joined #ruby
[11:58:57] milardovich: has joined #ruby
[11:59:02] Danielss89: has joined #ruby
[11:59:34] friday: has joined #ruby
[12:00:32] jeffreylevesque_: has joined #ruby
[12:00:58] Vircung: has joined #ruby
[12:02:27] uZiel_: has joined #ruby
[12:03:36] cadillac_: has joined #ruby
[12:04:43] jeffreylevesque: has joined #ruby
[12:05:26] uZiel: has joined #ruby
[12:11:10] Psybur: has joined #ruby
[12:19:50] burgestrand: has joined #ruby
[12:22:43] tjbp: has joined #ruby
[12:22:57] hutch34: has joined #ruby
[12:25:06] gradio: has joined #ruby
[12:25:12] sagax: has joined #ruby
[12:25:22] gheegh: has joined #ruby
[12:26:25] tsglove: has joined #ruby
[12:30:55] adaedra: Hello rubyists
[12:33:07] adaedra: We're having a bit of debate at work and I'd like additional input. When we do tests, we sometimes compare against constants (`assert_equal SomeModel::CONSTANT, ...`) and some people think we should not and that we should use the value instead (`assert_equal :value, ...`). What do you think? How would you do?
[12:33:42] Vircung: has joined #ruby
[12:34:46] al2o3-cr: my preference is for the former.
[12:36:53] adaedra: I must admit that I don't know
[12:37:03] burgestrand: adaedra Do you have a concrete example?
[12:37:34] burgestrand: adaedra I'm thinking that a common error people do is writing the same code twice as opposed to testing that the code does what it intends to do
[12:37:41] tcopeland: has joined #ruby
[12:37:55] adaedra: Let me assemble a thing
[12:38:31] burgestrand: Comparing values/settings to constants is a common source of this write twice test never kind of situations, not saying that's what it necessarily is here though
[12:38:37] leitao: has joined #ruby
[12:39:26] leitao: hello. I compiling ruby on an POWER architecture, and I get the TestBacktrace testcase failing with the following error http://paste.debian.net/997799/.
[12:39:26] burgestrand: e.g. `assert_equal Project::VERSION, "1.0.0"` would be a typical example of this
[12:39:33] leitao: Any idea what might be the issue?
[12:40:17] milardov_: has joined #ruby
[12:41:04] InfinityFye: has joined #ruby
[12:41:53] apeiros_: has joined #ruby
[12:42:46] bweston92: has joined #ruby
[12:47:28] biberu: has joined #ruby
[12:47:43] adaedra: Burgestrand: dumbed down, but that's approximatively the problem: https://gist.github.com/adaedra/7c1134e7c353f5a1b07ec4e9d2b46233
[12:48:56] adaedra: Funny, GitHub does not use the same color scheme in the editor than in the gist itself
[12:49:02] hightower2: has joined #ruby
[12:50:48] burgestrand: adaedra my thinking is this: which one of `:err_nodata` and `Message::MISSING_DATA` is the implementation detail? I'd probably leave the implementation detail out of my test and mostly deal with the public (i.e. public internally, hehe) API.
[12:51:08] adaedra: I'd say :err_nodata is.
[12:51:28] burgestrand: If both could be considered public API, e.g. if you were writing internal documentation on this and pretty much say "You can rely on the code being :err_nodata" then I wouldn't care which one you test against
[12:51:54] adaedra: We put a constant so everyone uses the constant, so I guess the symbol is the internal one. So constant?
[12:52:20] apeiros: IMO if you make a constant don't even mention the value it holds
[12:52:29] burgestrand: adaedra I'd agree with that, yes.
[12:52:55] burgestrand: Yeah, I'm with apeiros here, the value could be random, it could be KITTENS, if the point is that the consumers of the API doesn't need to care then neither should the test
[12:52:58] minimalism: has joined #ruby
[12:53:15] apeiros: "what he said" :)
[12:53:16] tomphp: has joined #ruby
[12:53:51] burgestrand: Another argument for that is that I don't think the test should break if you decide to change the internal error code
[12:54:28] burgestrand: I guess it's pretty much the same argument so never mind that one :)
[12:54:40] apparition: has joined #ruby
[12:56:08] adaedra: Thanks for the input
[12:58:52] guille-moe: has joined #ruby
[13:07:02] gheegh: has joined #ruby
[13:15:24] miskatonic: has joined #ruby
[13:17:50] Vircung: has joined #ruby
[13:19:01] uZiel: has joined #ruby
[13:20:38] tomphp: has joined #ruby
[13:20:40] bmurt: has joined #ruby
[13:21:35] milardovich: has joined #ruby
[13:22:35] lexruee: has joined #ruby
[13:27:17] Technodrome: has joined #ruby
[13:28:22] nowhere_man: has joined #ruby
[13:32:02] rfoust: has joined #ruby
[13:33:31] eckhardt: has joined #ruby
[13:34:04] jaruga: has joined #ruby
[13:37:28] tacoboy: has joined #ruby
[13:37:32] silvermine: has joined #ruby
[13:40:48] jeffreylevesque: has joined #ruby
[13:43:59] tomphp: has joined #ruby
[13:44:19] jeffreylevesque_: has joined #ruby
[13:45:34] burgestrand: has joined #ruby
[13:45:51] ldnunes: has joined #ruby
[13:46:08] mson: has joined #ruby
[13:49:47] tomphp: has joined #ruby
[13:50:38] sspreitz: has joined #ruby
[13:51:36] koenrh: has joined #ruby
[13:51:55] galeido: has joined #ruby
[13:52:05] darthThorik: has joined #ruby
[13:54:37] Technodrome: has joined #ruby
[13:58:06] guille-moe: has joined #ruby
[13:58:48] rwb: has joined #ruby
[13:59:06] mim1k: has joined #ruby
[14:02:00] SirOliver: has joined #ruby
[14:02:50] cdg: has joined #ruby
[14:03:49] tomphp: has joined #ruby
[14:09:58] steffes: has joined #ruby
[14:16:18] cdg_: has joined #ruby
[14:16:58] kickr: has joined #ruby
[14:19:49] gradio: has left #ruby: ("Leaving")
[14:22:42] veeti: has joined #ruby
[14:25:33] imperator: has joined #ruby
[14:29:07] dionysus70: has joined #ruby
[14:31:43] zanoni: has joined #ruby
[14:32:54] milardov_: has joined #ruby
[14:33:26] DLSteve: has joined #ruby
[14:39:59] orbyt_: has joined #ruby
[14:41:28] synthroid: has joined #ruby
[14:42:48] john__: has joined #ruby
[14:42:56] Vircung: has joined #ruby
[14:44:25] guille-moe: has joined #ruby
[14:46:55] silvermine: has joined #ruby
[14:47:46] gnufied: has joined #ruby
[14:48:00] JaccoP: has joined #ruby
[14:53:28] charliesome: has joined #ruby
[14:57:11] krawchyk: has joined #ruby
[14:58:17] dviola: has joined #ruby
[15:00:30] gheegh: has joined #ruby
[15:02:21] Barrt: has joined #ruby
[15:05:59] polishdub: has joined #ruby
[15:10:25] Exhiled: has joined #ruby
[15:11:06] safetypin: has joined #ruby
[15:12:00] SirOliver: has joined #ruby
[15:13:24] Gabemo: has joined #ruby
[15:14:15] milardovich: has joined #ruby
[15:16:52] jackjackdripper: has joined #ruby
[15:19:44] unreal: has joined #ruby
[15:21:32] netherwolfe: has joined #ruby
[15:21:50] SirOliver: has joined #ruby
[15:22:37] tvw: has joined #ruby
[15:22:46] mtkd: has joined #ruby
[15:23:15] Rapture: has joined #ruby
[15:24:11] xlegoman: has joined #ruby
[15:26:40] Technodrome: has joined #ruby
[15:28:52] iceden: has joined #ruby
[15:31:32] michaelzinn: has joined #ruby
[15:32:20] veeti: has joined #ruby
[15:37:23] aufi: has joined #ruby
[15:39:41] alex``: has joined #ruby
[15:41:36] sepp2k: has joined #ruby
[15:44:41] RevanOne: has joined #ruby
[15:46:15] yottanami__: has joined #ruby
[15:47:31] yottanami__: I am using Ruby 2.0.0p481 and I know it deprecated but I need to use it because we can not update our gems now but I got this error http://dpaste.com/0JTA3MH in new Linux kernel. Is any chance to fix it?
[15:51:46] rippa: has joined #ruby
[15:53:23] alan_w: has joined #ruby
[15:55:09] dminuoso: yottanami__: Can you attach a debugger and produce a full stacktrace please?
[15:56:02] dminuoso: yottanami__: Also consider upgrading to v2_0_0_648 at the very least. Cba to check what fixes were made, but you well.
[15:56:09] dminuoso: *you might as well
[15:56:46] miskatonic: has joined #ruby
[15:56:56] Dimik: has joined #ruby
[15:59:57] dminuoso: yottanami__: Also see if you can reproduce it on that exact machine with the following Ruby program: Time.now.utc
[16:01:09] dminuoso: yottanami__: Also please include the entirey of the bug screen. Id like to see the entire list of native extensions, cpu context, etc.
[16:01:13] apeiros_: has joined #ruby
[16:01:33] dminuoso: Which might make obtaining a backtrace with gdb unnecessary.
[16:01:49] johnpaul: has joined #ruby
[16:02:22] Technodrome: has joined #ruby
[16:05:24] Prutheus: has joined #ruby
[16:06:19] yottanami__: dminuoso, Actually I am trying to run it using Docker I used debian:wheezy image. when I use Kernel 4.9.0 to run my Docker image it is ok without any change but when I use 4.12.0 I got this error.
[16:06:59] yottanami__: dminuoso, How can I get the full stack trace in this situation?
[16:07:03] drowze: has joined #ruby
[16:08:08] dminuoso: yottanami__: I'd say throw a RUN /bin/sh before the layer that blows up, and then exec a shell and trigger this by hand.
[16:08:23] dminuoso: Otherwise its pretty annoying to recover information from a docker container that failed to build
[16:08:46] dminuoso: yottanami__: And when I say RUN I mean CMD of cours.e
[16:09:05] troys: has joined #ruby
[16:09:34] dminuoso: yottanami__: You somehow need to get hold of that core dump, or trigger it with a simple testcase (ruby will print out the necessary debugging information to stderr)
[16:09:38] Prutheus: dminuoso: do you have some knowledge about ruby and gtk?
[16:10:53] dminuoso: yottanami__: The output Im after looks like this: https://gist.github.com/anonymous/1de527506a196012d420f970813e497a
[16:10:58] dminuoso: (There's more lines, I just copied the first couple)
[16:11:09] Vircung: has joined #ruby
[16:11:41] Ouchy: has joined #ruby
[16:11:42] Ouchy: has joined #ruby
[16:14:39] Prutheus: dminuoso: I have an ruby application running with gtk, and on ubuntu there is just a whole container missing ... just disappeared .. any idea?
[16:14:43] Prutheus: only on ubuntu
[16:16:03] mim1k: has joined #ruby
[16:18:19] tAn: has joined #ruby
[16:20:08] tAn: has joined #ruby
[16:20:46] yeticry: has joined #ruby
[16:27:05] Vircung: has joined #ruby
[16:27:23] govg: has joined #ruby
[16:27:39] amosbird: has joined #ruby
[16:28:08] guille-moe: has joined #ruby
[16:29:54] anisha: has joined #ruby
[16:31:18] Exhiled: has joined #ruby
[16:32:29] synthroid: has joined #ruby
[16:32:42] oleo: has joined #ruby
[16:33:45] synthroid: has joined #ruby
[16:34:17] Cra2yZer0: has joined #ruby
[16:34:35] whippythellama: has joined #ruby
[16:39:03] Vircung: has joined #ruby
[16:41:01] despai: has joined #ruby
[16:42:34] TomyLobo: has joined #ruby
[16:48:49] gizmore: has joined #ruby
[16:49:11] milardovich: has joined #ruby
[16:52:44] quobo: has joined #ruby
[16:53:45] railswebdev: has joined #ruby
[16:55:21] milardovich: has joined #ruby
[16:56:32] Barrt: has joined #ruby
[16:59:55] Vircung: has joined #ruby
[17:03:47] mostlybadfly: has joined #ruby
[17:07:27] marxarelli: has joined #ruby
[17:10:36] jackjackdripper: has joined #ruby
[17:14:05] gheegh: has joined #ruby
[17:16:16] jamesaxl: has joined #ruby
[17:16:47] fredx: has joined #ruby
[17:17:16] JaccoP: has joined #ruby
[17:17:38] [Butch]: has joined #ruby
[17:21:09] noem: has joined #ruby
[17:25:14] conta1: has joined #ruby
[17:25:30] eckhardt: has joined #ruby
[17:26:53] mson: has joined #ruby
[17:26:58] Vircung: has joined #ruby
[17:28:49] Barrt: has joined #ruby
[17:29:16] guille-moe: has joined #ruby
[17:29:27] plexigras: has joined #ruby
[17:35:49] Technodrome: has joined #ruby
[17:36:26] mfb2: has joined #ruby
[17:36:31] milardov_: has joined #ruby
[17:37:16] mcr1: has joined #ruby
[17:39:10] rabajaj: has joined #ruby
[17:41:11] mfb2: has joined #ruby
[17:41:44] orbyt_: has joined #ruby
[17:42:28] Prutheus: I have an ruby application running with gtk, and on ubuntu there is just a whole container missing ... just disappeared .. any idea?
[17:42:31] Prutheus: only at ubuntu
[17:43:22] ptx0: has joined #ruby
[17:44:48] milardovich: has joined #ruby
[17:50:04] cjohnson: probably not gonna be a #ruby question prutheus
[17:51:10] Prutheus: gtk you mean?
[17:51:50] rfoust: has joined #ruby
[17:52:38] cjohnson: Well the first place I would look would be the app maintainer
[17:53:01] cjohnson: If you've narrowed down the issue to a gtk usage bug, or a ruby line that is causing it, that's when you'd ask #ruby or a gtk channel
[17:53:04] Prutheus: no i have programmed it
[17:53:12] Ouchy`w: has joined #ruby
[17:53:22] cjohnson: Well then now you get to narrow it down :P
[17:53:39] Prutheus: some time ago it worked, then, for no reason it disappeared and only in ubbbbbbbuntu.
[17:54:28] cjohnson: that's what you get for trying to contribute to open source
[17:55:00] Prutheus: what do you mean?
[17:55:23] cjohnson: just a dumb joke
[17:55:50] tcpdump: has left #ruby: ()
[17:55:52] baweaver: define disappeared
[17:56:06] baweaver: and container
[17:56:38] Rr4sT: has joined #ruby
[17:58:31] Prutheus: baweaver: i have a horizontal box at the bottom of my window which is just away
[17:58:33] Prutheus: with all its contents
[17:59:04] baweaver: Can you reproduce the issue in any other language?
[17:59:40] Prutheus: have not tryed yet and don't think so except i do a full copy of my gui. because other elements of my gui works, just that box nit
[17:59:40] vipaca: has joined #ruby
[18:00:05] michaelzinn: has joined #ruby
[18:00:08] yabbes: has joined #ruby
[18:01:39] Ouchy: has joined #ruby
[18:01:40] Ouchy: has joined #ruby
[18:02:48] banisterfiend: has joined #ruby
[18:03:22] Ouchy`w: has joined #ruby
[18:06:41] selim: has joined #ruby
[18:07:05] baweaver: and you're certain this only happens on Ubuntu
[18:07:24] baweaver: you're using the exact same code, exact same version of GTK, Ruby, and everything across other OSs?
[18:11:30] Psybur: has joined #ruby
[18:12:48] Prutheus: baweaver: be right back, rebooting
[18:13:03] tomphp: has joined #ruby
[18:13:25] mfb2: has joined #ruby
[18:14:08] mtkd: has joined #ruby
[18:14:22] Prutheus: has joined #ruby
[18:14:31] Prutheus: baweaver: wanna see my code?
[18:15:13] JBbanks: has joined #ruby
[18:15:13] baweaver: Start with what I mentioned above
[18:15:19] baweaver: make sure your versions are lining up
[18:15:42] Prutheus: yes all is true
[18:15:45] baweaver: I'd be willing to bet you either have a newer or older version of GTK on Ubuntu which does something odd
[18:15:45] Prutheus: versions are ok
[18:15:53] Prutheus: i didnt updated ubuntu
[18:15:53] baweaver: Double check
[18:15:58] Prutheus: since it worked and didnt anymore
[18:16:15] cagomez: has joined #ruby
[18:16:18] baweaver: Then triple check
[18:16:28] baweaver: Versions of: Ruby, GTK, all of it.
[18:16:36] baweaver: and make sure your code is exactly the same
[18:16:39] Prutheus: okay will take a moment, brb
[18:17:43] milardov_: has joined #ruby
[18:18:14] orbyt_: has joined #ruby
[18:20:00] tao_: has joined #ruby
[18:20:30] raynold: has joined #ruby
[18:20:57] mfb2: has joined #ruby
[18:21:38] synthroid: has joined #ruby
[18:21:38] kies: has joined #ruby
[18:24:53] TomyLobo: hnnnnng, float/integer keys of the same numerical value (0 or 0.0) are distinct
[18:25:09] tomphp: has joined #ruby
[18:25:21] Guest68: has joined #ruby
[18:26:32] havenwood: >> 0 == 0.0
[18:26:33] ruby[bot]: havenwood: # => true (https://eval.in/908660)
[18:26:42] havenwood: >> 0.equal? 0.0
[18:26:44] ruby[bot]: havenwood: # => false (https://eval.in/908662)
[18:27:00] leitz_at_work: Philosophy question: My project will require a web front end at some point in time. I've heard lots of Rails horror stories about security and performance. Should I go with a lighter weight option or just bite the bullet and get into Rails?
[18:27:06] whippythellama: has joined #ruby
[18:27:07] wald0: has joined #ruby
[18:27:13] havenwood: TomyLobo: yeah, they're instances of different classes - but they're two-quals equal
[18:27:34] havenwood: leitz_at_work: I'm a big fan of Roda and its plugins.
[18:27:54] baweaver: leitz_at_work: Rails requires a lot of knowledge as well to get started
[18:28:05] baweaver: That said, most people exaggerate pretty severely.
[18:28:05] TomyLobo: >> {0.0 => 'foo'}[0]
[18:28:06] ruby[bot]: TomyLobo: # => nil (https://eval.in/908664)
[18:28:12] wmoxam: Security horror stories?
[18:28:13] TomyLobo: that's basically what i tried
[18:28:42] havenwood: TomyLobo: #eql? is used for Hash equality
[18:28:54] havenwood: >> 0.eql? 0.0
[18:28:55] ruby[bot]: havenwood: # => false (https://eval.in/908665)
[18:29:06] leitz_at_work: wmoxam, the number of gems to do stuff combined with the leftpad sort of issue. I prefer a smaller number of dependencies.
[18:29:12] havenwood: leitz_at_work: http://rodauth.jeremyevans.net
[18:29:37] TomyLobo: havenwood, and beyond that, they probably dont share hash values either
[18:29:38] leitz_at_work: baweaver, yup. But still a risk.
[18:29:48] baweaver: Not nearly as severe in Ruby
[18:29:55] baweaver: that said, Rails is an omnibus
[18:29:58] havenwood: >> 'ems'.rjust 6, 'g'
[18:29:59] ruby[bot]: havenwood: # => "gggems" (https://eval.in/908666)
[18:30:01] leitz_at_work: havenwood, I'll have to check that link tonight. Work blocks a lot.
[18:30:38] havenwood: leitz_at_work: https://github.com/jeremyevans/roda
[18:30:56] baweaver: Javascript suffers from the LISP curse a bit: http://winestockwebdesign.com/Essays/Lisp_Curse.html
[18:31:17] TomyLobo: (if ruby hashes work anything like java hashmaps or C++ unordered_map)
[18:31:49] baweaver: >> [1.hash, (1.0).hash]
[18:31:51] ruby[bot]: baweaver: # => [197991970, 643467288] (https://eval.in/908667)
[18:33:35] leitz_at_work: GitHub links work. :P
[18:36:45] TomyLobo: baweaver, a bit? one of the guys at work has a poster on his door with a bunch of client-server syncing abstract gui framework thingies (angular, react and so on). he has one for each of the past 8 years :)
[18:37:16] TomyLobo: if that is the kind of thing you were referring to
[18:37:42] baweaver: Honestly I think it's more the fact that people hate maintaining and love creating
[18:37:54] baweaver: JS is just super notorious for it
[18:38:08] havenwood: Angular 3! Vue!
[18:38:21] baweaver: Angular 3 doesn't exist ;)
[18:38:26] havenwood: (I thought Angular 3 existing was a troll... it's not!)
[18:38:31] baweaver: They skipped 2 -> 4 to sync versions
[18:38:49] havenwood: they tagged a 3, then just skipped it?
[18:38:59] baweaver: Though Angular 1 -> 2 was basically a complete rewrite
[18:39:00] TomyLobo: like winamp 2+3=5?
[18:39:19] havenwood: I like the Rake versioning from pre-1.0 to version 10.
[18:39:20] baweaver: Programmers just suck at counting
[18:39:29] baweaver: we start at 0 for crying out loud
[18:39:53] baweaver: TomyLobo: Why is 6 afraid of 7?
[18:39:58] miah: has joined #ruby
[18:40:48] havenwood: baweaver: 789
[18:41:00] baweaver: Ah, but why _did_ 7 8 9?
[18:41:12] baweaver: because you're supposed to get 3**2 meals a day
[18:41:39] TomyLobo: baweaver, i dont know, but she does: https://www.youtube.com/watch?v=w2ci4WAD2zo
[18:41:57] baweaver: ACTION avoids clicking anything youtube at work
[18:42:12] qqmash: has joined #ruby
[18:42:37] TomyLobo: it's a song (Royksopp - Tricky Tricky)
[18:43:07] TomyLobo: 1st line in the song is "Is six afraid of seven, cause seven eight nine?"
[18:46:13] troys: has joined #ruby
[18:47:11] leitz_at_work: baweaver, does roda have a plugin for MongoDB? (can't see @work)
[18:47:28] baweaver: I would assume so
[18:48:12] Papierkorb: roda doesn't care much what DBMS you use (if any). You just use it
[18:49:16] Cohedrin: has joined #ruby
[18:50:19] tomphp: has joined #ruby
[18:50:37] RickHull: has joined #ruby
[18:51:55] RickHull: are there any guidelines for a proper ruby setup on windows? I used ruby-installer 2, and I would like to use my git-bash/mingw window to use both ruby and msys2 commands
[18:52:24] RickHull: as it stands, the ruby-installer added ruby executables to my path in git-bash, which is good
[18:52:42] RickHull: but this environment still has no access to build tools like `make`
[18:52:49] RickHull: unless I do ridk.cmd exec make
[18:53:24] RickHull: otherwise, I can load an msys terminal window with access to `make` -- but `ruby` is not in my path
[18:54:05] RickHull: ideally I will use git-bash/mingw to have an environment with e.g. `rake` and `make`
[18:54:30] RickHull: if I exectute path/to/make in git-bash, there is what looks like a DLL hell error
[18:54:58] TomyLobo: is there a way to invoke irb such that it executes a .rb file and then allows me to access non-$ variables left in file scope?
[18:55:17] RickHull: TomyLobo: are you familiar with pry?
[18:55:40] RickHull: pry is like irb on steroids, and binding.pry will allow what you what
[18:55:43] SeepingN: has joined #ruby
[18:55:46] woodruffw: has joined #ruby
[18:55:46] woodruffw: has joined #ruby
[18:55:56] RickHull: for 99% of typical irb usage, pry is a drop in replacement
[18:56:20] RickHull: http://pryrepl.org/
[18:56:42] TomyLobo: let's see if that installs without needing ffi
[18:56:46] TomyLobo: yay it does
[18:57:04] RickHull: put `binding.pry` in your .rb file
[18:57:26] mfb2: has joined #ruby
[18:57:41] RickHull: you will need: require 'pry'
[18:57:55] RickHull: and then binding.pry at whichever point you would like a repl
[18:58:12] TomyLobo: oh, i thought you were referring to a file called "binding.pry" ^^
[18:58:25] mfb2: has joined #ruby
[18:58:34] ruby[bot]: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
[19:00:17] cagomez: has joined #ruby
[19:01:16] Nahra: has joined #ruby
[19:01:25] michaelzinn: has joined #ruby
[19:01:28] Vircung: has joined #ruby
[19:02:02] joker5bb_: has joined #ruby
[19:02:16] devchild: has joined #ruby
[19:04:04] brent__: has joined #ruby
[19:04:31] tomphp: has joined #ruby
[19:07:21] cagomez: has joined #ruby
[19:08:04] cagomez: has joined #ruby
[19:08:58] cagomez: has joined #ruby
[19:09:42] faces: has joined #ruby
[19:11:01] oetjenj: has joined #ruby
[19:11:51] TomyLobo: especially it doesnt spam my console indefinitely anymore
[19:12:18] TomyLobo: (inspecting the result of parsing a 38 MB stellaris save file ^^)
[19:13:30] tomphp: has joined #ruby
[19:13:49] cagomez: has joined #ruby
[19:13:58] solars: has joined #ruby
[19:16:03] solars: hey, I'm extending a very simple gem, but cannot find out where the variable callback_url here comes from: https://github.com/dlindahl/omniauth-cas/blob/master/lib/omniauth/strategies/cas.rb#L91 does anyone see this?
[19:18:16] RickHull: solars: it's almost certainly a method
[19:18:43] RickHull: defined in one of the require'd files (if the project is well-structured)
[19:19:41] solars: ah damn, it's probably coming from Omniauth
[19:19:48] orbyt_: has joined #ruby
[19:19:49] solars: which is included, but obviously the sources are not in this repo
[19:20:14] RickHull: btw, I am a fan of a much more explicit style, where it is more obvious to the reader what is being referenced
[19:24:34] vipaca: has joined #ruby
[19:25:27] tcopeland: yeah callback_url is a method in the OmniAuth::Strategy module
[19:29:03] TomyLobo: hmm, i still get ffi problems (due to babun being shit and such)
[19:29:26] cagomez: has joined #ruby
[19:29:31] TomyLobo: cna anyone tell me what binding.pry does before showing the prompt?
[19:30:23] TomyLobo: and how to disable it? :)
[19:30:27] TomyLobo: ctrl-c cancels it
[19:30:52] conta1: has joined #ruby
[19:32:03] RickHull: TomyLobo: i found this pretty quicky at pryrepl.org http://kyrylo.org/posts/so-what-is-binding-pry-exactly
[19:35:25] TomyLobo: RickHull, uh, that's for advanced users i guess
[19:35:25] despai: has joined #ruby
[19:35:53] mfb2: has joined #ruby
[19:36:05] TomyLobo: lemme check if "binding" already causes the issue though
[19:36:06] Exhiled: has joined #ruby
[19:36:54] xlegoman: has joined #ruby
[19:37:01] baweaver: http://enderahmetyurt.com/2016/ruby2-4-binding-irb/
[19:37:04] baweaver: ACTION whistles
[19:37:10] baweaver: ACTION still prefers pry
[19:37:15] TomyLobo: nah, it's definitely the "pry" part
[19:37:19] TomyLobo: yeah pry is awesome
[19:37:21] TomyLobo: and it works
[19:37:31] TomyLobo: i just need to ctrl-c first thing, for some reason
[19:37:54] TomyLobo: otherwise it just keeps spamming things like " 0 [main] ruby 22072 child_info_fork::abort: address space needed by 'windows_1252.so' (0x730000) is already occupied"
[19:38:58] TomyLobo: (which is a babun-specific issue with 32-bit cygwin libraries)
[19:39:25] TomyLobo: (and to some extent 64 bit, but the address space is larger)
[19:40:44] vipaca: has joined #ruby
[19:43:56] TomyLobo: " :quiet (Boolean) —
[19:43:56] TomyLobo: Omit the whereami banner when starting.
[19:43:56] TomyLobo: " - i'll try that :)
[19:44:28] TomyLobo: yep, that was it
[19:45:05] TomyLobo: nope, that only postponed it to the first inspection
[19:46:09] TomyLobo: oh whatever, i'll give up and press ctrl-c each time
[19:49:03] devchild: has joined #ruby
[19:50:11] claudiuinberlin: has joined #ruby
[19:51:13] mcr1: has joined #ruby
[19:57:13] tAn: has joined #ruby
[19:58:47] jhass: install linux :D
[19:58:57] biggeektx: has joined #ruby
[19:59:00] SirOliver: has joined #ruby
[19:59:52] biggeektx: has joined #ruby
[20:01:21] jamiejackson: has joined #ruby
[20:03:47] RickHull: TomyLobo: do you use msys2?
[20:04:51] mfb2: has joined #ruby
[20:04:56] michaelzinn: has joined #ruby
[20:05:00] RickHull: anyone know the hooks for that work, such that I can get `rake` and `make` in my path, properly linked, in the same git-bash(MINGW64) session?
[20:05:06] mfb2: has joined #ruby
[20:05:29] RickHull: as it stands, I have a ruby environment in git-bash, and make / build environment in msys2
[20:06:00] RickHull: and I haven't found any tutorials or docs on how this works
[20:06:36] TomyLobo: RickHull, i use babun
[20:06:37] RickHull: I can execute make successfully only in a msys2 window; in git-bash if I provide the path to it, it appears to be linking to the wrong dll (?)
[20:06:38] jtdoncas: has joined #ruby
[20:07:29] vipaca: has joined #ruby
[20:07:36] RickHull: ok, interesting. I like the git-bash shell as it reminds me of putty
[20:07:41] TomyLobo: babun is cygwin, prepackaged to install per-user, with nice defaults and with a decent package manager
[20:08:11] TomyLobo: problem is: in order to allow that package manager to run inside the regular shell, it has to skip a certain step the cygwin setup.exe normally takes
[20:09:09] TomyLobo: that step makes sure all the dlls end up in different address spaces by default, which, as I understand it, is needed in order to make cygwin's fork implementation work
[20:09:09] RickHull: i have always given up on unix style dev on windows. I've never been happy with cygwin, though I never tried particularly hard
[20:09:57] TomyLobo: so, your babun install is doomed if you do too much with it :)
[20:10:50] RickHull: eh, I'll probably give up. I can get `make` in git-bash with `ridk.cmd exec make`
[20:10:53] TomyLobo: RickHull, if you're using win10, microsoft should have pressured you into downloading the update that allows you to enable the bash-on-ubuntu-on-linux thingy
[20:11:15] TomyLobo: what are you make'ing anyway?
[20:11:23] RickHull: it is win10. it's a shitbox though. some crippled amd 2core with no VTX
[20:11:27] RickHull: pardon my french
[20:11:32] RickHull: making mruby
[20:11:34] TomyLobo: you dont need vtx
[20:11:49] TomyLobo: not for bash-on-ubuntu-on-linux
[20:11:51] RickHull: yeah, i mean, I would normally run a linux VM
[20:11:58] RickHull: but this thing crawls as it is
[20:12:23] TomyLobo: yeah it's not a VM
[20:12:29] TomyLobo: so, give it a try maybe
[20:13:10] RickHull: huh, cool, that seems way better
[20:13:56] RickHull: i never got any notification for it, i guess I'll go to the windows app store. there's a first for everything!
[20:14:26] TomyLobo: app store? uhh
[20:14:31] TomyLobo: i never went there ^^
[20:14:46] TomyLobo: i activated developer mode or something
[20:15:03] Puffball: has joined #ruby
[20:15:12] TomyLobo: https://msdn.microsoft.com/en-us/commandline/wsl/install-win10 there you go, as official as it gets :)
[20:15:14] lupine: has joined #ruby
[20:15:29] TomyLobo: oh, they moved it to the store
[20:16:56] TomyLobo: https://www.microsoft.com/de-de/store/p/suse-linux-enterprise-server-12/9p32mwbh6cns?rtc=1 why would you even do that, i dont get it
[20:19:29] cagomez: has joined #ruby
[20:20:01] leitao: has joined #ruby
[20:20:52] RickHull: oh, now they've changed the Windows Store to the Microsoft Store. I wonder if it PlaysForSure :/
[20:23:44] vipaca: has joined #ruby
[20:26:30] al2o3-cr: i wouldn't piss on windows if it was on fire.
[20:27:04] nfk: has joined #ruby
[20:29:14] vipaca: has joined #ruby
[20:30:59] claudiuinberlin: has joined #ruby
[20:32:11] Hanmac: has joined #ruby
[20:33:49] leitz_at_work: Time to close the work doors and head home to see what's next on the CT_Charcter_Generator.
[20:35:04] cdg: has joined #ruby
[20:36:48] cdg_: has joined #ruby
[20:41:58] tvw: has joined #ruby
[20:47:24] cdg: has joined #ruby
[20:50:50] ur5us: has joined #ruby
[20:53:23] orbyt_: has joined #ruby
[20:54:23] Technodrome: has joined #ruby
[20:56:05] ur5us_: has joined #ruby
[20:57:14] dviola: has joined #ruby
[20:57:34] devchild: has joined #ruby
[21:03:33] eckhardt: has joined #ruby
[21:06:28] michaelzinn: has joined #ruby
[21:07:31] ur5us: has joined #ruby
[21:10:56] ur5us_: has joined #ruby
[21:12:32] jenrzzz: has joined #ruby
[21:16:10] cdg: has joined #ruby
[21:17:30] banisterfiend: has joined #ruby
[21:20:49] ur5us: has joined #ruby
[21:23:03] basket: Hello, argoneus
[21:23:10] argoneus: I have a function that returns an Enumerator and/or yields to a block, the result is a bunch of numbers
[21:23:28] argoneus: I want to write a function "no_zeroes" so that I can do something like my_numbers.no_zeroes.to_a
[21:23:45] argoneus: what kind of signature should that function have? I tried looking at with_index, which seems to work similarly, but only found C source
[21:24:19] argoneus: (the goal of the function is to return an enumerator/yield to a block all the numbers that aren't == 0
[21:24:21] pragmatism: `select { |n| n !=0 }`
[21:24:48] argoneus: I could use select, but I wanted to try and make a more... specialized function as an exercise
[21:24:49] pragmatism: `select { |n| n !=0 }.to_a`, in this case
[21:25:04] argoneus: since I was wondering how these functions worked
[21:25:20] baweaver: argoneus: Oh I have some fun for you then
[21:25:31] baweaver: Any of these posts I wrote - https://medium.com/@baweaver/reducing-enumerable-the-basics-fa042ce6806
[21:25:39] baweaver: They're all about making Enumerable functions using reduce
[21:26:11] baweaver: Either that or the draft chapter I have so far on Enumerable in the book I'm working on: https://baweaver.gitbooks.io/an-illustrated-guide-to-ruby/content/exquisite-enumerable.html
[21:26:17] baweaver: Though that one's definitely a lot more raw
[21:27:52] RickHull: >> my_numbers = [0,1,2,0,3]; def my_numbers.no_zeroes; self.select { |i| i != 0 }.each; end; my_numbers.no_zeroes.to_a
[21:27:53] ruby[bot]: RickHull: # => [1, 2, 3] (https://eval.in/908754)
[21:28:23] argoneus: ohhh, I'm an idiot
[21:28:40] argoneus: I'd need to have no_zeroes inside of Enumerable for this to work like that
[21:28:54] argoneus: reading that medium link made me realize
[21:29:17] quobo: has joined #ruby
[21:30:08] baweaver: >> module Enumerable; def count_by(&block) group_by(&block).map { |k,v| [k,v.size] }.to_h; end; end; [1,2,3,4,5,6].count_by(&:even?)
[21:30:09] ruby[bot]: baweaver: # => {false=>3, true=>3} (https://eval.in/908756)
[21:30:51] DTZUZO: has joined #ruby
[21:30:55] baweaver: self.x is redundant inside there
[21:31:34] baweaver: also: reject(&:zero?)
[21:31:51] cdg: has joined #ruby
[21:38:42] vipaca: has joined #ruby
[21:39:34] muelleme: has joined #ruby
[21:40:27] kitsunenokenja: has joined #ruby
[21:43:53] jeffreylevesque: has joined #ruby
[21:44:37] jenrzzz: has joined #ruby
[21:44:38] jenrzzz: has joined #ruby
[21:45:57] leitz: has joined #ruby
[21:46:04] cagomez: has joined #ruby
[21:51:15] cagomez: has joined #ruby
[21:59:40] cdg: has joined #ruby
[22:02:20] cdg: has joined #ruby
[22:03:45] moei: has joined #ruby
[22:05:19] ferg: has joined #ruby
[22:08:00] michaelzinn: has joined #ruby
[22:08:01] cdg_: has joined #ruby
[22:08:43] jenrzzz_: has joined #ruby
[22:09:08] mfb2: has joined #ruby
[22:09:42] JBbanks: has joined #ruby
[22:19:21] kobain: has joined #ruby
[22:19:21] jnyw: has joined #ruby
[22:20:24] Technodrome: has joined #ruby
[22:24:18] Brondius: has joined #ruby
[22:29:18] despai: has joined #ruby
[22:29:47] miskatonic: has joined #ruby
[22:29:55] jeffreylevesque: has joined #ruby
[22:31:08] johnpaul: has joined #ruby
[22:33:33] houhoulis: has joined #ruby
[22:33:48] jenrzzz: has joined #ruby
[22:33:48] jenrzzz: has joined #ruby
[22:36:01] mim1k: has joined #ruby
[22:38:48] despai: has joined #ruby
[22:42:07] orbyt_: has joined #ruby
[22:42:41] konsolebox: has joined #ruby
[22:43:56] despai: has joined #ruby
[22:46:26] mfb2: has joined #ruby
[22:46:41] nofxx__: has joined #ruby
[22:50:20] kitsunenokenja: has joined #ruby
[22:50:47] goyox86: has joined #ruby
[22:52:27] Vircung: has joined #ruby
[22:52:41] mson: has joined #ruby
[22:53:39] skweek: has joined #ruby
[22:59:32] mfb2: has joined #ruby
[23:01:23] shinnya: has joined #ruby
[23:05:00] chiggins: has joined #ruby
[23:05:28] thinkpad: has joined #ruby
[23:05:47] chiggins: Anyone use rest-client and need HTTP headers to be in a specific case? It's changing the capitalization on me and I think that's giving me errors
[23:09:10] mfb2: has joined #ruby
[23:09:56] michaelzinn: has joined #ruby
[23:13:14] tomphp: has joined #ruby
[23:13:15] goyox86: has joined #ruby
[23:14:36] elomatreb: chiggins: If that happens you have a standards violating server, that might be a more worthwhile fix if possible
[23:14:56] Yzguy: has joined #ruby
[23:15:04] nowhere_man: has joined #ruby
[23:16:42] chiggins: elomatreb: Server isn't under my control, I'm trying to utilize an API
[23:21:43] elomatreb: chiggins: If I'm reading the code correctly you should be able to pass your header key as a String, and it won't touch the capitalization then
[23:22:29] banisterfiend: has joined #ruby
[23:22:57] Guest90: has joined #ruby
[23:25:43] kitsunenokenja: has joined #ruby
[23:26:02] phenom: has joined #ruby
[23:29:11] Vircung: has joined #ruby
[23:31:52] postmodern: has joined #ruby
[23:36:08] chiggins: elomatreb: Nice. Thanks for the help
[23:38:01] goyox86: has joined #ruby
[23:38:58] chiggins: has left #ruby: ("WeeChat 1.7.1")
[23:39:06] herbmillerjr: has joined #ruby
[23:40:36] despai: has joined #ruby
[23:42:02] jnyw: has joined #ruby
[23:43:27] despai: has joined #ruby
[23:44:52] 07EAAI8AI: has joined #ruby
[23:46:21] rfoust: has joined #ruby
[23:46:29] despai: has joined #ruby
[23:48:35] 07EAAI8AI: has left #ruby: ()
[23:48:59] goyox86: has joined #ruby
[23:48:59] ahrs: has joined #ruby
[23:49:21] mfb2: has joined #ruby
[23:49:36] GodFather_: has joined #ruby
[23:50:15] tcopeland: has joined #ruby
[23:54:10] tomphp: has joined #ruby
[23:55:25] tomphp: has joined #ruby
[23:55:31] mfb2: has joined #ruby
[23:56:26] GodFather_: has joined #ruby
[23:56:58] pilne: has joined #ruby
[23:58:06] mfb2: has joined #ruby