« Back to channel list

#ruby - 06 April 2018

« Back 1 day Forward 1 day »
[00:05:59] nadir: has joined #ruby
[00:07:45] guacamole: has joined #ruby
[00:07:46] guacamole: has joined #ruby
[00:12:32] duderonomy: has joined #ruby
[00:13:23] workmad3: has joined #ruby
[00:15:47] ciscam: has joined #ruby
[00:17:53] n0m4d1c_: has joined #ruby
[00:21:23] duderono_: has joined #ruby
[00:23:28] pppktz: has joined #ruby
[00:26:20] cagomez: has joined #ruby
[00:29:18] pppktz: has joined #ruby
[00:32:23] rshetty: has joined #ruby
[00:32:35] cagomez: has joined #ruby
[00:48:24] eckhardt: has joined #ruby
[00:49:26] karapetyan: has joined #ruby
[00:49:43] herbmillerjr: has joined #ruby
[00:51:31] duderonomy: has joined #ruby
[00:57:40] halt: has joined #ruby
[01:00:25] dinfuehr_: has joined #ruby
[01:00:30] yokel: has joined #ruby
[01:01:09] rshetty: has joined #ruby
[01:08:39] rshetty: has joined #ruby
[01:17:35] erlend: has joined #ruby
[01:19:53] orbyt_: has joined #ruby
[01:24:43] bmurt: has joined #ruby
[01:25:34] rabajaj: has joined #ruby
[01:26:28] darkhanb: has joined #ruby
[01:31:11] gizmore: has joined #ruby
[01:32:18] coderphive: has joined #ruby
[01:33:45] Dimik: has joined #ruby
[01:38:27] rshetty: has joined #ruby
[01:39:41] nikivi: has joined #ruby
[01:40:19] cats: has joined #ruby
[01:41:11] Miron: has joined #ruby
[01:41:43] netherwolfe: has joined #ruby
[01:59:23] dinfuehr: has joined #ruby
[02:03:40] tdy: has joined #ruby
[02:06:26] sucks: has joined #ruby
[02:09:34] ramfjord: has joined #ruby
[02:11:56] karapetyan: has joined #ruby
[02:12:58] workmad3: has joined #ruby
[02:13:45] schneider: has joined #ruby
[02:15:47] rshetty: has joined #ruby
[02:25:59] rshetty: has joined #ruby
[02:27:50] yxhuvud: has joined #ruby
[02:30:22] jenrzzz: has joined #ruby
[02:33:22] schneider: has joined #ruby
[02:38:14] jamesyu: has joined #ruby
[02:42:49] rshetty: has joined #ruby
[02:44:43] bdnelson: has joined #ruby
[02:47:10] orbyt_: has joined #ruby
[02:48:04] pastorinni: has joined #ruby
[02:49:31] ramfjord: has joined #ruby
[02:49:57] rshetty: has joined #ruby
[02:52:15] cagomez: has joined #ruby
[02:53:35] cadillac_: has joined #ruby
[02:54:04] jamesyu: has joined #ruby
[02:55:03] sanscoeur: has joined #ruby
[02:55:14] ramfjord: has joined #ruby
[02:57:50] yxhuvud: has joined #ruby
[02:59:54] MonicleLewinsky: has left #ruby: ("Byee")
[03:00:11] cadillac_: has joined #ruby
[03:00:45] schneider: has joined #ruby
[03:02:20] ramfjord: has joined #ruby
[03:08:29] JankyDoodle: has joined #ruby
[03:10:47] rshetty: has joined #ruby
[03:21:13] nadir: has joined #ruby
[03:26:07] yxhuvud: has joined #ruby
[03:26:18] erlend: has joined #ruby
[03:27:59] schneider: has joined #ruby
[03:28:31] cagomez: has joined #ruby
[03:31:15] ramfjord: has joined #ruby
[03:32:01] cagomez: has joined #ruby
[03:35:37] jcarl43: has joined #ruby
[03:37:52] cadillac_: has joined #ruby
[03:38:17] kiki_lamb: has joined #ruby
[03:38:34] howdoi: has joined #ruby
[03:38:37] kiki_lamb: Is there an active, modern CLR implementation of Ruby? IronRuby looks long dead.
[03:39:04] cschneid_: has joined #ruby
[03:52:05] Ryzokuken: has joined #ruby
[03:53:00] Ryzokuken: has joined #ruby
[03:59:03] rshetty: has joined #ruby
[04:01:08] rshetty: has joined #ruby
[04:02:28] Creatornator: has joined #ruby
[04:10:47] raatiniemi: has joined #ruby
[04:12:31] workmad3: has joined #ruby
[04:16:55] cschneid_: has joined #ruby
[04:17:22] thejoecarroll: has joined #ruby
[04:21:17] ur5us: has joined #ruby
[04:22:35] ur5us: has joined #ruby
[04:23:27] ciscam: has joined #ruby
[04:31:24] rshetty: has joined #ruby
[04:33:20] phate408: has joined #ruby
[04:42:45] govg: has joined #ruby
[04:51:57] rshetty: has joined #ruby
[04:55:53] cschneid_: has joined #ruby
[05:01:03] _aeris_: has joined #ruby
[05:01:56] shoogz: has joined #ruby
[05:05:29] rshetty: has joined #ruby
[05:06:44] venmx: has joined #ruby
[05:07:16] rshetty: has joined #ruby
[05:09:47] reber: has joined #ruby
[05:13:27] imode: has joined #ruby
[05:19:03] alfiemax: has joined #ruby
[05:21:35] kenichi: has joined #ruby
[05:22:20] venmx: has joined #ruby
[05:23:25] G: has joined #ruby
[05:25:38] kapil___: has joined #ruby
[05:27:44] russt: has joined #ruby
[05:30:10] conta: has joined #ruby
[05:35:01] erlend: has joined #ruby
[05:35:12] rshetty: has joined #ruby
[05:36:01] ericmathison: has joined #ruby
[05:37:56] andikr: has joined #ruby
[05:38:05] Liothen: has joined #ruby
[05:38:05] Liothen: has joined #ruby
[05:39:57] cschneid_: has joined #ruby
[05:43:21] anisha_: has joined #ruby
[05:43:43] sauvin: has joined #ruby
[05:44:29] n008f4g_: has joined #ruby
[05:48:06] guacamole: has joined #ruby
[05:48:06] guacamole: has joined #ruby
[05:52:29] aupadhye: has joined #ruby
[06:01:58] aufi: has joined #ruby
[06:04:51] apeiros: has joined #ruby
[06:12:04] workmad3: has joined #ruby
[06:13:06] AndBobsYourUncle: has joined #ruby
[06:15:27] jenrzzz: has joined #ruby
[06:15:27] jenrzzz: has joined #ruby
[06:17:07] anisha_: has joined #ruby
[06:18:24] pd2000: has joined #ruby
[06:23:50] cschneid_: has joined #ruby
[06:30:41] solocshaw: has joined #ruby
[06:32:16] bijan_: has joined #ruby
[06:33:25] roshanavand: has joined #ruby
[06:55:25] loveablelobster: has joined #ruby
[06:55:41] suukim: has joined #ruby
[06:57:22] loveablelobster: locally built and installed gem can't be found ('cannot load such file') in Ruby 2.5.1 even though it is listed and can be loaded in irb. This happens when running RSPec, and after that failure, PRY can't load the gem anymore but IRB still can. Anybody experienced that?
[06:57:46] loveablelobster: works fine in Ruby <= 2.5.0
[06:59:04] pd2000: has joined #ruby
[06:59:10] cschneid_: has joined #ruby
[07:03:48] nicesignal: has joined #ruby
[07:05:07] dminuoso: loveablelobster: Gist a testcase.
[07:08:58] amar: has joined #ruby
[07:09:19] bijan_: has joined #ruby
[07:12:33] law: has left #ruby: ()
[07:13:43] trautwein: has joined #ruby
[07:17:19] quobo: has joined #ruby
[07:17:19] venmx: has joined #ruby
[07:18:53] jenrzzz: has joined #ruby
[07:18:53] jenrzzz: has joined #ruby
[07:19:07] ciscam: has joined #ruby
[07:20:55] jinie: has joined #ruby
[07:22:43] schneider: has joined #ruby
[07:22:57] amelliaa: has joined #ruby
[07:23:49] jinie: has joined #ruby
[07:25:12] clemens3_: has joined #ruby
[07:36:10] burgestrand: has joined #ruby
[07:38:51] jinie: has joined #ruby
[07:42:05] psychicist__: has joined #ruby
[07:42:54] claudiuinberlin: has joined #ruby
[07:43:47] erlend: has joined #ruby
[07:44:56] jinie: has joined #ruby
[07:46:28] cschneid_: has joined #ruby
[07:51:51] _rshetty_: has joined #ruby
[07:57:32] cschneid_: has joined #ruby
[07:59:47] rshetty: has joined #ruby
[08:01:36] kke: if i have an instance of Bar::Foo, is there some pretty way to do something like `foo.is_a?(Bar::*)` that is not `.to_s.split('::').first == 'Bar' `
[08:01:59] pd2000: has joined #ruby
[08:02:08] rshetty: has joined #ruby
[08:03:38] vondruch: has joined #ruby
[08:03:45] jenrzzz: has joined #ruby
[08:03:45] jenrzzz: has joined #ruby
[08:04:34] pd2000: has joined #ruby
[08:06:37] rshetty: has joined #ruby
[08:07:01] rshetty: has joined #ruby
[08:11:37] workmad3: has joined #ruby
[08:12:12] Klumben: has joined #ruby
[08:12:46] rshetty: has joined #ruby
[08:13:22] jinie: has joined #ruby
[08:15:02] jinie: has joined #ruby
[08:21:15] rshetty: has joined #ruby
[08:22:00] alfiemax: has joined #ruby
[08:22:01] dminuoso: foo.class =~ /^Bar/
[08:24:25] jenrzzz: has joined #ruby
[08:24:26] jenrzzz: has joined #ruby
[08:27:39] loveablelobster: has joined #ruby
[08:29:46] nertzy: has joined #ruby
[08:29:56] tomphp: has joined #ruby
[08:30:40] jnollette: has joined #ruby
[08:31:15] schickung: has joined #ruby
[08:31:46] cschneid_: has joined #ruby
[08:33:33] alfiemax: has joined #ruby
[08:34:20] bijan_: has joined #ruby
[08:35:06] drale2k_: has joined #ruby
[08:35:44] schneider: has joined #ruby
[08:35:57] guille-moe: has joined #ruby
[08:39:01] Azure: has joined #ruby
[08:39:38] rshetty: has joined #ruby
[08:39:45] rshetty: has joined #ruby
[08:40:54] Bish: dminuoso: o/
[08:44:54] rshetty: has joined #ruby
[08:48:57] rshetty: has joined #ruby
[08:52:28] venmx: has joined #ruby
[08:55:11] vondruch: has joined #ruby
[08:55:37] tvw: has joined #ruby
[08:55:47] Beams: has joined #ruby
[08:59:07] rshetty: has joined #ruby
[08:59:45] schneider: has joined #ruby
[09:00:32] marr: has joined #ruby
[09:02:50] Panique_: has joined #ruby
[09:04:39] pd2000: has joined #ruby
[09:05:11] Panique_: has joined #ruby
[09:06:06] mikecmpbll: has joined #ruby
[09:07:55] rshetty: has joined #ruby
[09:09:22] pd2000: has joined #ruby
[09:10:30] Bobi: has joined #ruby
[09:10:32] ur5us: has joined #ruby
[09:12:19] sina: has joined #ruby
[09:14:30] Azure: has joined #ruby
[09:16:10] cschneid_: has joined #ruby
[09:22:34] mtkd: has joined #ruby
[09:24:50] amar: has joined #ruby
[09:25:19] vondruch_: has joined #ruby
[09:28:15] amatas: has joined #ruby
[09:31:32] dr3wo: has joined #ruby
[09:31:55] mn3m: has joined #ruby
[09:34:59] schickung_: has joined #ruby
[09:35:04] alfiemax: has joined #ruby
[09:36:21] vondruch: has joined #ruby
[09:36:32] amatas: has joined #ruby
[09:36:37] nowhere_man: has joined #ruby
[09:37:45] schneider: has joined #ruby
[09:38:38] alfiemax: has joined #ruby
[09:40:49] ellcs: has joined #ruby
[09:40:58] ciscam: has joined #ruby
[09:41:33] G: has joined #ruby
[09:42:06] drale2k_: has joined #ruby
[09:42:54] jenrzzz: has joined #ruby
[09:42:54] jenrzzz: has joined #ruby
[09:42:58] Junaos: has joined #ruby
[09:50:39] dionysus69: has joined #ruby
[09:52:28] erlend: has joined #ruby
[09:52:52] Inoperable: has joined #ruby
[09:53:35] rabajaj: has joined #ruby
[09:55:34] claudiuinberlin: has joined #ruby
[09:55:46] schneider: has joined #ruby
[09:56:07] EugenMayer: has joined #ruby
[09:56:41] EugenMayer: anybody here using intellij / rubymine with the remote ruby debugger, while letting the rails app running in a docker container .. and fails with path mappings ( breakpoints never attach ) ?
[09:57:08] cschneid_: has joined #ruby
[10:01:45] drale2k_: has joined #ruby
[10:03:53] workmad3: has joined #ruby
[10:04:53] schneider: has joined #ruby
[10:08:31] apeiros: has joined #ruby
[10:14:02] schneider: has joined #ruby
[10:16:12] ciscam: has joined #ruby
[10:16:43] TomyLobo: has joined #ruby
[10:19:26] Bish_: has joined #ruby
[10:23:14] schneider: has joined #ruby
[10:25:54] guille-moe: has joined #ruby
[10:27:50] dr3wo: has joined #ruby
[10:31:34] KeyJoo: has joined #ruby
[10:31:41] cschneid_: has joined #ruby
[10:32:24] schneider: has joined #ruby
[10:32:24] Ryzokuken: has joined #ruby
[10:32:37] KeyJoo: has joined #ruby
[10:33:15] vondruch: has joined #ruby
[10:41:31] schneider: has joined #ruby
[10:42:15] einarj: has joined #ruby
[10:50:38] schneider: has joined #ruby
[10:53:24] Azure: has joined #ruby
[10:55:40] arup_r: has joined #ruby
[10:56:08] arup_r: I have an array of string which looks like https://gist.github.com/aruprakshit/ae1449102a6fe6f156fd1860c99be290#file-array-txt . How do I implement sort logic for this?
[10:56:56] howdoi: has joined #ruby
[10:58:20] drale2k_: has joined #ruby
[10:59:37] schneider: has joined #ruby
[11:02:35] tobiasvl: arup_r: sorry, what's your specific question? do you know how you want to sort it?
[11:03:25] arup_r: tobiasvl: yeah, the question is very vauge indeed. ignore me.
[11:03:35] tobiasvl: /ignore arup_r
[11:03:54] arup_r: I am trying to solve it by myself.
[11:08:26] z3uS: has joined #ruby
[11:09:36] cschneid_: has joined #ruby
[11:10:04] AJA4350: has joined #ruby
[11:13:22] sonOfRa: arup_r: only german license plates? Or also others?
[11:13:59] arup_r: it can be others too .. Are you from Germany? :)
[11:15:19] sonOfRa: Well if it can be others too, just alphabetically sort them
[11:15:34] sonOfRa: There's not going to be any real logic behind it, especially because lots of other countries don't have regionalized license plate
[11:15:53] arup_r: what about those space or '-' ?
[11:16:30] sonOfRa: replace all dashes with spaces
[11:16:37] sonOfRa: or just remove all spaces and dashes
[11:16:58] arup_r: hm. that is what I was thinking to do too
[11:17:07] arup_r: thanks for your time sonOfRa
[11:17:32] sonOfRa: Though removing everything might yield bad results
[11:17:52] sonOfRa: For example, if you have a car from Hannover (H) with number B 1234
[11:18:00] sonOfRa: Or rather, BA 1234
[11:18:08] sonOfRa: That may also be a car from HB-A-1234
[11:18:30] sonOfRa: So probably best to retain the separator, but make sure to use the same separator everywhere
[11:19:43] burgestrand: has joined #ruby
[11:21:12] arup_r: has joined #ruby
[11:23:23] arup_r: sonOfRa: as the values comes from DB, I am going to try this https://stackoverflow.com/a/7019086/2767755 . I think this will work.
[11:23:42] Papierkorb: has joined #ruby
[11:24:21] sonOfRa: Might make sense to try and clean the DB a bit, mixed spaces and dashes are probably going to throw that off
[11:24:30] Papierkorb: has left #ruby: ("Konversation terminated!")
[11:24:40] dr3wo: has joined #ruby
[11:27:17] mtkd: has joined #ruby
[11:31:50] ferr: has joined #ruby
[11:32:30] ferr: has left #ruby: ()
[11:33:54] schneider: has joined #ruby
[11:34:25] Cavallari: has joined #ruby
[11:42:57] schneider: has joined #ruby
[11:43:54] apeiros: hm, anybody happen to know the command for `gem` itself to install gems from a Gemfile (i.e. without bundler)?
[11:44:37] psychicist__: has joined #ruby
[11:46:54] ellcs: has joined #ruby
[11:47:47] ldnunes: has joined #ruby
[11:48:28] apeiros: aha, `gem install -g` (and on a sidenote, `gem -h install` apparently isn't the same as `gem help install`)
[11:48:48] cschneid_: has joined #ruby
[11:49:34] schickung: has joined #ruby
[11:49:44] dminuoso: apeiros: See gem_dependencies command
[11:50:34] goatish: has joined #ruby
[11:51:01] apeiros: dminuoso: already found `gem install -g` ;-)
[11:51:16] dminuoso: race conditions upon race conditions.
[11:52:01] schneider: has joined #ruby
[11:52:54] apeiros: it's a racy world, full of conditions
[11:53:29] dminuoso: Do we have an official smoosh/smooshMap proposal already by the way?
[11:53:48] karapetyan: has joined #ruby
[11:54:08] apeiros: oh my 😂
[11:54:17] apeiros: no, I don't think we have
[11:55:39] dminuoso: apeiros: I recently discussed a possible project to create ACME packages in Haskell
[11:56:03] dminuoso: So we provide a Data.Crushor package with an explanation: "a crushor is just a smooshoid in the smooshoidial category of endosmoothies using composition for the bismoothie"
[11:56:18] dminuoso: giving you access to smoosh, smooshMap, paMhsooms and woosh
[11:56:27] dminuoso: so you can smoosh and woosh your data.
[11:57:06] dminuoso: And maybe an equivalent Comonad package with: coskidoosh = extract; cosmoosh = duplicate; bazinga = extend; kazing = (=>=); gnizak = (=<=)
[12:00:46] hinbody: has joined #ruby
[12:00:50] karapetyan: has joined #ruby
[12:01:09] schneider: has joined #ruby
[12:01:09] erlend: has joined #ruby
[12:02:45] jcalla: has joined #ruby
[12:03:21] apeiros: awesome. seems like rails-assets-knockoutjs gem just vanished.
[12:03:40] apeiros: and of course we depend on it.
[12:03:51] apeiros: dminuoso: what's an ACME package?
[12:04:18] apeiros: lol, ok, sounds like a smooth tool you want to build :-p
[12:05:05] duderonomy: has joined #ruby
[12:05:35] apeiros: dminuoso: you don't happen to know whether there's a way to do `gem install -g Gemfile <<WITHOUT GEM X>>`?
[12:05:52] apeiros: i.e. install everything according to gemfile, but don't install gem "foobar"
[12:07:48] rfoust: has joined #ruby
[12:09:14] schneider: has joined #ruby
[12:11:59] karapetyan: has joined #ruby
[12:12:00] jnollette: has joined #ruby
[12:14:40] apeiros: ok, seems `gem install -g` can't fully reproduce a `bundle install` yet.
[12:18:24] schneider: has joined #ruby
[12:19:12] jrafanie: has joined #ruby
[12:28:17] jamesyu: has joined #ruby
[12:29:49] cschneid_: has joined #ruby
[12:32:47] schneider: has joined #ruby
[12:33:56] dminuoso: apeiros: ACME packages is basically just troll packages.
[12:34:02] dminuoso: apeiros: Let me show you some of the finer examples
[12:34:44] dminuoso: apeiros: https://hackage.haskell.org/package/acme-everything is really wonderful (just read the description, its golden)
[12:35:12] Megamos: has joined #ruby
[12:35:27] dminuoso: https://hackage.haskell.org/package/acme-missiles-0.3 is a running gag in the community..
[12:38:33] RougeR: has joined #ruby
[12:38:33] RougeR: has joined #ruby
[12:38:36] dminuoso: https://hackage.haskell.org/package/acme-cofunctor is also incredibly useful..
[12:41:55] schneider: has joined #ruby
[12:47:40] gray_-_wolf: has joined #ruby
[12:50:21] bmurt: has joined #ruby
[12:51:02] schneider: has joined #ruby
[12:51:14] jeffreylevesque: has joined #ruby
[12:52:06] coderphive: has joined #ruby
[12:52:32] dr3wo: has joined #ruby
[12:53:41] oleo: has joined #ruby
[13:00:09] schneider: has joined #ruby
[13:02:01] Bish: has joined #ruby
[13:03:02] Megamos: has joined #ruby
[13:07:53] smithascari: has joined #ruby
[13:09:13] schneider: has joined #ruby
[13:11:01] drale2k_: has joined #ruby
[13:16:31] netherwolfe: has joined #ruby
[13:18:18] schneider: has joined #ruby
[13:21:37] AJA4350: has joined #ruby
[13:22:28] stormpack: has joined #ruby
[13:27:21] duderonomy: has joined #ruby
[13:27:28] schneider: has joined #ruby
[13:29:48] shinnya: has joined #ruby
[13:31:19] nowhere_man: has joined #ruby
[13:34:16] tcopeland: has joined #ruby
[13:35:45] dr3wo: has joined #ruby
[13:36:42] schneider: has joined #ruby
[13:39:09] ogres: has joined #ruby
[13:39:16] k0mpa: has joined #ruby
[13:41:13] Psybur: has joined #ruby
[13:44:16] konsolebox: has joined #ruby
[13:44:16] schneider: has joined #ruby
[13:47:48] nicesignal: has joined #ruby
[13:49:21] cschneid_: has joined #ruby
[13:51:39] giraffe: has joined #ruby
[13:52:07] schneider: has joined #ruby
[13:52:39] tpendragon: has joined #ruby
[13:55:36] cseder: has joined #ruby
[13:57:41] AJA4350: has joined #ruby
[13:58:40] Cavallari1: has joined #ruby
[14:02:19] phaul: has joined #ruby
[14:06:46] amatas: has joined #ruby
[14:07:41] cschneid_: has joined #ruby
[14:08:02] darix: dminuoso: ACME is a pretty nice protocol to get certificates
[14:09:01] amatas_: has joined #ruby
[14:09:20] Creatornator: has joined #ruby
[14:09:52] erlend: has joined #ruby
[14:12:21] Rapture: has joined #ruby
[14:21:29] dr3wo: has joined #ruby
[14:21:36] burgestrand: has joined #ruby
[14:30:52] chouhoulis: has joined #ruby
[14:33:28] pastorinni: has joined #ruby
[14:39:39] tomphp: has joined #ruby
[14:40:49] mtkd: has joined #ruby
[14:41:33] n008f4g_: has joined #ruby
[14:43:55] cschneid_: has joined #ruby
[14:46:26] dr3wo: has joined #ruby
[14:46:35] stormpack: has joined #ruby
[14:47:06] karapetyan: has joined #ruby
[14:51:00] alfiemax: has joined #ruby
[14:52:05] cyberg: has joined #ruby
[14:52:07] ledestin: has joined #ruby
[14:54:06] RougeR: has joined #ruby
[14:54:07] RougeR: has joined #ruby
[14:54:44] alfiemax_: has joined #ruby
[14:55:10] cschneid_: has joined #ruby
[14:56:20] BTRE: has joined #ruby
[14:56:32] workmad3_: has joined #ruby
[15:00:59] drale2k_: has joined #ruby
[15:03:22] dr3wo: has joined #ruby
[15:04:58] guacamole: has joined #ruby
[15:04:59] guacamole: has joined #ruby
[15:11:03] cschneid_: has joined #ruby
[15:14:15] guacamole: has joined #ruby
[15:14:16] guacamole: has joined #ruby
[15:14:47] stormpack_: has joined #ruby
[15:15:13] _seanc_: has joined #ruby
[15:19:57] Guest90324: has joined #ruby
[15:20:10] apparition: has joined #ruby
[15:22:40] ElFerna: has joined #ruby
[15:22:48] jokke: has joined #ruby
[15:23:03] jokke: any ideas how to reduce the cyclomatic complexity for this? https://p.jokke.space/799/
[15:23:22] netherwolfe_: has joined #ruby
[15:24:18] phaul: tell us then :)
[15:24:27] jokke: yeah. i'll try it out first
[15:24:31] mnemon: has joined #ruby
[15:26:14] John_Ivan: has joined #ruby
[15:26:15] John_Ivan: has joined #ruby
[15:26:25] schneider: has joined #ruby
[15:27:41] jokke: https://p.jokke.space/Up2BM/
[15:34:00] sepp2k: has joined #ruby
[15:34:01] burgestrand: has joined #ruby
[15:34:58] jcarl43: has joined #ruby
[15:39:09] cthulchu: has joined #ruby
[15:40:29] schneider: has joined #ruby
[15:41:20] cadillac_: has joined #ruby
[15:41:33] apeiros: jokke: I prefer the former. much easier to read.
[15:41:53] apeiros: also Enumerable#find ;-p
[15:42:24] jokke: but that would give me sth like [60, nil]
[15:42:42] jokke: so it'd be find { ... }.last or so
[15:42:46] jokke: which i don't like
[15:43:16] Creatornator: has joined #ruby
[15:44:27] dr3wo: has joined #ruby
[15:44:46] Ryzokuken: has joined #ruby
[15:46:32] havenwood: jokke: isn't 31_536_000 too small for a month?
[15:49:33] schneider: has joined #ruby
[15:49:34] cthulchu_: has joined #ruby
[15:52:02] pastorinni: has joined #ruby
[15:56:28] Kyle__: I think I"m having locking issues, and I'm confused.... I open a file, lock it, read it, modify my data, rewind, write it.
[15:56:40] Kyle__: close it. After a few rounds it gets mangled :/
[15:56:51] Kyle__: @f=File.open("smaller.json",File::RDWR|File::CREAT)
[15:56:52] Kyle__: @f.flock(File::LOCK_EX)
[15:56:54] Kyle__: @data=JSON.parse(@f.read)
[15:58:37] schneider: has joined #ruby
[15:59:46] jokke: havenwood: ummm
[15:59:56] workmad3: has joined #ruby
[15:59:56] jokke: havenwood: how do you mean?
[16:00:14] jokke: 31_536_000 would be a year
[16:00:26] jokke: 60 * 60 * 24 * 365
[16:01:00] cthu|: has joined #ruby
[16:01:08] npgm: has joined #ruby
[16:01:28] cthu|: has joined #ruby
[16:02:18] cthu|: has joined #ruby
[16:02:41] netherwolfe_: has joined #ruby
[16:03:10] majuk: has joined #ruby
[16:05:00] pastorinni: has joined #ruby
[16:05:04] majuk: Hey all, new to Ruby, have a limitation someone might have insight into. When my Linux system boots, there is a rather long time before a system message comes up and says "random: nonblocking pool is initialized". Until this message comes up, I am unable to run any Ruby scripts.
[16:06:02] majuk: It's not a /huge/ problem, but I'd like to run a script at boot and this limitation is causing my script to be run waaaay later than desired.
[16:06:40] Kyle__: majuk: What umm... scripts are you trying to run? The system's random isn't generally touched by ruby. I thought.
[16:07:10] majuk: kyle__: Nothing crazy, it's a script that programs some GigE PHYs over SPI
[16:07:45] schneider: has joined #ruby
[16:09:05] Kyle__: majuk: Is it something you can share on a pastebin type system?
[16:09:26] majuk: kyle__: I can, but it will be a bit. I'll get back with you.
[16:09:30] majuk: Thanks for your time.
[16:09:31] alex``: has joined #ruby
[16:11:16] einarj: has joined #ruby
[16:11:19] tolerablyjake: has joined #ruby
[16:13:17] duderonomy: has joined #ruby
[16:16:27] dr3wo: has joined #ruby
[16:16:52] schneider: has joined #ruby
[16:17:32] alfiemax: has joined #ruby
[16:18:29] erlend: has joined #ruby
[16:24:02] netherwolfe__: has joined #ruby
[16:26:00] schneider: has joined #ruby
[16:27:18] Megamosaren: has joined #ruby
[16:28:04] darkhanb: has joined #ruby
[16:35:03] schneider: has joined #ruby
[16:36:15] suukim: has joined #ruby
[16:37:27] tolerablyjake: has joined #ruby
[16:38:01] Azure|dc: has joined #ruby
[16:38:27] mtkd: has joined #ruby
[16:40:48] ryan_ford: has joined #ruby
[16:40:54] ryan_ford: has left #ruby: ()
[16:41:32] Kyle__: IN case anyone reading this wonders: it wasn't a locking problem, I wasn't truncating the file after writing json. Doh.
[16:41:46] einarj: has joined #ruby
[16:42:22] SeepingN: has joined #ruby
[16:43:25] pd2000: has joined #ruby
[16:44:10] schneider: has joined #ruby
[16:44:10] karapetyan: has joined #ruby
[16:44:53] Cavallari: has joined #ruby
[16:45:15] pastorinni: has joined #ruby
[16:49:33] apeiros__: has joined #ruby
[16:50:04] sanscoeur: has joined #ruby
[16:51:42] karapetyan: has joined #ruby
[16:52:50] guacamole: has joined #ruby
[16:52:50] guacamole: has joined #ruby
[16:53:00] eckhardt: has joined #ruby
[16:53:15] schneider: has joined #ruby
[16:58:44] n0m4d1c: has joined #ruby
[17:00:21] psychicist__: has joined #ruby
[17:01:43] Efendi: has joined #ruby
[17:01:53] orbyt_: has joined #ruby
[17:02:21] schneider: has joined #ruby
[17:02:31] pastorinni: has joined #ruby
[17:02:58] Efendi: Turk Yokmu Hec :D
[17:03:21] danguita: has joined #ruby
[17:03:58] minimalism: has joined #ruby
[17:04:26] \void: has joined #ruby
[17:11:52] schneider: has joined #ruby
[17:11:54] nowhere_man: has joined #ruby
[17:13:29] pilne: has joined #ruby
[17:14:51] danguita: has joined #ruby
[17:19:08] clemens3_: has joined #ruby
[17:20:57] schneider: has joined #ruby
[17:27:43] apeiros: has joined #ruby
[17:30:14] schneider: has joined #ruby
[17:31:02] einarj: has joined #ruby
[17:32:46] alfiemax: has joined #ruby
[17:33:39] alfiemax: has joined #ruby
[17:34:27] workmad3: has joined #ruby
[17:34:30] netherwolfe_: has joined #ruby
[17:36:17] cthulchu: has joined #ruby
[17:39:13] tomphp: has joined #ruby
[17:39:20] schneider: has joined #ruby
[17:40:21] alex``: has joined #ruby
[17:47:45] schneider: has joined #ruby
[17:48:49] alfiemax: has joined #ruby
[17:50:11] alfiemax_: has joined #ruby
[17:53:46] claudiuinberlin: has joined #ruby
[17:55:50] kevinburke: Not sure if this is the right room for rake questions - if there is a better one please let me know.
[17:56:09] kevinburke: It looks like when I invoke "rake a:b:c", every file in lib/tasks gets included, including all of their imports
[17:56:22] kevinburke: instead of just immediately requiring and running a/b/c
[17:56:37] ramfjord: has joined #ruby
[17:56:51] kevinburke: I'm used to Make, which will only run the target you tell it to run
[17:56:52] schneider: has joined #ruby
[17:58:46] guacamole: has joined #ruby
[17:58:46] guacamole: has joined #ruby
[18:00:24] apeiros: kevinburke: rake a:b:c will indeed only run that task (and tasks which are defined as dependencies)
[18:00:36] apeiros: which code is loaded in what order is defined in your Rakefile
[18:00:49] ElFerna: has joined #ruby
[18:01:20] einarj: has joined #ruby
[18:01:27] apeiros: i.e. it's up to you if you defined that all code for task a:b:c is in the file a/b/c, that only that file is loaded in that case (though I'm not actually sure how I'd do that)
[18:01:40] kevinburke: the Rakefile is pretty bare... it just has Rails.application.load_tasks in it. I'm trying to figure out if/how to work around that
[18:01:48] kevinburke: (maybe that is the thing loading all of lib/tasks)
[18:02:23] apeiros: and since that's a rails app, you probably should not remove it.
[18:04:41] kevinburke: Right, I guess just adding that line puts a minimum execution time of, say, 10 seconds on every task. Also I'm wondering if there's a way to load less of rails to accomplish tasks like executing the asset pipeline, that don't or shouldn't need to talk to the database
[18:05:02] alfiemax: has joined #ruby
[18:05:49] majuk: So I have a script that works as intended: https://pastebin.mozilla.org/9082492 I would like to set the hex argument (0x0077) with a command line arg, but it's not parsing out correctly. https://pastebin.mozilla.org/9082493 https://pastebin.mozilla.org/9082494 Can someone point me in the right direction?
[18:05:50] apeiros: kevinburke: unlikely
[18:05:58] schneider: has joined #ruby
[18:06:04] apeiros: kevinburke: it is more likely that you have some ill defined tasks
[18:06:20] VeryBewitching: has joined #ruby
[18:06:51] apeiros: majuk: ARGV is an array of strings, you want an integer
[18:07:03] apeiros: >> Integer("0x7777")
[18:07:04] ruby[bot]: apeiros: # => 30583 (https://eval.in/985333)
[18:07:15] apeiros: >> Integer("0x7777", 16) # if you want to ensure it's hex
[18:07:16] ruby[bot]: apeiros: # => 30583 (https://eval.in/985334)
[18:07:22] majuk: apeiros: Cool, thanks, I
[18:07:25] majuk: ll try that out
[18:08:39] majuk: apeiros: Wait I don't get it, I need to recast my argument to an int?
[18:09:10] apeiros: apart from the terminology: yes
[18:09:25] VeryBewitching: Only if you want to regard it and use it as one
[18:10:03] apeiros: "0x0077" != 0x0077
[18:11:07] amar: has joined #ruby
[18:11:20] majuk: `arg1 = ARGV[0].to_i` with ARGV[0] = 0x0077, arg1=0
[18:11:40] apeiros: to_i does not work the same as Integer
[18:11:47] apeiros: >> "hello".to_i
[18:11:48] ruby[bot]: apeiros: # => 0 (https://eval.in/985336)
[18:11:58] apeiros: >> "123hello567".to_i
[18:12:00] ruby[bot]: apeiros: # => 123 (https://eval.in/985337)
[18:12:28] majuk: apeiros: Hot, ok, that got it. Thanks for your help/.
[18:12:31] apeiros: you can pass it a base too, though. but it'll never raise on invalid input.
[18:12:35] majuk: arg1 = Integer(ARGV[0])
[18:12:45] apeiros: >> "77".to_i(16)
[18:12:46] ruby[bot]: apeiros: # => 119 (https://eval.in/985338)
[18:14:05] apeiros: ACTION wonders whether changing Integer#inspect to output hex would be a fun april fools prank
[18:15:05] schneider: has joined #ruby
[18:17:45] Lytol: has joined #ruby
[18:18:09] apeiros: that's how I roll
[18:18:53] icarus: has joined #ruby
[18:19:25] amar: has joined #ruby
[18:20:44] sameerynho: has joined #ruby
[18:21:03] tomphp: has joined #ruby
[18:22:05] cadillac_: has joined #ruby
[18:23:00] imode: has joined #ruby
[18:23:30] dr3wo: has joined #ruby
[18:24:10] schneider: has joined #ruby
[18:27:12] erlend: has joined #ruby
[18:30:35] schneider: has joined #ruby
[18:32:12] tomphp: has joined #ruby
[18:32:31] cadillac_: has joined #ruby
[18:33:42] n13z: has joined #ruby
[18:35:29] einarj: has joined #ruby
[18:39:43] schneider: has joined #ruby
[18:40:33] nadir: has joined #ruby
[18:42:45] mroutis: has joined #ruby
[18:43:03] mtkd: has joined #ruby
[18:43:59] alfiemax: has joined #ruby
[18:44:32] kapil___: has joined #ruby
[18:46:38] mistym: has joined #ruby
[18:46:57] einarj: has joined #ruby
[18:48:49] schneider: has joined #ruby
[18:53:04] gigetoo: has joined #ruby
[18:56:50] ramfjord: has joined #ruby
[18:57:53] schneider: has joined #ruby
[18:59:42] cadillac_: has joined #ruby
[19:00:01] einarj: has joined #ruby
[19:04:54] quobo: has joined #ruby
[19:06:40] nowhere_man: has joined #ruby
[19:07:02] schneider: has joined #ruby
[19:08:51] bmurt: has joined #ruby
[19:16:16] schneider: has joined #ruby
[19:24:20] trautwein: has joined #ruby
[19:25:23] schneider: has joined #ruby
[19:25:53] tvw: has joined #ruby
[19:26:03] anisha_: has joined #ruby
[19:30:52] trautwein: has joined #ruby
[19:32:03] trautwein: has joined #ruby
[19:33:27] trautwein: has joined #ruby
[19:34:17] trautwein: has joined #ruby
[19:34:28] schneider: has joined #ruby
[19:36:02] trautwein: has joined #ruby
[19:37:38] safetypin: has joined #ruby
[19:39:40] yqt: has joined #ruby
[19:42:48] coderphive: has joined #ruby
[19:43:23] workmad3: has joined #ruby
[19:43:32] schneider: has joined #ruby
[19:45:26] trautwein: has joined #ruby
[19:49:35] eckhardt: has joined #ruby
[19:52:40] schneider: has joined #ruby
[19:56:56] sucks: has joined #ruby
[19:57:21] sucks: has joined #ruby
[19:59:01] Phrogz: has joined #ruby
[20:00:19] ruby[bot]: -b emmapeellx!*@*$#ruby-banned
[20:00:33] Phrogz: Anyone in here use parslet and its transforms? Wondering if/how I can make a `maybe` modifier output an empty, matchable key when not matched.
[20:01:27] Vapez: has joined #ruby
[20:01:46] schneider: has joined #ruby
[20:03:57] phaul: have you looked at the section where it explains the difference between maybe & repeat(0,1) here http://kschiess.github.io/parslet/parser.html
[20:04:22] phaul: repetition and special cases part
[20:08:43] Phrogz: phaul: Exactly what I needed, thank you!
[20:09:13] phaul: cool 8-) you are welcome
[20:10:04] guacamole: has joined #ruby
[20:10:05] guacamole: has joined #ruby
[20:10:05] HoierM: has joined #ruby
[20:10:57] schneider: has joined #ruby
[20:19:56] schneider: has joined #ruby
[20:20:54] netherwolfe: has joined #ruby
[20:26:00] guacamole: has joined #ruby
[20:26:00] guacamole: has joined #ruby
[20:26:13] Phrogz: ACTION is annoyed that Ruby's grammar does not permit the `>>` or `|` operators to be moved to the start of a new line.
[20:29:06] schneider: has joined #ruby
[20:29:09] mroutis: has joined #ruby
[20:29:20] eckhardt: has joined #ruby
[20:30:00] weaksauce: has joined #ruby
[20:30:12] elementaru: has joined #ruby
[20:31:11] DTZUZO: has joined #ruby
[20:35:58] erlend: has joined #ruby
[20:38:10] schneider: has joined #ruby
[20:40:49] einarj: has joined #ruby
[20:41:17] Phrogz: Advice sought: I have a need for three different grammars in my app: (1) evaluating conditional expressions (2) evaluating/assigning simple expressions to variables (3) a simple templating language...which happens to use both (1) and (2).
[20:42:21] Phrogz: Currently I have these as completely separate grammars. The template engine grammar captures everything inside `{? ... }` and then passes the `...` to the conditional grammar to parse and evaluate.
[20:42:22] Creatornator: has joined #ruby
[20:44:03] Phrogz: Is there a good reason to merge these all into a single grammar (with different root entry points, as supported by parslet, to support my needs for (1) and (2))? I never want `{? !@#$! }` to fail the conditional parsing and fall back to plain text; if !@#$ does not pass the conditional parser, I'm happy to let it lie.
[20:44:37] jeffreylevesque_: has joined #ruby
[20:46:42] mroutis: has joined #ruby
[20:47:22] schneider: has joined #ruby
[20:49:48] Phrogz: My current approach feels gross—(1) and (2) duplicate many grammar rules (variables and various constants), and I have 3 classes instead of 1—but on the other hand it feels like it might be a better performer for the parser to slurp up huge chunks of text based on simple stop characters and then pass that to a more detailed parser.
[20:52:53] schneider: has joined #ruby
[20:55:43] Phrogz: I suppose merging them into one wouldn't be that hard, and then I can test my theory.
[20:56:46] chouhoul_: has joined #ruby
[20:56:55] ramfjord: has joined #ruby
[20:59:37] tomphp: has joined #ruby
[21:00:57] jenrzzz: has joined #ruby
[21:00:58] jenrzzz: has joined #ruby
[21:02:08] eckhardt: has joined #ruby
[21:02:19] _seanc_: has joined #ruby
[21:02:26] schneider: has joined #ruby
[21:09:49] tdy: has joined #ruby
[21:12:23] trautwein: has joined #ruby
[21:31:07] Creatornator: has joined #ruby
[21:32:41] schneider: has joined #ruby
[21:38:58] schneider: has joined #ruby
[21:41:45] amar: has joined #ruby
[21:42:55] workmad3: has joined #ruby
[21:43:16] relyks: has joined #ruby
[21:44:46] DTZUZO: has joined #ruby
[21:48:31] learningruby: has joined #ruby
[21:48:40] creat: has joined #ruby
[21:51:30] schneider: has joined #ruby
[21:54:02] shinnya: has joined #ruby
[21:58:43] _seanc_: has joined #ruby
[22:00:52] Creatornator: has joined #ruby
[22:02:28] schneider: has joined #ruby
[22:03:04] chouhoulis: has joined #ruby
[22:07:21] n0m4d1c: has joined #ruby
[22:08:30] Paraxial: has joined #ruby
[22:09:43] char_var[buffer]: has joined #ruby
[22:11:37] schneider: has joined #ruby
[22:13:15] tcopeland: has joined #ruby
[22:18:04] cschneid_: has joined #ruby
[22:22:33] schneider: has joined #ruby
[22:31:43] schneider: has joined #ruby
[22:32:09] jenrzzz: has joined #ruby
[22:32:09] jenrzzz: has joined #ruby
[22:35:52] Phrogz: No one in here cares, but IF they did: merging the three grammars into one sped up the grammar by a hair (?!) and works like a peach otherwise. Thanks for listening.
[22:36:13] apeiros: glad to have been helpful
[22:37:56] einarj: has joined #ruby
[22:38:33] stemid: has joined #ruby
[22:39:44] darkhanb: has joined #ruby
[22:40:47] stemid: hey is rbenv rubys only equivalent to pythons virtualenv? and why do some 3rd party guides point me to installing it from github? no rpm packages or repos available?
[22:41:53] solocshaw: has joined #ruby
[22:42:38] schneider: has joined #ruby
[22:44:43] erlend: has joined #ruby
[22:45:08] Klumben: has joined #ruby
[22:48:36] Phrogz: stemid: I suppose that depends on what Python's virtualenv does. I don't know it. What are you trying to do?
[22:48:52] stemid: have a specific ruby version installed that is not in the distros package repository.
[22:50:05] stemid: which when I think about it is not like what virtualenv does. so forget that, sorry.
[22:51:56] pastorinni: has joined #ruby
[22:51:57] schneider: has joined #ruby
[22:56:49] pastorin_: has joined #ruby
[22:58:37] orbyt_: has joined #ruby
[23:02:47] schneider: has joined #ruby
[23:07:48] quuxman: has joined #ruby
[23:08:54] quuxman: I'm getting a VCR::Errors::UnhandledHTTPRequestError but the cassette used has `:record => :once` so shouldn't it just maken an HTTP request if it's unrecognized?
[23:09:00] cschneid_: has joined #ruby
[23:10:05] quuxman: or maybe I have to delete the cassette?
[23:11:03] Phrogz: I'll wrap this up as a gem sometime, but in case anyone needs this:
[23:11:39] Phrogz: For an online project I'm making I wanted a templating and evaluation system that is 100% sandboxed and super simple. (Maybe too simple.) So I created this: https://gist.github.com/Phrogz/c164b9d8d6bb7fc84c28900a82af0e71
[23:11:55] schneider: has joined #ruby
[23:13:08] noobineer: has joined #ruby
[23:13:26] Phrogz: In addition to parsing text for batch setting variable values to use in the template, you can also evaluate conditional expressions. In my case I'm making a collaborative interactive-story system (~choose your own adventure) where you can keep track of simple data as the reader progresses, use that data to decide if certain choices are available, and to modify what is shown on each page.
[23:13:40] mikecmpbll: has joined #ruby
[23:14:06] Phrogz: Like a simplified online z-machine (Zork).
[23:16:04] harrycs: has joined #ruby
[23:16:25] Phrogz: stemid: I think you want rvm. https://rvm.io/
[23:18:31] Phrogz: I'm pleased with the simplicity of the syntax in my templating system combined with its unlikeliness to collide with Markdown (which I'll be annotating with the template). I especially like the `{?go}OK{|}no{.}` syntax :)
[23:19:55] harryv: has joined #ruby
[23:22:55] schneider: has joined #ruby
[23:26:05] netherwolfe: has joined #ruby
[23:28:02] kurko_: has joined #ruby
[23:28:21] stemid: has left #ruby: ()
[23:30:19] karapetyan: has joined #ruby
[23:32:03] schneider: has joined #ruby
[23:35:38] donofrio: has joined #ruby
[23:37:16] mroutis: has left #ruby: ()
[23:37:24] mroutis: has joined #ruby
[23:38:29] n0m4d1c_: has joined #ruby
[23:39:36] solocshaw: has joined #ruby
[23:41:13] chouhoulis: has joined #ruby
[23:42:28] workmad3: has joined #ruby
[23:43:15] schneider: has joined #ruby
[23:46:04] coderphive: has joined #ruby
[23:51:23] dr3wo: has joined #ruby
[23:51:30] weaksauce: i think rbenv+ruby-install is better than rvm but to each their own. rbenv is really a simple program
[23:51:51] weaksauce: just adjusts your path
[23:52:12] kurko_: Prefer rbenv too.
[23:52:51] weaksauce: actually program is a bit more intense than it is... basically 100 lines of shell script
[23:53:45] elomatreb: chruby is another similarly minimal choice, from the same author as ruby-install
[23:54:21] schneider: has joined #ruby
[23:54:31] al2o3-cr: has joined #ruby
[23:54:47] n0m4d1c: has joined #ruby
[23:59:21] n0m4d1c_: has joined #ruby