« Back to channel list

#ruby - 12 June 2019

« Back 1 day Forward 1 day »
[00:01:26] bradleyprice: has joined #ruby
[00:02:41] mistergibson: has joined #ruby
[00:02:49] rgrant: has joined #ruby
[00:03:42] coreyja: has joined #ruby
[00:03:45] bradleyprice: has joined #ruby
[00:09:06] queip: has joined #ruby
[00:11:03] deimos: has joined #ruby
[00:17:05] octos: has joined #ruby
[00:34:32] bradleyprice: has joined #ruby
[00:35:41] nowhereman: has joined #ruby
[00:45:56] SeepingN: has joined #ruby
[00:59:29] rsh: has joined #ruby
[01:05:49] hutch1: has joined #ruby
[01:06:02] dbugger__: has joined #ruby
[01:19:29] d^sh: has joined #ruby
[01:31:10] duderonomy: has joined #ruby
[01:42:24] sgen: has joined #ruby
[01:44:40] fphilipe_: has joined #ruby
[01:52:50] salerace: has joined #ruby
[01:56:54] zxq2: with TLS, using an ephemeral key exchange algorithm, the ServerKeyExchange message is digitally signed using the key from the server's certificate, right?
[02:07:01] galaxie: has joined #ruby
[02:10:03] staticx: has joined #ruby
[02:10:33] salerace: has joined #ruby
[02:24:26] Inline_: has joined #ruby
[02:29:21] cerulean: has joined #ruby
[02:47:03] TQBFJOTL`: has joined #ruby
[02:48:38] hutch1: has joined #ruby
[02:49:57] esrse: has joined #ruby
[02:58:47] comet23: has joined #ruby
[03:03:27] comet23: so i have a weird problem
[03:03:39] comet23: wait let me rephrase
[03:06:32] tdy: has joined #ruby
[03:06:56] comet23: I would like to call a class method from within another class during the initialization process
[03:09:25] orbyt_: has joined #ruby
[03:10:37] braincrash: has joined #ruby
[03:14:06] sgen: has joined #ruby
[03:18:43] rsh_: has joined #ruby
[03:25:45] doodlebug: has joined #ruby
[03:28:53] faitswulff: has joined #ruby
[03:29:17] d^sh: has joined #ruby
[03:38:07] bradleyprice: has joined #ruby
[03:46:31] iMadper: has joined #ruby
[03:47:05] code_zombie_: has joined #ruby
[03:50:45] hutch1: has joined #ruby
[03:50:47] agrecascino: has joined #ruby
[03:51:41] twe4ked: has joined #ruby
[03:51:47] LtHummus_: has joined #ruby
[03:51:53] uranoss: has joined #ruby
[03:52:44] Seich: has joined #ruby
[03:54:12] bradleyprice: has joined #ruby
[03:54:15] IGnorAND: has joined #ruby
[03:54:30] mosh: has joined #ruby
[03:55:25] giraffe: has joined #ruby
[03:57:30] dar123: has joined #ruby
[04:01:00] jidar: has joined #ruby
[04:02:12] dhollinger: has joined #ruby
[04:02:51] pnus: has joined #ruby
[04:05:20] mcspud: has joined #ruby
[04:13:27] howdoi: has joined #ruby
[04:14:59] fphilipe_: has joined #ruby
[04:30:42] zlogan2003: has joined #ruby
[04:31:12] dellavg_: has joined #ruby
[04:33:19] arahael4: has joined #ruby
[04:34:56] element119: has joined #ruby
[04:38:36] element119: has left #ruby: ()
[04:38:38] element119: has joined #ruby
[04:39:20] Arahael: has joined #ruby
[04:41:03] aupadhye: has joined #ruby
[04:47:06] bradleyprice: has joined #ruby
[04:48:19] ur5us: has joined #ruby
[04:54:24] Arahael: has joined #ruby
[04:56:40] bradleyprice: has joined #ruby
[04:57:39] kyrylo: has joined #ruby
[05:06:00] Arahael: has joined #ruby
[05:06:35] infernix: has joined #ruby
[05:10:26] fphilipe_: has joined #ruby
[05:16:12] prestorium: has joined #ruby
[05:17:29] Arahael: has joined #ruby
[05:18:21] bradleyprice: has joined #ruby
[05:25:40] sauvin: has joined #ruby
[05:28:48] yield: has joined #ruby
[05:30:00] reber: has joined #ruby
[05:30:21] alotofnoodles: has joined #ruby
[05:30:46] Arahael: has joined #ruby
[05:39:16] bradleyprice: has joined #ruby
[05:39:29] schne1der: has joined #ruby
[06:00:06] bradleyprice: has joined #ruby
[06:09:08] Arahael: has joined #ruby
[06:12:42] xco: has joined #ruby
[06:17:57] bradleyprice: has joined #ruby
[06:19:34] fphilipe_: has joined #ruby
[06:20:49] alem0lars: has joined #ruby
[06:22:47] matthewd: has joined #ruby
[06:23:18] Ropeney: has joined #ruby
[06:25:54] prestorium: has joined #ruby
[06:29:05] Arahael: has joined #ruby
[06:31:56] cerulean: has joined #ruby
[06:34:15] bradleyprice: has joined #ruby
[06:36:43] silviu: has joined #ruby
[06:39:54] Arahael: has joined #ruby
[06:47:23] bradleyprice: has joined #ruby
[06:48:53] ur5us: has joined #ruby
[06:52:28] Arahael: has joined #ruby
[06:54:13] mayurvpatil: has joined #ruby
[06:57:23] lxsameer: has joined #ruby
[07:04:19] salerace: has joined #ruby
[07:06:16] Arahael: has joined #ruby
[07:10:16] arahael1: has joined #ruby
[07:12:43] bradleyprice: has joined #ruby
[07:15:39] clemens3: has joined #ruby
[07:23:44] schne1der: has joined #ruby
[07:31:07] arahael1: has joined #ruby
[07:35:50] xco: hi! I need help making this if clause a one-liner https://gist.github.com/xcobar/23d919440b2779cf10c7c88a87a0076f
[07:43:41] xco: possibly with early return?
[07:59:46] dtzuzu: has joined #ruby
[08:00:31] yield: has joined #ruby
[08:03:13] mikecmpbll: has joined #ruby
[08:06:20] thunderbirdtr: has joined #ruby
[08:22:10] arahael1: has joined #ruby
[08:28:04] mayurvpatil: has joined #ruby
[08:29:30] ur5us: has joined #ruby
[08:38:20] yield: has joined #ruby
[08:40:41] Furai: has joined #ruby
[08:50:30] arahael1: has joined #ruby
[08:54:49] clemens3: has joined #ruby
[09:02:29] phaul: xco: in that example the return is not needed as there is nothing in the method that's after it
[09:02:49] phaul: so its just do_something! if something?
[09:03:08] yasumi2136: has joined #ruby
[09:03:26] xco: phaul: thanks, but got it figured out. there are stuff after the if clause
[09:03:28] xco: so i just did
[09:03:37] xco: return if something? && do_something!
[09:04:47] phaul: with that the execution of return depends on the value of do_something!.
[09:05:37] xco: which is what i want :D
[09:05:47] xco: do_something! will ALWAYS be execute
[09:06:03] claudiuinberlin: has joined #ruby
[09:06:20] phaul: but if doosomething is: def do_something! ; ...; nil; end then return will not be
[09:07:21] phaul: one has to know what do_something! does to see what this code does, which makes it worse than the original imho
[09:07:50] xco: you have a good point
[09:08:01] xco: thing is, i KNOW do_something! always returns TRUE
[09:08:15] xco: but that’s bad i guess because i shouldn’t take that into consideration
[09:08:36] xco: i shouldn’t make it known in the code what do_something! does
[09:13:34] yasumi2136: has joined #ruby
[09:19:49] powerbit: has joined #ruby
[09:28:05] bradleyprice: has joined #ruby
[09:28:06] tdy: has joined #ruby
[09:34:08] mikecmpbll: has joined #ruby
[10:01:48] Jonopoly: has joined #ruby
[10:07:54] NL3limin4t0r: xco: If you don't mind returning the value of `do_something!` you can do `return do_something! if something?`. Alternatively if you really want a oneliner and you know the result of `do_something!` is always truthy you can do `do_something! and return if something?`. You could also stick the contents in a helper `def validate_something; return true unless something?; do_something!; false; end` then `return
[10:07:56] NL3limin4t0r: unless validate_something`.
[10:08:11] GodFather: has joined #ruby
[10:11:05] xco: NL3limin4t0r: thanks. i ended up doing `return do_something! if something?` anyway :)
[10:12:41] cd: has joined #ruby
[10:18:34] queip: has joined #ruby
[10:23:12] ur5us: has joined #ruby
[10:31:42] NL3limin4t0r: has joined #ruby
[10:33:55] cerulean: has joined #ruby
[10:34:45] alotofnoodles: has joined #ruby
[10:36:18] Swyper: has joined #ruby
[10:40:08] miskatonic: has joined #ruby
[10:43:06] infernix: has joined #ruby
[10:46:58] dbugger__: has joined #ruby
[10:47:56] doodleb15: has joined #ruby
[10:49:40] Swyper: has joined #ruby
[10:53:57] doodleb10: has joined #ruby
[10:59:56] doodlebug: has joined #ruby
[11:05:08] yasumi2136: has joined #ruby
[11:05:57] doodlebug: has joined #ruby
[11:07:02] arup_r: has joined #ruby
[11:08:47] cek: has joined #ruby
[11:11:24] queip: has joined #ruby
[11:11:56] doodlebug: has joined #ruby
[11:14:53] mayurvpatil: has joined #ruby
[11:16:23] Swyper: has joined #ruby
[11:17:57] doodlebug: has joined #ruby
[11:19:38] cek: /usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
[11:19:49] cek: but: * optflags: -O3 -fno-fast-math
[11:19:58] cek: and also somehow CFLAGS = -O0 -ggdb
[11:20:09] cek: wtf is going on with ruby build process
[11:20:40] cek: so the question is what are the actual flags used
[11:23:57] doodlebug: has joined #ruby
[11:23:58] cek: trying to understand why 2.4.3, which is higher than r43439 , doesn't experience https://redmine.ruby-lang.org/issues/12950 , but 2.4.4 and higher do
[11:24:15] aupadhye: has joined #ruby
[11:28:59] bradleyprice: has joined #ruby
[11:29:57] doodlebug: has joined #ruby
[11:35:57] doodlebug: has joined #ruby
[11:37:45] queip: has joined #ruby
[11:40:34] salerace: has joined #ruby
[11:41:12] apparition: has joined #ruby
[11:41:30] AJA4350: has joined #ruby
[11:41:57] doodlebug: has joined #ruby
[11:47:10] helpa-bot: has joined #ruby
[11:47:57] doodlebug: has joined #ruby
[11:49:39] helpa: has joined #ruby
[11:53:57] doodlebug: has joined #ruby
[11:57:12] bradleyprice: has joined #ruby
[11:59:56] doodlebug: has joined #ruby
[12:01:03] galaxie: has joined #ruby
[12:02:41] queip: has joined #ruby
[12:05:57] doodlebug: has joined #ruby
[12:07:22] bradleyprice: has joined #ruby
[12:09:01] conta: has joined #ruby
[12:09:13] crankharder: has joined #ruby
[12:11:57] doodlebug: has joined #ruby
[12:17:57] doodlebug: has joined #ruby
[12:23:58] doodlebug: has joined #ruby
[12:25:35] infernix: has joined #ruby
[12:26:04] salerace: has joined #ruby
[12:29:58] doodlebug: has joined #ruby
[12:35:58] doodlebug: has joined #ruby
[12:41:58] doodlebug: has joined #ruby
[12:47:58] doodlebug: has joined #ruby
[12:49:28] conta: has joined #ruby
[12:53:58] doodlebug: has joined #ruby
[12:59:22] miskatonic: has joined #ruby
[12:59:58] doodlebug: has joined #ruby
[13:00:35] infernix: has joined #ruby
[13:02:50] prestorium: has joined #ruby
[13:03:35] jcalla: has joined #ruby
[13:05:58] doodlebug: has joined #ruby
[13:08:07] ovnimancer: has joined #ruby
[13:08:33] bradleyprice: has joined #ruby
[13:10:56] oholiab: has left #ruby: ("WeeChat 1.4")
[13:11:59] doodlebug: has joined #ruby
[13:12:07] mayurvpatil_: has joined #ruby
[13:16:13] ricekrispie: has joined #ruby
[13:17:58] doodlebug: has joined #ruby
[13:21:59] EnderMB: has joined #ruby
[13:22:10] EnderMB: has left #ruby: ()
[13:32:53] bradleyprice: has joined #ruby
[13:33:35] prestorium: has joined #ruby
[13:43:34] bradleyprice: has joined #ruby
[13:45:11] hutch1: has joined #ruby
[14:09:46] Rapture: has joined #ruby
[14:09:48] vondruch_: has joined #ruby
[14:10:04] rbanffy: has joined #ruby
[14:19:09] dar123: has joined #ruby
[14:23:42] Rapture: has joined #ruby
[14:24:56] jeremycw: has joined #ruby
[14:27:21] brool: has joined #ruby
[14:32:34] dviola: has joined #ruby
[14:34:08] Inline: has joined #ruby
[14:35:08] Inline: has joined #ruby
[14:42:34] moei: has joined #ruby
[14:43:27] Onwarion: has joined #ruby
[14:44:31] duderonomy: has joined #ruby
[14:49:54] cthulchu_: has joined #ruby
[14:53:06] infernix: has joined #ruby
[14:55:50] xco: has joined #ruby
[15:00:05] teclator_: has joined #ruby
[15:02:17] bradleyprice: has joined #ruby
[15:02:34] cthulchu_: has joined #ruby
[15:02:43] prestorium: has joined #ruby
[15:03:07] bradleyprice: has joined #ruby
[15:03:53] yaewa: has joined #ruby
[15:06:49] yield: has joined #ruby
[15:16:35] prestorium: has joined #ruby
[15:17:58] vondruch: has joined #ruby
[15:26:41] SeepingN: has joined #ruby
[15:30:17] yield: has joined #ruby
[15:32:34] wald0: has joined #ruby
[15:39:55] queip: has joined #ruby
[15:51:49] schne1der: has joined #ruby
[15:58:01] Ai9zO5AP: has joined #ruby
[16:00:45] themsay: has joined #ruby
[16:13:55] prestorium: has joined #ruby
[16:20:20] hutch1: has joined #ruby
[16:21:50] fphilipe_: has joined #ruby
[16:28:25] budonyc: has joined #ruby
[16:34:17] miskatonic: has joined #ruby
[16:44:41] dviola: has joined #ruby
[16:45:50] dar123: has joined #ruby
[17:02:44] Mike11: has joined #ruby
[17:09:13] duderonomy: has joined #ruby
[17:09:52] rsh__: has joined #ruby
[17:12:27] xco: has joined #ruby
[17:15:32] prestorium: has joined #ruby
[17:15:33] iliaskarim: has joined #ruby
[17:24:47] Fr4n: has joined #ruby
[17:25:22] hutch1: has joined #ruby
[17:33:23] NL3limin4t0r: has joined #ruby
[17:33:28] prestorium: has joined #ruby
[17:37:43] queip: has joined #ruby
[17:49:56] Onwarion_: has joined #ruby
[17:56:26] queip: has joined #ruby
[18:10:19] rsh: has joined #ruby
[18:18:44] code_zombie: has joined #ruby
[18:19:39] themsay: has joined #ruby
[18:21:03] Xiti: has joined #ruby
[18:22:08] jenrzzz: has joined #ruby
[18:24:03] Esa_: has joined #ruby
[18:27:47] tdy: has joined #ruby
[18:29:17] prestorium: has joined #ruby
[18:34:45] rsh: has joined #ruby
[18:40:10] Onwarion: has joined #ruby
[18:43:37] happyhans: has joined #ruby
[18:55:33] drale2k_: has joined #ruby
[18:57:17] reber: has joined #ruby
[19:03:12] _whitelogger: has joined #ruby
[19:11:40] themsay: has joined #ruby
[19:14:47] zlogan2003: has joined #ruby
[19:18:27] griffindy: has joined #ruby
[19:20:20] kyrylo: has joined #ruby
[19:26:29] miskatonic: has joined #ruby
[19:28:06] jenrzzz: has joined #ruby
[19:30:16] LtHummus: has joined #ruby
[19:32:09] drale2k_: has joined #ruby
[19:32:15] bradleyprice: has joined #ruby
[19:33:02] themsay: has joined #ruby
[19:34:35] bradleyprice: has joined #ruby
[19:37:09] bradleyprice_: has joined #ruby
[19:40:03] jenrzzz: has joined #ruby
[19:47:29] sagax: has joined #ruby
[19:51:41] xco: has joined #ruby
[19:53:58] drale2k_: has joined #ruby
[19:58:28] jenrzzz: has joined #ruby
[19:58:38] rokra: has joined #ruby
[19:59:16] rokra: Hey I m getting an error by doing an insert into : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'error_log' Safe Mode Restriction-Bypass Issue'
[19:59:22] rsh: has joined #ruby
[20:00:06] rokra: do u know what could be the issue? I m doing a multiple insert in a loop
[20:00:42] SeepingN: the error is in the syntax which we can't see............
[20:05:05] queip: has joined #ruby
[20:07:27] prestorium: has joined #ruby
[20:10:05] rokra: SeepingN: https://dpaste.de/kTSS
[20:12:40] liKe2k1: has joined #ruby
[20:13:55] liKe2k1: Hey guys, how can I optimize multiple regex group matches. Currently 16 matches (sperate lines with line =~ regex) takes about 2 seconds..
[20:14:06] havenwood: liKe2k1: Show the code?
[20:14:13] liKe2k1: Give me a minute
[20:14:53] CCDelivery: has joined #ruby
[20:16:34] liKe2k1: Oh crap.. found my issue.
[20:16:55] jenrzzz: has joined #ruby
[20:17:13] liKe2k1: body.each_line do |chunk] ... if body ~= regex do ...is not the best to reach the goal
[20:17:37] havenwood: liKe2k1: Especially if there are many lines!
[20:17:49] liKe2k1: Yep :/ arround 900000
[20:17:56] havenwood: liKe2k1: If you're not using the match data from ~=, it's faster to use #match? too.
[20:18:08] havenwood: liKe2k1: if body.match? regex
[20:18:09] liKe2k1: i use the capture group
[20:18:14] havenwood: ah, roger that
[20:18:57] havenwood: liKe2k1: sounds like a good 900000x improvement ;)
[20:19:02] liKe2k1: but for completition: https://dpaste.de/2KUp
[20:21:00] rindolf: has joined #ruby
[20:21:30] rokra: liKe2k1: start to avoid .* which is computing consuming
[20:21:38] rindolf: liKe2k1: sup?
[20:22:25] themsay: has joined #ruby
[20:22:26] liKe2k1: rokra, thanks I will consider it after I figure it out which chars are valid.
[20:23:20] Axsuul: has joined #ruby
[20:24:05] zlogan85: has joined #ruby
[20:24:43] liKe2k1: havenwood, Yep Its now on steroids! :D
[20:24:51] havenwood: liKe2k1: nice
[20:25:32] themsay: has joined #ruby
[20:30:11] jenrzzz_: has joined #ruby
[20:37:12] prestorium: has joined #ruby
[20:46:41] Emmanuel_Chanel: has joined #ruby
[20:49:55] sameerynho: has joined #ruby
[20:52:01] bradleyprice: has joined #ruby
[20:53:32] bradleyprice: has joined #ruby
[20:59:18] tpanarch1st: has joined #ruby
[21:03:43] griffindy: has joined #ruby
[21:04:57] fphilipe_: has joined #ruby
[21:05:29] drale2k_: has joined #ruby
[21:07:10] snickers: has joined #ruby
[21:07:14] Dbugger: has joined #ruby
[21:10:28] DTZUZO: has joined #ruby
[21:23:54] jinie: has joined #ruby
[21:28:43] ur5us: has joined #ruby
[21:31:28] Mike11: has joined #ruby
[21:36:42] jinie: has joined #ruby
[21:41:02] Emmanuel_Chanel: has joined #ruby
[21:44:25] bradleyprice: has joined #ruby
[21:44:36] bradleyprice: has joined #ruby
[21:46:23] AJA4350: has joined #ruby
[22:05:25] queip: has joined #ruby
[22:08:33] jenrzzz: has joined #ruby
[22:08:38] Matadoer: has joined #ruby
[22:08:47] prestorium: has joined #ruby
[22:14:03] rsh: has joined #ruby
[22:14:14] fphilipe_: has joined #ruby
[22:15:45] xco: has joined #ruby
[22:17:02] gigetoo: has joined #ruby
[22:20:57] wolfshappen: has joined #ruby
[22:29:52] bradleyprice: has joined #ruby
[22:30:27] bradleyprice: has joined #ruby
[22:33:31] nakuku: has joined #ruby
[22:34:17] ltp: has joined #ruby
[22:36:25] xco: has joined #ruby
[22:41:51] priodev: has joined #ruby
[22:42:01] Dbugger: has joined #ruby
[22:48:25] bradleyprice: has joined #ruby
[22:58:03] shansen: has joined #ruby
[23:03:04] bradleyprice: has joined #ruby
[23:03:22] xco: has joined #ruby
[23:05:07] Nahra: has joined #ruby
[23:09:53] jenrzzz: has joined #ruby
[23:17:38] Swyper: has joined #ruby
[23:33:02] rsh: has joined #ruby
[23:33:41] mozzarella: has joined #ruby
[23:41:37] Swyper: has joined #ruby
[23:45:19] xco: has joined #ruby
[23:49:25] xco: has joined #ruby
[23:55:01] tdy: has joined #ruby