« Back to channel list

#ruby - 26 May 2019

« Back 1 day Forward 1 day »
[00:07:57] fphilipe: has joined #ruby
[00:09:31] jenrzzz: has joined #ruby
[00:09:36] Swyper: has joined #ruby
[00:11:02] skryking: has joined #ruby
[00:13:50] Swyper: has joined #ruby
[00:19:41] esp32_prog: has joined #ruby
[00:19:58] dviola: has joined #ruby
[00:26:36] orbyt_: has joined #ruby
[00:29:04] ruby-lang237: has joined #ruby
[00:37:29] laaron: has joined #ruby
[00:40:23] Exuma: has joined #ruby
[00:45:23] duderonomy: has joined #ruby
[00:54:00] houhoulis: has joined #ruby
[01:07:51] salerace: has joined #ruby
[01:08:45] comet23: has joined #ruby
[01:09:04] comet23: is there a way to check if an array is sorted without looping over every item?
[01:14:33] comet23: save time on operations
[01:15:16] orbyt_: has joined #ruby
[01:16:39] mozzarella: if you make sure that every item is at the right place at insertion, you're not going to need to loop over it
[01:16:47] mozzarella: different tradeoffs
[01:18:27] comet23: my function checks if it's sorted at the very beginning before doing operations
[01:18:34] comet23: like what if it's a bad value
[01:18:46] comet23: or a malicious user inserts their arbitrary data to mess with the app
[01:19:51] mozzarella: btw, "every item" is the worst case scenario
[01:20:15] comet23: would there be a shortcut to doing this?
[01:20:32] comet23: it will loop over every item if it's sorted
[01:20:38] mozzarella: if the first two items are out of order, you don't have to check the entire list
[01:20:40] comet23: so worst case scenario it's sorted :/
[01:22:15] mozzarella: (assuming you didn't write your own sorting function, it's probably doing the smart thing already)
[01:22:44] mozzarella: we're gonna need more context, we don't know anything about your project
[01:24:25] laaron: has joined #ruby
[01:26:15] comet23: thank you :)
[01:26:26] comet23: im going to bed im tired
[01:28:21] haxx0r: has joined #ruby
[01:33:15] laaron: has joined #ruby
[01:34:42] codefriar: has joined #ruby
[01:38:30] fphilipe: has joined #ruby
[01:39:37] laaron: has joined #ruby
[01:39:48] salerace: has joined #ruby
[01:42:48] jenrzzz: has joined #ruby
[01:46:09] banisterfiend: has joined #ruby
[01:47:50] kapilp: has joined #ruby
[01:51:47] laaron: has joined #ruby
[01:52:54] _dbugger: has joined #ruby
[01:57:53] jenrzzz: has joined #ruby
[02:01:46] Krak3en: has joined #ruby
[02:02:34] evdubs: has joined #ruby
[02:02:45] bambanxx: has joined #ruby
[02:03:26] Krak3en: Please I'm new to Ruby and I use sinatra for my web applications
[02:03:31] Krak3en: here what I get https://pastebin.com/LXxCVvpa
[02:03:32] ruby[bot]: Krak3en: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[02:03:34] mniip: has joined #ruby
[02:04:13] doodlebug: has joined #ruby
[02:05:10] Krak3en: NameError: uninitialized constant ApplicationController
[02:05:10] Krak3en: https://gist.github.com/mezgani/252ee7b1d5d288a10f7f010d77d8f68c
[02:06:19] Krak3en: https://gist.github.com/mezgani/23efd654b4ef65a3084905bafaf1e091
[02:07:35] wald0: has joined #ruby
[02:08:01] esp32_prog: has joined #ruby
[02:14:06] graft: has joined #ruby
[02:14:06] graft: has joined #ruby
[02:21:50] laaron: has joined #ruby
[02:24:07] banisterfiend: has joined #ruby
[02:25:13] sleepee: has joined #ruby
[02:25:15] sleepee_: has joined #ruby
[02:27:30] apparition: has joined #ruby
[02:48:04] jenrzzz: has joined #ruby
[02:49:41] tdy: has joined #ruby
[02:59:35] laaron: has joined #ruby
[03:03:04] armyriad: has joined #ruby
[03:09:44] fphilipe: has joined #ruby
[03:10:22] braincrash: has joined #ruby
[03:37:35] gix-: has joined #ruby
[03:39:31] sendro: has joined #ruby
[03:47:50] sendro: hi guys can anyone help me out with basic ruby script https://pastebin.com/T1gQRnQW
[03:47:51] ruby[bot]: sendro: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[03:48:06] orbyt_: has joined #ruby
[03:52:16] sendro: need a bit of help with a script to print swap usage - https://gist.github.com/asender/71b9746ae16602bfad0c268e5e6652fe
[03:53:45] jenrzzz: has joined #ruby
[03:57:51] Talion: has joined #ruby
[04:00:02] banisterfiend: has joined #ruby
[04:02:17] laaron: has joined #ruby
[04:12:34] mcspud: has joined #ruby
[04:22:21] Swyper: has joined #ruby
[04:22:34] ravenx: has joined #ruby
[04:26:53] Swyper: has joined #ruby
[04:31:06] Swyper: has joined #ruby
[04:32:29] s3nd1v0g1us: has joined #ruby
[04:40:18] fphilipe: has joined #ruby
[04:43:03] graft: has joined #ruby
[04:45:03] tdy: has joined #ruby
[04:46:19] kyrylo: has joined #ruby
[04:54:16] jenrzzz: has joined #ruby
[05:01:46] duderonomy: has joined #ruby
[05:05:53] _dbugger: has joined #ruby
[05:06:58] laaron: has joined #ruby
[05:07:36] zacts: has joined #ruby
[05:25:19] Swyper: has joined #ruby
[05:33:56] [rg]: has joined #ruby
[05:44:29] Talion: has joined #ruby
[05:46:11] fphilipe: has joined #ruby
[05:46:22] Talion: has joined #ruby
[05:48:47] hightower2: has joined #ruby
[05:54:23] jenrzzz: has joined #ruby
[06:04:20] Emmanuel_Chanel: has joined #ruby
[06:24:15] esp32_prog: has joined #ruby
[06:31:21] havenwood: sendro: Dir['/proc/[0-9]*/smaps'].to_h { |path| [path[/\d+/].to_i, File.readlines(path).grep(/^Swap:/).sum { |s| s[/\d\skB\n\z/].to_i }] }
[06:31:27] laaron: has joined #ruby
[06:39:31] r3m: has joined #ruby
[06:41:10] reber: has joined #ruby
[06:54:18] sameerynho: has joined #ruby
[06:55:52] jenrzzz: has joined #ruby
[06:58:33] ravenousmoose: has joined #ruby
[07:16:44] fphilipe: has joined #ruby
[07:21:00] banisterfiend: has joined #ruby
[07:21:55] havenwood: oops, I mean: s[/\d+\skB\n\z/]/
[07:22:16] havenwood: digits, not digit
[07:26:05] baweaver: The ActionCable Symphony is now out: https://twitter.com/keystonelemur/status/1132544228024770560
[07:26:23] alexeev: has joined #ruby
[07:36:48] esp32_prog: has joined #ruby
[07:38:23] rippa: has joined #ruby
[07:39:41] havenwood: 🎹🎺♮🎻♯🎵🎸🎷🥁🎶
[07:40:15] havenwood: 🚞🚟🚋🚂🚝🚟🛤
[07:47:30] laaron: has joined #ruby
[07:49:09] Swyper: has joined #ruby
[07:50:23] yonahw: has joined #ruby
[07:53:01] RiPuk: has joined #ruby
[07:57:20] yqt: has joined #ruby
[07:59:09] jenrzzz: has joined #ruby
[08:08:24] sezuan: has joined #ruby
[08:10:24] ShalokShalom: has joined #ruby
[08:19:07] ravenousmoose: has joined #ruby
[08:24:35] Ai9zO5AP: has joined #ruby
[08:25:03] jenrzzz: has joined #ruby
[08:25:28] Swyper: has joined #ruby
[08:29:44] yonahw_: has joined #ruby
[08:59:36] ShalokShalom62: has joined #ruby
[09:08:58] alexeev: has joined #ruby
[09:10:53] yqt: has joined #ruby
[09:13:21] armyriad: has joined #ruby
[09:16:56] banisterfiend: has joined #ruby
[09:17:49] fphilipe: has joined #ruby
[09:24:54] esp32_prog: has joined #ruby
[09:28:28] alexeev: has joined #ruby
[09:42:59] Emmanuel_Chanel: has joined #ruby
[09:46:29] apparition: has joined #ruby
[09:49:34] al2o3-cr: has joined #ruby
[09:50:10] hightower2: has joined #ruby
[09:51:55] laaron: has joined #ruby
[09:53:16] Dbugger: has joined #ruby
[09:57:12] Dbugger: has joined #ruby
[10:00:56] yqt: has joined #ruby
[10:02:39] fphilipe: has joined #ruby
[10:03:50] schne1der: has joined #ruby
[10:24:11] _whitelogger: has joined #ruby
[10:30:19] Swyper: has joined #ruby
[10:32:45] salerace: has joined #ruby
[10:35:19] Swyper: has joined #ruby
[10:40:52] fphilipe: has joined #ruby
[10:43:29] yonahw_: has joined #ruby
[10:49:09] yasumi2136: has joined #ruby
[10:58:45] AJA4350: has joined #ruby
[11:13:12] esp32_prog: has joined #ruby
[11:16:14] karayan: has joined #ruby
[11:21:11] _whitelogger: has joined #ruby
[11:21:39] ellcs: has joined #ruby
[11:23:23] Swyper: has joined #ruby
[11:31:17] jenrzzz: has joined #ruby
[11:32:15] Fernando-Basso: has joined #ruby
[11:45:31] esp32_prog: has joined #ruby
[11:48:10] jenrzzz: has joined #ruby
[11:57:06] fphilipe: has joined #ruby
[11:57:33] schne1der: has joined #ruby
[12:00:29] jdawgaz: has joined #ruby
[12:01:43] AJA4351: has joined #ruby
[12:13:49] bsdbandit: has joined #ruby
[12:28:16] haxx0r: has joined #ruby
[12:46:56] yasumi2136_: has joined #ruby
[12:52:46] sezuan: has joined #ruby
[12:57:41] fphilipe: has joined #ruby
[13:07:13] Swyper: has joined #ruby
[13:07:32] dionysus69: has joined #ruby
[13:09:03] AJA4351: has joined #ruby
[13:17:52] govg: has joined #ruby
[13:19:07] jenrzzz: has joined #ruby
[13:37:02] nowhere_man: has joined #ruby
[13:41:01] dtzuzu: has joined #ruby
[13:44:13] octos: has joined #ruby
[14:03:10] _whitelogger: has joined #ruby
[14:04:28] sh7d: has joined #ruby
[14:04:34] esp32_prog: has joined #ruby
[14:08:56] laaron: has joined #ruby
[14:10:50] zapata_: has joined #ruby
[14:15:48] laaron: has joined #ruby
[14:16:15] AJA4351: has joined #ruby
[14:20:10] jenrzzz: has joined #ruby
[14:22:57] fphilipe: has joined #ruby
[14:23:51] ravenousmoose: has joined #ruby
[14:29:19] sh7d: has joined #ruby
[14:31:09] Swyper: has joined #ruby
[14:34:57] ravenousmoose: has joined #ruby
[14:35:31] cow[moo]: has joined #ruby
[14:40:50] agent_white: has joined #ruby
[14:45:20] sh7d: has joined #ruby
[14:51:00] xco: has joined #ruby
[14:54:39] sh7d: has joined #ruby
[14:57:15] yqt: has joined #ruby
[14:58:53] conta: has joined #ruby
[14:59:55] sh7d: has joined #ruby
[15:05:00] SCHAPiE: has joined #ruby
[15:07:44] nowhere_man: has joined #ruby
[15:09:27] conta: has joined #ruby
[15:12:36] Talion: has joined #ruby
[15:15:43] hightower2: has joined #ruby
[15:16:13] sh7d: has joined #ruby
[15:20:06] haxx0r: has joined #ruby
[15:25:43] cow[moo]: has joined #ruby
[15:27:48] jenrzzz: has joined #ruby
[15:30:28] AJA4350: has joined #ruby
[15:31:51] ltem: has joined #ruby
[15:32:44] SCHAPiE: has joined #ruby
[15:32:45] regedit: has joined #ruby
[15:39:31] [rg]: has joined #ruby
[15:41:26] xco: has joined #ruby
[15:45:56] ricekrispie: has joined #ruby
[15:50:12] Hanmac: has joined #ruby
[15:52:49] esp32_prog: has joined #ruby
[15:55:52] tdy: has joined #ruby
[16:01:57] SCHAPiE: has joined #ruby
[16:14:57] laaron: has joined #ruby
[16:15:48] cd: has joined #ruby
[16:16:44] SCHAAP137: has joined #ruby
[16:25:12] ravenousmoose: has joined #ruby
[16:30:33] sh7d: has joined #ruby
[16:35:37] jenrzzz: has joined #ruby
[16:44:25] kapilp: has joined #ruby
[16:51:47] ShalokShalom: has joined #ruby
[16:59:45] ShalokShalom: has joined #ruby
[17:10:05] jenrzzz: has joined #ruby
[17:18:48] jenrzzz: has joined #ruby
[17:23:43] pwnd_nsfw: has joined #ruby
[17:38:41] Swyper: has joined #ruby
[17:41:03] esp32_prog: has joined #ruby
[17:41:23] orbyt_: has joined #ruby
[17:48:46] Fernando-Basso: has joined #ruby
[17:51:21] ddffg: has joined #ruby
[18:04:15] jenrzzz: has joined #ruby
[18:05:11] houhoulis: has joined #ruby
[18:06:45] tdy: has joined #ruby
[18:08:13] morozovm: has joined #ruby
[18:10:54] sh7d: has joined #ruby
[18:14:07] ltem: has joined #ruby
[18:14:07] sh7d: has joined #ruby
[18:14:50] ravenousmoose: has joined #ruby
[18:31:59] sh7d: has joined #ruby
[18:48:11] sh7d: has joined #ruby
[19:06:29] s3nd1v0g1us: has joined #ruby
[19:21:09] jenrzzz: has joined #ruby
[19:29:19] esp32_prog: has joined #ruby
[19:42:51] orbyt_: has joined #ruby
[19:54:26] graft: has joined #ruby
[19:54:26] graft: has joined #ruby
[19:56:40] ljarvis__: has joined #ruby
[19:58:44] claudiuinberlin: has joined #ruby
[20:01:31] al2o3-cr: has joined #ruby
[20:03:18] arup_r: has joined #ruby
[20:03:27] AJA4350: has joined #ruby
[20:08:38] wald0: has joined #ruby
[20:16:13] kyrylo: has joined #ruby
[20:16:25] a7d7p7: has joined #ruby
[20:16:43] mad_al: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[20:21:18] Krak3en: has joined #ruby
[20:24:14] ellcs: has joined #ruby
[20:24:41] ellcs: has joined #ruby
[20:26:21] Fridtjof: has joined #ruby
[20:29:53] jenrzzz: has joined #ruby
[20:32:10] a7d7p7_: has joined #ruby
[20:38:32] orbyt_: has joined #ruby
[20:43:05] xco: has joined #ruby
[20:43:25] a7d7p7: has joined #ruby
[20:56:40] orbyt_: has joined #ruby
[21:01:25] fphilipe_: has joined #ruby
[21:03:11] djellemah: has joined #ruby
[21:09:15] fphilipe_: has joined #ruby
[21:17:39] esp32_prog: has joined #ruby
[21:19:29] xco: has joined #ruby
[21:24:56] jonian: has joined #ruby
[21:28:57] jenrzzz: has joined #ruby
[21:42:19] fphilipe_: has joined #ruby
[22:05:27] kapilp: has joined #ruby
[22:14:43] jinie: has joined #ruby
[22:35:49] Fusl: has joined #ruby
[22:42:32] staticx: has joined #ruby
[22:45:05] jenrzzz: has joined #ruby
[22:51:51] phaul: has joined #ruby
[23:05:55] esp32_prog: has joined #ruby
[23:09:29] orbyt_: has joined #ruby
[23:13:15] dtzuzu: has joined #ruby
[23:19:45] doodlebug: has joined #ruby
[23:31:12] ur5us: has joined #ruby
[23:33:05] tdy: has joined #ruby
[23:39:49] jenrzzz: has joined #ruby
[23:40:47] tdy: has joined #ruby