« Back to channel list

#ruby - 15 April 2018

« Back 1 day Forward 1 day »
[00:00:02] lelliott: has joined #ruby
[00:00:07] despai: has joined #ruby
[00:00:27] mgraf: has joined #ruby
[00:02:55] schneider: has joined #ruby
[00:11:09] tAn: has joined #ruby
[00:12:05] schneider: has joined #ruby
[00:13:43] alfiemax: has joined #ruby
[00:21:11] schneider: has joined #ruby
[00:26:05] lelliott: has joined #ruby
[00:30:20] schneider: has joined #ruby
[00:30:43] cats: has joined #ruby
[00:31:39] alfiemax: has joined #ruby
[00:31:44] tdy: has joined #ruby
[00:39:25] schneider: has joined #ruby
[00:43:08] bmurt: has joined #ruby
[00:48:36] schneider: has joined #ruby
[00:48:56] ResidentBiscuit: has joined #ruby
[00:49:28] mroutis: has joined #ruby
[00:49:41] tAn: has joined #ruby
[00:57:45] schneider: has joined #ruby
[00:59:11] mtd^: has joined #ruby
[00:59:31] mtd^: has joined #ruby
[00:59:51] mtd^: has joined #ruby
[01:00:11] mtd^: has joined #ruby
[01:00:31] mtd^: has joined #ruby
[01:06:49] schneider: has joined #ruby
[01:15:17] alfiemax: has joined #ruby
[01:15:59] schneider: has joined #ruby
[01:25:05] schneider: has joined #ruby
[01:29:43] tAn: has joined #ruby
[01:31:30] dstrunk: has joined #ruby
[01:34:14] schneider: has joined #ruby
[01:41:40] alfiemax: has joined #ruby
[01:43:20] schneider: has joined #ruby
[01:48:35] noobineer: has joined #ruby
[01:48:52] ciscam: has joined #ruby
[01:50:52] dinfuehr: has joined #ruby
[01:51:08] konsolebox: has joined #ruby
[01:52:05] despai: has joined #ruby
[01:52:31] schneider: has joined #ruby
[01:56:03] cschneid_: has joined #ruby
[01:59:47] icarus: has joined #ruby
[02:01:39] schneider: has joined #ruby
[02:03:41] eckhardt: has joined #ruby
[02:06:51] tAn: has joined #ruby
[02:07:31] cschneid_: has joined #ruby
[02:10:44] schneider: has joined #ruby
[02:17:50] cschneid_: has joined #ruby
[02:18:23] jdawgaz: has joined #ruby
[02:19:52] schneider: has joined #ruby
[02:24:20] alfiemax: has joined #ruby
[02:25:20] mjolnird: has joined #ruby
[02:29:04] schneider: has joined #ruby
[02:29:12] Sammichmaker: has joined #ruby
[02:29:13] Sammichmaker: has joined #ruby
[02:29:19] shinnya: has joined #ruby
[02:34:45] arescorpio: has joined #ruby
[02:38:11] schneider: has joined #ruby
[02:39:36] armyriad: has joined #ruby
[02:46:42] dr3wo: has joined #ruby
[02:47:31] schneider: has joined #ruby
[02:51:16] tAn: has joined #ruby
[02:55:22] Bored1238: has joined #ruby
[02:55:47] apparition: has joined #ruby
[02:56:23] yxhuvud: has joined #ruby
[02:56:35] schneider: has joined #ruby
[02:58:13] erlend: has joined #ruby
[03:00:11] cadillac_: has joined #ruby
[03:00:30] noobineer: has joined #ruby
[03:04:56] kapil___: has joined #ruby
[03:05:45] schneider: has joined #ruby
[03:08:59] Bored1238: has joined #ruby
[03:14:50] schneider: has joined #ruby
[03:16:57] karapetyan: has joined #ruby
[03:18:10] comet23: has joined #ruby
[03:20:21] gix: has joined #ruby
[03:20:56] comet23: is there something wrong with me in not being able to pass upwork tests?
[03:23:08] segy: has joined #ruby
[03:23:14] cagmz: has joined #ruby
[03:23:25] baweaver: comet23 What do they test?
[03:23:44] comet23: they have tricky code
[03:24:01] comet23: and trick questions, maybe you have to be an expert
[03:24:01] schneider: has joined #ruby
[03:24:02] baweaver: you're going to have to be a lot more specific than that
[03:24:17] baweaver: whining about something being tricky is defeatist
[03:24:24] cagmz: How does the block in the first line know what 'tree_block' is? `tree_block = lambda{|h,k| h[k] = Hash.new(&tree_block) } ; opts = Hash.new(&tree_block)`
[03:24:26] baweaver: all problems are solveable
[03:24:34] baweaver: you just have to find the pieces to get there
[03:24:46] comet23: http://upworktestru.com/ruby-on-rails-test-upwork-answers-questions/
[03:25:39] cagmz: ie how does `Hash.new(&tree_block)` know what `tree_block`? What exactly is `tree_block referring to?
[03:26:09] baweaver: cagmz: that's a screwy way to make a vivified hash
[03:26:14] comet23: baweaver: what do you think is that like expert level stuff?
[03:27:05] baweaver: >> viv = Hash.new { |h,k| h[k] = Hash.new(&h.default_proc) }; viv[1][2][3] = 4; viv
[03:27:06] ruby[bot]: baweaver: # => {1=>{2=>{3=>4}}} (https://eval.in/988495)
[03:27:25] baweaver: comet23: are you allowed the use of Google?
[03:27:34] comet23: i don't think so
[03:27:39] comet23: i didn't use google
[03:27:57] comet23: i don't think so because it's timed you get 2 minutes per question
[03:28:09] cagmz: baweaver, so is `default_proc` self-referencing?
[03:28:10] baweaver: Honestly they're all pretty basic and you'd get to know a lot of them from just typical Rails development
[03:29:11] comet23: well i guess i should just give up lol
[03:29:20] baweaver: comet23: build rails applications
[03:29:32] baweaver: they probably don't hire novices, so it's already an uphill battle
[03:29:41] cagmz: sorry, can't contain my excitement. this is weird
[03:29:42] comet23: is there a place for novices?
[03:29:44] baweaver: this test will weed out most novice people
[03:30:00] pabs: has joined #ruby
[03:30:03] baweaver: Not that I know of. Most remote work wants an Intermediate or better
[03:30:23] comet23: so i have to work at a company then for a little bit is what you're saying
[03:30:36] baweaver: cagmz: The Hash constructor can take a default value or a block that it calls whenever it hits a key it can't find
[03:30:49] cagmz: `class HashHash < Hash; def default(key = nil); self[key] = self.class.new; end; end;` is this autovivifying as well?
[03:31:06] baweaver: that block is called the default proc
[03:31:07] baweaver: and because you're passing the hash in that block it can access said default_proc
[03:31:32] baweaver: comet23: pretty much, or start building actual apps for yourself
[03:31:51] comet23: what is the best way to get a job as a novice
[03:31:55] baweaver: They're not tricky or really hard questions, the assume a foundational knowledge of Rails or ability to find things
[03:32:11] baweaver: Look around locally
[03:32:20] cagmz: ah, so is `{ |h,k| h[k] = Hash.new(&h.default_proc) }` the default proc?
[03:32:37] cagmz: nice, thanks
[03:33:05] baweaver: want me to blow your mind cagmz?
[03:33:09] schneider: has joined #ruby
[03:33:13] baweaver: You can do a _lot_ more with blocks and procs in Ruby
[03:33:27] baweaver: https://github.com/baweaver/qo
[03:33:37] baweaver: Qo is going deep down that rabbit hole
[03:35:06] baweaver: people.select(&Qo[name: Qo.or(/Wallace/, /William/), age: 40..50]) # All people with William or Wallace in their name between 40 and 50 years of age
[03:36:02] tAn: has joined #ruby
[03:38:17] cagmz: is this `Benchmark`? https://github.com/baweaver/qo/blob/master/performance_report.txt
[03:38:32] baweaver: Yeah, see the Rakefile
[03:38:59] cagmz: ah ok. higher `i/s` is better, right?
[03:39:05] baweaver: I need to improve some of it later, but now it's not terrible.
[03:39:15] baweaver: Yep. Benchmark.ips
[03:40:00] cagmz: what's the main bottleneck? or better yet, how do you find bottlenecks in the first place?
[03:40:21] baweaver: Those are mainly sanity checks honestly
[03:41:06] baweaver: Like they made me realize strict equality was 40x slower so I added a strict equality check before everything to get that down to 20x
[03:41:08] baweaver: Mostly the slowdowns are from the fact that Qo tries to be very smart where possible
[03:41:28] baweaver: I have some ideas pre-1.0.0 to reduce that substantially
[03:41:46] cagmz: are any branches up with your ideas?
[03:42:01] baweaver: Not yet. Was writing an article on how it works first
[03:42:06] cagmz: ah nice!!
[03:42:13] schneider: has joined #ruby
[03:42:19] baweaver: Draft is up here - https://medium.com/@baweaver/for-want-of-pattern-matching-in-ruby-the-creation-of-qo-c3b267109b25
[03:43:05] baweaver: Needs editing and some refinements, but mostly ready
[03:43:07] baweaver: just need to fix the Proc bit
[03:45:53] cagmz: was the strict equality check before everything a way to "short circuit" something?
[03:46:25] baweaver: Basically don't bother checking if the key/method doesn't exist
[03:46:35] baweaver: I was hung up on making it permissive or strict
[03:48:13] cagmz: whoa. `-> a { a > 5 } === 6`. is the proc being called with 6?
[03:51:20] baweaver: By interfacing with both to_proc and === you can leverage a massive amount of power in Ruby
[03:51:21] schneider: has joined #ruby
[03:51:51] baweaver: especially post 2.6 after Enumerable methods take === responding objects
[03:53:22] baweaver: 2.5 supports it for any?, all?, none?, and one?
[03:54:54] eckhardt: has joined #ruby
[03:55:05] baweaver: Trying to make it a bit more digestible for Intermediate devs as it veers super advanced in some areas
[03:55:06] baweaver: ohai eckhardt
[03:55:16] eckhardt: ACTION waves
[03:55:37] baweaver: Writing a post - https://medium.com/@baweaver/for-want-of-pattern-matching-in-ruby-the-creation-of-qo-c3b267109b25
[04:00:33] schneider: has joined #ruby
[04:02:27] duderonomy: has joined #ruby
[04:03:18] dstrunk: has joined #ruby
[04:05:48] noobineer: has joined #ruby
[04:09:37] schneider: has joined #ruby
[04:11:08] bmurt: has joined #ruby
[04:12:22] noobineer: has joined #ruby
[04:12:46] eckhardt: baweaver whoa...i'm going back and *actually* reading about the === and that IPAddr trick *is* nice
[04:12:57] eckhardt: mindblown.gif
[04:16:10] fullstack_: has joined #ruby
[04:18:03] yxhuvud: has joined #ruby
[04:18:50] schneider: has joined #ruby
[04:20:04] tAn: has joined #ruby
[04:20:11] noobineer: has joined #ruby
[04:25:23] AndBobsYourUncle: has joined #ruby
[04:27:53] schneider: has joined #ruby
[04:37:01] schneider: has joined #ruby
[04:44:08] baweaver: Because IPAddr tries to do the same dang thing on ==, and crashes for non-serializable items XD
[04:46:16] schneider: has joined #ruby
[04:51:28] jdawgaz: has joined #ruby
[04:55:20] schneider: has joined #ruby
[04:59:58] baweaver: Post is out and finalized: https://medium.com/@baweaver/for-want-of-pattern-matching-in-ruby-the-creation-of-qo-c3b267109b25
[05:00:18] baweaver: So if you want to find all types of fun tricks for functions in Ruby give it a look
[05:04:31] schneider: has joined #ruby
[05:06:01] tAn: has joined #ruby
[05:06:59] erlend: has joined #ruby
[05:09:18] psychicist__: has joined #ruby
[05:13:37] schneider: has joined #ruby
[05:14:34] alfiemax: has joined #ruby
[05:15:05] Ryzokuken: has joined #ruby
[05:16:27] ciscam: has joined #ruby
[05:22:47] schneider: has joined #ruby
[05:25:00] Asher1: has joined #ruby
[05:31:56] schneider: has joined #ruby
[05:39:08] claudiuinberlin: has joined #ruby
[05:41:03] schneider: has joined #ruby
[05:43:09] tAn: has joined #ruby
[05:45:14] mtkd: has joined #ruby
[05:46:35] mtkd: has joined #ruby
[05:50:09] reber: has joined #ruby
[05:50:11] schneider: has joined #ruby
[05:55:23] cschneid_: has joined #ruby
[05:59:20] schneider: has joined #ruby
[06:08:25] schneider: has joined #ruby
[06:11:37] frewsxcv_old: has joined #ruby
[06:12:46] frewsxcv_old: has left #ruby: ()
[06:13:29] cschneid_: has joined #ruby
[06:16:56] nadir: has joined #ruby
[06:17:33] schneider: has joined #ruby
[06:23:39] karapetyan: has joined #ruby
[06:24:59] ciscam: has joined #ruby
[06:26:43] schneider: has joined #ruby
[06:27:53] tAn: has joined #ruby
[06:27:54] darkhanb: has joined #ruby
[06:36:14] schneider: has joined #ruby
[06:37:42] kapil___: I am using erb template. I want to print some variable at top of the file but the variable is calculated throughout the file
[06:40:55] tvw: has joined #ruby
[06:45:16] schneider: has joined #ruby
[06:46:00] darkhanb: has joined #ruby
[06:52:30] cschneid_: has joined #ruby
[06:54:01] booqu: has joined #ruby
[06:54:23] schneider: has joined #ruby
[06:57:47] mozzarella: you're doing complex calculation in your template files?
[06:58:53] mozzarella: is there any reason why it's not done elsewhere, such as in your controller or in a helper?
[06:58:54] cadillac_: has joined #ruby
[07:00:12] darkhanb: has joined #ruby
[07:00:43] kapil___: No it's because I want to know is actually printed or not?
[07:01:20] kapil___: Like I should only import file if it's used
[07:02:19] mozzarella: show us the file
[07:03:30] schneider: has joined #ruby
[07:09:13] kapil___: https://gist.github.com/kapilpipaliya/82e3cf8d3200898c413804b4ca45ccda
[07:11:02] ciscam: has joined #ruby
[07:11:45] tAn: has joined #ruby
[07:12:41] schneider: has joined #ruby
[07:15:42] erlend: has joined #ruby
[07:21:48] schneider: has joined #ruby
[07:22:26] suukim: has joined #ruby
[07:30:55] schneider: has joined #ruby
[07:32:58] ianfleeton: has joined #ruby
[07:36:39] cschneid_: has joined #ruby
[07:37:45] alex``: has joined #ruby
[07:39:08] mikecmpbll: has joined #ruby
[07:40:07] schneider: has joined #ruby
[07:43:46] mozzarella: kapil___: why can't you just move the code higher up?
[07:49:13] schneider: has joined #ruby
[07:52:16] tAn: has joined #ruby
[07:58:25] schneider: has joined #ruby
[08:01:59] VladGh_: has joined #ruby
[08:06:02] apparition: has joined #ruby
[08:07:29] schneider: has joined #ruby
[08:09:25] ianfleeton: has joined #ruby
[08:11:39] venmx: has joined #ruby
[08:12:39] karapetyan: has joined #ruby
[08:13:01] oleo: has joined #ruby
[08:16:35] schneider: has joined #ruby
[08:23:39] mtkd: has joined #ruby
[08:25:56] phaul: has joined #ruby
[08:26:36] ciscam: has joined #ruby
[08:28:07] govg: has joined #ruby
[08:28:18] biberu: has joined #ruby
[08:30:51] zach: has joined #ruby
[08:31:55] tAn: has joined #ruby
[08:41:20] roshanavand: has joined #ruby
[08:44:34] cschneid_: has joined #ruby
[08:45:03] sidx64: has joined #ruby
[08:45:35] hkais: has joined #ruby
[08:49:13] sidx64_: has joined #ruby
[08:52:43] imode: has joined #ruby
[08:53:49] clemens3_: has joined #ruby
[09:03:26] tAn: has joined #ruby
[09:03:30] mtkd: has joined #ruby
[09:06:24] Matthew1: has joined #ruby
[09:10:56] venmx: has joined #ruby
[09:16:53] mtkd: has joined #ruby
[09:17:44] marr: has joined #ruby
[09:19:26] oleo: has joined #ruby
[09:22:36] alfiemax: has joined #ruby
[09:24:26] amar: has joined #ruby
[09:24:27] erlend: has joined #ruby
[09:27:22] cschneid_: has joined #ruby
[09:30:25] ianfleeton: has joined #ruby
[09:35:35] shinnya: has joined #ruby
[09:36:30] burgestrand: has joined #ruby
[09:41:13] alfiemax: has joined #ruby
[09:46:59] sameerynho: has joined #ruby
[09:56:19] \void: has joined #ruby
[09:57:41] ciscam: has joined #ruby
[10:24:51] clemens3_: has joined #ruby
[10:34:23] karapetyan: has joined #ruby
[10:35:52] madgen: has joined #ruby
[10:38:25] cschneid_: has joined #ruby
[10:40:32] ianfleeton: has joined #ruby
[10:40:51] schneider: has joined #ruby
[10:46:52] psychici1t__: has joined #ruby
[10:48:59] schneider: has joined #ruby
[10:50:21] psychicist__: has joined #ruby
[10:51:03] John_Ivan: has joined #ruby
[10:51:03] John_Ivan: has joined #ruby
[10:53:02] camilasan: has joined #ruby
[10:56:39] venmx: has joined #ruby
[10:58:10] schneider: has joined #ruby
[11:07:36] schneider: has joined #ruby
[11:08:21] Sylario: has joined #ruby
[11:11:11] ellcs: has joined #ruby
[11:14:41] nowhere_man: has joined #ruby
[11:16:26] schneider: has joined #ruby
[11:16:59] cschneid_: has joined #ruby
[11:17:20] kapil___: has joined #ruby
[11:18:14] kapil___: mozzarella: I can't move code higher up because it prints something
[11:20:07] jinie: has joined #ruby
[11:20:34] apeiros: has joined #ruby
[11:25:13] AJA4350: has joined #ruby
[11:25:32] schneider: has joined #ruby
[11:30:26] claudiuinberlin: has joined #ruby
[11:33:13] erlend: has joined #ruby
[11:34:40] schneider: has joined #ruby
[11:36:11] sidx64: has joined #ruby
[11:36:38] mozzarella: kapil___: use a temporary variable then?
[11:36:54] the_drow: has joined #ruby
[11:37:59] sidx64_: has joined #ruby
[11:38:22] the_drow: How do I raise a different exception if its('stderr') { should match Regexp.escape("Connection to #{LXC_CONTAINER_IP} 22 port [tcp/ssh] succeeded!") } fails with a specific value?
[11:41:29] the_drow: I'd like to retry the test only if a specific failure has occured
[11:43:45] schneider: has joined #ruby
[11:44:29] mozzarella: kapil___: https://gist.github.com/sam113101/fffbb9671da64d549204bd9627bf32dd
[11:46:05] banisterfiend: has joined #ruby
[11:48:50] karapetyan: has joined #ruby
[11:51:01] jinie: has joined #ruby
[11:52:55] schneider: has joined #ruby
[11:55:48] ciscam: has joined #ruby
[11:57:27] redlegion: has joined #ruby
[12:02:02] schneider: has joined #ruby
[12:04:46] kapil___: Mozzarella thanks a lot
[12:06:34] BTRE: has joined #ruby
[12:09:13] Vamava: has joined #ruby
[12:10:02] Vamava: Anyone here know how to use Azure SDK for ruby with SAS (shared access signature)?
[12:11:15] schneider: has joined #ruby
[12:14:05] x0F: has joined #ruby
[12:15:54] the_drow: How do I shut down a process I spawned using Ruby?
[12:21:18] despai: has joined #ruby
[12:22:16] schneider: has joined #ruby
[12:25:14] TinkerT: has joined #ruby
[12:27:12] cschneid_: has joined #ruby
[12:31:20] schneider: has joined #ruby
[12:32:57] deadnull: has joined #ruby
[12:35:35] tomphp: has joined #ruby
[12:36:36] Guest41814: has joined #ruby
[12:40:27] schneider: has joined #ruby
[12:44:42] cadillac_: has joined #ruby
[12:48:40] jdawgaz: has joined #ruby
[12:49:29] karapetyan: has joined #ruby
[12:49:41] schneider: has joined #ruby
[12:58:45] schneider: has joined #ruby
[12:59:19] banisterfiend: has joined #ruby
[13:01:21] p0p0pr37_: has joined #ruby
[13:01:21] p0p0pr37_: has joined #ruby
[13:04:29] cschneid_: has joined #ruby
[13:05:18] p0p0pr37: has joined #ruby
[13:05:18] p0p0pr37: has joined #ruby
[13:06:52] chihhsin: has joined #ruby
[13:07:55] schneider: has joined #ruby
[13:10:32] dr3wo: has joined #ruby
[13:10:59] mtkd: has joined #ruby
[13:11:43] the_drow_: has joined #ruby
[13:14:24] despai: has joined #ruby
[13:17:06] schneider: has joined #ruby
[13:17:16] Ryzokuken: has joined #ruby
[13:17:42] claudiuinberlin: has joined #ruby
[13:18:39] Guest41814: has joined #ruby
[13:21:03] alfiemax: has joined #ruby
[13:28:01] schneider: has joined #ruby
[13:34:39] apeiros: has joined #ruby
[13:37:11] schneider: has joined #ruby
[13:39:40] dr3w__: has joined #ruby
[13:41:57] erlend: has joined #ruby
[13:48:59] dr3wo: has joined #ruby
[13:55:11] GodFather: has joined #ruby
[13:58:05] kies: has joined #ruby
[13:59:21] darkhanb: has joined #ruby
[14:04:11] kurko_: has joined #ruby
[14:05:14] the_drow__: has joined #ruby
[14:06:38] Dimik: has joined #ruby
[14:06:58] Strepsils: has joined #ruby
[14:08:42] the_drow: has joined #ruby
[14:09:56] cschneid_: has joined #ruby
[14:12:21] ^mtkd: has joined #ruby
[14:13:35] gr33n7007h: has joined #ruby
[14:13:45] tomphp: has joined #ruby
[14:16:43] venmx: has joined #ruby
[14:21:25] schneider: has joined #ruby
[14:24:48] duderonomy: has joined #ruby
[14:25:11] karapetyan: has joined #ruby
[14:25:33] cschneid_: has joined #ruby
[14:26:38] yeticry: has joined #ruby
[14:30:30] schneider: has joined #ruby
[14:35:22] darkhanb: has joined #ruby
[14:38:55] tvw: has joined #ruby
[14:39:43] schneider: has joined #ruby
[14:45:51] mtkd: has joined #ruby
[14:53:53] schneider: has joined #ruby
[14:54:56] kapil___: has joined #ruby
[14:58:29] chouhoulis: has joined #ruby
[15:02:57] schneider: has joined #ruby
[15:03:37] Mike11: has joined #ruby
[15:06:10] Guest41814: Is there some kind of syntax or Ruby convention for linking, say, a DomainRegistrar class with a Domain class, within a project? Like, in SQL I can say that "DomainRegistrar HAS Domain"
[15:06:33] comet23: has joined #ruby
[15:10:10] cschneid_: has joined #ruby
[15:12:07] schneider: has joined #ruby
[15:20:45] nicesignal: has joined #ruby
[15:20:52] alfiemax: has joined #ruby
[15:21:14] schneider: has joined #ruby
[15:23:13] hkais: has joined #ruby
[15:29:36] karapetyan: has joined #ruby
[15:30:20] schneider: has joined #ruby
[15:30:33] TinkerT: has joined #ruby
[15:31:10] cagmz: the_drow, how did you spawn it?
[15:31:20] the_drow: nm already got it...
[15:35:55] schneider: has joined #ruby
[15:39:37] cagmz: if I call `super` from in method :name in Person < User, will the call return to the Person class after calling `name` in User?
[15:41:47] nicesignal: has joined #ruby
[15:42:56] despai: has joined #ruby
[15:48:47] cschneid_: has joined #ruby
[15:50:14] erlend: has joined #ruby
[15:55:15] schneider: has joined #ruby
[16:02:14] ryzokuken__: has joined #ruby
[16:02:20] chouhoulis: has joined #ruby
[16:02:38] mtkd: has joined #ruby
[16:04:27] schneider: has joined #ruby
[16:04:50] venmx: has joined #ruby
[16:05:00] cyberg: has joined #ruby
[16:13:34] schneider: has joined #ruby
[16:14:02] quarters: has joined #ruby
[16:14:58] quarters: hello. I was trying to run bundle install with rbenv but am getting this message: "rbenv: ruby_executable_hooks: command not found"
[16:15:18] leitz: has joined #ruby
[16:15:41] leitz: Ideas on how to fix a missing symbol? symbol lookup error: /usr/local/lib/ruby/2.0.0/x86_64-linux/openssl.so: undefined symbol: rb_str_new_static
[16:16:17] leitz: had od rebu-devel rpm installed. Removed it, then tried again with same effect.
[16:17:57] leitz: "old ruby-devel", different keyboard, different angle..
[16:19:40] SirFunk: has joined #ruby
[16:20:31] apeiros: has joined #ruby
[16:21:39] alfiemax: has joined #ruby
[16:22:45] schneider: has joined #ruby
[16:25:09] dr3wo: has joined #ruby
[16:28:27] noobineer: has joined #ruby
[16:31:47] schneider: has joined #ruby
[16:33:12] dr3wo: has joined #ruby
[16:33:38] jdawgaz: has joined #ruby
[16:34:02] havenwood: ?rbenv quarters
[16:34:02] ruby[bot]: quarters: Missing command under rbenv? Did you try `rbenv rehash`?
[16:34:40] havenwood: Or you might even say: Missing a command under rbenv? Switch to chruby.
[16:36:04] havenwood: quarters: Though executable hooks looks like you have RVM remnants.
[16:36:24] havenwood: quarters: What do you get for?: command -v bundle
[16:36:33] havenwood: quarters: And: gem which bundler
[16:37:04] imode: has joined #ruby
[16:37:10] havenwood: quarters: With your rbenv Ruby, try: gem install bundler && rbenv rehash
[16:37:19] cschneid_: has joined #ruby
[16:38:46] quarters: havenwood: I'm trying to work on a project here: github.com/github/classroom which requires rbenv. Otherwise, I'd use another ruby version manager. but yeah, I moved from rvm and ran rbenv rehash
[16:39:03] havenwood: quarters: And bundler is installed with the rbenv Ruby?
[16:39:42] havenwood: (The fact that executable_hooks are involved makes me thing you're hitting an RVM bunder executable.
[16:40:12] quarters: command -v bundle => ~/.rbenv/shims/bundle and gem which bundler => ~/.gem/ruby/2.4.0/gems/bundler-1.15.3/lib/bundler.rb
[16:40:43] \void: has joined #ruby
[16:40:56] schneider: has joined #ruby
[16:41:12] havenwood: quarters: Maybe a?: gem pristine bundler
[16:41:20] havenwood: quarters: Same error?
[16:43:08] quarters: ah, I had jruby-1.7.4 installed and running bundle install led to it prompting me that bundle install exists on that version of ruby
[16:43:15] quarters: so I just uninstalled it for now
[16:43:44] quarters: kind of a brute way of doing it. hopefully I'll figure out how to keep that version of ruby and get it to work
[16:44:00] quarters: but uninstalling jruby made the script work
[16:46:19] chouhoul_: has joined #ruby
[16:47:41] SirFunk: has joined #ruby
[16:50:09] schneider: has joined #ruby
[16:56:17] cschneid_: has joined #ruby
[16:59:18] schneider: has joined #ruby
[17:03:04] mtkd: has joined #ruby
[17:03:16] mynameisdebian: has joined #ruby
[17:08:24] schneider: has joined #ruby
[17:10:04] orbyt_: has joined #ruby
[17:11:03] phate408: has joined #ruby
[17:12:32] leitz: I had forgotten how hard compiling Ruby from soruce was.
[17:13:26] leitz: Well, it has jumped into the impossible, absent deeper understanding.
[17:17:30] schneider: has joined #ruby
[17:19:11] cschneid_: has joined #ruby
[17:20:38] AndBobsYourUncle: has joined #ruby
[17:22:21] SirFunk: has joined #ruby
[17:23:32] phaul: codewars has MRI 2.5.0! \o/ no more inject :+ :)
[17:23:36] jaredrhine: has joined #ruby
[17:26:40] schneider: has joined #ruby
[17:27:42] GodFather_: has joined #ruby
[17:32:12] kurko_: has joined #ruby
[17:35:58] schneider: has joined #ruby
[17:37:57] mtkd: has joined #ruby
[17:41:08] schneider: has joined #ruby
[17:46:23] icarus: has joined #ruby
[17:50:15] schneider: has joined #ruby
[17:52:29] apeiros: has joined #ruby
[17:54:03] apeiros: has joined #ruby
[17:59:01] erlend: has joined #ruby
[17:59:24] schneider: has joined #ruby
[18:01:02] cadillac_: has joined #ruby
[18:03:06] amar: has joined #ruby
[18:04:29] elopnrocs: has joined #ruby
[18:06:05] elopnrocs: Does someone think they can help me transliterate 3-4 liner scripts in an mirc bot into some kind of ruby irc bot framework? It's just writing to text files, filtering out links and commands with prefixes, then reading random lines from said text file.
[18:06:55] elopnrocs: Well I can't figure out how to use mirc to do the regex filtering, I'm sure ruby has something I can use that's much more efficient and fast
[18:07:43] leitz: Documenting my effrots to compile Ruby afer a desktop rebuild. Not going so hot. https://github.com/LeamHall/ruby_compile/blob/master/docs/process.txt
[18:13:14] schneider: has joined #ruby
[18:13:22] Asher: has joined #ruby
[18:15:45] havenwood: leitz: Try my ruby-install-nightly script! :-)
[18:15:47] havenwood: leitz: https://gist.github.com/havenwood/823382815cbdcfddadd798d4042023a8
[18:16:15] havenwood: I guess I shouldn't hardcode --with-jemalloc >.>
[18:16:33] havenwood: I haven't generalized it into a tool yet.
[18:16:33] leitz: Or zsh. :)
[18:16:46] havenwood: well, the zsh bit is intentional
[18:16:51] havenwood: who doesn't have zsh?
[18:17:17] venmx: has joined #ruby
[18:17:25] havenwood: typically those who don't have bash either
[18:17:30] leitz: ACTION looks and Usage and says "plbbght"
[18:17:48] havenwood: "plbbght"? whaat? haha
[18:17:50] leitz: not really.
[18:19:00] leitz: You can load most anyting on a desktop. But if you're just doing desktop, wy use Linux?
[18:19:34] leitz: Run it as root?
[18:20:33] delle: has joined #ruby
[18:20:36] havenwood: I was just doing git subcommand example in bash, zsh and crystal. It's interesting to compare.
[18:20:57] havenwood: bash: https://gist.github.com/havenwood/f2a4d64b2cdaa7c913296f4a9c13ee4f
[18:21:04] havenwood: zsh: https://gist.github.com/havenwood/eeef08ab645b2c8df343bf9b641268aa
[18:21:10] havenwood: crystal: https://gist.github.com/havenwood/1fc7eae317f8be8077156768191c0789
[18:21:16] leitz: First error: /usr/bin/env: zsh -e: No such file or directory
[18:21:34] leitz: Right after zsh is installed.
[18:21:48] havenwood: why doesn't env know about it?
[18:22:03] havenwood: is it the -e flag?
[18:22:14] sameerynho: has joined #ruby
[18:22:22] havenwood: leitz: that's disturbing.
[18:22:24] schneider: has joined #ruby
[18:22:35] leitz: Gimme a sec, working on it.
[18:23:03] leitz: Yup, removing '-e' lets it move forward.
[18:23:23] havenwood: leitz: Oops, I didn't know that wasn't portable. Thanks!
[18:23:39] leitz: Will send you the error file in a sec. :)
[18:24:35] havenwood: Without the -e it'll try to proceed after an error. I should probably inline the -e so env doesn't bork.
[18:26:10] leitz: havenwood, https://github.com/LeamHall/ruby_compile/blob/master/havenwood/havenwood.sh.log
[18:26:48] leitz: And sorry for being grumpy. I was hoping to work on rspec this weekend and have spent all my code brain time trying to update Ruby.
[18:28:02] schneider: has joined #ruby
[18:29:24] fiachetti: has joined #ruby
[18:37:57] leitz: havenwood, especially since it fails make and then says it installed successfully. :)
[18:38:11] havenwood: leitz: that's just because of the removal of -e
[18:40:01] leitz: What I had set up was 1. Use Ruby 1.8.7 (default) to build Ruby 2.0.0. Then use Ruby 2.0.0 to build 2.6.0. I'm missing some rpm though, the 2.0.0 build is failiing.
[18:40:11] havenwood: leitz: I made the script of macOS, and haven't yet tried to make it portable at all.
[18:40:23] leitz: havenwood, CentOS 6 here.
[18:41:44] schneider: has joined #ruby
[18:42:02] leitz: I was just pointing out, elsewhere, that Go quit supporting some of the older Macs. LIke most of the ones we have. :(
[18:42:57] havenwood: leitz: Can you use SCL packages? The rh-ruby24 would be very tempting to me if I was on CentOS right now.
[18:43:42] havenwood: https://www.softwarecollections.org/en/scls/rhscl/rh-ruby24/
[18:43:57] leitz: I'm trying to get to 2.6.0. I really got tired of people telling me to upgrade after several dozen times of telling them I can't upgrade at work. So I just code for myself and have failed to get Ruby any traction at work.
[18:44:30] havenwood: leitz: I should make that ruby-install-nightly script portable.
[18:45:18] havenwood: leitz: I'd personally shoot for 2.5.1, just since 2.6 won't be out 'till Christmas.
[18:45:36] leitz: I had one that sort of worked, was writing an Ansible playbook for it.
[18:45:42] havenwood: The nightly is a slightly better bet than master.
[18:45:43] havenwood: (If you want bleeding edge.)
[18:45:44] n008f4g_: has joined #ruby
[18:46:03] clemens3_: has joined #ruby
[18:46:18] havenwood: leitz: Though in 2.6-nightly you get #filter, so that's a pretty good reason. :-)
[18:46:34] mtkd: has joined #ruby
[18:48:10] leitz: I'm more the "either sit still or keep moving forward" type.
[18:48:28] darkhanb: has joined #ruby
[18:48:38] leitz: And, like I said, the whole "you should upgrade" think left a very bad taste in my mouth.
[18:50:06] leitz: So now it's "Can't stay still, can't go forward.".
[18:50:15] havenwood: I typically shoot for latest stable.
[18:50:36] leitz: Forturnately on IRC you can't hear what I'm trying hard not to say. :P
[18:50:52] leitz: I usually go for "It if can't be installed or used, find something else."
[18:50:56] schneider: has joined #ruby
[18:52:33] leitz: I would like to figure out what I'm missing and document that. Not smart enough, it seems.
[18:53:30] phaul: quick one liner challange. https://www.codewars.com/kata/5acd142a2ec8c48521000104 who can come up with the shortest code?
[18:56:20] havenwood: phaul: Well, not exactly golf - but here's my solution: digits.map(&:abs2).reverse.join.to_s
[18:56:41] havenwood: >> 64.digits.map(&:abs2).reverse.join.to_i #phaul
[18:56:42] ruby[bot]: havenwood: # => undefined method `digits' for 64:Fixnum (NoMethodError) ...check link for more (https://eval.in/988660)
[18:56:49] al2o3-cr: that's exactly the same as mine :)
[18:56:49] havenwood: well, ruby 2.4+
[18:58:35] havenwood: phaul: n.digits.reverse.map(&:abs2)*''
[18:59:22] phaul: that's indeed shorter :)
[18:59:38] Bored1238: has joined #ruby
[19:00:03] schneider: has joined #ruby
[19:00:07] havenwood: oh yeah, to_i
[19:01:04] havenwood: I guess if it wan't golf I might not use a string at all.
[19:01:06] apeiros: "Spacing shouldn't be more than 30% of your total to avoid possible cheats"
[19:01:14] apeiros: reminds me of when I used newlines+spaces+eval
[19:01:45] phaul: the abs2 trick was nice, TIL abs2
[19:02:42] mtkd: has joined #ruby
[19:04:15] phaul: also the * for join. Never seen that one either
[19:04:53] cschneid_: has joined #ruby
[19:07:41] apeiros: the problem with * is that it's difficult to chain
[19:09:10] schneider: has joined #ruby
[19:09:12] phaul: but none of that matters here :)
[19:09:42] havenwood: phaul: Here's a solution that doesn't use a string: 64.digits.map(&:abs2).zip(0.step(by: 2).lazy.map { |n| 10 ** n }).map { |a, b| a * b }.sum #=> 3616
[19:09:58] Azure|dc: has joined #ruby
[19:10:51] alfiemax: has joined #ruby
[19:11:09] havenwood: phaul: Better written as: 64.digits.map.with_index { |n, i| n.abs2 * 10 ** (i * 2) }.sum
[19:15:42] havenwood: phaul: This come in just below the golf limit while still keeping it mathy: n.digits.map.with_index { |n, i| n * n * 10 ** (i * 2) }.sum
[19:18:18] schneider: has joined #ruby
[19:19:10] mrush: has joined #ruby
[19:19:41] antoine: has joined #ruby
[19:20:35] tomphp: has joined #ruby
[19:20:51] dionysus69: has joined #ruby
[19:22:38] leitz: havenwood, before the need to rebuild, this is the update script I was using. https://github.com/LeamHall/ruby_admin_tools/blob/master/bin/make_new_language.sh
[19:22:47] cschneid_: has joined #ruby
[19:22:48] armyriad: has joined #ruby
[19:22:52] leitz: Needs work, though.
[19:23:09] Yzguy: has joined #ruby
[19:23:27] jaredrhine: has joined #ruby
[19:25:27] alfiemax: has joined #ruby
[19:26:20] havenwood: And the benchmarks confirm, mathy is fast: https://gist.github.com/havenwood/09d6d9389835339ce42e2ec359f36da3
[19:27:24] schneider: has joined #ruby
[19:30:26] mtkd: has joined #ruby
[19:32:05] leitz: Finally got Ruby 2.6.0 to build. Looks like it needs some libraries from the rpm list. https://github.com/LeamHall/ruby_compile/blob/master/docs/added_rpms.txt
[19:32:19] leitz: Not sure how to figure out which one(s).
[19:36:36] schneider: has joined #ruby
[19:40:12] Tempesta: has joined #ruby
[19:41:40] dr3wo: has joined #ruby
[19:45:42] schneider: has joined #ruby
[19:54:50] schneider: has joined #ruby
[19:55:33] quobo: has joined #ruby
[19:57:35] ltem: has joined #ruby
[20:00:28] orbyt_: has joined #ruby
[20:02:17] leitz: Any comment on why L23 can't seem to replace L26? https://github.com/LeamHall/expense_tracker/blob/chapter_5/spec/unit/app/api_spec.rb
[20:02:46] leitz: Getting "undefined local variable or method "body".
[20:03:22] leitz: Ah, using @body works.
[20:03:59] schneider: has joined #ruby
[20:04:03] karapetyan: has joined #ruby
[20:06:38] cadillac_: has joined #ruby
[20:07:49] erlend: has joined #ruby
[20:08:09] TvL2386: has joined #ruby
[20:09:48] karapetyan: has joined #ruby
[20:09:50] mynameisdebian: has joined #ruby
[20:13:03] schneider: has joined #ruby
[20:15:06] noobineer: has joined #ruby
[20:18:10] dkphenom: has joined #ruby
[20:20:11] cadillac_: has joined #ruby
[20:22:14] schneider: has joined #ruby
[20:24:13] n008f4g_: has joined #ruby
[20:29:27] ramfjord: has joined #ruby
[20:31:23] schneider: has joined #ruby
[20:35:54] neohunter: has joined #ruby
[20:36:03] Yzguy: has joined #ruby
[20:36:28] neohunter: is there any recommendation about the limit of nested namespaces?
[20:36:52] Yzguy: has joined #ruby
[20:36:56] neohunter: I've this: `BatchInterface::SampleProvider::DataStructure::LovDictionary
[20:37:01] neohunter: is too much?
[20:37:40] Yzguy: has joined #ruby
[20:38:16] despai: has joined #ruby
[20:38:27] Yzguy: has joined #ruby
[20:39:15] Yzguy: has joined #ruby
[20:40:02] eblip: has joined #ruby
[20:40:06] eb0t_: has joined #ruby
[20:40:32] schneider: has joined #ruby
[20:44:48] leitz: neohunter, usually try to keep good screen spacing. That says whatever is using that namespace may know a lot about the insides of your classes.
[20:45:39] leitz: That said, I'm just a wannabe coder. :)
[20:46:15] konsolebox: if LovDictionary is an example of a DataStructure i wouldn't agree with the style
[20:47:25] dviola: has joined #ruby
[20:47:57] eckhardt: has joined #ruby
[20:49:37] schneider: has joined #ruby
[20:52:01] c0ncealed1: has joined #ruby
[20:55:33] TvL2386: has joined #ruby
[20:56:56] Axsuul: has joined #ruby
[20:58:47] schneider: has joined #ruby
[21:03:24] mtkd: has joined #ruby
[21:07:52] schneider: has joined #ruby
[21:09:33] banisterfiend: has joined #ruby
[21:12:17] chouhoulis: has joined #ruby
[21:13:34] ellcs: has joined #ruby
[21:15:24] banisterfiend: baweaver jesus you have so many unfathomable SJW douchebags working at stripe
[21:15:53] banisterfiend: (yourself not included, ofc)
[21:16:58] alfiemax: has joined #ruby
[21:17:00] schneider: has joined #ruby
[21:18:14] mr-robert: hi banisterfiend
[21:18:25] banisterfiend: mr-robert hey what's up
[21:18:51] mr-robert: nothing much. good to see you here
[21:19:11] banisterfiend: you too. brb gogtta change treins, just seeing ruby in amsterda, now heading home
[21:19:14] banisterfiend: gotta change trains in schipol
[21:26:25] schneider: has joined #ruby
[21:29:32] banisterfiend: has joined #ruby
[21:32:47] banisterfiend: mr-robert rusp
[21:33:04] mr-robert: heading to sleep
[21:33:19] ur5us: has joined #ruby
[21:34:00] d5sx43_: has joined #ruby
[21:34:36] jud: has joined #ruby
[21:35:33] schneider: has joined #ruby
[21:35:51] banisterfiend: mr-robert sleep well
[21:38:19] ur5us_: has joined #ruby
[21:39:51] orbyt_: has joined #ruby
[21:39:59] cyberg: has joined #ruby
[21:43:07] Synthead: has joined #ruby
[21:44:32] Synthead: I'm trying to send raw XML via Faraday, and the server is giving 500s where cURL'ing the same data works fine
[21:44:44] schneider: has joined #ruby
[21:45:00] Synthead: is there some way that I have to configure Faraday to make this work? perhaps it's trying to encode the data somehow?
[21:49:17] d5sx43_: has joined #ruby
[21:53:27] Axsuul: has joined #ruby
[21:53:53] schneider: has joined #ruby
[22:01:17] jaredrhine: has joined #ruby
[22:03:03] schneider: has joined #ruby
[22:07:03] mynameisdebian: has joined #ruby
[22:12:06] schneider: has joined #ruby
[22:14:16] jeffreylevesque: has joined #ruby
[22:15:19] gnotc: has joined #ruby
[22:16:33] erlend: has joined #ruby
[22:18:21] banisterfiend: has joined #ruby
[22:20:05] sameerynho: has joined #ruby
[22:21:12] schneider: has joined #ruby
[22:26:48] alfiemax: has joined #ruby
[22:29:40] cschneid_: has joined #ruby
[22:37:18] dr3wo: has joined #ruby
[22:41:47] Synthead: is there a way I can see the submitted body in faraday requests?
[22:43:50] postmodern: has joined #ruby
[22:48:00] tao_: has joined #ruby
[22:51:21] ciscam: has joined #ruby
[22:54:12] Asher: has joined #ruby
[22:54:36] karapetyan: has joined #ruby
[23:01:02] gnufied: has joined #ruby
[23:07:39] eckhardt: has joined #ruby
[23:10:29] schneider: has joined #ruby
[23:14:06] Synthead: has joined #ruby
[23:16:53] schneider: has joined #ruby
[23:19:16] alfiemax: has joined #ruby
[23:23:22] ResidentBiscuit: has joined #ruby
[23:23:33] schneider: has joined #ruby
[23:24:33] dr3wo: has joined #ruby
[23:27:31] diego2: has joined #ruby
[23:29:11] redlegion: has joined #ruby
[23:36:11] neohunter: has joined #ruby
[23:38:40] schneider: has joined #ruby
[23:47:48] schneider: has joined #ruby
[23:53:25] madgen: has joined #ruby
[23:56:57] schneider: has joined #ruby
[23:57:13] ResidentBiscuit: has joined #ruby