« Back to channel list

#ruby - 29 January 2016

« Back 1 day Forward 1 day »
[00:01:06] mg^: Ox0dec: TracePoint confirmed when the inherited hook got called, which was as I figured... before the subclass is populated
[00:01:30] Ox0dec: mg^: Makes good sense.
[00:01:47] mg^: it explains why so many things that use plugin classes out there require a "register" call of some sort rather than use the inherited hook to auto-register
[00:02:39] musicnode: has joined #ruby
[00:02:41] mg^: it's less pretty, but it works
[00:03:25] Ox0dec: mg^: Did you notice the :end event?
[00:03:28] kalopsian: has joined #ruby
[00:03:38] dexter_: has joined #ruby
[00:04:19] Ox0dec: It'd be hairier, but you could start monitoring for the appropriate :end event in the inherited hook.
[00:04:42] gbgdev: has joined #ruby
[00:05:57] bklane: has joined #ruby
[00:05:58] mg^: yeah that's an interesting idea
[00:06:23] mg^: I also figure that since I know when all subclasses are loaded, I could search ObjectSpace for unregistered plugins
[00:07:00] mg^: I can't think of a situation in my design where someone would load a plugin, and not want to register it
[00:07:35] mg^: I suppose one might want to manually register it after making sure it was set up properly in a debugging/testing scenario
[00:08:04] mg^: but in that case, since it's not the common one, I'd rather they said something like register(false)
[00:08:30] sesquipedalian: has joined #ruby
[00:12:25] Ropeney: has joined #ruby
[00:12:35] dlitvak: has joined #ruby
[00:12:40] soLucien: help me translate the following line into method calls : dc1.vm.provision "shell", run: "once", path: "shared/shell/PrepareWindows.ps1"
[00:12:55] soLucien: so call method provision with argument shell
[00:13:23] soLucien: then what does the comma do, and what's with the run:"once" synthax ?
[00:13:33] Canar: it's running a powershell script
[00:13:37] soLucien: i mean i understand it's their own DSL
[00:13:45] Canar: at shared/shell/PrepareWindpows.ps1
[00:13:53] soLucien: i know, i wrote that line , i know what it does
[00:13:58] soLucien: i just don't know ruby
[00:14:15] soLucien: so i don't understand how does it synthactically make sense
[00:14:24] Mon_Ouie: It's like passing a hash {run: "once", path: "???"} to the method (or passing named arguments)
[00:14:39] soLucien: now i get it
[00:15:41] soLucien: so it can be translated into dc1.vm.provision("shell", {run: "once", path: "shared/shell/PrepareWindows.ps1"})
[00:15:58] soLucien: a function with 2 arguments
[00:16:55] soLucien: sorry, let me rephrase
[00:17:16] soLucien: dc1.vm.provision("shell", {run => "once", path => "shared/shell/PrepareWindows.ps1"})
[00:17:23] Mon_Ouie: The translation is correct, but the method definition could look like def provision(thingy, opts = {}) or like def provision(thingy, run:, path:)
[00:17:23] soLucien: is that the case?
[00:17:31] Aviio_: has joined #ruby
[00:17:50] Mon_Ouie: That second translation is incorrect though, it would {:run => "once", :path => "shared/???"}
[00:18:18] jamw: has joined #ruby
[00:18:37] soLucien: so a:b is actually :symbol =>value
[00:19:10] duckpuppy: has joined #ruby
[00:19:18] Mon_Ouie: Yes, except you have to use either 'a: b' for all the entries or the hash or 'key => value', you can't mix both in the same hash
[00:19:30] soLucien: i get it, perfect
[00:19:32] atomical: has joined #ruby
[00:19:32] charliesome: has joined #ruby
[00:20:33] Ox0dec: >> {a: 1, :b => 2 } # Mon_Ouie: Huh?
[00:20:34] ruby[bot]: Ox0dec: # => {:a=>1, :b=>2} (https://eval.in/509606)
[00:20:50] Mon_Ouie: 19>> {a: 1, :b => 2}
[00:20:51] symm-: has joined #ruby
[00:20:52] ruby[bot]: Mon_Ouie: # => {:a=>1, :b=>2} (https://eval.in/509607)
[00:21:07] Mon_Ouie: Odd, for some reason I thought this wasn't the case
[00:21:10] matti: has joined #ruby
[00:21:10] matti: has joined #ruby
[00:21:22] CloCkWeRX: has joined #ruby
[00:21:51] jgt: has joined #ruby
[00:22:30] kies^: has joined #ruby
[00:22:44] Ox0dec: I can't see why such an arbitrary restriction would've been imposed.
[00:23:31] lemur: has joined #ruby
[00:24:17] william3: has joined #ruby
[00:24:35] soLucien: does a ! in a method name have any specific meaning or interpretation
[00:24:41] soLucien: it is it just fo shizzle
[00:24:55] soLucien: array.reverse!
[00:24:58] Canar: in-place vs. returned value
[00:25:07] Canar: array.reverse! reverses the content of array
[00:25:13] Canar: array.reverse returns a copy that is reversed
[00:25:27] soLucien: makes sense
[00:26:45] mikeiniowa: has joined #ruby
[00:28:21] mjuszczak: has joined #ruby
[00:28:33] DLSteve: has joined #ruby
[00:28:36] weemsledeux: has joined #ruby
[00:30:16] mikeiniowa: has joined #ruby
[00:30:50] Ox0dec: Heh. https://glot.io/snippets/ebeqz8lz0r
[00:31:13] Ox0dec: "Just look around till you find one, 'kay? Thanks, ObjectSpace."
[00:32:52] yoongkang: has joined #ruby
[00:33:51] emilford: has joined #ruby
[00:35:16] kent\n: has joined #ruby
[00:37:24] pawnbox: has joined #ruby
[00:42:53] emilford: has joined #ruby
[00:43:09] soLucien: ox0dec what does that do?
[00:43:14] dlitvak: has joined #ruby
[00:43:38] musicnode: has joined #ruby
[00:44:46] Ox0dec: soLucien: MRI sometimes hides things from us, but they're usually pretty close in memory to an object it doesn't hide.
[00:45:01] Ox0dec: That searches around in memory (in both directions "at the same time") to find the hidden things.
[00:45:48] atomical_: has joined #ruby
[00:46:14] soLucien: yes it looks like a hack
[00:46:15] bklane: has joined #ruby
[00:46:28] mfb2: has joined #ruby
[00:47:07] soLucien: i recognized the__id__ thing from python .. there it's some object-specific variable that the interpreter uses
[00:47:13] soLucien: __variables__
[00:47:24] Ox0dec: In this case it's just an alias for #object_id.
[00:47:25] rickmasta: has joined #ruby
[00:49:38] karapetyan: has joined #ruby
[00:50:13] bklane_: has joined #ruby
[00:51:51] jgpawletko: has joined #ruby
[00:53:19] emilford: has joined #ruby
[00:55:42] joonty: has joined #ruby
[00:56:12] ebbflowgo: has joined #ruby
[00:56:49] Coldblackice: has joined #ruby
[01:04:15] dlitvak: has joined #ruby
[01:08:09] mrsolow: has joined #ruby
[01:14:02] Limix: has joined #ruby
[01:16:09] sucks: has joined #ruby
[01:16:09] musicnode: has joined #ruby
[01:18:10] phantummm: has joined #ruby
[01:25:49] william3: has joined #ruby
[01:26:26] baweaver: has joined #ruby
[01:27:04] pawnbox: has joined #ruby
[01:27:09] dasboot: has joined #ruby
[01:29:05] ElFerna_: has joined #ruby
[01:29:12] bklane: has joined #ruby
[01:30:15] nickjj_: has joined #ruby
[01:30:58] dtordable: has joined #ruby
[01:36:31] blackmes1: has joined #ruby
[01:38:03] griffindy: has joined #ruby
[01:38:29] htmldrum: has joined #ruby
[01:40:29] stevemackinnon: has joined #ruby
[01:41:31] sankaber: has joined #ruby
[01:41:31] dasboot: has joined #ruby
[01:43:49] sankaber: has joined #ruby
[01:44:53] sdothum: has joined #ruby
[01:47:21] Darmani: has joined #ruby
[01:47:30] Darmani: Hey kids<3
[01:50:55] mjuszczak: has joined #ruby
[01:51:35] bonhoeffer_: has joined #ruby
[01:51:36] usershell: has joined #ruby
[01:53:47] mfb2: has joined #ruby
[01:55:10] bklane_: has joined #ruby
[01:56:36] joonty: has joined #ruby
[01:56:46] pawnbox: has joined #ruby
[01:57:35] william3: has joined #ruby
[02:01:24] dasboot: has joined #ruby
[02:01:27] tape88: has joined #ruby
[02:01:29] x77686d: has joined #ruby
[02:01:33] dlitvak: has joined #ruby
[02:03:39] usershell: has joined #ruby
[02:05:19] musicnode: has joined #ruby
[02:05:59] mfb2: has joined #ruby
[02:07:11] idefine: has joined #ruby
[02:07:30] idefine: has joined #ruby
[02:08:32] william3: has joined #ruby
[02:10:45] chipotle: has joined #ruby
[02:16:04] govg: has joined #ruby
[02:17:08] graffix222: has joined #ruby
[02:19:03] jamw: has joined #ruby
[02:19:55] duckpuppy: has joined #ruby
[02:20:50] ElFerna_: has joined #ruby
[02:22:45] mfb2: has joined #ruby
[02:22:53] Xeago: has joined #ruby
[02:23:42] dlitvak: has joined #ruby
[02:24:10] Limix: has joined #ruby
[02:24:15] gambl0re: has joined #ruby
[02:24:15] gambl0re: has joined #ruby
[02:24:21] lemur: has joined #ruby
[02:25:55] Maletor: has joined #ruby
[02:26:38] yoongkang: has joined #ruby
[02:26:41] pawnbox: has joined #ruby
[02:33:05] musicnode: has joined #ruby
[02:33:39] hlegius: has joined #ruby
[02:34:40] ledestin: has joined #ruby
[02:37:11] arlek: has joined #ruby
[02:37:24] aryaching: has joined #ruby
[02:38:52] william3: has joined #ruby
[02:39:36] bklane: has joined #ruby
[02:40:31] RobertBirnie: has joined #ruby
[02:41:03] ur5us: has joined #ruby
[02:41:25] pickandmix: has joined #ruby
[02:44:14] paradisaeidae: has joined #ruby
[02:49:52] govg: has joined #ruby
[02:51:32] JDiPierro: has joined #ruby
[02:51:46] dexter_: has joined #ruby
[02:52:52] okdas: has joined #ruby
[02:52:52] okdas: has joined #ruby
[02:54:08] Bloomer: has joined #ruby
[02:55:25] ur5us_: has joined #ruby
[02:57:09] joonty: has joined #ruby
[02:57:45] htmldrum: has joined #ruby
[02:57:54] william3: has joined #ruby
[03:05:15] A124: has joined #ruby
[03:05:18] User458764: has joined #ruby
[03:05:18] dopamean_: has joined #ruby
[03:06:02] pawnbox: has joined #ruby
[03:07:09] braian: has joined #ruby
[03:07:10] mg^2: has joined #ruby
[03:07:28] pdoherty: has joined #ruby
[03:08:42] mg^2: First time connecting to here with my custom HexChat featuring embedded MRuby
[03:09:32] duncannz: has joined #ruby
[03:11:25] ur5us: has joined #ruby
[03:11:40] dstarh: has joined #ruby
[03:12:26] tjbiddle: has joined #ruby
[03:12:35] altair118: has joined #ruby
[03:13:43] bonhoeffer: has left #ruby: ()
[03:23:52] freerobby: has joined #ruby
[03:25:28] jbrhbr: has joined #ruby
[03:25:36] iateadonut: has joined #ruby
[03:26:46] JDiPierro: has joined #ruby
[03:27:40] AtmosFear: has joined #ruby
[03:27:44] musicnode: has joined #ruby
[03:28:30] SenpaiSilver: has joined #ruby
[03:28:44] AtmosFear: hey can anyone tell me how to include a module from a gem? In the gem itself, it uses "require 'unit/response_stubs/capture_stubs'" and I want to require that same file in one of my tests
[03:30:06] nerium: has joined #ruby
[03:31:24] musicnode: has joined #ruby
[03:36:58] usershell: has joined #ruby
[03:38:26] karapetyan: has joined #ruby
[03:40:00] musicnode: has joined #ruby
[03:42:38] cpup: has joined #ruby
[03:43:19] baweaver: has joined #ruby
[03:43:46] p0wn3d: has joined #ruby
[03:43:51] RobertBirnie: has joined #ruby
[03:45:49] pawnbox: has joined #ruby
[03:46:27] howdoi: has joined #ruby
[03:50:56] El3ktra: has joined #ruby
[03:50:56] El3ktra: has joined #ruby
[03:51:23] kspencer: I want to test my script that has highline, but don't know how to go about it, because i don't think the actual test gem will work for it, or to set it up
[03:55:05] BlkDynmt: has joined #ruby
[03:56:15] charliesome: has joined #ruby
[03:57:57] joonty: has joined #ruby
[04:00:44] mistermocha: has joined #ruby
[04:07:01] cdg: has joined #ruby
[04:08:37] treaki_: has joined #ruby
[04:10:37] zast: has joined #ruby
[04:12:00] baweaver: has joined #ruby
[04:12:11] dlitvak: has joined #ruby
[04:12:31] treaki: has joined #ruby
[04:14:11] duncannz: has joined #ruby
[04:15:43] pawnbox: has joined #ruby
[04:16:41] braincrash: has joined #ruby
[04:17:27] jamw: has joined #ruby
[04:20:47] william3: has joined #ruby
[04:21:57] duckpuppy: has joined #ruby
[04:24:13] arup_r: has joined #ruby
[04:27:28] duncannz: has joined #ruby
[04:29:24] idefine: has joined #ruby
[04:29:25] zast: has left #ruby: ()
[04:33:32] ponga: has joined #ruby
[04:37:07] _seanc_: has joined #ruby
[04:38:35] xpt: has joined #ruby
[04:40:18] sankaber: has joined #ruby
[04:42:20] xpt: has joined #ruby
[04:44:11] DiggerNick_: has joined #ruby
[04:45:55] pawnbox: has joined #ruby
[04:46:26] sankaber: has joined #ruby
[04:49:03] Ebok: has joined #ruby
[04:50:29] gix: has joined #ruby
[04:53:21] RegulationD: has joined #ruby
[04:56:10] devbug_: has joined #ruby
[04:56:41] devbug__: has joined #ruby
[04:58:42] joonty: has joined #ruby
[05:01:17] syk: has joined #ruby
[05:08:21] c0ncealed: has joined #ruby
[05:08:25] grill: has joined #ruby
[05:13:28] mrsolow: has joined #ruby
[05:14:07] dlitvak: has joined #ruby
[05:15:26] kalopsian: has joined #ruby
[05:18:41] mrsolow: has joined #ruby
[05:18:44] mistermocha: has joined #ruby
[05:18:57] stevemackinnon: has joined #ruby
[05:19:28] BlkDynmt: has joined #ruby
[05:21:44] zambini: has joined #ruby
[05:22:17] william3: has joined #ruby
[05:24:59] bklane: has joined #ruby
[05:26:37] exolu: has joined #ruby
[05:27:23] duckpuppy: has joined #ruby
[05:28:20] lyoshajapan: has joined #ruby
[05:29:04] duncannz: has joined #ruby
[05:32:57] exolu: has left #ruby: ("Leaving")
[05:34:03] griffindy: has joined #ruby
[05:42:51] duncannz: has joined #ruby
[05:43:22] Aviio: has joined #ruby
[05:43:38] waheedi: has joined #ruby
[05:44:50] sigurding: has joined #ruby
[05:45:41] Aviio_: has joined #ruby
[05:45:56] skcin7: has joined #ruby
[05:47:10] kspencer: I also noticed that the default in highline is not output at the end when there is a validation or that it is in a range or an integer, one of them
[05:53:37] krz: has joined #ruby
[05:53:48] ecksit: has joined #ruby
[05:54:26] ecksit: has joined #ruby
[05:54:41] skade: has joined #ruby
[05:55:04] ecksit: has joined #ruby
[05:55:05] longlene: has joined #ruby
[05:56:31] ecksit: has joined #ruby
[05:59:28] joonty: has joined #ruby
[05:59:30] pawnbox: has joined #ruby
[06:00:16] mfb2: has joined #ruby
[06:04:10] dlitvak: has joined #ruby
[06:05:03] nodejunkie: has joined #ruby
[06:06:43] astrobun_: has joined #ruby
[06:07:15] _djbkd: has joined #ruby
[06:09:53] lemur: has joined #ruby
[06:10:52] baweaver_: has joined #ruby
[06:11:36] barhum2013: has joined #ruby
[06:14:51] musicnode: has joined #ruby
[06:14:56] yoongkang: has joined #ruby
[06:15:43] anisha_: has joined #ruby
[06:19:47] mfb2: has joined #ruby
[06:20:19] lyoshajapan: has joined #ruby
[06:20:34] dionysus69: has joined #ruby
[06:21:08] arescorpio: has joined #ruby
[06:23:50] william3: has joined #ruby
[06:28:29] jbrhbr: has joined #ruby
[06:30:54] tjbiddle: has joined #ruby
[06:30:56] lyoshajapan: has joined #ruby
[06:32:07] darkf: has joined #ruby
[06:33:04] duncannz: has joined #ruby
[06:34:16] aganov: has joined #ruby
[06:38:24] lyoshajapan: has joined #ruby
[06:41:06] jbrhbr1: has joined #ruby
[06:41:12] william3: has joined #ruby
[06:43:17] piotrj: has joined #ruby
[06:44:55] duncannz: has joined #ruby
[06:45:45] duncannz: has joined #ruby
[06:46:26] duncannz: has joined #ruby
[06:47:02] sandstrom: has joined #ruby
[06:52:38] Aviio: has joined #ruby
[06:52:53] william3: has joined #ruby
[06:53:53] Aviio_: has joined #ruby
[06:55:12] cdg: has joined #ruby
[06:55:17] duckpuppy: has joined #ruby
[06:59:32] govg: has joined #ruby
[06:59:36] Dimik: has joined #ruby
[07:00:01] duncannz: has joined #ruby
[07:00:12] joonty: has joined #ruby
[07:00:54] bklane_: has joined #ruby
[07:00:57] duncannz: has joined #ruby
[07:01:54] lyoshajapan: has joined #ruby
[07:02:02] aufi: has joined #ruby
[07:03:41] kalopsian: has joined #ruby
[07:04:52] zapata: has joined #ruby
[07:05:37] bklane: has joined #ruby
[07:05:57] visudo: has joined #ruby
[07:06:31] altair118: has joined #ruby
[07:06:31] mfb2: has joined #ruby
[07:07:22] ereslibre: has joined #ruby
[07:08:25] skade: has joined #ruby
[07:08:36] sigurding: has joined #ruby
[07:08:44] ur5us: has joined #ruby
[07:08:48] duncannz: has joined #ruby
[07:09:39] rkazak: has joined #ruby
[07:10:48] ohaibbq: has joined #ruby
[07:15:42] yoongkang: has joined #ruby
[07:15:55] duckpuppy: has joined #ruby
[07:17:44] piotrj: has joined #ruby
[07:20:30] cactuzzz: has joined #ruby
[07:23:47] andikr: has joined #ruby
[07:23:56] krz: has joined #ruby
[07:25:00] troulouliou_div2: has joined #ruby
[07:27:03] charliesome: has joined #ruby
[07:28:52] altair118: has joined #ruby
[07:30:06] JohnBat26: has joined #ruby
[07:31:21] bigkevmcd: has joined #ruby
[07:31:30] RegulationD: has joined #ruby
[07:32:46] solars: has joined #ruby
[07:34:01] darkf_: has joined #ruby
[07:35:10] akem: has joined #ruby
[07:37:25] s00pcan: has joined #ruby
[07:38:35] akem: has joined #ruby
[07:39:17] devbug: has joined #ruby
[07:40:36] codecop: has joined #ruby
[07:40:52] symm-: has joined #ruby
[07:42:43] firstdayonthejob: has joined #ruby
[07:45:17] darkf: has joined #ruby
[07:46:22] william3: has joined #ruby
[07:46:43] lyoshajapan: has joined #ruby
[07:47:59] TechNick99: has joined #ruby
[07:49:37] vondruch: has joined #ruby
[07:54:42] scepticulous: has joined #ruby
[07:55:37] usershell: has joined #ruby
[07:56:04] sandstrom: has joined #ruby
[08:00:50] cdg: has joined #ruby
[08:00:51] duncannz: has joined #ruby
[08:01:26] darkf: has joined #ruby
[08:03:52] charliesome: has joined #ruby
[08:03:58] arup_r: has joined #ruby
[08:07:09] william3: has joined #ruby
[08:07:36] burgestrand: has joined #ruby
[08:08:35] devbug: has joined #ruby
[08:08:54] srenatus: has joined #ruby
[08:09:02] Brklyn: has joined #ruby
[08:13:25] TomyWork: has joined #ruby
[08:14:25] futilegames: has joined #ruby
[08:14:41] blur3d: has joined #ruby
[08:15:57] darkf_: has joined #ruby
[08:18:27] yoongkang: has joined #ruby
[08:18:41] terminalrecluse: has joined #ruby
[08:20:41] govg: has joined #ruby
[08:21:33] agent_white: has joined #ruby
[08:22:43] PedramT_: has joined #ruby
[08:25:13] devbug_: has joined #ruby
[08:26:50] Xeago: has joined #ruby
[08:27:33] Napear: has joined #ruby
[08:28:59] MrSamuel: has joined #ruby
[08:29:27] Brklyn: has joined #ruby
[08:29:37] CloCkWeRX: has joined #ruby
[08:29:41] mdw: has joined #ruby
[08:32:09] RegulationD: has joined #ruby
[08:33:11] Jokoast: has joined #ruby
[08:34:09] Jokoast: Is someone here and able to help me finding a gem ?
[08:35:20] PedramT: has joined #ruby
[08:37:43] manveru: Jokoast: hi, did you try ruby-toolbox.com ?
[08:39:04] atmosx: or gem search <gem>
[08:39:17] atmosx: or https://rubygems.org/
[08:39:32] manveru: meh, those are too easy :)
[08:39:42] gbgdev: has joined #ruby
[08:39:43] howdoicomputer: has joined #ruby
[08:40:12] chussenot: has joined #ruby
[08:42:22] Jokoast: Hi again guys. I'm using rmagick (what a pain to install it)
[08:42:43] User458764: has joined #ruby
[08:43:13] Jokoast: But i need to turn a picture into 2 colors (B&W) and force the edges to appear to convert it in a grid (to make a little game for a student project)
[08:43:16] andchar: has joined #ruby
[08:43:56] Jokoast: And funny btw
[08:44:58] rdark: has joined #ruby
[08:45:01] bodi: has joined #ruby
[08:45:24] longlene: has left #ruby: ()
[08:49:40] muvbit: has joined #ruby
[08:49:57] SCHAAP137: has joined #ruby
[08:50:09] karapetyan: has joined #ruby
[08:50:47] charliesome: has joined #ruby
[08:51:53] kalopsian: has joined #ruby
[08:54:10] sigurding: has joined #ruby
[08:54:58] gbgdev: has joined #ruby
[08:54:59] devbug: has joined #ruby
[08:55:23] mrd_: has joined #ruby
[08:58:33] krz: has joined #ruby
[08:59:28] manveru: Jokoast: good luck :)
[08:59:30] hayden_: has joined #ruby
[08:59:49] manveru: RMagick may be a PITA to install, but they do have pretty good docs at least
[09:00:43] usershell: has joined #ruby
[09:02:02] Jokoast: @manveru : Thx dude
[09:02:05] charliesome: has joined #ruby
[09:02:14] Jokoast: @manveru : i'll give it a new try so ...
[09:02:27] manveru: https://rmagick.github.io/image3.html#threshold
[09:02:35] manveru: maybe something like this?
[09:03:22] manveru: or https://rmagick.github.io/image2.html#edge
[09:04:16] mdw: has joined #ruby
[09:04:17] manveru: can't really help you much more, sorry
[09:06:18] Ishido: has joined #ruby
[09:08:14] Pumukel: has joined #ruby
[09:08:44] User458764: has joined #ruby
[09:12:28] Oog: has joined #ruby
[09:12:35] sftrabbit: has joined #ruby
[09:12:45] lxsameer: has joined #ruby
[09:12:55] kerunaru: has joined #ruby
[09:13:58] nerium: has joined #ruby
[09:14:35] mark2: has joined #ruby
[09:15:51] Jokoast: Ty for helping manveru
[09:17:35] einarj: has joined #ruby
[09:21:20] PedramT: has joined #ruby
[09:21:38] Xeago: has joined #ruby
[09:21:39] marr: has joined #ruby
[09:21:53] rodfersou: has joined #ruby
[09:22:01] drptbl: has joined #ruby
[09:22:50] william3: has joined #ruby
[09:23:13] snowy: has joined #ruby
[09:23:56] Pumukel: has joined #ruby
[09:24:51] chussenot: has joined #ruby
[09:25:51] barhum2013: has joined #ruby
[09:26:40] william3: has joined #ruby
[09:27:05] barhum2013: has joined #ruby
[09:27:08] bob_f: Is there a neat idiom for returning `nil` if a value is `nil`, or `val.to_i` otherwise ?
[09:27:31] bob_f: `val.nil? ? nil : val.to_i` is fine, just seems like Ruby usually has some trick for this kind of thing.
[09:28:26] robbyoconnor: has joined #ruby
[09:28:39] huyderman: has joined #ruby
[09:30:01] piotrj_: has joined #ruby
[09:30:12] dlitvak: has joined #ruby
[09:31:00] charliesome: has joined #ruby
[09:32:01] heftig: bob_f: val?.to_i if you use 2.3
[09:32:12] ruby[bot]: heftig: # => nil (https://eval.in/509675)
[09:32:21] heftig: >> val = 3; val?.to_i
[09:32:22] ruby[bot]: heftig: # => undefined method `val?' for main:Object (NoMethodError) ...check link for more (https://eval.in/509676)
[09:32:33] karapetyan: has joined #ruby
[09:32:46] heftig: er, it was &.
[09:32:49] heftig: >> val = 3; val&.to_i
[09:32:50] Terens: has joined #ruby
[09:32:51] RegulationD: has joined #ruby
[09:32:51] ruby[bot]: heftig: # => 3 (https://eval.in/509677)
[09:32:54] heftig: >> val = nil; val&.to_i
[09:32:56] PedramT: has joined #ruby
[09:33:25] Ox0dea: has joined #ruby
[09:33:40] heftig: >> val = nil; val&.to_i
[09:33:41] ruby[bot]: heftig: # => nil (https://eval.in/509678)
[09:33:47] Ox0dea: heftig: It was never `?.`, but it did used to be `.?`.
[09:33:55] bob_f: heftig: Unfortunately we don't use 2.3 yet.
[09:34:06] bob_f: But I remember that syntax looking appealing. :)
[09:34:27] bob_f: We're bumping to 2.3.0 soon, we just decided to leave it in the wild for a month first.
[09:35:26] charliesome: has joined #ruby
[09:35:29] Ox0dea: bob_f: The only other potential nicety in that case would be #try, but that has different semantics.
[09:37:40] Ox0dea: https://bugs.ruby-lang.org/issues/11939 hasn't caught on, but I think it'd be nice.
[09:39:02] duckpuppy: has joined #ruby
[09:39:28] Ox0dea: Then you'd be able to say something scary like `foo ||= .to_i`.
[09:39:43] Ox0dea: Er, *&&=.
[09:40:38] william3: has joined #ruby
[09:41:17] heftig: brian of rubinius slams the new operator, though: http://rubinius.com/2016/01/11/nil-is-not-null-and-other-tales/
[09:41:33] heftig: seems he's being rather confrontational lately
[09:41:57] yfeldblum: has joined #ruby
[09:42:07] dlitvak_: has joined #ruby
[09:45:12] User458764: has joined #ruby
[09:45:32] william3: has joined #ruby
[09:46:44] shredding: has joined #ruby
[09:48:08] Ox0dea: Not exactly a recent development, frankly. :<
[09:51:35] syk: has joined #ruby
[09:51:47] nettoweb: has joined #ruby
[09:52:05] bruce__lee: has joined #ruby
[09:53:38] piotrj: has joined #ruby
[09:56:17] lee-jon: has joined #ruby
[09:56:27] piotrj_: has joined #ruby
[09:57:05] kerunaru: has joined #ruby
[10:00:34] Xeago: has joined #ruby
[10:00:37] shevy: I haven't even adjusted to -> yet, &. is even farther away from my learning speed!
[10:00:54] apeiros: and then utf-8, teh horror. how will you ever.
[10:01:08] tomphp: has joined #ruby
[10:01:18] colli5ion: has joined #ruby
[10:01:23] shevy: hah I can avoid utf!
[10:01:46] shevy: though my yaml files are all invalid :(
[10:02:19] Aviio: has joined #ruby
[10:02:51] fbandov: has joined #ruby
[10:03:09] william3: has joined #ruby
[10:03:18] PedramT: has joined #ruby
[10:04:23] shevy: I am not sure I understand the criticism there ... &. is different to .dig isn't it?
[10:04:26] usershell: has joined #ruby
[10:05:08] Ox0dea: The semantics are quite similar.
[10:05:28] sigurding: has joined #ruby
[10:05:42] Ox0dea: thing.dig(foo, bar) == thing&.[](foo)&.[](bar)
[10:05:56] dwfait: has joined #ruby
[10:06:17] sepp2k: has joined #ruby
[10:07:00] Ox0dea: >> :foo.to_proc.binding
[10:07:01] ruby[bot]: Ox0dea: # => /tmp/execpad-1be44dfc6003/source-1be44dfc6003:2: [BUG] Segmentation fault at 0xb01116 ...check link for more (https://eval.in/509692)
[10:07:06] Ox0dea: What should that even do?
[10:07:18] evidex: has joined #ruby
[10:08:47] blackmes1: has joined #ruby
[10:08:51] dlitvak: has joined #ruby
[10:09:10] arlek: has joined #ruby
[10:11:15] lyoshajapan: has joined #ruby
[10:12:00] sftrabbit: has joined #ruby
[10:12:33] Ox0dea: I reckon it should either return nil or TOPLEVEL_BINDING, but it's hard to say which.
[10:12:46] aufi_: has joined #ruby
[10:16:03] manveru: yeah... i might have to start using rubinius if they actually implement traceable nil
[10:16:48] manveru: fully agree with brixen on this issue
[10:17:23] manveru: wasn't even aware of the plan to add &. until 2.3 was released :|
[10:18:47] FernandoBasso: has joined #ruby
[10:19:32] apeiros: manveru: hm? traceable nil as in where nil originated?
[10:19:54] manveru: did you read his blog post?
[10:21:07] Ox0dea: Rubinius in dev, CRuby in prod; what could go wrong?
[10:22:05] sonOfRa: has joined #ruby
[10:23:41] SOLDIERz: has joined #ruby
[10:24:23] drptbl: has joined #ruby
[10:24:55] william3: has joined #ruby
[10:25:17] ElFerna_: has joined #ruby
[10:27:38] PedramT: has joined #ruby
[10:27:49] drptbl: has joined #ruby
[10:27:50] baweaver: has joined #ruby
[10:29:45] shevy: I am all for more tracing and introspection!
[10:30:01] william3: has joined #ruby
[10:31:20] Sembei: has joined #ruby
[10:32:07] drptbl: has joined #ruby
[10:32:12] burgestrand: has joined #ruby
[10:33:01] sigurding: has joined #ruby
[10:33:39] RegulationD: has joined #ruby
[10:33:50] arup_r: has joined #ruby
[10:34:28] Liam`: has joined #ruby
[10:35:56] william3: has joined #ruby
[10:37:32] sonOfRa: has joined #ruby
[10:38:06] shevy: "Values like 1, 0xcafe, true, false, and nil are immediate values"
[10:38:14] shevy: hey Ox0dea ... for a moment I thought your nick was mentioned there...
[10:38:38] shevy: the scary Oxcafe
[10:38:45] Ox0dea: >> 0xdeadbeefcafebabe
[10:38:47] ruby[bot]: Ox0dea: # => 16045690984503098046 (https://eval.in/509701)
[10:40:05] kalopsian: has joined #ruby
[10:40:52] Ox0dea: >> 0xABear.!
[10:40:53] ruby[bot]: Ox0dea: # => false (https://eval.in/509702)
[10:41:33] Ox0dea: This is kinda weird: https://git.io/vzbKi
[10:42:11] Ox0dea: They wrote that massive time_mdump() function and then don't even expose it.
[10:42:20] gregf_: >>class String; def == other; true;end;end; "Ox0dea" == "Oxcafe"
[10:42:22] ruby[bot]: gregf_: # => true (https://eval.in/509703)
[10:42:37] Ox0dea: gregf_: What's all this, then?
[10:43:46] kent\n: ACTION wonders what happens if he executes "# Ox0dea |= 0xFFFFFF"
[10:44:04] shevy: scary code in Ruby-C shall be hidden from you!
[10:44:15] william3: has joined #ruby
[10:44:35] Ox0dea: kent\n: Why so many nybbles?
[10:45:27] PedramT: has joined #ruby
[10:45:40] william3: has joined #ruby
[10:45:48] kent\n: Because if I used a full byte, then a hook would be triggered and the whole line of code would be pulled in.
[10:45:54] Ox0dea: I've only got the three; the padding is for ease of pronunciation.
[10:45:57] kent\n: ACTION toys with fishing metaphors
[10:47:50] BaroMeter: has joined #ruby
[10:48:13] Brklyn: has joined #ruby
[10:48:19] kent\n: I guess the question was more if your specific sandbox you have for your nickname permits invasive ops that would set your nickname to MAX_NICK, or if only post-increment/decrement are permitted ;)
[10:49:55] kent\n: people have been similarly tempted to chomp my nickname, only to discover its been defined as an immutable constant.
[10:50:06] gbgdev: has joined #ruby
[10:50:37] Mon_Ouie: Ox0dea: Except time_dump, which is exposed, uses time_mdump
[10:50:41] Ox0dea: kent\n: It's frozen, you say? :P
[10:50:52] Ox0dea: Mon_Ouie: Oh, fair enough.
[10:51:10] Ox0dea: 18>> 2 * ?\r * (RUBY_COPYRIGHT.size * 3 - ?\n) == 0x0dea
[10:51:12] ruby[bot]: Ox0dea: # => true (https://eval.in/509708)
[10:51:21] stevemackinnon: has joined #ruby
[10:51:38] Ox0dea: No one knows what it means, but it's provocative.
[10:52:10] PedramT: has joined #ruby
[10:53:42] yoongkang: has joined #ruby
[10:53:42] karapetyan: has joined #ruby
[10:54:05] Ox0dea: kent\n: Gotcha! https://eval.in/509709
[10:54:09] kent\n: Ox0dea: indeed. But its more pervasive than that, because were you to even find a way around freeze with some C level magic, you'd only be modifying a single value, because the value is constant folded by the time you observe it =)
[10:54:49] Ox0dea: Nice timing. :P
[10:55:00] namxam: has joined #ruby
[10:55:10] kent\n: ACTION had to check what freeze meant first because I had forgotten ;) 
[10:55:21] piotrj: has joined #ruby
[10:55:46] TomyLobo2: has joined #ruby
[10:56:22] fbandov: has joined #ruby
[10:57:37] william3: has joined #ruby
[10:59:58] ldnunes: has joined #ruby
[11:01:22] c0m0: has joined #ruby
[11:02:09] william3_: has joined #ruby
[11:02:09] lee-jon: has joined #ruby
[11:05:49] PedramT: has joined #ruby
[11:07:21] william3: has joined #ruby
[11:09:40] goodroot: has joined #ruby
[11:09:52] namxam: has joined #ruby
[11:11:28] william3: has joined #ruby
[11:14:04] User458764: has joined #ruby
[11:16:52] sts: hello folks. I would like to ship a internal ruby library via a debian package. I usually use bundler to manage dependencies; is there a way to tell bundler to install gems in a way so I can simply put the files in /usr/lib/ruby/vendor_ruby?
[11:22:48] nerium: has joined #ruby
[11:23:43] treaki__: has joined #ruby
[11:25:01] DoubleMalt: has joined #ruby
[11:25:36] arup_r1: has joined #ruby
[11:25:41] treaki: has joined #ruby
[11:26:19] shevy: hmm ... what was the name of the thing that shows you how much time is spent in each individual method of a given class?
[11:27:03] arup_r1: has joined #ruby
[11:27:05] Ox0dea: A profiler?
[11:27:07] william3: has joined #ruby
[11:27:09] wanderer: has joined #ruby
[11:27:28] Ox0dea: Probably you've got ruby-prof in mind.
[11:29:37] allen: has joined #ruby
[11:30:16] Guest13183: has joined #ruby
[11:32:02] Xeago: has joined #ruby
[11:32:05] futilegames: has joined #ruby
[11:34:03] burgestrand: has joined #ruby
[11:34:26] RegulationD: has joined #ruby
[11:34:30] cdg: has joined #ruby
[11:34:46] headius: manveru: I hope you don't agree with the method_missing thing, because that would be terrible
[11:35:00] headius: tracing nils is clever but I think there's some confusion about what &. is for
[11:38:26] william3: has joined #ruby
[11:39:15] drptbl: has joined #ruby
[11:39:42] Ox0dea: It's fine to want to use some nested data iff it's there; explicitly handling the intermediates in such cases is just noise.
[11:39:45] duckpuppy: has joined #ruby
[11:40:33] mauricio: has joined #ruby
[11:40:40] lee-jon: has joined #ruby
[11:41:33] headius: Ox0dea: precisely
[11:41:36] drptbl: has joined #ruby
[11:42:07] colli5ion: has joined #ruby
[11:42:21] headius: the use case described in that nil article is way off the mark...people aren't going to start blindly using it to mask away nils
[11:42:24] Brklyn: has joined #ruby
[11:42:46] headius: and nil protecting a + b + c is just silly
[11:42:52] colli5ion: has joined #ruby
[11:42:56] namxam: has joined #ruby
[11:43:11] headius: I can't think of a situation where you'd want that to silently succeed and return nil
[11:44:30] william3: has joined #ruby
[11:44:34] blackmes1: has joined #ruby
[11:44:48] tvw: has joined #ruby
[11:46:24] Shaboum: has joined #ruby
[11:46:31] piotrj: has joined #ruby
[11:47:58] william3: has joined #ruby
[11:49:53] Ox0dea: In brixen's defense, straw men do have a pleasant sort of airiness to them.
[11:53:35] william3: has joined #ruby
[11:53:37] emilford: has joined #ruby
[11:54:52] colli5ion: has joined #ruby
[11:55:14] ElFerna_: has joined #ruby
[11:58:21] andchar: has joined #ruby
[12:01:04] joonty: has joined #ruby
[12:01:48] jgt: has joined #ruby
[12:02:03] piotrj: has joined #ruby
[12:02:11] syk: has joined #ruby
[12:02:29] william3: has joined #ruby
[12:03:32] emilford: has joined #ruby
[12:07:15] lee-jon: has joined #ruby
[12:07:54] william3: has joined #ruby
[12:08:33] pdoherty: has joined #ruby
[12:11:07] chussenot: has joined #ruby
[12:12:27] UtkarshRay: has joined #ruby
[12:12:35] dwfait: has joined #ruby
[12:14:10] emilford: has joined #ruby
[12:14:25] PedramT: has joined #ruby
[12:17:44] FooMunki: has joined #ruby
[12:21:33] rnfkll: has joined #ruby
[12:22:17] CloCkWeRX: has joined #ruby
[12:23:35] dome22xl: has joined #ruby
[12:24:50] ton31337: has joined #ruby
[12:25:04] ton31337: anyone is using mysql2 gem? does it work with ipv6?
[12:25:14] ton31337: i'm getting
[12:25:14] ton31337: Unknown MySQL server host '[2001:dead::1]' (2)
[12:25:27] ton31337: but from host i can access this server
[12:26:07] william3: has joined #ruby
[12:26:31] emilford: has joined #ruby
[12:26:33] dlitvak_: has joined #ruby
[12:28:14] kalopsian: has joined #ruby
[12:29:43] lee-jon: has joined #ruby
[12:31:10] ddv: ton31337: no one uses that gem, sorry
[12:31:39] dlitvak: has joined #ruby
[12:32:48] bigkevmcd: has joined #ruby
[12:33:53] FooMunki: has joined #ruby
[12:34:06] p0wn3d: has joined #ruby
[12:35:20] RegulationD: has joined #ruby
[12:36:17] william3: has joined #ruby
[12:36:32] Brklyn: has joined #ruby
[12:37:34] dlitvak_: has joined #ruby
[12:38:05] atomical: has joined #ruby
[12:43:31] Bloomer: has joined #ruby
[12:44:44] skade: has joined #ruby
[12:44:51] evidex: has joined #ruby
[12:45:22] blackmes1: has joined #ruby
[12:45:40] lucasb: has joined #ruby
[12:46:06] colli5ion: has joined #ruby
[12:47:52] c355E3B: has joined #ruby
[12:48:07] ton31337: has left #ruby: ()
[12:48:23] fbandov: has joined #ruby
[12:51:02] duckpuppy: has joined #ruby
[12:53:00] lyoshajapan: has joined #ruby
[12:54:35] aupadhye: has joined #ruby
[12:55:15] Xeago: has joined #ruby
[12:55:55] atomical_: has joined #ruby
[12:56:10] namxam: has joined #ruby
[12:56:52] sdothum: has joined #ruby
[12:59:16] emilford: has joined #ruby
[12:59:36] PedramT: has joined #ruby
[13:00:14] akem: has joined #ruby
[13:04:59] synthroid: has joined #ruby
[13:05:15] chussenot: has joined #ruby
[13:05:42] manveru: headius: people are going to abuse the hell out of &. unfortunately :(
[13:05:57] barhum2013: has joined #ruby
[13:06:08] astrofog: has joined #ruby
[13:10:18] JohnBat26|2: has joined #ruby
[13:11:51] jhass: unsurprisingly
[13:13:53] atomical_: abuse what?
[13:15:06] symbole: has joined #ruby
[13:15:10] shevy: people are tinkers!
[13:15:16] newdan: has joined #ruby
[13:16:05] Ox0dea: tinker (n.): One who tinks.
[13:17:09] JohnBat26: has joined #ruby
[13:17:36] JohnBat26|2: has joined #ruby
[13:17:38] huyderman: has joined #ruby
[13:17:48] sandstrom: has joined #ruby
[13:18:32] aupadhye: has joined #ruby
[13:21:04] catbusters: has joined #ruby
[13:22:29] ddv: almost weekend <3
[13:23:20] Hanmac: i won against "stack level too deep" ... that was the highlight of my day ;P
[13:24:28] william3: has joined #ruby
[13:25:18] drptbl: has joined #ruby
[13:26:29] dlitvak: has joined #ruby
[13:27:45] graffix222: has joined #ruby
[13:27:51] akaiiro: has joined #ruby
[13:28:10] shevy: never let a stack get into your way
[13:29:56] stannard: has joined #ruby
[13:30:39] rippa: has joined #ruby
[13:31:23] sluukkonen: smash all the stacks!
[13:32:30] Hanmac: shevy: my problem was: Actor has Traits, Traits can have Requirement, available Traits does add Skills into Actor. Requiremenr can check if Actor does have Skill ... so it did loop between Actor#skills and Actor#traits ... but i did broke the cycle! XD
[13:32:42] shevy: circular requires!
[13:33:32] shevy: caused me headache for .rb files... I ended up trying to put the code that is required in some .rb files but not in others, into standalone .rb files and just load these in the other .rb files when they are needed... bit tedious but the errors would then go away
[13:35:00] brendan-: has joined #ruby
[13:36:42] Asher1: has joined #ruby
[13:38:34] joonty: has joined #ruby
[13:38:49] william3: has joined #ruby
[13:40:14] Macaveli: has joined #ruby
[13:42:08] zzz: has joined #ruby
[13:46:20] Asher: has joined #ruby
[13:49:02] kalopsian: has joined #ruby
[13:49:33] k13nox: has joined #ruby
[13:49:35] mary5030: has joined #ruby
[13:52:29] workmad3: has joined #ruby
[13:53:13] william3: has joined #ruby
[13:53:18] namxam: has joined #ruby
[13:53:20] JDiPierro: has joined #ruby
[13:53:32] DanielI: has joined #ruby
[13:55:03] gizmore: has joined #ruby
[13:55:22] hxegon: has joined #ruby
[13:55:24] DanielI: has joined #ruby
[13:56:34] DanielI: has joined #ruby
[13:57:56] ramortegui: has joined #ruby
[13:57:58] Azulinho: has joined #ruby
[14:00:08] william3: has joined #ruby
[14:00:24] sandstrom: has joined #ruby
[14:02:21] duckpuppy: has joined #ruby
[14:02:52] jottr: has joined #ruby
[14:03:41] jottr: Hi all. Is there a convention to where one should store maintenance bash scripts inside a rails project?
[14:03:51] gnudon: has joined #ruby
[14:04:41] manveru: jottr: i think under scripts/ ?
[14:05:53] jhass: I guess most people write rake tasks instead
[14:06:18] manveru: well, that too
[14:06:28] manveru: but bash is really handy sometimes :)
[14:06:56] Asher: has joined #ruby
[14:08:07] VeryBewitching: has joined #ruby
[14:08:30] VeryBewitching: Good morning #ruby
[14:08:33] snowy: has joined #ruby
[14:08:46] jottr: Hm. Is it script/ or scripts/ ? I recall that script/ directory used to be the location of the rails binary before it was moved to bin/ ?
[14:09:55] shevy: Good morning BeryVewitching
[14:10:00] manveru: rails love to pluralize stuff, so it must be scripts
[14:10:07] Ox0dea: Morning, VeryBewitching.
[14:10:29] VeryBewitching: What's shakin' folks?
[14:11:23] jottr: Hm. I'm thinking lib/scripts would be even better...
[14:13:08] Hanmac: jottr: why bash scripts and not ruby? ;P
[14:13:42] jottr: hanmac: because the script is installing things a local ruby misses in our case.
[14:14:11] sftrabbit: has joined #ruby
[14:14:45] emilford: has joined #ruby
[14:15:48] PedramT: has joined #ruby
[14:16:16] sgambino: has joined #ruby
[14:17:11] JDiPierro: has joined #ruby
[14:17:13] jhass: why would the script have to depend on the things it's installing if ruby is available though?
[14:17:29] jhass: and that sounds much more like "provision" instead of "maintenance"
[14:17:31] BSaboia: has joined #ruby
[14:20:04] yoongkang: has joined #ruby
[14:20:18] malconis: has joined #ruby
[14:21:36] krobzaur_: has joined #ruby
[14:22:09] dlitvak: has joined #ruby
[14:22:13] sandstrom: has joined #ruby
[14:22:31] malconis: has joined #ruby
[14:22:31] shevy: jottr I guess there is no generic generally agreed-upon name at the least for pure ruby .gems, you could perhaps have a look at how chruby/rbenv/rvm and where they put any shell stuff
[14:22:44] ElFerna_: has joined #ruby
[14:22:51] ASTP001: has left #ruby: ("bye bye~")
[14:23:46] sftrabbit: has joined #ruby
[14:24:12] manveru: shevy: you still trying to build an all-ruby OS?
[14:24:46] cdg: has joined #ruby
[14:25:26] joneshf-laptop: has joined #ruby
[14:26:19] Jardayn: has joined #ruby
[14:26:42] ESpiney: has joined #ruby
[14:27:02] karapetyan: has joined #ruby
[14:28:10] dwfait: has joined #ruby
[14:28:37] william3: has joined #ruby
[14:29:19] Ebok: has joined #ruby
[14:31:15] arup_r: has joined #ruby
[14:33:15] evidex: has joined #ruby
[14:33:50] idefine: has joined #ruby
[14:33:57] william3: has joined #ruby
[14:35:04] hlegius: has joined #ruby
[14:35:33] weemsledeux: has joined #ruby
[14:36:28] RegulationD: has joined #ruby
[14:41:34] BrunoSaboia: has joined #ruby
[14:42:44] Ishido: has joined #ruby
[14:42:47] shevy: manveru hmm if I would have more time I would! but I realized that I don't have enough time left available :(
[14:43:07] manveru: life too short?
[14:43:11] manveru: or OS too slow?
[14:43:18] shevy: life is way too short
[14:43:49] emilford: has joined #ruby
[14:45:26] grill: has joined #ruby
[14:45:27] decoponio: has joined #ruby
[14:46:25] harly__: has joined #ruby
[14:47:13] BSab: has joined #ruby
[14:47:29] gruz0: has joined #ruby
[14:49:09] william3: has joined #ruby
[14:51:26] babblebre: has joined #ruby
[14:51:48] BSaboia: has joined #ruby
[14:52:11] Xeago: has joined #ruby
[14:53:19] sandstrom: has joined #ruby
[14:53:45] tiagobarreto: has joined #ruby
[14:53:52] Ox0dea: lucasb: https://github.com/0x0dea/lens_of_truth#use-cases
[14:55:03] Xeago: has joined #ruby
[14:55:21] hlegius: has joined #ruby
[14:58:35] griffindy: has joined #ruby
[14:59:05] zerowaitstate: has joined #ruby
[14:59:08] ddv: you need to shave that neckbeard Ox0dea
[14:59:17] Ox0dea: http://i.imgur.com/Ufbr5ej.gif
[14:59:29] idefine: has joined #ruby
[14:59:42] william3: has joined #ruby
[14:59:52] sandstrom: has joined #ruby
[14:59:56] UtkarshRay: has joined #ruby
[15:00:12] sucks: has joined #ruby
[15:01:02] Canar: >current year
[15:01:07] Canar: >not embracing the neckbeard
[15:02:04] burgestrand: has joined #ruby
[15:03:04] SenpaiSilver: has joined #ruby
[15:03:34] sftrabbit: has joined #ruby
[15:03:49] atomical: has joined #ruby
[15:04:49] Brklyn: has joined #ruby
[15:05:12] sftrabbit: has joined #ruby
[15:06:07] Xeago: has joined #ruby
[15:07:10] dhollinger: has joined #ruby
[15:07:28] uris: has joined #ruby
[15:08:37] mary5030: has joined #ruby
[15:10:11] nettoweb: has joined #ruby
[15:10:28] davedev24: has joined #ruby
[15:10:40] weemsledeux: has joined #ruby
[15:11:23] skade: has joined #ruby
[15:12:14] davedev24: has joined #ruby
[15:13:46] kaleido: has joined #ruby
[15:14:00] dlitvak: has joined #ruby
[15:14:27] kaleido: if i needed to authenticate a website's login against a tacacs server, what would be te best gem? or something built in?
[15:14:48] hlegius: has joined #ruby
[15:15:07] f4cl3y: has joined #ruby
[15:15:07] idefine: has joined #ruby
[15:15:21] lianj: has joined #ruby
[15:18:01] dlitvak_: has joined #ruby
[15:18:26] Shaboum: has joined #ruby
[15:18:43] harly: has joined #ruby
[15:20:28] Shaboum: has joined #ruby
[15:20:35] Ebok: has joined #ruby
[15:21:01] gbgdev: has joined #ruby
[15:21:31] idefine: has joined #ruby
[15:21:46] Shaboum: has joined #ruby
[15:21:50] rmah: has joined #ruby
[15:22:03] rmah: has left #ruby: ()
[15:22:16] lee-jon: has joined #ruby
[15:22:27] chussenot: has joined #ruby
[15:22:51] ddv: kaleido: what gem?
[15:23:00] ddv: kaleido: the only thing I can find is https://github.com/xertres/tacacs_plus
[15:23:10] UtkarshRay: has joined #ruby
[15:23:12] ddv: and it's horribly outdated and unmaintained
[15:23:23] kaleido: thats what i found as well but its not exactly what i need
[15:23:32] kaleido: thinking of dumbing it down
[15:23:36] namxam: has joined #ruby
[15:23:39] ddv: then you need to make one yourself
[15:24:14] maikowblue: has joined #ruby
[15:24:31] visudo: has joined #ruby
[15:25:01] Anderson69s: has joined #ruby
[15:27:40] sdothum: has joined #ruby
[15:28:17] hobodave: has joined #ruby
[15:33:24] Mr0rris0: has joined #ruby
[15:36:55] howdoicomputer: has joined #ruby
[15:37:26] emilford: has joined #ruby
[15:37:37] RegulationD: has joined #ruby
[15:38:04] ElFerna_: has joined #ruby
[15:38:17] hlegius: has joined #ruby
[15:38:34] ducklobster: hi all, i am trying to do some hacky remote server monitoring over ssh with ruby
[15:38:42] ducklobster: basically trying to capture the stdout of ssh but having some problems
[15:38:43] ducklobster: https://gist.github.com/anonymous/5833cc8d4d0e58354590
[15:38:59] dopamean_: has joined #ruby
[15:39:12] ducklobster: tldr; the system call seems to put the calls out to stdout, when i try to use popen + select i never get any data :(
[15:39:35] Ishido: has joined #ruby
[15:39:35] ziyadb: has joined #ruby
[15:39:55] idefine: has joined #ruby
[15:41:25] zzz: has joined #ruby
[15:41:37] Ox0dea: ducklobster: https://github.com/net-ssh/net-ssh#synopsis is the abstraction you're looking for.
[15:42:22] kbni: is it possible to get the ActiveSupport::TimeZone from a ActiveSupport::TimeWithZone (for creating a date object with a matching timezone?)
[15:42:45] ruby-lang270: has joined #ruby
[15:43:18] kies^: has joined #ruby
[15:43:32] ruby-lang270: I am using RestClient::Request to execute requests
[15:43:41] sgambino: has joined #ruby
[15:43:52] ruby-lang270: someone of you guys know how can I pass an array using the payload
[15:44:33] ruby-lang270: I need to pass an array using RestClient::Request
[15:45:39] Ox0dea: kbni: Why not just pass the result of TimeWithZone#time_zone to TimeZone.new?
[15:47:06] dlitvak: has joined #ruby
[15:47:11] ducklobster: Ox0dea: i tried net/ssh with the channel method but i had the same issue, the #on_data would never fire
[15:47:12] workmad3: has joined #ruby
[15:47:37] ducklobster: Ox0dea: that was end of the day yesterday though, i guess i can give it a try with a fresh set of eyes :P
[15:47:45] nettoweb: has joined #ruby
[15:48:25] Ox0dea: ducklobster: It may be that somethiing was causing the output not to be flushed; SSH isn't quite line-based.
[15:48:42] mary5030: has joined #ruby
[15:49:32] ducklobster: that is a good idea, however, if I jump into pry and do a stream.gets it actually returns the line
[15:49:42] mary5030: has joined #ruby
[15:49:48] ducklobster: so i'm not sure why IO.select isn't handling that stream
[15:51:26] Billias: has joined #ruby
[15:52:05] idefine: has joined #ruby
[15:52:12] s00pcan: has joined #ruby
[15:52:14] AlexJakeGreen: has joined #ruby
[15:52:14] dlitvak: has joined #ruby
[15:52:56] slash_nick: Ox0dea: did tjohnson inspire lens_of_truth?
[15:53:15] Ox0dea: slash_nick: You, tjohnson, and lucasb, aye.
[15:53:44] s00pcan: has joined #ruby
[15:54:06] Ox0dea: I tried to do it with C like lucasb suggested, but there are so many necessary pieces that don't get exported from enumerator.c. :<
[15:54:18] william3: has joined #ruby
[15:54:30] Scriptonaut: has joined #ruby
[15:54:44] Ox0dea: After about a dozen "TypeError: wrong argument type enumerator (expected enumerator)", I decided to settle for the hack.
[15:55:03] PedramT: has joined #ruby
[15:55:46] Ox0dea: tjohnson: Not sure how to get it not to cause a rewind yet.
[15:56:59] BlkDynmt: has joined #ruby
[15:57:11] Scriptonaut: Hey all. I've been trying to connect to my gmail account with the gmail gem, authenticating with the signet gem. I swear I have followed everything, I have a google developers console app (I chose installed application), I am using my client_id and client_secret to get the authorization_code. I am using that to get the access and refresh tokens. However, when I try to connect to my gmail account, with th
[15:57:17] Scriptonaut: e access_token, I get (invalid credentials). I've been at this for months, and can't figure it out. Here is my stack overflow question, I haven't gotten an answer yet: http://stackoverflow.com/questions/34125745/ruby-gmail-api-with-oauth2-responds-with-invalid-credentials-failure-when-logg
[15:57:25] Scriptonaut: Could someone give it a look and see if I'm doing anything obviously wrong?
[15:57:28] slash_nick: Ox0dea: i'm wondering if you could rescue and resume with an offset or something along those lines
[15:57:37] mfb2: has joined #ruby
[15:58:09] Ox0dea: slash_nick: The Fiber essentially raises a StopIteration as it dies. :/
[15:58:26] Ox0dea: Dunno how to preempt that.
[15:58:32] asccigcc: has joined #ruby
[15:58:44] sepp2k: has joined #ruby
[15:58:44] karapetyan: has joined #ruby
[15:58:50] evidex: has joined #ruby
[15:59:18] cschneid_: has joined #ruby
[15:59:57] polishdub: has joined #ruby
[16:00:11] Ox0dea: Never mind that this is me: http://i.imgur.com/xVyoSl.jpg
[16:00:12] drptbl: has joined #ruby
[16:00:14] karapetyan: has joined #ruby
[16:00:16] s00pcan: has joined #ruby
[16:02:27] skade: has joined #ruby
[16:02:28] slash_nick: Ox0dea: i was wondering what kind of animal you were... we're actually pretty similar: https://www.dropbox.com/sc/w0to5c3o4xgmkpa/AACpSKfSj6Eu38NNwZwZ01Voa
[16:02:49] dlitvak: has joined #ruby
[16:03:28] dionysus69: has joined #ruby
[16:04:15] visudo: has joined #ruby
[16:04:25] william3: has joined #ruby
[16:04:41] drptbl: has joined #ruby
[16:05:28] idefine: has joined #ruby
[16:05:37] hogetaro: has joined #ruby
[16:05:49] Ox0dea: On the Internet, no one knows you're a god.
[16:07:29] tomdp: has left #ruby: ("Leaving")
[16:07:52] moeabdol: has joined #ruby
[16:08:16] Ox0dea: slash_nick: Your one put me in mind of Robb Stark. :<
[16:08:26] KensoDev: has joined #ruby
[16:09:50] tomchapin: has joined #ruby
[16:09:51] zarubin: has joined #ruby
[16:10:00] lucasb: Ox0dea: hey, cool gem! :)
[16:10:16] idefine_: has joined #ruby
[16:10:32] lucasb: but you would still classify the enumerator getting rewind as a bug, no?
[16:11:27] sankaber: has joined #ruby
[16:11:53] Abrin: has joined #ruby
[16:11:54] Xeago: has joined #ruby
[16:12:46] x77686d: has joined #ruby
[16:12:53] evidex: has joined #ruby
[16:13:30] dragon9783: has joined #ruby
[16:14:36] Ox0dea: lucasb: Hard to say. It seems a little weird to expect a dead Fiber to hold onto all the context that would be necessary to revive it and have it pick up where it left off.
[16:15:00] kbni: Ox0dea, hi there - thanks for your help the other day. Sorry I got you booted. :)
[16:15:17] Ox0dea: kbni: No worries.
[16:16:23] kspencer: Ox0dea: Was it you that said you used highline before?
[16:16:54] dcope: has joined #ruby
[16:17:06] dcope: is there any way to add a timer or some sort of timeout to wrap a potentially long running http call?
[16:17:48] william3: has joined #ruby
[16:17:52] jbrhbr: has joined #ruby
[16:18:26] vondruch: has joined #ruby
[16:18:52] tjohnson: Ox0dea: i was thinking it should at least raise a StopIteration on a subsequent #next call
[16:18:58] hnagamin: has joined #ruby
[16:18:58] solocshaw: has joined #ruby
[16:19:03] zarubin: has joined #ruby
[16:19:12] tjohnson: As it stands, I can call `#next`, rescue a specific error I'm expecting and end up in an infinite loop
[16:19:36] Bloomer: has joined #ruby
[16:20:12] lucasb: Ox0dea: hm, ok. I must still understand how everything works. Thanks for the explanation!
[16:20:24] skade_: has joined #ruby
[16:20:27] kbni: besides https://github.com/bbatsov/ruby-style-guide - does anyone have any style guide docs that are worth a read?
[16:21:57] waheedi: has joined #ruby
[16:23:35] dlitvak_: has joined #ruby
[16:24:02] TomPeed: has joined #ruby
[16:24:39] Ox0dea: dcope: Cross your fingers and check whether your HTTP library of choice doesn't already provide a way to timeout requests.
[16:24:47] Ox0dea: tjohnson: Aye, that does seem like the more reasonable thing to do.
[16:24:55] william3: has joined #ruby
[16:25:20] idefine: has joined #ruby
[16:25:50] PedramT: has joined #ruby
[16:26:02] sftrabbit: has joined #ruby
[16:26:39] lucasb: kbni: bear in mind that bbatsov's style guide is very good, but it's not the absolute answer for everything. a google search for "ruby style guide" yields some other interesting ones. even some core developers write ruby in their own way, so just follow your intuition.
[16:26:40] karapetyan: has joined #ruby
[16:28:15] davodavo: has joined #ruby
[16:28:42] emilford: has joined #ruby
[16:29:39] rkazak: has joined #ruby
[16:29:53] asccigcc: has joined #ruby
[16:30:13] gigetoo: has joined #ruby
[16:34:45] workmad3: has joined #ruby
[16:35:16] wolffles: has joined #ruby
[16:35:46] skade: has joined #ruby
[16:37:38] BlkDynmt: has joined #ruby
[16:39:46] chouhoulis: has joined #ruby
[16:39:55] wolffles: having trouble creating a ternary operator using .include?
[16:40:27] wolffles: ary.values_at(2,4,5,6,7).include?(ary[3]): puts "a" ? puts "b"
[16:40:33] dlitvak: has joined #ruby
[16:40:44] [Butch]: has joined #ruby
[16:40:56] lagweezle: has joined #ruby
[16:41:01] idefine: has joined #ruby
[16:41:16] canton7: puts foo.include?(bar) ? "a" : "b"
[16:41:38] pec: has joined #ruby
[16:41:59] mwlang: has joined #ruby
[16:42:05] wolffles: i had it backwards huh
[16:42:17] sandstrom: has joined #ruby
[16:42:48] wolffles: puts foo.include?(bar) ? "a" : "b"
[16:42:51] sepp2k: has joined #ruby
[16:43:05] atomical_: has joined #ruby
[16:43:12] Ox0dea: You got it.
[16:44:34] shevy: we are seeing the transformation of waffles from a beginner to an early expert here
[16:44:51] phantummm: has joined #ruby
[16:45:46] PedramT_: has joined #ruby
[16:45:52] kirun: has joined #ruby
[16:45:57] wolffles: i switched it around but im still geting a syntax error, unexpected :
[16:46:43] dcope: Ox0dea: it doesn't, that's why im having to look at alternatives
[16:46:53] dcope: it's a gem that makes an http request... so im trying to figure out how to wrap that
[16:47:11] sftrabbit: has joined #ruby
[16:47:17] wolffles: nvm i figured it out
[16:47:39] newdan: wolffles: ????
[16:48:24] tjohnson: dcope: consider https://github.com/lostisland/faraday
[16:48:51] wolffles: shevy: is it showing? cuz im still getting stuck on syntax and i feel like thats very basic problems
[16:49:42] gregf_: >> [1,2].each { |i| p i % 2 == 0 ? "you got it!" : "nevrmind, try again.." }
[16:49:44] ruby[bot]: gregf_: # => "nevrmind, try again.." ...check link for more (https://eval.in/509872)
[16:49:57] william3: has joined #ruby
[16:50:31] dwfait: has joined #ruby
[16:51:03] gregf_: haha, the first thing i learnt in uni was syntax, even though the logic was acquired at $work ;)
[16:51:18] grill: has joined #ruby
[16:51:44] shevy: wolffles ruby syntax can be difficult, I ran into this a few times myself when combining .include? with and without parents, also with "and" and "!" negation
[16:51:56] shevy: let's leave the parents out of this
[16:52:28] lucasb: parents always helps their children
[16:52:29] wolffles: lol always know what to say when im doubting myself you should be a shrink as well
[16:52:57] Ox0dea: lucasb: In Unix, parents sometimes kill their children once they've become zombies.
[16:53:24] tjohnson: Ox0dea: it's the humane thing
[16:53:39] william3: has joined #ruby
[16:53:45] fsapo: has joined #ruby
[16:53:53] hobodave: has joined #ruby
[16:54:01] Ox0dea: tjohnson: PID 0 for president.
[16:54:08] gregf_: unix parents prolly have more rights that real parents on today *runs*
[16:54:15] gregf_: s/that/than/
[16:55:05] AckZ: has joined #ruby
[16:55:44] shevy: zombie parents would be cool... they could sneak in to steal PID 0 and take over *everything*
[16:55:58] djbkd: has joined #ruby
[16:56:04] Ox0dea: I would `kill` to get hold of PID 0.
[16:56:04] pdoherty: has joined #ruby
[16:56:09] tjohnson: gregf_: I bet if _I_ killed my zombie children CPS would be in here with a bunch of questions and bureaucratic paperwork
[16:56:24] william3: has joined #ruby
[16:56:49] hobodave: has joined #ruby
[16:56:52] YankNYC: has joined #ruby
[16:57:20] tjohnson: there really should be process monitoring software called Child Protective Services.
[16:57:37] YankNYC: good afternoon
[16:58:04] YankNYC: i'm having the oddest time trying to debug my tests. In the console the thing I'm trying to do works but in my tests I end up with unexpected behavior
[16:58:14] ceej: has joined #ruby
[16:58:28] psye: has joined #ruby
[16:58:30] YankNYC: i'll paste the gist in a min
[16:58:47] sftrabbit: has joined #ruby
[16:58:50] Ox0dea: It is impossible to search for "Ring -1". :(
[16:59:07] slash_nick: Ox0dea: i was able to get [1,2,nil,1,2,nil,1,2,...] by feeding nil in the rescue (e.g. https://gist.github.com/no-reply/4b38f26b3fe32ad266a7#gistcomment-1683794)
[16:59:43] Ox0dea: slash_nick: Progress! :P
[16:59:43] psye: has joined #ruby
[16:59:52] slash_nick: still rewinds :/
[17:00:02] bklane: has joined #ruby
[17:00:42] Ox0dea: Oh jeeze, what about cloning the Fiber during every iteration, and using Fiddle to replace the dead one when necessary?
[17:00:44] slash_nick: Ox0dea: i wish: next if peek, rescue peek with skip and next... i don't think there's a way to skip values
[17:01:23] Ox0dea: Nah, not to my knowledge; enumeration != iteration.
[17:01:31] Ox0dea: The previous value can inform the next.
[17:01:41] slash_nick: Ox0dea: i thought about that... keep a fiber that's at n and another at n-1... if n dies, n-1 becomes the new "n" at n+1... and on the next iteration we have our new n-1
[17:01:45] vyscond: has joined #ruby
[17:01:53] Ox0dea: But it might do!
[17:02:04] visudo: has joined #ruby
[17:02:08] Ox0dea: Such crazy, though.
[17:02:14] amclain: has joined #ruby
[17:02:16] slash_nick: it might, it is crazy... it hurts my head
[17:02:32] mfb2: has joined #ruby
[17:02:37] TomPeed: has joined #ruby
[17:02:38] lucasb: I still think someone should submit a redmine issue for this "automatic" behavior, since nobody expects that to happen.
[17:02:50] slash_nick: lucasb: good idea, at least stir up conversation
[17:02:59] vyscond: has left #ruby: ()
[17:03:02] slash_nick: get some more thoughts out there
[17:03:28] PedramT: has joined #ruby
[17:04:19] snowy: has joined #ruby
[17:04:43] emilford: has joined #ruby
[17:05:02] PedramT: has joined #ruby
[17:06:04] Anderson69s: has joined #ruby
[17:06:10] nanoz: has joined #ruby
[17:06:33] slash_nick: Ox0dea: i think we still have the problem of getting to n+1... so you clone the fiber so you can replace a dead one... how do you advance past the error? there's no skip, right?
[17:07:12] zast: has joined #ruby
[17:07:17] piotrj: has joined #ruby
[17:08:09] slash_nick: lucasb: are you writing it up? i don't think i can word that
[17:08:22] akem: has joined #ruby
[17:08:31] lyoshajapan: has joined #ruby
[17:08:59] lucasb: I just wrote some simple snippet that I think is clearer the issue. hold on a sec
[17:09:12] nodejunkie: has joined #ruby
[17:09:36] tjohnson: if this is intended behavior, it should at least be documented
[17:09:37] shevy: what automatic behaviour
[17:09:38] RegulationD: has joined #ruby
[17:10:16] YankNYC: https://gist.github.com/genericlady/41cf5bea63c30ecbf581
[17:10:20] slash_nick: shevy: https://gist.github.com/no-reply/4b38f26b3fe32ad266a7#gistcomment-1683794 ..
[17:10:21] YankNYC: https://gist.github.com/genericlady/6b241302526d5edf6c31
[17:10:32] YankNYC: sorry slash
[17:10:34] tjohnson: shevy: `Enumerator` rewinds when #next raises an error https://gist.github.com/no-reply/4b38f26b3fe32ad266a7
[17:10:41] slash_nick: YankNYC: no need :)
[17:11:01] Ox0dea: slash_nick: Oh, right. And I'm sure it's probably the case that transferring control away and then back won't suffice. :/
[17:11:22] vishwa: has joined #ruby
[17:11:38] Ox0dea: YankNYC: I see the problem.
[17:11:59] lucasb: https://eval.in/509874
[17:12:02] vishwa: Has anyone here used the ruby decisiontree gem?
[17:12:02] slash_nick: Ox0dea: given the automatic rewinding, i think the only way to avoid it would be to alter the object you're enumerating... "now we know that el 3 raises, strip it out and start over"
[17:12:11] YankNYC: pls tell me
[17:12:34] slash_nick: lucasb: nice and clear
[17:12:44] arup_r: has joined #ruby
[17:12:47] Sr: has joined #ruby
[17:12:55] slash_nick: lucasb: "Both two" :P
[17:13:06] Sr: boa tarde
[17:13:10] YankNYC: oh i think it's the way i'm making that 2d array?
[17:13:27] Ox0dea: YankNYC: Yeah. You're modifying the same reference.
[17:13:34] Ox0dea: >> foo = Array.new(2, Array.new(1)); foo[1][0] = :uhoh; foo
[17:13:34] namxam: has joined #ruby
[17:13:35] ruby[bot]: Ox0dea: # => [[:uhoh], [:uhoh]] (https://eval.in/509876)
[17:14:21] ledestin: has joined #ruby
[17:14:42] Ox0dea: >> foo = Array.new(2) { Array.new(1) }; foo[1][0] = :ftfy; foo
[17:14:43] ruby[bot]: Ox0dea: # => [[nil], [:ftfy]] (https://eval.in/509877)
[17:15:23] nerium: has joined #ruby
[17:15:43] gregf_: you can also do a clone i guess
[17:15:53] Guest60821: How can I make a txt file player in ruby?
[17:16:08] gregf_: >> a = [1]; b= a.clone; b[0] = 4; [a,b]
[17:16:10] ruby[bot]: gregf_: # => [[1], [4]] (https://eval.in/509878)
[17:16:11] dwfait: has joined #ruby
[17:16:44] gregf_: play a text file *cries*
[17:17:14] diegoviola: has joined #ruby
[17:17:17] mfb2: has joined #ruby
[17:17:31] uris: has joined #ruby
[17:18:06] william3: has joined #ruby
[17:18:53] YankNYC: @Ox0dea thank you! https://gist.github.com/genericlady/a79cd0d6a135f8f740b1
[17:19:18] Ox0dea: YankNYC: Happy to help. :)
[17:19:51] YankNYC: writing tests really does make you better
[17:20:05] YankNYC: and people <3
[17:20:08] Ox0dea: lucasb: Yep, that's a great distillation of the weirdness.
[17:20:31] Ox0dea: As it stands, we can't even get around the problem with an external iterator.
[17:20:46] lucasb: that is one side of the issue, to *not* automatically rewind
[17:21:06] lucasb: the other side is if someone wants to keep going, past the raised exception
[17:21:08] aupadhye: has joined #ruby
[17:21:26] lucasb: like, if there was more yields after the raise; yield 3; yield 4, etc.
[17:21:37] slash_nick: we haven't tried to identify what in the code is responsible have we?
[17:22:17] Ox0dea: I think tjohnson found where the StopIteration was being raised?
[17:23:18] tjohnson: A friend in #projecthydra pointed me here: https://github.com/ruby/ruby/blob/trunk/enumerator.c#L655-L660
[17:24:15] moeabdol: has joined #ruby
[17:24:17] rkazak: has joined #ruby
[17:24:45] tjohnson: seems quite deliberate. compare: https://github.com/ruby/ruby/blob/trunk/enumerator.c#L925-L930
[17:25:34] Ox0dea: Yeah, Line 651 in there is the one birthing the new Fiber, and since dead ones don't maintain context, the surrounding Enumerator can't pick up where it left off.
[17:25:35] lagweezle: vishwa: Not using it, but thanks for an interesting thing to read! :)
[17:25:37] sandstrom: has joined #ruby
[17:25:51] vishwa: you're welcome hehe
[17:26:06] vishwa: how do you debug using a library like that?
[17:26:10] tomphp: has joined #ruby
[17:26:18] vishwa: im getting an error, but i don't know where to start
[17:26:27] workmad3: has joined #ruby
[17:26:32] Ox0dea: It's almost certainly intentional, and most likely even The Right Thing, but "make easy things easy and hard things possible".
[17:26:59] RegulationD: has joined #ruby
[17:27:02] tjohnson: Ox0dea: that's the conclusion I'm coming to
[17:27:04] slash_nick: I think that last bit is the crux here
[17:27:14] Ox0dea: s/easy/sane/ and s/hard/crazy/ at your discretion. :)
[17:27:18] slash_nick: it's impossible to do something that you might reasonably want or need to do
[17:27:30] Ox0dea: Seems so.
[17:27:40] slash_nick: well... with this implement
[17:27:59] Ox0dea: Outside of getting one's hands really dirty to muck with it at the byte level.
[17:28:25] Ox0dea: I'd tackle it from C if enumerator.c weren't so damned stingy.
[17:28:33] UtkarshRay: has joined #ruby
[17:28:40] rakm: has joined #ruby
[17:29:17] arthropododo: has joined #ruby
[17:29:26] ferr: has joined #ruby
[17:29:30] PedramT: has joined #ruby
[17:30:05] Ox0dea: I copy-pasted everything necessary to get all the symbols to resolve and still got that stupid TypeError. :/
[17:30:25] ramfjord: has joined #ruby
[17:30:59] Ox0dea: Followed the trail of TypedData_Get_Struct and couldn't find where it was sussing out that my `struct enumerator` wasn't the real one.
[17:31:01] synthroid: has joined #ruby
[17:31:26] barhum2013: has joined #ruby
[17:31:34] govg: has joined #ruby
[17:31:51] vvalien: has joined #ruby
[17:32:11] zambini: has joined #ruby
[17:32:30] cpup: has joined #ruby
[17:33:50] Xeago: has joined #ruby
[17:35:08] casadei: has joined #ruby
[17:35:23] baweaver: has joined #ruby
[17:36:07] RobertBirnie: has joined #ruby
[17:37:43] baweaver: has joined #ruby
[17:37:52] rht: has joined #ruby
[17:39:57] piotrj: has joined #ruby
[17:41:12] duckpuppy: has joined #ruby
[17:41:27] hobodave: has joined #ruby
[17:43:27] musicnode: has joined #ruby
[17:43:46] howdoi: has joined #ruby
[17:43:48] atomical: has joined #ruby
[17:46:27] Frem: has joined #ruby
[17:47:08] symm-: has joined #ruby
[17:47:28] piotrj: has joined #ruby
[17:48:14] armyriad: has joined #ruby
[17:48:20] musicnode: has joined #ruby
[17:48:55] mdw: has joined #ruby
[17:49:11] jbrhbr: has joined #ruby
[17:52:14] BlkDynmt: has joined #ruby
[17:52:57] atomical_: has joined #ruby
[17:53:02] visudo: has joined #ruby
[17:57:10] dlitvak: has joined #ruby
[17:57:51] william3: has joined #ruby
[18:00:23] firstdayonthejob: has joined #ruby
[18:00:44] devbug: has joined #ruby
[18:00:48] ElFerna_: has joined #ruby
[18:00:59] mary5030: has joined #ruby
[18:03:00] william3: has joined #ruby
[18:04:04] KensoDev: has joined #ruby
[18:05:32] ur5us: has joined #ruby
[18:05:36] JakFrist: has joined #ruby
[18:05:38] Terens: hello.. in arrays << is equal to push ?
[18:06:12] shevy: I think one is faster than the other
[18:07:15] shevy: well marginally... http://pastie.org/10700844
[18:07:30] JDiPierro: has joined #ruby
[18:08:31] d10n-work: has joined #ruby
[18:08:34] JakFrist: has joined #ruby
[18:09:15] PedramT: has joined #ruby
[18:11:55] syk: has joined #ruby
[18:12:08] JDiPierro: has joined #ruby
[18:14:22] jhass: Terens: push can take more than one argument and is potentially faster in that case
[18:15:28] slawrence00: has joined #ruby
[18:15:34] k13nox: has joined #ruby
[18:17:54] juddey: has joined #ruby
[18:20:27] cmckee: has joined #ruby
[18:20:53] dudedudeman: has joined #ruby
[18:21:53] yoongkang: has joined #ruby
[18:23:16] Jackneill: has joined #ruby
[18:23:29] Dimik: has joined #ruby
[18:25:57] nofxx: has joined #ruby
[18:26:02] shevy: hmmm... is there an in-built ruby way to convert a string such as "(1..20)" into a ruby Range object? so that we could do x = Token.new "(1..20)"; x.to_a as if x would be (1..20)
[18:26:17] arlek: has joined #ruby
[18:26:23] JakFrist: has joined #ruby
[18:26:32] pipework: shevy: parser maybe?
[18:26:33] malconis: has joined #ruby
[18:26:48] eam: >> eval("(1..20)").class
[18:26:49] ruby[bot]: eam: # => Range (https://eval.in/509893)
[18:27:04] ramfjord: has joined #ruby
[18:29:23] lee-jon: has left #ruby: ()
[18:29:42] atomical: has joined #ruby
[18:30:35] Bloomer: has joined #ruby
[18:31:10] ferr: has joined #ruby
[18:33:13] waheedi: has joined #ruby
[18:34:21] joonty: has joined #ruby
[18:34:39] havenwood: shevy: implement it! https://github.com/apeiros/literal_parser/issues/1
[18:37:21] blandflakes: has joined #ruby
[18:38:34] vishwa: has left #ruby: ()
[18:39:49] jpoole: has joined #ruby
[18:41:55] poguez_: has joined #ruby
[18:43:04] KensoDev: has joined #ruby
[18:43:06] riceandbeans: has joined #ruby
[18:43:16] jpoole: can anyone help me with this module issue? https://gist.github.com/anonymous/5304798041d8675bc0f9
[18:43:17] _seanc_: has joined #ruby
[18:43:21] jottr: Is it good practise to specify am minimum version for every gem in a Gemfile? I.e. heroku do not specify a version of 'pg' in their docs. Is there an advantage of not specifying gem versions of some gems?
[18:43:26] riceandbeans: I don't know if I should be using .eql? or .equal?
[18:43:51] duderon__: has joined #ruby
[18:43:52] djbkd: has joined #ruby
[18:43:53] riceandbeans: I'm comparing what should either be a number in the form of \d\.\d, or ''
[18:43:58] _seanc_: has left #ruby: ()
[18:43:59] howdoicomputer: has joined #ruby
[18:44:00] riceandbeans: so like 1.5 or ''
[18:44:29] bklane: has joined #ruby
[18:45:12] mostlybadfly: has joined #ruby
[18:45:14] BlkDynmt: has joined #ruby
[18:45:25] riceandbeans: basically, foo = 1.5, bar is determined based on system, it could be like 1.5 or '', I just compare foo to bar to see if they match, I was told not to use != or == but .eql? or .equal? instead
[18:45:28] ReK2GnULinuX: has joined #ruby
[18:46:00] cmckee: has joined #ruby
[18:46:06] mjuszczak: has joined #ruby
[18:46:45] chussenot: has joined #ruby
[18:47:29] NightMonkey: has joined #ruby
[18:47:37] peteyg: has joined #ruby
[18:49:38] mdw: has joined #ruby
[18:50:16] musicnode: has joined #ruby
[18:50:45] Ox0dea: jpoole: You can use `::Foo` to explicitly instruct constant resolution to start at the top.
[18:51:06] barajasfab: has joined #ruby
[18:51:26] Ox0dea: jottr: Being on the bleeding edge is arguably the advantage there.
[18:51:30] Ox0dea: riceandbeans: Wat.
[18:51:33] waheedi: has joined #ruby
[18:51:40] jhass: jottr: depends on the competence of your team basically. if you check in the Gemfile.lock (you absolutely should) and have nobody run an open bundle update it's fine to leave them out most of the time
[18:51:51] Asher: has joined #ruby
[18:52:44] govg: has joined #ruby
[18:52:48] Swappticon: has joined #ruby
[18:52:51] RegulationD: has joined #ruby
[18:52:58] lyoshajapan: has joined #ruby
[18:53:22] jhass: jpoole: it just errors out with that message since it's the first (but not only) constant it tries to look up
[18:53:42] jhass: the toplevel one isn't found either, the gem is probably not loaded or you just used the wrong one
[18:53:59] riceandbeans: Ox0dea: I think I got it, but new question
[18:54:10] jhass: you probably should move the require to the top of your file
[18:54:27] riceandbeans: Ox0dea: is unless foo.eql('') end, the same as if not foo.eql('') end?
[18:54:51] Ox0dea: riceandbeans: It's fine to think of it that way.
[18:55:09] mephistophocles: has joined #ruby
[18:56:40] sgambino: has joined #ruby
[18:56:59] havenwood: riceandbeans: I'm confused why you're even considering an alternative to ==.
[18:57:39] jhass: riceandbeans: note that for most (core) classes == and eql? are synonym
[18:57:40] krobzaur: has joined #ruby
[18:58:04] mary5030: has joined #ruby
[18:58:06] jhass: see http://devdocs.io/ruby~2.2/object#method-i-eql-3F
[18:58:09] tuelz: has joined #ruby
[18:58:28] havenwood: riceandbeans: Use equal? if you're actually wanting to check object id equality. Typically use ==.
[18:58:30] shevy: havenwood doing so! but I wondered whether this manual fiddling hasn't been a part of core ruby, it feels tedious
[18:58:55] mary5030_: has joined #ruby
[18:59:01] tuelz: if I add a gem dependency in a gemspec, but don't actually require it into that gems lib...I'll then be able to require that dependency in if I use it's parent gem, correct?
[18:59:17] tuelz: s/it's/its/
[18:59:27] havenwood: riceandbeans: Don't use === or eql? unless you know why you are.
[18:59:49] jhass: tuelz: I don't follow
[18:59:55] Aviio: has joined #ruby
[19:00:14] hobodave: has joined #ruby
[19:00:20] tuelz: so I want to have a choice in the app I'm making, but I want the gem the app uses to manage the versions of its dependencies...so in the app those dependencies will be opt-in with a require, but I won't have to keep up with it in my apps gemfile
[19:00:34] mary5030: has joined #ruby
[19:01:27] riceandbeans: havenwood: I was told not to use == or !=
[19:01:33] havenwood: riceandbeans: Why?
[19:01:34] riceandbeans: to use the methods instead
[19:01:37] waheedi: has joined #ruby
[19:01:38] havenwood: riceandbeans: no
[19:02:01] tuelz: so app, gem_the_app_uses(gtau), gem_thats_a_depend_of_gtau(depgem) I want to create an app, put gtau in my gemfile, and then have a choice whether those dependency gems are actually being loaded up or not
[19:02:02] jhass: riceandbeans: mind telling us where we don't want to work? :P
[19:02:02] riceandbeans: I'm a contractor, I only have so much weight
[19:02:07] wilbert: has joined #ruby
[19:02:20] jhass: ?fake tuelz
[19:02:20] ruby[bot]: tuelz: Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
[19:02:22] riceandbeans: I'm not going to bite the hand that feeds me
[19:02:27] m27frogy: has joined #ruby
[19:02:37] jhass: tuelz: in this case real names helps a lot to make it more understandable
[19:02:40] havenwood: riceandbeans: If you *must* not use == then use equal?.
[19:03:12] havenwood: riceandbeans: Do not use eql? unless you're using it for Hash key equality. It's not meant to just use willy nilly.
[19:03:38] riceandbeans: havenwood: can you please tell me why I should use .equal? instead of .eql?
[19:03:46] Ox0dea: It's a trap!
[19:04:03] riceandbeans: havenwood: when I changed equal to eql my code stopped crashing, and I don't understand why
[19:04:16] havenwood: riceandbeans: So you're supposed to use `==` unless you have a reason to do otherwise. On a rare occasion you actually care about object_id equality.
[19:04:26] havenwood: riceandbeans: 1.0.equal?(1) #=> false
[19:04:33] havenwood: riceandbeans: 'a'.equal?('a') #=> false
[19:04:44] havenwood: riceandbeans: Usually... you don't want that!
[19:04:50] riceandbeans: ok, here's my real example
[19:05:00] havenwood: riceandbeans: You're being told to do it wrong.
[19:05:11] lagweezle: riceandbeans: Equality based on value versus equality based on identity. The question of whether or not something has the same value as something else is very different than if the object referred to by something is the same object referred to by some other variable.
[19:05:21] tuelz: jhass: stil proof of concept...the idea being I have framework Pakyow that is modular, but by default it loads up a lot of dependencies....but maybe I would rather Pakyow not always load up it's Pakyow::Presenter which handles html views so instead of requiring Pakyow::Presenter inside of Pakyow (the gem) lib/pakyow.rb - I'd rather be able to generate a pakyow file that requires Pakyow::Presenter inside that
[19:05:23] tuelz: apps config file
[19:05:31] havenwood: riceandbeans: Typically, yes, `eql?` will be just `==` *but* it isn't always (it's point is implementing for Hash key equality not to just use).
[19:05:36] riceandbeans: I have a target version, major.minor, and an actual version installed, actual version installed can either be like 1.5, or it could be not installed yet and thus '' because setting it to nil breaks other things
[19:06:03] riceandbeans: I just want to know if installed version is the same as target version and in certain cases avoid certain actions if installed version is ''
[19:06:04] idefine: has joined #ruby
[19:06:09] tuelz: right now, Pakyow just has a lib/pakyow.rb which requires everything in - I'd like to move those requires to the generated application level so it feels more opt-in
[19:06:11] havenwood: riceandbeans: Are you overriding `eql?` because it needs to be different from `==` for Hash key equality? If not, it's wrong to use.
[19:06:21] jhass: tuelz: mh, okay, probably not worth it tbh but the answer is yes
[19:06:47] tuelz: jhass: gotcha, I thought it would work, but I'm discussing it with some other people that made me question myself, so came here to confirm :)
[19:06:50] soahccc: Can someone tell me whether I'm stupid or telegram is too stupid to parse markdown? https://gist.github.com/2called-chaos/8f0a8a50376806b42907
[19:06:55] barhum2013: has joined #ruby
[19:06:55] tuelz: jhass: thanks
[19:06:56] riceandbeans: this is with chef, I'm setting a node attribute that I'm basing it off of
[19:07:08] havenwood: riceandbeans: eql? and === are for internal implementation, not to just use for no reason
[19:07:14] havenwood: riceandbeans: No!!!
[19:07:36] riceandbeans: internal implementation?
[19:08:17] mfb2: has joined #ruby
[19:08:21] havenwood: riceandbeans: Let's say you're making a class... You want it to compare with Hash keys one way and case statements another, you can implement eql? and === for that.
[19:08:27] pdoherty: has joined #ruby
[19:08:28] visudo: has joined #ruby
[19:08:46] havenwood: riceandbeans: We can go into detail, but the point is if you don't know why you're using them it's almost certainly wrong to.
[19:09:06] havenwood: riceandbeans: Use `==` unless you *actually* want to be comparing the object_ids...
[19:09:18] havenwood: riceandbeans: In which case use `equal?`.
[19:09:19] riceandbeans: ok, given that, why does everything crash when I use .equal? instead of == ?
[19:09:28] havenwood: riceandbeans: Because you mean `==`.
[19:09:40] havenwood: riceandbeans: Did you see my two `equal?` examples above?
[19:09:46] jhass: riceandbeans: read my link yet?
[19:09:51] riceandbeans: so I should tell the guy that said I have to use the methods to fuck off?
[19:10:03] jhass: riceandbeans: ask him why
[19:10:20] jhass: ask him for some real arguments beyond "style"
[19:10:33] jhass: and probably don't represent version numbers as float
[19:10:47] havenwood: riceandbeans: (The style argument is flat wrong.)
[19:10:48] ss_much: has joined #ruby
[19:11:02] Aviio: the style argument just sounds so dumb
[19:11:02] waheedi: has joined #ruby
[19:11:18] zeroDivisible: has joined #ruby
[19:11:55] barhum2013: has joined #ruby
[19:11:58] havenwood: riceandbeans: If I had to guess I'd say the person is worried about `1.0 == 1 #=> true` or something.
[19:12:27] havenwood: riceandbeans: (In that case the Hash key `eql?` operator would return `false` just like `equal?`.)
[19:12:30] jhass: in which case the problem is representing a version number as float, ^
[19:12:34] riceandbeans: jhass: sorry I didn't notice it with all the highlighted references to me, just saw it, reading now
[19:12:56] n00bDev: has joined #ruby
[19:13:25] riceandbeans: wait a minute....
[19:13:28] riceandbeans: I think I know how to fix this
[19:13:40] m27frogy: has left #ruby: ("Leaving")
[19:13:56] riceandbeans: if I take the thing that's in a float format and do a .to_s I bet .equal? would actually work
[19:14:13] jhass: this is so wrong...
[19:14:15] riceandbeans: probably still stupid, but I'm betting it would work
[19:14:19] baweaver: has joined #ruby
[19:14:21] havenwood: riceandbeans: What is the return value?: "".equal?("")
[19:14:28] jhass: riceandbeans: it won't, read my link
[19:14:32] havenwood: riceandbeans: `true` or `false`?
[19:15:23] bithon: has joined #ruby
[19:15:26] idefine: has joined #ruby
[19:15:38] riceandbeans: wait wait wait
[19:15:52] riceandbeans: .equal? is not same object type but same object itself?
[19:15:59] havenwood: riceandbeans: object_id
[19:16:01] DoubleMalt: has joined #ruby
[19:16:09] riceandbeans: ok, I get it now
[19:16:24] Ox0dea: riceandbeans: So "".equal?("") is...?
[19:16:27] riceandbeans: why didn't you just say that from the start jhass that would've made more sense lol
[19:16:43] riceandbeans: so "".equal?("") should be false
[19:16:53] Ox0dea: riceandbeans: And how about 1.equal?(1)...?
[19:16:55] jhass: you're probably still confusing .equal? and .eql?
[19:16:56] lagweezle: >> "".equal?("")
[19:16:57] ruby[bot]: lagweezle: # => false (https://eval.in/509901)
[19:17:19] havenwood: riceandbeans: [10:58:27] havenwood: riceandbeans: Use equal? if you're actually wanting to check object id equality. Typically use ==.
[19:17:25] riceandbeans: no no, I think I get it
[19:17:29] Ox0dea: http://i.imgur.com/Ufbr5ej.gif
[19:17:38] waheedi: has joined #ruby
[19:17:54] riceandbeans: = sets the value, == compares the value, .equal? checks if it's the same object itself, .eql? checks if it's the same object type
[19:17:56] atmosx: has joined #ruby
[19:18:01] havenwood: riceandbeans: no
[19:18:04] havenwood: the last one is wrong
[19:18:26] william3: has joined #ruby
[19:18:36] riceandbeans: so does .eql? only apply to hashes/arrays then?
[19:19:00] havenwood: riceandbeans: eql? is typically the same as == but not necessarily (the point is if that Object is the key in a Hash, what are its equality rules).
[19:19:03] Ox0dea: It's strict equality, but not object equality.
[19:19:29] Ox0dea: #eql? is like JavaScript's ===, if that helps.
[19:19:37] Ox0dea: But Ruby's === is nothing like JS's.
[19:19:49] riceandbeans: is JS === like PHP === ?
[19:20:16] havenwood: riceandbeans: JavaScript `==` is a joke and `===` is a semblance of a reasonable comparison operator.
[19:20:21] riceandbeans: we need a new operator that has more = signs
[19:20:45] havenwood: riceandbeans: Use `==` unless you have a reason to do otherwise!
[19:21:11] riceandbeans: ruby is kinda confusing sometimes
[19:21:18] jhass: riceandbeans: and to stress it, don't use floats for version numbers, not at any point
[19:21:25] havenwood: riceandbeans: Try clicking from `==` to `===` here to see the madness of `==` in JS: https://dorey.github.io/JavaScript-Equality-Table/
[19:21:31] riceandbeans: it reads nicely, but it has about as many exceptions to rules as the english language
[19:21:34] sandstrom: has joined #ruby
[19:21:37] Ebok: has joined #ruby
[19:21:49] riceandbeans: jhass: I'll .to_s the version
[19:21:50] cmckee: has joined #ruby
[19:21:54] jhass: riceandbeans: no
[19:21:57] riceandbeans: jhass: then what?
[19:22:07] jhass: don't use a float in the first place
[19:22:13] AlexRussia: has joined #ruby
[19:22:18] riceandbeans: what do you suggest instead?
[19:22:29] Ox0dea: shevy: Are you wanting literal_parser to just match very basic Range tokens?
[19:22:30] tomchapin: has joined #ruby
[19:22:31] jhass: Gem::Version or a plain string
[19:22:37] idefine: has joined #ruby
[19:22:39] duckpuppy: has joined #ruby
[19:22:39] jhass: depends on the context
[19:22:48] nofxx: riceandbeans, you just confused your self... out of curiosity, what's your mother tongue?
[19:23:05] riceandbeans: I had many problems with gem::version, so how would I ensure it's a string other than just doing .to_s ?
[19:23:08] mikecmpbll: has joined #ruby
[19:23:15] nofxx: because english is one of the langs with less exceptions to rules that I know. You should see some latin based ones =D
[19:23:17] jhass: don't use a float initially
[19:23:18] riceandbeans: foo = string.New(value) ?
[19:23:19] Zarthus: riceandbeans: writing it as a string to begin with?
[19:23:31] Jodiv: has joined #ruby
[19:23:33] havenwood: riceandbeans: Where are you getting that Float? Is it from your code?
[19:23:33] jhass: riceandbeans: I'm saying don't convert it, make it come in as a string in the first place
[19:23:35] riceandbeans: nofxx: english
[19:23:46] riceandbeans: havenwood: it's from a parsed yaml file
[19:23:46] Zarthus: or to concatinate a series of integers (allowing for constants like _MAJOR, _MINOR)
[19:23:58] havenwood: riceandbeans: Can you change that YAML?
[19:24:18] riceandbeans: havenwood: I can, but I don't want to
[19:24:38] riceandbeans: an application costing millions depends on it existing in a certain way
[19:24:52] riceandbeans: I'd prefer to not write to it and risk something
[19:25:04] Zarthus: they messed up initially making it a float then
[19:25:17] jhass: yeah, I guess I know now why it's that expensive
[19:25:25] Zarthus: ACTION would argue it may potentially cost more by leaving it there
[19:25:43] fmcgeough: has joined #ruby
[19:26:02] crankharder: has joined #ruby
[19:26:12] Zarthus: it especially rings true for currency, I don't know how much a version number would impact.
[19:26:29] dudedudeman: has joined #ruby
[19:26:59] Jodiv: asimo tobot???
[19:27:08] nerium: has joined #ruby
[19:27:09] Jodiv: asimo robot???
[19:27:21] codecop: has joined #ruby
[19:28:39] ton31337: has joined #ruby
[19:28:51] kalopsian: has joined #ruby
[19:29:28] mary5030: has joined #ruby
[19:29:41] jhass: Jodiv: welcome to the Ruby programming language channel
[19:29:41] geekbri: has joined #ruby
[19:29:55] Jodiv: hummmmmmmmmmmmmmmmmmmm
[19:30:08] Jodiv: asimo robot no???
[19:30:09] casadei: has joined #ruby
[19:30:18] jhass: ?english Jodiv
[19:30:18] ruby[bot]: Jodiv: Please use english in this channel. If you need another language, you can find a list of alternative channels on http://ruby-community.com/pages/channels
[19:30:19] frust: has joined #ruby
[19:31:04] Jodiv: yes ASIMO ROBOT no programming ????
[19:31:20] yqt: has joined #ruby
[19:31:35] jhass: I don't know what you're asking, try a full sentence
[19:31:55] ton31337: guys I don't know how to write this, but is it possible to make this work? https://gist.github.com/ton31337/0544072f0106d6868951 I want to check if IP from array is ipv6 and transform it, else leave as it is.
[19:32:12] mjuszczak: has joined #ruby
[19:32:17] newdan: has joined #ruby
[19:32:49] jhass: &ri Array#map @ton31337
[19:32:50] `derpy: ton31337: http://ruby-doc.org/core-2.3.0/Array.html#method-i-map
[19:34:07] Jodiv: someone you know programming asimo robot???
[19:34:32] whippythellama: has joined #ruby
[19:34:46] joonty: has joined #ruby
[19:34:54] ton31337: has left #ruby: ()
[19:35:26] Zarthus: Jodiv: is this related to ruby at all?
[19:36:00] Jodiv: to ruby???
[19:36:09] riceandbeans: I told him changing == to equal and eql broke stuff, he said ok change it back
[19:36:14] Jodiv: yes type?!!!!!
[19:36:37] Zarthus: Jodiv: I think there's a language barrier here, you might wish to use a translator or find a channel in your native language.
[19:36:54] Jodiv: yes asimo robot programming win ?????!!!!!
[19:38:42] sandstrom: has joined #ruby
[19:40:20] mjuszczak: has joined #ruby
[19:40:40] ponyofdeath: has joined #ruby
[19:40:41] havenwood: !kick Jodiv Please come back when you have a Ruby question.
[19:40:42] ruby[bot]: +bb Jodiv!*@*$#ruby-banned *!*@177-130-158-101.mastercabo.com.br$#ruby-banned
[19:40:43] ruby[bot]: ruby[bot] kicked Jodiv: come back when you have a Ruby question.
[19:40:58] ruby[bot]: -b Baltiva!*@*$#ruby-banned
[19:41:01] Ox0dea: That said, yes, ASIMO == robot (programming) == win: http://i.imgur.com/DhntyzU.gif
[19:41:09] IrishGringo: has joined #ruby
[19:41:12] baweaver: has joined #ruby
[19:41:18] ponyofdeath: hi, trying to install a gem locally i downloaded. i am getting this "gem whle executing gem EINVAL invalid argument connect 0.0.0.0:53" any ideas?
[19:41:39] arup_r: has joined #ruby
[19:42:09] ruby[bot]: -bb Jodiv!*@*$#ruby-banned *!*@177-130-158-101.mastercabo.com.br$#ruby-banned
[19:45:22] TomyLobo: has joined #ruby
[19:45:27] shevy: ponyofdeath hmm perhaps the gem tries to connect to ... is that localhost?
[19:45:48] shevy: ponyofdeath (1) what is the name of the gem and (2) the syntax you use
[19:46:30] ponyofdeath: shevy: i used -l
[19:46:32] ponyofdeath: and it worked
[19:47:23] musicnode: has joined #ruby
[19:47:55] Xeago: has joined #ruby
[19:48:41] zacstewart: has joined #ruby
[19:49:08] tomchapin: has joined #ruby
[19:49:09] ur5us: has joined #ruby
[19:52:42] yoongkang: has joined #ruby
[19:53:01] kies^: has joined #ruby
[19:53:38] nerium: has joined #ruby
[19:53:40] treehug88: has joined #ruby
[19:56:46] Azulinho: has joined #ruby
[19:57:29] burgestrand: has joined #ruby
[19:58:36] FernandoBasso: has joined #ruby
[20:02:07] gbgdev: has joined #ruby
[20:03:53] william3: has joined #ruby
[20:04:06] skcin7: has joined #ruby
[20:05:04] arlek: has joined #ruby
[20:05:24] blackmes1: has joined #ruby
[20:07:19] gbgdev: has joined #ruby
[20:10:16] doublemalt_: has joined #ruby
[20:11:43] piotrj: has joined #ruby
[20:14:27] elifoster: has joined #ruby
[20:16:22] wolffles: has joined #ruby
[20:17:10] dlitvak: has joined #ruby
[20:17:56] Aviio: has joined #ruby
[20:18:30] sandstrom: has joined #ruby
[20:18:56] Aviio_: has joined #ruby
[20:19:57] x77686d: has joined #ruby
[20:20:16] centrx: has joined #ruby
[20:21:47] MissionCritical: has joined #ruby
[20:23:57] beneills: has joined #ruby
[20:24:13] skade: has joined #ruby
[20:24:35] Guest38: has joined #ruby
[20:30:18] futilegames: has joined #ruby
[20:31:09] shevy: \o/ you go you scary pony!
[20:32:53] william3: has joined #ruby
[20:33:19] arthropododo: has joined #ruby
[20:33:33] sneakerhax: has joined #ruby
[20:34:13] baweaver: has joined #ruby
[20:34:53] newbie22: has joined #ruby
[20:35:11] IrishGringo: has joined #ruby
[20:35:32] joonty: has joined #ruby
[20:35:36] sandstrom: has joined #ruby
[20:37:41] Aviio: has joined #ruby
[20:38:21] lucasb: is there some way to steal some methods from a class and insert in another?
[20:38:25] baweaver: has joined #ruby
[20:38:43] lucasb: stdlib 'scanf' inserts some methods in IO, but I want to use an StringIO to play with it
[20:38:58] Aviio: has joined #ruby
[20:39:41] lucasb: if 'scanf' defined some module, it would be easy to insert into StringIO, but it declares directly under class IO
[20:40:04] skcin7: has joined #ruby
[20:40:15] Papierkorb: >> require 'scanf'; puts IO.method(:scanf).inspect
[20:40:17] ruby[bot]: Papierkorb: # => #<Method: Class(Kernel)#scanf> ...check link for more (https://eval.in/509950)
[20:41:38] Papierkorb: lucasb: There is a way, rspec does it too, but I'm not sure atm how to ..
[20:42:15] lemur: has joined #ruby
[20:42:25] lucasb: so, I just grab the methods with IO.method(:scanf), and insert into strio.define_singleton_method(:scanf, the_method) ?
[20:42:43] lucasb: I'll try that...
[20:43:01] Papierkorb: lucasb: No I was mistaken, the Kernel one uses $stdin
[20:44:51] lucasb: yeah, strange. I don't why it said Kernel there. scanf declares both IO#scanf and Kernel#scanf
[20:45:19] Papierkorb: It really monkey-patches IO directly >_>
[20:45:41] shevy: I patch monkeys!
[20:45:57] Anderson69s: has joined #ruby
[20:46:17] lucasb: I think it's easier if I just write a file. It's just that the generic problem of moving methods around got me interested in how to solve it.
[20:47:10] Papierkorb: lucasb: https://stackoverflow.com/questions/14132782/assign-a-method-from-one-class-to-an-instance-of-another could help
[20:47:56] Papierkorb: It's still insane :)
[20:47:58] RobertBirnie: has joined #ruby
[20:48:32] Xeago: has joined #ruby
[20:48:40] dlitvak: has joined #ruby
[20:48:44] lucasb: Papierkorb: interesting. I'm taking a look. thank you.
[20:49:20] Cohedrin: has joined #ruby
[20:50:20] IrishGringo: has joined #ruby
[20:50:25] baweaver: has joined #ruby
[20:50:47] Xeago: has joined #ruby
[20:51:03] devbug: has joined #ruby
[20:51:37] lucasb: btw, I was trying to understand this: https://bugs.ruby-lang.org/issues/12035
[20:52:03] lucasb: to see if the scanf handling of whitespace was different between strings and files. but I guess it's not.
[20:52:12] Papierkorb: lucasb: there's also String#scanf
[20:52:47] lucasb: yes, I was testing the difference between String#scanf and IO#scanf
[20:52:55] Papierkorb: lucasb: doh didn't read your message after the link one
[20:52:59] sandstrom: has joined #ruby
[20:53:19] AlexJakeGreen: has joined #ruby
[20:53:35] cmckee: has joined #ruby
[20:53:58] symm-: has joined #ruby
[20:54:54] tomphp: has joined #ruby
[20:55:25] skade: has joined #ruby
[20:55:41] beneills: has joined #ruby
[20:55:49] JDiPierro: has joined #ruby
[20:57:00] guacamole: has joined #ruby
[20:57:32] freerobby: has joined #ruby
[21:00:05] skcin7_: has joined #ruby
[21:00:37] hobodave: has joined #ruby
[21:01:16] syk: has joined #ruby
[21:02:31] elifoster: has joined #ruby
[21:02:47] william3: has joined #ruby
[21:03:01] futilegames: has joined #ruby
[21:03:11] william3: has joined #ruby
[21:04:14] devbug: has joined #ruby
[21:05:51] moei: has joined #ruby
[21:06:54] lxsameer: has joined #ruby
[21:06:54] lxsameer: has joined #ruby
[21:07:08] Xeago: has joined #ruby
[21:07:11] slash_nick: lucasb: did you file an issue yet?
[21:07:41] slash_nick: ACTION wants to monitor what happens with it if so
[21:08:19] papercode: has joined #ruby
[21:08:26] yoongkang: has joined #ruby
[21:08:28] anekos: has joined #ruby
[21:09:13] lucasb: slash_nick: about the enumerator rewind? nope. I thought *you* was filing it ;)
[21:09:53] slash_nick: > lucasb: are you writing it up? i don't think i can word that
[21:10:04] lucasb: sorry, I still don't have much experience in ruby, so I would prefer if somebody else filed it.
[21:10:13] sandstrom: has joined #ruby
[21:10:13] slash_nick: ACTION nods
[21:11:03] cdg: has joined #ruby
[21:13:37] Darmani: has joined #ruby
[21:13:44] Darmani: Hey kids<3
[21:13:58] blackgoat: has joined #ruby
[21:14:08] tvw: has joined #ruby
[21:14:44] Cohedrin: has joined #ruby
[21:14:46] casadei: has joined #ruby
[21:14:57] Swappticon: has joined #ruby
[21:15:19] chouhoulis: has joined #ruby
[21:16:23] namxam: has joined #ruby
[21:16:33] Darmani: slash_nick - mi amor<3
[21:16:52] Darmani: Ox0dea - Your name is back to normal!
[21:17:50] tenderlove: has joined #ruby
[21:18:26] shevy: down with nick incrementation!
[21:18:45] freerobby: has joined #ruby
[21:18:59] kalopsian: has joined #ruby
[21:19:15] hlegius: has joined #ruby
[21:19:18] lucasb: Darmani++
[21:19:26] Darmani: shevy - lol war
[21:19:33] kies^: has joined #ruby
[21:20:11] shevy: what is it good for!
[21:20:33] Darmani: I always do that. It's so annoying lol
[21:20:47] slash_nick: Ox0dea: **=2
[21:23:40] zacstewart: has joined #ruby
[21:23:58] william3: has joined #ruby
[21:24:24] andchar: has joined #ruby
[21:24:36] Spami: has joined #ruby
[21:25:10] namxam_: has joined #ruby
[21:25:27] jimmtt: has joined #ruby
[21:25:28] wolffles: has joined #ruby
[21:25:53] jimmtt: what's the most commonly recommended development environment for ruby currently
[21:25:56] Darmani: andchar: hey
[21:26:00] nerium: has joined #ruby
[21:26:04] jhass: jimmtt: not windows
[21:26:12] Darmani: Windows all the way.
[21:26:19] jimmtt: I'm talking about the ide
[21:26:22] jimmtt: or editor
[21:26:32] jhass: whatever you feel most comfortable with
[21:26:41] jimmtt: I don't think it should really matter what os you run the code from
[21:26:44] tjohnson: jimmtt: http://www.gnu.org/fun/jokes/ed-msg.html
[21:26:53] jhass: the only real IDE is RubyMine, but I wouldn't say it's used by the majority of the ruby developers
[21:27:05] braincrash: has joined #ruby
[21:27:25] sandstrom: has joined #ruby
[21:28:07] andchar: Who knows why 'cyrrilic string'.capitalize don't work?
[21:28:12] tjohnson: jimmtt: (serious answer:) just your text editor of choice :)
[21:28:22] jhass: andchar: because it's not supported, only ASCII
[21:29:45] Darmani: pretty sure capitalize only works on one word.
[21:30:10] jhass: Darmani: that wasn't the question
[21:30:39] Darmani: jhass - Haha I guess you're right, my bad >.<
[21:30:39] yfeldblum: has joined #ruby
[21:30:40] andchar: Darmani: one word don't work to
[21:31:19] slash_nick: lucasb: I bet you would've worded it better https://bugs.ruby-lang.org/issues/12036
[21:32:58] Darmani: Who wants to teach me how to write a web scraper? xP
[21:33:32] SCHAAP137: has joined #ruby
[21:33:44] Darmani: Please, don't all come at me at once.
[21:34:10] slash_nick: Darmani: here you go http://www.nokogiri.org/
[21:34:41] Darmani: slash_nick - tanks bruh.
[21:34:43] Darmani: means a lot.
[21:35:21] shevy: Darmani did you use open-uri yet?
[21:35:23] slash_nick: bruh[ther]'s and [sis]stuh's?
[21:35:47] Darmani: shevy - naaa. I still need to read the docs.
[21:35:52] tomphp: has joined #ruby
[21:35:53] lucasb: slash_nick: awesome. thank you for reporting!
[21:35:58] Darmani: slash_nick - exac[tly]
[21:36:32] shevy: Darmani ok have a look http://ruby-doc.org/stdlib-2.2.3/libdoc/open-uri/rdoc/OpenURI.html - that will always be useful if you want to use www resources
[21:37:20] Darmani: shevy - I'm curious. How often do you do web scraping and what tools do you use?
[21:37:42] shevy: I don't scrape! I only use open uri a lot for fetching remote files
[21:37:46] joonty: has joined #ruby
[21:37:54] shevy: but web scraping has fetching remote files right?
[21:38:09] Darmani: You're asking me? The guy who doesn't know anything? Lol
[21:39:37] shevy: well you want to do web scraping or write a web scraper, not me!!!
[21:39:48] agit0: has joined #ruby
[21:40:18] shevy: I am writing a download-fetcher for fasta files right now... so that I can grab weird ass entries like http://www.ncbi.nlm.nih.gov/nuccore/189458859?report=fasta
[21:40:23] jhass: Darmani: http://docs.seattlerb.org/mechanize/
[21:40:58] Darmani: shevy - lmao that looks like fun
[21:41:16] Darmani: jhass - Is that gem pretty easy to use?
[21:41:40] tjohnson: slash_nick++ # for the issue report
[21:41:48] tjohnson: i'll be interested to see how the discussion goes
[21:42:40] x77686d: has joined #ruby
[21:42:44] mdw: has joined #ruby
[21:43:41] slash_nick: Yeah! tjohnson it'd be cool to be the one responsible for making something new possible in ruby! :)
[21:43:54] TDJACR: has joined #ruby
[21:44:08] jhass: Darmani: from what I've heard, it certainly is the most used one for the purpose (after plain net/http or open-uri and nokogiri)
[21:44:43] sandstrom: has joined #ruby
[21:45:46] Darmani: jhass - thanks man (=
[21:45:53] Maletor: has joined #ruby
[21:46:37] musicnode: has joined #ruby
[21:47:20] Ebok: has joined #ruby
[21:51:26] chipotle: has joined #ruby
[21:51:43] FooMunki: has joined #ruby
[21:53:10] cmckee: has joined #ruby
[21:54:11] ur5us: has joined #ruby
[21:54:24] yfeldblum: has joined #ruby
[21:55:49] tomchapin: has joined #ruby
[21:56:00] duncannz: has joined #ruby
[21:56:35] duncannz: has joined #ruby
[21:56:39] mjuszczak: has joined #ruby
[21:57:43] dudedudeman: has joined #ruby
[21:58:50] TomyLobo: has joined #ruby
[21:59:29] nerium: has joined #ruby
[22:00:49] idefine: has joined #ruby
[22:01:25] ledestin: has joined #ruby
[22:01:28] wolffles: has joined #ruby
[22:02:04] sandstrom: has joined #ruby
[22:02:32] uris: has joined #ruby
[22:03:39] dlitvak: has joined #ruby
[22:04:04] musicnode: has joined #ruby
[22:04:57] Scriptonaut: has joined #ruby
[22:05:04] ramfjord_: has joined #ruby
[22:05:35] hobodave: has joined #ruby
[22:05:54] FooMunki: has joined #ruby
[22:08:00] dopamean_: has joined #ruby
[22:08:17] Xeago: has joined #ruby
[22:08:52] codecop: has joined #ruby
[22:13:57] yoongkang: has joined #ruby
[22:14:39] zambini: has joined #ruby
[22:18:55] grill: yo. anyone in here familiar with popen3? it looks like popen3 allows for the stdout buffer to fill up under certain circumstances
[22:19:03] k13nox: has joined #ruby
[22:19:13] sandstrom: has joined #ruby
[22:19:13] grill: this seems to lead to a situation in which a command will hanf indefinitely
[22:20:02] solars: has joined #ruby
[22:20:42] Coldblackice: has joined #ruby
[22:20:45] jottr_: has joined #ruby
[22:21:37] nfk: has joined #ruby
[22:21:38] solars: has joined #ruby
[22:21:43] s00pcan: has joined #ruby
[22:22:52] toretore: has joined #ruby
[22:24:05] grill: how would one go about flushing stdout when it gets too full
[22:24:14] duncanm: has joined #ruby
[22:24:58] duncanm: has joined #ruby
[22:25:00] blackmes1: has joined #ruby
[22:25:52] emilford: has joined #ruby
[22:26:20] chussenot: has joined #ruby
[22:29:35] waheedi: has joined #ruby
[22:32:09] slash_nick: $stdout.flush ?
[22:32:28] mary5030: has joined #ruby
[22:32:35] slash_nick: http://ruby-doc.org/core-2.2.2/IO.html#method-i-flush
[22:32:55] kaleido: has joined #ruby
[22:36:01] blandflakes: has joined #ruby
[22:37:33] volty: has joined #ruby
[22:37:33] uris: has joined #ruby
[22:38:16] jgt1: has joined #ruby
[22:38:30] joonty: has joined #ruby
[22:39:25] volty: hi, I have to pass as a param the string "#{@x}, #{@y}", but I want to prevent interpolation till I need it (later, with instance_eval). How can this be done?
[22:40:21] Xeago: has joined #ruby
[22:41:11] yfeldblum: has joined #ruby
[22:41:12] piotrj: has joined #ruby
[22:42:07] dexter_: has joined #ruby
[22:42:39] Guest38: has joined #ruby
[22:43:13] zenlot1: has joined #ruby
[22:43:22] s00pcan: has joined #ruby
[22:43:27] ElFerna_: has joined #ruby
[22:43:40] _seanc_: has joined #ruby
[22:43:47] volty: with Proc?
[22:43:57] kaleido: anyone use bcrypt?
[22:44:08] kaleido: im a noob and struggling with how to check if a password is correct
[22:44:20] havenwood: has joined #ruby
[22:45:04] devbug: has joined #ruby
[22:45:54] pedahzur: has joined #ruby
[22:45:56] Xeago: has joined #ruby
[22:46:26] blandflakes: has joined #ruby
[22:46:38] oetjenj: has joined #ruby
[22:49:22] k13nox_: has joined #ruby
[22:50:07] Musashi007: has joined #ruby
[22:50:35] duderonomy: has joined #ruby
[22:54:32] ledestin: has joined #ruby
[22:56:03] 7GHAB6A6A: has joined #ruby
[22:56:25] Ebok: has joined #ruby
[22:58:23] duncannz: has joined #ruby
[22:59:08] zacstewart: has joined #ruby
[22:59:20] atmosx: has joined #ruby
[23:00:06] ledestin: has joined #ruby
[23:02:05] havenwood: has joined #ruby
[23:04:19] devbug: has joined #ruby
[23:04:41] mostlybadfly: has joined #ruby
[23:04:48] Ox0dea: volty: As long as you're sure you don't need something a little heavier (a templating engine), yeah, using a Proc to delay the render isn't a bad approach: https://eval.in/510024
[23:05:01] asccigcc: has joined #ruby
[23:05:26] baweaver: has joined #ruby
[23:08:42] duckpuppy: has joined #ruby
[23:08:45] Xeago: has joined #ruby
[23:09:35] mary5030_: has joined #ruby
[23:10:19] piotrj: has joined #ruby
[23:11:04] uri___: has joined #ruby
[23:13:00] visudo: has joined #ruby
[23:15:14] Ox0dea: Er, not even sure what I was thinking there.
[23:15:28] skade: has joined #ruby
[23:15:49] Ox0dea: You won't be able to just #instance_eval with the string as the body of the block, though; you'll either have to call a method or a Proc.
[23:15:51] volty: right, right, I was doing it
[23:16:16] Ox0dea: In short, interpolation happens immediately as the string is "encountered" during evaluation.
[23:16:22] volty: https://eval.in/private/cca4c7eb0cac6d
[23:16:44] Ox0dea: Holy hard tabs, Batman.
[23:16:55] volty: wait, I have them :)
[23:17:05] cmckee: has joined #ruby
[23:17:23] Ox0dea: `block` as the first parameter is weird.
[23:17:42] volty: https://eval.in/private/c921a9ccd5b46d
[23:17:56] idefine: has joined #ruby
[23:18:02] volty: not at all (weird) in my context
[23:18:22] tomchapin: has joined #ruby
[23:18:39] volty: it's an essential parameters that comes in place of (default) string param for Qt::Label
[23:18:48] Ox0dea: It's definitionally misleading; a method can only receive an actual block as its last "argument".
[23:19:00] Xeago: has joined #ruby
[23:19:07] dudedudeman: i???ve got a script given me the link of a particular file that i want to download. how can i have ruby visit that link(that is stored in a variabel) and download it for me?
[23:19:12] Ox0dea: Proc != block, to clarify.
[23:20:09] volty: Ox0dea: I do not need a block. I can't even have a block there. It's Qt initializers that deal with blocks. Believe me that the right approach, in qt's context, is this one.
[23:20:24] Ox0dea: Ah, fair enough, I guess.
[23:21:46] Ox0dea: dudedudeman: File.write 'foo', Net::HTTP.new('example.com').get('/foo').body
[23:22:10] LoneHermit: has joined #ruby
[23:22:12] Ox0dea: Or just `curl -O example.com/foo`. :P
[23:22:27] dudedudeman: ha, curl is how i have it implemented right now???. but??????.. lol
[23:22:35] dudedudeman: i know i???m better than that ha
[23:23:02] tomchapin: has joined #ruby
[23:23:39] futilegames: has joined #ruby
[23:25:11] sandstrom: has joined #ruby
[23:26:34] uris: has joined #ruby
[23:26:38] Ox0dea: "Reinvent the wheel only that you would improve it."
[23:27:15] LoneHerm_: has joined #ruby
[23:27:17] Ox0dea: Alternatively, "it's never too late to reinvent the bicycle".
[23:31:38] goodroot: has joined #ruby
[23:32:46] shevy: oh bicycle - these guys tried to reinvent it: http://tnx.nl/php.jpg
[23:32:51] dudedudeman: Ox0dea: very true
[23:33:10] dudedudeman: download = open("#{@uri}")
[23:33:11] dudedudeman: IO.copy_stream(download, '~/test.apk')
[23:33:27] dudedudeman: but i realized that my download is behind an authentication wall :/
[23:34:16] k13nox: has joined #ruby
[23:35:43] symm-: has joined #ruby
[23:35:52] pandaant: has joined #ruby
[23:35:56] shevy: the dudedudeman is trying to break through the chinese wall!
[23:36:16] dudedudeman: sadly, no. it???s behind the wall of one of our own damn servers lol
[23:37:47] arescorpio: has joined #ruby
[23:38:23] robbyoconnor: has joined #ruby
[23:39:14] joonty: has joined #ruby
[23:42:19] sandstrom: has joined #ruby
[23:48:42] arlek: has joined #ruby
[23:49:55] pawnbox: has joined #ruby
[23:50:56] _seanc_: has joined #ruby
[23:52:42] jhack: has joined #ruby
[23:53:14] _p0p0pr37: has joined #ruby
[23:53:26] akkmaxon: has joined #ruby
[23:54:00] renderful: has joined #ruby
[23:55:06] mjuszczak: has joined #ruby
[23:55:39] holman: has joined #ruby
[23:56:04] ur5us: has joined #ruby
[23:56:45] elifoster: has joined #ruby
[23:56:49] dopamean1: has joined #ruby
[23:57:51] robbyoconnor: has joined #ruby
[23:57:52] PaulCape_: has joined #ruby
[23:58:21] htmldrum_: has joined #ruby
[23:58:42] CoderPuppy: has joined #ruby
[23:58:52] flughafen_: has joined #ruby
[23:59:06] it_tard: has joined #ruby
[23:59:08] nerium_: has joined #ruby
[23:59:10] blackgoat_: has joined #ruby
[23:59:15] lagweezl1: has joined #ruby
[23:59:58] sandstrom: has joined #ruby