« Back to channel list

#ruby - 16 April 2016

« Back 1 day Forward 1 day »
[00:11:34] pawnbox: has joined #ruby
[00:11:40] diegoaguilar: has joined #ruby
[00:13:36] djbkd: has joined #ruby
[00:19:50] cdg: has joined #ruby
[00:20:55] charliesome: has joined #ruby
[00:24:06] charliesome: has joined #ruby
[00:25:34] ekinmur: has joined #ruby
[00:25:44] hxegon: has joined #ruby
[00:27:59] chicken: has joined #ruby
[00:33:24] mroth: has joined #ruby
[00:34:59] jenrzzz: has joined #ruby
[00:35:05] P_R_Deltoid: has joined #ruby
[00:35:13] BtcBen: has joined #ruby
[00:36:42] someish: has joined #ruby
[00:36:55] coyo: has joined #ruby
[00:38:21] someish: Does anyone know of a good algorithm for equally distributing the items of a large array to the items of a smaller array? For example, I have a patients array, and a clinicians array. I want to assign patients to clinicians so that each clinician has an equal number of patients, up until the last clinician.
[00:40:13] zacts: hi rubyists (%|:-)
[00:40:41] dn`: has joined #ruby
[00:42:14] Jandre: has joined #ruby
[00:42:29] someish: The in_groups active support method seems to give me a good start.
[00:43:01] smalltalker: someish: divide the patients by the clinicians and use array.slice(that_number) ?
[00:44:49] someish: smalltalker: That should work as well.
[00:45:42] smalltalker: or each_slice()
[00:47:14] cdg: has joined #ruby
[00:48:51] idefine: has joined #ruby
[00:49:03] SilverKey: has joined #ruby
[00:49:03] shtirlic: has joined #ruby
[00:49:33] havenwood: >> patients = [*1..10]; clinicians = [*'a'..'d']; clinicians.zip(patients.each_slice(patients.size.fdiv(clinicians.size).ceil)).to_h
[00:49:34] ruby[bot]: havenwood: # => {"a"=>[1, 2, 3], "b"=>[4, 5, 6], "c"=>[7, 8, 9], "d"=>[10]} (https://eval.in/554298)
[00:50:16] havenwood: someish: you don't want to evenly distrubute so the last two clinicians have two patients each?
[00:50:21] zacstewart: has joined #ruby
[00:50:27] havenwood: someish: in that example ^
[00:50:43] rkazak: has joined #ruby
[00:51:01] rodfersou: has joined #ruby
[00:51:21] someish: havenwood: I’m fine with that. That’s what the in_groups method seems to do.
[00:51:48] someish: I like what you did though.
[00:52:27] solocshaw: has joined #ruby
[00:54:00] thermistor: has joined #ruby
[00:55:25] blaxter: has joined #ruby
[00:56:50] yfeldblum: has joined #ruby
[00:57:21] Ox0dea: someish: See also: https://eval.in/554299
[00:57:23] vF3hNGxc47h8: has joined #ruby
[00:57:36] zast: has joined #ruby
[00:57:47] someish: You guys are super helpful. Thank you.
[00:58:49] benlieb: has joined #ruby
[01:00:19] curses: has joined #ruby
[01:01:04] pawnbox: has joined #ruby
[01:02:06] tvw: has joined #ruby
[01:03:07] Eiam_: has joined #ruby
[01:03:09] C0deMaver1ck: has joined #ruby
[01:06:07] RegulationD: has joined #ruby
[01:06:30] helpa: has joined #ruby
[01:07:08] kexmex__: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[01:07:49] SCHAAP137: has joined #ruby
[01:08:47] ixti: has joined #ruby
[01:13:06] bronson: has joined #ruby
[01:13:16] hobodave: has joined #ruby
[01:14:27] djbkd: has joined #ruby
[01:15:49] CloCkWeRX: has joined #ruby
[01:17:48] jenrzzz: has joined #ruby
[01:17:55] weemsledeux: has joined #ruby
[01:18:39] ur5us: has joined #ruby
[01:19:25] al2o3-cr: has joined #ruby
[01:20:14] darkf_: has joined #ruby
[01:20:19] charliesome: has joined #ruby
[01:23:01] xaxisx: has joined #ruby
[01:23:37] fumduq: has joined #ruby
[01:25:53] JakFrist: has joined #ruby
[01:27:06] baweaver: has joined #ruby
[01:27:47] ekinmur: has joined #ruby
[01:28:32] benlieb: has joined #ruby
[01:29:21] JakFrist: has joined #ruby
[01:31:00] pawnbox: has joined #ruby
[01:40:02] tAn: has joined #ruby
[01:49:22] Devalo: has joined #ruby
[01:52:11] benzrf: in_groups?
[01:53:17] nando293921: has joined #ruby
[01:53:43] benzrf: zacts: what's (%|:-)
[01:53:50] benzrf: i tried checking its type in ghci but it wasn't in scope :^(
[01:53:55] baweaver: has joined #ruby
[01:54:00] arescorpio: has joined #ruby
[01:56:56] GodFodder: has joined #ruby
[01:56:59] SilverKey: has joined #ruby
[02:03:07] tuelz3: has joined #ruby
[02:03:20] Yiota: has joined #ruby
[02:04:01] Yiota: has joined #ruby
[02:05:50] charliesome: has joined #ruby
[02:09:08] chagel: has joined #ruby
[02:10:49] pawnbox: has joined #ruby
[02:11:43] zacts: benzrf: it's a smiley
[02:11:49] zacts: it's a girl hat with a flower
[02:14:27] callen92: has joined #ruby
[02:15:08] djbkd: has joined #ruby
[02:17:49] elifoster: has joined #ruby
[02:18:39] zacts: I like cloche hats with flowers
[02:19:48] zacts: my old gal used to wear them
[02:19:54] zacts: anyways, back to #ruby
[02:20:41] daytime: has joined #ruby
[02:20:44] zzach1: has joined #ruby
[02:21:48] hacworld: has joined #ruby
[02:25:15] zenlot6: has joined #ruby
[02:25:29] kam270: has joined #ruby
[02:25:44] rkazak_: has joined #ruby
[02:25:47] fumduq: has joined #ruby
[02:26:33] Dreamer3_: has joined #ruby
[02:27:18] zast: has joined #ruby
[02:27:38] ahuman: has joined #ruby
[02:27:40] CloCkWeRX: has joined #ruby
[02:28:43] shevy: ^^^ a love letter to ascii art
[02:28:49] zenguy_pc: has joined #ruby
[02:29:14] ensyde: has joined #ruby
[02:29:22] Dimik1: has joined #ruby
[02:32:22] iNs: has joined #ruby
[02:34:26] eggoez: has joined #ruby
[02:34:27] bkxd: has joined #ruby
[02:36:42] C0deMaver1ck: has joined #ruby
[02:39:27] spt0: has joined #ruby
[02:39:51] duncannz: has joined #ruby
[02:40:04] patrick_star: has joined #ruby
[02:41:28] cajone: has joined #ruby
[02:42:05] bb010g: has joined #ruby
[02:42:59] johnmilton: has joined #ruby
[02:51:32] Ropeney_: has joined #ruby
[02:56:18] yfeldblum: has joined #ruby
[02:58:35] SilverKey: has joined #ruby
[03:01:15] phredus_: has joined #ruby
[03:02:41] jenrzzz: has joined #ruby
[03:02:41] jenrzzz: has joined #ruby
[03:04:23] Maletor: has joined #ruby
[03:07:31] RegulationD: has joined #ruby
[03:07:56] idefine: has joined #ruby
[03:08:52] freerobby: has joined #ruby
[03:12:12] Dimik1: has joined #ruby
[03:12:54] phredus: has joined #ruby
[03:13:53] braincras: has joined #ruby
[03:14:29] pawnbox: has joined #ruby
[03:16:08] djbkd: has joined #ruby
[03:16:19] hxegon: has joined #ruby
[03:17:27] Hobbyboy: has joined #ruby
[03:20:00] jackjackdripper: has joined #ruby
[03:20:24] nettoweb: has joined #ruby
[03:28:41] toretore: has joined #ruby
[03:29:46] pawnbox: has joined #ruby
[03:30:02] yfeldblum: has joined #ruby
[03:32:15] diegoaguilar: has joined #ruby
[03:36:47] kimi: has joined #ruby
[03:37:44] Swey_Hey: has joined #ruby
[03:39:43] idefine: has joined #ruby
[03:41:41] tuelz4: has joined #ruby
[03:42:00] idefine: has joined #ruby
[03:45:02] modin: has joined #ruby
[03:47:10] lkba: has joined #ruby
[03:47:52] gix: has joined #ruby
[03:48:45] johnny56_: has joined #ruby
[03:48:50] baweaver: has joined #ruby
[03:50:25] Devalo: has joined #ruby
[03:53:55] kadoppe: has joined #ruby
[03:57:28] houhoulis: has joined #ruby
[04:00:32] FooMunki: has joined #ruby
[04:01:43] rkazak: has joined #ruby
[04:02:14] crameth: has joined #ruby
[04:03:48] lxsameer: has joined #ruby
[04:06:26] phredus: has joined #ruby
[04:08:45] BTRE: has joined #ruby
[04:12:30] nando293921: has joined #ruby
[04:14:15] bronson: has joined #ruby
[04:14:55] tildes: has joined #ruby
[04:15:57] shevy: zacts are you hacking on anything fun related to ruby, as of late?
[04:16:38] djbkd: has joined #ruby
[04:18:45] spt0: has joined #ruby
[04:18:54] tax: has joined #ruby
[04:20:23] pawnbox: has joined #ruby
[04:20:33] Dimik1: has joined #ruby
[04:21:23] sesquipedalian: has joined #ruby
[04:23:10] Yiota: has joined #ruby
[04:24:16] shevy: hmm anyone knows how the python import system works? e. g. what specific advantage it has compared to ruby's require/load variants?
[04:25:45] Sammichmaker: has joined #ruby
[04:28:08] d0nn1e: has joined #ruby
[04:29:47] tubuliferous: has joined #ruby
[04:33:42] phredus: has joined #ruby
[04:34:26] idefine: has joined #ruby
[04:34:49] zacts: shevy: I'm getting through this ruby text processing book by pragmatic press
[04:35:04] mozzarella: shevy: you don't have to import everything, you can rename stuff as you import it (bind it to a different name)
[04:35:43] merida: has joined #ruby
[04:39:10] shevy: mozzarella hmm that sounds pretty nice
[04:39:43] shevy: zacts is that a new book? I am heavily outdated on ruby books... the last one I read was still the last version of the pickaxe
[04:44:11] blackgoat: has joined #ruby
[04:45:36] Ropeney_: zacts, any good? I have it on the to-read list
[04:47:00] Ropeney_: has joined #ruby
[04:47:38] idefine: has joined #ruby
[04:47:56] Ropeney: has joined #ruby
[04:48:43] sandelius: has joined #ruby
[04:48:52] krz: has joined #ruby
[04:52:27] smathy: has joined #ruby
[04:55:12] Dimik1: has joined #ruby
[04:55:57] stannard: has joined #ruby
[04:56:38] phredus: has joined #ruby
[04:57:09] GinoMan2440: has joined #ruby
[04:57:15] s00pcan: has joined #ruby
[04:57:42] merida: has joined #ruby
[04:58:59] watersoul: has joined #ruby
[05:01:57] merida: has joined #ruby
[05:02:23] LoneHerm_: has joined #ruby
[05:03:55] watersoul: has joined #ruby
[05:13:10] rbennacer: has joined #ruby
[05:15:05] rbennacer: has joined #ruby
[05:16:34] elifoster: has joined #ruby
[05:17:23] djbkd: has joined #ruby
[05:20:21] kareeoleez: has joined #ruby
[05:21:33] kareeoleez: has joined #ruby
[05:23:41] zacts: ropeney: so far it's ok, but I'm only at ch 4
[05:24:40] zacts: I think overall it seems likes it's going to be cool for an intro level book
[05:25:14] GinoMan2440: has joined #ruby
[05:30:09] nixmaniack: has joined #ruby
[05:31:31] hk238: has joined #ruby
[05:32:47] phredus: has joined #ruby
[05:38:37] solocshaw: has joined #ruby
[05:39:36] william3: has joined #ruby
[05:41:04] isxek: has joined #ruby
[05:49:29] Eiam_: has joined #ruby
[05:51:45] tildes: has joined #ruby
[05:53:20] william3: has joined #ruby
[06:00:27] Meow-J: has joined #ruby
[06:02:58] solocshaw: has joined #ruby
[06:05:01] pawnbox: has joined #ruby
[06:09:25] rbennacer: has joined #ruby
[06:14:59] bronson: has joined #ruby
[06:18:06] djbkd: has joined #ruby
[06:19:16] merida: has joined #ruby
[06:20:41] yfeldblum: has joined #ruby
[06:20:57] merida: has joined #ruby
[06:22:03] merida: has joined #ruby
[06:22:33] tildes: has joined #ruby
[06:22:44] merida: has joined #ruby
[06:25:04] merida: has joined #ruby
[06:26:47] phredus: has joined #ruby
[06:27:17] kareeole_: has joined #ruby
[06:27:22] n1x: has joined #ruby
[06:27:33] elifoster|alt: has joined #ruby
[06:30:01] blackgoat: has joined #ruby
[06:35:12] rkazak: has joined #ruby
[06:35:56] d0nn1e: has joined #ruby
[06:37:14] krz: has joined #ruby
[06:38:05] TheCubeLord: has joined #ruby
[06:39:20] SuperLag_: has joined #ruby
[06:39:38] kareeoleez: has joined #ruby
[06:46:26] bhrgunatha: has joined #ruby
[06:48:08] nixmaniack: has joined #ruby
[06:48:08] nixmaniack: has joined #ruby
[06:50:38] czerasz2: has joined #ruby
[06:50:51] Flaim: has joined #ruby
[06:50:54] PaulCapestany: has joined #ruby
[06:55:04] tvw: has joined #ruby
[06:58:09] kareeoleez: has joined #ruby
[07:01:04] Flaim: has left #ruby: ()
[07:02:31] poerror: has joined #ruby
[07:07:34] djbkd: has joined #ruby
[07:10:36] rbennacer: has joined #ruby
[07:11:21] bhrgunatha: has joined #ruby
[07:12:01] bry4n: has joined #ruby
[07:12:35] j3r0: has joined #ruby
[07:14:53] idefine: has joined #ruby
[07:15:38] baweaver: has joined #ruby
[07:16:22] kareeoleez: has joined #ruby
[07:17:33] baweaver: has joined #ruby
[07:17:58] mrknip: has joined #ruby
[07:19:28] tknz: has joined #ruby
[07:24:16] Devalo: has joined #ruby
[07:24:33] rbennacer: has joined #ruby
[07:25:33] kareeoleez: has joined #ruby
[07:27:34] ruby-lang413: has joined #ruby
[07:29:02] BTRE: has joined #ruby
[07:32:42] noService: has joined #ruby
[07:33:16] merida: has joined #ruby
[07:33:20] dangerousdave: has joined #ruby
[07:36:31] terminalrecluse: has joined #ruby
[07:36:58] sandelius: has joined #ruby
[07:38:01] Rodya_: has joined #ruby
[07:41:32] Infra-Red: has joined #ruby
[07:41:51] framling: has joined #ruby
[07:42:43] kimi_: has joined #ruby
[07:42:44] krz: has joined #ruby
[07:43:42] kareeoleez: has joined #ruby
[07:44:44] kimi_: has joined #ruby
[07:46:37] kimi_: has joined #ruby
[07:46:52] codecop: has joined #ruby
[07:46:55] codecop_: has joined #ruby
[07:48:13] modin: has joined #ruby
[07:48:54] kimi_: has joined #ruby
[07:49:40] MagePsycho_: has joined #ruby
[07:50:08] Blaguvest: has joined #ruby
[07:50:27] johnny56_: has joined #ruby
[07:50:54] kimi_: has joined #ruby
[07:52:46] n1x: has joined #ruby
[07:53:19] kimi_: has joined #ruby
[07:53:30] marr: has joined #ruby
[07:54:01] BtcBen: has joined #ruby
[07:55:21] william3: has joined #ruby
[07:58:02] dionysus69: has joined #ruby
[07:58:58] dgncn: has joined #ruby
[07:59:53] dangerousdave: anyone used https://github.com/nathansobo/treetop
[07:59:59] poerror: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[08:00:15] dangerousdave: I have successfully constructed my parse tree, but have no idea how to process it
[08:01:57] kareeoleez: has joined #ruby
[08:02:19] firstdayonthejob: has joined #ruby
[08:03:11] ocbtec: has joined #ruby
[08:04:13] lomex: has joined #ruby
[08:07:27] senayar: has joined #ruby
[08:08:42] rippa: has joined #ruby
[08:09:05] idefine: has joined #ruby
[08:10:29] charliesome: has joined #ruby
[08:13:19] nofxx: has joined #ruby
[08:15:29] yaewa: has joined #ruby
[08:15:53] bronson: has joined #ruby
[08:16:10] yfeldblum: has joined #ruby
[08:16:16] sp4rrow: has joined #ruby
[08:20:07] kareeoleez: has joined #ruby
[08:25:26] zapata: has joined #ruby
[08:26:12] dreinull: has joined #ruby
[08:28:22] dreinull: this is awkward, I never required my gem in irb before so I'm not sure what to do. Installed as a gem I just require "my_gem". In irb however within the gem's repo this doesn't work. Ruby doesn't find paths. How do I require a local gem in its own directory. Standard lib dir etc is here.
[08:29:21] shevy: if the gem was installed then it will be available from irb
[08:29:28] Ox0dea: dreinull: `bundle exec irb`
[08:29:52] Ox0dea: Even better is `bundle exec bin/console` if you used Bundler to initialize your gem.
[08:30:02] dreinull: Ox0dea doesn't that load the gem from gem path?
[08:30:15] dreinull: I want my development version
[08:30:20] ruby[bot]: Why don't you try it and see for yourself?
[08:32:07] dreinull: Ox0dea "./... was missing. ok
[08:32:17] Ox0dea: No worries.
[08:33:20] Rodya_: has joined #ruby
[08:34:54] bweston92: has joined #ruby
[08:35:39] apeiros: dreinull: pry -Ilib -rmy_gem
[08:35:46] apeiros: same for irb
[08:36:05] dreinull: never tried pry
[08:36:12] ruby[bot]: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
[08:36:13] bweston92: has joined #ruby
[08:36:42] dreinull: would probably be extremely useful for debugging sinatra apps :)
[08:36:53] dreinull: but never got around doing it
[08:37:28] baweaver: Sinatra typically works best with Jack Daniels
[08:38:00] dreinull: does it run under wine?
[08:38:07] Ox0dea: Huehuehue.
[08:38:21] kareeoleez: has joined #ruby
[08:38:35] CloCkWeRX: has joined #ruby
[08:38:47] baweaver: couldn't help it
[08:38:53] JamieD: has joined #ruby
[08:39:15] baweaver: (context: Frank Sinatra, the singer, drank Jack Daniels almost religiously)
[08:39:54] dreinull: I will add it to my Gefile
[08:39:56] Rodya_: has joined #ruby
[08:40:19] dreinull: or better, to my ENV vars
[08:40:21] baweaver: https://coderwall.com/p/y-rs9q/debug-your-sinatra-application-easily
[08:40:52] baweaver: there are several tutorials around though
[08:41:08] baweaver: ACTION has used remote_pry to debug issues across a company before
[08:41:31] dreinull: yes, pry has been around for years now but ...
[08:41:39] baweaver: though at that point, just learn TMUX/Screen
[08:41:53] dreinull: life without tmux?
[08:42:24] baweaver: Just saying TMUX and Screen are near requirements for remote debugging / work
[08:42:32] Ox0dea: Omigod, why are you upcasing it?
[08:43:05] Rodya_: has joined #ruby
[08:43:11] baweaver: Fine, I'll talk about RUBY
[08:43:18] Ox0dea: And JAVA and UNIX.
[08:43:57] Devalo: has joined #ruby
[08:44:43] baweaver: well bed for me. 'night
[08:47:07] Rodya_: has joined #ruby
[08:47:12] Aviio: has joined #ruby
[08:50:36] LoneHerm_: has joined #ruby
[08:53:05] lomex: has joined #ruby
[08:55:20] Alina-malina: has joined #ruby
[08:56:18] kareeoleez: has joined #ruby
[09:02:18] MagePsycho_: has joined #ruby
[09:04:33] n008f4g_: has joined #ruby
[09:07:24] ytti: has joined #ruby
[09:08:09] ytti: s.add_runtime_dependency 'net-ssh', '~> 3.0.1'
[09:08:15] ytti: this means 3.0.x, but x minimum of 1, right?
[09:08:24] ytti: but NOT 3.1
[09:10:54] william3: has joined #ruby
[09:11:17] AlexRussia: has joined #ruby
[09:11:22] jgrevich: has joined #ruby
[09:12:13] SCHAAP137: has joined #ruby
[09:12:20] mrknip: has joined #ruby
[09:16:12] Aviio: has joined #ruby
[09:16:36] bweston92: has joined #ruby
[09:20:04] Jackneill: has joined #ruby
[09:27:29] Rodya_: has joined #ruby
[09:30:03] BtcBen: has joined #ruby
[09:30:17] JamieD: has joined #ruby
[09:31:05] JamieD: has joined #ruby
[09:32:16] mdw: has joined #ruby
[09:32:45] curses: has joined #ruby
[09:34:18] chagel: has joined #ruby
[09:35:30] pandaant: has joined #ruby
[09:37:54] madgen: has joined #ruby
[09:40:43] Ropeney: has joined #ruby
[09:42:03] kareeoleez: has joined #ruby
[09:43:55] weckl: has joined #ruby
[09:45:34] baweaver: has joined #ruby
[09:45:52] akkmaxon: has joined #ruby
[09:46:53] kies: has joined #ruby
[09:47:05] blackmes1: has joined #ruby
[09:56:20] Devalo: has joined #ruby
[09:57:05] idefine: has joined #ruby
[09:57:58] NC30: has joined #ruby
[09:58:49] nhhc: has joined #ruby
[09:58:57] spider-mario: has joined #ruby
[10:00:49] kareeoleez: has joined #ruby
[10:01:40] duncannz: has joined #ruby
[10:04:43] nofxx: has joined #ruby
[10:04:47] Rodya_: has joined #ruby
[10:05:12] pandaant: has joined #ruby
[10:07:30] Rodya_: has joined #ruby
[10:08:23] xue: has joined #ruby
[10:09:58] shevy: yeah I think so
[10:10:18] shevy: I also often found the ~> too strict
[10:13:02] navneet: has joined #ruby
[10:16:19] phredus: has joined #ruby
[10:17:22] kimi_: has joined #ruby
[10:18:51] kareeoleez: has joined #ruby
[10:19:30] Rodya_: has joined #ruby
[10:19:55] PedramT: has joined #ruby
[10:20:17] marr: has joined #ruby
[10:22:16] madgen: has joined #ruby
[10:22:52] PedramT: has joined #ruby
[10:23:11] pawnbox: has joined #ruby
[10:23:16] Rodya_: has joined #ruby
[10:26:01] Rodya_: has joined #ruby
[10:26:48] lomex: has joined #ruby
[10:27:01] FernandoBasso: has joined #ruby
[10:28:09] xue: has joined #ruby
[10:29:33] xue: has joined #ruby
[10:32:33] moei: has joined #ruby
[10:32:52] xue: has joined #ruby
[10:35:25] bkxd: has joined #ruby
[10:35:26] bluOxigen: has joined #ruby
[10:35:27] nobitanobi: has joined #ruby
[10:36:48] kareeoleez: has joined #ruby
[10:39:24] stardiviner: has joined #ruby
[10:41:26] Rodya_: has joined #ruby
[10:46:29] Flipez: has joined #ruby
[10:47:25] FooMunki: has joined #ruby
[10:49:46] phredus: has joined #ruby
[10:50:11] xue: has joined #ruby
[10:51:14] kadoppe: has joined #ruby
[10:51:29] PedramT_: has joined #ruby
[10:54:40] mdw: has joined #ruby
[10:54:48] PedramT: has joined #ruby
[10:55:06] kareeoleez: has joined #ruby
[10:55:45] gizmore: has joined #ruby
[10:55:47] Rodya_: has joined #ruby
[10:56:25] madgen: has joined #ruby
[10:56:53] kareeole_: has joined #ruby
[10:57:54] PedramT: has joined #ruby
[10:58:24] eatsfoobars: has joined #ruby
[10:59:34] Rodya_: has joined #ruby
[11:00:22] sdothum: has joined #ruby
[11:01:11] nanoz: has joined #ruby
[11:06:15] xfbs: has joined #ruby
[11:07:45] xfbs: has joined #ruby
[11:07:49] FooMunki: has joined #ruby
[11:08:00] houhoulis: has joined #ruby
[11:09:56] shevy: is there a simply way to apply .select but to return two arrays? the first one, with the matches, the second array, with the non-matches?
[11:10:04] Ohmm: has joined #ruby
[11:10:21] xue: has joined #ruby
[11:10:37] RegulationD: has joined #ruby
[11:10:51] toretore: shevy: partition
[11:12:32] shevy: works, thanks
[11:14:42] navneet: has joined #ruby
[11:19:07] lomex: has joined #ruby
[11:21:13] diggernick: has joined #ruby
[11:21:13] ruby[bot]: +b diggernick!*@*$#ruby-banned
[11:21:14] ruby[bot]: ruby[bot] kicked DiggerNick: banned before
[11:21:59] szulak: has joined #ruby
[11:26:18] mikecmpbll: has joined #ruby
[11:29:09] Devalo_: has joined #ruby
[11:29:20] karapetyan: has joined #ruby
[11:30:14] houhoulis: has joined #ruby
[11:30:51] sandelius: has joined #ruby
[11:31:31] mikecmpb_: has joined #ruby
[11:31:54] JamieD: has joined #ruby
[11:33:03] ytti: has joined #ruby
[11:34:46] CloCkWeRX: has joined #ruby
[11:35:01] blaxter: has joined #ruby
[11:35:58] navneet_: has joined #ruby
[11:36:34] stardiviner: has joined #ruby
[11:36:43] bronson: has joined #ruby
[11:37:14] iek: has joined #ruby
[11:41:02] Xiti: has joined #ruby
[11:46:00] IrishGringo: has joined #ruby
[11:46:42] mikeiniowa: has joined #ruby
[11:46:52] baweaver: has joined #ruby
[11:48:05] mdw: has joined #ruby
[11:50:36] noService: has joined #ruby
[11:54:29] iek: has joined #ruby
[12:08:55] karapetyan: has joined #ruby
[12:09:30] dreinull: I managed a segfault in ruby and it says core dumped. but where?
[12:11:31] karapetyan: has joined #ruby
[12:11:55] chagel: has joined #ruby
[12:14:16] coyo: has joined #ruby
[12:14:37] Ox0dea: dreinull: Probably /var/lib/systemd/coredump.
[12:14:51] william3: has joined #ruby
[12:14:58] someish: has joined #ruby
[12:15:06] shevy: I cause a lot of segfaults
[12:15:11] Ox0dea: It's very easy.
[12:15:37] dreinull: ok, no need to actually look at it?
[12:15:48] dreinull: but it's there, yes, thanks
[12:15:54] Ox0dea: I mean, are you trying to figure out what happened?
[12:16:01] shevy: does it not scare you dreinull
[12:16:33] dreinull: no, forgot something
[12:16:36] william3: has joined #ruby
[12:17:00] futilegames: has joined #ruby
[12:17:39] dreinull: argh, too much trouble.
[12:17:49] dreinull: I'll not look at it :)
[12:18:01] Ox0dea: Wrong smiley.
[12:19:18] shevy: those ruby segfaults can be quite long... here I tend to have it in the range of... up to 2000 lines roughly, depending on how much code was loaded/used
[12:22:34] blackmes1: has joined #ruby
[12:23:10] Ox0dea: dreinull: Were you doing something iffy? If not, you might've encountered a bug in MRI.
[12:23:33] Ox0dea: Don't put the bug under the rug.
[12:24:13] dreinull: Ox0dea, no, subclassed the wrong class
[12:24:27] Ox0dea: And segfaulted?
[12:24:35] dreinull: How would I read the lz4 file?
[12:24:44] Ox0dea: man coredumpctl
[12:25:43] Papierkorb: "did you mean" or somethign related to it often makes ruby crash for me when I mistype. Wasn't able to create a simple test-case yet
[12:27:38] dreinull: ok, found it. looks awful
[12:27:45] Ox0dea: I wanna see.
[12:27:57] karapetyan: has joined #ruby
[12:28:07] inukshuk_: has joined #ruby
[12:28:48] dreinull: let me create a test case
[12:29:52] antgel: has joined #ruby
[12:31:27] jgt2: has joined #ruby
[12:32:31] karapetyan: has joined #ruby
[12:32:37] dreinull: require 'sinatra';class A < Sinatra::Application;end;use A
[12:32:55] dreinull: under 2.3 this segfaults as soon as you localhost:4567
[12:33:26] dreinull: don't have any other rubies installed on this machine
[12:35:16] Papierkorb: dreinull: does it only break with rackup?
[12:35:45] dreinull: no, ruby script.rb
[12:35:55] krz: has joined #ruby
[12:37:29] Papierkorb: works fine for me. Ruby 2.3.0p0 on ArchLinux, Sinatra 1.4.7
[12:38:12] dreinull: probably an rvm issue
[12:38:31] dreinull: the coredump mentions libc
[12:38:35] dreinull: maybe that, too
[12:39:27] Papierkorb: dreinull: On which distro are you? Or, does your distro come with Ruby2.3 out of the box?
[12:39:34] idefine: has joined #ruby
[12:39:37] dreinull: If I find some time I'll recompile
[12:39:54] dreinull: same as yours, todays arch
[12:40:06] Papierkorb: Then you don't need RVM if you only want the latest ruby
[12:40:29] dreinull: I sometimes run jruby and rbx, too
[12:40:34] dreinull: rvm is fine for me
[12:40:55] Papierkorb: jruby is in the repository too, latest version, everything nice
[12:41:45] charliesome: has joined #ruby
[12:41:56] dreinull: rbx too, I think.
[12:42:07] dreinull: Yet I like my rvm ;)
[12:43:10] Ox0dea: has joined #ruby
[12:44:12] Ox0dea: dreinull: I get stack overflows on 2.1-2.4 (as expected), but no segfaults.
[12:45:01] Ox0dea: An Archer that uses RVM, eh? I bet I can guess which AUR helper you use. :P
[12:45:17] dreinull: Ox0dea which one?
[12:45:29] Ox0dea: http://i.imgur.com/Ufbr5ej.gif
[12:45:34] diegoaguilar: has joined #ruby
[12:45:43] jgt3: has joined #ruby
[12:45:46] Ox0dea: How come?
[12:45:59] dreinull: looked at my choices and in a whim I chose pacaur.
[12:46:03] dreinull: Works great
[12:46:15] dreinull: does all the pacman stuff as well
[12:46:22] Ox0dea: It's very good.
[12:46:31] dreinull: never tried any of the other managers
[12:46:31] Ox0dea: I chose it for that reason, though, not whimsy.
[12:46:53] dreinull: I was new, I had no idea what I was looking for
[12:47:38] tuelz4: has joined #ruby
[12:48:27] freerobby: has joined #ruby
[12:49:50] MrDoctor: has joined #ruby
[12:50:23] modin: has joined #ruby
[12:53:59] rippa: has joined #ruby
[12:54:42] Ox0dea: dreinull: You'll want to look in the stack trace for the first function that has an `rb_` or `ruby_` prefix.
[12:54:57] johnny56_: has joined #ruby
[12:55:01] Ox0dea: I vaguely recall an issue on the bug tracker where some people were getting stack overflows and others segfaults.
[12:55:13] Ox0dea: It'll be to do with recursive Proc invocations, I think.
[12:56:10] BTRE: has joined #ruby
[12:57:01] johnmilton: has joined #ruby
[12:59:08] Xeago: has joined #ruby
[13:02:44] czerasz2: has joined #ruby
[13:03:32] shazaum_: has joined #ruby
[13:06:22] dreinull: http://ix.io/wRg
[13:06:35] dreinull: had to find a cli pastebin first
[13:07:25] AndChat643025: has joined #ruby
[13:07:56] Aviio_: has joined #ruby
[13:08:29] FooMunki: has joined #ruby
[13:10:30] kareeoleez: has joined #ruby
[13:13:19] nanoz: has joined #ruby
[13:14:21] shevy: Yoghurt! manage packages AND milk products!
[13:15:05] shevy: is anyone here using homebrew on linux actually?
[13:16:19] gizmore: like self-made alcohol... or that macos program?
[13:17:20] shevy: that package manager thingy
[13:18:38] dreinull: shevy I did but it sucked
[13:18:40] bruno-: has joined #ruby
[13:19:04] dreinull: usefule for hit and run dependencies
[13:19:43] dreinull: and if your distro doesn't have recent updates
[13:19:55] dreinull: but nothing beats arch on that
[13:19:59] rippa: has joined #ruby
[13:19:59] nanoz: has joined #ruby
[13:20:09] johnmilton: has joined #ruby
[13:20:13] Ox0dea: dreinull: I suspect this is the root of the problem: https://git.io/vwLoS
[13:20:29] Ox0dea: My SystemStackError and your stack trace both point to it, at least.
[13:20:55] dreinull: Ox0dea rack code is over my head
[13:21:08] dreinull: tried a couple of times to read it
[13:21:43] n008f4g_: has joined #ruby
[13:22:04] Xeago: has joined #ruby
[13:22:31] william3: has joined #ruby
[13:26:59] blackmes1: has joined #ruby
[13:30:06] lkba: has joined #ruby
[13:30:55] shinnya: has joined #ruby
[13:32:37] JamieD: has joined #ruby
[13:33:04] CloCkWeRX: has joined #ruby
[13:37:15] Ishido: has joined #ruby
[13:37:38] bronson: has joined #ruby
[13:38:33] Xeago: has joined #ruby
[13:39:42] tubuliferous: has joined #ruby
[13:45:01] czerasz2: has joined #ruby
[13:45:55] diegoaguilar: has joined #ruby
[13:48:45] baweaver: has joined #ruby
[13:50:30] rbennacer: has joined #ruby
[13:56:01] rbennacer: has joined #ruby
[13:57:39] biberu: has joined #ruby
[13:58:28] watersoul: has joined #ruby
[13:58:48] AlexRussia: has joined #ruby
[14:00:38] nixmaniack: has joined #ruby
[14:02:59] PedramT: has joined #ruby
[14:04:02] william3: has joined #ruby
[14:05:00] idle_task: has joined #ruby
[14:07:27] william3: has joined #ruby
[14:08:20] poerror: has joined #ruby
[14:08:31] PedramT: has joined #ruby
[14:09:06] IrishGringo: has joined #ruby
[14:12:21] sameerynho: has joined #ruby
[14:13:23] nixmaniack: has joined #ruby
[14:13:48] shevy: is there something like testing for lazy people? like, I'd want to test only for some core functionality, but could easily avoid having to test the remaining ... 50% or something
[14:13:55] poerror: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[14:15:04] rbennacer: has joined #ruby
[14:15:43] adaedra: you choose what you test, after all
[14:17:02] freerobby: has joined #ruby
[14:19:29] william3: has joined #ruby
[14:20:59] Polysics: has joined #ruby
[14:21:51] futilegames: has joined #ruby
[14:24:44] Ohmm: has joined #ruby
[14:24:47] circlebenny: has joined #ruby
[14:27:45] idefine: has joined #ruby
[14:28:45] futilegames: has joined #ruby
[14:30:21] lomex: has joined #ruby
[14:31:49] Eiam_: has joined #ruby
[14:33:53] n008f4g_: has joined #ruby
[14:34:26] Puffball: has joined #ruby
[14:39:58] noService: has joined #ruby
[14:42:08] RegulationD: has joined #ruby
[14:42:09] sandelius: has joined #ruby
[14:45:19] lkba: has joined #ruby
[14:45:41] finisherr: has joined #ruby
[14:47:04] callen92: has joined #ruby
[14:47:40] davedev24: has joined #ruby
[14:47:43] gregf: has joined #ruby
[14:49:42] pawnbox: has joined #ruby
[14:49:43] kareeoleez: has joined #ruby
[14:52:48] SuperLag: has joined #ruby
[14:53:12] Yiota: has joined #ruby
[14:55:44] Infra-Red: has joined #ruby
[14:59:00] idefine: has joined #ruby
[14:59:09] kareeoleez: has joined #ruby
[15:00:25] newjersey: has joined #ruby
[15:01:28] mrknip: has joined #ruby
[15:07:42] bry4n: has joined #ruby
[15:09:28] djbkd: has joined #ruby
[15:09:34] ekinmur: has joined #ruby
[15:12:14] baweaver: has joined #ruby
[15:13:30] navneet: has joined #ruby
[15:14:47] lemur: has joined #ruby
[15:14:53] hxegon: has joined #ruby
[15:16:51] madgen: has joined #ruby
[15:17:23] kareeoleez: has joined #ruby
[15:25:23] SilverKey: has joined #ruby
[15:25:25] User458764: has joined #ruby
[15:26:25] n008f4g_: has joined #ruby
[15:30:32] LoneHerm_: has joined #ruby
[15:30:57] siaW: has joined #ruby
[15:33:25] jamil: has joined #ruby
[15:35:35] kareeoleez: has joined #ruby
[15:37:11] nando293921: has joined #ruby
[15:38:32] bronson: has joined #ruby
[15:39:40] karapetyan: has joined #ruby
[15:40:49] lomex: has joined #ruby
[15:43:30] shoky: has joined #ruby
[15:48:39] shoky: has left #ruby: ()
[15:49:30] vdamewood: has joined #ruby
[15:51:40] rkazak: has joined #ruby
[15:51:53] s00pcan: has joined #ruby
[15:53:55] kareeoleez: has joined #ruby
[15:55:42] b|ackwolf: has joined #ruby
[15:56:07] firstdayonthejob: has joined #ruby
[15:57:02] nhhc: has joined #ruby
[15:59:53] phpwebdev: has joined #ruby
[16:05:04] someish: has joined #ruby
[16:05:33] MagePsycho_: has joined #ruby
[16:05:47] hosttor: has joined #ruby
[16:11:02] ixti: has joined #ruby
[16:11:25] statelesscode: has joined #ruby
[16:12:07] kareeoleez: has joined #ruby
[16:14:34] houhoulis: has joined #ruby
[16:16:19] GinoMan2440_: has joined #ruby
[16:19:23] mrknip: has joined #ruby
[16:20:51] hosttor: has joined #ruby
[16:21:22] kareeoleez: has joined #ruby
[16:21:39] cdg: has joined #ruby
[16:25:33] vF3hNGxc47h8: has joined #ruby
[16:26:12] Gasher: has joined #ruby
[16:26:35] Infra-Red: has joined #ruby
[16:27:45] blaxter: has joined #ruby
[16:29:28] hosttor: has joined #ruby
[16:30:31] kareeoleez: has joined #ruby
[16:31:28] freerobby: has joined #ruby
[16:36:22] akem: has joined #ruby
[16:36:28] terminalrecluse: has joined #ruby
[16:37:40] safe: has joined #ruby
[16:37:53] william3: has joined #ruby
[16:39:05] karapetyan: has joined #ruby
[16:39:27] terminalrecluse: has joined #ruby
[16:39:52] Mattx: has joined #ruby
[16:39:59] Mattx: Hey guys! Check this code: https://gist.github.com/0178dc758501bdfe238a36ab69b9d69b
[16:40:13] Mattx: Why is it unpredictable?
[16:40:36] Mattx: I want the second behavior, always
[16:42:56] MagePsycho_: has joined #ruby
[16:43:21] Gasher: has joined #ruby
[16:43:30] myntcake: has joined #ruby
[16:43:57] nando293921: has joined #ruby
[16:44:34] Mattx: any idea?
[16:46:10] araujo_: has joined #ruby
[16:47:31] Mattx: it's always executing the code in the same order, why would the output change?
[16:47:38] stardiviner: has joined #ruby
[16:48:25] araujo_: has joined #ruby
[16:48:45] kareeoleez: has joined #ruby
[16:49:02] terminalrecluse: has joined #ruby
[16:49:20] Eiam_: has joined #ruby
[16:49:24] PedramT: has joined #ruby
[16:49:24] GodFodder: has joined #ruby
[16:50:09] sharkman: has joined #ruby
[16:50:39] araujo_: has joined #ruby
[16:50:48] sharkman: a = [1,2,3,4,5,6,7], how do i get a = [2,3,4,5,7] by deleting at indexes
[16:52:51] araujo_: has joined #ruby
[16:54:24] diegoaguilar: has joined #ruby
[16:54:35] Mattx: has left #ruby: ("Leaving")
[16:54:39] Mattx: has joined #ruby
[16:57:45] karapetyan: has joined #ruby
[16:57:51] kareeoleez: has joined #ruby
[16:58:37] pawnbox: has joined #ruby
[16:58:58] Gasher: has joined #ruby
[17:01:07] jamil: has joined #ruby
[17:01:27] Devalo: has joined #ruby
[17:03:02] pawnbox: has joined #ruby
[17:07:08] kareeoleez: has joined #ruby
[17:12:24] Gasher: has joined #ruby
[17:12:26] william3: has joined #ruby
[17:15:05] elifoster|alt: has joined #ruby
[17:15:36] mdw: has joined #ruby
[17:16:14] bruno-: has joined #ruby
[17:16:38] kareeoleez: has joined #ruby
[17:18:59] lomex: has joined #ruby
[17:22:07] BtcBen: has joined #ruby
[17:22:22] SilverKey: has joined #ruby
[17:22:31] Mattx: Hey, I repeat my problem just in case
[17:22:40] Mattx: Check this code: https://gist.github.com/0178dc758501bdfe238a36ab69b9d69b
[17:22:59] Mattx: It's always executing the code in the same order (due to the sleeps), why would the output change then?
[17:24:18] sdavis: has joined #ruby
[17:24:38] SCHAAP137: has joined #ruby
[17:24:59] dfdnatural: has joined #ruby
[17:25:28] kareeoleez: has joined #ruby
[17:31:42] chagel: has joined #ruby
[17:32:26] GinoMan2440: has joined #ruby
[17:35:29] navneet: has joined #ruby
[17:35:30] nobitanobi: has joined #ruby
[17:39:19] bronson: has joined #ruby
[17:40:47] idefine: has joined #ruby
[17:42:42] william3: has joined #ruby
[17:43:41] kareeoleez: has joined #ruby
[17:45:04] Gasher: has joined #ruby
[17:46:46] newjersey: has joined #ruby
[17:47:01] Mattx: No one is reading :(
[17:47:27] nw: has joined #ruby
[17:47:30] shaman42: has joined #ruby
[17:47:53] last_staff: has joined #ruby
[17:49:56] madgen: has joined #ruby
[17:49:56] ramfjord: has joined #ruby
[17:53:00] blaxter: has joined #ruby
[17:53:42] mgorbach: has joined #ruby
[17:54:34] idefine: has joined #ruby
[17:55:21] sp4rrow: has joined #ruby
[17:58:07] nettoweb: has joined #ruby
[17:59:05] krz: has joined #ruby
[17:59:55] sdavis: Is it possible to force TLS 1.2 in ruby? And have heroku respect it?
[18:00:25] nando293921: has joined #ruby
[18:00:48] smathy: has joined #ruby
[18:00:56] goodroot: has joined #ruby
[18:01:15] pietr0: has joined #ruby
[18:02:03] kareeoleez: has joined #ruby
[18:03:52] Devalo: has joined #ruby
[18:05:00] djbkd: has joined #ruby
[18:05:27] djellemah: Mattx: Are you sure you know what Thread.abort_on_exception = true will do?
[18:08:22] PedramT: has joined #ruby
[18:10:16] karapetyan: has joined #ruby
[18:10:37] sepp2k: has joined #ruby
[18:11:26] n008f4g_: has joined #ruby
[18:12:56] pawnbox: has joined #ruby
[18:13:51] RegulationD: has joined #ruby
[18:14:36] naftilos76: has joined #ruby
[18:14:48] GinoMan2440: has joined #ruby
[18:15:38] User458764: has joined #ruby
[18:17:02] nw1: has joined #ruby
[18:20:19] kareeoleez: has joined #ruby
[18:21:20] xue: has joined #ruby
[18:24:20] blackmes1: has joined #ruby
[18:25:11] jamil: has joined #ruby
[18:27:34] Infra-Red: has joined #ruby
[18:29:31] bruno-: has joined #ruby
[18:30:10] shevy: Mattx wake up!
[18:31:59] Xeago: has joined #ruby
[18:36:06] nobitanobi: has joined #ruby
[18:36:53] shevy: we lost him to the forces of idle
[18:37:10] Dimik: has joined #ruby
[18:37:54] idefine: has joined #ruby
[18:38:23] kareeoleez: has joined #ruby
[18:41:58] solars: has joined #ruby
[18:47:28] eatsfoobars: has joined #ruby
[18:49:48] Regulati_: has joined #ruby
[18:50:23] Qommand0r: has joined #ruby
[18:51:09] szulak: has joined #ruby
[18:53:18] mdw: has joined #ruby
[18:53:20] IrishGringo: has joined #ruby
[18:53:31] PedramT: has joined #ruby
[18:56:46] kareeoleez: has joined #ruby
[18:58:34] OTORelic2: has joined #ruby
[18:59:22] william3: has joined #ruby
[19:00:17] william3: has joined #ruby
[19:03:56] karapetyan: has joined #ruby
[19:04:07] idefine: has joined #ruby
[19:04:15] rkazak: has joined #ruby
[19:04:50] william3: has joined #ruby
[19:05:33] kareeoleez: has joined #ruby
[19:05:47] PedramT: has joined #ruby
[19:06:08] Xeago: has joined #ruby
[19:07:44] Qommand0r: has joined #ruby
[19:09:01] mesamoo: has joined #ruby
[19:09:06] Qommand0r: has joined #ruby
[19:11:25] Qommand0r: has joined #ruby
[19:12:45] navneet: has joined #ruby
[19:14:54] PedramT: has joined #ruby
[19:15:35] Musashi007: has joined #ruby
[19:17:15] MeMoc: has joined #ruby
[19:19:31] slackbotgz: has joined #ruby
[19:20:23] Qommand0r: has joined #ruby
[19:23:51] kareeoleez: has joined #ruby
[19:24:05] dionysus69: has joined #ruby
[19:24:26] Devalo: has joined #ruby
[19:25:22] SCHAAP137: has joined #ruby
[19:25:56] rbennacer: has joined #ruby
[19:26:44] minimalism: has joined #ruby
[19:31:50] MrDoctor: has joined #ruby
[19:33:13] nettoweb: has joined #ruby
[19:34:25] karapetyan: has joined #ruby
[19:34:50] blackmes1: has joined #ruby
[19:35:32] n008f4g_: has joined #ruby
[19:36:24] djbkd: has joined #ruby
[19:37:59] bruno-: has joined #ruby
[19:40:14] bronson: has joined #ruby
[19:40:25] davedev24: has joined #ruby
[19:42:02] kareeoleez: has joined #ruby
[19:42:57] tuxdna: has joined #ruby
[19:44:48] tildes: has joined #ruby
[19:45:16] czerasz2: has joined #ruby
[19:45:57] Yiota: has joined #ruby
[19:46:23] juanfra: has joined #ruby
[19:47:19] tristanp: has joined #ruby
[19:49:34] binaryplease1: has joined #ruby
[19:50:17] AnoHito: has joined #ruby
[19:51:21] poguez_: has joined #ruby
[19:51:32] Yiota: has joined #ruby
[19:51:50] Cohedrin: has joined #ruby
[19:52:44] baweaver: has joined #ruby
[19:53:06] goodroot: has joined #ruby
[19:53:42] baweaver: has joined #ruby
[19:56:46] baweaver: has joined #ruby
[19:57:14] sp4rrow: has joined #ruby
[19:58:31] JohnBat26: has joined #ruby
[19:58:38] eam: w/in 11
[19:58:44] bmf: has joined #ruby
[19:58:47] eam: whooops, happy weekend everyone how are your rubies
[20:00:12] kareeoleez: has joined #ruby
[20:00:43] d0nn1e: has joined #ruby
[20:03:49] baweaver: has joined #ruby
[20:05:42] BtcBen: has joined #ruby
[20:05:49] bronson: has joined #ruby
[20:08:41] gizless: has joined #ruby
[20:09:02] Yiota: has joined #ruby
[20:09:32] kareeoleez: has joined #ruby
[20:10:37] sp4rrow: has joined #ruby
[20:10:44] wtiger: has joined #ruby
[20:11:14] wtiger: has left #ruby: ()
[20:13:05] bruno-: has joined #ruby
[20:13:17] Infra-Red: has joined #ruby
[20:13:26] MagePsycho_: has joined #ruby
[20:15:57] hxegon: has joined #ruby
[20:17:56] ramfjord: has joined #ruby
[20:19:11] statelesscode: has joined #ruby
[20:20:55] n1colas: has joined #ruby
[20:23:22] Yzguy: has joined #ruby
[20:27:51] kareeoleez: has joined #ruby
[20:28:54] idefine: has joined #ruby
[20:29:26] _whitelogger: has joined #ruby
[20:30:04] Musashi007: has joined #ruby
[20:30:05] Yzguy: has joined #ruby
[20:30:45] yfeldblum: has joined #ruby
[20:37:12] newjersey: has joined #ruby
[20:37:17] chagel: has joined #ruby
[20:42:16] _blizzy_: has joined #ruby
[20:42:40] nobitanobi: has joined #ruby
[20:44:15] stardiviner: has joined #ruby
[20:44:36] raeoks: has joined #ruby
[20:45:05] djbkd: has joined #ruby
[20:45:57] kareeoleez: has joined #ruby
[20:47:33] AdamMeghji: has joined #ruby
[20:47:34] adambeynon: has joined #ruby
[20:47:35] hayden_: has joined #ruby
[20:47:42] olivierjanss: has joined #ruby
[20:47:42] gmci: has joined #ruby
[20:47:47] ckrailo: has joined #ruby
[20:49:50] Infra-Red: has joined #ruby
[20:51:23] bodgix: has joined #ruby
[20:51:48] idefine: has joined #ruby
[20:56:12] gregf: has joined #ruby
[20:57:14] tristanp: has joined #ruby
[20:57:57] william3: has joined #ruby
[20:58:09] newjersey: has joined #ruby
[20:58:32] atzorvas: has joined #ruby
[20:58:34] someish: has joined #ruby
[20:59:37] symm-: has joined #ruby
[20:59:47] william3: has joined #ruby
[20:59:47] barajasfab: has joined #ruby
[21:01:07] Yiota: has joined #ruby
[21:04:16] kareeoleez: has joined #ruby
[21:04:54] siaW: has joined #ruby
[21:10:46] idefine: has joined #ruby
[21:11:20] P_R_Deltoid: has joined #ruby
[21:11:34] tristanp: has joined #ruby
[21:12:34] jonathanwallace1: has joined #ruby
[21:16:42] northrup: has joined #ruby
[21:17:31] Denart_: has joined #ruby
[21:19:13] al2o3-cr: has joined #ruby
[21:20:58] TvL: has joined #ruby
[21:22:30] kareeoleez: has joined #ruby
[21:26:21] terminalrecluse: has joined #ruby
[21:27:30] nettoweb: has joined #ruby
[21:27:35] william3: has joined #ruby
[21:28:36] JamieD: has joined #ruby
[21:28:43] terminalrecluse: has joined #ruby
[21:29:10] kareeoleez: has joined #ruby
[21:32:55] william3: has joined #ruby
[21:35:14] Nawn: has joined #ruby
[21:38:06] al2o3-cr: has joined #ruby
[21:41:15] Yiota: has joined #ruby
[21:41:17] goodroot: has joined #ruby
[21:41:18] [spoiler]: Does anyone know what the reason behind Ruby's `(Float..Float)#size` is? If you look at the C code, it handles a Range between two floats differently.
[21:41:19] ctrlrsf: has joined #ruby
[21:41:36] [spoiler]: When computing the size, that is
[21:42:55] [spoiler]: > (3.14..6.28).size # Returns 4, but I am not sure what the idea is
[21:43:02] [spoiler]: >> (3.14..6.28).size # Returns 4, but I am not sure what the idea is
[21:43:03] ruby[bot]: [spoiler]: # => 4 (https://eval.in/554656)
[21:43:35] jonathanwallace1: has joined #ruby
[21:43:51] al2o3-cr: imprecision
[21:44:51] baweaver: has joined #ruby
[21:45:07] al2o3-cr: but i suck coconuts, so go figure
[21:45:35] nettoweb: has joined #ruby
[21:45:49] flopsec: has joined #ruby
[21:46:01] havenwood: >> (3.14..6.28).step.to_a # [spoiler]
[21:46:02] ruby[bot]: havenwood: # => [3.14, 4.140000000000001, 5.140000000000001, 6.140000000000001] (https://eval.in/554657)
[21:47:16] bb010g: has joined #ruby
[21:48:26] nobitanobi: has joined #ruby
[21:48:44] TheCubeLord: has joined #ruby
[21:50:22] idefine: has joined #ruby
[21:50:55] [spoiler]: havenwood: Oh. That's the only reason? Kinda explains why the name is `ruby_float_step_size`
[21:51:48] [spoiler]: I still think it's slightly bizarre, but oh well. Thanks, though
[21:51:58] [spoiler]: (mostly because I can't think of a usecase)
[21:52:29] IrishGringo: has joined #ruby
[21:52:36] TheCubeLord: how do you install the latest version of ruby on a raspberry pi which has ruby version 2.1.5 on it?
[21:52:40] al2o3-cr: wrongnessness is an answer, i swear!
[21:53:09] al2o3-cr: TheCubeLord: debian based?
[21:53:51] TheCubeLord: well actually it is a lighter version of debian
[21:53:56] TheCubeLord: but still yes
[21:54:30] al2o3-cr: TheCubeLord: Pi2/3?
[21:55:40] newbie|2: has joined #ruby
[21:56:47] Trynemjoel: has joined #ruby
[21:56:51] jyaworski: has joined #ruby
[21:56:57] al2o3-cr: TheCubeLord: `wget http://archlinuxarm.org/os/ArchLinuxARM-rpi-2-latest.tar.gz` :P
[21:57:11] TheCubeLord: and then i tar the file
[21:57:38] TheCubeLord: could u just send the link where you found it please
[21:57:39] al2o3-cr: TheCubeLord: https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3
[21:57:55] al2o3-cr: don't fuck about with debian
[21:58:24] TheCubeLord: could u just send the link where you found it please
[21:58:37] al2o3-cr: TheCubeLord: ^
[21:59:15] al2o3-cr: TheCubeLord: https://archlinuxarm.org
[22:00:22] al2o3-cr: be always using the latest ruby
[22:00:44] al2o3-cr: rolling release and all
[22:01:23] al2o3-cr: if shits not out, compile the dev
[22:01:49] al2o3-cr: entirely up to you though :P
[22:01:50] Lildirt: has joined #ruby
[22:02:22] zast: has joined #ruby
[22:02:41] postmodern: has joined #ruby
[22:04:10] Eiam_: has joined #ruby
[22:05:32] chicken: has joined #ruby
[22:07:15] bronson: has joined #ruby
[22:08:03] Zackio: has joined #ruby
[22:08:14] al2o3-cr: ACTION arch is the shizzle
[22:08:56] Amigo22: has joined #ruby
[22:09:43] jamil: has joined #ruby
[22:10:08] al2o3-cr: >> 1.0 == 1.000000000000000004
[22:10:10] ruby[bot]: al2o3-cr: # => true (https://eval.in/554675)
[22:10:31] kareeoleez: has joined #ruby
[22:11:51] shazaum_: has joined #ruby
[22:12:41] nobitanobi: has joined #ruby
[22:16:36] jonathanwallace1: has joined #ruby
[22:20:02] al2o3-cr: >> 1e309 == 1.0/0
[22:20:03] ruby[bot]: al2o3-cr: # => true (https://eval.in/554682)
[22:20:57] felltir: has joined #ruby
[22:21:53] madgen: has joined #ruby
[22:22:35] TheCubeLord: yay ruby 2.3 is now online
[22:22:43] TheCubeLord: well goodnight
[22:22:51] TheCubeLord: its monday for me CXD
[22:23:32] jackjackdripper: has joined #ruby
[22:23:53] al2o3-cr: still wednesday here :P
[22:24:35] al2o3-cr: ACTION tells fibs
[22:25:15] LoneHerm_: has joined #ruby
[22:28:11] alxgsv: has joined #ruby
[22:28:48] kareeoleez: has joined #ruby
[22:29:31] dmr8: has joined #ruby
[22:33:29] justbleed: has joined #ruby
[22:33:55] Aviio: has joined #ruby
[22:34:20] petersaints: has joined #ruby
[22:36:08] diegoviola: has joined #ruby
[22:37:55] Polysics: has joined #ruby
[22:38:32] Nawn: has joined #ruby
[22:38:49] Xiti: has joined #ruby
[22:38:51] kareeoleez: has joined #ruby
[22:39:37] chagel: has joined #ruby
[22:40:05] PedramT: has joined #ruby
[22:40:09] zenlot6: has joined #ruby
[22:40:54] Lildirt: has joined #ruby
[22:42:29] SilverKey: has joined #ruby
[22:43:29] someish: What’s the idiomatic way to do this: https://gist.github.com/anonymous/7214cef8852e9e17ea57f5ec1966a878
[22:46:11] bruno-: has joined #ruby
[22:47:30] kareeoleez: has joined #ruby
[22:48:32] SHyx0rmZ: has joined #ruby
[22:51:56] smathy: someish, just return the boolean itself.
[22:53:41] william3: has joined #ruby
[22:55:38] petersaints: has left #ruby: ("Leaving")
[22:57:13] Aviio: has joined #ruby
[22:58:01] Nawn: try something like this? https://gist.github.com/Nawn/fccee240caeac83d1b673b5e095645ed
[22:58:12] nettoweb: has joined #ruby
[22:59:19] Nawn: someish: check the link above. That's how I would probably write that
[22:59:49] Devalo: has joined #ruby
[23:00:05] someish: Nawn: I like that.
[23:00:31] someish: I like that a lot.
[23:00:54] Devalo: has joined #ruby
[23:00:55] Nawn: Yeah, or you could make it very very small, and get rid of everything
[23:01:00] baweaver: what if they have multiple roles?
[23:01:05] Nawn: simply make the body of the method:
[23:01:07] Nawn: current_user.roles.first.name == 'admin' || current_user.roles.first.name == 'clinician'
[23:01:21] Nawn: that'll return true or false either way
[23:01:54] Devalo: has joined #ruby
[23:02:45] baweaver: def method; current_user.roles.exists?(name: %w(admin clinician)) end
[23:02:49] myntcake: has joined #ruby
[23:02:56] Devalo: has joined #ruby
[23:03:01] baweaver: you want to check all their roles instead of the first.
[23:03:12] baweaver: say their first role is guest
[23:03:19] baweaver: but they have the admin role
[23:04:07] Devalo: has joined #ruby
[23:04:47] someish: Fancy pants.
[23:05:15] baweaver: also might be better to ask rails questions in #RubyOnRails
[23:05:35] someish: I wouldn’t really consider the original question a rails question.
[23:05:39] kareeoleez: has joined #ruby
[23:06:33] baweaver: avoid using Enumerable methods on ActiveRecord objects
[23:06:45] baweaver: most of the time there's a more efficient query to get it
[23:06:53] diego1: has joined #ruby
[23:08:00] flashpoint9: has joined #ruby
[23:08:57] Devalo_: has joined #ruby
[23:09:05] Xeago: has joined #ruby
[23:09:55] someish: I see what you’re suggesting.
[23:10:03] flashpoint9: Im building a simple ruby gem and Im looking for non rails tutorials/docs on creating an api in the gem so methods can be called from it (note im a noob), im having trouble finding non rails material
[23:10:04] Devalo: has joined #ruby
[23:11:14] baweaver: flashpoint9: what is an API to you?
[23:12:07] flashpoint9: just a set of methods i can access, endpoints for doing things
[23:12:28] baweaver: So not a Web API then
[23:12:47] baweaver: Looking that up is going to get you Sinatra or Rails
[23:12:56] baweaver: Just read through a basic gem guide
[23:12:56] DenSchub: has joined #ruby
[23:13:18] someish: It sounds like you want to learn about object orientation in ruby.
[23:13:28] flashpoint9: so this http://guides.rubygems.org/make-your-own-gem/ ?
[23:13:32] ruby[bot]: Practical Object Oriented Design in Ruby http://www.poodr.com/
[23:13:37] baweaver: yeah, that's one
[23:13:49] flashpoint9: Yes im already working through that book to, which is an amazong book
[23:14:19] flashpoint9: baweaver: Thanks, ill get back in those docs
[23:14:41] someish: flashpoint9: I had a lot of success with this book: http://ruby-doc.com/docs/ProgrammingRuby/
[23:14:47] Devalo: has joined #ruby
[23:15:29] flashpoint9: someish: Sweet, I'll take a look at that book, thanks.
[23:16:12] Devalo: has joined #ruby
[23:16:20] al2o3-cr: if i told you ruby isn't oop, would you believe me?
[23:16:44] flashpoint9: even the data types are objects
[23:16:47] anthony: has joined #ruby
[23:19:07] Xiti: has joined #ruby
[23:19:36] spooq: has joined #ruby
[23:19:53] Devalo: has joined #ruby
[23:21:04] spooq: has joined #ruby
[23:21:26] Devalo: has joined #ruby
[23:23:50] kareeoleez: has joined #ruby
[23:25:20] Xeago: has joined #ruby
[23:25:21] Devalo: has joined #ruby
[23:27:28] Devalo_: has joined #ruby
[23:28:33] tuelz: has joined #ruby
[23:28:41] newbie|2: has joined #ruby
[23:31:31] Azure: has joined #ruby
[23:32:56] rbennacer: has joined #ruby
[23:34:48] Azure: has joined #ruby
[23:34:50] Denart_: Hi I'm Sam Aaron - I created the live coding synth Sonic Pi
[23:34:59] dfdnatural: has joined #ruby
[23:35:25] Denart_: https://www.livecoding.tv/samaaron/videos/GdLbq-live-coding-w-sonic-pi-308
[23:35:41] Cohedrin: what would you like us to do with that sam aaron
[23:35:42] Denart_: do you like it?
[23:36:04] Denart_: just feedback
[23:36:05] `tim`: has joined #ruby
[23:36:22] al2o3-cr: Denart_: ask in #ruby-offtopic
[23:36:32] Cohedrin: are you promoting
[23:36:35] Cohedrin: your livestream
[23:37:27] darkf: has joined #ruby
[23:38:08] nofxx: has joined #ruby
[23:39:29] Polysics: has joined #ruby
[23:40:14] tristanp: has joined #ruby
[23:41:02] Kallis: has joined #ruby
[23:42:02] kareeoleez: has joined #ruby
[23:43:18] brent__: has joined #ruby
[23:44:17] djbkd: has joined #ruby
[23:44:40] bruno-: has joined #ruby
[23:47:44] karapetyan: has joined #ruby
[23:50:38] asdfasfdgfag: has joined #ruby
[23:50:40] asdfasfdgfag: has left #ruby: ()
[23:50:58] kareeoleez: has joined #ruby
[23:51:22] diego1: has joined #ruby
[23:52:34] idefine: has joined #ruby
[23:54:25] DenSchub: has joined #ruby
[23:55:20] solocshaw: has joined #ruby
[23:56:16] william3: has joined #ruby
[23:59:28] flashpoint9: has joined #ruby