« Back to channel list

#ruby - 07 August 2017

« Back 1 day Forward 1 day »
[00:05:11] mim1k: has joined #ruby
[00:05:16] elcontrastador: has joined #ruby
[00:06:15] ascarter: has joined #ruby
[00:09:38] mjolnird: has joined #ruby
[00:14:57] LiamW: impermanence: what exactly does it do?
[00:15:36] LiamW: it looks like a mapreduce sort of thing
[00:16:00] impermanence: LiamW: hey. It loops through an array of string and counts same elements in a row, i.e. [1, 1, 2, 1, 2, 2] = 1: 2, 2: 1, 1: 1, 2: 2
[00:16:15] impermanence: yes I guess it is if that is what mapreduce means.
[00:16:22] impermanence: I've been wondering
[00:16:32] LiamW: no this isn't map reduce
[00:16:41] LiamW: but there's shorthand for this
[00:16:49] Radar: chunk will probably do that
[00:16:59] LiamW: chunk and group_by
[00:17:03] impermanence: I tried using a ternary but no love
[00:17:14] Radar: Yup: https://stackoverflow.com/a/8163891/15245
[00:17:39] Radar: >> [1, 1, 2, 1, 2, 2].chunk{|y| y}.map{|y, ys| [y, ys.length]}
[00:17:41] ruby[bot]: Radar: # => [[1, 2], [2, 1], [1, 1], [2, 2]] (https://eval.in/842119)
[00:17:49] havenwood: >> [1, 1, 2, 1, 2, 2].chunk(&:itself).map { |k, v| [k, v.size] }
[00:17:55] ruby[bot]: havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[00:19:01] bmurt: has joined #ruby
[00:19:08] impermanence: havenwood: yeah (lamenting) that's what I was trying to head for, lol.
[00:20:23] LiamW: >> Process.wait
[00:20:24] ruby[bot]: LiamW: # => (https://eval.in/842120)
[00:20:34] LiamW: wat, it didn't error?
[00:20:53] LiamW: "Forbidden syscall waitpid"
[00:21:35] LiamW: how do I stop getting nerd baited
[00:25:21] impermanence: havenwood: your line moved my "algorithm" to one line, lol.
[00:25:48] impermanence: havenwood: some_array.chunk(&:itself).map { |k, v| Pair.new(first: k, second: v.size) }
[00:26:11] LiamW: what's with the Pair class
[00:26:23] bmurt: has joined #ruby
[00:26:33] LiamW: ACTION leaves impermanence to go ponder its existence
[00:27:33] impermanence: LIamW: heh, it's an instantiation w/ two values is all. I edited code to remove what I at least thought were superfluous details.
[00:27:51] LiamW: yeah but why do you need a pair class
[00:27:57] LiamW: also you can tab complete nicks
[00:28:15] impermanence: LiamW: sorry, yes I know.
[00:28:24] impermanence: Pair is an API I guess.
[00:28:54] nobitanobi: has joined #ruby
[00:28:54] LiamW: why not just a 2-tuple (array)
[00:30:41] impermanence: LiamW: It's an exercise :|
[00:33:03] impermanence: has joined #ruby
[00:33:27] impermanence: chunk was exactly what I was looking. I'm going to read through Enumerable many times.
[00:34:14] rgtk: has joined #ruby
[00:34:16] raul782: has joined #ruby
[00:36:00] Trynemjoel: has joined #ruby
[00:36:27] cadillac_: has joined #ruby
[00:39:35] yabbes: has joined #ruby
[00:39:53] digitalnomad: has joined #ruby
[00:46:14] knight33: has joined #ruby
[00:49:10] jeffreylevesque: has joined #ruby
[00:57:00] beilabs: has joined #ruby
[01:00:30] ziyangtian2: has joined #ruby
[01:01:07] eightlimbed_: has joined #ruby
[01:03:07] RahulT: has joined #ruby
[01:09:36] aurelien`: has joined #ruby
[01:09:58] mim1k: has joined #ruby
[01:12:07] ascarter: has joined #ruby
[01:15:46] enodata: has joined #ruby
[01:18:00] LiamW: has left #ruby: ("WeeChat 1.8")
[01:20:18] millerti: has joined #ruby
[01:24:10] ekinmur: has joined #ruby
[01:27:16] mim1k: has joined #ruby
[01:28:15] gizmore|2: has joined #ruby
[01:32:46] RahulT: has joined #ruby
[01:35:27] mjolnird: has joined #ruby
[01:36:15] beilabs: has joined #ruby
[01:36:46] logicscience: has joined #ruby
[01:45:34] mim1k: has joined #ruby
[01:46:44] P_R_Deltoid: has joined #ruby
[01:48:53] sneakerhax: has joined #ruby
[01:53:44] Xiti: has joined #ruby
[01:55:02] RahulT: has joined #ruby
[01:56:27] beilabs: has joined #ruby
[02:00:37] raul782: has joined #ruby
[02:06:11] mim1k: has joined #ruby
[02:10:09] Joufflu: has joined #ruby
[02:11:33] pb122: has joined #ruby
[02:11:52] cschneid_: has joined #ruby
[02:12:52] charliesome: has joined #ruby
[02:19:03] SeepingN: has joined #ruby
[02:20:19] ascarter: has joined #ruby
[02:24:41] jnollette: has joined #ruby
[02:31:44] kobain: has joined #ruby
[02:34:30] eightlimbed_: has joined #ruby
[02:38:32] ecuanaso: has joined #ruby
[02:41:33] goyox86: has joined #ruby
[02:57:54] bmurt: has joined #ruby
[03:00:36] eckhardt: has joined #ruby
[03:05:13] sleepee: has joined #ruby
[03:08:51] RahulT: has joined #ruby
[03:09:20] samlisl_: has joined #ruby
[03:09:35] runescape07rsps: has joined #ruby
[03:13:59] astrobunny: has joined #ruby
[03:15:39] smulverine: has joined #ruby
[03:20:48] uZiel: has joined #ruby
[03:23:34] ascarter: has joined #ruby
[03:24:32] ascarter_: has joined #ruby
[03:29:02] shiranuidong: has joined #ruby
[03:29:04] Ryzokuken: has joined #ruby
[03:29:58] charliesome: has joined #ruby
[03:31:15] |ifei5g00d: has joined #ruby
[03:31:30] govg: has joined #ruby
[03:36:11] jnollette: has joined #ruby
[03:37:17] beauby: has joined #ruby
[03:38:10] xuanrui: has joined #ruby
[03:45:27] gix: has joined #ruby
[03:48:19] cschneid_: has joined #ruby
[03:48:27] beauby: has joined #ruby
[03:50:54] beilabs: has joined #ruby
[03:51:21] uZiel: has joined #ruby
[03:51:47] beilabs: has joined #ruby
[03:53:38] jackjackdripper: has joined #ruby
[03:53:45] beilabs_: has joined #ruby
[03:54:16] beilabs_: has joined #ruby
[03:55:05] ledestin: has joined #ruby
[03:55:52] goyox86: has joined #ruby
[04:05:28] segy_: has joined #ruby
[04:06:44] claw: has joined #ruby
[04:10:41] djbkd: has joined #ruby
[04:14:55] raul782: has joined #ruby
[04:16:16] mim1k: has joined #ruby
[04:18:16] raul782: has joined #ruby
[04:20:55] maxtweddell: has joined #ruby
[04:21:06] RahulT: has joined #ruby
[04:22:25] maxtweddell: How are we all today
[04:26:19] swills: has joined #ruby
[04:26:19] swills: has joined #ruby
[04:28:45] mim1k: has joined #ruby
[04:30:03] ascarter: has joined #ruby
[04:30:35] maxtweddell: besides quiet
[04:31:13] digitalnomad: has joined #ruby
[04:32:31] havenwood: maxtweddell: hi
[04:34:08] maxtweddell: what is good advanced ruby book?
[04:34:25] havenwood: maxtweddell: https://gist.github.com/baweaver/57a7c8296ca2c03effbd8fac1e7f6b40
[04:34:50] havenwood: maxtweddell: Ruby Under a Microscope
[04:35:23] maxtweddell: i'll have a look
[04:37:07] maxtweddell: the annoying thing with programming books s that shipping is really expesnvei to wera I live
[04:37:09] baweaver: depends on what you mean by advanced.
[04:37:16] baweaver: safaribooksonline.com
[04:37:27] maxtweddell: yeah but I want the real book
[04:37:29] baweaver: Get access to a ton of them for a flat monthly fee
[04:37:31] PsionTheory: has joined #ruby
[04:37:32] maxtweddell: not fake internet books
[04:38:46] baweaver: Then that's your decision, but that is a valid alternative if they truly are too expensive.
[04:39:00] maxtweddell: It's not like I can't afford them
[04:39:06] maxtweddell: it's just an annoyance
[04:39:15] maxtweddell: But yeah, I do actually use online books a lot
[04:39:23] maxtweddell: but I do prefer paper ones
[04:39:36] baweaver: Most of the time I use it to decide if it's even one I want to get a physical copy of
[04:42:39] maxtweddell: and I should probably get a proper e reader
[04:47:02] Dimik: has joined #ruby
[04:48:12] x|h: has joined #ruby
[04:54:11] _whitelogger: has joined #ruby
[04:55:26] digitalnomad: has joined #ruby
[05:01:33] howdoi: has joined #ruby
[05:04:03] pb122-two: has joined #ruby
[05:09:08] bambanx: has joined #ruby
[05:11:52] patrontechnosoft: has joined #ruby
[05:14:11] jamesaxl: has joined #ruby
[05:18:40] jamesaxl: has joined #ruby
[05:18:51] _sfiguser: has joined #ruby
[05:19:08] P_R_Deltoid: has joined #ruby
[05:19:47] djbkd: has joined #ruby
[05:22:01] gusrub: has joined #ruby
[05:32:33] astrobunny: has joined #ruby
[05:33:47] Joufflu: has joined #ruby
[05:34:16] pb122: has joined #ruby
[05:34:41] rafa2000: has joined #ruby
[05:34:50] rafa2000: has left #ruby: ()
[05:35:18] MichaelBurge: has joined #ruby
[05:36:55] ascarter: has joined #ruby
[05:39:08] uZiel: has joined #ruby
[05:40:49] Ishido: has joined #ruby
[05:42:59] nofxxxx: has joined #ruby
[05:43:23] mgorbach: has joined #ruby
[05:48:58] Joufflu: I only own fake internets books :(
[05:49:08] 94KAA7MF2: has joined #ruby
[05:49:35] cschneid_: has joined #ruby
[05:50:41] beauby: has joined #ruby
[05:51:43] belmoussaoui: has joined #ruby
[05:57:29] pb122-two: has joined #ruby
[06:01:46] armando: has joined #ruby
[06:02:16] armando: has joined #ruby
[06:02:32] pb122: has joined #ruby
[06:06:28] acalycine: has joined #ruby
[06:06:28] acalycine: has joined #ruby
[06:12:03] gusrub: has joined #ruby
[06:12:05] mim1k: has joined #ruby
[06:15:40] rabajaj: has joined #ruby
[06:19:41] tAn: has joined #ruby
[06:19:57] aurelien: has joined #ruby
[06:25:51] _sfiguser: has joined #ruby
[06:26:35] charliesome: has joined #ruby
[06:27:03] jaruga: has joined #ruby
[06:30:11] Tempesta: has joined #ruby
[06:32:32] mim1k: has joined #ruby
[06:33:21] anisha: has joined #ruby
[06:35:31] clemens3: has joined #ruby
[06:38:58] anas: has joined #ruby
[06:39:04] solrize: has joined #ruby
[06:43:52] conta: has joined #ruby
[06:44:13] astrobun_: has joined #ruby
[06:44:26] ascarter: has joined #ruby
[06:45:11] tomphp: has joined #ruby
[06:45:45] astrobunny: has joined #ruby
[06:46:23] anas: has joined #ruby
[06:50:34] Silthias: has joined #ruby
[06:50:43] rambo2763: has joined #ruby
[06:51:26] high_fiver: has joined #ruby
[06:55:11] Seenox: has joined #ruby
[06:55:23] beilabs: has joined #ruby
[06:58:08] mim1k: has joined #ruby
[07:04:16] mark_66: has joined #ruby
[07:04:43] astrobunny: has joined #ruby
[07:06:04] duncan_bayne: has joined #ruby
[07:08:11] duncan_bayne: has left #ruby: ("ERC (IRC client for Emacs 25.2.1)")
[07:10:02] Silthias: has joined #ruby
[07:12:49] ledestin: has joined #ruby
[07:13:39] cgfbee: has joined #ruby
[07:20:10] mim1k: has joined #ruby
[07:22:19] mlehrer: has joined #ruby
[07:23:28] anisha: has joined #ruby
[07:26:46] acalycine: has joined #ruby
[07:26:46] acalycine: has joined #ruby
[07:32:51] acalycine: has joined #ruby
[07:32:52] acalycine: has joined #ruby
[07:37:08] dionysus69: has joined #ruby
[07:44:20] pygospa: has joined #ruby
[07:48:48] ascarter: has joined #ruby
[07:49:09] yabbes: has joined #ruby
[07:57:48] vondruch_: has joined #ruby
[07:59:05] dennisvennink: has joined #ruby
[08:01:15] vondruch_: has joined #ruby
[08:02:10] bigkevmcd: has joined #ruby
[08:05:35] sysvalve: has joined #ruby
[08:15:04] astrobunny: has joined #ruby
[08:16:03] alex```: has joined #ruby
[08:18:38] acalycine: has joined #ruby
[08:18:38] acalycine: has joined #ruby
[08:22:46] eip`: guys I need help with DataMapper, anyone around?
[08:30:57] Joufflu: has joined #ruby
[08:32:30] cveron: has joined #ruby
[08:43:41] simmaniac: has joined #ruby
[08:43:48] rgtk: has joined #ruby
[08:43:57] millerti: has joined #ruby
[08:45:29] Beams: has joined #ruby
[08:47:49] aupadhye: has joined #ruby
[08:50:23] leandrobighetti: has joined #ruby
[08:50:36] catphish: has joined #ruby
[08:51:59] catphish: i've now got a proper backtrace for my infinite-loop-on-exit bug, would be very grateful if someone could have a look: https://paste.ubuntu.com/25261847/
[08:52:36] workmad3: has joined #ruby
[08:52:45] catphish: my build is: ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
[08:52:53] mustaffa__: has joined #ruby
[08:52:56] catphish: i realise this is a little out of date
[08:55:39] ascarter: has joined #ruby
[08:56:03] TvL: has joined #ruby
[09:01:06] anisha: has joined #ruby
[09:09:34] uZiel: has joined #ruby
[09:13:08] FahmeF: has joined #ruby
[09:17:14] catphish: perhaps it's trying to shut down a timer thread that doesn't exist, though i don't know what one of those is :(
[09:18:26] dminuoso: catphish: Update your Ruby to 2.3.4
[09:18:51] vixus: has joined #ruby
[09:18:56] marr: has joined #ruby
[09:19:03] dminuoso: I'm honest about this, because I won't bother spending any time on this if there's a chance that this was fixed along the way.
[09:20:23] tomphp: has joined #ruby
[09:22:23] jackjackdripper: has joined #ruby
[09:24:02] catphish: i'll upgrade my env to 2.3.4 and let you know if it continues to occur
[09:25:03] faces: has joined #ruby
[09:25:08] tvw: has joined #ruby
[09:26:04] Alina-malina: has joined #ruby
[09:29:57] jamesaxl: has joined #ruby
[09:32:03] dhollinger: has joined #ruby
[09:32:12] ctp: has joined #ruby
[09:34:14] moei: has joined #ruby
[09:36:19] t-recx: has joined #ruby
[09:37:30] agent_white: has joined #ruby
[09:37:42] agent_white: has left #ruby: ()
[09:39:23] theod: has joined #ruby
[09:39:32] mark_66: has joined #ruby
[09:41:47] faces: has joined #ruby
[09:42:57] konsolebox: has joined #ruby
[09:49:13] uZiel: has joined #ruby
[09:49:58] tomphp: has joined #ruby
[09:51:26] millerti: has joined #ruby
[09:54:10] vondruch: has joined #ruby
[09:56:22] vondruch: has joined #ruby
[09:59:55] beilabs: has joined #ruby
[10:00:42] tvw: has joined #ruby
[10:01:03] ascarter: has joined #ruby
[10:01:57] ur5us: has joined #ruby
[10:02:57] iMadper: has joined #ruby
[10:05:34] ams__: has joined #ruby
[10:08:41] drale2k: has joined #ruby
[10:12:36] Serpent7776: has joined #ruby
[10:17:57] FahmeF: has joined #ruby
[10:19:59] yabbes: has joined #ruby
[10:20:19] unshadow: has joined #ruby
[10:20:42] rgtk: has joined #ruby
[10:21:02] Alina-malina: has joined #ruby
[10:21:11] avelldiroll: has joined #ruby
[10:31:44] catphish: i've upgraded to 2.4.3 - i'll have to wait to see if my the issue continues to occur
[10:36:45] ctp: has joined #ruby
[10:37:50] ecuanaso: has joined #ruby
[10:38:45] FahmeF: has joined #ruby
[10:42:14] dn`: has joined #ruby
[10:46:01] Serpent: has joined #ruby
[10:46:57] saltsa: has joined #ruby
[10:48:49] zapata: has joined #ruby
[10:51:16] kkiero: has joined #ruby
[10:59:50] jinie_: has joined #ruby
[11:00:31] rahul_bajaj: has joined #ruby
[11:03:18] __Yiota: has joined #ruby
[11:07:45] ascarter: has joined #ruby
[11:11:26] GodFather: has joined #ruby
[11:13:56] impermanence: has joined #ruby
[11:16:25] InfinityFye: has joined #ruby
[11:22:07] leandrobighetti: has joined #ruby
[11:35:40] jaruga: has joined #ruby
[11:37:45] ldnunes: has joined #ruby
[11:42:31] beauby: has joined #ruby
[11:51:50] elcontrastador: has joined #ruby
[11:53:18] theod_: has joined #ruby
[11:55:16] gregf_: has joined #ruby
[11:55:46] eip`: has left #ruby: ()
[11:57:47] beilabs: has joined #ruby
[12:02:18] cveron: has joined #ruby
[12:03:48] cveron: has joined #ruby
[12:04:29] tacoboy: has joined #ruby
[12:04:46] charliesome: has joined #ruby
[12:08:32] rgtk: has joined #ruby
[12:11:43] Ishido: has joined #ruby
[12:11:46] Xeago: has joined #ruby
[12:13:34] FahmeF: has joined #ruby
[12:13:49] tribals: has joined #ruby
[12:15:12] ascarter: has joined #ruby
[12:15:14] tribals: i'm trying to understand ruby lazy iteration
[12:15:33] tribals: here is the example: https://gist.github.com/tribals/da3e5103d54a1fd0a0636ada1b3c8c73
[12:15:46] ncthom91: has joined #ruby
[12:15:50] tribals: it is not working
[12:17:11] tribals: when you return enumerator from other enumerator/enumerable it is straightforward, but i don't understand how to return enumerator from two-level iteration
[12:17:21] tribals: any idea how to do that?
[12:21:15] kkiero: has joined #ruby
[12:22:27] belmoussaoui: has joined #ruby
[12:32:31] eelster: has joined #ruby
[12:35:19] Ishido: has joined #ruby
[12:37:20] synthroid: has joined #ruby
[12:37:56] burgestrand: has joined #ruby
[12:38:13] synthroid: has joined #ruby
[12:39:16] synthroid: has joined #ruby
[12:39:17] sepp2k: has joined #ruby
[12:45:10] selim: has joined #ruby
[12:47:52] mabus44: has joined #ruby
[12:49:14] X-tonic: has joined #ruby
[12:52:19] FahmeF: has joined #ruby
[12:55:16] cdg: has joined #ruby
[12:58:16] GorillaApe: has joined #ruby
[12:59:51] GorillaApe: on bsd running a simple ruby program with just executing a system command its rss keeps increasing without stopping. On ubuntu it stays stable.
[12:59:53] ekinmur: has joined #ruby
[13:00:46] dminuoso: tribals: you dont, that's the point
[13:01:54] tribals: dminuoso: thanks
[13:04:08] dminuoso: tribals: note that you could probably just do: input.each.scan(pattern).with_object([]) { |o, e| o << e.to_i }
[13:07:02] brw: has joined #ruby
[13:07:11] dminuoso: or as I prefer nowadays [*o, e.to_i] :D
[13:11:15] beauby: has joined #ruby
[13:11:27] mabus44: has joined #ruby
[13:14:57] DoubleMalt: has joined #ruby
[13:15:03] hutch34: has joined #ruby
[13:15:25] toretore: has joined #ruby
[13:16:38] rgtk: has joined #ruby
[13:21:50] ascarter: has joined #ruby
[13:22:24] _sfiguser: has joined #ruby
[13:25:41] Beams: has joined #ruby
[13:26:30] cdg_: has joined #ruby
[13:26:51] beilabs: has joined #ruby
[13:27:36] aglorei1: has joined #ruby
[13:28:29] beilabs: has joined #ruby
[13:30:18] apparition47: has joined #ruby
[13:30:45] vuoto: has joined #ruby
[13:35:39] DLSteve: has joined #ruby
[13:36:36] mustaffa: has joined #ruby
[13:39:16] Ishido: has joined #ruby
[13:42:43] belmoussaoui: has joined #ruby
[13:48:18] oleo: has joined #ruby
[13:50:22] Xiti: has joined #ruby
[13:50:41] eightlimbed_: has joined #ruby
[13:52:37] govg: has joined #ruby
[13:52:51] Paraxial: has joined #ruby
[13:57:56] spiette: has joined #ruby
[13:58:21] banisterfiend: has joined #ruby
[14:02:38] digitalnomad: has joined #ruby
[14:03:19] jphase: has joined #ruby
[14:04:19] beauby: has joined #ruby
[14:07:47] Beams: has joined #ruby
[14:08:21] MacMeep: has joined #ruby
[14:13:21] aleph-: has joined #ruby
[14:13:58] ResidentBiscuit: has joined #ruby
[14:14:16] chouhoulis: has joined #ruby
[14:14:21] aleph-: Hey folks. O/
[14:14:23] ResidentBiscuit: has joined #ruby
[14:14:48] ResidentBiscuit: has joined #ruby
[14:15:13] ResidentBiscuit: has joined #ruby
[14:15:33] kristofferR: has joined #ruby
[14:15:38] ResidentBiscuit: has joined #ruby
[14:16:06] ResidentBiscuit: has joined #ruby
[14:18:15] 7GHABRDEE: has joined #ruby
[14:18:15] 17SABNDFD: has joined #ruby
[14:18:42] perniciouscaffei: has joined #ruby
[14:19:51] oleo: has joined #ruby
[14:21:45] logicscience: has joined #ruby
[14:24:23] GodFather: has joined #ruby
[14:27:01] ascarter: has joined #ruby
[14:27:35] aleph-: So question since I'm not sure. Anyway to get a watcher process like nodemon in node/js to work with a ruby project involving sinatra?
[14:28:00] banisterfiend: has joined #ruby
[14:28:41] jphase: has joined #ruby
[14:29:44] ruby-lang304: has joined #ruby
[14:30:39] Rapture: has joined #ruby
[14:30:43] FahmeF: has joined #ruby
[14:31:43] jordanm: has joined #ruby
[14:32:14] eightlimbed_: has joined #ruby
[14:33:20] _sfiguser: hello guys... is there a book/course which can teach me to do things like these... http://journal.stuffwithstuff.com/2013/12/08/babys-first-garbage-collector/ like writing virtual machine hypervisors... or web servers... or emulators.. i mean when can i learn to program this low level stuff ?
[14:36:33] lupine: https://www.amazon.co.uk/Operating-Systems-Implementation-Woodhull-Tanenbaum/dp/9332550514/ref=tmm_pap_title_0?_encoding=UTF8&qid=&sr=
[14:37:27] rgr_: has joined #ruby
[14:37:48] abhi56rai: has joined #ruby
[14:39:21] cdg: has joined #ruby
[14:43:50] ecuanaso: has joined #ruby
[14:45:57] knight33: has joined #ruby
[14:47:35] skweek: has joined #ruby
[14:47:59] yabbes: has joined #ruby
[14:51:47] __Yiota: has joined #ruby
[14:53:20] polishdub: has joined #ruby
[14:55:30] sekmo: has joined #ruby
[14:55:48] quirkycoders: has joined #ruby
[14:56:24] dviola: has joined #ruby
[14:56:37] quirkycoders: I having an issue with what I thought should be a relatively easy task. I'm trying to override an existing method using alias_method but I'm getting an inifite loop: https://gist.github.com/jpstokes/e8a6e681d84daa92b7f3938c56942990
[14:57:14] Adem: has joined #ruby
[14:58:11] dminuoso: quirkycoders: Use Module#prepend
[14:58:18] aleph-: _sfiguser: Definitely read Tenebaum's book. Using it to help me write a filesystem.
[14:58:43] _sfiguser: aleph-, which one from tanenbaum ?
[14:58:53] dminuoso: _sfiguser: Writing web servers and emulators is relatively easy. Writing a virtual machine hypervisor is not.
[14:59:01] quirkycoders: dminuoso: I'll check it out
[15:00:07] aleph-: _sfiguser: The book just linked. Operating System implementations
[15:00:30] dminuoso: quirkycoders: Also, you really don't want a class_eval there.
[15:03:39] quirkycoders: hmmm...in this case I'm overriding a spree object and this as far as I know is how you do that.
[15:04:12] quirkycoders: Overriding the method is something I'm trying to do in addition to overriding this particular spree object
[15:05:44] laphoriag75: has joined #ruby
[15:08:09] PsionTheory: has joined #ruby
[15:09:00] nopolitica: has joined #ruby
[15:10:33] ecuanaso: has joined #ruby
[15:13:24] synthroid: has joined #ruby
[15:14:22] jphase_: has joined #ruby
[15:14:26] synthroid: has joined #ruby
[15:14:40] cschneid_: has joined #ruby
[15:15:10] dangerousdave: has joined #ruby
[15:17:01] xzhao: has joined #ruby
[15:21:04] haylon: has joined #ruby
[15:23:22] quirkycoders: dminuoso: That worked! thanks!
[15:23:54] jnix|w: has joined #ruby
[15:25:05] [Butch]: has joined #ruby
[15:29:18] jphase: has joined #ruby
[15:31:06] xzhao: has joined #ruby
[15:33:30] digitalnomad: has joined #ruby
[15:34:15] mabus44: has joined #ruby
[15:34:25] baroquebobcat: has joined #ruby
[15:34:52] ascarter: has joined #ruby
[15:35:24] tomphp: has joined #ruby
[15:36:49] goyox86: has joined #ruby
[15:37:36] rippa: has joined #ruby
[15:42:28] dionysus69: has joined #ruby
[15:42:39] MrSparkle: has joined #ruby
[15:42:52] chouhoulis: has joined #ruby
[15:43:21] brent__: has joined #ruby
[15:45:51] jphase_: has joined #ruby
[15:46:00] haylon: If I have a "hash", that's setup like default['thing1']['thing2']['thing3'], what would I need to search for to make it work with regular ruby hashes?
[15:48:22] Takumo: Hey, anyone able to help me with this build error for MRI 2.2.6 ? ix.io/yWQ
[15:49:16] Takumo: gcc 7.1.1 / linux 4.12.4 / OpenSSL 1.1.0f / libffi 3.2.1
[15:50:07] uZiel: has joined #ruby
[15:50:57] vuoto: has joined #ruby
[15:51:45] digitalnomad: has joined #ruby
[15:51:51] synthroid: has joined #ruby
[15:52:24] rabajaj: has joined #ruby
[15:54:54] logicscience: has joined #ruby
[15:56:12] synthroid: has joined #ruby
[15:57:46] Barry: has joined #ruby
[15:58:16] t-recx: has joined #ruby
[15:58:30] apeiros: haylon: I don't understand what you're asking for
[15:59:05] apeiros: what does "work with regular hashes" comprise?
[15:59:09] bruno-: has joined #ruby
[15:59:40] mtkd: has joined #ruby
[15:59:51] haylon: I have some Chef Hashes, default['thing1']['thing2'] = 'value' and I want to make it so its in the form of default = { 'thing1' => {'thing2' => 'value' } }
[15:59:59] apeiros: Takumo: I probably won't be able to help. but for others to assess whether they can, you should provide more info. many people will not bother to say anything with that little up-front info.
[16:00:47] apeiros: haylon: still not sure. you want to convert Hash to ChefHash (or whatever the class is), or the other way round? or something else entirely?
[16:01:24] amclain: has joined #ruby
[16:01:33] haylon: Chef hash to Hash
[16:01:45] konsolebox: has joined #ruby
[16:01:55] apeiros: then you probably should take a look at that class' docs and whether it has a to_h or similar method
[16:02:41] haylon: I think there is, but I'm not familiar with chef-shell. That channel has been real quiet today, so I came here.
[16:02:46] rkoller: has joined #ruby
[16:03:00] marxarelli: has joined #ruby
[16:03:10] apeiros: where at "read its docs" are you stumbling?
[16:03:22] apeiros: figuring out the right class? finding the docs? else?
[16:04:36] Takumo: apeiros: what's missing?
[16:04:45] conta: has joined #ruby
[16:05:03] apeiros: "this build error" <- the "this". f.ex.
[16:05:07] haylon: apeiros: probably me rushing
[16:05:23] SpComb: has joined #ruby
[16:05:25] haylon: Thank you though for your help apeiros
[16:06:29] Takumo: there's a link to the log but as for what the issue is, to be honest I'm not really sure what in there is actually the cause of the problem, so I'm a bit lost as to what better detail to provide
[16:06:36] Takumo: when trying to build mri 2.2.6
[16:07:13] apeiros: well, anything beyond "this build error" would be more useful. otherwise, the answer is "well, just apply the fix" :-p
[16:07:40] apeiros: and you can gist (as in, gist.github.com, not in here) full build logs no problem.
[16:08:07] Takumo: yeah I did link the error but that was only make.log -- bit more googling seems to suggest an issue with gcc 7
[16:08:21] apeiros: there was no link in your question…
[16:08:34] apeiros: 17:48 Takumo: Hey, anyone able to help me with this build error for MRI 2.2.6 ? ix.io/yWQ
[16:08:37] apeiros: 17:49 Takumo: gcc 7.1.1 / linux 4.12.4 / OpenSSL 1.1.0f / libffi 3.2.1
[16:08:45] Takumo: oh my bad
[16:08:49] Takumo: http://ix.io/yWQ
[16:09:10] Takumo: that was meant to be a link just didn't paste properly!
[16:09:14] Takumo: PICNIC error
[16:09:15] rgtk: has joined #ruby
[16:10:34] Takumo: don't worry about answering it now though, work ends in 20 minutes so I'll just have to pick this up in the morning... got a rails 4 project I need to do a fix on but looks like ruby 2.2 doesn't like my system and rails 4 doesn't work on ruby 2.4 ... oh the fun
[16:11:05] apeiros: yeah, as warned, I'm the wrong person anyway. was just sharing the exp. that people won't try to help if upfront info is lacking.
[16:11:22] cagomez: has joined #ruby
[16:13:06] Takumo: yeah, I did have a link just not properly formatted
[16:13:38] apeiros: yupp. I see now.
[16:13:50] jphase: has joined #ruby
[16:15:04] beauby: has joined #ruby
[16:15:11] gusrub: has joined #ruby
[16:18:41] uZiel: has joined #ruby
[16:24:11] __Yiota: has joined #ruby
[16:26:42] jackjackdripper: has joined #ruby
[16:28:31] arkinor: has joined #ruby
[16:29:07] FahmeF: has joined #ruby
[16:31:44] beilabs: has joined #ruby
[16:34:40] beilabs: has joined #ruby
[16:34:59] xzhao: has joined #ruby
[16:38:14] DTZUZO: has joined #ruby
[16:38:43] aleph-: has joined #ruby
[16:39:21] guacamole: has joined #ruby
[16:41:37] ascarter: has joined #ruby
[16:44:09] eckhardt: has joined #ruby
[16:46:12] Puffball: has joined #ruby
[16:47:24] quobo: has joined #ruby
[16:52:45] cagomez_: has joined #ruby
[16:52:48] chouhoulis: has joined #ruby
[16:53:23] chouhoulis: has joined #ruby
[16:54:59] eelster: has joined #ruby
[16:58:06] torQue_: has joined #ruby
[17:00:35] ahrs: has joined #ruby
[17:03:13] sneakerhax: has joined #ruby
[17:04:13] xzhao: has joined #ruby
[17:04:48] 7IZAATAS8: has joined #ruby
[17:08:13] AxelAlex: has joined #ruby
[17:10:01] mabus44: has joined #ruby
[17:10:49] digitalnomad: has joined #ruby
[17:12:01] whippythellama: has joined #ruby
[17:14:09] minimalism: has joined #ruby
[17:19:06] opencw: has joined #ruby
[17:22:00] Moosashi_: has joined #ruby
[17:28:02] rahul_bajaj: has joined #ruby
[17:35:08] cdg: has joined #ruby
[17:35:09] gusrub: has joined #ruby
[17:35:20] PaulCapestany: has joined #ruby
[17:36:45] cdg_: has joined #ruby
[17:38:34] high_fiver: has joined #ruby
[17:39:26] 94KAA7Q5Y: has joined #ruby
[17:40:39] nadir: has joined #ruby
[17:41:41] Moosashi_: has joined #ruby
[17:41:46] goyox86__: has joined #ruby
[17:42:30] digitalnomad: has joined #ruby
[17:43:07] belmoussaoui_: has joined #ruby
[17:44:26] FahmeF: has joined #ruby
[17:44:59] avelldiroll: has joined #ruby
[17:46:36] jackjackdripper: has joined #ruby
[17:47:26] ascarter: has joined #ruby
[17:48:16] melkor: has joined #ruby
[17:49:51] belmoussaoui_: has joined #ruby
[17:50:15] duderonomy: has joined #ruby
[17:53:16] ecuanaso: has joined #ruby
[17:54:04] dionysus69: has joined #ruby
[17:58:26] KrzaQ: Are there any popular jiting interpreters for ruby? I tried googling, but found some niche projects, mostly looking old. I'd love to have something like pypy
[17:59:49] havenwood: KrzaQ: Look at production-ready JRuby or up-and-coming TruffleRuby.
[18:00:34] havenwood: KrzaQ: There's a #jruby channel here or truffleruby on gitter: https://gitter.im/graalvm/truffleruby
[18:03:06] normie1: has joined #ruby
[18:03:29] belmoussaoui_: has joined #ruby
[18:04:04] Moosashi: has joined #ruby
[18:08:58] ramfjord: has joined #ruby
[18:09:31] SeepingN: has joined #ruby
[18:11:51] beauby: has joined #ruby
[18:11:56] Dimik: has joined #ruby
[18:13:11] runescape07rsps: has joined #ruby
[18:13:34] belmoussaoui: has joined #ruby
[18:14:38] A124: has joined #ruby
[18:18:22] uZiel: has joined #ruby
[18:19:46] t-recx: has joined #ruby
[18:22:15] cadillac_: has joined #ruby
[18:22:52] Moosashi: has joined #ruby
[18:24:11] eightlimbed_: has joined #ruby
[18:27:13] TomyLobo: has joined #ruby
[18:28:38] qba73: has joined #ruby
[18:29:06] cagomez: has joined #ruby
[18:30:12] ltem: has joined #ruby
[18:30:24] cagomez_: has joined #ruby
[18:31:34] conta1: has joined #ruby
[18:33:26] dionysus69: I have arrays named lets say, arr1 arr2 arr3
[18:33:41] dionysus69: how do I access these with each.with_index(1) loop?
[18:33:47] dionysus69: arr + index something like that
[18:33:58] dionysus69: but whats the proper way to concatenate variable names?
[18:34:59] gusrub: has joined #ruby
[18:35:45] FahmeF: has joined #ruby
[18:39:08] tacoboy: has joined #ruby
[18:39:17] havenwood: dionysus69: There are many ways. Here's one: [*arr1, *arr2, *arr3]
[18:39:42] Moosashi: has joined #ruby
[18:39:51] dionysus69: what you did there is created array of those arrays right?
[18:39:53] FahmeF: has joined #ruby
[18:40:05] dionysus69: what is that splat operator doing though in arrays case?
[18:41:43] alex``: has joined #ruby
[18:41:59] __Yiota: has joined #ruby
[18:42:34] npgm: has joined #ruby
[18:46:56] beauby: has joined #ruby
[18:51:05] davidmichaelkarr: has joined #ruby
[18:51:49] bane_: has joined #ruby
[18:53:58] ascarter: has joined #ruby
[18:54:41] Ryzokuken: has joined #ruby
[19:03:26] uZiel: has joined #ruby
[19:04:44] ecuanaso: has joined #ruby
[19:05:28] belmoussaoui: has joined #ruby
[19:06:36] normie1: has joined #ruby
[19:10:27] mwlang: has joined #ruby
[19:10:51] belmoussaoui: has joined #ruby
[19:12:31] jackjackdripper: has joined #ruby
[19:16:09] Joufflu: has joined #ruby
[19:17:25] wilbert: has joined #ruby
[19:18:26] reber: has joined #ruby
[19:18:31] conta1: has joined #ruby
[19:18:35] ecuanaso: has joined #ruby
[19:22:56] Moosashi: has joined #ruby
[19:23:03] jackjackdripper: has joined #ruby
[19:25:18] mabus44: has joined #ruby
[19:25:41] jphase: has joined #ruby
[19:26:38] Azure: has joined #ruby
[19:26:55] beauby: has joined #ruby
[19:30:32] evie_hammond: has joined #ruby
[19:31:23] eckhardt: has joined #ruby
[19:32:18] Moosashi_: has joined #ruby
[19:36:48] normie1: has joined #ruby
[19:39:37] bruno-: has joined #ruby
[19:40:12] jamesaxl: has joined #ruby
[19:43:59] ledestin: has joined #ruby
[19:50:55] jenrzzz: has joined #ruby
[19:51:47] belmoussaoui_: has joined #ruby
[19:53:05] dasher00: has joined #ruby
[19:53:41] Terens: has joined #ruby
[19:57:45] jnollette: has joined #ruby
[19:59:28] baweaver: dionysus69: you're making it too complicated.
[20:00:03] baweaver: >> a1,a2,a3 =[[1,2],[2,3],[3,4]]; a1
[20:00:04] ruby[bot]: baweaver: # => [1, 2] (https://eval.in/842567)
[20:00:46] baweaver: consider that for a second. You're adding a number to the end of the arrays. An index number. What else has an index?
[20:00:56] dionysus69: thing is the arrays are too large and I didnt want to declare them in 2d array way
[20:01:19] ascarter: has joined #ruby
[20:01:26] baweaver: Too large meaning?
[20:01:30] dionysus69: but ye that case would eliminate need for var names too
[20:01:32] baweaver: and what are the real names there?
[20:01:43] baweaver: why do you need three arrays?
[20:01:53] baweaver: why not four or ten or twenty?
[20:01:57] Murda: has joined #ruby
[20:02:06] cagomez: has joined #ruby
[20:02:10] dionysus69: something like this https://gist.github.com/e2086d40afdd380f51614e1f4dfa6581
[20:02:22] dionysus69: there are 60 :D
[20:03:27] baweaver: Where does the info come from?
[20:03:33] cagomez: has joined #ruby
[20:03:41] dionysus69: list of cities
[20:03:58] baweaver: and why are they grouped like that?
[20:04:00] dionysus69: seeds.rb db init basically
[20:04:14] dionysus69: in 3 languages
[20:04:28] dionysus69: they are grouped by the district
[20:04:45] baweaver: Is that necessary?
[20:04:46] dionysus69: for later i will use select tag with opt groups
[20:05:17] fmcgeough: has joined #ruby
[20:05:27] dionysus69: well ye :P without grouping it would become ux downer
[20:05:45] baweaver: http://guides.rubyonrails.org/i18n.html
[20:05:54] baweaver: Then add region to the data
[20:05:59] baweaver: don't artificially do so
[20:06:22] dionysus69: what do you mean?
[20:06:27] baweaver: Read into i18n. Make each city into a single DB entity and then make that name into a key per language
[20:06:39] goyox86__: has joined #ruby
[20:06:42] baweaver: City name:string region:int
[20:06:43] dionysus69: I use globalize gem
[20:07:06] dionysus69: ye thats how it is now too, district has many towns
[20:07:12] dionysus69: town has a district FK
[20:08:05] dionysus69: so I create dist = District.create(name:...) >>>> dist << Town.create...
[20:08:16] yabbes: has joined #ruby
[20:08:33] dionysus69: dist.towns << Town.create *
[20:08:37] baweaver: dist.towns = towns.map { |t| Town.create ... }
[20:09:07] jrm: has joined #ruby
[20:09:15] baweaver: Note that Globalize has attributes for locales in their docs
[20:09:19] baweaver: so make a Georgian, Zulu, and Russian locale to be stored with it.
[20:09:19] dionysus69: my problem atm is towns is not a single array :) its 60 separate
[20:09:29] baweaver: Then make it a single array
[20:09:57] baweaver: you're making this more complicated than it needs to be if you wanted a simple solution
[20:10:11] dennisvennink: has joined #ruby
[20:10:31] dionysus69: ye sometimes I get stubborn with a roadblock :P
[20:10:40] baweaver: Get it done first
[20:10:49] baweaver: stubbornness does you no favors.
[20:10:50] dionysus69: you are right :)
[20:11:15] baweaver: Improve it after you have it working
[20:11:43] beauby: has joined #ruby
[20:12:42] AxelAlex: has joined #ruby
[20:15:02] cagomez: has joined #ruby
[20:17:30] synthroid: has joined #ruby
[20:21:46] cagomez: has joined #ruby
[20:40:24] dtzuzu: has joined #ruby
[20:40:28] jackjackdripper1: has joined #ruby
[20:44:19] high_fiver: has joined #ruby
[20:44:25] |ifei5g00d: has joined #ruby
[20:45:07] blindMoe: has joined #ruby
[20:45:18] runescape07rsps: has joined #ruby
[20:46:05] blindMoe: Anyone have a suggestion of what to check when getting NOAUTH errors from redis when sidekiq tries to use it? I am specifying the proper config file ( sidekiq.yml ) in the command line, quadruple checked the redis password both in the sidekiq.rb config file and using the command line
[20:46:17] leandrobighetti: has joined #ruby
[20:46:36] blindMoe: by command line I mean I used the redis cli to authenticate to ensure the password works
[20:47:05] tomphp: has joined #ruby
[20:47:35] Ryzokuken: has joined #ruby
[20:48:57] laphoriag75: has joined #ruby
[20:49:06] DTZUZO: has joined #ruby
[20:51:14] aufi: has joined #ruby
[20:59:13] laphoriag75: has left #ruby: ()
[20:59:46] workmad3: has joined #ruby
[21:03:28] Moosashi: has joined #ruby
[21:03:46] TvL: has joined #ruby
[21:05:50] cagomez: has joined #ruby
[21:08:21] kahra: has joined #ruby
[21:08:40] ascarter: has joined #ruby
[21:13:37] hkdsun: has joined #ruby
[21:15:01] cagomez: has joined #ruby
[21:15:10] digitalnomad: has joined #ruby
[21:15:46] Moosashi_: has joined #ruby
[21:17:15] cagomez: has joined #ruby
[21:21:27] ur5us: has joined #ruby
[21:22:07] ur5us: has joined #ruby
[21:24:51] jphase: has joined #ruby
[21:25:36] _sfiguser: has joined #ruby
[21:27:23] guacamole: has joined #ruby
[21:29:36] antgel_: has joined #ruby
[21:35:55] eightlimbed_: has joined #ruby
[21:38:49] Moosashi: has joined #ruby
[21:45:23] danman: has joined #ruby
[21:51:36] office_boy_: has joined #ruby
[22:06:09] ltem: has joined #ruby
[22:07:54] jenrzzz: has joined #ruby
[22:07:54] jenrzzz: has joined #ruby
[22:12:15] bambanx: has joined #ruby
[22:14:40] postmodern: has joined #ruby
[22:15:53] ascarter: has joined #ruby
[22:16:27] jinie_: has joined #ruby
[22:18:55] Moosashi: has joined #ruby
[22:19:45] digitalnomad: has joined #ruby
[22:22:46] brent__: has joined #ruby
[22:24:34] Moosashi: has joined #ruby
[22:28:53] hahuang65: has joined #ruby
[22:32:36] eckhardt: has joined #ruby
[22:36:54] gusrub: has joined #ruby
[22:42:41] chouhoul_: has joined #ruby
[22:47:16] beauby: has joined #ruby
[22:47:43] brendan-: has joined #ruby
[22:54:31] gusrub: has joined #ruby
[22:56:12] InfinityFye: has joined #ruby
[22:58:45] Moosashi: has joined #ruby
[23:00:26] eckhardt: has joined #ruby
[23:00:43] Arahael: has left #ruby: ("WeeChat 1.4")
[23:01:49] mikeiniowa: has joined #ruby
[23:03:30] sunrunner20: has joined #ruby
[23:05:53] DoubleMalt: has joined #ruby
[23:06:45] xco: has joined #ruby
[23:08:23] xco: how do a store the value of a key called “acces_token” in ruby that’s a result from a curl command that looks like {"access_token":"QjJ3wI….”, “expires”: “…”}
[23:12:47] cyberRodent: has joined #ruby
[23:16:09] cdg: has joined #ruby
[23:19:59] Moosashi_: has joined #ruby
[23:20:30] ascarter: has joined #ruby
[23:24:44] gr33n7007h: xco: that looks like json, so parse the json
[23:27:20] digitalnomad: has joined #ruby
[23:28:47] runescape07rsps: has joined #ruby
[23:28:53] gr33n7007h: e.g hostname = JSON.parse(`curl -s ipinfo.io`)['hostname']
[23:30:30] alveric2: has joined #ruby
[23:32:52] phinxy: has joined #ruby
[23:37:54] dtzuzu: has joined #ruby
[23:38:04] RahulT: has joined #ruby
[23:38:47] banisterfiend: has joined #ruby
[23:38:50] DTZUZO: has joined #ruby
[23:41:03] jphase: has joined #ruby
[23:42:18] AxelAlex: has joined #ruby
[23:45:51] ascarter: has joined #ruby
[23:49:56] sleepee: has joined #ruby
[23:53:09] Trynemjoel: has joined #ruby
[23:55:22] cdg: has joined #ruby
[23:59:36] astrobunny: has joined #ruby