« Back to channel list

#ruby - 15 February 2016

« Back 1 day Forward 1 day »
[00:00:45] duckpuppy: has joined #ruby
[00:01:24] eljimmy: has joined #ruby
[00:02:34] stannard: has joined #ruby
[00:02:54] Ox0dea: drale2k: Doesn't look like there's anything. https://github.com/dmendel/bindata should make writing your own a little less painful.
[00:04:49] drale2k: Ox0dea: thanks
[00:04:59] Ox0dea: Sure thing.
[00:05:16] stevemackinnon: has joined #ruby
[00:05:41] Domaldel: has joined #ruby
[00:06:08] unl0ckd: has joined #ruby
[00:06:55] Ox0dea: drale2k: I think this is the spec? http://www.aprs.org/doc/APRS101.PDF
[00:07:56] platzhirsch: Turned that whole iterating over transactions through their child relationship and summing them up into a blog post http://konrad-reiche.com/2016/02/14/traversing-your-collections-functional.html :)
[00:08:17] drale2k: Ox0dea: this is the FM1100 Protocol spec http://www.sourceforge.net/p/opengts/discussion/579834/thread/6fd0ffe8/6213/attachment/FMXXXX%20Protocols%20v2.10.pdf
[00:10:20] jamil: has joined #ruby
[00:10:30] Ox0dea: drale2k: Ah, that looks much more straightforward, at least.
[00:11:10] drale2k: Ox0dea: yes compared to the spec you sent although i have never done anything like this before. This is gonna be a wild ride
[00:11:31] Ox0dea: drale2k: Should be fun. :P
[00:11:36] johnmilton: has joined #ruby
[00:11:56] dasher00: has joined #ruby
[00:12:45] Ox0dea: Using bindata might actually take away from the learning experience, even.
[00:13:03] Ox0dea: But the pack/unpack interface really is one of the more unpleasant aspects of Ruby.
[00:13:19] dasher00: has joined #ruby
[00:13:49] drale2k: hm, with bindata i don't see how i can set an offset for example
[00:14:06] drale2k: to tell it how many bites to take for long, lat etc
[00:14:54] drale2k: offset is maybe the wrong word, more like field names
[00:15:54] volty: drale2k: you could try manually, interpreting yourself, smt like https://eval.in/private/a98172fe9d90e1
[00:17:30] volty: when you get the clear picture of the whole you can reimplemented using bindata gem
[00:18:06] drale2k: volty: so the codec is telling me about the number of records? I am curious about the 4th line, "n_records"
[00:18:56] Azure: has joined #ruby
[00:19:58] volty: the @codec is telling you about the codec, the @n_records is the number of records, then you have an array of that many records, then it is up to you to read properly a record inside the loop. I didn't see the spec.. Mine is just general hint since you seem lost with bindata
[00:20:15] volty: this way too is easier to check / debug
[00:20:33] volty: * array of hashes
[00:21:26] moshee: has joined #ruby
[00:21:26] moshee: has joined #ruby
[00:22:13] drale2k: volty: i wonder because you read the codec and the number of records from the first 2 bytes
[00:22:14] voidDotClass: has joined #ruby
[00:22:15] volty: don't know what you need. mine is just an idea/hint on plain ascii-hex parsing this kind of data. then you have to interpret correctly the fields, the numbers. if the records are of fixed length it would be trivial to fill it
[00:22:42] drale2k: thats a good start, thanks a lot
[00:22:52] volty: ah, you read from IOString, not from a simple string
[00:24:13] dlitvak: has joined #ruby
[00:24:15] theRealAlexz: has joined #ruby
[00:26:35] s00pcan_: has joined #ruby
[00:26:57] drale2k: volty: sorry does that mean it is continuous? So calling read(2) the second time will read byte 3 and 4 because the first call read 1 and 2 ?
[00:27:01] loz: has joined #ruby
[00:28:24] volty: yes, sorry, wait a min
[00:28:54] volty: >> s = StringIO.new('volty'); [s.read(2), s.read(2)]
[00:28:56] ruby[bot]: volty: # => ["vo", "lt"] (https://eval.in/518602)
[00:30:15] volty: you can convert to StringIO after receiving a simple string; def read(the_string); s = StringIO.new(the_string) ....
[00:31:22] volty: can we @data[i].instance_eval { timestamp: s.read(2) } ?
[00:31:24] blackmesa: has joined #ruby
[00:31:31] pdoherty: has joined #ruby
[00:33:10] krobzaur: has joined #ruby
[00:33:52] superlou: has joined #ruby
[00:34:05] volty: ignore, nonsense (the last one)
[00:34:59] krobzaur_: has joined #ruby
[00:35:16] drale2k: volty: thanks i am starting to get the gist of it
[00:35:18] benlieb: has joined #ruby
[00:35:39] Ebok: has joined #ruby
[00:35:53] cyclonis: has joined #ruby
[00:35:59] superlou: I'm looking to make a real-time multiplayer game backend in Ruby, javascript frontend (Emberjs), and have been going in circles between eventmachine, celluloid, reel and faye, native websockets, etc. From reading, it seems like the event driven frameworks fulfill similar roles, but would one be more approrpriate as a game server (vs. http web server, etc.)?
[00:36:21] volty: yw, drale2k
[00:39:18] mybatman123: has joined #ruby
[00:39:56] alex88: has joined #ruby
[00:40:31] alex88: hi there, someone works with https://github.com/ruby/spec here? I've to create a test that checks how bigDecimal interacts with time.at and I would like some pointers on where to place the test
[00:41:33] havenwood: superlou: Another nice gem to look at that has a variety of concurrency primitives is Concurrent Ruby: https://github.com/ruby-concurrency/concurrent-ruby#readme
[00:41:51] alex88: look at contributing file it seems it should go in library since it requires stdlib for bigdecimal
[00:41:57] superlou: havenwood, arggg, another option :)
[00:42:27] havenwood: superlou: That's what Rails 5 ended up going with for ActionCable.
[00:42:33] havenwood: superlou: It was initially EventMachine and Celluloid.
[00:43:04] havenwood: superlou: Speaking of which, there's ActionCable.
[00:43:12] superlou: My backgrounds heavily rails, so I gave actioncable a look
[00:43:27] superlou: My concern is I was hoping to use an entity-component system rather than object-oriented
[00:43:42] havenwood: superlou: Ruby also has a very nice HTTP-2 implementation: https://github.com/igrigorik/http-2#readme
[00:43:44] superlou: And while I think I could force rails to do it, I think I might be able to rig up something an order of magnitude simpler
[00:44:19] Lildirt: has joined #ruby
[00:45:03] havenwood: superlou: Maybe double down and HTTP-2! :D
[00:45:44] superlou: other than new hotness, what's the big advantage?
[00:45:46] krobzaur: has joined #ruby
[00:45:53] superlou: compression?
[00:46:02] havenwood: superlou: out of the box, binary format
[00:47:06] superlou: havenwood, that looks slick, but I need to be careful of scope :)
[00:48:17] superlou: Dangerously close to just puting https://github.com/massivedanger/darkholme 's @engine.update(delta) function into a thread that calls itself every 100ms
[00:48:32] platzhirsch: has left #ruby: ()
[00:48:49] superlou: If I used http2, how do you communicate with a browser client?
[00:48:59] superlou: seeing a bunch of node plugins, but all serverside stuff
[00:49:28] juddey: has joined #ruby
[00:50:45] millerti: has joined #ruby
[00:51:05] mybatman123: has joined #ruby
[00:51:27] arescorpio: has joined #ruby
[00:51:37] RegulationD: has joined #ruby
[00:51:52] roshanavand: has joined #ruby
[00:52:55] mybatman123: has joined #ruby
[00:55:10] dlitvak: has joined #ruby
[00:55:50] zeroDivisible: has joined #ruby
[01:00:25] millerti: has joined #ruby
[01:00:37] rgtk: has joined #ruby
[01:01:12] ZerGabriel: has joined #ruby
[01:01:30] duckpuppy: has joined #ruby
[01:02:26] rgtk: has joined #ruby
[01:03:30] Gnut: has joined #ruby
[01:04:21] rgtk: has joined #ruby
[01:06:16] rgtk: has joined #ruby
[01:06:30] krobzaur: has joined #ruby
[01:06:41] roshanavand: has joined #ruby
[01:08:12] rgtk: has joined #ruby
[01:10:02] rgtk: has joined #ruby
[01:10:56] Ebok: has joined #ruby
[01:11:04] baweaver: has joined #ruby
[01:11:59] rgtk: has joined #ruby
[01:13:13] gnew: has joined #ruby
[01:13:52] rgtk: has joined #ruby
[01:17:16] weemsledeux: has joined #ruby
[01:17:20] asahi: has joined #ruby
[01:19:05] underplank: has joined #ruby
[01:19:08] voidDotClass: has joined #ruby
[01:19:17] havenwood: Ah, was away and superlou left, but browser support is coming along: http://caniuse.com/#feat=http2
[01:20:17] rgtk: has joined #ruby
[01:21:06] havenwood: It'd be neat to have something akin to Caddy in Ruby based on the http-2 gem: https://github.com/mholt/caddy
[01:21:57] havenwood: Having Let's Encrypt *just work* for HTTP-2 over HTTPS is enticing.
[01:24:05] Spami: has joined #ruby
[01:24:08] dlitvak: has joined #ruby
[01:24:29] rgtk_: has joined #ruby
[01:25:01] elifoster: has joined #ruby
[01:27:08] gnew: has joined #ruby
[01:30:53] blackmesa: has joined #ruby
[01:33:02] rgtk: has joined #ruby
[01:35:58] nickjj_: has joined #ruby
[01:36:52] Ebok: has joined #ruby
[01:37:09] devbug: has joined #ruby
[01:37:09] rgtk_: has joined #ruby
[01:40:03] pickandmix: has joined #ruby
[01:41:15] rgtk: has joined #ruby
[01:42:00] goodcodeguy: has joined #ruby
[01:44:27] devbug_: has joined #ruby
[01:45:25] rgtk_: has joined #ruby
[01:49:12] JoshGlzBrk: has joined #ruby
[01:49:35] rgtk: has joined #ruby
[01:51:26] sucks: has joined #ruby
[01:53:42] rgtk_: has joined #ruby
[01:56:08] platzhirsch: has joined #ruby
[01:56:28] platzhirsch: is there a shorter way to express array.each_with_index.each_with_object({}) { ... } ?
[01:57:14] DmitryBochkarev: has joined #ruby
[01:57:47] rgtk: has joined #ruby
[01:58:33] idefine: has joined #ruby
[01:59:02] dlitvak: has joined #ruby
[01:59:18] Ox0dea: platzhirsch: That could just be Enumerator#with_object there, but that's not much of a reduction.
[02:00:03] platzhirsch: ah each_with_index.with_object
[02:00:24] platzhirsch: No it's perfect. Certainly better than a kick in the teeth
[02:00:28] platzhirsch: it's just more readable
[02:01:57] rgtk: has joined #ruby
[02:02:22] duckpuppy: has joined #ruby
[02:03:01] Spami: has joined #ruby
[02:04:59] fedexo: has joined #ruby
[02:06:02] rgtk_: has joined #ruby
[02:06:14] tatsuo: has joined #ruby
[02:06:20] soLucien: has joined #ruby
[02:06:38] soLucien: if i want to write \\HOST\Software\VagrantBoxes\win2012r2min.box in ruby as a string variable
[02:06:49] soLucien: i have to enclose it in simple 's right ?
[02:06:55] soLucien: like this '\\HOST\Software\VagrantBoxes\win2012r2min.box''
[02:07:10] soLucien: OR do i have to double up on the \s ?
[02:07:23] soLucien: like \\\\HOST
[02:09:02] Ox0dea: Yeah, like that.
[02:09:12] Ox0dea: Backslashes must always be escaped in Ruby strings.
[02:09:38] underplank: has joined #ruby
[02:10:22] soLucien: can't i use single quotes ?
[02:10:28] Ox0dea: See above.
[02:11:15] soLucien: ah i'll just use 4 quotes, and that's that
[02:12:20] soLucien: backslashes *
[02:12:42] Ox0dea: It's not a guessing game...
[02:13:23] stannard: has joined #ruby
[02:13:27] Ox0dea: >> ["\\".size, '\\'.size] # soLucien
[02:13:28] ruby[bot]: Ox0dea: # => [1, 1] (https://eval.in/518623)
[02:13:58] soLucien: cool thanks !
[02:14:36] rgtk: has joined #ruby
[02:14:47] Ox0dea: No worries.
[02:16:42] y2mq37: has joined #ruby
[02:18:24] codesoda: has joined #ruby
[02:18:36] rgtk: has joined #ruby
[02:19:40] Spami: has joined #ruby
[02:19:44] idefine: has joined #ruby
[02:19:58] pickandmix: has joined #ruby
[02:20:59] seiji_: has joined #ruby
[02:22:25] nanoz: has joined #ruby
[02:22:46] rgtk_: has joined #ruby
[02:25:23] gnew: has joined #ruby
[02:25:24] dlitvak: has joined #ruby
[02:25:35] mickey_mouse: has joined #ruby
[02:27:16] rgtk: has joined #ruby
[02:29:04] SShrike: has joined #ruby
[02:31:08] rgtk: has joined #ruby
[02:35:14] rgtk_: has joined #ruby
[02:41:37] LoneHerm_: has joined #ruby
[02:47:59] rkazak: has joined #ruby
[02:48:12] rgtk: has joined #ruby
[02:52:27] RegulationD: has joined #ruby
[02:52:43] dlitvak: has joined #ruby
[02:56:50] rgtk: has joined #ruby
[02:58:02] resin: has joined #ruby
[02:58:28] bronson: has joined #ruby
[02:59:32] eikood: has joined #ruby
[03:00:44] underplank: has joined #ruby
[03:00:57] rgtk_: has joined #ruby
[03:01:28] idefine: has joined #ruby
[03:03:00] duckpuppy: has joined #ruby
[03:05:07] rgtk: has joined #ruby
[03:05:15] A124: has joined #ruby
[03:07:57] p1k: has joined #ruby
[03:12:11] baweaver: has joined #ruby
[03:13:43] rgtk: has joined #ruby
[03:17:17] mickey_mouse: has joined #ruby
[03:17:48] rgtk: has joined #ruby
[03:22:29] stannard: has joined #ruby
[03:23:07] duckpuppy: has joined #ruby
[03:24:24] mickey_mouse: has joined #ruby
[03:25:43] dlitvak: has joined #ruby
[03:26:11] rgtk: has joined #ruby
[03:26:38] pickandmix: has joined #ruby
[03:30:16] rgtk: has joined #ruby
[03:30:46] rakm: has joined #ruby
[03:35:11] Spami: has joined #ruby
[03:36:11] angryz: has joined #ruby
[03:36:39] eikood: has joined #ruby
[03:45:40] yfeldblum: has joined #ruby
[03:45:54] jayc0b0: has joined #ruby
[03:46:32] jayc0b0: Hello. I've got an issue I'm trying to work out.
[03:46:45] yfeldblum: has joined #ruby
[03:48:54] jayc0b0: In essence, I started working through the Odin Project and got to the part where you go through and install everything (Ruby, RoR, and some other stuff), and I ran into some weird behavior. Every time I start my terminal (zsh running in terminator), I get a string of errors along the lines of "Ignoring ____ because its extensions are not built"
[03:49:33] jayc0b0: I think it may have to do with the way I have things set up. The guide I followed included installing RVM and RubyGems and setting RVM to use version 2.2.
[03:51:41] havenwood: jayc0b0: If you have a bit of time I'd: gem pristine --all --extensions
[03:51:59] havenwood: (--extensions is default)
[03:52:08] jayc0b0: Ah. I tried that one.
[03:52:24] jayc0b0: I'll try it with the --extensions option to see if it changes anything
[03:52:36] jayc0b0: Also, I can link the guide that I followed.
[03:52:54] pawnbox: has joined #ruby
[03:53:08] jayc0b0: http://installfest.railsbridge.org/installfest/linux
[03:54:00] havenwood: jayc0b0: Do update to the latest RVM so if anything has been fixed you'll get that: rvm get head
[03:54:38] havenwood: jayc0b0: If you're still having the error, gist the full output as well as your `gem env` if you don't mind.
[03:54:56] jayc0b0: Okay. I'll give that a try as well. I tried rvm get stable earlier along with the --auto-dotfile option.
[03:54:58] dlitvak: has joined #ruby
[03:55:41] havenwood: jayc0b0: Stable is quite old, and latest is more stable. RVM is long overdue for a release. Everyone is busy!
[03:56:12] jayc0b0: Okay. Running rvm get head.
[03:56:35] jayc0b0: ... And still getting the error. So, onto the gem env?
[03:56:52] havenwood: jayc0b0: Yeah, I'm curious.
[03:57:21] pawnbox: has joined #ruby
[03:57:37] jayc0b0: That's a variable, correct?
[03:57:50] Radar: jayc0b0: Could you please gist the error?
[03:57:54] Radar: ?gist jayc0b0
[03:57:54] ruby[bot]: jayc0b0: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[03:58:18] jayc0b0: https://gist.github.com/jayc0b0/5f88ecc9d9ece16b5f2f
[03:58:59] jayc0b0: I get that every time I open my terminal, even after trying uninstalling and reinstalling the gems, as well as using pristine, both individually, and with the --all option.
[03:59:09] Radar: I literally have no idea, but I want to blame RVM just because I think RVM is bloated and overengineered.
[03:59:45] jayc0b0: Also, where would I find gem env? Is that file or a variable?
[04:01:19] jayc0b0: Ah. I got it.
[04:02:09] jayc0b0: Update the gist. https://gist.github.com/jayc0b0/5f88ecc9d9ece16b5f2f
[04:04:05] ledestin: has joined #ruby
[04:06:54] underplank: has joined #ruby
[04:08:04] treaki_: has joined #ruby
[04:09:07] Coldblackice: has joined #ruby
[04:10:59] jayc0b0: So, any insight from gem env?
[04:12:27] Radar: jayc0b0: What OS are you on?
[04:12:46] jayc0b0: I'm on Arch Linux
[04:13:01] Dimik: has joined #ruby
[04:13:06] braincrash: has joined #ruby
[04:13:18] Radar: jayc0b0: humour me: rvm implode --force, then follow http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/ to install Ruby with chruby+ruby-install.
[04:13:22] Radar: jayc0b0: I wonder if the error will go away then.
[04:15:56] ESpiney: has joined #ruby
[04:16:13] Azure|dc: has joined #ruby
[04:19:35] rethi: has joined #ruby
[04:19:42] codex: has joined #ruby
[04:20:01] anekos: has joined #ruby
[04:20:23] Shidash: has joined #ruby
[04:20:27] rizenine: has joined #ruby
[04:20:55] matp: has joined #ruby
[04:21:59] c0ncealed: has joined #ruby
[04:22:06] Morrolan: has joined #ruby
[04:24:19] benlieb: has joined #ruby
[04:24:35] WebDawg: has joined #ruby
[04:27:00] skweek: has joined #ruby
[04:28:18] havenwood: jayc0b0: Ah, I meant the command `gem env`, just typing: gem env
[04:28:39] havenwood: jayc0b0: chruby and ruby-install are simple made easy :)
[04:29:25] Marsjan: has joined #ruby
[04:29:47] darkxploit: has joined #ruby
[04:29:54] havenwood: jayc0b0: An aside, but chruby is included in the AUR.
[04:30:18] havenwood: jayc0b0: As is ruby-install.
[04:30:28] havenwood: yaourt -S chruby ruby-install
[04:30:47] havenwood: jayc0b0: https://gist.github.com/jhass/8839655bb038e829fba1
[04:32:37] jayc0b0: Currently grabbing rails in that guide
[04:32:43] jayc0b0: And chruby is pretty neat.
[04:32:44] gix: has joined #ruby
[04:32:55] jayc0b0: Definitely seems simpler than rvm
[04:33:39] havenwood: jayc0b0: hundreds of lines of shell is simpler than tens of thousands of lines of shell ;)
[04:35:27] LoneHerm_: has joined #ruby
[04:37:02] jayc0b0: I mean, you literally just say chruby whatever. It's like chsh practically.
[04:40:46] kp666: has joined #ruby
[04:43:25] jayc0b0: Alright. Got that guide finished
[04:43:44] jayc0b0: Aaaaand... No issues so far.
[04:43:49] jayc0b0: I think I'm in the clear.
[04:43:58] jayc0b0: Thank you so much for pointing me in the right directions.
[04:46:00] Radar: jayc0b0: yay :) another victory
[04:46:47] kp666: has joined #ruby
[04:47:25] jayc0b0: I'll definitely be in here if anything goes wrong in the future. Definitely one of the more helpful channels I've been in. ##networking was pretty rough. lol
[04:47:39] jayc0b0: Anyway, have a nice evening. I really appreciate the assistance.
[04:48:21] Ropeney: jayc0b0 make sure you return the assistance when things are going well though too :D
[04:48:28] Channel6: has joined #ruby
[04:48:34] pawnbox: has joined #ruby
[04:49:16] jayc0b0: For sure. I'd certainly like to get good enough to do that. :)
[04:49:22] jayc0b0: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[04:49:24] jayc0b0: has joined #ruby
[04:50:08] darkxploit: has joined #ruby
[04:52:35] pawnbox: has joined #ruby
[04:58:11] Trieste: has joined #ruby
[05:00:05] bronson: has joined #ruby
[05:00:21] perrier_: has joined #ruby
[05:00:22] hakunin_: has joined #ruby
[05:00:26] dexter_: has joined #ruby
[05:01:18] whiteline: has joined #ruby
[05:01:22] aibot: has joined #ruby
[05:02:05] tenderlove: has joined #ruby
[05:02:10] sucks: has joined #ruby
[05:02:17] pawnbox: has joined #ruby
[05:03:59] pawnbox: has joined #ruby
[05:04:47] underplank: has joined #ruby
[05:05:47] the_drow: has joined #ruby
[05:08:22] LoneHermit: has joined #ruby
[05:08:59] baweaver: has joined #ruby
[05:21:16] pawnbox: has joined #ruby
[05:28:34] tilllt: has joined #ruby
[05:31:34] UtkarshRay: has joined #ruby
[05:32:22] arlek: has joined #ruby
[05:40:53] tjbiddle: has joined #ruby
[05:42:17] juddey: has joined #ruby
[05:42:26] patchedmonkey: has joined #ruby
[05:43:49] godzillaenlacasa: has joined #ruby
[05:44:50] CloCkWeRX: has joined #ruby
[05:46:31] CloCkWeRX: has joined #ruby
[05:47:39] CloCkWeRX: has left #ruby: ()
[05:49:42] dmarr: has joined #ruby
[05:51:53] astrobun_: has joined #ruby
[05:53:40] JoshGlzBrk: has joined #ruby
[05:58:08] rhg135: has joined #ruby
[05:59:54] zzz: has joined #ruby
[06:00:04] patchedmonkey: has joined #ruby
[06:00:23] roshanavand: has joined #ruby
[06:00:28] tatsuo: has joined #ruby
[06:00:31] pawnbox: has joined #ruby
[06:00:40] tmtwd: has joined #ruby
[06:01:28] LuckyABA: has joined #ruby
[06:01:36] roshanavand: has joined #ruby
[06:01:46] pawnbox: has joined #ruby
[06:01:51] tildes: has joined #ruby
[06:02:43] fn2187: has joined #ruby
[06:03:45] dmarr: anyone using async testing with Sidekiq? I am trying to understand why my image isn't changing even though it appears to run the sepia_worker here: https://github.com/marr/localpic2/blob/master/test/workers/sepia_filter_test.rb#L21
[06:04:16] dmarr: sepia_filter rather https://github.com/marr/localpic2/blob/master/app/workers/sepia_filter.rb
[06:06:51] juddey: has joined #ruby
[06:07:04] terminalrecluse: has joined #ruby
[06:07:59] dionysus69: has joined #ruby
[06:08:05] tildes: has joined #ruby
[06:10:55] speakingcode: has joined #ruby
[06:11:15] pawnbox: has joined #ruby
[06:12:58] intrigueD: has joined #ruby
[06:15:58] pawnbox: has joined #ruby
[06:20:24] krz: has joined #ruby
[06:20:55] idefine: has joined #ruby
[06:24:45] pawnbox: has joined #ruby
[06:26:46] intrigueD: has joined #ruby
[06:34:08] moeabdol1: has joined #ruby
[06:37:10] idefine: has joined #ruby
[06:37:22] moeabdol2: has joined #ruby
[06:39:58] hjoest: has joined #ruby
[06:46:04] lxsameer: has joined #ruby
[06:47:20] ur5us: has joined #ruby
[06:48:07] karapetyan: has joined #ruby
[06:49:32] rkazak: has joined #ruby
[06:49:46] pawnbox: has joined #ruby
[06:50:23] ruby-lang898: has joined #ruby
[06:53:57] RegulationD: has joined #ruby
[06:54:17] karapetyan: has joined #ruby
[06:58:17] kies^: has joined #ruby
[06:59:16] solars: has joined #ruby
[07:01:40] TomyLobo: has joined #ruby
[07:02:00] sucks: has joined #ruby
[07:03:33] Damien22: has joined #ruby
[07:03:50] shaman42: has joined #ruby
[07:03:50] sysanthrope: has joined #ruby
[07:03:52] Gadgetoid: has joined #ruby
[07:03:52] olblak: has joined #ruby
[07:03:53] lnx: has joined #ruby
[07:03:58] Damien22: my god just spent 2h to install ruby 2.x on debian 7 and it's going nowhere >-<
[07:03:58] peteyg: has joined #ruby
[07:04:01] Janno: has joined #ruby
[07:04:01] SirCmpwn: has joined #ruby
[07:04:01] sts_: has joined #ruby
[07:04:02] neanderslob: has joined #ruby
[07:04:02] parus: has joined #ruby
[07:04:04] zacts: has joined #ruby
[07:04:04] nirix: has joined #ruby
[07:04:05] derailed: has joined #ruby
[07:04:06] Muz: has joined #ruby
[07:04:06] colegatron: has joined #ruby
[07:04:07] devyn: has joined #ruby
[07:04:07] shadeslayer: has joined #ruby
[07:04:08] lsmola: has joined #ruby
[07:04:08] Koshian: has joined #ruby
[07:04:08] gigetoo: has joined #ruby
[07:04:09] patronus: has joined #ruby
[07:04:09] djellemah: has joined #ruby
[07:04:10] joconcepts: has joined #ruby
[07:04:10] mprelude_: has joined #ruby
[07:04:10] gregf_: has joined #ruby
[07:04:10] speaking1ode: has joined #ruby
[07:04:11] mg^: has joined #ruby
[07:04:11] yxhuvud: has joined #ruby
[07:04:11] wldcordeiro: has joined #ruby
[07:04:12] mclee: has joined #ruby
[07:04:15] Xat`: has joined #ruby
[07:04:15] Dreamer3: has joined #ruby
[07:04:16] pocketprotector: has joined #ruby
[07:04:16] b3nt_pin: has joined #ruby
[07:04:16] aep: has joined #ruby
[07:04:17] coffeejunk: has joined #ruby
[07:04:21] v0n: has joined #ruby
[07:04:22] Sou|cutter: has joined #ruby
[07:04:22] nullwarp: has joined #ruby
[07:04:25] sarlalian: has joined #ruby
[07:04:25] romain_t: has joined #ruby
[07:04:28] ryotarai: has joined #ruby
[07:04:29] hfp: has joined #ruby
[07:04:29] Psyq: has joined #ruby
[07:04:34] guardian: has joined #ruby
[07:04:40] mozzarella: has joined #ruby
[07:04:45] go|dfish: has joined #ruby
[07:04:51] Edulix: has joined #ruby
[07:04:52] knight_: has joined #ruby
[07:04:54] donnoc: has joined #ruby
[07:05:03] Conflict: has joined #ruby
[07:05:07] g3funk: has joined #ruby
[07:05:12] GinoManWorks: has joined #ruby
[07:05:32] acerna: has joined #ruby
[07:05:54] MiracleBlue__: has joined #ruby
[07:06:01] sjohnsen: has joined #ruby
[07:06:17] jhill_: has joined #ruby
[07:06:27] srenatus: has joined #ruby
[07:06:28] Damien22: root@vps69270:/tmp/ruby-2.2.4# ruby -v >ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux]
[07:06:28] Damien22: root@vps69270:/tmp/ruby-2.2.4# gem install jekyll >ERROR: Error installing jekyll: jekyll requires Ruby version >= 2.0.0.
[07:07:24] Damien22: also ruby-switch --list >ruby1.8 >ruby1.9.1
[07:07:32] Damien22: i'm missing something
[07:08:54] tvw: has joined #ruby
[07:09:33] lurch_: has joined #ruby
[07:11:11] krz: has joined #ruby
[07:11:29] aufi: has joined #ruby
[07:15:36] scepticulous: has joined #ruby
[07:15:37] bigkevmcd: has joined #ruby
[07:16:23] burgestrand: has joined #ruby
[07:18:40] tjbiddle: has joined #ruby
[07:18:48] the_drow: has joined #ruby
[07:20:26] Damien22: finally got it
[07:21:12] mondok: has joined #ruby
[07:22:59] Hammy_Work: has joined #ruby
[07:23:39] eikood: has joined #ruby
[07:23:54] adgtl: has joined #ruby
[07:27:52] mhoungbo: has joined #ruby
[07:29:25] tilllt: has joined #ruby
[07:31:01] hakunin_: has joined #ruby
[07:31:55] karapetyan: has joined #ruby
[07:32:05] yardenbar: has joined #ruby
[07:35:53] Macaveli: has joined #ruby
[07:36:20] adgtl: has joined #ruby
[07:36:23] eljimbo: has joined #ruby
[07:36:26] jamw: has joined #ruby
[07:36:44] einarj: has joined #ruby
[07:37:11] bhaak: has joined #ruby
[07:37:42] anisha: has joined #ruby
[07:37:42] ruby-lang963: has joined #ruby
[07:38:43] zzz: has joined #ruby
[07:39:06] adgtl_: has joined #ruby
[07:39:23] andikr: has joined #ruby
[07:40:43] adgtl: has joined #ruby
[07:42:22] karapetyan: has joined #ruby
[07:42:27] firstdayonthejob: has joined #ruby
[07:44:12] eljimmy: has joined #ruby
[07:46:35] atmosx: has joined #ruby
[07:47:43] zzz: has joined #ruby
[07:49:50] armyriad: has joined #ruby
[07:50:00] burgestrand: has joined #ruby
[07:52:41] blaxter: has joined #ruby
[07:53:03] kirillzh: has joined #ruby
[07:53:48] houhoulis: has joined #ruby
[07:54:57] ramortegui: has joined #ruby
[07:59:03] sandstrom: has joined #ruby
[07:59:07] dmolina: has joined #ruby
[07:59:07] juddey: has joined #ruby
[07:59:09] cjbottaro: has joined #ruby
[08:02:28] hjoest2: has joined #ruby
[08:03:15] karapetyan: has joined #ruby
[08:10:10] CloCkWeRX: has joined #ruby
[08:10:21] pihpah: has joined #ruby
[08:11:51] idefine: has joined #ruby
[08:12:23] zzz: has joined #ruby
[08:13:40] adgtl: has joined #ruby
[08:13:51] SCHAAP137: has joined #ruby
[08:16:01] edwinvdgraaf: has joined #ruby
[08:16:46] pawnbox: has joined #ruby
[08:17:38] the_drow: has joined #ruby
[08:17:51] karapetyan: has joined #ruby
[08:18:01] sandstrom: has joined #ruby
[08:18:08] moua: has joined #ruby
[08:18:34] DexterLB: has joined #ruby
[08:18:44] pickandmix: has joined #ruby
[08:18:57] moredhel: has joined #ruby
[08:19:15] pickandmix: has joined #ruby
[08:22:13] jaiks: has joined #ruby
[08:22:15] eikood: has joined #ruby
[08:22:31] troulouliou_div2: has joined #ruby
[08:23:28] adgtl: has joined #ruby
[08:24:22] codecop: has joined #ruby
[08:24:34] eikood: has joined #ruby
[08:26:57] eikood: has joined #ruby
[08:27:32] DylanJ: has joined #ruby
[08:29:30] ziyadb: has joined #ruby
[08:29:39] y2mq37: has joined #ruby
[08:29:54] karapetyan: has joined #ruby
[08:35:29] SShrike: has joined #ruby
[08:36:52] framling: has joined #ruby
[08:37:16] tesuji: has joined #ruby
[08:38:00] rsc___: has joined #ruby
[08:40:38] last_staff: has joined #ruby
[08:41:13] armyriad: has joined #ruby
[08:44:53] astrobun_: has joined #ruby
[08:46:44] kmckelvin: has joined #ruby
[08:47:37] Mon_Ouie: has joined #ruby
[08:48:15] stannard: has joined #ruby
[08:48:15] snowy: has joined #ruby
[08:48:31] CloCkWeRX: has joined #ruby
[08:49:21] burgestrand: has joined #ruby
[08:50:01] railsForDaiz: has joined #ruby
[08:50:06] nettoweb: has joined #ruby
[08:50:41] binaryplease: has joined #ruby
[08:53:01] DEA7TH: has joined #ruby
[08:55:05] ddv: Damien22: use a ruby version manager
[08:55:29] ddv: Damien22: also installing gems as root is a bad idea but I guess this is the default with a system provided ruby
[09:01:17] futilegames: has joined #ruby
[09:01:47] bronson: has joined #ruby
[09:02:34] ta: has joined #ruby
[09:04:41] tesuji_: has joined #ruby
[09:04:57] Xeago: has joined #ruby
[09:05:04] askhat: has joined #ruby
[09:07:13] askhat: has joined #ruby
[09:08:44] futilegames: has left #ruby: ()
[09:10:43] kmckelvin: has joined #ruby
[09:12:47] railsForDaiz: has joined #ruby
[09:13:06] wwwbukolaycom: has joined #ruby
[09:13:38] mlehrer: has joined #ruby
[09:13:41] joonty: has joined #ruby
[09:15:11] binaryplease1: has joined #ruby
[09:15:28] mdw: has joined #ruby
[09:16:51] go|dfish: has joined #ruby
[09:16:53] acerna: has joined #ruby
[09:16:53] MiracleBlue__: has joined #ruby
[09:16:53] jhill_: has joined #ruby
[09:16:53] srenatus: has joined #ruby
[09:16:56] anisha: has joined #ruby
[09:16:56] andikr: has joined #ruby
[09:17:02] jaiks: has joined #ruby
[09:17:03] ziyadb: has joined #ruby
[09:18:47] rsc___: has joined #ruby
[09:18:55] binaryplease2: has joined #ruby
[09:19:42] valera: has joined #ruby
[09:20:22] JohnBat26: has joined #ruby
[09:23:45] cikunts: has joined #ruby
[09:23:54] cikunts: have you ever had dreams where you kill people?
[09:24:24] burgestrand: has joined #ruby
[09:24:54] hjoest: has joined #ruby
[09:25:04] hjoest2: has joined #ruby
[09:25:51] ChanServ: ChanServ kicked jimbow: is banned from this channel
[09:25:59] FastJack_: has joined #ruby
[09:26:15] LoneHerm_: has joined #ruby
[09:27:07] framlinqp: has joined #ruby
[09:28:56] manveru_: has joined #ruby
[09:29:27] hplar: has joined #ruby
[09:29:37] techietrash: has joined #ruby
[09:29:37] techietrash: has joined #ruby
[09:30:02] jmcc_______: has joined #ruby
[09:30:04] Miron: has joined #ruby
[09:30:08] lancetw: has joined #ruby
[09:30:19] tilllt: has joined #ruby
[09:30:19] Lloyd: has joined #ruby
[09:30:35] pandaant: has joined #ruby
[09:30:35] braderhart: has joined #ruby
[09:30:59] lsmola: has joined #ruby
[09:31:59] elliottcable: has joined #ruby
[09:32:33] dionysus70: has joined #ruby
[09:33:01] alphaatom: has joined #ruby
[09:34:47] sandstrom: has joined #ruby
[09:35:49] drptbl: has joined #ruby
[09:36:09] TheMoonMaster: has joined #ruby
[09:36:14] mikecmpbll: has joined #ruby
[09:36:23] tjbiddle: has joined #ruby
[09:36:58] yorickpeterse: has joined #ruby
[09:37:11] jamw: has joined #ruby
[09:38:05] william3: has joined #ruby
[09:38:50] jespada: has joined #ruby
[09:40:03] platzhirsch: has joined #ruby
[09:40:03] boogibugs: has joined #ruby
[09:40:30] Darkwater: has joined #ruby
[09:40:31] Darkwater: has joined #ruby
[09:41:16] binaryplease2: has joined #ruby
[09:41:29] pawnbox: has joined #ruby
[09:41:39] Gnut: has joined #ruby
[09:42:54] DEA7TH: has joined #ruby
[09:43:46] themsay2: has joined #ruby
[09:44:18] drptbl_: has joined #ruby
[09:44:36] ilhami: has joined #ruby
[09:44:40] ilhami: shevy, :D
[09:44:41] blur3d: has joined #ruby
[09:46:36] boogibugs: Hi, not sure if this is right place i am running a vagrant-demo to bring up some machines but i get an error when i run: bundle exec rake start gist here: https://gist.github.com/anonymous/57b0d810abf131b04c55
[09:49:06] shredding: has joined #ruby
[09:53:10] blackmesa: has joined #ruby
[09:53:56] soc42: has joined #ruby
[09:54:00] apeiros: boogibugs: maybe your ruby or rubygems is too old. not sure.
[09:54:09] yfeldblum: has joined #ruby
[09:54:47] hjoest3: has joined #ruby
[09:54:49] adgtl: has joined #ruby
[09:54:50] patchedmonkey: has joined #ruby
[09:55:39] apeiros: though, reading through gemspec guide it seems as if ext_dir was deprecated. at least it's not (no longer?) listed there.
[09:56:21] CloCkWeRX: has joined #ruby
[09:56:58] boogibugs: apeiros, $ gem --version 2.0.14 ruby --version ruby 2.0.0p598 (2014-11-13)
[09:57:52] boogibugs: I am new to using this stiff so not had issues before when i run some vagrant demos from github they usually work...
[09:58:00] boogibugs: *stuff... doh!
[09:58:20] boogibugs: bbiab meeting.
[10:00:50] blackmesa: has joined #ruby
[10:03:21] trinaldi: has joined #ruby
[10:03:42] tesuji: has joined #ruby
[10:04:06] andrewvos: has joined #ruby
[10:05:11] medfly: has joined #ruby
[10:06:00] arlek: has joined #ruby
[10:08:54] sauvin: has joined #ruby
[10:09:18] platzhirsch: has left #ruby: ()
[10:10:30] evidex: has joined #ruby
[10:10:41] marr: has joined #ruby
[10:13:35] ElFerna_: has joined #ruby
[10:15:19] marr: has joined #ruby
[10:16:14] medfly: has left #ruby: ()
[10:17:29] burgestrand: has joined #ruby
[10:18:16] rsc___: has joined #ruby
[10:19:35] FooMunki: has joined #ruby
[10:20:31] kp666: has joined #ruby
[10:21:53] mdw: has joined #ruby
[10:25:50] whiteline: has joined #ruby
[10:28:10] aryaching: has joined #ruby
[10:31:09] dlitvak: has joined #ruby
[10:33:14] pawnbox: has joined #ruby
[10:34:24] c0m0: has joined #ruby
[10:35:51] andrewvos: has joined #ruby
[10:38:17] Anderson69s: has joined #ruby
[10:38:52] YP-QMUL-W: has joined #ruby
[10:39:10] Dbugger: has joined #ruby
[10:40:35] ldnunes: has joined #ruby
[10:41:05] Dbugger: Hello fellas, I have been following this instructions (http://railsapps.github.io/installrubyonrails-ubuntu.html) to install ruby on Ubuntu, but when I run "rvm --default use ruby-2.3.0", I get the following error output (http://laravel.io/bin/PX1RP). What am I doing wrong???
[10:46:05] vikas027: has joined #ruby
[10:47:12] vikas027: has left #ruby: ()
[10:48:34] karapetyan: has joined #ruby
[10:49:23] A124: has joined #ruby
[10:50:07] skade: has joined #ruby
[10:51:25] adaedra: Did you setup your terminal to create login shells?
[10:52:31] william3: has joined #ruby
[10:53:25] ledestin: has joined #ruby
[10:53:41] ocbtec: has joined #ruby
[10:54:38] rikkipitt: has joined #ruby
[10:56:51] mark4: has joined #ruby
[10:57:11] tulak: has joined #ruby
[10:59:59] hjoest: has joined #ruby
[11:02:13] burgestrand: has joined #ruby
[11:03:02] maikowblue: has joined #ruby
[11:06:02] rsc___: has joined #ruby
[11:08:14] pawnbox: has joined #ruby
[11:08:24] dmolina: has joined #ruby
[11:08:38] jaiks: has joined #ruby
[11:09:25] gregf_: has left #ruby: ()
[11:09:44] tilllt: has joined #ruby
[11:10:38] gregf__: has joined #ruby
[11:14:33] LoneHermit: has joined #ruby
[11:15:00] baweaver: has joined #ruby
[11:15:44] x0F: has joined #ruby
[11:17:37] cajone: has joined #ruby
[11:23:29] Ishido: has joined #ruby
[11:28:03] hjoest2: has joined #ruby
[11:28:55] hjoest3: has joined #ruby
[11:29:13] dlitvak: has joined #ruby
[11:29:43] dtordable: has joined #ruby
[11:30:18] dlitvak_: has joined #ruby
[11:30:28] Hounddog: has joined #ruby
[11:30:57] Ropeney: has joined #ruby
[11:34:18] kobain: has joined #ruby
[11:36:08] Spami: has joined #ruby
[11:37:03] idefine: has joined #ruby
[11:37:59] jamw: has joined #ruby
[11:39:12] pickandmix: has joined #ruby
[11:42:52] Spami: has joined #ruby
[11:43:34] CloCkWeRX: has joined #ruby
[11:43:44] cassioscabral: has joined #ruby
[11:44:11] Xeago: has joined #ruby
[11:45:49] Shaboum: has joined #ruby
[11:46:46] rikkipitt: has joined #ruby
[11:48:43] dlitvak: has joined #ruby
[11:49:22] YP-QMUL-W: has joined #ruby
[11:54:56] pawnbox_: has joined #ruby
[11:56:30] boogibugs: apeiros, are you still here. I am back now any other ideas on that error.
[11:56:52] apeiros: which error?
[11:57:58] idefine: has joined #ruby
[11:58:48] jhass: boogibugs: try updating bundler
[12:01:05] Xeago: has joined #ruby
[12:02:18] stevemackinnon: has joined #ruby
[12:02:31] pawnbox: has joined #ruby
[12:02:35] zotherstupidguy: has joined #ruby
[12:02:57] Xeago: has joined #ruby
[12:03:22] UtkarshRay: has joined #ruby
[12:03:33] jottr: has joined #ruby
[12:04:57] hjoest: has joined #ruby
[12:08:25] ElFerna_: has joined #ruby
[12:09:43] boogibugs: jhass, gem update bundler or from yum? I am using RHEL 7 and this the latest one in the channel
[12:09:58] shevy: https://twitter.com/rubygems is quite nice, for those who did not know it
[12:10:19] jhass: I'd prefer the method you installed it from initially, given it has a newer version available
[12:11:22] adgtl: has joined #ruby
[12:11:42] boogibugs: jhass, rubygem-bundler-1.7.8-3.el7.noarch is the latest one installed this package you mean?
[12:12:05] jhass: perhaps? I avoid RHEL as much as I can
[12:12:21] jhass: the latest bundler release is 1.11.2 or so
[12:12:51] riotjones: has joined #ruby
[12:13:10] boogibugs: yeah I know what you mean but its my only choice for now... :(
[12:13:40] Xeago: has joined #ruby
[12:13:57] idefine: has joined #ruby
[12:14:21] boogibugs: is their an external repo then for those packages i can point to, as i do have sudo rights on my workstation at least
[12:15:32] boogibugs: right i just did gem install bundler and now have version 1.11.2. as said before I am new to this stuff.
[12:15:34] jhass: I mean you can "just" sudo gem install bundler if you're okay with installing stuff not managed by the package manager to the system
[12:15:43] boogibugs: I will give it another go
[12:16:48] burgestrand: has joined #ruby
[12:17:01] boogibugs: I just ran gem install bundler: new error you will like this... Could not find gem 'bundler (<= 1.10.5, >= 1.5.2)', which is required by gem 'vagrant (= 1.7.4)', in any of the sources.
[12:17:32] jhass: gem install bundler -v 1.10.5 ?
[12:17:41] boogibugs: so going round in circles it seems i will be
[12:17:48] boogibugs: will try that
[12:17:52] r4z3r: see if you can manually download the gem from rubygems and install it by hand
[12:18:11] boogibugs: rubygems.org?
[12:18:18] jhass: r4z3r: no need to, see above
[12:18:40] r4z3r: I understand above, and don't see how that matters jhass
[12:18:45] r4z3r: .gem's are just .zips
[12:18:56] jhass: I don't see how manually downloading the gem matters for anything
[12:18:58] r4z3r: so they can be extracted and installed if you know where the system gem path is
[12:19:13] r4z3r: it avoids circular checks to get a version installed
[12:19:34] jhass: I don't think the above error was from the gem install command
[12:19:37] boogibugs: yep same error when i run it and say that verison
[12:19:51] chouhoulis: has joined #ruby
[12:20:13] william3: has joined #ruby
[12:20:28] r4z3r: jhass he said, "I just ran gem install bundler"... how is that error not from gem install then
[12:20:38] boogibugs: it also mentions i should remove my vagrant plugins dir as well? should i do that after installing the 1.10.5 version. Iwill paste full error to existing gist
[12:20:52] jhass: ugh I don't know
[12:20:55] jhass: vagrant is such a mess
[12:21:03] jhass: don't they have a dedicated support channel?
[12:21:19] jhass: yes, #vagrant is a thing
[12:21:25] hjoest2: has joined #ruby
[12:21:27] boogibugs: yeah.. i am in there too.. but wasnt sure if the issue was ruby gems or vagrant...
[12:21:48] jhass: a combination of both an RHEL I'd say ;P
[12:21:59] r4z3r: ^^ RHEL adds complexity to many things
[12:22:09] jhass: where I'd blame rubygems & ruby the fewest
[12:22:34] boogibugs: yeah seems so
[12:22:50] boogibugs: so i cant edit an existing gist then it seems...
[12:23:15] jhass: not anonymous ones
[12:23:23] boogibugs: https://gist.github.com/anonymous/a2bb6f19c7c7ab89f7fe
[12:23:31] boogibugs: yep here is the latest one
[12:23:54] jhass: boogibugs: gem uninstall bundler -v 1.11.2
[12:23:58] boogibugs: i think i should remove that plugin dir maybe and re ru nand let it find v 1.10.5
[12:24:02] adaedra: we are anonymous, we never forget, we never forgive, and we can't edit gists.
[12:24:08] boogibugs: one option i was thinking too
[12:24:47] r4z3r: boogibugs if it's your gist, you'd click edit in the top right of the screen
[12:25:18] boogibugs: yeah i saw that earlier but then it is now gone from the first one i posted
[12:26:05] millerti: has joined #ruby
[12:26:13] r4z3r: it shouldn't ever leave it.. https://help.github.com/articles/creating-gists/ even my multi year old ones still have it
[12:26:22] framling: has joined #ruby
[12:26:55] jhass: r4z3r: hint: their github username is _not_ anonymous
[12:27:03] boogibugs: I can see a delete button but no edit in either gist i have created...
[12:27:20] boogibugs: yes maybe anonymous has no rights they just time out i guess...
[12:27:29] LoneHerm_: has joined #ruby
[12:28:07] boogibugs: got a little further now but fails launching the vm it maybe ruby code or vangrantfile now not sure
[12:28:11] Ousmane: has joined #ruby
[12:28:29] Ousmane: Bonjour tout le monde
[12:28:40] jhass: good morning
[12:33:49] Spami: has joined #ruby
[12:35:36] sdothum: has joined #ruby
[12:35:54] sepp2k: has joined #ruby
[12:37:30] AlexJakeGreen: has joined #ruby
[12:37:51] shevy: sexy language
[12:38:34] Ebok: has joined #ruby
[12:38:50] dlitvak_: has joined #ruby
[12:38:56] Ox0dea: https://eval.in/518856
[12:39:04] Ox0dea: "I find your lack of syntax errors disturbing."
[12:39:11] pawnbox: has joined #ruby
[12:40:11] AlexJakeGreen: Hi guys. Is it possible to get named captures if regex was called from variable? http://pastebin.com/embed_iframe/Fv4WACWT
[12:40:11] ruby[bot]: AlexJakeGreen: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[12:41:00] apeiros: AlexJakeGreen: use .match and see MatchData#captures
[12:41:15] stannard: has joined #ruby
[12:41:17] apeiros: or actually might only be available via MatchData#[]
[12:41:26] dextertzu: has joined #ruby
[12:41:35] Ebok: has joined #ruby
[12:41:46] skade: has joined #ruby
[12:42:41] Mon_Ouie: has joined #ruby
[12:42:51] AlexJakeGreen: apeiros, MatchData works, thank you!
[12:43:15] Ox0dea: >> r = /(?<month>\w+)/; 'Feb'[r]; $~[:month]
[12:43:16] ruby[bot]: Ox0dea: # => "Feb" (https://eval.in/518862)
[12:44:41] apeiros: Ox0dea: re your basic code - you could probably even get that to evaluate???
[12:44:49] BSaboia: has joined #ruby
[12:44:52] Ox0dea: apeiros: Well, yeah...
[12:45:13] Ox0dea: But permitting subroutines means making a full-on interpreter.
[12:45:58] Ox0dea: http://hackage.haskell.org/package/BASIC-0.1.5.0/src/examples/HiLo.hs
[12:46:07] AlexJakeGreen: I have never seen this syntax 'Feb'[r] before. I've got a new knowledge. thanks!
[12:46:29] rgtk: has joined #ruby
[12:46:32] Ox0dea: I'm sure that fella's so pleased that his language let him make it not an interpreter.
[12:47:00] apeiros: AlexJakeGreen: String#[] is quite powerful. in general it's a good idea to read through at least all of core docs once.
[12:47:25] aganov: has joined #ruby
[12:49:19] oivoodoo: has joined #ruby
[12:49:25] greynetic: has joined #ruby
[12:50:08] dlitvak: has joined #ruby
[12:50:17] Ox0dea: apeiros: Thoughts on a more aesthetic approach to IF/THEN support?
[12:50:52] apeiros: Ox0dea: trying not to even think about it, sorry :)
[12:51:46] pawnbox: has joined #ruby
[12:52:58] aryaching_: has joined #ruby
[12:55:09] duckpuppy: has joined #ruby
[12:55:12] sdothum: has joined #ruby
[12:55:46] kmckelvi1: has joined #ruby
[12:58:21] burgestrand: has joined #ruby
[12:58:26] blackmesa: has joined #ruby
[12:59:18] pawnbox: has joined #ruby
[12:59:18] johnmilton: has joined #ruby
[13:00:11] openstruct: has joined #ruby
[13:02:17] joonty: has joined #ruby
[13:02:31] unl0ckd: has joined #ruby
[13:02:54] themsay: has joined #ruby
[13:03:13] howdoi: has joined #ruby
[13:03:35] krz: has joined #ruby
[13:03:38] bronson: has joined #ruby
[13:04:36] themsay3: has joined #ruby
[13:11:37] godzillaenlacasa: has joined #ruby
[13:11:51] themsay: has joined #ruby
[13:12:01] syath: has joined #ruby
[13:13:20] sandstrom: has joined #ruby
[13:13:27] synthroid: has joined #ruby
[13:14:23] GinoManWorks: has joined #ruby
[13:14:25] Xeago: has joined #ruby
[13:16:06] shevy: apeiros has given up on Ox0dea :D
[13:16:52] shevy: Pushing gem to https://rubygems.org...
[13:16:54] shevy: <head><title>500 Internal Server Error</title></head>
[13:17:06] shevy: hmm works now
[13:19:56] tlaxkit: has joined #ruby
[13:20:25] sandstrom: has joined #ruby
[13:21:03] chouhoulis: has joined #ruby
[13:21:20] Ebok: has joined #ruby
[13:21:36] burgestrand: has joined #ruby
[13:22:04] gagrio: has joined #ruby
[13:22:29] iloveunix8955: has joined #ruby
[13:22:51] themsay: has joined #ruby
[13:23:53] mdw: has joined #ruby
[13:24:11] themsay: has joined #ruby
[13:25:37] goodcodeguy: has joined #ruby
[13:29:26] mist: has joined #ruby
[13:30:08] ponga: has joined #ruby
[13:31:05] f4cl3y: has joined #ruby
[13:31:31] jazzonmymind: has joined #ruby
[13:33:02] Xeago: has joined #ruby
[13:34:04] askhat: has joined #ruby
[13:34:52] dlitvak_: has joined #ruby
[13:35:08] dexter_: has joined #ruby
[13:35:14] Ebok: has joined #ruby
[13:35:33] oivoodoo: has joined #ruby
[13:37:04] oumanef: has joined #ruby
[13:37:44] jaiks: has joined #ruby
[13:38:26] blackmesa: has joined #ruby
[13:38:37] marzo: has joined #ruby
[13:38:43] jamw: has joined #ruby
[13:39:22] stevemackinnon: has joined #ruby
[13:40:09] askhat_: has joined #ruby
[13:40:14] karapetyan: has joined #ruby
[13:42:11] ruby-lang191: has joined #ruby
[13:42:58] tjbiddle: has joined #ruby
[13:44:30] DEA7TH: has joined #ruby
[13:47:36] pdoherty: has joined #ruby
[13:48:23] mist: has left #ruby: ()
[13:49:10] s00pcan_: has joined #ruby
[13:49:55] astrobunny: has joined #ruby
[13:50:55] millerti: has joined #ruby
[13:55:38] M-shine: has joined #ruby
[13:56:36] pickandmix: has joined #ruby
[14:02:05] Xeago: has joined #ruby
[14:02:14] kenpoint: has joined #ruby
[14:02:53] graffix222: has joined #ruby
[14:03:26] skade: has joined #ruby
[14:04:09] diegoviola: has joined #ruby
[14:04:29] kam270: has joined #ruby
[14:05:13] solocshaw: has joined #ruby
[14:05:24] M-Kodo: has joined #ruby
[14:06:01] apeiros: shevy: huh? no. I just try to avoid getting into stuff which would be fun but are not one of my main objectives. there's already far too many of those.
[14:06:14] EdwardIII: so i've been spending a lot of time on planet-DI recently
[14:06:50] burgestrand: has joined #ruby
[14:07:35] ziyadb: has joined #ruby
[14:08:47] Anderson69s: has joined #ruby
[14:08:47] apeiros: there's a full dependency injection planet?
[14:09:39] goodcodeguy: has joined #ruby
[14:11:20] CloCkWeRX: has joined #ruby
[14:15:40] LoneHerm_: has joined #ruby
[14:16:44] tatsuo: has joined #ruby
[14:17:44] tlaxkit: has joined #ruby
[14:17:46] Ousmane: has joined #ruby
[14:18:19] railsFor_: has joined #ruby
[14:20:19] oivoodoo_: has joined #ruby
[14:21:17] sankaber: has joined #ruby
[14:21:17] dlitvak: has joined #ruby
[14:21:40] rbennacer: has joined #ruby
[14:21:49] gagrio: has joined #ruby
[14:21:52] MiracleBlue___: has joined #ruby
[14:21:59] skade: has joined #ruby
[14:22:05] lipoqil: has joined #ruby
[14:22:35] EdwardIII: apeiros: yes. it takes months to get anywhere ;)
[14:22:48] EdwardIII: so in ruby you don't really need that if you just want to do test doubles
[14:22:48] norc: has joined #ruby
[14:22:56] norc: ast>> class C; def; def m; end; end
[14:22:58] ruby[bot]: norc: I have parsed your code, the result is at https://eval.in/518938
[14:22:58] EdwardIII: beacuse you can setup the db using the tools available, or patch libs an object uses
[14:23:02] theRealAlexz_: has joined #ruby
[14:23:04] chouhoulis: has joined #ruby
[14:23:09] mja: has joined #ruby
[14:23:13] norc: >> class C; def; def m; end; end
[14:23:15] ruby[bot]: norc: # => /tmp/execpad-1651b60126c6/source-1651b60126c6:2: syntax error, unexpected ';' ...check link for more (https://eval.in/518939)
[14:23:17] EdwardIII: but one place it was handy was if you wanted to inject objects with the same interface and swap them out at config
[14:23:20] EdwardIII: e.g. payment providers
[14:23:22] norc: >> class C def def m end end
[14:23:23] jhill__: has joined #ruby
[14:23:23] ruby[bot]: norc: # => /tmp/execpad-85c04cb81ca2/source-85c04cb81ca2:2: syntax error, unexpected keyword_end, expecting ';' ...check link for more (https://eval.in/518940)
[14:23:26] PedramT: has joined #ruby
[14:23:30] ilhami_: has joined #ruby
[14:23:31] norc: https://eval.in/518937
[14:23:34] Muz_: has joined #ruby
[14:23:35] norc: Is this a bug in the ruby parser?
[14:23:37] EdwardIII: what do rubymeisters tend to do for this? just have a factory object?
[14:23:40] mja: hi guys! It is able to return more than one result using distinct in rails?
[14:23:45] hfp_: has joined #ruby
[14:23:55] EdwardIII: and then inject the dep (e.g. PaypalClient, OgoneClient) through the constructor?
[14:24:07] norc: mja: For ruby on rails you are best to ask in #rubyonrails
[14:24:12] ELLIOTTCABLE_: has joined #ruby
[14:24:20] v1n: has joined #ruby
[14:24:22] mja: oh, thanks, norc!
[14:24:26] norc: You are welcome
[14:24:30] apeiros: EdwardIII: that's probably what I'd do, yes
[14:24:54] apeiros: if they've a sufficiently similar interface, I might provide a convenience constructor doing it for you
[14:25:00] y2mq37: has joined #ruby
[14:25:02] WebDawg: has joined #ruby
[14:25:05] BrunoSaboia: has joined #ruby
[14:25:24] diegoviola: has joined #ruby
[14:25:29] diegoviola: has joined #ruby
[14:25:36] apeiros: i.e. Payment::Provider.new service: Payment::Paypal, **config
[14:25:53] idefine: has joined #ruby
[14:26:14] millerti: has joined #ruby
[14:26:15] apeiros: but only if there's an actual benefit
[14:26:50] M-shine: has joined #ruby
[14:27:46] bodgix: has joined #ruby
[14:27:54] andrewvos: has joined #ruby
[14:28:08] gix: has joined #ruby
[14:29:24] norc: Nevermind I recognized my fault.
[14:29:25] norc: Ripper to the rescue
[14:29:32] norc: >> def def end
[14:29:33] ruby[bot]: norc: # => /tmp/execpad-117c6c3fe1e5/source-117c6c3fe1e5:2: syntax error, unexpected keyword_end, expecting ';' ...check link for more (https://eval.in/518941)
[14:29:36] norc: >> def def; end
[14:29:42] norc: That anyhow.
[14:29:48] ruby[bot]: norc: # => :def (https://eval.in/518942)
[14:29:52] malconis: has joined #ruby
[14:29:55] crayfishx: has joined #ruby
[14:30:37] t0ggah: has joined #ruby
[14:30:49] malconis: has joined #ruby
[14:31:46] oivoodoo: has joined #ruby
[14:32:15] rbennacer: has joined #ruby
[14:33:40] sucks: has joined #ruby
[14:35:00] shevy: has joined #ruby
[14:35:03] GinoManWorks: has joined #ruby
[14:35:55] trinaldi: has joined #ruby
[14:36:03] SenpaiSilver: has joined #ruby
[14:36:08] skade: has joined #ruby
[14:36:18] rbennacer: has joined #ruby
[14:36:37] M-Kodo: has joined #ruby
[14:38:01] dlitvak: has joined #ruby
[14:38:09] oivoodoo: has joined #ruby
[14:39:18] cyclonis: has joined #ruby
[14:39:41] blackmesa: has joined #ruby
[14:40:29] railsForDaiz: has joined #ruby
[14:41:30] djellemah: norc: send :'def'
[14:42:03] Ousmane: has joined #ruby
[14:44:37] shredding: has joined #ruby
[14:44:52] oivoodoo: has joined #ruby
[14:44:55] Ishido: has joined #ruby
[14:45:06] EdwardIII: apeiros: i guess then you've got a hard dep on Payment::Paypal
[14:46:09] apeiros: Payment::Paypal would be mine. but yes, it'd have a dependency on whatever 3rd party code you need to interact with paypal
[14:48:06] karapetyan: has joined #ruby
[14:48:41] roshanavand: has joined #ruby
[14:48:50] Terens: Hello. How can I use semantic-ui with rails without pain ?
[14:49:05] Terens: I dont have a clue about saass /less
[14:49:07] tlaxkit: has joined #ruby
[14:49:25] sergey_makagon: has joined #ruby
[14:50:39] apeiros: ?rails Terens
[14:50:39] ruby[bot]: Terens: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[14:51:07] gregf_: has joined #ruby
[14:53:31] moeabdol: has joined #ruby
[14:55:06] andrewvos: has joined #ruby
[14:55:15] TomPeed: has joined #ruby
[14:56:04] whippythellama: has joined #ruby
[14:56:57] RegulationD: has joined #ruby
[14:57:17] M-mistake: has joined #ruby
[14:57:49] rippa: has joined #ruby
[14:58:34] Alayde: has joined #ruby
[14:58:41] moeabdol1: has joined #ruby
[14:58:44] Hammy_Work: has joined #ruby
[15:00:48] dlitvak: has joined #ruby
[15:01:29] skade: has joined #ruby
[15:01:37] pawnbox: has joined #ruby
[15:01:49] Alayde: has left #ruby: ()
[15:03:15] burgestrand: has joined #ruby
[15:04:26] adgtl: has joined #ruby
[15:06:12] bigkevmcd: has joined #ruby
[15:06:22] skweek: has joined #ruby
[15:06:32] goodcodeguy: has joined #ruby
[15:06:35] Ebok: has joined #ruby
[15:06:52] norc: has joined #ruby
[15:07:18] nfk: has joined #ruby
[15:07:37] sinkensabe: has joined #ruby
[15:07:44] norc: f = Tempfile.new; f.write(content); File.rename(f.path, my_path); # Is using Tempfile like this safE?
[15:08:12] polishdub: has joined #ruby
[15:08:49] kirun: has joined #ruby
[15:09:20] nofacade: has joined #ruby
[15:09:22] B1n4r10: has joined #ruby
[15:10:37] Frem: has joined #ruby
[15:10:44] jhass: don't know its internals to make an educated statement, but feels a bit fishy. Trying to do an atomic update?
[15:11:28] p1k: has joined #ruby
[15:12:07] freerobby: has joined #ruby
[15:13:55] x77686d: has joined #ruby
[15:14:31] norc: jhass: Yeah.
[15:14:42] jhass: isn't flock the intended mechanism for that?
[15:14:59] norc: Im already using that in other places.. mm-
[15:15:21] norc: I guess its easy to just open, EX flock it and then rewrite.
[15:16:09] jhass: I can also imagine less stale reads happen that way
[15:16:22] adgtl: has joined #ruby
[15:16:44] dajobat: has joined #ruby
[15:17:22] dopamean1: has joined #ruby
[15:20:22] babblebre: has joined #ruby
[15:20:58] norc: jhass: Yeah. Looks much cleaner too.
[15:22:41] jottr: has joined #ruby
[15:23:21] wprice: has joined #ruby
[15:23:49] chouhoulis: has joined #ruby
[15:24:34] nchambers^: has joined #ruby
[15:24:54] thejoecarroll_: has joined #ruby
[15:24:58] roshanavand: has joined #ruby
[15:25:25] moshee: has joined #ruby
[15:25:25] moshee: has joined #ruby
[15:25:27] rideh-: has joined #ruby
[15:25:28] havenn: has joined #ruby
[15:25:32] icedp: has joined #ruby
[15:25:51] hfp: has joined #ruby
[15:25:53] fmcgeough: has joined #ruby
[15:25:54] JoshL: has joined #ruby
[15:25:54] Junaos: has joined #ruby
[15:26:03] rfv: has joined #ruby
[15:26:10] aegis3121: has joined #ruby
[15:26:12] sonne_: has joined #ruby
[15:26:15] PsionTheory: has joined #ruby
[15:26:32] hjoest: has joined #ruby
[15:27:48] sonOfRa: has joined #ruby
[15:28:53] tomaw: has joined #ruby
[15:28:53] decoponio: has joined #ruby
[15:28:58] Xeago: has joined #ruby
[15:31:40] adgtl: has joined #ruby
[15:33:00] s00pcan_: has joined #ruby
[15:33:28] underplank: has joined #ruby
[15:34:47] beawesomeinstead: has joined #ruby
[15:35:08] mary5030: has joined #ruby
[15:36:49] mary5030: has joined #ruby
[15:37:02] adgtl: Any way in ruby to split a string detecting capital letters
[15:37:05] adgtl: "HyperText Markup Language"
[15:37:36] adgtl: should be splited to ["Hyper", "Text", "Markup", "Language"]
[15:38:24] dexter_: has joined #ruby
[15:39:28] jamw: has joined #ruby
[15:39:31] dlitvak_: has joined #ruby
[15:39:36] nettoweb: has joined #ruby
[15:39:57] solocshaw: has joined #ruby
[15:40:47] jhass: adgtl: split takes a regular expression, including ones with zero width matches like lookarounds. An alternative venue is using String#scan
[15:41:47] apeiros: >> "HyperText Markup Language".split(/(?=\p{Upper})/)
[15:41:48] chendry: has joined #ruby
[15:41:48] ruby[bot]: apeiros: # => ["Hyper", "Text ", "Markup ", "Language"] (https://eval.in/519040)
[15:42:01] chendry: hello, all! Why does "$5.50"[/\d*/] == "" ?
[15:42:06] jhass: apeiros: spaces ;P
[15:42:16] apeiros: chendry: because * means *zero* or more
[15:42:22] apeiros: and the first match is found using zero.
[15:42:45] Conflict: has joined #ruby
[15:43:09] chendry: apeiros: doh! you're right. thanks :) brain fart
[15:43:16] adgtl: apeiros: thanks..
[15:43:20] adgtl: apeiros: what that \p means?
[15:43:23] apeiros: chendry: always anchor
[15:43:39] apeiros: adgtl: \p{???} are character classes. check Regexp docs, it lists them.
[15:44:05] adgtl: apeiros: somehow this misses to document \p http://rubular.com
[15:44:21] havenwood: adgtl: http://ruby-doc.org/core/Regexp.html
[15:44:22] apeiros: maybe it doesn't see itself as a complete documentation
[15:44:37] apeiros: after all, it says *quick* reference.
[15:45:03] Freeaqingme: has joined #ruby
[15:45:07] apeiros: and quick is somewhat contradicting to comprehensive
[15:45:19] apeiros: *antonymous
[15:45:29] adaedra: At least, everything is explained in the docs
[15:45:36] havenwood: >> 'HyperText Markup Language'.scan /[[:upper:]][[:lower:]]*/
[15:45:37] ruby[bot]: havenwood: # => ["Hyper", "Text", "Markup", "Language"] (https://eval.in/519047)
[15:45:47] havenwood: adgtl: ^ another similar stab at the same thing
[15:45:51] apeiros: in other words, it IMO doesn't *fail* to document it. it chose not to.
[15:46:25] havenwood: A proper subset.
[15:46:29] apeiros: havenwood: now try with a string which doesn't start with capital letter.
[15:46:35] havenwood: apeiros: noooo
[15:46:42] apeiros: but boils down to the question whether they truly want split.
[15:46:45] havenwood: apeiros: We don't like that string.
[15:47:14] apeiros: your solution may be more what they want than mine. mine followed strictly the wording of their question.
[15:47:16] adgtl: havenwood: thanks :)
[15:47:29] jhass: I'd kept the solutions to myself, sounded much like an exercise :P
[15:47:31] Zapod2: has joined #ruby
[15:47:37] apeiros: havenwood: is posix' [[:upper:]] equivalent to \p{upper}?
[15:47:38] Jardayn: has joined #ruby
[15:47:47] Zapod: The CoC was a terrible idea
[15:47:52] apeiros: jhass: I guessed as much
[15:48:03] ElFerna_: has joined #ruby
[15:48:06] havenwood: apeiros: same ole same ole
[15:48:12] apeiros: Zapod: #ruby-offtopic please.
[15:49:44] apeiros: jhass: somehow I found it's rather a large thing to find the right tool, and chose to show a solution of their precise question, assuming that it'd not actually solve the issue at hand, but provide a good starting point.
[15:51:19] haylon: has joined #ruby
[15:52:12] cjbottaro: has joined #ruby
[15:54:36] grill: has joined #ruby
[15:57:32] flughafen_: has joined #ruby
[16:00:47] adgtl: has joined #ruby
[16:00:50] [Butch]: has joined #ruby
[16:02:59] jottr: has joined #ruby
[16:03:59] Azure: has joined #ruby
[16:04:24] ohaibbq: has joined #ruby
[16:04:30] einarj: has joined #ruby
[16:04:52] weemsledeux: has joined #ruby
[16:06:12] burgestrand: has joined #ruby
[16:07:16] adgtl: has joined #ruby
[16:08:05] spm_draget: has joined #ruby
[16:08:11] niko: has joined #ruby
[16:08:28] spm_draget: What is the difference between 'gem' and 'bundler'? Both binaries seem to allow installing gems
[16:08:36] tomchapin: has joined #ruby
[16:09:12] dionysus69: has joined #ruby
[16:10:16] Domaldel: has joined #ruby
[16:10:46] bronson: has joined #ruby
[16:11:00] pushcx: 'gem' is the basic user command for adding and removing libraries
[16:11:21] apeiros: spm_draget: http://stackoverflow.com/questions/15586216/bundler-vs-rvm-vs-gems-vs-rubygems-vs-gemsets-vs-system-ruby - first answer looks reasonable on a glance
[16:11:24] pushcx: 'bundler' is a higher-level tool for projects that need to consistently install specific versions
[16:11:53] Gnut: has joined #ruby
[16:12:07] omphe: has joined #ruby
[16:12:20] havenwood: spm_draget: RubyGems has had Bundler-like ability to resolve gem deps for a few years but it's not widely-used yet.
[16:13:06] davedev24: has joined #ruby
[16:13:30] Hanmac: havenwood: my gemtree https://gist.github.com/Hanmac/cb9e13ff220e4f31e13a does use the deps resolve from gem
[16:13:35] havenwood: spm_draget: Bundler is a gem. Bundler depends on RubyGems.
[16:13:52] Ishido: has joined #ruby
[16:14:00] jhass: in other words, bundler provides additional functionality ontop of rubygems
[16:14:55] omphe: has left #ruby: ()
[16:17:28] idefine: has joined #ruby
[16:17:30] tatsuo: has joined #ruby
[16:17:38] underplank: has joined #ruby
[16:17:49] johnnyt: has joined #ruby
[16:18:17] SHyx0rmZ: has joined #ruby
[16:18:44] haylon: Huh. Google is challenging me to write a simple program?
[16:19:11] haylon: Did a Google search on a ruby/python thing, and it said, "You're speaking our language."
[16:19:41] the_drow: has joined #ruby
[16:20:07] ixti: has joined #ruby
[16:20:08] karmatr0n: has joined #ruby
[16:21:07] kenpoint: haylon: http://thehustle.co/the-secret-google-interview-that-landed-me-a-job
[16:22:29] haylon: huh, kenpoint
[16:23:14] Ishido: has joined #ruby
[16:23:23] kenpoint: google will sometimes recruit through their searches and invite you to attempt a coding challenge. that article goes through what one guy did to get a job at google
[16:24:52] DmitryBochkarev: has joined #ruby
[16:26:30] infernix: has joined #ruby
[16:26:45] shevy: they want you to join their fanclub!
[16:28:24] nofxx: has joined #ruby
[16:29:09] chouhoulis: has joined #ruby
[16:30:51] _kfpratt: has joined #ruby
[16:31:18] kirillzh: has joined #ruby
[16:31:47] aganov: has joined #ruby
[16:33:28] dionysus69: has joined #ruby
[16:36:53] Xeago: has joined #ruby
[16:37:02] kmckelvin: has joined #ruby
[16:38:04] ta: has joined #ruby
[16:38:32] CustosLimen: where can I find some info on ypath
[16:39:05] minimalism: has joined #ruby
[16:39:24] CustosLimen: actually, it seems like ypath is gone in later versions
[16:39:42] x64-: has joined #ruby
[16:39:46] burgestrand: has joined #ruby
[16:41:06] CustosLimen: ok nvm, will just use: | ruby -ryaml -e 'data = YAML::load(STDIN.read); puts data["net"]["port"]'
[16:41:50] zast: has joined #ruby
[16:41:55] RegulationD: has joined #ruby
[16:42:15] steak_: has joined #ruby
[16:42:48] Jardayn: has joined #ruby
[16:43:05] mondok: has joined #ruby
[16:43:08] binaryplease: has joined #ruby
[16:43:24] tatsuo: has joined #ruby
[16:45:05] EdwardIII: weird, i'm so sure this was working on friday, but today, bam, "(soap:Client) Server was unable to read request. ---> There is an error in XML document (1, 756). ---> The string '2016-02-16 16:43:37 UTC' is not a valid AllXsd value."
[16:45:17] EdwardIII: i think soap is easily in my bottom 5 favourite techs
[16:46:41] ElFerna_: has joined #ruby
[16:47:15] skade: has joined #ruby
[16:47:27] KensoDev: has joined #ruby
[16:49:00] snguyen: has joined #ruby
[16:49:38] ruby-lang842: has joined #ruby
[16:50:35] Contigi: has joined #ruby
[16:50:55] symm-: has joined #ruby
[16:54:18] blackmesa: has joined #ruby
[16:55:08] eljimmy: has joined #ruby
[16:58:49] basic`: has joined #ruby
[16:58:51] amclain: has joined #ruby
[16:59:43] ledestin: has joined #ruby
[17:00:22] benlieb: has joined #ruby
[17:01:14] sandstrom: has joined #ruby
[17:03:44] troulouliou_div2: has joined #ruby
[17:04:09] neanderslob_: has joined #ruby
[17:04:50] intrigueD: has joined #ruby
[17:05:00] KensoDev: has joined #ruby
[17:05:17] william3: has joined #ruby
[17:07:05] norc_: has joined #ruby
[17:08:35] KensoDev: has joined #ruby
[17:10:01] hjoest: has joined #ruby
[17:10:18] patchedmonkey: has joined #ruby
[17:10:53] diegoviola: has joined #ruby
[17:11:12] davedev24: has joined #ruby
[17:11:19] benlieb: has joined #ruby
[17:12:17] davedev24: has joined #ruby
[17:14:43] davedev24: has joined #ruby
[17:15:07] norc_: djellemah, other way around. I accidentally had a stray "def" in my code after some rapid visual mode magic (so much for my unspoken vim powers), which completely borked my class without a syntax error.
[17:16:07] norc_: since; def def foo (code...) end defines a method called def with an argument foo. If you then happen to override method_missing, you get some surprising behavior.
[17:19:54] mostlybadfly: has joined #ruby
[17:20:17] platzhirsch: has joined #ruby
[17:21:53] neanderslob: has joined #ruby
[17:22:36] tulak: has joined #ruby
[17:24:16] rodfersou: has joined #ruby
[17:24:50] rakm: has joined #ruby
[17:25:02] terminalrecluse: has joined #ruby
[17:26:45] elifoster: has joined #ruby
[17:28:04] adgtl_: has joined #ruby
[17:28:25] adgtl_: has joined #ruby
[17:29:06] blindsight: has joined #ruby
[17:29:31] idefine: has joined #ruby
[17:29:32] jottr: has joined #ruby
[17:30:19] karapetyan: has joined #ruby
[17:31:58] Ebok: has joined #ruby
[17:33:14] sgambino: has joined #ruby
[17:33:35] shevy: hmm what was this $>.puts $stderr ?
[17:34:08] norc_: $> is the default output for print/printf
[17:34:12] norc_: Which defaults to $stdout
[17:34:32] chouhoulis: has joined #ruby
[17:34:40] norc_: Or well, it used to be like that until 1.9 I think.
[17:35:08] rgtk: has joined #ruby
[17:35:23] shlomo: has joined #ruby
[17:35:53] shevy: strange ... I saw it in some weird project that uses FFI + audio
[17:36:54] ruby[bot]: adaedra: # => #<IO:<STDOUT>> (https://eval.in/519072)
[17:37:00] adaedra: Here you go.
[17:37:11] troulouliou_divn: has joined #ruby
[17:37:31] Cohedrin: has joined #ruby
[17:37:38] EdwardIII: hrm what's the best way to add an fk to existing model?
[17:37:39] Ishido: has joined #ruby
[17:37:52] EdwardIII: write your own migration? or is there some 'auto generate migration' thing i can do like django has?
[17:37:53] jhass: >> $> = $stderr; $stdout
[17:37:54] ruby[bot]: jhass: # => #<IO:<STDERR>> (https://eval.in/519073)
[17:37:57] jhass: interesting
[17:38:04] jhass: ?rails EdwardIII
[17:38:05] ruby[bot]: EdwardIII: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[17:38:10] EdwardIII: oh crap sorry
[17:38:19] EdwardIII: i mis-channeled
[17:38:26] mikeiniowa: has joined #ruby
[17:38:38] william3: has joined #ruby
[17:38:50] adaedra: jhass: tssk tssk tssk. They may have been using sequel :p
[17:39:05] troulouliou_divn: has joined #ruby
[17:39:11] dexter_: has joined #ruby
[17:39:18] shevy: hah nice word... mis-channeled
[17:39:18] jhass: I trust sequel users to say they're using sequel :P
[17:40:17] jamw: has joined #ruby
[17:40:35] troulouliou_divn: has joined #ruby
[17:40:45] DEA7TH: has joined #ruby
[17:42:38] dseitz: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[17:44:11] malcolmva: has joined #ruby
[17:44:47] troulouliou_div2: has joined #ruby
[17:45:13] rkazak: has joined #ruby
[17:45:35] TomyLobo: has joined #ruby
[17:45:48] mikecmpbll: has joined #ruby
[17:46:14] karapetyan: has joined #ruby
[17:47:53] haylon: made it past test 1
[17:47:57] haylon: now on to test 2
[17:48:11] norc_: ast>> p 1 if a = 1
[17:48:12] ruby[bot]: norc_: I have parsed your code, the result is at https://eval.in/519076
[17:48:38] norc_: ast>> p a if a = 1
[17:48:39] ruby[bot]: norc_: I have parsed your code, the result is at https://eval.in/519077
[17:50:27] eljimmy: has joined #ruby
[17:51:00] Mon_Ouie: has joined #ruby
[17:51:56] n00bDev: has joined #ruby
[17:52:11] bonhoeffer: has joined #ruby
[17:56:29] Xeago: has joined #ruby
[17:56:37] tjohnson: has joined #ruby
[17:57:54] kbni: has left #ruby: ("Leaving")
[17:59:32] bcavileer_: has joined #ruby
[17:59:58] bcavileer: has joined #ruby
[17:59:58] bcavileer: has joined #ruby
[18:00:05] iloveunix8955: has joined #ruby
[18:00:48] themsay2: has joined #ruby
[18:01:55] cyclonis: has joined #ruby
[18:04:36] joonty: has joined #ruby
[18:06:17] idefine: has joined #ruby
[18:06:34] bronson: has joined #ruby
[18:09:01] mdw: has joined #ruby
[18:09:40] themsay: has joined #ruby
[18:10:13] snguyen: has joined #ruby
[18:12:37] marxarelli: has joined #ruby
[18:13:36] KensoDev: has joined #ruby
[18:13:50] sarbs: has joined #ruby
[18:14:14] rgtk_: has joined #ruby
[18:15:04] sarbs: has joined #ruby
[18:15:09] Dimik: has joined #ruby
[18:15:18] synthroid: has joined #ruby
[18:15:31] camillo: has joined #ruby
[18:16:00] ruby-lang191: can any one explain me the diff between "string" and """string"""
[18:16:52] jhass: """string""" is two empty strings and "string" in the middle
[18:16:59] jhass: >> "foo""bar"
[18:17:00] ruby[bot]: jhass: # => "foobar" (https://eval.in/519085)
[18:17:12] jhass: >> "" "string" ""
[18:17:13] ruby[bot]: jhass: # => "string" (https://eval.in/519086)
[18:17:56] aegis3121: has joined #ruby
[18:18:00] intrigueD: has joined #ruby
[18:18:26] jhass: so there's no real difference, """string""" is just noise
[18:18:52] darkf: has joined #ruby
[18:18:52] apeiros: it's imitating python
[18:18:57] apeiros: and IMO for no good reason
[18:19:06] ruby-lang191: https://eval.in/519090
[18:19:31] ruby-lang191: what's problem here?
[18:19:32] jhass: ruby-lang191: you can count to three? :P
[18:20:01] jhass: that's empty string (""), method call (foo), empty string ("")
[18:20:15] jhass: string followed by method call is invalid syntax
[18:21:20] ruby-lang191: I just got confused
[18:22:26] karapetyan: has joined #ruby
[18:23:06] karapetyan: has joined #ruby
[18:23:32] pdoherty: has joined #ruby
[18:24:06] sandstrom: has joined #ruby
[18:25:04] Hanmac: jhass C string literals are funny, ne?
[18:25:24] jhass: not if abused like that ;)
[18:25:40] norc_: ast>> """string"""
[18:25:42] ruby[bot]: norc_: I have parsed your code, the result is at https://eval.in/519098
[18:25:45] Pumukel: has joined #ruby
[18:26:30] ElFerna_: has joined #ruby
[18:26:32] norc_: Im already trying to think how this can be abused to create even more unreadable code..
[18:27:15] idefine: has joined #ruby
[18:27:59] norc_: On that note, we should get trigraphs in Ruby - after all we should include those with obscure EBCDIC code pages.
[18:29:16] sinkensabe: has joined #ruby
[18:29:41] s00pcan_: has joined #ruby
[18:29:48] norc_: Code fragments like ??<_??(????)=>????> would be so wonderful.
[18:30:09] adaedra: Please don't.
[18:31:09] platzhirsch: has left #ruby: ()
[18:31:25] hjoest2: has joined #ruby
[18:31:36] adaedra: You have to be signed in.
[18:31:52] adaedra: Otherwise, you're noone for the bot.
[18:31:58] ruby[bot]: don't be mean to adaedra
[18:32:22] ruby[bot]: nomnomnomnom
[18:32:26] norc_: adaedra, I could write some huge parser change and ninja patch trigraphs in it. nobu wont mind Im sure.
[18:32:34] norc_: Ox0dea would not either.
[18:33:47] SenpaiSilver: has joined #ruby
[18:35:11] shevy: ninja patch!
[18:35:16] chouhoulis: has joined #ruby
[18:35:17] shevy: that sounds so much better than monkey patch
[18:35:27] SenpaiSilver: has joined #ruby
[18:35:31] shevy: monkey ninjas
[18:35:45] hakunin: has joined #ruby
[18:36:19] sandstrom: has joined #ruby
[18:36:30] llua^_^AznSmile-: has joined #ruby
[18:36:30] dopamean_: has joined #ruby
[18:37:15] adgtl: has joined #ruby
[18:37:22] SenpaiSilver: has joined #ruby
[18:37:32] rht: has joined #ruby
[18:38:07] attractiveape: has joined #ruby
[18:39:07] SenpaiSilver: has joined #ruby
[18:40:37] KensoDev: has joined #ruby
[18:40:56] SenpaiSilver: has joined #ruby
[18:42:13] sponjii: has joined #ruby
[18:42:43] SenpaiSilver: has joined #ruby
[18:43:26] patchedmonkey: has joined #ruby
[18:44:32] SenpaiSilver: has joined #ruby
[18:44:34] kmckelvin: has joined #ruby
[18:45:22] chouhoulis: has joined #ruby
[18:49:21] blackmesa: has joined #ruby
[18:50:09] tildes: has joined #ruby
[18:50:27] unreal_: has joined #ruby
[18:51:31] Hanmac: shevy: self-driving cars are outdated, self-driving chairs are the future XD https://www.youtube.com/watch?v=O1D07dTILH0
[18:51:51] nettoweb: has joined #ruby
[18:51:59] shevy: I can't tell whether this is a prank or real
[18:52:11] tildes: has joined #ruby
[18:52:36] infernix: has joined #ruby
[18:53:09] karmatr0n: has joined #ruby
[18:53:50] Stan: has joined #ruby
[18:55:37] Hanmac: shevy: why can't it be both? XD
[18:55:57] shevy: I don't know... watched too many japanese prank videos
[18:58:42] casadei: has joined #ruby
[18:59:09] zzerp: has joined #ruby
[18:59:20] imanc: has joined #ruby
[18:59:38] imanc: is there a rails chan? #rails is invite only
[19:00:14] mozzarella: #rubyonrails
[19:00:18] firstdayonthejob: has joined #ruby
[19:00:30] aegis3121: has joined #ruby
[19:01:48] sgambino: has joined #ruby
[19:02:06] Macaveli: has joined #ruby
[19:02:53] codecop: has joined #ruby
[19:04:54] lurch_: has joined #ruby
[19:05:39] joonty: has joined #ruby
[19:05:46] sankaber: has joined #ruby
[19:07:17] arlek: has joined #ruby
[19:07:44] pawnbox_: has joined #ruby
[19:08:05] davedev24: has joined #ruby
[19:08:23] lxsameer: has joined #ruby
[19:08:24] atmosx: has joined #ruby
[19:08:29] nettoweb: has joined #ruby
[19:11:07] JohnBat26: has joined #ruby
[19:11:33] dlitvak: has joined #ruby
[19:12:11] chipotle: has left #ruby: ("cheerio")
[19:12:33] roshanavand: has joined #ruby
[19:13:09] krz: has joined #ruby
[19:13:28] whippythellama: has joined #ruby
[19:14:01] ruby-lang017: has joined #ruby
[19:14:24] last_staff: has joined #ruby
[19:14:49] ruby-lang017: Hello, can someone tell me why this doesn't work? I don't get it https://repl.it/BmwR
[19:15:25] imanc: thanks mozzarella
[19:16:32] jhass: >> "foo".chars # ruby-lang017
[19:16:33] ruby[bot]: jhass: # => ["f", "o", "o"] (https://eval.in/519104)
[19:16:59] jhass: >> hash = {}; hash[["a", "b"]] = 0; hash
[19:17:00] ruby[bot]: jhass: # => {["a", "b"]=>0} (https://eval.in/519105)
[19:17:12] nettoweb: has joined #ruby
[19:18:16] ruby-lang017: I'm still confused
[19:18:38] jhass: ruby-lang017: you want to iterate over all the characters and do something with each of them
[19:18:48] jhass: &ri String#each_char
[19:18:48] `derpy: http://ruby-doc.org/core-2.3.0/String.html#method-i-each_char
[19:19:37] ruby-lang017: oh chars doesn't get each character it just changes the string into letters
[19:19:51] wjimenez5271: has joined #ruby
[19:21:11] last_staff1: has joined #ruby
[19:21:57] jhass: ruby-lang017: no, it returns an array of all the characters
[19:22:38] william3: has joined #ruby
[19:23:32] zzerp: i've been running into an issue with puma/bundler/ruby where #missing_extensions? is getting called on a NilClass
[19:23:35] zzerp: (/home/me/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/stub_specification.rb:148:in `missing_extensions?': undefined method `missing_extensions?' for nil:NilClass (NoMethodError)
[19:23:44] borodin: has joined #ruby
[19:24:04] borodin: can anyone help me with this? https://gist.github.com/chewmanfoo/f9b1d84de320fc584960
[19:24:15] borodin: I don't understand why ruby can see the file, but it can't see the fie
[19:25:02] marxarelli: ruby-lang017: i would also recommend using String#each_char for that case as it returns an Enumerator that will let you operate on or accumulate some aggregate from each character
[19:25:14] Toledo|gone: has joined #ruby
[19:25:16] zzerp: borodin: try removing the quotes
[19:25:25] Trieste: has joined #ruby
[19:25:25] marxarelli: something like str..each_char.with_object(Hash.new(0)) { |char, vowels| vowels[char] += 1 }
[19:25:44] marxarelli: er, that's incomplete but you get the picture :)
[19:25:53] Toledo|gone: has left #ruby: ()
[19:25:59] sarbs: has joined #ruby
[19:26:09] soxet_: has joined #ruby
[19:26:27] borodin: zzerp: ye that's it - so I gotta deal with the dir in a different way in linux than I do in ruby. yuck
[19:27:37] borodin: what I mean: https://gist.github.com/chewmanfoo/769d6712810360ffcee8
[19:28:04] RegulationD: has joined #ruby
[19:28:09] gregf: has joined #ruby
[19:28:11] zzerp: `ls "#{foo}"` would work
[19:28:40] borodin: no it doesn't :(
[19:29:02] bronson: has joined #ruby
[19:29:09] zzerp: you're basically doing ls /var/lib/path with a space
[19:29:11] borodin: yes it does - nevermind
[19:29:11] marxarelli: borodin: you need to properly escape the shell arguments
[19:29:26] marxarelli: &ri Shellwords.shellescape
[19:29:26] `derpy: http://ruby-doc.org/stdlib-2.3.0/libdoc/shellwords/rdoc/Shellwords.html#method-c-shellescape
[19:29:56] zzerp: if you did ls "/var/lib/path with a space" ls interprets that as one string not 4
[19:30:10] marxarelli: so `ls #{Shellwords.shellescape(foo)}`
[19:31:00] marxarelli: which is still sort of suboptimal if you're trying to iterate over directory contents
[19:31:05] soxet_: has joined #ruby
[19:31:14] marxarelli: you could alternatively use `Dir['*'].each { ... }`
[19:31:29] drale2k: has joined #ruby
[19:32:04] baweaver: has joined #ruby
[19:32:33] mdw: has joined #ruby
[19:32:35] blackmesa: has joined #ruby
[19:32:54] ldnunes_: has joined #ruby
[19:32:54] apeiros: Dir.glob do ??? end
[19:33:03] apeiros: same as Dir[].each, but one method call less.
[19:33:22] jhass: also avoid shellwords as long as you can
[19:33:29] ur5us: has joined #ruby
[19:33:38] jhass: prefer multiple argument/array forms of Kernel#spawn & co
[19:34:11] dopamean_: has joined #ruby
[19:35:05] borodin: marxarelli: thanks that was very useful
[19:35:24] gigetoo: has joined #ruby
[19:35:24] marxarelli: borodin: no problem
[19:36:26] marxarelli: borodin: i would consider the advice from jhass, too (use Kernel#spawn and friends over shelling out with ``)
[19:37:59] Stan: has joined #ruby
[19:38:03] drale2k: any gem people use for handling tcp sockets in ruby? Can't find socket.io for ruby
[19:38:03] podman: has joined #ruby
[19:38:17] drale2k: and Actioncable in rails is only for websockets i think
[19:38:35] cyclonis_: has joined #ruby
[19:38:41] BSaboia: has joined #ruby
[19:39:51] casadei: has joined #ruby
[19:39:56] dexter_: has joined #ruby
[19:40:49] askhat: has joined #ruby
[19:41:03] jamw: has joined #ruby
[19:41:41] norc_: has joined #ruby
[19:44:24] apeiros: drale2k: socket in ruby's stdlib comes with TCPSocket
[19:45:01] devbug: has joined #ruby
[19:45:19] apeiros: ?crosspost drale2k
[19:45:19] ruby[bot]: drale2k: Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
[19:46:36] stevemackinnon: has joined #ruby
[19:49:33] bithon: has joined #ruby
[19:50:27] jottr: has joined #ruby
[19:51:36] trinaldi: has joined #ruby
[19:53:06] sinkensabe: has joined #ruby
[19:53:42] arthurix_: has joined #ruby
[19:54:29] last_staff1: has joined #ruby
[19:55:01] SCHAAP137: has joined #ruby
[19:58:12] marr: has joined #ruby
[19:58:46] william3: has joined #ruby
[20:00:34] SpikeMaster: has joined #ruby
[20:02:05] nfk|laptop: has joined #ruby
[20:03:25] mordocai: has joined #ruby
[20:04:24] hfp: Hi, as part of a refactor, I want to test for an object's class name. So I do `if self < MyClass' and this fails. When I call `self.class.name', it returns `Class`. Helpful. Why is it returning `Class`? If I do `self.inspect', I can see the correct class name so why can't I get it in my if?
[20:04:44] mordocai: I just attempted to use rspec --bisect on our rails project and it managed to eat 16G of my physical memory and 5G of swap causing it to be killed by the kernel. Does anyone know if there is a way to limit the number of processes rspec bisect runs at once?
[20:07:20] joonty: has joined #ruby
[20:07:51] arthropododo: has joined #ruby
[20:08:22] karapetyan: has joined #ruby
[20:08:42] sandstrom: has joined #ruby
[20:09:43] norc_: hfp, without seeing actual code its hard to help you.
[20:10:14] lurch_: has joined #ruby
[20:11:18] doublemalt_: has joined #ruby
[20:12:01] ta: has joined #ruby
[20:12:28] norc_: hfp, oh I know what you mean.
[20:13:19] norc_: The issue stems from what self really means in Ruby.
[20:13:40] norc_: self is basically a keyword that refers to the default assignee for methods.
[20:13:40] benlieb: has joined #ruby
[20:13:54] norc_: inside a class self is that class itself.
[20:14:49] trinaldi: has joined #ruby
[20:15:02] norc_: MyKlass = Class.new; puts MyKlass.class
[20:15:04] norc_: >> MyKlass = Class.new; puts MyKlass.class
[20:15:05] ruby[bot]: norc_: # => Class ...check link for more (https://eval.in/519119)
[20:15:07] norc_: >> MyKlass = Class.new; puts MyKlass.inspect
[20:15:08] ruby[bot]: norc_: # => MyKlass ...check link for more (https://eval.in/519120)
[20:15:14] norc_: This is basically what you did.
[20:15:41] dlitvak: has joined #ruby
[20:16:16] norc_: but the exact issue depends on your code.
[20:16:40] devbug: has joined #ruby
[20:17:38] mordocai: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[20:18:21] nettoweb: has joined #ruby
[20:18:50] norc_: hfp, http://ruby-doc.org/core-2.3.0/doc/syntax/calling_methods_rdoc.html
[20:19:04] norc_: This explains what I mean by "self is the default receiver".
[20:21:16] tercenya: has joined #ruby
[20:26:59] x77686d: has joined #ruby
[20:27:31] mhoungbo: has joined #ruby
[20:30:26] rht: has joined #ruby
[20:32:04] mdw: has joined #ruby
[20:32:56] krobzaur: has joined #ruby
[20:33:38] patchedmonkey: has joined #ruby
[20:35:24] johnnyt: has joined #ruby
[20:35:37] stevemackinnon: has joined #ruby
[20:36:22] SenpaiSilver: has joined #ruby
[20:38:08] SpikeMas`: has joined #ruby
[20:38:13] SenpaiSilver: has joined #ruby
[20:39:09] tulak: has joined #ruby
[20:39:17] sneakerhax: has joined #ruby
[20:40:02] dagda1: has joined #ruby
[20:41:04] ton31337: has joined #ruby
[20:41:11] ton31337: how can i write this shorter? https://gist.github.com/ton31337/eb235ef3a8386df9f96d
[20:41:58] FooMunki: has joined #ruby
[20:43:31] openstruct: has joined #ruby
[20:44:19] dexter_: has joined #ruby
[20:45:03] jhass: ton31337: map and server.ipv6_ips.any? ? a : b
[20:45:42] goodcodeguy: has joined #ruby
[20:46:22] ton31337: can I split ternary with multi line?
[20:46:27] ton31337: because it looks ugly
[20:47:10] jhass: you can also do a full if/else
[20:47:23] sakix_: has joined #ruby
[20:48:45] microt: has joined #ruby
[20:48:49] ton31337: has left #ruby: ()
[20:49:55] tAn: has joined #ruby
[20:50:32] bronson: has joined #ruby
[20:50:42] stevemackinnon: has joined #ruby
[20:51:37] cyclonis: has joined #ruby
[20:52:36] dlitvak: has joined #ruby
[20:53:55] norc_: tonini, or you could simply add some first_ip_address method to your Server class that hides this.
[20:55:33] FooMunki: has joined #ruby
[20:56:43] sakix: has joined #ruby
[20:58:41] JDiPierro: has joined #ruby
[20:59:02] x77686d: has joined #ruby
[21:02:46] cyclonis: good afternoon all
[21:08:01] joonty: has joined #ruby
[21:08:55] tomaz_b: has joined #ruby
[21:09:22] stevemackinnon: has joined #ruby
[21:10:20] juddey: has joined #ruby
[21:11:45] yqfvwal: has joined #ruby
[21:13:38] celly: has joined #ruby
[21:14:36] sdothum: has joined #ruby
[21:15:00] jackjackdripper: has joined #ruby
[21:16:25] lurch_: has joined #ruby
[21:17:04] techietrash: has joined #ruby
[21:18:44] yqt: has joined #ruby
[21:19:47] yfeldblum: has joined #ruby
[21:21:25] millerti: has joined #ruby
[21:24:49] zotherstupidguy: has joined #ruby
[21:26:51] ta: has joined #ruby
[21:27:14] arlek: has joined #ruby
[21:27:49] bollullera: has joined #ruby
[21:28:02] karapetyan: has joined #ruby
[21:28:25] bollullera: has left #ruby: ()
[21:33:15] borodin: marxarelli: I'm confused - I used you guy's suggestion earlier. I have a path which contains spaces (because jenkins makes it harder than it has to be), so I use shellescape to properly escape the param. But now in order to do File.read, I have to remove the backticks:
[21:33:19] borodin: https://gist.github.com/chewmanfoo/d095f28ec5636c5a3a7a
[21:33:27] borodin: shouldn't be this way!
[21:34:24] Ebok: has joined #ruby
[21:35:05] mdw: has joined #ruby
[21:35:36] Bounga: has joined #ruby
[21:38:25] s00pcan_: has joined #ruby
[21:38:35] idefine: has joined #ruby
[21:40:48] RegulationD: has joined #ruby
[21:41:49] jamw: has joined #ruby
[21:42:14] pawnbox: has joined #ruby
[21:42:20] devbug: has joined #ruby
[21:42:22] freerobby: has joined #ruby
[21:45:54] s00pcan_: has joined #ruby
[21:48:51] nettoweb: has joined #ruby
[21:49:10] sgambino: has joined #ruby
[21:50:15] pabloh: has joined #ruby
[21:50:47] edwinvdgraaf: has joined #ruby
[21:51:55] zeroDivisible: has joined #ruby
[21:52:06] pabloh: has left #ruby: ()
[21:55:49] zacts: has joined #ruby
[21:57:55] mondok: has joined #ruby
[21:58:25] joonty: has joined #ruby
[21:59:56] camillo: has joined #ruby
[22:00:12] Zappa_: has joined #ruby
[22:03:30] bithon: has joined #ruby
[22:04:20] sole: has joined #ruby
[22:04:51] idefine: has joined #ruby
[22:04:52] Conflict: has joined #ruby
[22:07:51] ProofTechnique: has joined #ruby
[22:08:15] s00pcan_: has joined #ruby
[22:08:18] stevemackinnon: has joined #ruby
[22:08:25] roshanavand: has joined #ruby
[22:08:27] stevemackinnon: has joined #ruby
[22:09:04] sole: has joined #ruby
[22:09:56] bahar: has joined #ruby
[22:09:56] bahar: has joined #ruby
[22:10:49] konopka: has joined #ruby
[22:12:32] pawnbox: has joined #ruby
[22:12:47] levifig: has joined #ruby
[22:13:42] railsForDaiz: has joined #ruby
[22:15:30] Guest_: has joined #ruby
[22:18:53] wprice: has joined #ruby
[22:18:54] Guest_: has left #ruby: ()
[22:20:25] moeabdol2: has joined #ruby
[22:20:43] tulak: has joined #ruby
[22:23:44] mdw: has joined #ruby
[22:25:02] casadei_: has joined #ruby
[22:25:14] askhat_: has joined #ruby
[22:27:11] sunya7a: has joined #ruby
[22:28:40] tvw: has joined #ruby
[22:28:56] redondos: has joined #ruby
[22:28:58] peteyg: has joined #ruby
[22:29:06] samuelkadolph: has joined #ruby
[22:30:25] humd1ng3r: has joined #ruby
[22:30:55] jordanm: has joined #ruby
[22:31:12] crdpink2: has joined #ruby
[22:32:06] ledestin: has joined #ruby
[22:33:02] elifoster: has joined #ruby
[22:33:46] edwinvdgraaf: has joined #ruby
[22:36:18] Bloodshot: has joined #ruby
[22:37:19] TomPeed: has joined #ruby
[22:39:12] ur5us: has joined #ruby
[22:40:10] tinnvec: has joined #ruby
[22:40:23] kobain: has joined #ruby
[22:40:50] Ropeney: has joined #ruby
[22:41:24] sfr^: has joined #ruby
[22:42:33] zenlot1: has joined #ruby
[22:42:55] avenj: has joined #ruby
[22:42:55] avenj: has joined #ruby
[22:46:36] einarj: has joined #ruby
[22:48:04] einarj_: has joined #ruby
[22:49:12] sinkensabe: has joined #ruby
[22:50:35] william3: has joined #ruby
[22:50:47] Coldblackice: has joined #ruby
[22:53:13] hakunin_: has joined #ruby
[22:56:26] blur3d: has joined #ruby
[22:56:36] stannard: has joined #ruby
[22:56:47] cih: has joined #ruby
[22:59:26] intrigueD: has joined #ruby
[22:59:43] Xeago: has joined #ruby
[23:01:29] railsFor_: has joined #ruby
[23:01:43] ChameleonSix: has joined #ruby
[23:02:22] gustavohmsilva: has joined #ruby
[23:04:04] Glenny: has joined #ruby
[23:04:59] bithon: has joined #ruby
[23:05:56] acoai: has joined #ruby
[23:06:40] JoshGlzBrk: has joined #ruby
[23:07:51] ChameleonSix: has left #ruby: ()
[23:08:20] kobain: has joined #ruby
[23:08:52] snowy: has joined #ruby
[23:09:00] lipoqil: has joined #ruby
[23:09:55] skweek: has joined #ruby
[23:10:22] acoai: has joined #ruby
[23:12:05] pawnbox: has joined #ruby
[23:13:05] stevemackinnon: has joined #ruby
[23:15:06] CloCkWeRX: has joined #ruby
[23:16:23] dlitvak: has joined #ruby
[23:18:31] ping-pong: has joined #ruby
[23:21:31] kobain: has joined #ruby
[23:21:34] replay: has joined #ruby
[23:22:16] replay: has joined #ruby
[23:23:50] ziyadb: has joined #ruby
[23:24:09] askhat: has joined #ruby
[23:25:47] idefine: has joined #ruby
[23:27:37] kerunaru: has joined #ruby
[23:34:31] renderful: has joined #ruby
[23:34:32] platzhirsch: has joined #ruby
[23:35:29] andrewvos: has joined #ruby
[23:36:13] blur3d: has joined #ruby
[23:36:30] platzhirsch: I have a class which instances are initialized through CSV. Three different CSV, formatting dates differently, hence I need to apply different parametrized Date.strptime
[23:36:44] platzhirsch: I want to pass this now in together with the CSV through the constructor
[23:37:14] platzhirsch: any nice way of encapsulating that? Or just straight an option hash in: { date_of_birth: '%Y/%m/%d' }
[23:37:24] Xeago: has joined #ruby
[23:40:03] ur5us: has joined #ruby
[23:41:19] platzhirsch: gimme some beeautiful abstraction *cry*
[23:42:31] jamw: has joined #ruby
[23:42:51] pawnbox: has joined #ruby
[23:42:57] openstruct: Would it be heinous to have a base class that you initialize that then sends the message to the appropriate parser based on the format?
[23:43:37] sinkensabe: has joined #ruby
[23:45:13] tubuliferous_: has joined #ruby
[23:45:53] davedev24: has joined #ruby
[23:48:25] platzhirsch: openstruct: I find it quite ironic that your nick is openstruct
[23:48:43] platzhirsch: anyway, no. Not at all. But I mean, how would that look like. Let's stay StudentRecord < Record, okay and then..
[23:48:52] dexter_: has joined #ruby
[23:48:54] kam270: has joined #ruby
[23:48:59] platzhirsch: Record.new(ConcreteParser('%Y...' ) ?
[23:49:19] BTRE: has joined #ruby
[23:49:47] davedev24: has joined #ruby
[23:50:15] platzhirsch: so the parser would generally define how to parse that type of thingy
[23:50:28] TomPeed: has joined #ruby
[23:50:56] [Butch]_: has joined #ruby
[23:50:56] sphex: has joined #ruby
[23:51:12] blackgoat: has joined #ruby
[23:52:56] SpikeMas`: has joined #ruby
[23:53:50] sphex: hey! I have a question about Thread/Fiber local storage... is there any way to make this happen: Thread.current[:test] = "!"; Thread.new { puts Thread.current[:test] }.join
[23:53:58] Dimik: has joined #ruby
[23:54:36] rgtk: has joined #ruby
[23:55:10] sphex: I mean, to have the local storage be inherited by threads or fibers created.
[23:55:33] drale2k: What happens when i don't close a TCP socket connection? Will it eat more and more memory?
[23:55:51] drale2k: or will it just hold the socket open. I need to do that for what i need to do
[23:57:38] sphex: drale2k: well.. it will hold the socket open (as long as there is a reference remaining to this object), *and* this will require some memory (and kernel resources)
[23:59:13] agentmeerkat: has joined #ruby
[23:59:21] openstruct: platzhirsch: It's funny, I know how not to do what you're asking, but don't really know the pattern.
[23:59:25] shevy: Fibers are still a mystery to me
[23:59:43] platzhirsch: shevy: shame on you