« Back to channel list

#ruby - 16 February 2016

« Back 1 day Forward 1 day »
[00:00:22] platzhirsch: Well I think they are there to implement higher-level concurrency primitives?
[00:00:27] platzhirsch: for instance TwoFibres
[00:00:29] drale2k: sphex: ok thanks
[00:01:16] tubulife-: has joined #ruby
[00:03:44] sphex: shevy: they're more lightweight threads pretty much. much less crazy to implement than full continuations. but the thing is, Fibers are used automatically when using enumerators in a certain way (which is awesome), but also they seem to hide away the thread-local storage because of that IIUC, which is super annoying...
[00:05:16] sphex: drale2k: if you keep receiving data on those sockets, eventually the kernel-side buffer will fill up, and the sender will have to slow down and stop, so there's a limit to how much memory will be wasted for each socket. it won't just keep building up because you're not reading them.
[00:06:03] drale2k: sphex: i am receiving GPS data in binary form and i need to figure out how to do this properly
[00:06:10] frozen3: has joined #ruby
[00:06:25] blackmesa: has joined #ruby
[00:06:25] drale2k: atm i have a TCPServer started with a Thread which loops
[00:06:37] idefine: has joined #ruby
[00:07:38] sphex: drale2k: that's one connection at a time right?
[00:07:42] drale2k: so the TCPServer runs forever but i close the Thread
[00:07:57] drale2k: well multiple GPS devices can send at once
[00:08:04] idefine: has joined #ruby
[00:08:26] drale2k: i have never done anything like this
[00:09:04] drale2k: if 3 devices start sending data, will they all use the same TCPServer (all send to the same port) or will they use 3 sockets?
[00:09:07] sphex: drale2k: maybe let the thread close the socket itself when it is done, then terminate by itself
[00:09:32] sphex: drale2k: yeah, each accept() gets you a new socket, which can be used concurrently
[00:09:47] kirillzh: has joined #ruby
[00:10:14] drale2k: so basically 1 socket per GPS device
[00:11:44] themsay2: has joined #ruby
[00:12:28] intrigueD: has joined #ruby
[00:12:35] Xeago: has joined #ruby
[00:13:56] hays: has joined #ruby
[00:16:17] idefine: has joined #ruby
[00:17:00] ur5us: has joined #ruby
[00:17:17] groundnuty: has joined #ruby
[00:17:19] Xeago: has joined #ruby
[00:17:22] weemsledeux: has joined #ruby
[00:20:20] hakunin_: has joined #ruby
[00:22:53] davedev24: has joined #ruby
[00:24:23] dlitvak: has joined #ruby
[00:24:47] askhat: has joined #ruby
[00:25:25] kirillzh: has joined #ruby
[00:26:20] ss_much: has joined #ruby
[00:26:49] kirillzh: has joined #ruby
[00:27:36] idefine: has joined #ruby
[00:28:27] millerti: has joined #ruby
[00:28:52] nickjj: has joined #ruby
[00:30:13] ElFerna_: has joined #ruby
[00:33:23] youngmathimus0: has joined #ruby
[00:38:07] sinkensabe: has joined #ruby
[00:38:32] shazaum: has joined #ruby
[00:39:15] roshanavand: has joined #ruby
[00:40:32] asccigcc: has joined #ruby
[00:40:58] TomPeed: has joined #ruby
[00:43:01] x77686d: has joined #ruby
[00:43:34] ElFerna_: has joined #ruby
[00:47:48] therealtesseract: has joined #ruby
[00:49:30] frozen3: has joined #ruby
[00:51:25] learning: has joined #ruby
[00:51:45] cjbottaro: has joined #ruby
[00:56:06] dlitvak: has joined #ruby
[00:56:50] DLSteve: has joined #ruby
[00:58:28] Ebok: has joined #ruby
[00:58:46] skweek: has joined #ruby
[01:00:35] rgtk: has joined #ruby
[01:02:51] solocshaw: has joined #ruby
[01:03:25] Channel6: has joined #ruby
[01:04:51] rgtk_: has joined #ruby
[01:05:50] vdamewood: has joined #ruby
[01:06:55] rgtk: has joined #ruby
[01:07:23] bklane: has joined #ruby
[01:07:48] cyclonis_: has joined #ruby
[01:08:45] rgtk: has joined #ruby
[01:09:47] tubulife-: has joined #ruby
[01:10:00] Damien22: has joined #ruby
[01:10:50] rgtk: has joined #ruby
[01:12:07] stannard: has joined #ruby
[01:12:36] rgtk: has joined #ruby
[01:13:33] pawnbox: has joined #ruby
[01:14:25] rgtk: has joined #ruby
[01:15:25] nickjj: has joined #ruby
[01:15:38] paradisaeidae: has joined #ruby
[01:16:20] rgtk: has joined #ruby
[01:17:24] darkf_: has joined #ruby
[01:18:15] rgtk: has joined #ruby
[01:20:05] rgtk_: has joined #ruby
[01:22:00] rgtk: has joined #ruby
[01:22:35] MrSamuel: has joined #ruby
[01:22:56] MrSamuel: Is there some way with a hash to write hash.with_value(key) {|value| ???}
[01:23:03] MrSamuel: when value might be nil
[01:23:23] MrSamuel: the block is not invoked if has.include? key is false
[01:23:42] MrSamuel: kind of like the opporsite of hash.fetch
[01:23:45] rgtk: has joined #ruby
[01:24:03] TomPeed: has joined #ruby
[01:24:23] bklane_: has joined #ruby
[01:25:42] sucks: has joined #ruby
[01:25:45] rgtk: has joined #ruby
[01:26:30] idefine: has joined #ruby
[01:26:47] ur5us: has joined #ruby
[01:27:40] rgtk: has joined #ruby
[01:27:56] nickjj: has joined #ruby
[01:29:30] Ox0dea: MrSamuel: If you're on 2.3, you might consider doing it with the safe navigation operator.
[01:29:33] rgtk: has joined #ruby
[01:30:10] Ox0dea: >> h = {a: 21}; [h&.[](:a) * 2, h&.[](:b)&.*(2)]
[01:30:11] ruby[bot]: Ox0dea: # => [42, nil] (https://eval.in/519178)
[01:30:15] Ox0dea: That's pretty gross, though.
[01:31:12] kirillzh: has joined #ruby
[01:31:18] rgtk: has joined #ruby
[01:31:53] sinkensabe: has joined #ruby
[01:31:57] casadei: has joined #ruby
[01:32:31] Ox0dea: `yield self[key] if key? key` is a fine definition for Hash#with_value if you really want it.
[01:33:30] floror: has joined #ruby
[01:34:15] pickandmix: has joined #ruby
[01:35:26] rgtk: has joined #ruby
[01:36:07] Coldblackice: has joined #ruby
[01:36:22] bklane: has joined #ruby
[01:37:26] rgtk: has joined #ruby
[01:37:48] johnmilton: has joined #ruby
[01:38:18] floror: has joined #ruby
[01:38:58] floror: has left #ruby: ()
[01:39:21] rgtk: has joined #ruby
[01:39:58] nerium: has joined #ruby
[01:41:02] baweaver: has joined #ruby
[01:41:16] rgtk: has joined #ruby
[01:41:27] jackjackdripper1: has joined #ruby
[01:43:11] rgtk: has joined #ruby
[01:43:18] jamw: has joined #ruby
[01:43:24] nerium: has joined #ruby
[01:43:32] MrSamuel: What does the safe navigaiton operator give on nil entries?
[01:43:37] MrSamuel: e.g. {x: nil}
[01:43:51] ruby[bot]: Why don't you try it and see for yourself?
[01:44:20] Xeago: has joined #ruby
[01:45:01] rgtk: has joined #ruby
[01:45:57] nickjj: has joined #ruby
[01:46:17] idefine: has joined #ruby
[01:46:58] rgtk: has joined #ruby
[01:47:46] tjbiddle: has joined #ruby
[01:49:01] rgtk: has joined #ruby
[01:49:44] bklane_: has joined #ruby
[01:50:43] rgtk: has joined #ruby
[01:50:54] swills: has joined #ruby
[01:51:27] goodcodeguy: has joined #ruby
[01:52:04] karmatr0n: has joined #ruby
[01:52:33] rgtk: has joined #ruby
[01:53:05] pawnbox: has joined #ruby
[01:54:28] rgtk: has joined #ruby
[01:54:44] dlitvak: has joined #ruby
[01:56:15] rgtk: has joined #ruby
[01:58:15] rgtk: has joined #ruby
[01:58:24] tubulife-: has joined #ruby
[01:59:17] idefine: has joined #ruby
[02:00:07] rgtk: has joined #ruby
[02:01:13] bklane: has joined #ruby
[02:01:41] openstruct: has joined #ruby
[02:02:05] rgtk: has joined #ruby
[02:03:55] rgtk: has joined #ruby
[02:04:10] avenj: has joined #ruby
[02:04:10] avenj: has joined #ruby
[02:04:25] shazaum_: has joined #ruby
[02:05:50] rgtk: has joined #ruby
[02:07:45] rgtk: has joined #ruby
[02:08:48] baweaver: has joined #ruby
[02:09:17] houhoulis: has joined #ruby
[02:09:35] rgtk: has joined #ruby
[02:09:42] mrmargolis: has joined #ruby
[02:11:02] juanfra: has joined #ruby
[02:11:32] rgtk: has joined #ruby
[02:11:51] stevemackinnon: has joined #ruby
[02:12:03] bklane: has joined #ruby
[02:12:32] jamw: has joined #ruby
[02:13:23] rgtk: has joined #ruby
[02:13:51] PaulCapestany: has joined #ruby
[02:15:18] rgtk: has joined #ruby
[02:16:05] karapetyan: has joined #ruby
[02:16:31] infernix: has joined #ruby
[02:17:10] rgtk: has joined #ruby
[02:18:08] roshanavand: has joined #ruby
[02:18:21] dlitvak_: has joined #ruby
[02:19:03] avahey: has joined #ruby
[02:19:05] rgtk: has joined #ruby
[02:19:51] underplank: has joined #ruby
[02:21:00] rgtk: has joined #ruby
[02:21:13] bklane: has joined #ruby
[02:21:28] houhoulis: has joined #ruby
[02:21:58] dlitvak: has joined #ruby
[02:22:50] rgtk: has joined #ruby
[02:24:43] rgtk: has joined #ruby
[02:26:20] kirillzh: has joined #ruby
[02:26:28] rgtk: has joined #ruby
[02:28:30] rgtk: has joined #ruby
[02:28:50] bklane_: has joined #ruby
[02:30:25] rgtk: has joined #ruby
[02:31:06] ur5us: has joined #ruby
[02:32:20] rgtk: has joined #ruby
[02:33:13] pawnbox: has joined #ruby
[02:33:15] sauvin: has joined #ruby
[02:33:36] darkf_: has joined #ruby
[02:34:12] rgtk: has joined #ruby
[02:36:09] rgtk: has joined #ruby
[02:37:13] rkazak: has joined #ruby
[02:37:46] pdoherty: has joined #ruby
[02:38:04] rgtk: has joined #ruby
[02:38:09] p1k: has joined #ruby
[02:38:23] rideh: has joined #ruby
[02:38:23] rideh: has joined #ruby
[02:38:52] dlitvak: has joined #ruby
[02:39:23] tulak: has joined #ruby
[02:39:48] zacstewart: has joined #ruby
[02:39:56] rgtk_: has joined #ruby
[02:41:51] rgtk: has joined #ruby
[02:43:35] stevemackinnon: has joined #ruby
[02:43:41] rgtk: has joined #ruby
[02:45:36] rgtk: has joined #ruby
[02:46:14] kies^: has joined #ruby
[02:47:12] yfeldblum: has joined #ruby
[02:47:29] rgtk: has joined #ruby
[02:49:24] rgtk: has joined #ruby
[02:51:14] rgtk: has joined #ruby
[02:53:10] rgtk: has joined #ruby
[02:55:01] rgtk: has joined #ruby
[02:56:28] karmatr0n: has joined #ruby
[02:56:56] rgtk: has joined #ruby
[02:57:31] openstruct: has joined #ruby
[02:57:31] openstruct: has joined #ruby
[02:57:52] sphex: hey. what do you guys think of "service locator/registry" / "inversion of control containers" patterns and the like? is there a better way to do it in ruby?
[02:58:28] underplank: has joined #ruby
[02:58:51] rgtk: has joined #ruby
[02:58:57] rideh: has joined #ruby
[03:00:41] rgtk: has joined #ruby
[03:01:01] kirillzh: has joined #ruby
[03:01:41] cih: has joined #ruby
[03:02:36] rgtk: has joined #ruby
[03:04:26] rgtk: has joined #ruby
[03:05:48] jamw: has joined #ruby
[03:06:21] rgtk_: has joined #ruby
[03:06:49] hays: why jruby? like what is its use case
[03:07:41] nisstyre: has joined #ruby
[03:07:56] rideh: has joined #ruby
[03:08:16] rgtk: has joined #ruby
[03:08:31] fedexo: has joined #ruby
[03:09:24] underplank: has joined #ruby
[03:09:34] r4z3r: hays logstash uses it to get true multithreading to avoid the GIL
[03:09:50] r4z3r: GIL == Global interpreter lock
[03:10:06] Ox0dea: Interoperability with such a massive ecosystem as Java's is nothing to scoff at, either.
[03:10:06] r4z3r: basically makes multithreaded ruby single threaded again
[03:10:09] rgtk: has joined #ruby
[03:10:17] r4z3r: that too Ox0dea
[03:10:37] nisstyre: has joined #ruby
[03:11:09] hays: Ox0dea: hmm ok but C is pretty interoperable, no?
[03:11:19] Ox0dea: hays: Certainly.
[03:11:33] hays: i should learn more about this GIL
[03:12:02] rgtk: has joined #ruby
[03:12:31] Billias: has joined #ruby
[03:12:46] r4z3r: hays I believe https://www.igvita.com/2008/11/13/concurrency-is-a-myth-in-ruby/ was what helped me understand it better due to the images (I'm a visual learner)
[03:13:05] pawnbox: has joined #ruby
[03:13:11] r4z3r: if it doesn't help, feel free to ignore it
[03:13:13] davedev24: has joined #ruby
[03:13:22] sphex: do they plan on making MRI GIL-free eventually? or at least making it more granular...
[03:13:23] JoshL: has joined #ruby
[03:13:32] stevemackinnon: has joined #ruby
[03:13:52] rgtk: has joined #ruby
[03:15:08] r4z3r: sphex I believe it was something that came up for Ruby 3
[03:15:16] r4z3r: it's a major undertaking though
[03:15:50] rgtk: has joined #ruby
[03:16:14] hays: seems like it could break a lot too since the GIL looks to provide some protection against poor thread safety
[03:16:17] chendry: has left #ruby: ()
[03:16:23] sphex: r4z3r: okay
[03:16:47] r4z3r: hays yep ??? things like race conditions are easy program killers
[03:17:15] juanfra: has joined #ruby
[03:17:18] r4z3r: it's why languages like Go who focus on concurrency (without immutability) include things like "-race" when compiling to check for dangerous concurrency patterns
[03:17:20] hays: onw just has to teach their philosophers how to dine properly
[03:17:27] r4z3r: though it's harder in Ruby to protect like that
[03:17:44] rgtk: has joined #ruby
[03:19:17] Mr0rris0: has joined #ruby
[03:19:33] r4z3r: has joined #ruby
[03:19:37] rgtk: has joined #ruby
[03:19:56] sphex: hey.. one thing I'm not sure of: when using built-in classes like Array, Hash, String, etc, is it OK to assume that they do their own locking and that most of their methods could be called directly from different threads?
[03:20:07] sinkensabe: has joined #ruby
[03:21:27] rgtk_: has joined #ruby
[03:21:29] devbug: has joined #ruby
[03:22:29] bithon: has joined #ruby
[03:22:32] jamw: has joined #ruby
[03:23:21] rgtk: has joined #ruby
[03:25:03] youngmathimus0: has joined #ruby
[03:25:15] rgtk: has joined #ruby
[03:26:43] tilllt: has joined #ruby
[03:26:58] rgtk: has joined #ruby
[03:27:38] llua: has joined #ruby
[03:28:27] tatsuo: has joined #ruby
[03:29:03] rgtk: has joined #ruby
[03:30:48] rgtk: has joined #ruby
[03:32:56] sphex: Ropeney: ok
[03:33:28] Ropeney: sphex: look into https://github.com/ruby-concurrency/concurrent-ruby if your interested
[03:35:15] idefine: has joined #ruby
[03:36:56] B1n4r10: has joined #ruby
[03:38:41] idefine: has joined #ruby
[03:38:45] sphex: Ropeney: oh, neat. thanks.
[03:40:22] DmitryBochkarev: has joined #ruby
[03:41:09] sphex: Ropeney: hey, any idea if it has a thing that lets you have thread/fiber-local variables that are "inherited" by other threads/fibers? the built-in thread/fiber locals all disappear in the sub-threads/fibers and I'm trying to workaround that.
[03:41:51] sphex: hrm maybe I'm approaching this the wrong way though, maybe there's a better thing in concurrent-ruby...
[03:42:40] hays: then there is rubinius
[03:42:45] hays: no macport though
[03:42:47] stevemackinnon: has joined #ruby
[03:42:49] hays: just homebrew
[03:42:54] stevemackinnon: has joined #ruby
[03:44:59] karmatr0n: has joined #ruby
[03:45:00] dlitvak: has joined #ruby
[03:45:53] Ebok: has joined #ruby
[03:47:39] Ropeney: hays, that doesn't make your code thread safe though? and sphex I don't have an answer for you sorry.
[03:48:15] baweaver: has joined #ruby
[03:51:02] karapetyan: has joined #ruby
[03:51:12] roshanavand: has joined #ruby
[03:51:13] tjbiddle: has joined #ruby
[03:51:30] polishdub: has joined #ruby
[03:53:30] pawnbox: has joined #ruby
[03:54:50] stevemac_: has joined #ruby
[03:57:59] sucks: has joined #ruby
[04:00:03] underplank: has joined #ruby
[04:02:20] cih: has joined #ruby
[04:02:42] roshanavand: has joined #ruby
[04:02:53] kirillzh: has joined #ruby
[04:05:52] bronson: has joined #ruby
[04:06:44] treaki_: has joined #ruby
[04:10:17] stannard: has joined #ruby
[04:13:59] braincrash: has joined #ruby
[04:14:18] howdoi: has joined #ruby
[04:15:23] juanfra: has joined #ruby
[04:19:43] norc_: has joined #ruby
[04:20:22] DmitryBochkarev: has joined #ruby
[04:20:49] jamw: has joined #ruby
[04:22:13] dlitvak: has joined #ruby
[04:22:22] alphaatom: has joined #ruby
[04:24:28] kalz: has joined #ruby
[04:24:31] sphex: hey so when writing a class-level DSL-style module, it seems like the convention is to make it work when "include"d rather than requiring it to be "extend"ed into the using class. is that what one should do?
[04:24:58] DmitryBochkarev: has joined #ruby
[04:25:52] krz: has joined #ruby
[04:28:09] stardiviner: has joined #ruby
[04:28:10] ledestin: has joined #ruby
[04:28:51] Ox0dea: sphex: They do different things: https://eval.in/519230
[04:30:09] sphex: Ox0dea: yeah, but you can make them do lots of stuff by hooking into "included" and "extended".
[04:30:39] Ox0dea: sphex: Use exactly as much complexity as needed and no more. :)
[04:31:04] gix: has joined #ruby
[04:32:32] sphex: but it seems to me that lots of DSL modules do that. they let you "include" them and then they define class-level helper methods from there.
[04:32:59] sdothum: has joined #ruby
[04:33:06] bronson: has joined #ruby
[04:33:50] Ox0dea: sphex: Do you have an example to hand?
[04:34:33] sdothum: has joined #ruby
[04:35:35] Ox0dea: Hooking Module#included to manually do what Module#extend does seems a little silly.
[04:39:22] sphex: hrm. actually I guess most DSLs let you inherit from them, so it extends and includes at the same time sort of. I guess. I checked so many examples I'm starting to confuse them all.
[04:39:50] hakunin: has joined #ruby
[04:40:07] sphex: Ox0dea: the thing is.. you sometimes need both to define instance methods, and helper class methods, and if you want to provide that as a mixin, AFAIU you'd have to do some extending from included, or some including from extended. :/
[04:40:23] tulak: has joined #ruby
[04:40:42] Ox0dea: sphex: That's true, but the pertinence of those details to your question have only just come to light. :P
[04:41:35] Ox0dea: You could just as well ask users to #include and #extend your thing, but that's not very nice, and is possibly a smell.
[04:42:00] skweek: has joined #ruby
[04:42:19] karapetyan: has joined #ruby
[04:43:19] stevemackinnon: has joined #ruby
[04:44:30] sphex: ah yeah.. by bundling the class-level and instance-level methods in the same module? yeah, not very neat. reminds me of those "extend self" I have seen.
[04:44:53] Ox0dea: We have #module_function for that nowadays.
[04:45:48] Ox0dea: I didn't mean to imply that there aren't perfectly valid use cases for getting fancy in an inclusion hook, mind.
[04:46:21] krz: has joined #ruby
[04:49:56] sphex: Ox0dea: alright. the "module_function" is a shortcut right? It won't "flow-through" an include or otherwise be magic?
[04:50:29] tomchapin: has joined #ruby
[04:50:51] Ox0dea: sphex: #include will never bring along singleton methods.
[04:51:55] twintail: has joined #ruby
[04:57:04] stevemackinnon: has joined #ruby
[04:57:22] sphex: Ox0dea: ok. yeah. only ordinary inheritance does that?
[04:57:59] Ox0dea: sphex: No, singleton methods have to be manually "grafted".
[04:59:59] darkf: has joined #ruby
[05:00:19] perrier: has joined #ruby
[05:01:04] roshanavand: has joined #ruby
[05:04:39] sphex: dammit. I thought I understood that stuff. I had to stop using ruby for a while and now this is all confusing me *again*.
[05:04:44] darkf_: has joined #ruby
[05:05:29] p1k: has joined #ruby
[05:08:34] sinkensabe: has joined #ruby
[05:09:45] houhoulis: has joined #ruby
[05:11:09] sphex: Ox0dea: I must be using the wrong terms, I was thinking of this kind of behavior: https://gist.github.com/Math2/867c4f9ae8a49e0aa366
[05:11:42] pickandmix: has joined #ruby
[05:13:16] Ox0dea: sphex: Ah, gotcha. I only had eyes for #include and #extend, which also fit under the umbrella of inheritance.
[05:14:14] Ox0dea: That's a great name for a method on A, by the way. :P
[05:15:18] darkf: has joined #ruby
[05:15:40] sphex: oh yeah.. I remember. they also show up in "ancestors". it's inheritance too. and modifying a module after it has been included will still affect the module that included it...
[05:16:35] frozen3: has joined #ruby
[05:16:38] Ox0dea: Right. Method resolution is much simpler than it might at first seem.
[05:16:48] william3: has joined #ruby
[05:17:28] sphex: hey thanks Ox0dea
[05:17:54] Ox0dea: No worries.
[05:18:51] PaulCape_: has joined #ruby
[05:21:27] sphex: you've been answering my questions since forever on this channel!
[05:22:42] sphex: hrm possibly even exactly these questions :/
[05:22:50] adgtl: has joined #ruby
[05:23:47] krz: has joined #ruby
[05:24:35] Ox0dea: sphex: Our first encounter: http://logs.ryanbigg.com/ruby?date=2015-06-28#3492216
[05:24:52] Ox0dea: Good times. <3
[05:26:00] PaulCapestany: has joined #ruby
[05:26:52] sphex: haha. huh. mildly disturbing. I'm still not fully mentally prepared for 1984.
[05:27:27] Ox0dea: You have always been at war with publicity.
[05:27:37] tilllt: has joined #ruby
[05:34:04] LoneHerm_: has joined #ruby
[05:34:21] dexter_: has joined #ruby
[05:34:33] benlieb: has joined #ruby
[05:36:42] Ox0dea: sphex: Can't speak to your C fluency, but this was the presentation that really clarified everything for me: https://youtu.be/NlPxvRSUVQI?t=749
[05:42:00] sphex: Ox0dea: oh yeah this should help. I'll watch that later for sure. thanks!
[05:43:13] Ox0dea: Sure thing. :)
[05:43:20] sphex: RClass sure looks *alot* cleaner than Perl's SVs
[05:43:27] Ox0dea: Definitely.
[05:44:29] Ox0dea: Not sure what Perl 6 looks like under the hood, but my bet's on "scary".
[05:45:59] idefine: has joined #ruby
[05:46:22] idefine: has joined #ruby
[05:46:24] astrobunny: has joined #ruby
[05:46:27] ruby[bot]: -b materia!*@*$#ruby-banned
[05:49:27] baweaver: has joined #ruby
[05:49:38] Bloomer: has joined #ruby
[05:51:30] cih: has joined #ruby
[05:53:57] stardiviner: has joined #ruby
[05:54:47] idefine_: has joined #ruby
[05:55:33] adgtl: has joined #ruby
[05:56:30] _djbkd: has joined #ruby
[06:03:39] sinkensabe: has joined #ruby
[06:04:00] karapetyan: has joined #ruby
[06:06:23] astrobunny: has joined #ruby
[06:08:16] kp666: has joined #ruby
[06:10:23] ayonkhan: has joined #ruby
[06:11:42] dlitvak: has joined #ruby
[06:12:04] youngmathimus0: has joined #ruby
[06:13:45] idefine: has joined #ruby
[06:14:58] _djbkd: has joined #ruby
[06:15:18] benlieb: has joined #ruby
[06:17:55] pawnbox: has joined #ruby
[06:18:06] chipotle: has joined #ruby
[06:18:36] ur5us: has joined #ruby
[06:20:36] neanderslob: has joined #ruby
[06:21:41] neanderslob_: has joined #ruby
[06:23:28] baweaver: has joined #ruby
[06:28:21] framling: has joined #ruby
[06:28:26] Don_John: has joined #ruby
[06:28:29] cpup: has joined #ruby
[06:31:12] Macaveli: has joined #ruby
[06:33:38] sinkensabe: has joined #ruby
[06:36:12] roshanavand: has joined #ruby
[06:36:14] the_drow: has joined #ruby
[06:38:39] beawesomeinstead: has joined #ruby
[06:38:45] norc_: has joined #ruby
[06:41:17] tulak: has joined #ruby
[06:43:02] araujo_: has joined #ruby
[06:43:49] duncannz: has joined #ruby
[06:44:12] shevy: perl 6 can look wild
[06:44:58] lxsameer: has joined #ruby
[06:49:02] Macaveli: has joined #ruby
[06:50:05] ur5us: has joined #ruby
[06:51:01] baweaver: Is that what we're calling Ox0dea's code golfing now?
[06:51:08] idefine: has joined #ruby
[06:52:02] ur5us_: has joined #ruby
[07:00:24] TomyLobo: has joined #ruby
[07:01:11] yardenbar: has joined #ruby
[07:01:56] srenatus: has joined #ruby
[07:02:30] dubek: has joined #ruby
[07:07:53] solars: has joined #ruby
[07:08:14] blaxter: has joined #ruby
[07:08:52] norc: Ox0dea: did you read about my idea yesterday?
[07:10:48] Ox0dea: norc: Must've missed it?
[07:12:16] norc: Ox0dea: My idea was to introduce trigraphs from C to Ruby.
[07:12:37] norc: Ox0dea: Obviously we do not want to exclude obscure EBCDIC users from writing beautiful Ruby code.
[07:12:46] Ox0dea: You're right.
[07:13:22] last_staff: has joined #ruby
[07:13:37] Ox0dea: https://www.gnu.org/software/autoconf/manual/autoconf-2.66/html_node/Quadrigraphs.html
[07:13:41] Ox0dea: Oh, Autoconf.
[07:14:03] norc: Ox0dea: Just think of code fragments like this: ??<_??(????)=>????>
[07:14:08] norc: Surely they fit well into your common gists.
[07:14:18] Ox0dea: My... common gists?
[07:15:48] scepticulous: has joined #ruby
[07:16:08] Ox0dea: I meant to show you this: https://glot.io/snippets/ebywlopdvk
[07:16:45] Ox0dea: You can define a method whose name clashes with any keyword, but that's the only one you can call.
[07:17:16] Ox0dea: Doesn't actually invoke your method, of course.
[07:17:23] krz: has joined #ruby
[07:17:41] norc: Big wtf.
[07:17:57] norc: The fact that you can call not() - yes.
[07:18:05] Ox0dea: It's not actually a call.
[07:18:10] Ox0dea: It's just grouping.
[07:18:46] Ox0dea: You could make it look like you were calling `and` and `or` as well if you had an LHS.
[07:18:51] SOLDIERz: has joined #ruby
[07:19:37] Ox0dea: It's the only "unary keyword", so to speak.
[07:21:06] Ox0dea: norc: I found out how to get a method's default arguments without mucking about with bytecode. :)
[07:21:15] tvw: has joined #ruby
[07:24:23] moeabdol2: has joined #ruby
[07:25:26] karapetyan: has joined #ruby
[07:26:31] idefine: has joined #ruby
[07:26:47] burgestrand: has joined #ruby
[07:26:50] sinkensabe: has joined #ruby
[07:27:06] Ox0dea: Thoughts on what's going on here? https://eval.in/519286
[07:27:28] Ox0dea: Why should defining the keyword methods rob `true` of its #to_s?
[07:28:29] tilllt: has joined #ruby
[07:28:41] moeabdol: has joined #ruby
[07:30:10] Mutter: has joined #ruby
[07:30:51] colegatron: has joined #ruby
[07:31:16] roshanavand: has joined #ruby
[07:32:12] william3: has joined #ruby
[07:36:23] tjbiddle: has joined #ruby
[07:38:36] troulouliou_div2: has joined #ruby
[07:40:14] cih: has joined #ruby
[07:42:49] last_staff: has joined #ruby
[07:43:01] firstdayonthejob: has joined #ruby
[07:43:55] Prira: has joined #ruby
[07:45:45] p7r: has joined #ruby
[07:45:52] ammar: has joined #ruby
[07:45:55] gypsydave5: has joined #ruby
[07:46:25] roshanavand: has joined #ruby
[07:46:30] zenergi: has joined #ruby
[07:46:34] Janno: has joined #ruby
[07:46:46] ruisantos: has joined #ruby
[07:47:10] Biohazard: has joined #ruby
[07:47:10] creat: has joined #ruby
[07:47:20] nlsun: has joined #ruby
[07:47:29] csaunders: has joined #ruby
[07:47:34] cyphactor: has joined #ruby
[07:47:35] sandstrom: has joined #ruby
[07:47:53] mclee: has joined #ruby
[07:47:56] Radar: has joined #ruby
[07:48:07] yqfvwal: has joined #ruby
[07:48:13] Suntzu: has joined #ruby
[07:48:19] hfp_work: has joined #ruby
[07:48:29] ekem: has joined #ruby
[07:48:31] isene: has joined #ruby
[07:48:35] perry: has joined #ruby
[07:48:35] perry: has joined #ruby
[07:48:44] Fridtjof: has joined #ruby
[07:48:46] async_prince: has joined #ruby
[07:49:00] Canar: has joined #ruby
[07:49:53] lsmola: has joined #ruby
[07:51:21] LoneHerm_: has joined #ruby
[07:56:30] william3: has joined #ruby
[08:00:20] jaiks: has joined #ruby
[08:02:06] t0ggah: has joined #ruby
[08:07:19] skade: has joined #ruby
[08:09:11] rgtk: has joined #ruby
[08:11:01] Spami: has joined #ruby
[08:11:57] Macaveli: has joined #ruby
[08:12:26] drbrain: Ox0dea: seems to be a pry bug
[08:12:34] drbrain: `ruby` doesn't have that problem
[08:12:39] Ox0dea: Nor `irb`.
[08:13:04] Infra-Red: has joined #ruby
[08:13:05] drbrain: I get "private method `class' called for #<CodeRay::Scanners::Ruby (uninitialized)>" if I try to do more things
[08:13:19] drbrain: bed time for me
[08:14:20] mlehrer: has joined #ruby
[08:14:34] ocbtec: has joined #ruby
[08:14:53] atmosx: has joined #ruby
[08:16:28] speakingcode: has joined #ruby
[08:17:31] tulak: has joined #ruby
[08:18:23] idefine: has joined #ruby
[08:21:01] norc_: Ox0dea: https://gist.github.com/anonymous/a01ddfd51c28bded06c9
[08:21:09] norc_: try this and watch it asplode.
[08:21:18] Ox0dea: Yes, that certainly does it.
[08:22:09] Ox0dea: And I found where Pry is explicitly doing that weird `true` printing, but I haven't figured out the root cause just yet.
[08:22:11] norc_: I have a feeling whats happening internally.
[08:22:38] weemsledeux: has joined #ruby
[08:23:08] Ox0dea: Do go on.
[08:24:28] Ox0dea: Mind, `def class; end` just the once is enough to make any subsequent interaction go pear-shaped.
[08:24:48] norc: Thats what I just reduced it too.
[08:25:13] Ishido: has joined #ruby
[08:25:46] sepp2k: has joined #ruby
[08:25:58] norc: Ox0dea: Well, lets ignore the specific error messages, Im guessing these just happen while the keyword class was fucked up.
[08:26:06] Ox0dea: And, but, well, it's pretty obvious why redefining Object#class would wreak havoc.
[08:26:07] norc: And that basically prevents pry from working.
[08:26:18] Ox0dea: >> def class; end; 42.class
[08:26:19] ruby[bot]: Ox0dea: # => /tmp/execpad-d9f0831991c7/source-d9f0831991c7:4:in `rescue in <main>': private method `class' called ...check link for more (https://eval.in/519299)
[08:26:50] Ox0dea: Classes don't specialize #class, and why would they?
[08:27:07] norc: I completely forgot about #class method.
[08:27:11] troulouliou_div2: has joined #ruby
[08:27:23] Ox0dea: Too much MRI; not enough Ruby.
[08:27:46] norc: By the way, I still want to use refinements in pry :(
[08:27:54] antgel: has joined #ruby
[08:28:04] Ox0dea: I... showed you how?
[08:28:11] edwinvdgraaf: has joined #ruby
[08:28:15] norc: Not that I can remember
[08:29:26] einarj: has joined #ruby
[08:29:32] Ox0dea: https://eval.in/512968
[08:30:16] norc: Clearly I must have not read the documentation about refinements carefully enough.
[08:30:48] Ox0dea: What makes you say so?
[08:31:20] norc: The eval.in snippet you showed me.
[08:31:24] norc: Nevermind.
[08:31:28] Ox0dea: RuntimeError: main.using is permitted only at toplevel
[08:31:39] Ox0dea: We have to trick Pry into thinking it's at the top level.
[08:31:42] norc: Ox0dea: Please to rename that method to memcpy though. :p
[08:31:50] Ox0dea: I wanted to so bad!
[08:31:54] Ox0dea: You don't even know.
[08:31:57] oqsljs: has joined #ruby
[08:33:50] symm-: has joined #ruby
[08:36:52] anisha: has joined #ruby
[08:38:44] ilhami: has joined #ruby
[08:38:47] ilhami: shevy, sup ?
[08:40:00] andikr: has joined #ruby
[08:44:43] solars: hi guys, can anyone help me out of quotes hell: source[2].inspect
[08:45:18] solars: hi guys, can anyone help me out of quotes hell: https://gist.github.com/solars/9dc5ace440d5962cf0e8 I'm trying to change this to "normal" quotes, but have no idea how to escape that for .sub
[08:46:22] patchedmonkey: has joined #ruby
[08:47:14] astrobunny: has joined #ruby
[08:48:59] t0ggah: has joined #ruby
[08:49:13] roshanavand: has joined #ruby
[08:49:44] roshanavand: has joined #ruby
[08:50:06] aufi: has joined #ruby
[08:50:10] spacemud: has joined #ruby
[08:50:17] Xeago: has joined #ruby
[08:50:50] chooky: has joined #ruby
[08:51:16] kerunaru: has joined #ruby
[08:52:03] jamw: has joined #ruby
[08:52:32] LoneHerm_: has joined #ruby
[08:55:38] sandstrom: has joined #ruby
[08:58:00] bronson: has joined #ruby
[08:58:07] snowy: has joined #ruby
[08:59:40] Imlerith: has joined #ruby
[09:00:09] mdw: has joined #ruby
[09:01:34] drptbl: has joined #ruby
[09:01:49] mdw: has joined #ruby
[09:01:52] Imlerith: i m new to ruby and i gone through the basic tutorials on ruby can anyone tell what should i do next so that i get more comfortable in ruby , can u tell me any good projects to start with.
[09:01:54] tesuji: has joined #ruby
[09:01:58] tesuji: has joined #ruby
[09:03:12] adaedra: read more advanced tutorial, find ruby projects (github is your friend) and try to read code, or even better contribute, do some small tools you may need.
[09:03:16] Ox0dea: adaedra: It's a troll.
[09:03:33] ilhami: Ox0dea, how do you know?
[09:03:40] Ox0dea: Their nick is an anagram of "I'm Hitler".
[09:04:02] Ox0dea: ??\_(???)_/??
[09:04:12] ilhami: are you kidding me?
[09:04:45] Ox0dea: Aw, jeeze. Sorry.
[09:04:50] rbennacer: has joined #ruby
[09:04:51] Ox0dea: It's a Witcher 3 reference. :/
[09:05:09] Ox0dea: My apologies, Imlerith. Start by scratching an itch.
[09:05:36] adaedra: How do you even see those things.
[09:05:43] Eising: lol, that escalated quickly
[09:06:01] Imlerith: Ox0dea , never saw that " I'm Hitler "
[09:06:14] Ox0dea: #2spooky4me
[09:06:20] ilhami: Ox0dea, you are crazy man.
[09:06:30] Ox0dea: ilhami: Could you clarify?
[09:06:36] cih: has joined #ruby
[09:09:04] mark4: has joined #ruby
[09:09:37] Xeago: has joined #ruby
[09:13:16] spm_draget: has left #ruby: ("part")
[09:14:23] Ox0dea: Imlerith: What sort of programs have you written so far?
[09:14:43] SCHAAP137: has joined #ruby
[09:15:05] ilhami: Ox0dea, :D:D:D
[09:16:16] jaiks: has joined #ruby
[09:16:30] kuba_kaz: has joined #ruby
[09:16:33] kuba_kaz: has left #ruby: ()
[09:18:19] baweaver: has joined #ruby
[09:18:21] pandaant: has joined #ruby
[09:21:48] ddv: I didn't know Hitler was a good Ruby programmer
[09:23:25] infernix: has joined #ruby
[09:24:13] snowy: has joined #ruby
[09:25:04] kp666: has joined #ruby
[09:25:17] tatsuo: has joined #ruby
[09:25:38] MrSamuel: has joined #ruby
[09:26:29] wwwbukolaycom: has joined #ruby
[09:26:36] ilhami: ddv, then you didn't know him enough. :P
[09:28:47] rvchangue: has joined #ruby
[09:29:19] tilllt: has joined #ruby
[09:30:07] f4cl3y: has joined #ruby
[09:30:27] william3: has joined #ruby
[09:30:33] idefine: has joined #ruby
[09:30:51] UtkarshRay: has joined #ruby
[09:31:02] drptbl: has joined #ruby
[09:31:12] resin: has joined #ruby
[09:32:46] blackmesa: has joined #ruby
[09:32:51] blur3d: has joined #ruby
[09:32:58] FooMunki: has joined #ruby
[09:33:29] Gnut: has joined #ruby
[09:34:36] kam270: has joined #ruby
[09:39:18] claw: hey everyone, is there a way to alter the useragent (http) globally ? i coundn't find anything. it defaults to 'Ruby' i guess that shoulb be stored *somewhere*
[09:39:52] william3: has joined #ruby
[09:40:30] adaedra: using what? Net::HTTP?
[09:43:23] Dios: has joined #ruby
[09:43:46] marr: has joined #ruby
[09:45:10] tomchapin: has joined #ruby
[09:45:12] the_drow: has joined #ruby
[09:45:27] mhoungbo: has joined #ruby
[09:46:37] claw: adaedra: actually using anything thas uses Net::HTTP so also gems. I would like to alter the default
[09:46:56] Ox0dea: claw: It's per-request object.
[09:46:58] rodfersou: has joined #ruby
[09:47:06] adaedra: Other gems may have a different way of setting it.
[09:48:02] sandstrom: has joined #ruby
[09:48:16] dmolina: has joined #ruby
[09:48:23] tubulife-: has joined #ruby
[09:48:26] flughafen: hey peoples;
[09:48:59] Ox0dea: >> require 'net/http'; Array.new(3) { Net::HTTP::Get.new('/')['User-Agent'].__id__ } # claw
[09:49:01] ruby[bot]: Ox0dea: # => [549178920, 549178610, 549178300] (https://eval.in/519329)
[09:49:15] Ox0dea: That demonstrates that it's a different object each time. :/
[09:49:55] Ox0dea: More user-friendly HTTP libraries are liable to provide some mechanism for setting it, though, as adaedra has suggested.
[09:50:26] araujo: has joined #ruby
[09:51:23] claw: generic_request.rb: self['User-Agent'] ||= 'Ruby'
[09:51:32] claw: there it is
[09:51:56] Ox0dea: That'd be the one.
[09:52:13] claw: but changing net/http is ugly
[09:52:26] Ox0dea: How do you mean?
[09:54:09] claw: its part of the initialize method of Net::HTTPGenericRequest
[09:54:22] Ox0dea: claw: https://eval.in/519332
[09:54:26] swistak35: has joined #ruby
[09:54:27] Ox0dea: Ruby loves you and wants you to be happy.
[09:54:48] claw: Ox0dea: magic
[09:55:02] claw: Ox0dea: thank you very much
[09:55:09] Ox0dea: Happy to help.
[09:55:16] claw: i should lookup what this does :D
[09:55:22] Ox0dea: Definitely.
[09:57:40] cih_: has joined #ruby
[09:57:43] rbennacer: has joined #ruby
[09:58:42] Bloomer: has joined #ruby
[09:59:43] Hounddog: has joined #ruby
[09:59:54] tilllt: has joined #ruby
[10:02:09] Macaveli: has joined #ruby
[10:02:34] tulak: has joined #ruby
[10:03:45] cschorn: has joined #ruby
[10:04:39] voidDotClass: has joined #ruby
[10:04:44] voidDotClass: I'm having a really weird issue.
[10:06:28] jhass: cool, thanks for the info
[10:06:51] voidDotClass: doing tag = Account::TAGS.sample(1)[0], that works. but then if i do: tag[0] = tag[0].capitalize to capitalize the first letter, this then also capitalizes Account::TAGS[0]
[10:07:28] jhass: well sure, ruby is pass by reference
[10:07:32] jhass: and strings are mutable
[10:08:13] jhass: why don't you just tag = Account::TAGS.sample.capitalize ?
[10:09:25] Ox0dea: a = ['foo']; a[0].upcase!; a # voidDotClass
[10:09:32] Ox0dea: >> a = ['foo']; a[0].upcase!; a # voidDotClass
[10:09:33] ruby[bot]: Ox0dea: # => ["FOO"] (https://eval.in/519340)
[10:09:44] Ox0dea: There's a distillation of what jhass intended to convey.
[10:10:03] voidDotClass: jhass, sample returns an array doesn't it?
[10:10:16] jhass: voidDotClass: only if you pass it an argument
[10:10:27] tvw: has joined #ruby
[10:10:29] cschorn: has left #ruby: ()
[10:10:31] voidDotClass: good to know, thanks
[10:11:06] voidDotClass: anyway, so why does tag.capitalize then also capitalizes Account::TAGS[i] where i is index of tag?
[10:11:20] jhass: it doesn't
[10:11:28] jhass: tag[0] = is what changes it
[10:11:37] tulak: has joined #ruby
[10:12:26] jhass: >> TAGS = ["foo", "bar"]; tag = TAGS.sample; [tag.object_id, TAGS.map(&:object_id)]
[10:12:27] ruby[bot]: jhass: # => [546983250, [546983260, 546983250]] (https://eval.in/519349)
[10:12:28] andrewvos: has joined #ruby
[10:12:34] jhass: there's no copy
[10:12:38] jhass: you change the object
[10:12:51] nettoweb: has joined #ruby
[10:13:16] mahk: has joined #ruby
[10:13:47] mikecmpbll: has joined #ruby
[10:14:16] mikecmpbll: anyone know how i can set the mtime & ctime of a file/directory in ruby?
[10:15:18] trinaldi: has joined #ruby
[10:15:18] Ox0dea: voidDotClass: Sure you're not using `capitalize!`?
[10:16:49] jhass: Ox0dea: they tag[0] =
[10:16:52] Ox0dea: Oh, I see what's happening.
[10:16:59] tatsuo: has joined #ruby
[10:17:12] Ox0dea: He's assigning to an individual character.
[10:17:20] mikecmpbll: ah, i guess you can't set the ctime, that's cool. and there's File::utime which was what i was after!
[10:17:30] mikecmpbll: not sure why google failed me so hard on that one.
[10:17:45] adaedra: Because you need to use Bing now.
[10:17:50] adaedra: ACTION is already outside.
[10:17:55] Ox0dea: Did you mean DDG?
[10:19:34] tulak_: has joined #ruby
[10:20:32] platzhirsch: has joined #ruby
[10:21:46] ElFerna_: has joined #ruby
[10:23:22] dajobat: has joined #ruby
[10:23:32] dajobat: Morning everyone
[10:23:57] evidex: has joined #ruby
[10:24:24] arlek: has joined #ruby
[10:25:39] Mon_Ouie: has joined #ruby
[10:25:54] Bloomer: has joined #ruby
[10:26:15] tubulife-: has joined #ruby
[10:27:15] blackgoat: has joined #ruby
[10:29:35] MrSamuel: has joined #ruby
[10:30:54] resin: has joined #ruby
[10:32:19] bmalum: has joined #ruby
[10:32:44] MrSamuel: has joined #ruby
[10:34:55] tatsuo: has joined #ruby
[10:35:15] element_zer0: has joined #ruby
[10:35:41] joonty: has joined #ruby
[10:36:40] araujo: has joined #ruby
[10:38:04] araujo: has joined #ruby
[10:39:24] tomchapin: has joined #ruby
[10:39:34] bahar: has joined #ruby
[10:40:36] andrewvos: has joined #ruby
[10:41:35] clauswitt: has joined #ruby
[10:42:31] blackmesa: has joined #ruby
[10:42:32] nixmaniack: has joined #ruby
[10:43:35] vikas027: has joined #ruby
[10:48:12] mdw: has joined #ruby
[10:50:41] ldnunes: has joined #ruby
[10:50:49] evidex: has joined #ruby
[10:51:29] dlitvak: has joined #ruby
[10:52:49] jamw: has joined #ruby
[10:53:14] y2mq37: has joined #ruby
[10:53:53] Xeago: has joined #ruby
[11:00:55] Xeago_: has joined #ruby
[11:09:42] clauswitt: has joined #ruby
[11:09:53] symm-: has joined #ruby
[11:13:59] last_staff: has joined #ruby
[11:13:59] spiman: has joined #ruby
[11:14:02] platzhirsch: How can I make a StringIO readable by IO.foreach?
[11:14:47] UtkarshRay: has joined #ruby
[11:15:26] andrewvos: has joined #ruby
[11:16:11] rbennacer: has joined #ruby
[11:18:28] Marcon: has joined #ruby
[11:19:23] baweaver: has joined #ruby
[11:22:02] heftig: platzhirsch: use IO#each_line instead of IO.foreach
[11:23:21] tvw: has joined #ruby
[11:25:04] platzhirsch: that wouldn't work with filenames anymore though, would it
[11:25:06] dlitvak_: has joined #ruby
[11:25:31] platzhirsch: guess I need to change the pass in type
[11:26:35] platzhirsch: yeah that works perfectly fine then
[11:26:37] platzhirsch: thanks heftig
[11:27:39] aganov: has joined #ruby
[11:30:41] rdark: has joined #ruby
[11:32:44] dlitvak: has joined #ruby
[11:34:35] millerti: has joined #ruby
[11:35:15] krz: has joined #ruby
[11:37:36] Tempesta: has joined #ruby
[11:37:43] mahk: has joined #ruby
[11:37:51] dlitvak: has joined #ruby
[11:37:59] duoi: has joined #ruby
[11:37:59] duoi: has joined #ruby
[11:38:31] Shaboum: has joined #ruby
[11:42:13] t0ggah: has joined #ruby
[11:42:37] LoneHerm_: has joined #ruby
[11:47:04] skade: has joined #ruby
[11:50:07] william3: has joined #ruby
[11:50:14] Bloomer: has joined #ruby
[11:51:12] syath: has joined #ruby
[11:52:49] Xeago: has joined #ruby
[11:53:13] Macaveli: has joined #ruby
[11:54:53] andrewvos: has joined #ruby
[11:55:32] cih: has joined #ruby
[11:59:19] bronson: has joined #ruby
[12:00:21] Infra-Red: has joined #ruby
[12:02:48] cih: has joined #ruby
[12:03:15] nopolitica: has joined #ruby
[12:03:40] dtordable: has joined #ruby
[12:04:13] william3: has joined #ruby
[12:04:50] sandstrom: has joined #ruby
[12:04:58] casadei: has joined #ruby
[12:09:06] Xeago: has joined #ruby
[12:10:05] BSaboia: has joined #ruby
[12:10:12] last_staff1: has joined #ruby
[12:10:44] davedev24: has joined #ruby
[12:10:45] n00bDev: has joined #ruby
[12:11:56] naftilos76: has joined #ruby
[12:13:40] fox2: has joined #ruby
[12:13:48] krz: has joined #ruby
[12:13:49] dexter_: has joined #ruby
[12:15:05] fox2: I got there or not, ruby help room)))
[12:15:42] fox2: Ollaaaaa, at last))))
[12:17:05] BrunoSaboia: has joined #ruby
[12:17:44] jaiks: has joined #ruby
[12:18:28] fox2: could someone with Ukraine?
[12:18:29] idritg: has joined #ruby
[12:18:45] ruby[bot]: 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
[12:18:49] rgtk: has joined #ruby
[12:20:06] fox2: I just said, I can in the English
[12:20:37] fox2: it's not a problem
[12:22:05] sgambino: has joined #ruby
[12:22:28] Mon_Ouie: has joined #ruby
[12:23:17] roshanavand: has joined #ruby
[12:24:36] bithon: has joined #ruby
[12:25:00] jhass: so, if you have any question, just ask it
[12:27:09] hostess: has joined #ruby
[12:27:50] fox2: ok, Yes of course, I'm still not used to irssi, the first day of use
[12:28:09] jhass: no worries
[12:30:18] andrewvos: has joined #ruby
[12:33:00] sdothum: has joined #ruby
[12:33:32] blackmesa: has joined #ruby
[12:33:43] fox2: I not so long ago started using the ruby, its first project wrote not so long ago, it is the second.
[12:33:47] fox2: And there was a question sechas add Backbone, and I have no idea how best to make the search page
[12:35:03] platzhirsch: has joined #ruby
[12:35:05] fox2: search page must be like airbnb.com/s
[12:35:08] jhass: are you actually talking about rails?
[12:35:23] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[12:36:14] fox2: ok sorry, if offtop
[12:36:35] fox2: has left #ruby: ()
[12:36:38] dlitvak: has joined #ruby
[12:38:53] johnmilton: has joined #ruby
[12:39:31] nettoweb: has joined #ruby
[12:40:54] Danielpk: has joined #ruby
[12:41:35] godzillaenlacasa: has joined #ruby
[12:42:57] dlitvak: has joined #ruby
[12:43:58] Zai00: has joined #ruby
[12:48:23] greynetic: has joined #ruby
[12:50:44] Jardayn: has joined #ruby
[12:51:16] ElFerna_: has joined #ruby
[12:52:17] dlitvak: has joined #ruby
[12:53:34] jamw: has joined #ruby
[12:55:35] CloCkWeRX: has joined #ruby
[12:55:57] paha80: has joined #ruby
[12:56:36] sgambino: has joined #ruby
[12:58:37] andrewvos: has joined #ruby
[13:00:12] aryaching: has joined #ruby
[13:00:12] paha80: has joined #ruby
[13:00:22] frozen3: has joined #ruby
[13:04:00] freerobby: has joined #ruby
[13:04:47] t0ggah: has joined #ruby
[13:05:55] paha80: has joined #ruby
[13:07:40] paha80: has joined #ruby
[13:08:08] william3: has joined #ruby
[13:08:33] ElFerna_: has joined #ruby
[13:10:11] JDiPierro: has joined #ruby
[13:11:48] n00bDev: has joined #ruby
[13:11:57] valera: has joined #ruby
[13:12:18] william3: has joined #ruby
[13:13:30] JDiPierro: has joined #ruby
[13:14:14] DEA7TH: has joined #ruby
[13:14:32] Xeago: has joined #ruby
[13:15:31] joonty: has joined #ruby
[13:16:18] rickmasta: has joined #ruby
[13:19:34] synthroid: has joined #ruby
[13:19:40] nfk: has joined #ruby
[13:23:37] duckpuppy: has joined #ruby
[13:25:09] Jackneill: has joined #ruby
[13:25:21] zacstewart: has joined #ruby
[13:26:24] f4cl3y: has joined #ruby
[13:30:50] LoneHerm_: has joined #ruby
[13:32:25] Ishido: has joined #ruby
[13:39:47] goodcodeguy: has joined #ruby
[13:40:44] ramortegui: has joined #ruby
[13:41:48] Mia: has joined #ruby
[13:41:48] Mia: has joined #ruby
[13:44:52] codecop: has joined #ruby
[13:45:30] malconis: has joined #ruby
[13:46:26] bahar: has joined #ruby
[13:47:05] mdw: has joined #ruby
[13:47:06] ledestin: has joined #ruby
[13:47:26] Macaveli: has joined #ruby
[13:47:32] malconis: has joined #ruby
[13:49:12] dlitvak_: has joined #ruby
[13:50:31] arbys: has joined #ruby
[13:50:53] millerti: has joined #ruby
[13:52:48] scepticulous: has joined #ruby
[13:53:35] BSab: has joined #ruby
[13:53:38] bkxd: has joined #ruby
[13:54:38] dlitvak: has joined #ruby
[13:57:29] BSaboia: has joined #ruby
[14:00:00] dlitvak_: has joined #ruby
[14:00:38] bronson: has joined #ruby
[14:01:05] tlaxkit: has joined #ruby
[14:01:12] rdark: has joined #ruby
[14:01:13] blackmesa: has joined #ruby
[14:02:12] andrewvos: has joined #ruby
[14:02:15] JDiPierro: has joined #ruby
[14:03:01] arbys: has left #ruby: ("Leaving")
[14:04:00] JDiPierro: has joined #ruby
[14:06:17] cdg: has joined #ruby
[14:06:33] mwlang: has joined #ruby
[14:08:55] ljames: has joined #ruby
[14:09:58] openstruct: has joined #ruby
[14:13:38] Macaveli: has joined #ruby
[14:15:02] t0ggah: has joined #ruby
[14:15:45] dextertzu: has joined #ruby
[14:17:40] djcp: has joined #ruby
[14:20:52] rbennacer: has joined #ruby
[14:21:37] sgambino: has joined #ruby
[14:22:26] pawnbox: has joined #ruby
[14:23:46] mary5030: has joined #ruby
[14:24:05] the_drow: has joined #ruby
[14:24:30] moeabdol: has joined #ruby
[14:25:56] sankaber: has joined #ruby
[14:26:13] mary5030: has joined #ruby
[14:27:15] dlitvak: has joined #ruby
[14:27:41] sergey_makagon: has joined #ruby
[14:28:36] akem: has joined #ruby
[14:31:47] unl0ckd: has joined #ruby
[14:34:25] blackms: has joined #ruby
[14:34:40] solars: has joined #ruby
[14:36:36] sankaber: has joined #ruby
[14:36:50] whippythellama: has joined #ruby
[14:36:54] railsForDaiz: has joined #ruby
[14:37:07] KensoDev: has joined #ruby
[14:38:06] stannard: has joined #ruby
[14:38:47] sandstrom: has joined #ruby
[14:40:24] xxneolithicxx: has joined #ruby
[14:40:34] dlitvak: has joined #ruby
[14:40:45] jaiks: has joined #ruby
[14:40:57] xxneolithicxx: has joined #ruby
[14:41:24] xapak: has joined #ruby
[14:44:13] flughafen_: has joined #ruby
[14:44:46] xapak: has left #ruby: ()
[14:48:39] jottr: has joined #ruby
[14:48:44] stardiviner: has joined #ruby
[14:48:52] sandstrom: has joined #ruby
[14:48:56] flughafen_: has joined #ruby
[14:49:19] asprillia: has joined #ruby
[14:49:49] quaristice: has joined #ruby
[14:50:08] hadronzoo: has joined #ruby
[14:50:34] polishdub: has joined #ruby
[14:51:43] tubulife-: has joined #ruby
[14:51:46] aegis3121: has joined #ruby
[14:53:53] havenwood: sergey_makagon: hi
[14:54:08] cpup: has joined #ruby
[14:54:54] platzhirsch: How can I utilize case/when if the argument is already a class?
[14:55:05] platzhirsch: case DateTime; when???
[14:55:30] adaedra: what do you want to do?
[14:55:33] havenwood: platzhirsch: when what? I'm not following how you're comparing it.
[14:55:51] hayden_: has joined #ruby
[14:56:15] M-shine: has joined #ruby
[14:56:36] platzhirsch: havenwood: https://gist.github.com/platzhirsch/f3f682455a3ef5b44a00
[14:56:44] weemsledeux: has joined #ruby
[14:57:26] adaedra: >> Date === Date
[14:57:27] ruby[bot]: adaedra: # => uninitialized constant Date ...check link for more (https://eval.in/519602)
[14:57:34] adaedra: >> String === String
[14:57:37] ruby[bot]: adaedra: # => false (https://eval.in/519603)
[14:57:41] adaedra: So no, not possible.
[14:57:52] platzhirsch: >> 'Test' === String
[14:57:53] ruby[bot]: platzhirsch: # => false (https://eval.in/519604)
[14:58:07] platzhirsch: Hm, but it works if you pass the value to case
[14:58:08] tomchapin: has joined #ruby
[14:58:17] adaedra: Because it's the other way around.
[14:58:25] adaedra: >> String === 'Hello'
[14:58:26] ruby[bot]: adaedra: # => true (https://eval.in/519605)
[14:58:28] platzhirsch: >> case 'Hello Darling'; when String; puts 'victory'; end
[14:58:29] ruby[bot]: platzhirsch: # => victory ...check link for more (https://eval.in/519606)
[14:58:38] n00bDev: has joined #ruby
[14:59:02] adaedra: case uses #=== internally.
[14:59:27] platzhirsch: yeah, didn't realize it's .. what's the mathematical terms when you can swap the sides
[14:59:31] adaedra: for your case, you may use the class names.
[14:59:43] adaedra: (as strings.)
[14:59:45] william3: has joined #ruby
[14:59:54] platzhirsch: that it's not symmetric
[15:00:11] platzhirsch: yeah, I guess so
[15:00:30] Papierkorb: platzhirsch: #=== is not commutative
[15:00:39] Papierkorb: platzhirsch: (that's the term you were thinking of though)
[15:01:33] platzhirsch: ah it's different because it's not a relation ? Papierkorb
[15:02:15] ElFerna_: has joined #ruby
[15:02:36] Papierkorb: platzhirsch: I'd say (on thin ice though) that it's a relation, but "foo" is related to a String, whereas String may not be related to "foo". (Don't quote me on that Oo; )
[15:03:02] adaedra: #=== meaning depends on the object you call it on.
[15:03:12] Papierkorb: >> [ (String === "foo"), ("foo" === String) ].join ', '
[15:03:13] ruby[bot]: Papierkorb: # => "true, false" (https://eval.in/519614)
[15:03:18] ljarvis: you should forget all that and just know that it's a method defined on Module
[15:03:23] adaedra: It's the magic behind case. Also, you should not be using #=== yourself.
[15:03:24] ljarvis: %ri Module#===
[15:03:28] ljarvis: &ri Module#===
[15:03:28] `derpy: http://ruby-doc.org/core-2.3.0/Module.html#method-i-3D-3D-3D
[15:03:32] platzhirsch: >> [ (String === "foo"), ("foo" === String) ]
[15:03:33] ruby[bot]: platzhirsch: # => [true, false] (https://eval.in/519615)
[15:03:51] last_staff: has joined #ruby
[15:04:00] jespada: has joined #ruby
[15:04:07] ljarvis: honestly everything else is superfluous. The behaviour *could* be anything. It's an implementation detail and it's merely a method call. You can change it, if you'd like
[15:04:12] forgottenleaf: has joined #ruby
[15:04:28] zast: has joined #ruby
[15:04:42] zast: has left #ruby: ()
[15:05:30] Papierkorb: it did confuse me at first when I had something like "case foo.class; when String ..."
[15:05:45] M-Kodo: has joined #ruby
[15:06:30] suchness: has joined #ruby
[15:06:39] senayar^: has joined #ruby
[15:06:44] jhass: >> case String; when ->(k) { k == String }; "Don't actually do this"; end
[15:06:45] ruby[bot]: jhass: # => "Don't actually do this" (https://eval.in/519620)
[15:06:53] railsForDaiz: has joined #ruby
[15:06:58] rcvalle: has joined #ruby
[15:07:19] Papierkorb: >> Proc.instance_method(:===) == Proc.instance_method(:call)
[15:07:20] ruby[bot]: Papierkorb: # => true (https://eval.in/519621)
[15:08:23] rikkipitt: has joined #ruby
[15:08:31] ledestin: has joined #ruby
[15:08:46] maikowblue: has joined #ruby
[15:13:45] alphaatom: has joined #ruby
[15:13:58] arthropododo: has joined #ruby
[15:15:35] underplank: has joined #ruby
[15:17:59] sgambino: has joined #ruby
[15:18:35] andrewvos: has joined #ruby
[15:20:27] x77686d: has joined #ruby
[15:21:28] askhat: has joined #ruby
[15:21:33] rbennacer: has joined #ruby
[15:21:56] baweaver: has joined #ruby
[15:22:40] p1k: has joined #ruby
[15:22:44] ponga: has joined #ruby
[15:23:03] rippa: has joined #ruby
[15:23:38] mlehrer: has joined #ruby
[15:23:41] aufi: has joined #ruby
[15:23:43] dlitvak: has joined #ruby
[15:25:39] idefine: has joined #ruby
[15:26:24] M-mistake: has joined #ruby
[15:28:11] dexter_: has joined #ruby
[15:28:17] jaiks: has joined #ruby
[15:30:44] mfb2: has joined #ruby
[15:31:09] sucks: has joined #ruby
[15:35:38] skade: has joined #ruby
[15:36:54] mfb2: has joined #ruby
[15:38:18] bmurt: has joined #ruby
[15:40:54] railsForDaiz: has joined #ruby
[15:43:07] mfb2: has joined #ruby
[15:43:25] rickmasta: has joined #ruby
[15:44:30] norc_: has joined #ruby
[15:45:09] pdoherty: has joined #ruby
[15:47:17] dlitvak: has joined #ruby
[15:47:34] solocshaw: has joined #ruby
[15:47:45] sandstrom: has joined #ruby
[15:47:46] tjohnson: has joined #ruby
[15:48:39] __apr__: has joined #ruby
[15:48:39] __apr__: has joined #ruby
[15:49:18] __apr__: hi @all, quick question: Why this "double ckeck"? params[:force].nil? && params['force'].nil?
[15:49:48] sgambino: has joined #ruby
[15:49:59] __apr__: isn't that the same as params[:force].nil? ?
[15:50:14] diegoviola: has joined #ruby
[15:50:24] havenwood: __apr__: twice, but unless it changes between the first and the second it's the same ;)
[15:50:31] oz: __apr__: assuming Rails/ActiveSupport, params is a Hash where :force and 'force' are the same key.
[15:50:57] __apr__: havenwood, heh, yeah, it shouldn't change
[15:51:12] casadei: has joined #ruby
[15:51:16] __apr__: oz, then any clue why the dev wrote that?
[15:51:18] havenwood: __apr__: ah, we shouldn't assume Rails - I didn't notice the first was a Symbol and second was a String on first glance.
[15:51:44] __apr__: havenwood, it's not rails, pure ruby
[15:51:46] oz: __apr__: like havenwood wrote, we shouldn't assume Rails. :)
[15:52:11] __apr__: params is a Hash
[15:52:26] __apr__: but not related with rails in any way
[15:52:29] havenwood: __apr__: Rails has ActiveSupport::HashWithIndifferentAccess but Ruby Hashes treat Symbols and Strings as different.
[15:52:48] havenwood: __apr__: It seems the key might be a Symbol or a String. I dunno why.
[15:52:54] __apr__: havenwood, ah! was completely unaware of that
[15:53:11] dlitvak: has joined #ruby
[15:53:31] __apr__: havenwood, well, makes sense, I'm reading the source code for a library. The lib developer might want to support the user providing params as string or symbol
[15:53:50] __apr__: ok, thanks for the clarification
[15:54:05] oz: that's probably the best explanation :)
[15:54:20] __apr__: ruby has some strange stuff... I come from python and these things are mind bending ;)
[15:55:09] dubek: has joined #ruby
[15:56:11] decoponio: has joined #ruby
[15:56:59] FooMunki: has joined #ruby
[15:57:25] DmitryBochkarev: has joined #ruby
[15:57:26] zotherstupidguy: has joined #ruby
[15:57:27] flughafen_: has joined #ruby
[15:57:30] AlexRussia: has joined #ruby
[15:57:57] underplank: has joined #ruby
[15:59:12] mfb2: has joined #ruby
[16:01:45] stannard_: has joined #ruby
[16:01:46] freerobby: has joined #ruby
[16:02:26] tomchapin: has joined #ruby
[16:02:44] bronson: has joined #ruby
[16:02:52] nettoweb: has joined #ruby
[16:03:12] arlek: has joined #ruby
[16:03:25] Zai00: has joined #ruby
[16:05:29] agentmeerkat: has joined #ruby
[16:05:46] wprice: has joined #ruby
[16:06:21] M-shine: has joined #ruby
[16:07:39] idefine: has joined #ruby
[16:10:09] chouhoulis: has joined #ruby
[16:10:38] ixti: has joined #ruby
[16:12:22] my_cool_nick: has joined #ruby
[16:13:16] jaiks: has joined #ruby
[16:13:16] moos3_: has joined #ruby
[16:13:33] moos3: has joined #ruby
[16:14:01] rikkipitt: has joined #ruby
[16:14:01] gidlf: has joined #ruby
[16:14:06] moos3: has joined #ruby
[16:14:40] beanHolez: has joined #ruby
[16:14:42] moos3: has joined #ruby
[16:14:56] beanHolez: has left #ruby: ()
[16:14:58] beanHolez: has joined #ruby
[16:16:41] beanHolez: I am trying to determine the best stylistic choice between two ways of passing some arbitrary arguments. I most often see calls with hashes that identify what the option/arg is: some_method({a: 1, b:2})
[16:17:06] chouhoulis: has joined #ruby
[16:17:12] TomyLobo: has joined #ruby
[16:18:27] cjbottaro: has joined #ruby
[16:18:27] beanHolez: I have a method that will take many different kinds of arguments, and have implemented a case expression to which all arguments are passed, and they are identified in that way. That leaves you with the ability to pass the arguments in any order you'd like
[16:20:52] dlitvak: has joined #ruby
[16:21:11] dlitvak: has joined #ruby
[16:23:21] cjbottaro: has joined #ruby
[16:23:28] M-shine: has joined #ruby
[16:23:35] JDiPierro: has joined #ruby
[16:24:20] JDiPierro: has joined #ruby
[16:24:31] mlehrer: has joined #ruby
[16:24:58] idefine: has joined #ruby
[16:25:10] tonios57: has joined #ruby
[16:26:42] adgtl: has joined #ruby
[16:26:45] cschneid_: has joined #ruby
[16:26:51] NET||abuse: has left #ruby: ("Leaving")
[16:27:27] dotix: has joined #ruby
[16:27:27] dotix: has joined #ruby
[16:28:24] Mutter: has joined #ruby
[16:29:23] nofxx: has joined #ruby
[16:29:35] babblebre: has joined #ruby
[16:33:12] M-Kodo: has joined #ruby
[16:33:21] dlitvak: has joined #ruby
[16:34:51] nerium: has joined #ruby
[16:36:27] asccigcc: has joined #ruby
[16:36:55] idefine: has joined #ruby
[16:40:59] n00bDev: has joined #ruby
[16:41:36] kirillzh: has joined #ruby
[16:42:44] ziyadb: has joined #ruby
[16:44:03] dlitvak: has joined #ruby
[16:45:02] Azure|dc: has joined #ruby
[16:46:44] jhass: beanHolez: given only supporting ruby 2.1+ is no issue, I prefer keyword args these days
[16:47:14] adaedra: kwargs are love, kwargs are life.
[16:47:16] jhass: guessing which argument is meant as what only gives headaches and a harder to use and understand interface in the long run, IME
[16:47:36] railsForDaiz: has joined #ruby
[16:47:41] beanHolez: Sold, thanks all
[16:49:01] pawnbox: has joined #ruby
[16:49:22] jaiks: has joined #ruby
[16:49:44] havenwood: Speaking of 2.0... EoL a week from tomorrow!
[16:50:03] havenwood: ACTION chants KWARGS, KWARGS!
[16:50:22] havenwood: And goodbye patch levels as part of the version.
[16:51:15] diegoviola: havenwood: there won't be ruby with patchlevels anymore, or just for the 2.0 version?
[16:51:26] adaedra: havenwood: 2.0 EOL?
[16:51:49] adaedra: In that case
[16:51:52] havenwood: diegoviola: Ruby versions used to include the patch level. When Ruby adopted semantic versioning they stopped putting the patch level in the version.
[16:51:55] havenwood: adaedra: Yup!
[16:52:00] aegis3121: has joined #ruby
[16:52:07] diegoviola: havenwood: cool
[16:52:11] PedramT: has joined #ruby
[16:52:34] adaedra: -o adaedra
[16:52:40] benlieb: has joined #ruby
[16:55:10] ElFerna_: has joined #ruby
[16:55:14] tomchapin: has joined #ruby
[16:55:42] cih: has joined #ruby
[16:56:25] devbug: has joined #ruby
[16:56:45] Pumukel: has joined #ruby
[16:56:47] Macaveli: has joined #ruby
[16:56:58] underplank: has joined #ruby
[16:57:38] jhass: adaedra: uh well, we still have a week or so
[16:57:47] jhass: 24th I think?
[16:57:48] atmosx: has joined #ruby
[17:01:32] havenwood: "Ruby 2.0.0 is now under the state of the security maintenance phase, until Feb. 24th, 2016. After the date, maintenance of Ruby 2.0.0 will be ended."
[17:02:04] minimalism: has joined #ruby
[17:02:19] openstruct: has joined #ruby
[17:03:26] Don_John: has joined #ruby
[17:03:30] shevy: die old ruby, die!
[17:04:25] benlieb: has joined #ruby
[17:05:33] shevy: Terens worked!
[17:05:35] shevy: most tests here failed
[17:05:40] shevy: but yours one was finally one that has worked
[17:05:41] TomyLobo: i'm using pp on a complex protobuf structure and it ends up in one line. what's a better way to dump those in a readable way?
[17:06:24] shevy: I think you can control the pp output through some threshold value ... do you have an example for the structure? you mean the @ivars output by the way?
[17:06:31] pdoherty: has joined #ruby
[17:06:58] Ishido: has joined #ruby
[17:07:01] mfb2: has joined #ruby
[17:07:10] havenwood: TomyLobo: You could define a pretty_print(pp) method in the protobuf structure class. "It takes an argument pp which is an instance of the class PP. The method should use PP#text, PP#breakable, PP#nest, PP#group and PP::PPMethods#pp to print the object."
[17:07:12] jottr: has joined #ruby
[17:07:17] wldcordeiro: has joined #ruby
[17:07:40] havenwood: TomyLobo: http://ruby-doc.org/stdlib/libdoc/pp/rdoc/PP.html
[17:07:53] mickey_mouse_2: has joined #ruby
[17:08:39] rkazak: has joined #ruby
[17:09:01] idefine: has joined #ruby
[17:09:39] cih: has joined #ruby
[17:10:04] elifoster: has joined #ruby
[17:10:27] havenwood: TomyLobo: Or you might prefer creating an ext/protobuf.rb extension with the Awesome Print gem: https://github.com/michaeldv/awesome_print#readme
[17:11:27] frozen3: has joined #ruby
[17:11:35] amclain: has joined #ruby
[17:12:19] adgtl: has joined #ruby
[17:12:27] volty: has joined #ruby
[17:14:08] toretore: has joined #ruby
[17:14:18] frozen3_: has joined #ruby
[17:15:05] tomchapin: has joined #ruby
[17:15:51] TomyLobo: hmm, i think i'll go on with trying to post-process that mess :)
[17:17:11] adaedra: jhass: havenwood said it was done!
[17:17:15] frozen3: has joined #ruby
[17:17:28] pawnbox: has joined #ruby
[17:17:28] marxarelli: has joined #ruby
[17:17:31] jhass: did they?
[17:17:37] tvon: has joined #ruby
[17:17:38] havenwood: adaedra: I said a week from tomorrow!
[17:18:09] haylon: has joined #ruby
[17:18:36] idefine_: has joined #ruby
[17:19:32] dretnx: has joined #ruby
[17:20:31] davedev24: has joined #ruby
[17:20:50] TomyLobo: is there really no way to inspect an object structure automatically and print it in a pretty way?
[17:21:03] adaedra: All my excuses, then, jhass.
[17:21:06] synthroid: has joined #ruby
[17:21:12] jhass: no worries ;)
[17:21:14] adaedra: TomyLobo: p, or pp
[17:21:21] adaedra: -o adaedra
[17:21:33] `derpy: http://ruby-doc.org/core-2.3.0/Kernel.html#method-i-p, http://ruby-doc.org/stdlib-2.3.0/libdoc/irb/rdoc/IRB/Notifier/AbstractNotifier.html#method-i-pp
[17:21:46] adaedra: mmh, this second one is not the right one.
[17:21:49] TomyLobo: p and pp both print a single line
[17:21:51] SCHAAP137: has joined #ruby
[17:22:03] symm-: has joined #ruby
[17:22:06] apeiros: TomyLobo: uh, no
[17:22:09] LoneHerm_: has joined #ruby
[17:22:22] TomyLobo: according to wc -l, yes
[17:22:24] shevy: pp will break things up when it is longer than the threshold, you can try it on an Array increase the size TomyLobo
[17:22:35] apeiros: pp only prints a single line if you a) have a short output or b) fucked up inspect
[17:22:52] TomyLobo: 5029 characters
[17:23:04] baweaver: has joined #ruby
[17:23:07] rbennacer: has joined #ruby
[17:23:27] apeiros: since default length is 80 iirc, that means that you did something which prevents it from splitting up
[17:23:38] pawnbox: has joined #ruby
[17:23:39] volty: >> pp class Test; def initialize(); @x = 1, @y = 2; end; end.new()
[17:23:40] ruby[bot]: volty: # => undefined method `new' for :initialize:Symbol ...check link for more (https://eval.in/519676)
[17:23:50] TomyLobo: inspect returns empty string
[17:23:52] frozen3: has joined #ruby
[17:24:10] volty: >> pp (class Test; def initialize(); @x = 1, @y = 2; end; end)new()
[17:24:11] ruby[bot]: volty: # => /tmp/execpad-ec9041cf0fc1/source-ec9041cf0fc1:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/519677)
[17:24:45] adaedra: >> class Test; def initialize; @x, @y = 1, 2; end; end; pp Test.new
[17:24:46] ruby[bot]: adaedra: # => undefined method `pp' for main:Object ...check link for more (https://eval.in/519678)
[17:24:54] adaedra: >> require 'pp'; class Test; def initialize; @x, @y = 1, 2; end; end; pp Test.new
[17:24:55] ruby[bot]: adaedra: # => #<Test:0x40e7f3c0 @x=1, @y=2> ...check link for more (https://eval.in/519679)
[17:25:06] adaedra: That's what you wanted, volty
[17:25:31] adaedra: class block don't return the class
[17:25:44] volty: thx :) my eyes fingers are out of sync, and my eyes need and elephant screen right now, @ adaedra
[17:25:44] railsForDaiz: has joined #ruby
[17:26:07] adaedra: Bed.new.tap do |bed| bed << volty; end
[17:26:30] shevy: stop tapdancing in your bed when you should sleep!
[17:26:47] volty: adaedra: right, but if I go to bed now I'll be keeping out-of-sync sleeping. I must resist :)
[17:28:17] ico: has joined #ruby
[17:28:20] adaedra: Well then.
[17:28:40] tubulife-: has joined #ruby
[17:29:08] rht: has joined #ruby
[17:29:51] skade: has joined #ruby
[17:30:18] mfb2: has joined #ruby
[17:30:33] RalfJ: has joined #ruby
[17:30:54] Maletor: has joined #ruby
[17:31:21] volty: i was fuzzy
[17:31:32] volty: >> require 'pp'; pp class Test; def initialize(); @x = 1, @y = 2; end; self; end.new
[17:31:33] ruby[bot]: volty: # => #<Test:0x408572a4 @x=[1, 2], @y=2> ...check link for more (https://eval.in/519680)
[17:32:13] volty: forgot that that everything returns the last expression
[17:32:18] sneakerhax: has joined #ruby
[17:32:44] adaedra: Welcome to Ruby
[17:32:59] shevy: volty not every method!
[17:33:28] volty: But I was to Ruby for long time, though intermittently
[17:33:52] volty: shevy, shevy, do not torture me now :)
[17:34:23] shevy: volty see it refuses to return 33 https://gist.github.com/shevegen/75502e24a9339e90fc82
[17:34:44] shevy: well actually
[17:34:46] shevy: you are right!
[17:34:49] shevy: it returns the last expression :D
[17:35:11] shevy: hmm wait... let me try with 42 last
[17:35:14] volty: .... executed
[17:36:09] shevy: ok now https://gist.github.com/shevegen/a72e234032ff3daa10f9
[17:36:11] volty: do you know xrvg, anybody played with it ?
[17:36:22] JDiPierro: has joined #ruby
[17:36:26] shevy: I know srvg
[17:36:29] shevy: does that count too?
[17:36:37] shevy: or svrg... I can never remember
[17:36:52] volty: will give it a look, thx
[17:37:44] last_staff: has joined #ruby
[17:37:50] shevy: nah I don't know if it has anything to do with xrvg sorry, other than the name
[17:38:03] volty: yap :) saw it
[17:39:36] andrewvos: has joined #ruby
[17:40:09] matled: has joined #ruby
[17:40:35] baweaver: has joined #ruby
[17:41:41] Infra-Red: has joined #ruby
[17:42:16] PaulCapestany: has joined #ruby
[17:44:19] stannard: has joined #ruby
[17:44:45] moos3: has joined #ruby
[17:44:58] zz_denym_: has joined #ruby
[17:47:00] cpup: has joined #ruby
[17:47:03] dretnx: how's the speed of newest ruby version?
[17:47:23] dretnx: is it slower than php?
[17:47:41] sgambino: has joined #ruby
[17:48:33] eljimmy: has joined #ruby
[17:49:20] tubulife-: has joined #ruby
[17:49:48] yqt: has joined #ruby
[17:50:37] openstruct: has joined #ruby
[17:50:59] shevy: dretnx hey mr. webchatter
[17:51:55] shevy: http://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=yarv&lang2=php
[17:52:01] dajobat: has joined #ruby
[17:52:30] rbennacer: has joined #ruby
[17:52:48] eam: is ruby a good language for attracting venture capital?
[17:52:56] rakm: has joined #ruby
[17:53:20] dopie: has joined #ruby
[17:53:34] Ox0dea: has joined #ruby
[17:53:46] shevy: github says yes!
[17:53:59] sandstrom: has joined #ruby
[17:54:02] volty: it's the ideas that attract the capital, not the language in itself
[17:55:32] sucks: has joined #ruby
[17:55:37] Shaboum: has joined #ruby
[17:57:30] wnd: has joined #ruby
[17:57:34] wprice: has joined #ruby
[17:59:04] tubbo: volty: it's the execution that attract the capital, not the idea in itself.
[17:59:07] tubbo: attracts*
[18:00:03] volty: execution of what ?
[18:00:19] DoubleMalt: has joined #ruby
[18:02:19] Dios|afk: has joined #ruby
[18:02:56] firstdayonthejob: has joined #ruby
[18:03:03] KensoDev: has joined #ruby
[18:03:19] ElFerna_: has joined #ruby
[18:03:37] tubbo: execution of an idea
[18:03:59] volty: you need money for the execution
[18:04:45] casadei: has joined #ruby
[18:04:49] platzhirsch: has left #ruby: ()
[18:05:12] railsForDaiz: has joined #ruby
[18:05:19] moos3: has joined #ruby
[18:06:53] goodcodeguy: has joined #ruby
[18:08:43] BSaboia: has joined #ruby
[18:08:52] sucks: has joined #ruby
[18:09:52] finisherr: has joined #ruby
[18:10:34] moos3: has joined #ruby
[18:11:02] aegis3121: has joined #ruby
[18:11:31] TomyLobo: pp my_protobuf_object.to_hash
[18:11:34] TomyLobo: that worked :)
[18:11:38] aegis3121: Hey all. I'm attempting to override a module method, and having a hard time of it. I'm not trying to override it as an instance method, but as an actual module level method. I recognize what I'm doing is...very shady (and probably shouldn't be done). https://gist.github.com/jon2992/bac594422a8ed33ceb62
[18:12:13] s00pcan_: has joined #ruby
[18:12:35] Ox0dea: has joined #ruby
[18:12:59] chouhoulis: has joined #ruby
[18:13:01] Don_John: has joined #ruby
[18:14:22] aegis3121: It doesn't use my method?
[18:14:24] moeabdol: has joined #ruby
[18:14:48] dopamean_: has joined #ruby
[18:15:14] volty: who doesn't use it ?
[18:15:26] aegis3121: If I call I18n.localize, it continues to use the method built into I18n.
[18:16:03] [BNC]WizJin: has joined #ruby
[18:16:10] jhass: aegis3121: module_function creates a copy and I guess does nothing when called a second time
[18:16:43] aegis3121: Does anyone know of a way to re-define a method with the module as the receiver?
[18:16:52] mfaeh: has joined #ruby
[18:16:52] icarus: has joined #ruby
[18:16:58] icarus: has joined #ruby
[18:17:10] volty: aegis3121: you should module ....; def self.localize()
[18:17:58] volty: >> module I18n; def self.localize(*args); puts 'I can do other things too'; end; end; I18n.localize
[18:17:59] ruby[bot]: volty: # => I can do other things too ...check link for more (https://eval.in/519717)
[18:18:07] mfb2: has joined #ruby
[18:18:12] PedramT: has joined #ruby
[18:18:20] aegis3121: ACTION facepalms
[18:18:22] spleeze: has joined #ruby
[18:18:31] Dios: has joined #ruby
[18:18:47] aegis3121: Thanks, I'll see if that resolves in our situation.
[18:18:59] volty: for sure & yw
[18:21:42] mfaeh: #javascipt
[18:22:22] rgtk: has joined #ruby
[18:23:16] shevy: do not submit to the evil
[18:23:28] sgambino: has joined #ruby
[18:24:12] tildes: has joined #ruby
[18:24:23] aibot: has joined #ruby
[18:25:47] yatish27: has joined #ruby
[18:26:10] hbr-br: has joined #ruby
[18:27:02] casadei: has joined #ruby
[18:28:08] mfaeh: has joined #ruby
[18:28:15] hbr-br: Hello All, I have a small question, and I??d like to know if somebody could help with a (ruby + json) issue.
[18:28:38] Mon_Ouie: has joined #ruby
[18:28:59] openstruct: has joined #ruby
[18:29:49] mfaeh: has joined #ruby
[18:30:06] hbr-br: First of all, Im pretty much newbie in Ruby, just having my first contact with it.
[18:30:21] shevy: best is to give it a try and just ask hbr-br - also apeiros speaks your native language possibly!
[18:30:24] ruby[bot]: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
[18:30:57] shlomo: has joined #ruby
[18:31:23] hbr-br: Im trying to fix a problem in we found out with an app we have it here. I have data to be dispatched to remote clients . This is currently done with JSON. However, depending on the way the app is configured this JSon objets can increases a lot (300Mb for instance).
[18:31:27] volty: and do not write a whole book with all the premises before asking, your state of spirit, what you have eat & drink etc etc
[18:31:43] shevy: volty don't give them new ideas :D
[18:31:43] jhass: ?json_object
[18:31:43] ruby[bot]: jhass: I don't know anything about json_object
[18:31:51] jhass: ?jsonobject
[18:31:58] ruby[bot]: there is no such thing as a JSON object. You either have a String containing serialized JSON, or you have ruby objects (usually Hashes/Arrays/Strings). Which is it?
[18:32:12] shevy: the bot talks like jhass...
[18:32:21] jhass: !fact ln json_object jsonobject
[18:32:21] ruby[bot]: jhass: I already know that jsonobject is there is no such thing as a JSON object. You either have a String containing serialized JSON, or you have ruby objects (usually Hashes/Arrays/Strings). Which is it?
[18:32:23] hbr-br: it is a string. sorry, I huge string
[18:32:28] jhass: !fact ln jsonobject json_object
[18:32:28] ruby[bot]: jhass: I will remember that jsonobject is also called json_object.
[18:32:57] nettoweb: has joined #ruby
[18:33:03] jhass: do you generate the string or read it from somewhere?
[18:33:13] jhass: do you need to parse it in any way or just pass on?
[18:33:52] mdw: has joined #ruby
[18:34:14] hbr-br: I generate that string
[18:34:23] kirun: has joined #ruby
[18:34:56] jhass: I haven't seen a streaming JSON builder for ruby, so I'm afraid you have to live with that memory usage
[18:34:59] hbr-br: it is actually a job information Im passing to clients to perform that job.
[18:35:30] jhass: unless you can for example keep the data in a database and let the job itself fetch it
[18:35:33] x77686d: has joined #ruby
[18:35:45] moos3: has joined #ruby
[18:36:11] william3: has joined #ruby
[18:36:16] jhass: if your concern is transfer speed, gzip can be quite effective on json data
[18:36:45] jhass: but that won't help anything for memory usage, probably on the contrary
[18:37:05] eam: jhass: I haven't used it but I've seen yajl ruby bindings
[18:37:22] jhass: oh that has streaming APIs?
[18:37:31] eam: yeah (at least the C lib does)
[18:37:43] Inv1s1ble: has joined #ruby
[18:38:03] Inv1s1ble: Is the ruby gems API down? I'm getting 503s
[18:38:23] jhass: https://status.rubygems.org/
[18:38:27] Inv1s1ble: ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) \ bad response Service Unavailable 503 (https://api.rubygems.org/api/v1/dependencies?gems=jekyll-watch)
[18:38:58] hbr-br: one of the main concerns is transfer.
[18:39:17] Inv1s1ble: hmm..everything is up. Must be just me
[18:39:17] hbr-br: Ill take a look on this options.
[18:39:52] jhass: depending on your structure, things like using bson, protobuf or msgpack instead can also help somewhat
[18:40:02] jhass: but I expect gzip to give bigger gains actually
[18:40:52] Inv1s1ble: hmm..I can install other gems, it's only jekyll-multisite that gives me a 503
[18:41:10] spider-mario: has joined #ruby
[18:41:15] yatish27: has joined #ruby
[18:42:15] william3: has joined #ruby
[18:43:16] dangerousdave: has joined #ruby
[18:43:48] patchedmonkey: has joined #ruby
[18:43:48] Zai00: has joined #ruby
[18:44:10] codecop: has joined #ruby
[18:44:57] moos3: has joined #ruby
[18:45:16] idefine: has joined #ruby
[18:46:47] baweaver: has joined #ruby
[18:47:05] edwinvdgraaf: has joined #ruby
[18:48:35] zapata: has joined #ruby
[18:48:47] jxs_: has joined #ruby
[18:49:53] DmitryBochkarev: has joined #ruby
[18:51:07] dotix: has joined #ruby
[18:51:07] dotix: has joined #ruby
[18:51:36] shadeslayer: has joined #ruby
[18:53:11] mfb2: has joined #ruby
[18:54:00] pdoherty: has joined #ruby
[18:54:05] derailed: has joined #ruby
[18:55:44] akem: has joined #ruby
[18:57:44] baweaver: has joined #ruby
[18:57:47] openstruct: has joined #ruby
[18:57:48] openstruct: has joined #ruby
[18:58:41] PedramT: has joined #ruby
[18:59:14] baweaver: has joined #ruby
[18:59:45] firstdayonthejob: has joined #ruby
[19:04:04] PaulCapestany: has joined #ruby
[19:04:08] tomchapin: has joined #ruby
[19:04:46] Cohedrin: has joined #ruby
[19:04:48] unl0ckd: has joined #ruby
[19:05:38] moeabdol: has joined #ruby
[19:05:39] shadoi: has joined #ruby
[19:05:44] aep: can i convert some uknonw 8bit text into utf8 ignoring the characters that aren't valid ascii/
[19:07:21] hahuang65: has joined #ruby
[19:07:41] mhoungbo: has joined #ruby
[19:07:44] stannard: has joined #ruby
[19:08:08] PD028300: has joined #ruby
[19:08:11] al2o3-cr: aep: #force_encoding("UTF-8") ?
[19:08:12] darkf: has joined #ruby
[19:08:29] aep: err nah, not from a literal
[19:08:29] shadoi: aep: http://ruby-doc.org/core-2.1.0/String.html#method-i-scrub
[19:08:40] aep: ah thanks1
[19:08:46] aep: damnit. shift key broke
[19:09:01] baweaver: has joined #ruby
[19:09:03] bascht: has joined #ruby
[19:09:36] Infra-Red: has joined #ruby
[19:10:44] gambl0re: has left #ruby: ()
[19:11:31] yqt: has joined #ruby
[19:12:56] jottr_: has joined #ruby
[19:13:42] al2o3-cr: >> ["\xE9\x80\x92foo".force_encoding("utf-8"), "\xE9\x80\x92foo".scrub, String.new("\xE9\x80\x92foo", encoding: "utf-8")]
[19:13:43] ruby[bot]: al2o3-cr: # => ["???foo", "???foo", "???foo"] (https://eval.in/519756)
[19:14:04] tildes: has joined #ruby
[19:15:04] PaulCapestany: has joined #ruby
[19:15:26] aep: yeah that didnt help remove invalid ascii
[19:15:33] aep: i still get an undefinedconversationerror
[19:15:40] apeiros: because it's all valid utf-8
[19:16:00] aep: but i have random text with unknown encoding
[19:16:05] aep: so i cant just force utf8
[19:16:23] hahuang65: has joined #ruby
[19:16:52] apeiros: if you got undefinedconversationerror, then you didn't force
[19:17:00] apeiros: since force doesn't convert
[19:17:06] Infra-Red: has joined #ruby
[19:17:19] wnd: has joined #ruby
[19:18:00] apeiros: why do you want to convert to utf-8 if you only want ascii?
[19:18:35] aep: nah activerecord does that
[19:18:58] underplank: has joined #ruby
[19:19:03] aep: even if i told it not to, it would still store useless characters in some random coding
[19:19:24] aep: well thats what i'm doing now anyway :/
[19:19:46] goodcodeguy: has joined #ruby
[19:20:36] apeiros: ok, let's start at the beginning - how come you don't know the encoding of your string?
[19:20:47] LoneHerm_: has joined #ruby
[19:21:02] aep: i dont want to go there. thanks tho
[19:21:45] apeiros: ok. here's how you break your data: str.force_encoding('utf-8').gsub(/[\x80-\xff]+/, '')
[19:21:47] ruby[bot]: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[19:21:47] Jet4Fire: has joined #ruby
[19:22:31] zackzorman: has joined #ruby
[19:22:33] apeiros: IMO a bad idea to do, but seems to me you don't care about having an actually proper solution. the above will get rid of non-ascii chars as asked.
[19:22:43] aep: cool, thanks
[19:22:47] zackzorman: What's with Rails development on Windows
[19:22:56] apeiros: zackzorman: what's with it?
[19:23:45] zackzorman: I'm wondering how many people are deving on Windows?
[19:24:03] zackzorman: I'm writing an article on Ruby on Rails Development, Industry, and Windows
[19:24:11] synthroid: has joined #ruby
[19:24:21] lxsameer: has joined #ruby
[19:24:22] lxsameer: has joined #ruby
[19:24:23] apeiros: you can try and ask in the actual rails channel (#rubyonrails)
[19:24:35] apeiros: I wouldn't be surprised if nobody has such a statistic at hand, though
[19:24:47] zackzorman: It's pretty empty
[19:24:53] mdw: has joined #ruby
[19:25:05] apeiros: 600 people is pretty empty?
[19:25:07] doctorly: has joined #ruby
[19:25:15] stannard: has joined #ruby
[19:25:53] Guest33: has joined #ruby
[19:26:05] nettoweb: has joined #ruby
[19:26:21] doctorly: Hello, I am sending in an application for a first job. I need to send ruby samples as part of the prescreening process. I have two that I can choose from, can someone look over these two examples and tell me which would be a better candidate?
[19:26:26] doctorly: https://github.com/brendenyule/fiddlestats/blob/master/lib/fiddlestats/request.rb
[19:26:27] Guest33: has left #ruby: ()
[19:26:32] doctorly: https://github.com/brendenyule/ruby-shark/blob/master/rubyshark.rb
[19:26:40] doctorly: Thanks in advance
[19:26:48] norc_: zotherstupidguy, I can tell you quite accurately how many people are developing Ruby on windows.
[19:26:57] norc_: zotherstupidguy, nobody in their right mind.
[19:27:05] edwinvdgraaf: has joined #ruby
[19:27:10] doctorly: norc_: lmao
[19:27:16] doctorly: greate time for me to show up
[19:27:32] Azure: has joined #ruby
[19:28:23] apeiros: norc_: zotherstupidguy didn't ask that, zackzorman did ;-)
[19:28:29] PaulCapestany: has joined #ruby
[19:28:33] al2o3-cr: aep: you could also use #encode "\xE9\x80\x92foo".encode(Encoding.find("ascii"), {invalid: :replace, undef: :replace, :replace => ''})
[19:29:15] aep: oh nice
[19:29:24] Infra-Red: has joined #ruby
[19:30:22] hxegon: has joined #ruby
[19:30:34] al2o3-cr: or whatever you want to replace them with
[19:30:50] shadoi: has joined #ruby
[19:31:22] dlitvak: has joined #ruby
[19:31:47] krobzaur: has joined #ruby
[19:32:01] tubulife-: has joined #ruby
[19:32:58] flughafen_: has joined #ruby
[19:33:35] MuffinPimp: has joined #ruby
[19:35:51] shadoi: has joined #ruby
[19:36:36] nicoulaj_: has joined #ruby
[19:36:43] patchedmonkey: has joined #ruby
[19:36:51] FernandoBasso: has joined #ruby
[19:38:12] devbug: has joined #ruby
[19:38:30] mfb2: has joined #ruby
[19:38:32] Frem: has joined #ruby
[19:38:42] bithon: has joined #ruby
[19:38:56] mustmodify_: has joined #ruby
[19:39:24] frozen3: has joined #ruby
[19:39:32] mustmodify_: Can anyone tell me why this regex isn't stripping out the whitespace at the end of the first line?
[19:39:32] mustmodify_: " white space after line: \rstuff".gsub(/ *\z/, '').split(/[\r\n]/)
[19:39:36] mustmodify_: > " white space after line: \rstuff".gsub(/ *\z/, '').split(/[\r\n]/)
[19:40:14] mustmodify_: Oh... hm... how do you get that bot to run?
[19:40:24] hxegon: mustmodify_ just a guess here: \z is end of string, not end of line. I would have to see the string to be certain
[19:40:27] stannard: has joined #ruby
[19:40:31] hxegon: > p "like this"
[19:40:32] felixfortis: has joined #ruby
[19:40:50] hxegon: ... or not? it's been a minute since I was here
[19:40:52] podman: has joined #ruby
[19:41:30] hxegon: >> p 'like this?'
[19:41:32] ruby[bot]: hxegon: # => "like this?" ...check link for more (https://eval.in/519779)
[19:41:43] shlomo: Replace \z with $
[19:43:17] mustmodify_: >> " white space after line: \rstuff".gsub(/ *$/, '').split(/[\r\n]/)
[19:43:33] Xeago: has joined #ruby
[19:43:53] mustmodify_: >> p " white space after line: \rstuff".gsub(/ *$/, '').split(/[\r\n]/)
[19:44:59] hxegon: rubybot must not be feeling well :[
[19:45:03] ElFerna_: has joined #ruby
[19:45:33] mustmodify_: >> p 'like this?'
[19:45:43] ruby[bot]: al2o3-cr: # => 1 (https://eval.in/519780)
[19:46:29] al2o3-cr: mustmodify_: try with the `p`
[19:46:30] Abrin: has joined #ruby
[19:46:41] mdw: has joined #ruby
[19:47:15] mustmodify_: RubyBot hates me.
[19:47:40] ruby[bot]: mustmodify: # => 1 (https://eval.in/519782)
[19:47:52] ruby[bot]: mustmodify_: # => 1 (https://eval.in/519783)
[19:48:09] mustmodify_: >> " white space after line: \rstuff".gsub(/ *$/, '').split(/[\r\n]/)
[19:48:09] shlomo: mustmodify_: you have to use \r in the first regex to match it: " white space after line: \rstuff".gsub(/ *([\r\n])/, '\1').split(/[\r\n]/)
[19:48:10] ruby[bot]: mustmodify_: # => [" white space after line: ", "stuff"] (https://eval.in/519785)
[19:48:39] shlomo: I think it's better to split first: " white space after line: \rstuff".split(/[\r\n]/).map(&:rstrip)
[19:49:17] shlomo: It seems /$/ only matches \n, not \r.
[19:50:07] replay: has joined #ruby
[19:50:19] eam: shlomo: $ should match $\
[19:50:22] ruby[bot]: eam: # => nil (https://eval.in/519786)
[19:50:36] dstarh: has joined #ruby
[19:50:37] mustmodify_: shlomo: That's true for small strings. I'm just doing the split to see the result... I'm doing the gsub on a rather large string.
[19:50:40] ruby[bot]: al2o3-cr: # => "\n" (https://eval.in/519787)
[19:51:07] bronson: has joined #ruby
[19:51:35] arlek: has joined #ruby
[19:52:01] MuffinPimp: has joined #ruby
[19:52:12] LoneHerm_: has joined #ruby
[19:54:17] Xeago: has joined #ruby
[19:54:35] shlomo: eam: what do you mean? (I said that the regex /$/ matches "\n" in a string)
[19:55:37] shlomo: mustmodify_: does this work for you: " white space after line: \rstuff".gsub(/ *([\r\n])/, '\1')
[19:55:37] intrigueD: has joined #ruby
[19:55:45] shlomo: >> " white space after line: \rstuff".gsub(/ *([\r\n])/, '\1')
[19:55:46] ruby[bot]: shlomo: # => " white space after line:\rstuff" (https://eval.in/519791)
[19:56:12] dhollinger: has joined #ruby
[19:57:01] mhoungbo: has joined #ruby
[19:57:32] apeiros: shlomo: $ does not match \n, it matches before it and before end of string
[19:57:33] Infra-Red: has joined #ruby
[19:58:15] dmr8: has joined #ruby
[19:58:26] blackmesa: has joined #ruby
[19:58:40] apeiros: mustmodify_: you have to be registered to use ruby[bot]'s eval feature.
[19:58:51] dlitvak_: has joined #ruby
[19:59:12] roshanavand: has joined #ruby
[19:59:43] shlomo: apeiros: right. but it doesn't match before \r
[19:59:45] Infra-Red: has joined #ruby
[20:00:25] al2o3-cr: >> " white space after line: \rstuff".gsub(/ *([\r\n])/, '\1'); $~
[20:00:27] ruby[bot]: al2o3-cr: # => #<MatchData " \r" 1:"\r"> (https://eval.in/519799)
[20:00:39] EvilRoey: ahlan shlomo
[20:00:41] stannard: has joined #ruby
[20:01:56] dlitvak__: has joined #ruby
[20:02:47] aibot: has joined #ruby
[20:03:10] godzillaenlacasa: has joined #ruby
[20:03:25] akkad: has joined #ruby
[20:04:13] beanHolez: has joined #ruby
[20:04:32] sgambino: has joined #ruby
[20:06:51] tulak: has joined #ruby
[20:08:26] nerium: has joined #ruby
[20:08:38] ur5us: has joined #ruby
[20:09:20] doctorly_: has joined #ruby
[20:09:30] juddey: has joined #ruby
[20:09:59] TomPeed: has joined #ruby
[20:11:20] doublemalt_: has joined #ruby
[20:12:18] railsForDaiz: has joined #ruby
[20:12:32] karmatr0n: has joined #ruby
[20:12:44] d10n-work: has joined #ruby
[20:13:13] yfeldblum: has joined #ruby
[20:14:24] doctorly: has joined #ruby
[20:15:17] rgtk: has joined #ruby
[20:16:39] roshanavand: has joined #ruby
[20:18:30] idefine: has joined #ruby
[20:18:38] Infra-Red: has joined #ruby
[20:18:42] stannard: has joined #ruby
[20:18:45] casadei: has joined #ruby
[20:18:50] cih: has joined #ruby
[20:18:53] dotix: has joined #ruby
[20:20:13] dotix: has left #ruby: ()
[20:21:06] asprillia: has joined #ruby
[20:21:13] ur5us: has joined #ruby
[20:21:32] roshanavand: has joined #ruby
[20:22:18] gregf: has joined #ruby
[20:23:25] TomyLobo: i'm trying to use httparty to put a file somewhere. unfortunately, it seems to require CURLOPT_UPLOAD, which tells it to use an "Expect: 100-Continue" header. is there any way to do that in ruby?
[20:23:46] TomyLobo: preferably with httparty as i have everything else set up for that
[20:24:09] mustmodify_: has left #ruby: ()
[20:24:13] maverous: has joined #ruby
[20:24:51] havenwood: TomyLobo: headers: { 'CURLOPT_UPLOAD' => 'Expect: 100-Continue' }
[20:25:00] havenwood: TomyLobo: Something like that ^, see HTTParty docs
[20:25:01] arlek: has joined #ruby
[20:25:14] TomyLobo: that doesnt look right
[20:25:19] al2o3-cr: seems about right
[20:25:26] maverous: If I have a hashmap where my values are arrays of ints (nonrepeating), how can I find the key which has the array that contains a certain int?
[20:25:33] TomyLobo: CURLOPT_UPLOAD is not a header
[20:25:42] TomyLobo: it's a curl option (hence "CURLOPT")
[20:25:53] TomyLobo: see https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD.html
[20:27:36] Grays0n: has joined #ruby
[20:27:46] gizmore: has joined #ruby
[20:27:55] Guest33: has joined #ruby
[20:28:08] Guest33: has left #ruby: ()
[20:28:18] karmatr0n: has joined #ruby
[20:28:45] stannard: has joined #ruby
[20:29:40] RegulationD: has joined #ruby
[20:30:36] LoneHerm_: has joined #ruby
[20:30:40] apeiros: maverous: Hash#find
[20:31:03] apeiros: maverous: if you do that often, you maybe should reconsider the way you structure your data
[20:32:11] Guest33: has joined #ruby
[20:33:11] underplank: has joined #ruby
[20:33:22] beanHolez: has joined #ruby
[20:33:36] aryaching: has joined #ruby
[20:33:40] MrSamuel: has joined #ruby
[20:33:46] freerobby: has joined #ruby
[20:34:06] blandflakes: has joined #ruby
[20:34:17] freerobby: has joined #ruby
[20:34:43] maverous: apeiros: thanks!
[20:35:17] bascht: has left #ruby: ("undefined")
[20:35:34] tubulife-: has joined #ruby
[20:36:38] sonOfRa: has joined #ruby
[20:37:35] mhoungbo: has joined #ruby
[20:40:15] goodcodeguy: has joined #ruby
[20:40:40] mdw: has joined #ruby
[20:40:47] Asher: has joined #ruby
[20:41:19] Coldblackice: has joined #ruby
[20:41:54] karmatr0n: has joined #ruby
[20:43:24] x77686d: has joined #ruby
[20:44:30] baweaver: has joined #ruby
[20:45:26] stannard: has joined #ruby
[20:45:35] Dimik: has joined #ruby
[20:46:11] Deas: has joined #ruby
[20:46:39] Deas: hi, is there a problem with rubygems? i can't install stuff w/ gem install
[20:47:07] Deas: if i change to http instead of https, i can install stuff but then it complains about openssl
[20:47:26] apeiros: https://status.rubygems.org
[20:47:31] lemur: has joined #ruby
[20:47:32] havenwood: Deas: The dependency API currently has partially degraded performance it seems at the moment. ^
[20:47:45] asmodlol: has joined #ruby
[20:47:59] Deas: havenwood: what does that mean? i'm not famuliure with that word
[20:48:17] Deas: well- not just the word, but as a whole
[20:48:26] Deas: sentence
[20:48:51] DexterLB: has joined #ruby
[20:48:53] Deas: so i guess ill have to wait then?
[20:49:35] havenwood: Deas: gist and show us the result of: gem install hola --debug
[20:50:03] DanKnox_: has joined #ruby
[20:50:12] moeabdol: has joined #ruby
[20:50:15] DanKnox: has joined #ruby
[20:50:24] tomchapin: has joined #ruby
[20:50:33] dlitvak: has joined #ruby
[20:51:24] dlitvak: has joined #ruby
[20:52:08] Deas: havenwood: https://p.teknik.io/ZreGR
[20:52:34] Deas: with openssl installed from http rubygems instead of https
[20:53:37] Grays0n: has joined #ruby
[20:53:50] Deas: havenwood: with openssl gem uninstalled: https://p.teknik.io/lPRN6
[20:54:01] baweaver: has joined #ruby
[20:54:14] skade: has joined #ruby
[20:54:16] havenwood: Deas: Install OpenSSL then rebuild Ruby against it so it can dynamically link.
[20:54:23] Deas: i recompiled ruby with ssl because i wasnt sure before
[20:54:49] havenwood: Deas: It doesn't seem you successfully linked against openssl.
[20:55:19] havenwood: Deas: Just to confirm?: ruby -ropenssl -e "0"
[20:55:58] stannard: has joined #ruby
[20:56:27] havenwood: Deas: "Unable to require openssl, install OpenSSL and rebuild ruby"
[20:57:04] devbug: has joined #ruby
[20:57:20] Deas: no such file
[20:57:22] cpruitt: has joined #ruby
[20:57:29] youngmathimus0: has joined #ruby
[20:58:33] stannard: has joined #ruby
[20:59:09] ElFerna_: has joined #ruby
[20:59:36] Deas: is there a page which points me to how to compile w/ openssl correctly? i did --with-openssl-dir=$(which openssl)
[20:59:55] Deas: which is probably wrong, but that's what i found by googleing
[21:00:40] tubulife-: has joined #ruby
[21:04:02] TomPeed: has joined #ruby
[21:04:12] floatingpoint: has joined #ruby
[21:05:13] dopie: has joined #ruby
[21:05:18] asprillia: has joined #ruby
[21:08:08] TomPeed: has joined #ruby
[21:08:47] edwinvdgraaf: has joined #ruby
[21:10:08] nerium: has joined #ruby
[21:10:58] TomPeed: has joined #ruby
[21:13:30] despai: has joined #ruby
[21:14:31] ElFerna_: has joined #ruby
[21:14:32] tatsuo: has joined #ruby
[21:15:09] cdg: has joined #ruby
[21:16:38] tomaz_b: has joined #ruby
[21:18:09] sandstrom: has joined #ruby
[21:18:53] symm-: has joined #ruby
[21:19:08] karapetyan: has joined #ruby
[21:20:57] mfb2: has joined #ruby
[21:22:14] baweaver: has joined #ruby
[21:23:03] edwinvdg_: has joined #ruby
[21:23:16] benlieb: has joined #ruby
[21:24:07] mfb2: has joined #ruby
[21:24:41] idefine: has joined #ruby
[21:24:53] shevy: Deas I usually recompile openssl into /usr prefix ./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib shared zlib-dynamic && make && make install
[21:25:37] shevy: then recompile ruby into /usr prefix too; in theory you could try to just go into ext/openssl and try to run the Makefile again though
[21:29:13] rbennacer: has joined #ruby
[21:29:46] Deas: ...yay? more stuff to build then..
[21:30:23] Deas: kinda confusing because i already have openssl, pretty outdated sure, but should work anyway :S
[21:31:04] Deas: shevy: config or configure?
[21:31:20] Deas: just makin' sure
[21:31:33] shevy: they use some custom config script rather than oldschool configure
[21:31:56] Deas: is that for ruby or ssl ?
[21:32:04] bithon: has joined #ruby
[21:32:50] shevy: the ruby people are using oldschool configure :)
[21:33:09] shevy: python folks too... perl folks are a bit weird... ./configure.gnu --prefix=/usr -Dusedevel -Dstatic_ext='Data/Dumper Fcntl IO POSIX'
[21:33:51] MrSamuel: has joined #ruby
[21:34:17] Deas: sounds like you have a whole arsenal of build scripts there ;o
[21:36:27] shevy: "2832 programs are registered in our cookbooks as of 16.02.2016."
[21:37:08] shevy: only glibc scares me
[21:37:20] Deas: what kind of cookbook is that? xD.
[21:37:31] Deas: does it make tasty food? xD hehe
[21:37:36] blandflakes: has joined #ruby
[21:37:50] afaris: has joined #ruby
[21:38:03] LoneHerm_: has joined #ruby
[21:39:39] tubulife-: has joined #ruby
[21:40:03] rikkipitt: has joined #ruby
[21:40:13] paha80: has joined #ruby
[21:41:27] BSaboia: has joined #ruby
[21:43:26] shazaum_: has joined #ruby
[21:47:26] ghr: has joined #ruby
[21:47:33] rht: has joined #ruby
[21:47:53] paha80: has joined #ruby
[21:48:51] zackzorman: has joined #ruby
[21:48:52] trinaldi: has joined #ruby
[21:50:41] bmalum: has joined #ruby
[21:53:39] shevy: Deas it has recipes!
[21:53:50] zacstewart: has joined #ruby
[21:55:00] al2o3-cr: shevy: what kind of recipes?
[21:55:58] shevy: al2o3-cr well sorta like LFS and BLFS really http://www.linuxfromscratch.org/lfs/view/development/chapter06/gcc.html but not as information rich yet
[21:56:28] al2o3-cr: shevy: phaha i was thinking food :P
[21:56:47] shevy: machomebrew
[21:56:52] shevy: everything has to do with foods and drinks
[21:57:02] shevy: mozzarella ... pizzaops ... waffles ... well he is not here right now
[21:57:24] frozen3: has joined #ruby
[21:57:25] shevy: I track their progress every now and then https://github.com/Homebrew/homebrew/commits/master/Library/Formula
[21:57:26] pizzaops: WHY HAVE YOU SUMMONED ME!?
[21:57:33] shevy: you have a tasty nick!
[21:57:39] pizzaops: This is acceptable.
[21:57:50] blackgoat: has joined #ruby
[21:57:55] Deas: hehe :p funny
[21:59:14] shevy: hi violadiego
[21:59:17] chipotle_: has joined #ruby
[22:00:34] idefine: has joined #ruby
[22:00:41] Eiam: did this end up being an issue for anyone here? https://cmcenroe.me/2016/02/16/el-capitan-gem-brick.html
[22:02:13] jimeh: Eiam: nope, I use rbenv to install my own versions of Ruby and never actually use the system one...
[22:02:29] Eiam: jimeh: yeah my initial response to this article is "don't use system libraries"
[22:02:40] Eiam: jimeh: so I was just curious if it ended up actually being a big deal for anyone else
[22:03:21] jimeh: Eiam: probably just for people who rarely uses Ruby I'd imagine...
[22:05:23] jimeh: Eiam: most people I know who uses Ruby a lot or do Ruby for work, install specific versions via rbenv or rvm, including myself... And I'd never heard of that issue till now... lol :)
[22:05:26] shevy: makes you wonder why apple restricted the superuser account altogether
[22:05:26] elifoster: has joined #ruby
[22:05:46] Eiam: shevy: because people gave away the keys to the kingdom without a second thought?
[22:06:07] shevy: no real clue
[22:06:11] Eiam: thereby indicating that people should generally not be trusted with the keys because they don't understand what they are giving up. In exchange, if you are savvy you can go get the keys and do as you wish. but its much more conscious
[22:06:15] jimeh: Apple have been doing weird shit with osx for about 5 years now at least...
[22:06:39] Eiam: jimeh: right I mean, I used rvm for years and now chruby
[22:06:49] Eiam: jimeh: so the article was a bit like "well, duh, same goes for Python.. don't use system versions.."
[22:07:03] jimeh: Yeah, so true... lol
[22:07:09] shevy: it would almost fit to debian + system packages too! :)
[22:07:55] jimeh: And I haven't heard of chruby before, I'll have to check it out :)
[22:08:07] havenwood: jimeh: https://github.com/postmodern/chruby
[22:08:41] tomchapin: has joined #ruby
[22:08:43] Eiam: recommend
[22:08:49] Eiam: i moved from rvm to chruby a few months ago
[22:08:52] mfb2: has joined #ruby
[22:09:21] jimeh: Personally I'm pretty sure I'll eventually need to move away from osx at some point when it's essentially becomes a mouse driven iOS version that totally forsakes power users, thankfully the move is happening slowly for now... lol
[22:09:34] jimeh: Thanks havenwood
[22:11:12] ElFerna: has joined #ruby
[22:11:31] jimeh: Eiam: right, it's even more basic than rbenv... More or less same thing as nvm is for Node.js :)
[22:12:14] toretore: has joined #ruby
[22:12:21] tatsuo: has joined #ruby
[22:12:30] shevy: jimeh \o/
[22:12:49] shevy: as long as you are comfortable with the commandline
[22:13:14] shevy: and perhaps ruby scripts to help
[22:13:15] jimeh: I think I'll stick to rbenv for the time being at least, specially since I like it's auto switching which chruby doesn't seem to have....
[22:13:46] havenwood: jimeh: chruby supports autoswitching with .ruby-version files
[22:13:47] idefine: has joined #ruby
[22:14:15] havenwood: jimeh: https://github.com/postmodern/chruby#auto-switching
[22:14:22] stevemackinnon: has joined #ruby
[22:14:37] jimeh: Oh, skimming the readme I saw "doesn't auto switch"... Didn't skim deep enough I guess... lol
[22:15:32] shevy: jimeh havenwood is busy adding things to all of them!
[22:16:19] jimeh: Apologies, doesn't auto-switch by default >_<
[22:16:36] shevy: https://github.com/postmodern/chruby/commits/master there!
[22:16:45] shevy: "Switched to TravisCI container-based infrastructure."
[22:17:41] shevy: https://github.com/rvm/rvm/commits/master
[22:17:49] shevy: "Merge pull request #3616 from jgaskins/jruby-9050"
[22:17:51] shevy: he is everywhere!
[22:18:21] jimeh: I'll give it a when I got some free time... Would force me sort out envs in my Emacs setup too, as right now I add rbenv's shim path to the exec-path :P
[22:18:31] shevy: I don't know how he manages, I am way out with keeping my own projects up to date myself, yet alone assist others with their projects :(
[22:18:36] jimeh: Haha... So he is shevy :)
[22:19:07] jimeh: Agreed, I'm way behind on my own projects too...
[22:19:18] openstruct: has joined #ruby
[22:19:18] openstruct: has joined #ruby
[22:21:02] RobertBirnie: has joined #ruby
[22:21:14] htmldrum: has joined #ruby
[22:21:46] jimeh: And top thing I want to do atm is sort out a decent Rubocop autocorrect thing for Emacs... Which means one more project to eventually fall behind on... lol
[22:22:11] agentmeerkat: has joined #ruby
[22:23:15] wprice_: has joined #ruby
[22:23:16] rikkipitt: has joined #ruby
[22:23:28] pawnbox: has joined #ruby
[22:24:33] idefine: has joined #ruby
[22:24:52] x77686d: has joined #ruby
[22:25:14] s00pcan_: has joined #ruby
[22:25:40] arlek_: has joined #ruby
[22:25:50] ta: has joined #ruby
[22:26:08] shevy: I hope for the day until someone tells me how to easily customize rubocop
[22:27:52] postmodern: has joined #ruby
[22:28:26] symm-: has joined #ruby
[22:29:29] jimeh: Yeah, that'd be nice...
[22:30:54] yfeldblum: has joined #ruby
[22:31:15] jimeh: For now I don't really need to care though, my new client has a established Rubocop config some godly being created, and all code needs to adhere to it the CI build breaks... So Rubocop's autocorrect feature has become my best friend... lol
[22:31:39] jimeh: *or the CI build breaks
[22:31:42] tatsuo_: has joined #ruby
[22:32:31] helpa: has joined #ruby
[22:32:55] bmalum: has joined #ruby
[22:34:17] ICantCook: has joined #ruby
[22:36:07] tatsuo: has joined #ruby
[22:39:06] shevy: yeah it's the thing I like about rubocop
[22:39:18] JDiPierro: has joined #ruby
[22:39:36] crdpink: has joined #ruby
[22:41:24] zenlot1: has joined #ruby
[22:42:49] LoneHermit: has joined #ruby
[22:44:44] william3: has joined #ruby
[22:44:51] mickey_mouse_3: has joined #ruby
[22:45:24] baweaver: has joined #ruby
[22:46:01] skade: has joined #ruby
[22:46:36] mfb2: has joined #ruby
[22:48:31] pizzaops: How does one get a Ruby hash from a Psych::Nodes::Document object?
[22:48:49] pizzaops: I have YAML as a string, and I see that I can get a hash directory by doing YAML::load(mystringinthisvar)
[22:49:15] pizzaops: But when I do YAML.parse(mystringinthisvar) i get a Psych::Nodes::Document, and I'm just curious how one would in theory get a hash from it.
[22:50:39] mfb2: has joined #ruby
[22:52:06] pdoherty: has joined #ruby
[22:54:02] wldcordeiro: has joined #ruby
[22:55:16] railsForDaiz: has joined #ruby
[22:58:18] Xeago: has joined #ruby
[23:02:54] hxegon: has joined #ruby
[23:04:24] shanemcd: has joined #ruby
[23:04:32] mfb2: has joined #ruby
[23:06:06] baweaver: has joined #ruby
[23:06:32] stannard: has joined #ruby
[23:07:41] darix: pizzaops: if my yaml is a hash
[23:07:44] darix: i get hash back
[23:08:27] darix: hmm works with load_file but not with parse
[23:09:22] darix: pizzaops: YAML.load does what you want. but you should look in the API docs. there was something security related to the API difference
[23:10:06] mg^: has joined #ruby
[23:10:24] stannard: has joined #ruby
[23:10:51] c0ncealed: has joined #ruby
[23:11:02] al2o3-cr: pizzaops: you could use #to_ruby
[23:11:04] yfeldblum: has joined #ruby
[23:11:22] pizzaops: @al2o3-cr <3
[23:11:24] edwinvdgraaf: has joined #ruby
[23:12:00] al2o3-cr: but it defeats the object really :p
[23:12:02] BSaboia: has joined #ruby
[23:12:11] pizzaops: al2o3-cr: I was just curious. Also lol at it being called "to_ruby".
[23:16:55] robbyoconnor: has joined #ruby
[23:16:58] robbyoconnor: has joined #ruby
[23:18:01] rbennacer: has joined #ruby
[23:19:04] bronson: has joined #ruby
[23:20:11] mfb2: has joined #ruby
[23:21:38] shanemcd: has joined #ruby
[23:22:51] idefine: has joined #ruby
[23:22:54] zach2825: has joined #ruby
[23:23:05] zach2825: nybody here know how to tell bundler to use ruby version 2.0.0 no matter what i do it tries to use 1.9 which is breaking things.
[23:23:27] greynetic: has joined #ruby
[23:23:28] zach2825: does anybody here know how to tell bundler to use ruby version 2.0.0 no matter what i do it tries to use 1.9 which is breaking things.
[23:23:30] aegis3121: Are you using anything like rvm/rbenv/others to manage your ruby versions?
[23:23:55] jhass: zach2825: post your rvm info to a gist
[23:24:20] jhass: also append the output of type -a bundler
[23:24:31] jhass: or type -a bundle rather
[23:25:00] despai: has joined #ruby
[23:25:34] zach2825: when i try to run bundle -a i get "Unknown switches '-a' "
[23:25:38] Eiam_: has joined #ruby
[23:26:04] aegis3121: He meant, literally "type -a bundle" as your command (I believe)
[23:26:05] al2o3-cr: zach2825: `type -a bundler` is a command
[23:26:19] al2o3-cr: *bundle sorry
[23:26:32] zach2825: https://gist.github.com/zach2825/d885740cabea030b1470
[23:26:48] zach2825: i get "bundler is /usr/local/bin/bundler"
[23:27:11] zach2825: bundle is /usr/local/bin/bundle
[23:27:11] zach2825: bundle is /usr/bin/bundle
[23:27:23] peteyg_: has joined #ruby
[23:27:37] amclain_: has joined #ruby
[23:27:44] tAn: has joined #ruby
[23:27:54] pwnd_nsfw`: has joined #ruby
[23:28:18] Cohedrin_: has joined #ruby
[23:28:25] e4xit: has joined #ruby
[23:28:43] zach2825: i've been at this for hours. im out of ideas
[23:29:31] ghoti_: has joined #ruby
[23:29:45] sjumsa: has joined #ruby
[23:30:04] Ox0dea: `rvm implode`
[23:30:25] jord_: has joined #ruby
[23:30:25] avahey_: has joined #ruby
[23:30:32] netwoodle: has joined #ruby
[23:30:33] pfg_: has joined #ruby
[23:30:37] bjeanes_: has joined #ruby
[23:30:38] sideshowcoder_: has joined #ruby
[23:30:38] chrisseaton_: has joined #ruby
[23:30:39] halfdan_: has joined #ruby
[23:30:40] zach2825: i've tried that. should i also remove the bundler and bundle packages
[23:31:15] crowell_: has joined #ruby
[23:31:26] Zai00_: has joined #ruby
[23:31:38] zach2825: ok that command is done
[23:31:56] sponjii__: has joined #ruby
[23:31:57] Sami345: has joined #ruby
[23:31:58] kellabyte_: has joined #ruby
[23:32:02] bttf_: has joined #ruby
[23:32:06] zenergi_: has joined #ruby
[23:32:06] Ralf_J: has joined #ruby
[23:32:09] rethi_: has joined #ruby
[23:32:27] jtdowney_: has joined #ruby
[23:32:29] jzigmund_: has joined #ruby
[23:32:30] casadei_: has joined #ruby
[23:32:31] agentmee1kat: has joined #ruby
[23:32:35] BiHi: has joined #ruby
[23:32:49] hinbody_: has joined #ruby
[23:32:53] unreal_: has joined #ruby
[23:32:59] kappy_: has joined #ruby
[23:33:09] sushi_-: has joined #ruby
[23:33:10] cardoni_: has joined #ruby
[23:33:11] sarbs_: has joined #ruby
[23:33:11] frode15243_: has joined #ruby
[23:33:13] rflot_: has joined #ruby
[23:33:33] adambeynon_: has joined #ruby
[23:33:36] skmp_: has joined #ruby
[23:33:40] deimos_: has joined #ruby
[23:33:59] twodayslate_: has joined #ruby
[23:34:05] meinside___: has joined #ruby
[23:34:11] frankS2_: has joined #ruby
[23:34:23] Rush_: has joined #ruby
[23:34:30] cstrahan_: has joined #ruby
[23:34:37] andersh_: has joined #ruby
[23:34:58] zach2825: aegis3121, i think this is the problem https://gist.github.com/zach2825/fc1c557fba7195d6d945
[23:35:01] camilasann: has joined #ruby
[23:35:12] jhass: zach2825: https://rvm.io/support/troubleshooting the second to last entry
[23:35:20] d10n-work_: has joined #ruby
[23:35:28] ziyadb_: has joined #ruby
[23:35:31] machty_: has joined #ruby
[23:35:34] bgresham: has joined #ruby
[23:35:38] kkirsche: has joined #ruby
[23:35:39] ramblinpeck_: has joined #ruby
[23:35:42] rideh-: has joined #ruby
[23:35:44] denym_`: has joined #ruby
[23:35:44] sjohnsen-: has joined #ruby
[23:35:45] spacemud_: has joined #ruby
[23:35:45] TakumoKatekari: has joined #ruby
[23:35:45] okdas_: has joined #ruby
[23:35:45] TakumoKatekari: has joined #ruby
[23:35:48] j2k_: has joined #ruby
[23:35:48] joconcepts_: has joined #ruby
[23:35:49] C0deMaver1ck: has joined #ruby
[23:35:49] mighty_gorilla: has joined #ruby
[23:36:02] jhass: zach2825: then install RVM as a regular user, not as root
[23:36:09] Plas: has joined #ruby
[23:36:18] jhass: then make sure to open a new login shell for that user
[23:36:22] mary5030: has joined #ruby
[23:36:42] ur5us_: has joined #ruby
[23:36:43] jhass: install ruby 2.0 (or yet better something not EOL in a week from now), gem install bundler and you should be good
[23:36:45] zach2825: ok that command is done
[23:38:44] beawesomeinstead: has joined #ruby
[23:38:44] lele: has joined #ruby
[23:38:44] x0F: has joined #ruby
[23:38:44] Liothen: has joined #ruby
[23:38:44] Xeago: has joined #ruby
[23:38:45] zach2825: same problem. my system is using ruby 2.0.0p648 but bundle install is using something 1.9.1
[23:38:45] zach2825: nothing i do makes bundle use ruby 2.0.0
[23:38:50] err_ok: has joined #ruby
[23:38:58] Liothen: has joined #ruby
[23:39:40] Luna_Moonfang: has joined #ruby
[23:39:44] jhass: you installed RVM as a user, ruby 2.0 within it, selected it, installed bundler then and retried within 2 minutes?
[23:39:49] jhass: sorry if I don't believe that
[23:39:51] sorah_: has joined #ruby
[23:39:53] rkazak: has joined #ruby
[23:40:16] zach2825: i have a lot of band width and a pretty good server
[23:40:44] amitchellbullard: has joined #ruby
[23:41:08] jhass: what does rvm current say?
[23:41:58] Evans: has joined #ruby
[23:42:34] danzilio: has joined #ruby
[23:42:56] zach2825: im running the command to install 2.0.0 right now. maybe switching from 2.0.0p648 to just 2.0.0 will resolve something
[23:43:13] zach2825: i used "rvm install ruby-2.0.0"
[23:43:20] nofxx: has joined #ruby
[23:43:20] nofxx: has joined #ruby
[23:43:31] mprelude_: has joined #ruby
[23:43:36] mrsolo: has joined #ruby
[23:43:44] iamdevnul: has joined #ruby
[23:43:55] c0ncealed: has joined #ruby
[23:43:57] jtdoncas: has joined #ruby
[23:44:16] zach2825: this one is a bit slower. still compiling..
[23:44:17] al2o3-cr: has joined #ruby
[23:44:24] dubek: has joined #ruby
[23:46:09] whiteline: has joined #ruby
[23:46:38] nibbo: has joined #ruby
[23:46:44] Hanmac: has joined #ruby
[23:46:48] wolffles: has joined #ruby
[23:46:58] AckZ: has joined #ruby
[23:47:04] baweaver: has joined #ruby
[23:47:04] sondr3: has joined #ruby
[23:47:58] cookiez: has joined #ruby
[23:47:58] akem: has joined #ruby
[23:47:58] 6A4AB3XQ1: has joined #ruby
[23:47:58] blackms: has joined #ruby
[23:47:58] jazzonmymind: has joined #ruby
[23:47:58] shevy: has joined #ruby
[23:47:58] ddfreyne: has joined #ruby
[23:47:58] Domaldel: has joined #ruby
[23:47:58] Nanuq: has joined #ruby
[23:47:58] arthropododo: has joined #ruby
[23:47:59] cjk101010: has joined #ruby
[23:47:59] bodgix: has joined #ruby
[23:47:59] crayfishx: has joined #ruby
[23:48:02] 6A4AB3XQ1: has joined #ruby
[23:48:02] modin: has joined #ruby
[23:48:04] shevy: has left #ruby: ("I'll be back ... maybe")
[23:48:07] shevy: has joined #ruby
[23:48:14] yo61: has joined #ruby
[23:48:16] DrCode: has joined #ruby
[23:48:16] shevy: huh what happened, netsplit?
[23:48:22] st1gma: has joined #ruby
[23:48:25] avenj: has joined #ruby
[23:48:50] Trieste: has joined #ruby
[23:49:09] Guest12896: has joined #ruby
[23:50:50] meinside: has joined #ruby
[23:51:31] dlitvak: has joined #ruby
[23:51:58] JDiPierro: has joined #ruby
[23:52:47] c355E3B: has joined #ruby
[23:53:47] kam270: has joined #ruby
[23:54:22] johnny56_: has joined #ruby
[23:55:06] johnmilton: has joined #ruby
[23:55:20] mg^: I made an MRuby plugin for HexChat... https://github.com/mgcaret/hexchat-mruby
[23:55:56] kam270: has joined #ruby
[23:56:57] yfeldblum: has joined #ruby
[23:58:25] TomyLobo: you're telling me that on #ruby while i'm using hexchat