« Back to channel list

#ruby - 26 March 2018

« Back 1 day Forward 1 day »
[00:00:49] duckpuppy: has joined #ruby
[00:03:43] crankharder: how can I debug a ruby process (rails console - idle. not doing anything.) that pegs my CPU? i've done this in the past by systematically removing huge chunks of the app, and gems/initializers/etc, but I would think there might be a better way to introspect what is happening in the process that is causing all this CPU usage.
[00:05:44] milardovich: has joined #ruby
[00:06:59] cschneid: has joined #ruby
[00:13:19] EXCHGR: has joined #ruby
[00:15:31] Esa_: has joined #ruby
[00:23:17] mozzarella: crankharder: https://ruby-doc.org/stdlib-2.5.0/libdoc/profiler/rdoc/Profiler__.html
[00:24:15] armyriad: has joined #ruby
[00:25:11] cschneid: has joined #ruby
[00:26:17] riotjones: has joined #ruby
[00:27:33] cschneid: has joined #ruby
[00:35:26] milardovich: has joined #ruby
[00:35:31] coderphive: has joined #ruby
[00:40:05] EXCHGR: has joined #ruby
[00:48:13] EXCHGR: has joined #ruby
[00:49:52] kn-928: has joined #ruby
[00:50:55] armyriad: has joined #ruby
[00:53:49] pilcrow: has joined #ruby
[00:55:04] meinside: has joined #ruby
[00:56:24] milardovich: has joined #ruby
[00:56:53] riotjones: has joined #ruby
[00:59:55] duckpuppy: has joined #ruby
[01:00:36] orbyt_: has joined #ruby
[01:00:37] TinkerT: has joined #ruby
[01:00:44] cschneid: has joined #ruby
[01:03:04] cschneid: has joined #ruby
[01:03:47] alfiemax: has joined #ruby
[01:07:43] eckhardt: has joined #ruby
[01:10:25] gizmore: has joined #ruby
[01:22:48] dinfuehr: has joined #ruby
[01:25:19] alfiemax: has joined #ruby
[01:26:45] alfiemax_: has joined #ruby
[01:32:31] milardovich: has joined #ruby
[01:34:12] alfiemax: has joined #ruby
[01:47:06] blamer: has joined #ruby
[01:53:33] b100s: has left #ruby: ("Leaving")
[01:57:35] duckpuppy: has joined #ruby
[02:01:53] milardovich: has joined #ruby
[02:07:25] xuyuheng: has joined #ruby
[02:08:02] riotjones: has joined #ruby
[02:18:25] alfiemax: has joined #ruby
[02:20:18] harryv: has joined #ruby
[02:22:22] noobineer: has joined #ruby
[02:31:47] cschneid: has joined #ruby
[02:33:57] cschneid: has joined #ruby
[02:36:13] minimalism: has joined #ruby
[02:36:17] guacamole: has joined #ruby
[02:40:37] harryv: has joined #ruby
[02:42:49] milardovich: has joined #ruby
[02:47:07] cschneid: has joined #ruby
[02:47:21] xuyuheng: has joined #ruby
[02:48:31] Junaos: has joined #ruby
[02:49:52] kn-928: has joined #ruby
[02:51:11] eckhardt: has joined #ruby
[02:53:48] ramfjord: has joined #ruby
[02:59:30] alfiemax: has joined #ruby
[02:59:34] harryv: has joined #ruby
[03:00:33] duckpuppy: has joined #ruby
[03:05:29] xuyuheng: has joined #ruby
[03:10:41] harryv: has joined #ruby
[03:12:40] harryv: has joined #ruby
[03:13:55] riotjones: has joined #ruby
[03:17:50] harryv: has joined #ruby
[03:30:04] jrabe: has joined #ruby
[03:30:40] TheMoonMaster: has joined #ruby
[03:31:04] PixeLInc: has joined #ruby
[03:31:19] ptx0: has joined #ruby
[03:31:58] sparrk: has joined #ruby
[03:35:45] eckhardt: has joined #ruby
[03:53:15] riotjones: has joined #ruby
[03:55:42] dnewkerk: has joined #ruby
[03:55:46] howdoi: has joined #ruby
[03:55:55] eckhardt: has joined #ruby
[03:57:39] duckpuppy: has joined #ruby
[04:00:36] milardovich: has joined #ruby
[04:07:46] nowhere_man: has joined #ruby
[04:09:55] xuyuheng: has joined #ruby
[04:18:29] kapil___: has joined #ruby
[04:18:33] jcarl43: has joined #ruby
[04:19:14] alfiemax: has joined #ruby
[04:19:22] xuyuheng: has joined #ruby
[04:25:15] trautwein: has joined #ruby
[04:25:50] jamesaxl: has joined #ruby
[04:39:39] phate408: has joined #ruby
[04:45:35] eckhardt: has joined #ruby
[04:47:07] karapetyan: has joined #ruby
[04:49:51] kn-928: has joined #ruby
[04:53:37] Puffball: has joined #ruby
[04:53:53] ramfjord: has joined #ruby
[04:56:56] riotjones: has joined #ruby
[05:00:43] konsolebox: has joined #ruby
[05:03:12] soniya29: has joined #ruby
[05:07:10] zululee: has joined #ruby
[05:07:54] anisha_: has joined #ruby
[05:16:04] ramfjord: has joined #ruby
[05:24:32] SuperLag: has joined #ruby
[05:25:39] duderonomy: has joined #ruby
[05:31:01] fullstack: has joined #ruby
[05:31:48] Mosselman: has joined #ruby
[05:40:46] n008f4g_: has joined #ruby
[05:51:16] c0mrad3: has joined #ruby
[05:51:32] Hobbyboy: has joined #ruby
[05:59:03] duckpuppy: has joined #ruby
[06:00:09] govg: has joined #ruby
[06:05:09] shuforov: has joined #ruby
[06:05:31] konsolebox: has joined #ruby
[06:08:38] za1b1tsu: has joined #ruby
[06:10:41] riotjones: has joined #ruby
[06:12:36] reber: has joined #ruby
[06:22:40] cschneid: has joined #ruby
[06:34:40] aufi: has joined #ruby
[06:37:50] amatas: has joined #ruby
[06:40:00] conta: has joined #ruby
[06:42:01] roshanavand: has joined #ruby
[06:44:00] reber: has joined #ruby
[06:44:40] reber: has left #ruby: ()
[06:46:30] roshanavand: has joined #ruby
[06:47:37] andikr: has joined #ruby
[06:48:56] alex``: has joined #ruby
[06:54:07] Mosselman: has joined #ruby
[06:55:43] elphe: has joined #ruby
[07:01:58] alfiemax_: has joined #ruby
[07:05:39] roshanavand: has joined #ruby
[07:09:11] za1b1tsu: has joined #ruby
[07:10:57] clemens3: has joined #ruby
[07:15:32] za1b1tsu: has joined #ruby
[07:15:57] amatas: has joined #ruby
[07:19:20] psychicist__: has joined #ruby
[07:22:39] KeyJoo: has joined #ruby
[07:22:45] venmx: has joined #ruby
[07:22:46] schneider: has joined #ruby
[07:23:57] rabajaj: has joined #ruby
[07:28:04] Megamosaren: has joined #ruby
[07:29:52] vondruch: has joined #ruby
[07:31:30] christianmello: has joined #ruby
[07:33:44] claudiuinberlin: has joined #ruby
[07:33:59] remix2000: has joined #ruby
[07:36:07] karapetyan: has joined #ruby
[07:39:37] alfiemax: has joined #ruby
[07:41:42] ecksian: has joined #ruby
[07:47:04] schneider: has joined #ruby
[07:48:59] suukim: has joined #ruby
[07:49:18] blackmesa: has joined #ruby
[07:50:16] ecksian: has joined #ruby
[07:56:15] ecksian: has joined #ruby
[07:56:38] remix2000: has joined #ruby
[07:57:06] ecksian_: has joined #ruby
[07:58:47] jottr: has joined #ruby
[08:01:59] remix2000: has joined #ruby
[08:03:13] ur5us: has joined #ruby
[08:03:28] christianmello: has joined #ruby
[08:05:15] workmad3_: has joined #ruby
[08:05:34] jimmylu2333-fedo: has joined #ruby
[08:08:26] christianmello: has joined #ruby
[08:09:58] ur5us: has joined #ruby
[08:12:47] Mosselman: has joined #ruby
[08:13:38] RougeR: has joined #ruby
[08:16:25] guille-moe: has joined #ruby
[08:16:51] Bish: dminuoso: i tought my colleages functional programming with success, and now i have to read code like this
[08:16:54] Bish: let allData = [...(new Set(data.map(o => o.values.map(v => v[0])).reduce((a, cur) => a.concat(cur),[])))].sort((v1, v2) => v1-v2)
[08:17:08] Bish: would you argue this is more readable :o
[08:19:48] octomancer: has joined #ruby
[08:24:17] einarj: has joined #ruby
[08:24:18] remix2000: has joined #ruby
[08:27:23] tomphp: has joined #ruby
[08:28:46] ltt: has joined #ruby
[08:29:45] alfiemax: has joined #ruby
[08:45:19] tomphp: has joined #ruby
[08:46:12] pwnd_nsfw: has joined #ruby
[08:49:00] WhereIsMySpoon: has joined #ruby
[08:49:37] alfiemax: has joined #ruby
[08:50:29] arekushi: has joined #ruby
[08:51:26] riotjones: has joined #ruby
[08:52:53] ur5us: has joined #ruby
[08:53:42] karapetyan: has joined #ruby
[08:54:27] qba73: has joined #ruby
[08:54:35] tomphp: has joined #ruby
[08:54:59] Beams: has joined #ruby
[08:55:11] shuforov: has joined #ruby
[08:55:50] plexigras: has joined #ruby
[08:56:14] qba73: has joined #ruby
[08:57:17] karapetyan: has joined #ruby
[08:57:37] karapetyan: has joined #ruby
[08:58:04] venmx: has joined #ruby
[09:01:15] jrabe: has joined #ruby
[09:02:04] dhollinger: has joined #ruby
[09:06:03] Mosselman: has joined #ruby
[09:07:35] tomphp: has joined #ruby
[09:08:23] jenrzzz: has joined #ruby
[09:08:24] jenrzzz: has joined #ruby
[09:10:23] ltt: has joined #ruby
[09:11:28] blackmesa: has joined #ruby
[09:21:23] qba73: has joined #ruby
[09:22:21] blackmesa: has joined #ruby
[09:24:03] marr: has joined #ruby
[09:33:39] amatas: has joined #ruby
[09:33:54] tomphp: has joined #ruby
[09:39:59] Serpent7776: has joined #ruby
[09:40:35] claudiuinberlin: has joined #ruby
[09:42:14] pd2000: has joined #ruby
[09:42:52] jenrzzz: has joined #ruby
[09:43:33] pod: has joined #ruby
[09:44:00] nadir: has joined #ruby
[09:47:37] RougeR: has joined #ruby
[09:48:00] tomphp: has joined #ruby
[09:48:48] pd2000: has joined #ruby
[09:52:19] dionysus69: has joined #ruby
[09:54:11] pod: has joined #ruby
[09:58:37] roshanavand: has joined #ruby
[10:00:16] burgestrand: has joined #ruby
[10:01:22] dionysus69: has joined #ruby
[10:02:23] blackmesa: has joined #ruby
[10:02:25] conta: has joined #ruby
[10:03:09] qba73: has joined #ruby
[10:04:12] WhereIsMySpoon: has joined #ruby
[10:04:37] dionysus69: has joined #ruby
[10:05:36] jenrzzz: has joined #ruby
[10:05:36] jenrzzz: has joined #ruby
[10:11:16] ferr: has joined #ruby
[10:11:24] ferr: has left #ruby: ()
[10:12:08] ferr: has joined #ruby
[10:14:07] jenrzzz: has joined #ruby
[10:16:43] ferr: has left #ruby: ()
[10:20:02] pd2000: has joined #ruby
[10:21:01] dionysus69: has joined #ruby
[10:21:26] cschneid: has joined #ruby
[10:21:33] tribut: has left #ruby: ("Bye!")
[10:28:41] TheBloke: has joined #ruby
[10:34:15] sjums: has joined #ruby
[10:37:22] shuforov: has joined #ruby
[10:48:14] jenrzzz: has joined #ruby
[10:48:15] jenrzzz: has joined #ruby
[10:48:25] qba73: has joined #ruby
[10:49:59] roshanavand: has joined #ruby
[10:53:25] jenrzzz: has joined #ruby
[10:57:25] _aeris_: has joined #ruby
[11:01:40] jenrzzz: has joined #ruby
[11:02:26] jrafanie: has joined #ruby
[11:02:50] vondruch_: has joined #ruby
[11:09:37] KeyJoo: has joined #ruby
[11:10:08] amatas: has joined #ruby
[11:11:26] amelliaa: has joined #ruby
[11:12:03] vovs03: has joined #ruby
[11:13:48] psychicist__: has joined #ruby
[11:13:49] Papierkorb: has joined #ruby
[11:15:14] roshanavand: has joined #ruby
[11:15:41] qba73: has joined #ruby
[11:16:41] psychicist__: has joined #ruby
[11:18:52] arekushi: has joined #ruby
[11:23:32] amatas_: has joined #ruby
[11:25:49] phaul: has joined #ruby
[11:26:38] DTZUZO: has joined #ruby
[11:26:45] Zaab1t: has joined #ruby
[11:30:02] noobineer: has joined #ruby
[11:31:19] amatas_: has joined #ruby
[11:32:11] Papierkorb: has left #ruby: ("Konversation terminated!")
[11:33:10] amatas: has joined #ruby
[11:33:39] shinnya: has joined #ruby
[11:38:07] jenrzzz: has joined #ruby
[11:38:17] duckpuppy: has joined #ruby
[11:42:02] dr3wo: has joined #ruby
[11:42:06] Cavallari: has joined #ruby
[11:43:19] pod: has joined #ruby
[11:53:36] pd2000: has joined #ruby
[11:54:40] tcopeland: has joined #ruby
[11:55:03] burgestrand: has joined #ruby
[11:55:41] ldnunes: has joined #ruby
[11:57:56] synthroid: has joined #ruby
[11:58:08] conta: has joined #ruby
[11:58:43] tomphp: has joined #ruby
[12:02:44] amatas: has joined #ruby
[12:10:27] mfaeh: has joined #ruby
[12:15:28] jenrzzz: has joined #ruby
[12:24:14] bmurt: has joined #ruby
[12:25:27] qba73: has joined #ruby
[12:29:39] pd2000: has joined #ruby
[12:30:14] ecuanaso: has joined #ruby
[12:32:17] mfaeh: has joined #ruby
[12:32:24] jeffreylevesque: has joined #ruby
[12:33:43] AJA4350: has joined #ruby
[12:36:32] dr3wo: has joined #ruby
[12:36:51] duderono_: has joined #ruby
[12:37:32] tomphp: has joined #ruby
[12:37:45] coderphive: has joined #ruby
[12:40:32] vondruch_: has joined #ruby
[12:40:40] tomphp: has joined #ruby
[12:40:59] amatas: has joined #ruby
[12:41:20] tomphp: has joined #ruby
[12:54:25] herbmillerjr: has joined #ruby
[12:55:08] jenrzzz: has joined #ruby
[12:55:08] jenrzzz: has joined #ruby
[12:56:23] tcopeland: has joined #ruby
[12:56:57] mfaeh: has joined #ruby
[12:59:46] conta: has joined #ruby
[13:03:31] ecuanaso: has joined #ruby
[13:13:07] herbmillerjr: has joined #ruby
[13:14:34] apparition: has joined #ruby
[13:15:55] tomphp: has joined #ruby
[13:18:49] jcalla: has joined #ruby
[13:19:27] rsh: has joined #ruby
[13:19:57] tomphp: has joined #ruby
[13:24:39] conta: has joined #ruby
[13:24:59] mfaeh: has joined #ruby
[13:26:59] cdg: has joined #ruby
[13:31:18] karapetyan: has joined #ruby
[13:31:33] jenrzzz: has joined #ruby
[13:31:33] jenrzzz: has joined #ruby
[13:32:21] AJA4350: has joined #ruby
[13:32:28] govg: has joined #ruby
[13:34:37] AJA4350: has joined #ruby
[13:37:46] shpoont: has joined #ruby
[13:39:26] pod: has joined #ruby
[13:41:24] pod: has joined #ruby
[13:43:22] pod: has joined #ruby
[13:43:43] coderphive: has joined #ruby
[13:44:59] pod: has joined #ruby
[13:46:11] rsh: has joined #ruby
[13:46:29] pod: has joined #ruby
[13:48:40] aufi: has joined #ruby
[13:54:09] tomphp: has joined #ruby
[13:54:54] karapetyan: has joined #ruby
[13:55:20] jrabe`: has joined #ruby
[13:55:49] arekushi: has joined #ruby
[13:56:50] POKE53280: has joined #ruby
[13:58:08] jrafanie: has joined #ruby
[14:02:50] aufi: has joined #ruby
[14:02:54] gnufied: has joined #ruby
[14:03:06] pavelz: has joined #ruby
[14:06:05] chouhoulis: has joined #ruby
[14:06:15] venmx: has joined #ruby
[14:08:16] pd2000: has joined #ruby
[14:09:50] chouhoulis: has joined #ruby
[14:11:47] alfiemax: has joined #ruby
[14:14:28] oleo2: has joined #ruby
[14:15:22] n0m4d1c: has joined #ruby
[14:15:22] shpoont: has joined #ruby
[14:16:28] oleo: has joined #ruby
[14:17:22] Rapture: has joined #ruby
[14:17:37] orbyt_: has joined #ruby
[14:19:10] marr: has joined #ruby
[14:23:54] ciscam: has joined #ruby
[14:29:05] tcopeland: has joined #ruby
[14:30:11] arekushi: has joined #ruby
[14:31:34] n0m4d1c: has joined #ruby
[14:33:07] cschneid: has joined #ruby
[14:33:26] Tritex: has joined #ruby
[14:34:50] nowhere_man: has joined #ruby
[14:37:39] jobewan: has joined #ruby
[14:37:54] zacts: has joined #ruby
[14:38:38] karapetyan: has joined #ruby
[14:43:38] dr3wo: has joined #ruby
[14:44:21] qba73: has joined #ruby
[14:45:24] amatas: has joined #ruby
[14:45:30] jenrzzz: has joined #ruby
[14:45:30] jenrzzz: has joined #ruby
[14:47:09] cschneid: has joined #ruby
[14:58:48] DoubleMalt: has joined #ruby
[15:01:11] jrafanie_: has joined #ruby
[15:01:22] Mosselman: has joined #ruby
[15:01:22] netherwolfe: has joined #ruby
[15:03:13] tomphp: has joined #ruby
[15:03:56] sparrk: has joined #ruby
[15:05:02] rahul_bajaj: has joined #ruby
[15:05:15] TheMoonMaster: has joined #ruby
[15:05:21] Toledo: has joined #ruby
[15:06:22] dextrey: has joined #ruby
[15:06:35] kn-928: has joined #ruby
[15:07:56] rabajaj: has joined #ruby
[15:08:37] rippa: has joined #ruby
[15:11:15] fyrril: has joined #ruby
[15:11:42] stormpack: has joined #ruby
[15:15:18] fyrril2: has joined #ruby
[15:15:30] pod: has joined #ruby
[15:16:23] fyrril3: has joined #ruby
[15:19:32] pd2000: has joined #ruby
[15:19:40] raynold: has joined #ruby
[15:19:46] alfiemax: has joined #ruby
[15:20:02] mnemon: has joined #ruby
[15:28:36] jenrzzz: has joined #ruby
[15:30:49] mfaeh: has joined #ruby
[15:31:01] rshetty: has joined #ruby
[15:32:30] qba73: has joined #ruby
[15:38:49] za1b1tsu: has joined #ruby
[15:39:25] za1b1tsu: has joined #ruby
[15:40:23] karapetyan: has joined #ruby
[15:43:09] DoubleMalt: has joined #ruby
[15:43:16] fyrril2: has joined #ruby
[15:43:34] jobewan: has joined #ruby
[15:46:12] pod: has joined #ruby
[15:46:53] za1b1tsu_: has joined #ruby
[15:47:23] pod: has joined #ruby
[15:48:25] klaas: has joined #ruby
[15:48:51] pod: has joined #ruby
[15:50:30] pod: has joined #ruby
[15:52:11] cagomez: has joined #ruby
[15:52:37] chouhoulis: has joined #ruby
[15:53:36] synthroid: has joined #ruby
[15:55:23] alfiemax: has joined #ruby
[15:55:49] Ryzokuken: has joined #ruby
[15:55:58] [Butch]: has joined #ruby
[15:56:46] anisha_: has joined #ruby
[15:57:21] amatas: has joined #ruby
[15:59:23] alfiemax: has joined #ruby
[16:02:32] amatas_: has joined #ruby
[16:02:33] marxarelli: has joined #ruby
[16:02:51] nowhere_man: has joined #ruby
[16:04:21] tolerablyjake: has joined #ruby
[16:04:46] yeticry: has joined #ruby
[16:04:49] amatas: has joined #ruby
[16:05:08] sanscoeur: has joined #ruby
[16:08:54] j: has joined #ruby
[16:09:07] Guest11193: has left #ruby: ()
[16:10:30] jcarl43: has joined #ruby
[16:11:06] jenrzzz: has joined #ruby
[16:11:08] pastorinni: has joined #ruby
[16:11:15] ellcs: has joined #ruby
[16:11:53] darkhanb: has joined #ruby
[16:17:25] cthulchu: has joined #ruby
[16:17:52] dionysus69: has joined #ruby
[16:17:54] guacamole: has joined #ruby
[16:17:54] guacamole: has joined #ruby
[16:21:46] tomphp: has joined #ruby
[16:22:12] alfiemax_: has joined #ruby
[16:22:15] rshetty: has joined #ruby
[16:24:33] n008f4g_: has joined #ruby
[16:31:58] riotjones: has joined #ruby
[16:36:33] blackmesa: has joined #ruby
[16:37:18] guacamole: has joined #ruby
[16:37:18] guacamole: has joined #ruby
[16:39:16] venmx: has joined #ruby
[16:40:07] ruby[bot]: has joined #ruby
[16:40:07] ChanServ: +o ruby[bot]
[16:40:14] alfiemax: has joined #ruby
[16:42:39] \void: has joined #ruby
[16:46:10] rabajaj: has joined #ruby
[16:48:15] conta: has joined #ruby
[16:50:08] eckhardt: has joined #ruby
[16:51:04] rabajaj: has joined #ruby
[16:51:29] cyberg: has joined #ruby
[16:54:05] jenrzzz: has joined #ruby
[16:54:17] qba73: has joined #ruby
[16:55:15] agent_white: has joined #ruby
[16:57:47] POKE53280: has joined #ruby
[17:06:55] helpa: has joined #ruby
[17:07:10] schneider: has joined #ruby
[17:13:40] alfiemax: has joined #ruby
[17:15:56] alfiemax: has joined #ruby
[17:16:23] SeepingN: has joined #ruby
[17:16:50] tdy: has joined #ruby
[17:17:03] ramfjord: has joined #ruby
[17:17:50] jyaworski: has joined #ruby
[17:19:23] cdg: has joined #ruby
[17:21:45] alfiemax: has joined #ruby
[17:21:51] suukim: has joined #ruby
[17:27:44] anisha_: has joined #ruby
[17:33:31] nowhere_man: has joined #ruby
[17:34:57] alfiemax: has joined #ruby
[17:35:02] einarj: has joined #ruby
[17:35:29] mojtaba: has joined #ruby
[17:38:07] dr3wo: has joined #ruby
[17:39:07] def_jam: has joined #ruby
[17:39:22] harrycs: has joined #ruby
[17:39:22] eb0t_: has joined #ruby
[17:39:24] riotjones: has joined #ruby
[17:40:10] imode: has joined #ruby
[17:44:27] amatas_: has joined #ruby
[17:47:22] schneider: has joined #ruby
[17:49:57] kn-928: has joined #ruby
[17:51:24] tomphp: has joined #ruby
[17:52:00] alfiemax: has joined #ruby
[17:52:52] orbyt_: has joined #ruby
[17:56:16] clemens3: has joined #ruby
[17:59:11] cagomez: I'm creating a subclass of an ActiveRecord model at runtime. is there a massive amount of overhead in doing this? My subclass just defines a new method, which I then call
[18:00:24] sparrk: has joined #ruby
[18:01:19] yxhuvud: Dunno about overhead, but be certain to give it a name and not have it be anonymous.
[18:02:27] balo: cagomez: depends. do you create it once per request or once per boot? what do you think about profiling and measuring it? maybe it has overhead for you but if you have slower db queries maybe it's insignificant...
[18:03:09] balo: although it can also have some cognitive overhead for the next person who reads the code. i am sure i would ask it: why is this happening? :D
[18:03:54] balo: and before you think you write a long comment to explain it... how could you make it more explicit what and why is it happening what you call?
[18:04:00] cagomez: yxhuvud: this is what I have going on. as you can see, I have a circular reference if I don't use `::Fruit` https://hastebin.com/buzeyusuvu.rb
[18:04:58] alfiemax: has joined #ruby
[18:05:09] zacts: has joined #ruby
[18:05:54] jenrzzz: has joined #ruby
[18:06:53] jottr: has joined #ruby
[18:10:03] za1b1tsu: has joined #ruby
[18:10:32] phaul: cagomez: I'm confused by your code but it might be me. 1. why can't you use inherit with ::Fruit ie class Fruit < :: Fruit? That's not circular dependency?
[18:11:12] phaul: 2. how is Class.new different run time than class keyword? they are defined together so they run together?
[18:11:27] cagomez: phaul: you're right to be confused. this whole ordeal turns out to be unnecessaru
[18:11:31] cagomez: *unnecessary
[18:12:18] phaul: phew .. :) wasnt me then
[18:15:17] mojtaba: has joined #ruby
[18:15:25] EXCHGR: has joined #ruby
[18:16:36] venmx: has joined #ruby
[18:16:38] cagomez: sorry for gaslighting :)
[18:17:53] mojtaba: has joined #ruby
[18:21:10] gix: has joined #ruby
[18:21:52] alfiemax: has joined #ruby
[18:22:18] sameerynho: has joined #ruby
[18:22:31] amelliaa: has joined #ruby
[18:23:18] harryk_: has joined #ruby
[18:24:24] dr3wo: has joined #ruby
[18:28:38] Trillium1: has joined #ruby
[18:34:27] TheBloke: has joined #ruby
[18:34:33] alfiemax: has joined #ruby
[18:35:49] Code4Dopamine: has joined #ruby
[18:39:32] r2: has joined #ruby
[18:42:47] jenrzzz: has joined #ruby
[18:42:47] jenrzzz: has joined #ruby
[18:42:56] nowhere_man: has joined #ruby
[18:44:38] riotjones: has joined #ruby
[18:45:39] jobewan: has joined #ruby
[18:47:07] alfiemax: has joined #ruby
[18:48:28] ldepandis: has joined #ruby
[18:51:31] reber: has joined #ruby
[18:51:33] kn-928: has joined #ruby
[18:55:39] blackmesa: has joined #ruby
[18:58:03] einarj: has joined #ruby
[18:58:03] cagomez: has joined #ruby
[18:58:46] cagomez: has joined #ruby
[19:01:46] guacamole: has joined #ruby
[19:01:46] guacamole: has joined #ruby
[19:04:40] cdg: has joined #ruby
[19:05:44] n008f4g_: has joined #ruby
[19:05:50] spiette: has joined #ruby
[19:06:03] gnulnx: has left #ruby: ()
[19:06:18] brainslug: has joined #ruby
[19:08:20] jamesaxl: has joined #ruby
[19:09:19] bmurt: has joined #ruby
[19:11:24] duckpuppy: has joined #ruby
[19:19:14] riotjones: has joined #ruby
[19:19:56] cyberg: has joined #ruby
[19:21:38] shpoont: has joined #ruby
[19:22:23] jamesaxl: has joined #ruby
[19:23:18] jamesaxl: has joined #ruby
[19:24:09] phaul: has joined #ruby
[19:24:26] John_Ivan: has joined #ruby
[19:24:26] John_Ivan: has joined #ruby
[19:25:12] dr3wo: has joined #ruby
[19:25:54] duckpuppy: has joined #ruby
[19:27:40] elphe: has joined #ruby
[19:28:19] Cavallari: has joined #ruby
[19:32:52] newbie|2: has joined #ruby
[19:33:12] pastorinni: has joined #ruby
[19:34:06] cagomez: has joined #ruby
[19:35:14] newbie|2: Hi, I would like to let users enter a regex and then my bot looking in the log to see if it match something, I know this is vulnerable to malicious regex that take years to complete and other thing, but is there a way, for example, to limit the maximum time it take to 5 seconds and if it take more, cancel the operation? is there a lib for that?
[19:42:59] jordanm: newbie|2: what are you trying to do that grep doesn't?
[19:44:02] cdg: has joined #ruby
[19:47:17] agent_white: has joined #ruby
[19:50:17] cagomez: has joined #ruby
[19:50:23] cjohnson: newbie|2: make a syscall to
[19:50:24] AJA4350: has joined #ruby
[19:50:41] cjohnson: timeout 3s grep '$REGEX' /path/to/log/file
[19:50:55] cjohnson: Pipe and convert the resulting text
[19:52:26] eckhardt: has joined #ruby
[19:53:59] jenrzzz: has joined #ruby
[19:53:59] jenrzzz: has joined #ruby
[19:55:00] riotjones: has joined #ruby
[20:01:09] workmad3: has joined #ruby
[20:01:16] synthroid: has joined #ruby
[20:01:31] cagomez: has joined #ruby
[20:03:46] LBRapid: has joined #ruby
[20:04:03] duckpuppy: has joined #ruby
[20:04:44] mojtaba: has joined #ruby
[20:05:19] matthewd_: has joined #ruby
[20:05:31] _aeris_: has joined #ruby
[20:06:56] einarj: has joined #ruby
[20:07:21] jyaworski: has joined #ruby
[20:07:21] jyaworski: has joined #ruby
[20:08:39] gremax: has joined #ruby
[20:09:10] einarj: has joined #ruby
[20:11:34] guacamole: has joined #ruby
[20:11:35] guacamole: has joined #ruby
[20:13:40] alfiemax: has joined #ruby
[20:14:29] guacamole: has joined #ruby
[20:14:30] guacamole: has joined #ruby
[20:14:34] cagomez: has joined #ruby
[20:15:26] RougeR: has joined #ruby
[20:15:26] RougeR: has joined #ruby
[20:19:04] cagomez: has joined #ruby
[20:19:07] tomphp: has joined #ruby
[20:21:16] duckpuppy: has joined #ruby
[20:22:19] jeffreylevesque: has joined #ruby
[20:24:45] eckhardt: has joined #ruby
[20:26:10] mwlang: has joined #ruby
[20:30:08] sparrk: has joined #ruby
[20:31:38] conceivably: has joined #ruby
[20:32:24] conceivably: Hi. Why does ["a", "B"].sort return ["B", "a"]? That seems odd, no?
[20:32:49] schneider: has joined #ruby
[20:35:43] sspreitz: conceivably, http://man7.org/linux/man-pages/man7/ascii.7.html
[20:36:02] ur5us: has joined #ruby
[20:36:49] sspreitz: conceivably, imho the sorting is done via the ascii table
[20:37:00] conceivably: It compares them by character codes!? When is that ever the intended result?
[20:37:05] sspreitz: conceivably, in there upper case comes before lower case
[20:37:24] sspreitz: conceivably, there might be some other sort modes
[20:37:27] mojtaba: has joined #ruby
[20:37:31] conceivably: :D Thanks for the pointer :)
[20:37:51] blackmesa1: has joined #ruby
[20:38:32] nowhereman_: has joined #ruby
[20:40:38] pastorinni: has joined #ruby
[20:41:10] conceivably: Wait but "a" <=> "B" returns 1
[20:41:58] schneider: has joined #ruby
[20:43:17] newbie|2: cjohnson: wow thanks a lot
[20:44:51] guacamole: has joined #ruby
[20:44:51] guacamole: has joined #ruby
[20:45:33] mjolnird: has joined #ruby
[20:47:47] cjohnson: newbie|2: Just make sure you use a tool to properly escape $REGEX as a command line argument
[20:47:57] jenrzzz: has joined #ruby
[20:47:57] jenrzzz: has joined #ruby
[20:48:01] cjohnson: Don't just concat user input there or they will be able to run arbitrary commands haha
[20:48:57] schneider: has joined #ruby
[20:52:11] cdg: has joined #ruby
[20:52:43] eckhardt: has joined #ruby
[20:53:32] mrpdd: has joined #ruby
[20:53:36] mrpdd: hello all
[20:53:45] LBRapid_: has joined #ruby
[20:54:43] mojtaba: has joined #ruby
[20:55:35] mrpdd: what's the fastest way to get the intersection of 2 arrays? I feel like ary1 & ary2 is not performing well (ruby 1.9.3)
[20:57:06] eckhardt: has joined #ruby
[20:57:11] cjohnson: mrpdd: Don't micro-optimize, if you are having performance problems in your app, profile the entire thing and then optimize by starting with teh biggest time wasters and work your way down
[20:57:15] cjohnson: Don't just pick random things to optimize
[20:57:23] cjohnson: You could actually shoot yourself in the foot
[20:57:45] tomphp: has joined #ruby
[20:58:09] r2: has joined #ruby
[21:00:02] jenrzzz_: has joined #ruby
[21:02:49] riotjones: has joined #ruby
[21:03:09] dextrey: has joined #ruby
[21:03:40] ledestin: has joined #ruby
[21:04:22] tdy: has joined #ruby
[21:13:40] mrpdd: cjohnson: thanks. I'm just breaking my brain here with these arrays (they're pretty big) - newrelic tells me like 20% of the time is spent there.
[21:14:07] havenwood: mrpdd: Are they sorted? Are they unique?
[21:14:14] SeepingN: has joined #ruby
[21:15:08] mrpdd: havenwood: yes, and yes. both are ranges from redis sorted sets
[21:16:07] havenwood: &ri SortedSet
[21:16:07] `derpy: http://ruby-doc.org/stdlib-2.4.1/libdoc/set/rdoc/SortedSet.html
[21:16:08] havenwood: ?ri SortedSet
[21:16:08] ruby[bot]: havenwood: I don't see no SortedSet, whom should I tell about ri?
[21:16:36] Bobi: has joined #ruby
[21:17:26] havenwood: mrpdd: Have you checked how Set#intersection performs?
[21:17:33] Bobi: hello is anyone here ?
[21:18:06] havenwood: mrpdd: https://ruby-doc.org/stdlib/libdoc/set/rdoc/Set.html#method-i-26
[21:19:54] Bobi: ok thanks im first time here and am trying to figure out how chat system works
[21:20:21] Bobi: is there something to read about asking questions and chanal etc
[21:20:36] havenwood: Bobi: The channel topic has some info likes rules.
[21:20:41] alfiemax: has joined #ruby
[21:20:46] havenwood: Rules & more: https://ruby-community.com
[21:21:01] Bobi: thanks havenwood
[21:21:15] havenwood: Bobi: you're welcome. mostly just ask away!
[21:21:38] workmad3: has joined #ruby
[21:23:20] mrpdd: havenwood: thanks, I'll check it out
[21:23:29] mrpdd: havenwood: Ideally this could all be done in redis
[21:25:46] postmodern: has joined #ruby
[21:27:06] Bobi: do i need to instal IRC “client” on my computer for successfully using this chat system?
[21:28:05] mrpdd: Bobi: no - i'm using the web ui from https: // webchat (dot) freenode (dot) net
[21:28:07] havenwood: Bobi: Most people use a standalone irc client. Some use a terminal or web browser based client.
[21:28:25] mrpdd: I would use an irc client if my office didn't block IRC ports
[21:28:36] mrpdd: do people still use mIRC on Windows?
[21:29:48] shpoont: has joined #ruby
[21:30:06] havenwood: Freenode suggests irssi, WeeChat, ERC, HexChat, Smuxi, Quassel or mIRC.
[21:30:39] Bobi: i dont know i read somewhere that i need to install irc client on Windows if i want to get onto the real-time IRC channels here
[21:31:19] havenwood: Bobi: This is a real-time channel. How are you currently connected? A browser client if fine but most folk who hang out here much go with a real irc client.
[21:32:31] mrBen2k2k2k_: has joined #ruby
[21:32:39] Bobi: ok thanks
[21:33:23] sammi`_: has joined #ruby
[21:33:32] Bobi: havenwood how to tag yourname if i want to ask you somethin for example?
[21:33:42] miah: do like you just did
[21:33:51] miah: this is irc, not slack =)
[21:34:07] havenwood: Bobi: That did ping me. Start typing my name then hit <tab>.
[21:34:26] Bobi: ok thanks
[21:37:01] Puffball: has joined #ruby
[21:38:32] riotjones: has joined #ruby
[21:38:52] duckpuppy: has joined #ruby
[21:43:48] noobineer: has joined #ruby
[21:46:34] jaequery: has joined #ruby
[21:47:58] cdg: has joined #ruby
[21:48:23] pilne: has joined #ruby
[21:52:27] EXCHGR: has joined #ruby
[22:00:46] jenrzzz: has joined #ruby
[22:00:46] jenrzzz: has joined #ruby
[22:01:32] DTZUZO: has joined #ruby
[22:04:46] jamesaxl: has joined #ruby
[22:04:47] mniip: has joined #ruby
[22:05:11] venmx: has joined #ruby
[22:05:48] jenrzzz: has joined #ruby
[22:05:48] jenrzzz: has joined #ruby
[22:06:36] n0m4d1c: has joined #ruby
[22:07:35] mrpdd: thanks havenwood for your help. I'm out for the day
[22:08:45] duckpuppy: has joined #ruby
[22:12:36] cyberg: has joined #ruby
[22:12:46] iszak: has joined #ruby
[22:21:11] erlend: has joined #ruby
[22:22:41] duckpuppy: has joined #ruby
[22:23:05] alfiemax: has joined #ruby
[22:24:30] conceivably: has left #ruby: ("ERC (IRC client for Emacs 25.3.1)")
[22:26:44] zenspider: anyone know if you can block an IP address on heroku? or some other form of mitigation? I’m running out of free dynos on our website and it looks like someone on comcastbusiness is pinging our slack app constantly
[22:30:17] mniip: has joined #ruby
[22:30:59] eckhardt: has joined #ruby
[22:32:22] cdg: has joined #ruby
[22:36:21] tdy: has joined #ruby
[22:36:58] havenwood: zenspider: I've seen a buildpack for whitelisting ips. It seems there should be one for blacklisting them.
[22:37:04] havenwood: zenspider: A Rack app?
[22:38:20] seydar: has joined #ruby
[22:38:44] seydar: credit card processing: what are people using nowadays?
[22:38:45] havenwood: I'd be tempted to just do Rack middleware with a Rack app.
[22:38:51] shpoont: has joined #ruby
[22:38:54] havenwood: seydar: Square! (I'm biased.)
[22:39:46] havenwood: seydar: https://github.com/square/connect-ruby-sdk#readme
[22:40:12] havenwood: seydar: Stripe is another popular option.
[22:40:20] jeffreylevesque: has joined #ruby
[22:40:46] seydar: havenwood: thank you! both of those work for processing in-person cards as well, right?
[22:41:00] havenwood: seydar: No, just Square does as far as I know.
[22:41:23] havenwood: Stripe doesn't do in-person swipes, as far as I know.
[22:41:25] le0taku: has joined #ruby
[22:42:21] havenwood: Yeah, it seems that's still the case.
[22:42:37] seydar: for some reason i thought if i used square, i *had* to use their database system as well
[22:45:11] havenwood: seydar: Nope, you can do card transactions only if you like. You don't *have to* use any of the other services.
[22:46:43] seydar: thank god
[22:46:47] seydar: the world is a beautiful place
[22:47:04] seydar: i've been out of the scene for like 4 years now, i have a lot to catch up on
[22:47:38] harryk_: has joined #ruby
[22:48:00] eam: in like 2003 I wrote a cpanel replacement in ruby using cgi.rb (before rails!!) for a small shared webhosting company and that company failed ultimately because all the card processing services were too much of a PITA to work with
[22:50:19] ramfjord: has joined #ruby
[22:50:40] seydar: what do people use for daemon monitoring?
[22:51:02] harryk_: has joined #ruby
[22:51:24] havenwood: seydar: http://www.mikeperham.com/2014/09/22/dont-daemonize-your-daemons/
[22:51:37] tcopeland: has joined #ruby
[22:52:07] havenwood: seydar: TL;DR: systemd
[22:52:19] eam: some people use runit or similar alternatives
[22:52:38] eam: systemd is probably the right answer I'm just sad about it
[22:52:43] nicesignal: has joined #ruby
[22:53:29] havenwood: zenspider: Looks like this dated middleware has a fairly simple strategy: https://github.com/mje113/rack-ip_filter/blob/master/lib/rack/ip_filter.rb#L27-L31
[22:54:00] seydar: so god, bluepill, and eye are no longer (never were?) recommended?
[22:54:50] seydar: i guess i should've rephrased: process monitoring
[22:54:59] riotjones: has joined #ruby
[22:55:02] seydar: although i think i'm fuzzy on the difference between the two?
[22:55:57] zenspider: havenwood: not sure that'll help, given that it requires the dyno to run to do.
[22:56:13] zenspider: it's a nodejs app (slackin for allowing our members to sign up to slack automatically)
[22:56:24] kn-928: has joined #ruby
[22:56:27] ramfjord: has joined #ruby
[22:56:38] miah: ive always been a fan of runit because its super simple and you can install it into existing systems. systemd is solid too though.
[22:57:32] rahul_bajaj: has joined #ruby
[22:57:37] zenspider: runit?!? you're NOT talking about the ancient test lib in ruby... right?!?
[22:57:41] havenwood: zenspider: It's kinda odd there are a couple whitelist buildpacks but neither does blacklist...
[22:57:54] miah: zenspider: no no =)
[22:58:06] havenwood: https://github.com/altV/ip-whitelist-buildpack
[22:58:07] havenwood: https://github.com/FortumOyj/heroku-static-buildpack-with-ip-whitelisting
[22:58:10] miah: this; http://smarden.org/runit/
[22:59:37] seydar: we're on ruby 2.5.0?!?!?!
[22:59:58] lupine: runit is ok, there's also, um
[23:00:09] lupine: I've completely forgotten its name. it's like runit but has events and stuff
[23:00:16] lupine: these days i'd just use systemd
[23:00:24] rabajaj: has joined #ruby
[23:00:46] miah: yes of course that depends on if your distribution includes it =)
[23:00:50] seydar: lupine, miah, eam: thank you, i'll look into those
[23:00:52] havenwood: seydar: Ruby 2.6.0-preview1 is out and it has a JIT! Welcome to the future. :-)
[23:01:05] n0m4d1c: has joined #ruby
[23:01:08] seydar: oh man. i've been praying for the future like literally every day
[23:01:23] ghormoon: has joined #ruby
[23:01:32] havenwood: seydar: https://medium.com/square-corner-blog/rubys-new-jit-91a5c864dd10
[23:01:45] seydar: i'm not used to seeing TWO version whose second digit is odd. 2.4.3 is the current stable, i take it?
[23:02:54] havenwood: seydar: 2.5.0 is the current stable (though some folk are waiting for 2.5.1).
[23:03:06] havenwood: seydar: 2.4.3 is the latest stable version of 2.4.
[23:03:19] seydar: AND we have a 2.3.6? what is the world coming to
[23:03:31] havenwood: seydar: 2.3.6 is the latest stable version of 2.3.
[23:03:36] seydar: i was still operating on the "1.8 is stable, 1.9 is dev, 2.0 is stable" thing
[23:03:43] seydar: holy shit so much as changed
[23:04:11] duckpuppy: has joined #ruby
[23:04:12] havenwood: seydar: Yeah, semi-semantic versioning now--just always released on Christmas. No more patch versions.
[23:04:44] seydar: gotcha. so how different are the three (four?) versions out now?
[23:04:49] havenwood: seydar: They changed the way versioning is done with Ruby 2.1+: https://www.ruby-lang.org/en/news/2013/12/21/ruby-version-policy-changes-with-2-1-0/
[23:05:12] cagomez: has joined #ruby
[23:05:17] havenwood: seydar: 2.5 is latest. 2.4 is fully supported. 2.3 is in maintenance mode. 2.2 is past end of life.
[23:06:22] havenwood: seydar: 2.5.0 or 2.4.3 are the stable supported versions.
[23:08:29] cagomez_: has joined #ruby
[23:08:32] seydar: okay, i think i follow. everyone is encouraged to use 2.5 (or 2.6 for the bold), 2.4 is just there because it once was, and we begrudgingly support 2.3
[23:09:39] ghormoon: has joined #ruby
[23:10:22] seydar: and the major VMs are YARV, rbx, jruby, and i guess mruby exists and is available
[23:10:33] seydar: damn maglev is no more. RIP
[23:12:30] zenspider: rbx isn't really a valid "major VM"
[23:13:02] lupine: I tried to support it ages ago, but it had too many differences to YARV - and even jruby
[23:13:08] lupine: in fairness, the target *is* insane
[23:13:29] seydar: my soul hurts but i accept it
[23:13:44] zenspider: rbx is insane at this point. so you'd think it'd be in good company... but no. it's poison
[23:15:29] seydar: also according to the website, rbx has now shifted to being a platform for building languages? i gotta catch up with brixen
[23:15:43] seydar: zenspider: what's happened to rbx?
[23:16:04] harryk_: has joined #ruby
[23:18:01] harryk_: has joined #ruby
[23:19:31] havenwood: seydar: TruffleRuby is a new one to put on your radar.
[23:19:38] SynSynack: has joined #ruby
[23:20:07] havenwood: seydar: https://github.com/oracle/truffleruby#readme
[23:21:36] Fysicus: has joined #ruby
[23:22:08] alfiemax: has joined #ruby
[23:25:19] n0m4d1c: has joined #ruby
[23:25:58] seydar: okay step one install 2.5
[23:27:21] seydar: rvm? we still using rvm?
[23:28:28] ramfjord: I still use rvm for dev occasionally, but mostly I just used docker compose and the ruby-X or managed images with ruby installed
[23:28:31] ramfjord: with volumes
[23:29:56] n0m4d1c_: has joined #ruby
[23:30:08] seydar: docker is the new rvm?
[23:30:53] tAn: has joined #ruby
[23:31:12] riotjones: has joined #ruby
[23:31:29] eckhardt: has joined #ruby
[23:32:03] harryk_: has joined #ruby
[23:32:20] TheBloke: has joined #ruby
[23:33:02] seydar: how do docker/hombrew/rvm all play together?
[23:33:52] orbyt_: has joined #ruby
[23:34:05] harryk_: has joined #ruby
[23:34:33] nowhere_man: has joined #ruby
[23:37:28] zenspider: docker is a whole other beast. it's like the opposite of homebrew+rvm. everything is installed into separate virtualized containers. I wouldn't go that route for normal coding, personally
[23:38:02] harryk_: has joined #ruby
[23:38:21] seydar: zenspider: thank you. i'm gonna stick with homebrew + rvm then
[23:39:46] seydar: has joined #ruby
[23:40:00] workmad3: has joined #ruby
[23:41:11] shinnya: has joined #ruby
[23:43:04] jottr: has joined #ruby
[23:46:46] dr3wo: has joined #ruby
[23:49:27] harryv: has joined #ruby
[23:52:36] rahul_bajaj: has joined #ruby
[23:54:31] seydar: i have angered the rvm gods. i want to install 2.6 (or at least 2.5), but rvm isn't listing it as an option: http://lpaste.net/4809775914483187712
[23:55:39] rabajaj: has joined #ruby
[23:56:05] duckpuppy: has joined #ruby
[23:58:45] jottr: has joined #ruby
[23:59:09] mniip: has joined #ruby