« Back to channel list

#ruby - 07 June 2016

« Back 1 day Forward 1 day »
[00:00:30] ekinmur: has joined #ruby
[00:07:27] sneakers: has joined #ruby
[00:08:39] shevy: wrkrcoop hash also has .default= http://ruby-doc.org/core-2.3.0/Hash.html#method-i-default-3D
[00:08:50] wrkrcoop: shevy: thanks
[00:09:50] n_blownapart: has joined #ruby
[00:09:53] edwinvdgraaf: has joined #ruby
[00:12:46] hutch34: has joined #ruby
[00:14:27] certainty: has joined #ruby
[00:14:48] Rodya_: has joined #ruby
[00:16:39] arescorpio: has joined #ruby
[00:17:14] Vingador_: has joined #ruby
[00:18:04] Vingador: has joined #ruby
[00:19:55] flyinprogrammer: has joined #ruby
[00:20:18] flyinprogrammer: yaml parser? why are keys special at 128 characters? https://repl.it/CZAI
[00:20:31] mikecmpbll: has joined #ruby
[00:20:40] flyinprogrammer: oh keyboards, did i find a bug with the built in yaml parser ?
[00:21:36] Arcaire: I have a question and possibly a follow up question
[00:21:52] Arcaire: what the hemorrhaging fuck are you doing with that yaml?
[00:22:01] baweaver: Arcaire be nice
[00:22:06] Arcaire: That was being nice.
[00:22:14] Arcaire: Look at that repl.
[00:22:20] baweaver: let's try that again
[00:22:27] Wolland: has joined #ruby
[00:22:37] Arcaire: My follow up question is what are you using yaml for in general?
[00:22:44] Arcaire: Most people use it for things like configs.
[00:23:02] flyinprogrammer: it's part of a bigger puzzle i'm working on - i was just trying to isolate the issue to show that at 128 characters behavior of the parser appears to change
[00:23:07] jancel: has joined #ruby
[00:23:45] flyinprogrammer: lets pretend i have JSON that i'm converting to YAML for a legacy piece of code
[00:24:16] Rodya_: has joined #ruby
[00:24:22] Arcaire: I feel you may have slightly larger issues than the restrictions of the YAML 1.1 spec if your JSON looks like this.
[00:25:24] flyinprogrammer: i don't disagree -- but is this a documented 'feature' of the spec?
[00:26:04] flyinprogrammer: really - i tried searching for something related to this behavior and could not find anything related to 128 or 256 limits
[00:26:09] CloCkWeRX: has joined #ruby
[00:26:13] Arcaire: Try searching for 1024 and then dividing by 8.
[00:26:33] Arcaire: The limit isn't 128, it's 1024 stream characters
[00:27:11] n_blownapart: has joined #ruby
[00:27:18] flyinprogrammer: "must not span more than 1024 stream characters" got it :)
[00:27:35] Arcaire: By coincidence, that limit is divided by eight when you're using the ascii set. I'd imagine it's even lower if you try and use, say, Mandarin characters or something.
[00:27:37] flyinprogrammer: thanks man - i'm sorry for causing you any pain -- i appreciate the help!
[00:27:52] Arcaire: That yaml will haunt me for weeks.
[00:29:30] eljimmy: has joined #ruby
[00:29:32] centrx: has joined #ruby
[00:33:56] Rodya_: has joined #ruby
[00:34:34] tildes_: has joined #ruby
[00:35:27] aupadhye: has joined #ruby
[00:36:53] Rodya_: has joined #ruby
[00:39:13] sumobob: has joined #ruby
[00:39:17] benlieb: has joined #ruby
[00:42:08] bhaak: has joined #ruby
[00:43:48] yfeldblum: has joined #ruby
[00:44:49] truenito: has joined #ruby
[00:45:08] yfeldblum: has joined #ruby
[00:45:45] davedev24: has joined #ruby
[00:45:57] shevy: I have not looked at it yet - now I am too scared to look at it
[00:46:44] truenito: has joined #ruby
[00:47:07] Yiota: has joined #ruby
[00:47:54] mikecmpbll: has joined #ruby
[00:49:46] davedev24: has joined #ruby
[00:50:40] bhaak: has joined #ruby
[00:53:26] aupadhye: has joined #ruby
[00:53:35] ElFerna: has joined #ruby
[00:55:43] jerikl: has joined #ruby
[00:55:50] Yiota: has joined #ruby
[00:58:17] davedev24: has joined #ruby
[01:00:51] Ropeney: has joined #ruby
[01:06:13] sumobob: has joined #ruby
[01:08:45] ekinmur: has joined #ruby
[01:12:21] kraken: has joined #ruby
[01:12:31] wilbert: has joined #ruby
[01:12:43] krakenr: Isn't there a method which returns whether or not a certain object has a method?
[01:12:51] SilverKey: has joined #ruby
[01:12:53] Alazoral: has joined #ruby
[01:14:49] havenwood: >> respond_to? :kraken_
[01:14:51] ruby[bot]: havenwood: # => false (https://eval.in/584409)
[01:15:12] certainty: has joined #ruby
[01:17:39] charliesome: has joined #ruby
[01:19:12] krakenr: What are your guys' thought on 30 line methods :( ?
[01:19:23] ramfjord_: has joined #ruby
[01:21:14] shevy: must be 42
[01:21:40] shevy: problem is that longer methods are harder to change
[01:21:43] moeabdol2: has joined #ruby
[01:23:10] Wolland: has joined #ruby
[01:30:37] nankyokusei: has joined #ruby
[01:32:04] jancel: has joined #ruby
[01:34:40] flashpoint9: has joined #ruby
[01:39:40] CloCkWeRX: has joined #ruby
[01:43:35] ekinmur: has joined #ruby
[01:43:43] n_blownapart: has joined #ruby
[01:44:22] nando293921: has joined #ruby
[01:44:22] ramfjord: has joined #ruby
[01:44:31] freerobby: has joined #ruby
[01:44:40] ecksit: has joined #ruby
[01:46:59] wilbert: has joined #ruby
[01:47:42] havenwood: >> 'We cross our bridges as we come to them and burn them behind us, with nothing to show for our progress except a memory of the smell of smoke, and the presumption that once our eyes watered.'.count ' '
[01:47:43] ruby[bot]: havenwood: # => 36 (https://eval.in/584411)
[01:49:52] jackjackdripper: has joined #ruby
[01:50:22] havenwood: kraken_: One might also say to limit sentences to fewer than 30 words. Break rules sometimes.
[01:52:10] nando293921: has joined #ruby
[01:52:47] weemsledeux: has joined #ruby
[01:53:29] havenwood: kraken_: Maybe try limiting yourself to 10 or 5 lines per method for a while. If you need more consider why or ask for feedback here on how.
[01:53:55] nadir: has joined #ruby
[01:53:58] nadir: has joined #ruby
[01:53:59] nadir: has joined #ruby
[01:54:10] David_H__: has joined #ruby
[01:54:11] shevy: a kraken has lots of arms!
[01:54:46] devbug: has joined #ruby
[01:58:25] blockchan: has joined #ruby
[02:04:10] longfeet: has joined #ruby
[02:09:24] zacts: has joined #ruby
[02:09:56] raeoks: has joined #ruby
[02:10:51] havenwood: https://jhawthorn.github.io/curl-to-ruby/
[02:16:00] certainty: has joined #ruby
[02:16:57] m_antis: has joined #ruby
[02:18:46] tmtwd: has joined #ruby
[02:23:44] sphex_: has joined #ruby
[02:24:00] Wolland: has joined #ruby
[02:28:22] arooni-mobile: has joined #ruby
[02:29:11] arooni-mobile: has left #ruby: ()
[02:29:44] nando293921: has joined #ruby
[02:30:33] c_nick: has joined #ruby
[02:31:11] c_nick: i want to copy all contents of A to B .. FileUtils.cp_r(A/.,B) should be fine right?
[02:31:46] ur5us: has joined #ruby
[02:31:55] nando293921: has joined #ruby
[02:32:12] cdg: has joined #ruby
[02:33:42] shevy: don't forget that it wants strings as input arguments
[02:33:44] SilverKey: has joined #ruby
[02:34:13] c_nick: shevy: yep. many thanks
[02:34:34] c_nick: FileUtils.cp_r("A/.","B")
[02:35:40] c_nick: Off topic but incase anyone can help - In excel i want to check if A1 has 'Sat' or 'Sun' fill A2 with Grey color , is macro the only choice or we can do it via Conditional Formatting or some other means ?
[02:36:13] shevy: you can do so with some formula I think
[02:36:35] shevy: I know that I googled for libreoffice sum even rows and found some discussion forum in sat... stackoverflow style where the code was shown
[02:36:42] shevy: I hate the formulas though, I want to be able to use ruby!
[02:38:52] nando293921: has joined #ruby
[02:41:03] c_nick: shevy: lol .. yeah to think of it we can use the excel sheet in Ruby using Win Module parse it and then make another one :D but ......
[02:46:00] ih8niggrz: has joined #ruby
[02:46:05] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:06] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:07] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:07] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:07] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:07] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:08] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:08] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:08] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:09] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:09] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:09] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:10] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:11] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:12] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:12] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:13] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:24] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:24] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:25] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:25] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:26] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:26] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:27] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:27] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:28] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:28] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:29] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:29] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:30] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:30] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:31] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:31] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:32] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:32] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:44] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:44] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:45] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:45] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:46] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:46] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:47] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:47] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:48] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:46:48] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:48:00] ih8niggrz: 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
[02:51:38] astrobunny: has joined #ruby
[02:53:22] jackjackdripper: has joined #ruby
[02:53:31] astrobun_: has joined #ruby
[02:55:19] mleung: has joined #ruby
[02:58:11] baweaver: !troll ih8niggrz
[02:58:13] ruby[bot]: +bb ih8niggrz!*@*$#ruby-banned *!*@gateway/web/freenode/ip.151.80.113.194$#ruby-banned
[02:58:14] ruby[bot]: -bb KKK4LIFE!*@*$#ruby-banned *!*@172.58.17.26$#ruby-banned
[03:00:19] chouhoulis: has joined #ruby
[03:02:40] mikecmpbll: has joined #ruby
[03:02:42] aries_liuxueyang: has joined #ruby
[03:03:37] n_blownapart: has joined #ruby
[03:04:57] wolffles: has joined #ruby
[03:07:29] gtsai: has joined #ruby
[03:08:07] coffeecupp: has joined #ruby
[03:08:41] coffeecupp: has joined #ruby
[03:10:10] moeabdol2: has joined #ruby
[03:11:56] jnoob22: If you don't use $LOAD_PATH << "." ... where does Ruby normally look for packages/modules?
[03:12:44] lightt: has joined #ruby
[03:13:44] pontiki: has joined #ruby
[03:14:20] braincras: has joined #ruby
[03:16:27] c_nick: has left #ruby: ()
[03:16:48] certainty: has joined #ruby
[03:16:48] Rodya_: has joined #ruby
[03:17:26] SilverKey: has joined #ruby
[03:19:31] gtsai: has joined #ruby
[03:19:37] edwardly: has joined #ruby
[03:19:37] edwardly: has joined #ruby
[03:19:41] SilverKey: has joined #ruby
[03:19:58] chouhoulis: has joined #ruby
[03:20:42] chouhoulis: has joined #ruby
[03:21:03] crdpink: has joined #ruby
[03:22:38] Madplatypus: has joined #ruby
[03:25:00] Wolland: has joined #ruby
[03:26:05] akkad: standard ruby
[03:31:07] rehat: has joined #ruby
[03:31:29] nankyokusei: has joined #ruby
[03:32:18] rehat: trying to find the implementation of a method but I can't seem to find it. If there is a method called 'available?' shouldn't there be method with that name?
[03:34:18] tgeeky: anyone here understand StringIO? I would ask if you understand encodings, but apparently nobody does.
[03:34:21] tgeeky: http://pastie.org/10867180
[03:34:22] hk238: has joined #ruby
[03:34:31] chouhoul_: has joined #ruby
[03:34:36] tgeeky: everything seems to fail when using StringIO, but the gem claims it's supposed to work
[03:34:52] tgeeky: (and almost all of the tests pass for the gem)
[03:35:16] astrobunny: has joined #ruby
[03:35:23] mistermocha: has joined #ruby
[03:35:30] pontiki: i hate encodings
[03:35:46] tgeeky: the weird part is, if you inspect the data structures produced
[03:35:50] tgeeky: they are basically identical
[03:35:54] tgeeky: (headers, column definitions, etc)
[03:36:01] tgeeky: i suppose I could paste that
[03:36:45] jackjackdripper: has joined #ruby
[03:41:19] tgeeky: this isn't exactly easy to read, but:
[03:41:19] tgeeky: http://pastie.org/10867192
[03:41:23] tgeeky: they are the same damn thing
[03:44:56] tmtwd: has joined #ruby
[03:47:19] tildes_: has joined #ruby
[03:49:50] gix: has joined #ruby
[03:53:58] n_blowna_: has joined #ruby
[03:56:13] nukkr: has joined #ruby
[03:58:21] nukkr: has left #ruby: ()
[04:01:40] weaksauce: has joined #ruby
[04:03:24] ncthom91: has joined #ruby
[04:04:16] phredus: has joined #ruby
[04:06:01] mistermocha: has joined #ruby
[04:06:14] djbkd: has joined #ruby
[04:06:32] nukkr: has joined #ruby
[04:06:35] nukkr: has left #ruby: ()
[04:08:30] tgeeky: no takers on my encoding nightmare?
[04:09:09] grill: has joined #ruby
[04:11:35] kareeoleez: has joined #ruby
[04:12:51] pontiki: not me, no way (holds up cross)
[04:13:10] coffeecupp: has joined #ruby
[04:13:26] d0lph1n98: has joined #ruby
[04:14:33] sauvin: has joined #ruby
[04:16:06] skolman: has joined #ruby
[04:16:13] n_blowna_: has joined #ruby
[04:16:15] David_H_Smith: has joined #ruby
[04:17:30] certainty: has joined #ruby
[04:17:33] grassass: has joined #ruby
[04:18:39] k3rn31: has joined #ruby
[04:20:32] tgeeky: i guess i could revert to asking
[04:20:44] tgeeky: is it even sensible to think that putting a while file in memory and reading it with StringIO is going to be any faster?
[04:20:53] tgeeky: or is there some other way to memory map a while file
[04:20:59] tgeeky: it's only ~ 80 MB + another 60 MB
[04:22:21] chouhoulis: has joined #ruby
[04:24:30] n_blowna_: has joined #ruby
[04:25:43] Wolland: has joined #ruby
[04:30:10] nando293921: has joined #ruby
[04:32:47] chouhoulis: has joined #ruby
[04:34:55] Coldblackice: has joined #ruby
[04:36:41] lightt: has joined #ruby
[04:37:24] ramfjord: has joined #ruby
[04:37:59] LoneHerm_: has joined #ruby
[04:38:35] duncannz: has joined #ruby
[04:40:57] moeabdol2: has joined #ruby
[04:43:20] JesseH: has joined #ruby
[04:43:28] haxrbyte: has joined #ruby
[04:43:38] workmad3: has joined #ruby
[04:43:57] arlek: has joined #ruby
[04:45:03] dh64: has joined #ruby
[04:47:35] raeoks: has joined #ruby
[04:48:05] electrostat: has joined #ruby
[04:49:16] yatish27_: has joined #ruby
[04:50:37] matp: has joined #ruby
[04:51:24] pawnbox: has joined #ruby
[04:54:33] mleung: has joined #ruby
[04:57:43] blur3d: has joined #ruby
[04:58:23] mistermocha: has joined #ruby
[04:59:58] haxrbyte: has joined #ruby
[05:01:29] hahuang61: has joined #ruby
[05:07:32] agent_white: has joined #ruby
[05:11:23] jancel: has joined #ruby
[05:13:24] guardianJ: has joined #ruby
[05:17:07] David_H_Smith: has joined #ruby
[05:17:49] lightt: has joined #ruby
[05:18:06] pawnbox: has joined #ruby
[05:18:17] certainty: has joined #ruby
[05:19:17] dionysus69: has joined #ruby
[05:20:14] kknight: has joined #ruby
[05:20:58] guilopug: has joined #ruby
[05:22:48] ramfjord: has joined #ruby
[05:23:02] blockchan: has joined #ruby
[05:23:22] kknight: has joined #ruby
[05:23:36] roamingdog: has joined #ruby
[05:24:30] Luna_Moonfang: has joined #ruby
[05:25:26] spyder55: has joined #ruby
[05:26:37] TomyLobo: has joined #ruby
[05:27:41] terlar: has joined #ruby
[05:28:58] guardianJ: has joined #ruby
[05:30:18] vikaton: has joined #ruby
[05:32:16] nankyokusei: has joined #ruby
[05:32:48] kknight: has joined #ruby
[05:35:11] n_blownapart: has joined #ruby
[05:38:16] harai: has joined #ruby
[05:39:17] jas02: has joined #ruby
[05:41:37] Cohedrin: has joined #ruby
[05:43:12] haxrbyte: has joined #ruby
[05:44:01] ur5us: has joined #ruby
[05:44:14] joonty: has joined #ruby
[05:45:25] arlek: has joined #ruby
[05:46:39] blaxter: has joined #ruby
[05:47:07] last_staff: has joined #ruby
[05:47:36] lictor36: has joined #ruby
[05:49:01] kgrz: has joined #ruby
[05:49:06] jaguarmagenta: has joined #ruby
[05:49:10] blaxter: has joined #ruby
[05:51:31] Dimik: has joined #ruby
[05:52:41] flashpoint9: has joined #ruby
[05:57:13] harfangk: has joined #ruby
[05:58:22] Oog: has joined #ruby
[06:00:54] hahuang61: has joined #ruby
[06:01:20] djbkd: has joined #ruby
[06:01:51] kareeoleez: has joined #ruby
[06:02:21] moeabdol2: has joined #ruby
[06:03:43] jaguarma_: has joined #ruby
[06:06:49] David_H_Smith: has joined #ruby
[06:07:32] beawesomeinstead: has joined #ruby
[06:07:49] mikecmpbll: has joined #ruby
[06:08:13] jackjackdripper: has joined #ruby
[06:09:00] nadir: has joined #ruby
[06:10:12] RobertBirnie: has joined #ruby
[06:10:48] certainty: has joined #ruby
[06:11:24] araujo: has joined #ruby
[06:11:24] araujo: has joined #ruby
[06:11:35] ensyde__: has joined #ruby
[06:14:57] isene: has joined #ruby
[06:15:48] kraken: has joined #ruby
[06:16:12] krakenr: alright, this may sound dumb, and I'm not even sure I get what I'm asking, but are classes objects in ruby?
[06:17:47] fenre: has joined #ruby
[06:18:29] etehtsea: has joined #ruby
[06:19:42] anisha: has joined #ruby
[06:20:10] fenre: has joined #ruby
[06:20:11] codecop: has joined #ruby
[06:20:21] firstdayonthejob: has joined #ruby
[06:20:47] hahuang61: has joined #ruby
[06:21:47] guardianJ: has left #ruby: ()
[06:23:24] apeiros: kraken_: let's as ruby!
[06:23:29] apeiros: >> Array.is_a?(Object)
[06:23:31] ruby[bot]: apeiros: # => true (https://eval.in/584461)
[06:23:42] apeiros: kraken_: ^ seems ruby says "yes, they are!"
[06:23:57] apeiros: oy, "let's *ask* ruby" :)
[06:24:16] krakenr: Christ now I'm confused
[06:24:39] krakenr: An Array doesn't
[06:24:54] krakenr: I just don't get how a class can be an instance of an object
[06:25:11] apeiros: classes are instances of the class Class
[06:25:16] krakenr: I get how an instance of an array can inherit from object
[06:25:17] apeiros: and Class is a subclass of Object
[06:25:40] kent\n: has joined #ruby
[06:25:43] apeiros: the root is slightly circular. ruby cheats a bit there.
[06:25:57] krakenr: I don't think it pragmatically matter much
[06:25:57] apeiros: i.e. Class < Module < Object (ancestry of Class)
[06:26:04] apeiros: and Object.is_a?(Class)
[06:26:09] apeiros: so that part is circular
[06:26:14] lxsameer: has joined #ruby
[06:26:15] krakenr: interesting
[06:26:44] apeiros: and yes, pragmatically it doesn't matter much. just accept that it's circular. besides that, it does make a lot of sense.
[06:26:45] krakenr: Thanks aperios
[06:26:49] Madplatypus: has joined #ruby
[06:26:50] apeiros: ?tabnick kraken_
[06:26:50] ruby[bot]: kraken_: pro-tip - use tab completion for nicks. avoids typos in nicks.
[06:27:11] krakenr: what are nicks?
[06:27:19] apeiros: "kraken_" is your nick
[06:27:25] krakenr: thank apeiros
[06:27:37] null__: https://i.stack.imgur.com/XDHjA.jpg
[06:27:50] apeiros: nick aka nickname aka handle aka idontknowwhatelsetheyarecalled
[06:27:55] krakenr: checking it out null__
[06:33:16] lightt: has joined #ruby
[06:35:34] Oog: has joined #ruby
[06:35:54] fenre: has joined #ruby
[06:36:15] gua: has joined #ruby
[06:39:55] ramfjord: has joined #ruby
[06:42:08] jhass: apeiros: username?
[06:48:17] n1x-nz: has joined #ruby
[06:53:46] aganov: has joined #ruby
[06:57:02] n_blownapart: has joined #ruby
[06:57:07] AimlessRAven: has joined #ruby
[06:58:26] kareeoleez: has joined #ruby
[06:59:43] djbkd: has joined #ruby
[07:00:20] jancel: has joined #ruby
[07:02:51] jaruga___: has joined #ruby
[07:03:24] biberu: has joined #ruby
[07:06:03] andikr: has joined #ruby
[07:11:29] n_blownapart: has joined #ruby
[07:11:55] Oog: has joined #ruby
[07:15:10] chussenot: has joined #ruby
[07:15:21] craigp: has joined #ruby
[07:15:31] biberu\: has joined #ruby
[07:15:45] Macaveli: has joined #ruby
[07:16:51] blockchan: has joined #ruby
[07:20:47] Spami: has joined #ruby
[07:21:25] colegatron: has joined #ruby
[07:21:50] biberu: has joined #ruby
[07:23:54] jnoob22: has joined #ruby
[07:23:55] jnoob22: has joined #ruby
[07:24:22] truenito: has joined #ruby
[07:24:58] the_drow: has joined #ruby
[07:29:00] joonty: has joined #ruby
[07:29:37] mdw: has joined #ruby
[07:29:57] k3rn31: has joined #ruby
[07:30:04] gamov: has joined #ruby
[07:30:05] fenre: has joined #ruby
[07:30:23] MEATCHICKEN: has joined #ruby
[07:30:27] mikecmpbll: has joined #ruby
[07:30:31] ryann: has joined #ruby
[07:31:24] antgel: has joined #ruby
[07:33:06] flughafen_: has joined #ruby
[07:33:10] nankyokusei: has joined #ruby
[07:34:13] phatypus: has joined #ruby
[07:40:16] pawnbox: has joined #ruby
[07:42:22] mikecmpbll: has joined #ruby
[07:42:29] biberu\: has joined #ruby
[07:44:38] apeiros: jhass: right
[07:45:34] biberu: has joined #ruby
[07:46:53] kknight: has joined #ruby
[07:48:05] certainty: has joined #ruby
[07:50:10] scepticulous: has joined #ruby
[07:50:23] flughafen_: adaedra: bonjour
[07:50:31] moeabdol2: has joined #ruby
[07:52:07] emilkarl: has joined #ruby
[07:52:29] nadir: has joined #ruby
[07:53:04] n1x-nz: has joined #ruby
[07:53:05] certainty: has joined #ruby
[07:53:26] madgen: has joined #ruby
[07:55:05] adaedra: hallo flughafen_
[07:55:06] adaedra: hello everyone else
[07:55:21] solocshaw: has joined #ruby
[07:55:55] jas02: has joined #ruby
[07:56:18] adaedra: hur mår du?
[07:57:10] flughafen_: jur mar so gut
[07:58:25] ishe_ua: has joined #ruby
[07:59:46] mikecmpbll: has joined #ruby
[08:00:55] TheHodge: has joined #ruby
[08:01:49] chussenot: has joined #ruby
[08:01:51] snowy: has joined #ruby
[08:03:03] skade: has joined #ruby
[08:04:58] harfangk: has joined #ruby
[08:05:40] moeabdol2: has joined #ruby
[08:07:43] Bish: has joined #ruby
[08:08:07] Bish: are there any good databse connectors that doesn't require c extensions?
[08:09:48] Hanmac: Bish how else should it connect to the database?
[08:10:01] Bish: ? sockets
[08:10:45] Hanmac: hm that might be possible but 10x more complicated and far more slower
[08:10:57] Bish: i know all that
[08:10:59] Bish: but are there any
[08:11:30] Bish: or a good key value store for ruby, which can act like a database
[08:11:35] Bish: it doesn't have to be fast or store much data
[08:13:18] raeoks: has joined #ruby
[08:14:20] jhass: Bish: https://github.com/will/crystal-pg here's a postgres driver for crystal implementing the wire protocol in crystal, no libpq dependency or any C at all!
[08:15:14] Bish: :D im looking forward to crystal but having it to compile is imho like a c extension :D
[08:15:39] Bish: why are so many postgres fans in ruby-ish environment
[08:16:40] jhass: because it's awesome
[08:16:51] jhass: https://github.com/will/crystal-pg/blob/master/src/pq/connection.cr#L113 the wire protocol isn't all that complicated
[08:17:08] Bish: well, because of sequel i looked into it, but performance of pg didn't overwhelm me
[08:17:10] jhass: some .packs and .unpacks in ruby, give it a short if you need it
[08:17:19] jhass: compared to?
[08:17:33] jhass: then you had weird testcases
[08:17:37] lessless: has joined #ruby
[08:17:40] alfiemax: has joined #ruby
[08:17:46] Bish: i just googled a bit, found a couple of blogs, writing about it
[08:17:51] giz|work: has joined #ruby
[08:17:53] jhass: yet have to find something where mysql outperforms postgres in default settings
[08:17:56] alfiemax: i'm facing a wierd issue using rvm
[08:18:13] Bish: alfiemax: too bad this channel isn't #rvm :p
[08:18:25] jhass: ask anyway
[08:18:43] alfiemax: i've got a new laptop, just installed ubuntu 16.04.
[08:18:56] alfiemax: installed rvm the usual way, using rvm curl command
[08:19:09] einarj: has joined #ruby
[08:19:09] Bish: jhass: but actually im looking for something standalone-ish, like sequel which always needs sqlite3
[08:19:13] skade: has joined #ruby
[08:19:15] alfiemax: i've got 2.1.2 ans 2.3.0 installed
[08:19:32] jhass: Bish: YDBM?
[08:19:44] jhass: http://devdocs.io/ruby~2.3/yaml/dbm
[08:19:55] Shashikant86: has joined #ruby
[08:20:01] alfiemax: now, within a rails app, when i do `rails c` it gives me error, that the ruby version in use is 2.3.0, where as the one specified is 2.1.2
[08:20:26] alfiemax: rvm list shows the selected ruby version as 2.1.2
[08:20:42] Bish: alfiemax: what does which ruby say
[08:20:47] Bish: "which ruby"
[08:20:49] jhass: alfiemax: did you relogin since you installed RVM? also https://rvm.io/integration/gnome-terminal
[08:20:49] alfiemax: `ruby -v` shows 2.1.2
[08:21:03] jhass: what does which rails say?
[08:22:04] Bish: jhass: thanks i will look into it
[08:22:22] Bish: jhass: regarding crystal: will you notify me when it has proper threading & win32 support :p
[08:22:26] alfiemax: it say usr/bin/rails
[08:22:42] jhass: Bish: no! but I inform you that we have variadic generics now!
[08:22:47] n_blownapart: has joined #ruby
[08:23:02] Bish: did you just tell me to f myself :D
[08:23:08] jhass: alfiemax: so you sudo gem install rails at some point, or installed rails via apt-get
[08:23:18] jhass: alfiemax: I'd suggest to start be removing that one
[08:23:31] jhass: Bish: variadic generics are awesome!
[08:23:38] alfiemax: ok, i'll try
[08:24:06] Bish: i will surely look into it, as soon as it finds its way into my distribution
[08:24:08] chrissonar: has joined #ruby
[08:24:28] Bish: crystal looks really promising to release me from c++
[08:24:40] chrissonar: is it valid to claim "classes are constants" from the Ruby perspective?
[08:25:05] jhass: Bish: what's your distro?
[08:25:25] jhass: chrissonar: classes are objects which typically are assigned to constants
[08:25:35] jhass: chrissonar: class Foo is roughly the same as Foo = Class.new
[08:25:37] Bish: jhass: gentoo
[08:26:15] chrissonar: jhass, well. classes are objects of the class Class.
[08:26:43] jhass: Bish: ah well, why don't you write a package? Guess where arch has theirs from ;)
[08:26:53] jhass: chrissonar: yes
[08:27:04] Bish: no, no gentoo has packages, but they're only at 0.15 ( which is pretty good for such a young project )
[08:28:03] moeabdol: has joined #ruby
[08:28:26] jhass: Bish: huh, no packaging changes towards 0.17 there, just gotta bump it
[08:33:24] n_blownapart: has joined #ruby
[08:34:10] guardian: has joined #ruby
[08:36:08] Bish: jhass: what's the deal with win32 support?
[08:36:52] jhass: shit ton of work, non of the core devs uses windows
[08:37:45] Bish: yeah windows sucks, still would love to be able to write for it
[08:38:04] jhass: and more pressing issues, like making generics more stable and well, parallelism
[08:38:05] evidex: has joined #ruby
[08:38:38] Bish: yeah parallelism would automaticially make me user crystal
[08:38:53] Bish: s/user/use
[08:39:19] Bish: like having a fast ruby-like language processing data rather quickly, a dream
[08:39:22] joonty: has joined #ruby
[08:40:01] tildes: has joined #ruby
[08:40:29] Shashikant86: has joined #ruby
[08:41:41] tjbiddle: has joined #ruby
[08:41:47] UKn0Me: has left #ruby: ()
[08:42:16] mark_66: has joined #ruby
[08:45:39] lalalaaa: Hi! TweetStream::Client.new.locations(-80.29,32.57,-79.56,33.09) do |tweet| -- what sort of location format is that? It doesn't seem like regular (latitude,longitude).
[08:46:05] apeiros: lalalaaa: did you consult TweetStream::Client's docs?
[08:46:26] apeiros: and after that, twitter's own API docs?
[08:48:02] certainty: has joined #ruby
[08:49:27] ocbtec: has joined #ruby
[08:50:02] pawnbox: has joined #ruby
[08:50:11] jhass: Bish: note there's already concurrency on blocking IO
[08:50:15] n_blownapart: has joined #ruby
[08:50:25] skade: has joined #ruby
[08:50:29] jhass: kinda node style, I think Go wasn't parallel from the start either
[08:51:15] GarethAdams: has joined #ruby
[08:51:51] apeiros: hard to find good devs who truly grasp parallelism and its inherent problems.
[08:52:04] fenre: has joined #ruby
[08:52:18] apeiros: jhass: if you've got any influence on it, please make the scheduler pluggable. that'd be a major step to allow concurrent code to be tested.
[08:52:42] apeiros: I guess the "modern" and "buzzy" word would be "injectable" :)
[08:54:02] Bish: jhass: but only on one core , yeah
[08:54:02] flughafen_: apeiros: increases sz
[08:54:08] marr: has joined #ruby
[08:54:20] flughafen_: ugh, keyboard, increases synergy by 30%
[08:54:46] apeiros: flughafen_: modulates the amplitude of the productivity geometrically!
[08:56:23] flughafen_: apeiros: haha
[08:56:46] jhass: apeiros: well, crystal allows monkey patching :D
[08:56:57] jhass: and everything is written in crystal
[08:57:08] jhass: but noted
[08:57:46] DTZUBDUB: has joined #ruby
[08:58:27] Bish: Sequel question: when using .select { ... } can i give it an alias or something?
[08:58:57] Couch: has joined #ruby
[09:02:46] Bish: got it already!
[09:02:48] skade: has joined #ruby
[09:04:27] atm0sphere: has joined #ruby
[09:05:23] dumdedum: has joined #ruby
[09:05:51] mwlang: has joined #ruby
[09:06:41] lalalaaa: apeiros: you're right thanks I was looking at the wrong place earlier
[09:07:07] atm0sphere: https://gist.github.com/aj07/54db84129929577fde58f23c2c282441
[09:07:07] Bish: i will never stop loving sequel
[09:07:11] araujo: has joined #ruby
[09:07:12] araujo: has joined #ruby
[09:07:46] atm0sphere: has joined #ruby
[09:07:55] snowy: has joined #ruby
[09:09:22] Silthias2: has joined #ruby
[09:09:49] Olipro: has joined #ruby
[09:10:08] flughafen_: has joined #ruby
[09:12:24] jinie: has joined #ruby
[09:12:35] atm0sphere: has joined #ruby
[09:13:14] lalalaaa: apeiros: I think it's using some weird geotagging format instead: http://www.rubydoc.info/github/tweetstream/tweetstream/TweetStream/Client#locations-instance_method
[09:14:13] atm0sphere: anyone please https://gist.github.com/aj07/54db84129929577fde58f23c2c282441
[09:14:25] atm0sphere: here i want to get accept date only prsent onwards not of past
[09:16:04] d0lph1n98: has joined #ruby
[09:17:05] Hanmac: atm0sphere: what kind of format is that? did you use rails or something like that?
[09:17:28] kknight: yes i an using it in rails
[09:17:37] edwinvdgraaf: has joined #ruby
[09:18:30] lxsameer: has joined #ruby
[09:18:38] jhass: ?crosspost kknight
[09:18:39] ruby[bot]: kknight: 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.
[09:18:43] Hanmac: kknight: i didnt mean you ;P
[09:18:57] jhass: hanmac: you did, they're the same (same hostmask)
[09:20:02] Tempesta: has joined #ruby
[09:20:33] senayar: has joined #ruby
[09:20:44] biberu\: has joined #ruby
[09:20:44] kknight: i was unable to post on rails forum so posted here , sorry for that
[09:20:53] duderonomy: has joined #ruby
[09:21:01] jhass: it came though just fine
[09:21:17] kknight: btw whats the solution?
[09:21:24] Hanmac: ah good to know ... about the problem with date only in the future, i dont know if its possible but you should try an input tag with type=date
[09:22:30] phredus: has joined #ruby
[09:25:12] biberu: has joined #ruby
[09:27:33] toretore: has joined #ruby
[09:31:03] GarethAdams: has joined #ruby
[09:31:53] zhangss: has joined #ruby
[09:32:57] mistermocha: has joined #ruby
[09:33:43] nankyokusei: has joined #ruby
[09:34:20] alfiemax: has joined #ruby
[09:37:35] n_blownapart: has joined #ruby
[09:40:26] weckl: has joined #ruby
[09:45:09] Helheim: has joined #ruby
[09:47:39] kknight: has left #ruby: ("Leaving")
[09:49:52] Macaveli: has joined #ruby
[09:52:18] `derpy: has joined #ruby
[09:52:19] adaedra: has joined #ruby
[09:53:18] madgen: has joined #ruby
[09:53:18] joonty: has joined #ruby
[09:57:55] Xentil: has joined #ruby
[09:58:07] giz|work: has joined #ruby
[10:00:32] evidex: has joined #ruby
[10:04:03] norc: has joined #ruby
[10:04:54] n_blownapart: has joined #ruby
[10:09:04] lightt: has joined #ruby
[10:10:30] benlieb: has joined #ruby
[10:15:09] flughafen_: has joined #ruby
[10:16:05] yqt: has joined #ruby
[10:17:42] davedev24: has joined #ruby
[10:18:47] edwinvdgraaf: has joined #ruby
[10:23:25] sdothum: has joined #ruby
[10:23:29] n_blownapart: has joined #ruby
[10:24:02] diegoaguilar: has joined #ruby
[10:24:07] troulouliou_div2: has joined #ruby
[10:26:32] Amnez777: has joined #ruby
[10:26:36] d0lph1n98: has joined #ruby
[10:28:24] Kedare: has joined #ruby
[10:29:28] daveaway: has joined #ruby
[10:29:45] charliesome: has joined #ruby
[10:30:10] daveaway: Has anyone got any experience with debugging a ruby 1.8.7 rails 2.3.8 app using rubymine set up on a vagrant box?
[10:30:21] lessless: has joined #ruby
[10:31:55] jhass: 2010 that was a legit question
[10:32:09] c355E3B: has joined #ruby
[10:32:13] maucar: has joined #ruby
[10:33:39] edwinvdgraaf: has joined #ruby
[10:35:38] agit0: has joined #ruby
[10:36:29] jancel: has joined #ruby
[10:38:57] guardianJ: has joined #ruby
[10:39:15] daveaway: i know jhass, it's a joke
[10:39:15] blackgoat: has joined #ruby
[10:39:45] jhass: you'd wonder how many come with that kind of question here seriously
[10:40:22] daveaway: is it asked regularly?
[10:40:28] norc: daveaway: From time to time, yes.
[10:40:32] daveaway: it's because people dont update their websites for years
[10:40:51] norc: I've seen at least 2 rails 2 related questions this year, and quite a few Ruby 1.9.x problems in the past few weeks.
[10:41:07] daveaway: ;/ and now it's so far gone passed when they should have updated
[10:41:15] daveaway: it would probably be less effort to just rebuild it from scratch
[10:41:23] daveaway: do people not use rails anymore?
[10:41:32] johnmilton: has joined #ruby
[10:41:53] norc: daveaway: For old Ruby partially debian/ubuntu is to blame.
[10:42:11] jhass: and largely Cent and RHEL
[10:42:17] lightt: has joined #ruby
[10:42:18] jhass: and puppet
[10:46:14] shevy: yo flughafen
[10:46:18] shevy: oh I see you twice
[10:46:41] flughafen_: yeah, i'm on my laptop, we have a fancy workshop week this week so i'm on my laptop
[10:47:14] flughafen_: shevy: so now it's twice the airports not taking off
[10:47:40] edwinvdg_: has joined #ruby
[10:48:09] certainty: has joined #ruby
[10:49:14] bweston92: has joined #ruby
[10:50:09] n_blownapart: has joined #ruby
[10:51:23] shevy: flughafen_ I think this is why big cities like london etc.. all have multiple flughafens - they could not rely on their older ones!
[10:51:26] edwinvdgraaf: has joined #ruby
[10:51:47] flughafen_: shevy: if i move to london i will be much more successful
[10:52:36] shevy: I may do so too one day
[10:52:45] shevy: UK or USA ... UK is much closer
[10:52:51] flughafen_: shevy: do you want to relocate?
[10:53:03] daveaway: why would you be more successful in london?
[10:53:23] daveaway: it's ridiculously expensive to live there
[10:53:36] skade: has joined #ruby
[10:53:56] shevy: flughafen_ not really but I think doing a PhD outside the country would be better in the long term
[10:54:05] rodfersou: has joined #ruby
[10:54:45] flughafen_: daveaway: it's a joke. my name is german for airport, and i've been associated with BER the berlin airport that is 201 years behind schedule and 78 trillion euros over budget. But london has 4 working airports.
[10:55:20] shevy: lol 78 trillion
[10:56:00] flughafen_: daveaway: shevy asks me if im taking off on a regular basis.
[10:56:45] shevy: one day they will finish the flughafen
[10:57:03] flughafen_: then i will be referred to as the best flughafen that ever flugged
[10:57:30] MrBusiness3: has joined #ruby
[10:59:56] johnmilton: has joined #ruby
[11:00:28] flughafen_: shevy: im destined for greatness
[11:00:56] Hanmac: shevy BER will be finished when everyone else has personal teleporters ;P
[11:01:01] harfangk: has joined #ruby
[11:01:21] dangerousdave: has joined #ruby
[11:02:46] shevy: everyone needs some way to generate some extra income!
[11:05:15] flughafen_: hanmac: so next week?
[11:05:29] evidex: has joined #ruby
[11:06:52] k3rn31: has joined #ruby
[11:09:57] allcentu1: has joined #ruby
[11:11:03] Shashikant86: has joined #ruby
[11:11:31] lxsameer: has joined #ruby
[11:11:43] axxyhtrx: has joined #ruby
[11:16:57] certainty: has joined #ruby
[11:17:02] DEac-: has joined #ruby
[11:18:36] n_blownapart: has joined #ruby
[11:19:24] lightt: has joined #ruby
[11:20:04] digneety: has joined #ruby
[11:20:04] digneety: has joined #ruby
[11:20:25] yatish27: has joined #ruby
[11:21:35] yatish27: has joined #ruby
[11:25:19] evidex: has joined #ruby
[11:25:42] edwinvdgraaf: has joined #ruby
[11:26:02] lessless: has joined #ruby
[11:26:08] bkxd: has joined #ruby
[11:27:12] edwinvdgraaf: has joined #ruby
[11:28:45] DTZUBDUB: has joined #ruby
[11:32:10] tlaxkit: has joined #ruby
[11:32:52] inukshuk_: has joined #ruby
[11:33:54] yqt: has joined #ruby
[11:34:22] n_blownapart: has joined #ruby
[11:34:36] nankyokusei: has joined #ruby
[11:37:29] moeabdol: has joined #ruby
[11:38:54] senayar: has joined #ruby
[11:40:06] ldnunes: has joined #ruby
[11:42:11] joonty: has joined #ruby
[11:42:32] gnufied: has joined #ruby
[11:44:03] d0lph1n98: has joined #ruby
[11:46:53] Bish: oh okay, now i understand what u meant when saying compile_file cannot be used for obscurification
[11:47:11] centrx: has joined #ruby
[11:47:16] Bish: src <=> binary are bijective
[11:48:08] apeiros: Bish: you can buy zenspiders' obfuscator. costs only 3000$ iirc.
[11:48:36] fenre: has joined #ruby
[11:48:58] Bish: why on earth does the formatting still work
[11:49:16] edwinvdg_: has joined #ruby
[11:49:20] apeiros: http://blog.zenspider.com/blog/2006/07/zenobfuscate-now-available.html is first thing google gives me. good luck :D
[11:50:24] Bish: ruby to c? isn't that superfast?
[11:50:52] apeiros: can't find any site to buy it. might be that he doesn't maintain it anymore.
[11:51:03] apeiros: "code written in C" != "superfast"
[11:51:14] apeiros: even more true for "another language compiled to C"
[11:51:27] Bish: yah right
[11:51:41] Bish: weird stuff
[11:51:49] apeiros: but yes, zenspiders has (had?) a version of rubyinline which could convert a subset of ruby to C and was very fast
[11:51:58] apeiros: especially math stuff which fits into CPUs limitations
[11:51:58] norc: [13:47] <Bish> src <=> binary are bijective
[11:51:59] norc: Not quite.
[11:52:00] Bish: btw i was wrong.. pry just loads the sourcefile for mapping
[11:52:04] Bish: i just found out
[11:52:26] Bish: that's enough obscur for me :D
[11:52:44] certainty: has joined #ruby
[11:52:47] Bish: scrambling methodnames & such would be cool, maybe will write something like that
[11:54:42] Bish: >Explicit returns are required in all methods.
[11:54:50] Bish: hrhr, what a great compiler they just map code
[11:55:35] Bish: well back to wrok
[11:55:47] Hanmac: has joined #ruby
[11:55:57] nerium: has joined #ruby
[11:56:41] rodferso1: has joined #ruby
[11:56:56] arlek: has joined #ruby
[11:58:43] lightt: has joined #ruby
[11:59:19] senayar: has joined #ruby
[11:59:19] senayar: has joined #ruby
[12:00:11] edwinvdgraaf: has joined #ruby
[12:03:46] tvw: has joined #ruby
[12:05:19] TheBrayn: what was the name of the option parser lib that rails uses again?
[12:05:59] shevy: hmm not sure... slop?
[12:06:19] shevy: we must have like 50 different option parsers by now
[12:07:14] Yiota: has joined #ruby
[12:08:07] synthroid: has joined #ruby
[12:08:07] despai: has joined #ruby
[12:09:18] shadeslayer: has joined #ruby
[12:12:25] skade: has joined #ruby
[12:13:02] aswen: has joined #ruby
[12:13:19] DTZUBDUB: has joined #ruby
[12:15:34] kgrz: has joined #ruby
[12:17:26] TheBrayn: Slop seems nice, thanks
[12:17:39] lxsameer: has joined #ruby
[12:17:41] TheBrayn: I was using trollop in the past but I think it's no longer being actively developed
[12:19:31] eljimmy: has joined #ruby
[12:20:25] harai: has joined #ruby
[12:22:18] n_blownapart: has joined #ruby
[12:22:22] cdg: has joined #ruby
[12:24:27] jancel: has joined #ruby
[12:24:47] yfeldblum: has joined #ruby
[12:25:07] jhass: iirc rails uses thor
[12:25:15] jhass: but rather use slop too
[12:28:56] shevy: thor wauki slops on the path towards victory, parsing all availalbe options as he gets longer and longer, in order to slay all the remaining trollops!
[12:29:09] shevy: cool I even managed to typo :P
[12:30:07] flashpoint9: has joined #ruby
[12:34:37] fmcgeough: has joined #ruby
[12:35:08] lxsameer: has joined #ruby
[12:36:19] hutch34: has joined #ruby
[12:36:21] sepp2k: has joined #ruby
[12:42:09] ftj: has joined #ruby
[12:43:36] skade: has joined #ruby
[12:43:43] bkxd: has joined #ruby
[12:44:58] d0lph1n98: has joined #ruby
[12:48:05] digneety: has joined #ruby
[12:52:49] emilkarl: has joined #ruby
[12:53:09] Yiota: has joined #ruby
[12:53:49] haxrbyte: has joined #ruby
[12:54:36] ruby-lang044: has joined #ruby
[12:57:16] truenito: has joined #ruby
[12:57:19] ElFerna: has joined #ruby
[12:57:30] tknz: has joined #ruby
[12:57:45] ramortegui: has joined #ruby
[12:58:16] chouhoulis: has joined #ruby
[13:02:23] aryaching: has joined #ruby
[13:03:24] allcentu1: has joined #ruby
[13:04:00] pawnbox: has joined #ruby
[13:06:22] evidex: has joined #ruby
[13:07:43] skade: has joined #ruby
[13:09:12] ekinmur: has joined #ruby
[13:09:27] binaryplease: has joined #ruby
[13:11:07] malconis: has joined #ruby
[13:12:49] panchiz: has joined #ruby
[13:12:51] isxek: has joined #ruby
[13:13:13] hutch34_: has joined #ruby
[13:15:50] palms: has joined #ruby
[13:16:14] tinnvec: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[13:17:39] aegis3121: has joined #ruby
[13:18:12] shevy: whatever happened to zenspider?
[13:18:14] matp: has joined #ruby
[13:21:16] centrx: He took one look at you
[13:21:40] ramortegui: has joined #ruby
[13:22:04] flughafen_: shevy: he went BER on it
[13:22:18] karmatr0n: has joined #ruby
[13:22:36] chihhsin: has joined #ruby
[13:24:00] last_staff: has joined #ruby
[13:24:24] dcluna: has joined #ruby
[13:24:32] benlieb_: has joined #ruby
[13:24:33] jrafanie: has joined #ruby
[13:27:20] nerium: has joined #ruby
[13:29:23] chouhoulis: has joined #ruby
[13:29:30] syath: has joined #ruby
[13:31:10] Asher: has joined #ruby
[13:31:14] ekinmur: has joined #ruby
[13:31:23] mdw: has joined #ruby
[13:31:35] jhass: oh, when became <<~HEREDOC a thing?
[13:31:52] adaedra: it's really cool
[13:32:02] wilsonc91: has joined #ruby
[13:32:15] mdw: has joined #ruby
[13:33:02] SilverKey: has joined #ruby
[13:34:55] evidex: has joined #ruby
[13:35:18] Gasher: has joined #ruby
[13:35:25] nankyokusei: has joined #ruby
[13:36:21] jaguarmagenta: has joined #ruby
[13:37:41] ccooke: Finally catching up with the shell ;-)
[13:38:46] chouhoul_: has joined #ruby
[13:40:53] grassass: has joined #ruby
[13:43:33] pawnbox: has joined #ruby
[13:44:28] TomyWork: has joined #ruby
[13:44:56] TomyWork: is there any ruby gem i can use to make 1.8.7 not suck (as much)?
[13:45:00] theunraveler: has joined #ruby
[13:46:08] Macaveli: has joined #ruby
[13:46:29] hxegon: TomyWork: That's a bit vague, are there specific pain points?
[13:47:03] TomyWork: i havent started yet. i'm sure there are many
[13:47:24] TomyWork: i was hoping for a generic modernization thingy
[13:47:52] TomyWork: if there's no such thing, i'd look into updating it
[13:47:56] duckpuppy: has joined #ruby
[13:48:19] hxegon: TomyWork: You should really look into updating it. IIRC 1.8.7 isn't supported, so there are no security updates
[13:48:38] TomyWork: security updates arent relevant to what i'm going to do
[13:48:58] hxegon: plus there is a lot of stuff that's been changed between then and now, so gems might not work with that version either
[13:49:15] TomyWork: you're probably right
[13:49:53] TomyWork: btw, is there any ruby version management thingy that integrates with bundler?
[13:50:35] hxegon: I don't know if I would call it 'integrated', but in my experience rbenv and bundler work pretty well together
[13:51:03] hxegon: Although I imagine chruby or rvm would work just as well
[13:52:42] snowy: has joined #ruby
[13:52:57] certainty: has joined #ruby
[13:53:48] TomyWork: hxegon well ideally i'd put the ruby version into my Gemfile and instead of just bailing out when it encounters the wrong version, bundler would fetch the correct version instead
[13:54:25] TomyWork: so either that is a stupid idea or an obvious idea :)
[13:55:06] hxegon: bundler doesn't install ruby though. At least with rbenv, you can put "ruby '2.2.4'" in your Gemfile, and it will let you know if you're using the wrong version
[13:55:29] hxegon: at which point you can switch to or install the right version, run bundler again, and it will get the right versions of gems for you
[13:55:49] grill: has joined #ruby
[13:55:50] norc: has joined #ruby
[13:56:27] norc: Hah. I just found a use case to thaw a frozen object!
[13:56:47] TomyWork: object transplantation?
[13:56:54] edwinvdgraaf: has joined #ruby
[13:58:09] ChiefAlexander: has joined #ruby
[13:58:14] norc: TomyWork: No. Developer apparently figured that modifying this could be a bad thing, I say I know better.
[13:58:38] jhack: has joined #ruby
[13:58:39] TomyWork: i.e. you're breaking the contract :)
[13:58:55] norc: It was a shitty contract to begin with.
[13:59:04] TomyWork: that's the equivalent of a const_cast, right?
[13:59:10] dfinninger: has joined #ruby
[13:59:26] norc: TomyWork: no
[13:59:46] TomyWork: how is it not?
[13:59:50] dfinninger: has joined #ruby
[14:00:10] cdg: has joined #ruby
[14:00:28] grill: has joined #ruby
[14:00:31] jhack_: has joined #ruby
[14:00:49] norc: TomyWork: Ruby provides no real interface to do this.
[14:01:12] ncthom91: has joined #ruby
[14:01:20] dfinning_: has joined #ruby
[14:01:41] TomyWork: well you could make your own, right? :)
[14:01:45] morfeen: has joined #ruby
[14:01:54] TomyWork: either native code or detour the freeze
[14:01:58] norc: TomyWork: I just did. You can just use Fiddle to manipulate the flag in your RObject to make it play nice.
[14:02:21] TomyWork: oh, that's kinda what i did in minecraft :)
[14:02:24] dfinninger: has joined #ruby
[14:03:04] pontiki: what's the use case, norc ?
[14:03:10] morfeen: has left #ruby: ()
[14:03:21] morfeen: has joined #ruby
[14:04:00] lightt: has joined #ruby
[14:04:21] TomyWork: https://github.com/FoxelBox/zOLD_FoxBukkit/blob/f199f5769fe9af666dd550f6df0fafe4bb841c9a/src/main/java/com/foxelbox/foxbukkit/main/util/Utils.java#L137-L168
[14:04:25] lightt: has joined #ruby
[14:04:35] norc: pontiki: Come to think of it.. I could just dup the damn thing. :(
[14:04:53] norc: There goes my wishful thinking to use Fiddle in production code.
[14:05:03] morfeen: How can I quickly get upto speed on Ruby and Rails? I have a JS/Node background as of now.
[14:05:10] norc: ?rails morfeen
[14:05:10] ruby[bot]: morfeen: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[14:05:40] GarethAdams_: has joined #ruby
[14:05:54] frem_: has joined #ruby
[14:06:06] norc: TomyWork: Just out of random curiosity (note I really do not know much about Java), what is this Class<? super T>
[14:06:17] norc: It looks funky.
[14:06:39] norc: Is that generics related?
[14:07:07] Yiota: has joined #ruby
[14:07:23] allcentu1: has joined #ruby
[14:07:28] n_blownapart: has joined #ruby
[14:07:32] tsherman: has joined #ruby
[14:08:18] TomyWork: basically instance is of type T, the class denoted by instanceclass is of class T or any direct or indirect superclass or implemented interface of T
[14:08:23] tmtwd: has joined #ruby
[14:08:53] TomyWork: (or the called did some unsafe casts and that thing will likely explode in their face)
[14:09:46] diegoviola: has joined #ruby
[14:13:35] domgetter: has joined #ruby
[14:15:59] agent_white: has joined #ruby
[14:16:48] freerobby: has joined #ruby
[14:18:21] einarj_: has joined #ruby
[14:21:00] cwenner: has joined #ruby
[14:21:27] aryaching: has joined #ruby
[14:22:43] chouhoulis: has joined #ruby
[14:24:53] SilverKey: has joined #ruby
[14:25:31] k3rn31: has joined #ruby
[14:26:17] Vingador: has joined #ruby
[14:27:02] kfpratt: has joined #ruby
[14:30:08] edwinvdgraaf: has joined #ruby
[14:30:33] smathy: has joined #ruby
[14:30:55] giz|work: has joined #ruby
[14:33:41] d0lph1n98: has joined #ruby
[14:34:39] dopamean_: has joined #ruby
[14:35:12] dopamean_: has joined #ruby
[14:36:02] lessless: has joined #ruby
[14:36:25] shevy: it is agent white
[14:36:26] Xiti: has joined #ruby
[14:40:05] einarj: has joined #ruby
[14:41:36] JesseH: has joined #ruby
[14:41:42] harai: has joined #ruby
[14:42:09] joonty: has joined #ruby
[14:42:40] skade: has joined #ruby
[14:43:03] moufl: has joined #ruby
[14:45:06] aphprentice: has joined #ruby
[14:46:39] ketherah: has joined #ruby
[14:46:54] vikid: has joined #ruby
[14:47:35] n_blownapart: has joined #ruby
[14:48:10] skade: has joined #ruby
[14:48:30] hutch34_: has joined #ruby
[14:50:41] jaguarma_: has joined #ruby
[14:51:55] M-shine: has joined #ruby
[14:52:30] LMity: has joined #ruby
[14:52:31] Gasher: has joined #ruby
[14:54:06] swills: has joined #ruby
[14:54:28] aberen: has joined #ruby
[14:54:58] binaryplease: has joined #ruby
[14:56:48] binaryplease1: has joined #ruby
[14:57:10] Wolland: has joined #ruby
[14:57:51] KillerFox: has joined #ruby
[14:59:13] M-Kodo: has joined #ruby
[14:59:23] certainty: has joined #ruby
[15:00:47] zacts: has joined #ruby
[15:01:29] yatish27: has joined #ruby
[15:02:31] Yiota: has joined #ruby
[15:02:59] mustmodify: has joined #ruby
[15:04:14] yqt: has joined #ruby
[15:05:46] mustmodify: ok! I am totally confused. So maybe talking it through will help. I have a ruby microservice that received UDP messages, parses, journals and acknowledges them. The acknowledgments are wrong in production but right in development, both in the logfiles and in irb. The command is simply TrackAir.parse(message).sack ... I just deployed (again) and verified that the current revision in dev is the revision number in production.
[15:05:57] certainty: has joined #ruby
[15:06:06] polishdub: has joined #ruby
[15:06:31] mtkd: has joined #ruby
[15:06:40] ytti: has joined #ruby
[15:06:45] blandflakes: has joined #ruby
[15:07:13] mustmodify: So that sort of suggests a configuration issue.
[15:08:15] cschneid: has joined #ruby
[15:08:24] evidex: has joined #ruby
[15:08:24] swills_: has joined #ruby
[15:09:50] kareeoleez: has joined #ruby
[15:10:59] xlegoman: has joined #ruby
[15:11:41] mustmodify: Ah ha! Follow the warnings.
[15:12:42] prestorium: has joined #ruby
[15:12:51] Ropeney: has joined #ruby
[15:13:36] slackbotgz: has joined #ruby
[15:15:03] NewbieRubyInPhil: has joined #ruby
[15:16:38] alnewkirk: has joined #ruby
[15:18:57] freerobby: has joined #ruby
[15:22:16] Yiota: has joined #ruby
[15:22:26] tildes_: has joined #ruby
[15:26:39] craigp: has joined #ruby
[15:27:12] jhass: sorry but not sure anybody can help you like this
[15:27:26] jhass: you only showed some very very high level code and didn't even elaborate on "wrong"
[15:27:33] mustmodify: I just thought talking it out might help. I often solve my own problems.
[15:27:44] mustmodify: which is probably inappropriate.
[15:27:52] jhass: ah, happy rubber ducking then, you haven't seen me
[15:28:49] al2o3-cr: what benchmarking should i use to test factorials between ruby and rust?
[15:29:44] boozler: has joined #ruby
[15:29:57] jhass: let's use the jhass benchmark, results coming in...:
[15:30:01] jhass: rust is faster
[15:30:37] HayderCtee: has joined #ruby
[15:32:45] edwinvdgraaf: has joined #ruby
[15:32:55] al2o3-cr: but seriously, should i use bmbm or measure or something else?
[15:33:12] jhass: I usually find ips benchmarks easiest to read
[15:33:34] al2o3-cr: jhass: that's a gem right?
[15:33:46] jhass: ruby has the benchmark-ips gem, yeah
[15:34:04] al2o3-cr: ok, thanks jhass
[15:34:06] markfletcher: has joined #ruby
[15:34:30] aries_liuxueyang: has joined #ruby
[15:35:17] markfletcher: has joined #ruby
[15:36:17] nankyokusei: has joined #ruby
[15:37:46] klekot: has joined #ruby
[15:38:03] skolman: has joined #ruby
[15:38:42] n_blownapart: has joined #ruby
[15:39:11] araujo: has joined #ruby
[15:39:26] cschneid: What is the semantic difference between #count, #size, and #length? I have a new object that is sorta collection-y and need a method like that. Is there any good reason to pick one over another?
[15:40:53] edwinvdgraaf: has joined #ruby
[15:40:54] boozler: SQL Question: I have a table that has columns like so (id, customer_id, value, void). void is a boolean. I would like to query and present 2 columns like so (sum_values_not_void, sum_values_void), grouped by customer_id. What's the best way to do this? Seperate queries, then query those queries together? Can I do it in one go?
[15:42:22] jhass: cschneid: #size and #length are aliases, they usually return precomputed/stored values, #count iterates over a collection and tracks a counter
[15:43:13] M-mistake: has joined #ruby
[15:43:24] jhass: boozler: yes, you'll need two subselects
[15:44:10] jrafanie: has joined #ruby
[15:44:26] boozler: jhass: can subselects be executed in a single query?
[15:44:43] cschneid: jhass: cool, so I have a Set that tracks how many items were put in (even if they were then combined) - so #size and #length are probably right
[15:44:48] apeiros: boozler: yes
[15:44:57] jhass: boozler: or googleing a minute one workaround is to SUM(CASE WHEN void THEN value ELSE 0 END)
[15:45:15] apeiros: boozler: though depends on your db, some are incapable, and some have horrible perf
[15:45:26] boozler: apeiros: msaccess
[15:45:41] boozler: playing with it through win32ole
[15:45:44] apeiros: don't know that one.
[15:46:02] boozler: apeiros: microsoft access
[15:46:02] apeiros: mssql can do subselects, but is one of those with horrible performance in certain cases
[15:46:13] apeiros: yes, I know the name. but I don't know the engine ;-)
[15:46:36] apeiros: re mssql - not sure whether msaccess uses the same engine as mssql…
[15:47:11] boozler: this particular db is an ACE db
[15:47:18] apeiros: you mean they're crazy enough to write a new engine for basically the same purpose?
[15:47:37] apeiros: I mean, I'd not be entirely surprised. but it'd still be stupid :)
[15:47:53] jhass: I'd be surprised if they wouldn't do it!
[15:47:55] boozler: ohh sorry I read "mysql" not mssql
[15:48:00] boozler: dunno if they are the same or different
[15:49:37] jhass: boozler: anyway, http://stackoverflow.com/questions/7247196/conditional-summation-in-postgresql basically your question, try if ms* eats it
[15:49:48] edwinvdg_: has joined #ruby
[15:50:25] SilverKey: has joined #ruby
[15:50:37] johnmilton: has joined #ruby
[15:52:09] dcluna: has joined #ruby
[15:52:10] HayderCtee: has left #ruby: ()
[15:53:12] boozler: jhass: thank you. It does not like the taste of CASE WHEN. Looks like I need to try IIF
[15:53:32] ergobfmv_: has joined #ruby
[15:53:40] nando293921: has joined #ruby
[15:55:08] myntcake: has joined #ruby
[15:55:08] whathappens: has joined #ruby
[15:55:37] ergobfmv: has joined #ruby
[15:55:45] swills: has joined #ruby
[15:57:26] boozler: jhass, apeiros: that'll do it. Thanks for the help
[16:00:28] fenre: has joined #ruby
[16:00:36] Cohedrin: has joined #ruby
[16:00:38] rippa: has joined #ruby
[16:00:39] markfletcher: has joined #ruby
[16:00:52] d10n-work: has joined #ruby
[16:00:54] jancel: has joined #ruby
[16:02:42] alfiemax: has joined #ruby
[16:03:36] markfletcher: has joined #ruby
[16:04:16] codecop: has joined #ruby
[16:06:15] einarj: has joined #ruby
[16:06:37] norc: has joined #ruby
[16:07:25] danostrowski: has joined #ruby
[16:08:33] johnmilton: has joined #ruby
[16:09:34] soLucien: has joined #ruby
[16:10:15] valkyrka: has joined #ruby
[16:10:24] soLucien: hello guys ! anyone here using VSCode for development ?
[16:11:21] RobertBirnie: has joined #ruby
[16:11:31] centrx: has joined #ruby
[16:12:24] synthroid: has joined #ruby
[16:14:08] amclain: has joined #ruby
[16:14:57] mistermocha: has joined #ruby
[16:15:17] Yiota: has joined #ruby
[16:15:42] n_blownapart: has joined #ruby
[16:15:55] griffindy: has joined #ruby
[16:16:01] Yiota: has joined #ruby
[16:16:45] Yiota: has joined #ruby
[16:18:25] synthroid: has joined #ruby
[16:18:57] Coldblackice: has joined #ruby
[16:21:28] David_H__: has joined #ruby
[16:21:33] Guest70615: has joined #ruby
[16:21:33] Guest70615: has joined #ruby
[16:21:40] markfletcher: has joined #ruby
[16:24:19] rc0r: has left #ruby: ("...")
[16:24:24] mistermocha: has joined #ruby
[16:25:44] mistermocha: has joined #ruby
[16:26:30] mistermocha: has joined #ruby
[16:26:32] TomyLobo: has joined #ruby
[16:27:40] David_H_Smith: has joined #ruby
[16:28:48] nirix: has joined #ruby
[16:29:03] LaT0rtue: has joined #ruby
[16:29:22] [Butch]: has joined #ruby
[16:29:51] jancel: has joined #ruby
[16:30:08] last_staff: has joined #ruby
[16:30:12] chouhoul_: has joined #ruby
[16:30:38] ekinmur: has joined #ruby
[16:30:54] nando293921: has joined #ruby
[16:31:33] digneety: has joined #ruby
[16:32:14] whathapp_: has joined #ruby
[16:33:09] whathapp_: has joined #ruby
[16:33:37] mleung: has joined #ruby
[16:34:07] whathapp_: has joined #ruby
[16:35:19] whathapp_: good morning!
[16:35:39] freerobby: has joined #ruby
[16:35:44] nando293921: has joined #ruby
[16:35:46] havenwood: whathapp_: g'morning!
[16:37:10] soLucien: hi guys ! I want to develop a small Ruby application
[16:37:23] soLucien: and i want to do it in an isolated way
[16:37:31] soLucien: don't want it to affect my environment
[16:37:46] soLucien: on a windows machine
[16:37:50] soLucien: what should i do ?
[16:38:16] soLucien: does anyone have an example of a Ruby development environment ?
[16:38:27] soLucien: or even better yet, Vagrant dev env
[16:38:36] soLucien: that i could see at work ?
[16:39:23] diegoaguilar: has joined #ruby
[16:39:30] soLucien: i read something about rvm
[16:40:52] pilne: has joined #ruby
[16:41:29] skolman_: has joined #ruby
[16:42:40] n_blownapart: has joined #ruby
[16:44:44] sumobob: has joined #ruby
[16:45:38] Yiota: has joined #ruby
[16:45:43] weemsledeux: has joined #ruby
[16:46:14] danostrowski: has joined #ruby
[16:47:35] nickjj: soLucien, you could look into using docker
[16:48:01] t1mxg0d: has joined #ruby
[16:48:16] nickjj: you wouldn't even need ruby installed your windows box and once you have it installed (~5min), it takes about 2 seconds to spin up/down your dev stack from nothing
[16:49:12] whathappens: has joined #ruby
[16:49:26] kies: has joined #ruby
[16:49:36] ramfjord: has joined #ruby
[16:49:45] sneakers: has joined #ruby
[16:51:54] soLucien: I see. i'll look into that option then
[16:51:57] soLucien: never used Docker
[16:52:14] soLucien: so there might be a learnign curve to it
[16:52:40] nickjj: no more than learning about using vagrant
[16:52:52] soLucien: i am quite good with Vagrant, yes
[16:53:29] nickjj: is your ruby app a rails app?
[16:53:38] soLucien: Vagrant and Puppet are the 2 things
[16:53:42] soLucien: no, its a Vagrant plugin
[16:53:53] soLucien: that will be able to manage windows HyperV networks
[16:54:14] soLucien: so that you can create a custom topology in Vagrant multi-machine environments
[16:54:17] gamov: has joined #ruby
[16:55:18] soLucien: currently i've created the PowerShell driver that interfaces with Windows, and set up a nice API to it
[16:55:43] nickjj: oh, so in your case do you need to install vagrant in an isolated environment to run it along with your custom plugin?
[16:55:50] soLucien: i want to write the Vagrant plugin that "ties it up" with a Vagrantfile configuration
[16:55:55] soLucien: yes exactly
[16:57:02] soLucien: or somehow be able to debug Vagrantfile execution
[16:57:25] soLucien: atm i'm using a lot of print-line to see what is happening
[16:57:41] soLucien: but if i would be able to set a breakpoint, my life would be so much better
[16:57:43] nickjj: i don't know what the work flow is like for developing a vagrant plugin
[16:58:08] soLucien: seems like not too many people do .. i've asked around a lot
[16:58:29] soLucien: so i am poking around
[16:58:41] nickjj: google shows http://linuxsimba.com/debugging-vagrant-plugins
[16:59:13] soLucien: yes, it talks about rvm
[16:59:30] mistermocha: has joined #ruby
[16:59:56] duckpupp1: has joined #ruby
[16:59:57] madgen: has joined #ruby
[17:00:48] qasaur: has joined #ruby
[17:01:05] nickjj: it also seems extremely outdated
[17:01:25] nickjj: you wouldn't gem install vagrant
[17:01:31] aegis3121: has joined #ruby
[17:02:10] nickjj: if i were you, i'd just start with the least mentally complicated solution and improve it from there
[17:02:45] nickjj: which would be to create a VM using whatever tools you're comfy with, install vbox/vagrant in there, mount in your plugin code and run it against vagrant
[17:03:32] jhack: has joined #ruby
[17:03:33] duckpuppy: has joined #ruby
[17:03:47] nickjj: that would give you a repeatable testbed for testing your plugin against a set version of vagrant, without worrying about it conflicting with your own regular version of vagrant on your windows box
[17:03:55] soLucien: nickjj i don't think hyperV can run in a VM
[17:04:03] Xiti: has joined #ruby
[17:04:31] vikaton: has joined #ruby
[17:04:33] nickjj: you could create your vm with the free version of vmware
[17:04:37] djbkd: has joined #ruby
[17:04:42] nickjj: vmware lets you run virtualbox instead of it
[17:04:54] soLucien: but i am building a plugin that only works with hyperv
[17:05:12] soLucien: vmware/virtualbox are competing solutions
[17:05:13] nickjj: yeah but inside of that vmware based VM you would install whatever you need, such as hyperv
[17:05:16] giz|work: has joined #ruby
[17:05:40] nickjj: i know, i'm just saying vmware lets you run whatever the heck you want inside of it, where as virtualbox is really picky
[17:05:45] norc: nickjj, see, that is how Inception was created. People playing around with virtual machines for far too long, and rendering whatever the graphics card then produced,
[17:05:53] soLucien: hyper-v only runs on a bare-metal machine as far as i remember
[17:06:01] mustmodify: has left #ruby: ()
[17:06:26] nickjj: norc, yeah it's a shame too
[17:06:38] norc: soLucien, and no, you actually can run hyper-v in some virtual machines.
[17:07:25] SCHAAP137: has joined #ruby
[17:07:29] qasaur: has joined #ruby
[17:07:33] kies: has joined #ruby
[17:07:49] nickjj: i am forced to use a graphical VM for 99% of my dev, in which i run docker apps and some old legacy vagrant based apps
[17:08:08] nickjj: only way to use all the software i need without dual booting :D
[17:08:32] djbkd: has joined #ruby
[17:08:32] soLucien: hmm is there any debugger for Ruby that can hook into a running application ?
[17:09:03] norc: nickjj, so a brilliant consultant had this idea of how we should replace our macbooks for windows notebooks. When I told him, that Ruby and Rails development necessitates a Linux or OSX environment, he actually dared to recommend that I could then set up a bare MS notebook running an Ubuntu VM all the time...
[17:09:05] certainty: has joined #ruby
[17:09:07] norc: soLucien, nope
[17:09:19] norc: Sadly not.
[17:09:34] soLucien: so even though ruby is an interpreted language
[17:09:41] soLucien: i cannot somehow stop the interpreter
[17:09:46] soLucien: at an arbitrary point ?
[17:09:55] norc: soLucien, not from outside afaik.
[17:10:02] nickjj: norc, that problem is what docker is trying to solve atm
[17:10:04] darkxploit: has joined #ruby
[17:10:07] norc: soLucien, from inside the code you can use binding.pry / byebug
[17:10:22] soLucien: that is cool. I believe i can install that
[17:10:28] soLucien: into Vagrant as a plugin
[17:11:16] soLucien: vagrant can install gems .. i've installed puppet as a gem and it works cool
[17:11:29] norc: nickjj, docker is not a solution to a problem where none exists.
[17:11:39] nickjj: but there is still other non-dev issues that prevent these solutions for working in the real world
[17:11:59] soLucien: basically Vagrant is a ruby interpreter + minGW + gem dependencies
[17:12:08] norc: nickjj, to first take away an operating system to say "it does not fit into our infrastructure" and then suddenly admit that you actually need your old operating system back - neither virtualization nor docker is the solution.
[17:12:11] norc: Not replacing it is.
[17:12:12] Es0teric: has joined #ruby
[17:12:26] soLucien: and it also has a vagrant plugin install command, which will install any gem from bundler (i believe that is the name)
[17:12:31] kgrz: has joined #ruby
[17:12:35] wilsonc91: has joined #ruby
[17:12:43] kareeoleez: has joined #ruby
[17:13:21] urbanmonk: has joined #ruby
[17:13:35] nickjj: norc, i wouldn't feel comfortable developing a large app on osx without some type of virtualization
[17:13:38] duckpuppy: has joined #ruby
[17:13:49] soLucien: i agree with nickjj
[17:14:07] nickjj: the idea of having to install things like postgres, redis, elasticsearch and a million other services on your bare OS is madness to me, especially since none of them are the same versions you'd be using in production
[17:14:12] soLucien: unless it's an iAPP
[17:14:29] nickjj: and then if you want someone else to use your project, they are expected to follow a 50 page doc setting it all up, or writing brittle scripts that only work against 1 OS
[17:14:33] norc: nickjj, well luckily since we use oracle that bit is no longer an issue.
[17:14:46] norc: We dont feel like paying 5 figures just for having a local development database.
[17:15:21] nickjj: at least with a docker based solution, i can just run 1 command and it's all running, and it doesn't matter if i'm running windows, osx or linux
[17:15:39] nickjj: and then i can move this solution i'm using in development straight to a staging server and then to production, without changing anything
[17:16:04] nickjj: and it wouldn't even matter if i'm using debian, centos or other supported major distros in production
[17:16:29] soLucien: you need to build the docker container
[17:16:31] hahuang61: has joined #ruby
[17:16:32] soLucien: for every environment
[17:16:38] truenito: has joined #ruby
[17:16:45] Dimik: has joined #ruby
[17:16:45] cajone: has joined #ruby
[17:16:47] nickjj: no you don't
[17:16:48] n_blownapart: has joined #ruby
[17:17:13] Yiota: has joined #ruby
[17:17:19] nickjj: if i build an image on my xubuntu dev box and push it somewhere, you could pull it down and run it as is on your windows box
[17:17:34] Xiti: has joined #ruby
[17:17:34] soLucien: it does not make sense
[17:17:35] nickjj: because inside the image, it's running whatever OS i defined as a base
[17:17:59] nickjj: lately the most popular base OS is alpine because it only has a 5mb footprint
[17:18:19] jphase: has joined #ruby
[17:19:52] nankyokusei: has joined #ruby
[17:21:33] choke: has joined #ruby
[17:21:55] toretore: docker runs in a vm on windows soLucien, it's not actually "running on windows"
[17:22:56] AndroidLoverInSF: has joined #ruby
[17:23:15] dcluna: has joined #ruby
[17:25:22] rcvalle: has joined #ruby
[17:27:12] mikecmpbll: has joined #ruby
[17:27:33] craigp: has joined #ruby
[17:27:38] Yiota: has joined #ruby
[17:28:01] shinnya: has joined #ruby
[17:29:43] mtkd: has joined #ruby
[17:31:15] kareeoleez: has joined #ruby
[17:31:29] lxsameer: has joined #ruby
[17:31:32] soLucien: norc so if i want breakpoints to be triggered, i can install one of these 2 gems
[17:32:01] norc: soLucien, or even a combination of them pry-byebug
[17:32:17] soLucien: like this guy suggests http://linuxsimba.com/debugging-vagrant-plugins
[17:32:36] norc: soLucien, very much so.
[17:32:37] soLucien: what do i connect to it
[17:32:49] soLucien: so that i see the callstack
[17:32:56] soLucien: and the variables at that point
[17:33:01] kareeole_: has joined #ruby
[17:33:07] SilverKey: has joined #ruby
[17:33:08] norc: soLucien, when binding.pry is executed execution is automatically interrupted and you get an interactive shell.
[17:33:20] norc: (or byebug=
[17:33:34] soLucien: ok .. so there is no UI version of it
[17:33:39] norc: soLucien, correct.
[17:33:56] pepee: has joined #ruby
[17:33:56] soLucien: damn .. ruby seems very oldschool as a programming language
[17:34:30] soLucien: why do you like it so much? Seems like a pain to develop
[17:34:31] Yiota_: has joined #ruby
[17:34:36] norc: soLucien, just take a ruby file, but some basic code inside it and place a "binding.pry" or "byebug" (depending on what you want to try out) to get a feel for it.
[17:34:53] eserror_: has joined #ruby
[17:34:58] aegis3121: has joined #ruby
[17:35:15] norc: soLucien, honestly it comes with the territory. Most languages that are prevalent in the unixoid world have a lot of text interfaces.
[17:35:35] soLucien: python has a ui when debugging
[17:35:45] soLucien: any .net application can connect a debugger to it
[17:35:53] soLucien: which shows all local vars
[17:36:13] sepp2k: has joined #ruby
[17:36:28] norc: soLucien, there is RubyMine if you insist on a graphical debugging tool, but I cannot tell you anything about it.
[17:36:57] SilverKey: has joined #ruby
[17:37:09] norc: soLucien, and seeing how the entire linux world has been surviving just fine on gdb for the most part, it seems like debugging in a shell can't be that bad.
[17:37:16] agit0: has joined #ruby
[17:37:25] skade: has joined #ruby
[17:37:25] soLucien: norc well my issue with Vagrant
[17:37:30] soLucien: is that it has no documentation
[17:37:41] soLucien: and most of the stuff it uses
[17:37:45] soLucien: are key-value pairs
[17:37:53] soLucien: most configurations
[17:38:02] chipotle: has joined #ruby
[17:38:06] soLucien: i don't know the keys, so i can't get the values
[17:38:37] norc: Honestly if your Ruby application comes with no documentation, then that is not a good example to point out why Ruby debugging facilities might not be superb.
[17:38:42] soLucien: which is why i want a visual debug tool. It shows the keys (variable names) so i can poke around
[17:38:46] soLucien: and see what to use
[17:39:04] giz|work: has joined #ruby
[17:39:12] aeterne: has joined #ruby
[17:39:45] soLucien: i will use it and i thank you for the advice
[17:39:46] norc: soLucien, what do you mean by "keys" ?
[17:39:56] soLucien: variable names
[17:39:59] soLucien: for example
[17:40:04] dtoast: has joined #ruby
[17:40:59] soLucien: env[:machine].provider_config.vmname
[17:41:22] soLucien: this is how stuff is stored
[17:41:41] norc: So what is the variable here?
[17:41:47] soLucien: and i have no idea what env[:machine].* is
[17:42:04] norc: soLucien, the problem you will have is also how ruby works.
[17:42:05] soLucien: it's like a multi-layered hash map
[17:42:30] soLucien: env[:machine].*.*.*.*
[17:42:48] soLucien: that's a variable
[17:42:51] norc: Well, luckily pry will let you interactively inspect it.
[17:42:54] norc: no it is not.
[17:43:26] norc: The only part in that expression that _could_ be a variable is env.
[17:43:33] jrafanie: has joined #ruby
[17:43:36] soLucien: yes, env is a variable
[17:43:45] norc: Everything else is just objects.
[17:43:45] duoi: has joined #ruby
[17:43:47] soLucien: that contains multiple [] keys
[17:44:01] antgel: has joined #ruby
[17:44:02] soLucien: then each of these key contains more objects that have a name
[17:44:05] soLucien: which i don't know
[17:44:10] norc: *that respond to methods.
[17:44:16] Silthias: has joined #ruby
[17:44:22] soLucien: yes methods
[17:44:28] norc: soLucien, not also that.
[17:44:30] norc: exactly that.
[17:44:36] soLucien: ok, the method i copie
[17:44:41] soLucien: copied is a get method
[17:44:47] soLucien: which returns the vmname
[17:44:52] David_H_Smith: has joined #ruby
[17:45:02] norc: soLucien, just pry into it.
[17:45:10] soLucien: yes, it will be more useful
[17:45:16] soLucien: thanks a lot for this advice
[17:45:25] soLucien: got me going in the wrong direction
[17:45:32] soLucien: right ******
[17:46:03] soLucien: what i was doing was printing out them until i found something that made sense to use
[17:46:11] norc: soLucien, but if you do this you will probably have to learn about how methods work in Ruby.
[17:46:33] soLucien: i understood how they work ..
[17:46:34] norc: soLucien, and if the underlying implementation relies on method_missing you have 100% absolutely lost
[17:46:46] norc: (means you have to look at the source code then)
[17:46:53] soLucien: i believe it does
[17:46:55] soLucien: wait let me see
[17:47:00] harai: has joined #ruby
[17:47:03] soLucien: it returns dummy_command
[17:47:10] soLucien: i looked at the source code few months ago
[17:47:12] soLucien: and saw that
[17:47:12] mikecmpbll: has joined #ruby
[17:47:15] soLucien: let me tell you
[17:50:08] soLucien: norc https://github.com/mitchellh/vagrant/blob/1f88a9737369eda3dede0d3aeb30928adf82a9f7/lib/vagrant/config/v2/dummy_config.rb
[17:50:35] soLucien: does this mean
[17:50:37] soLucien: i am screwed ?
[17:50:59] n_blownapart: has joined #ruby
[17:51:02] kareeoleez: has joined #ruby
[17:51:08] norc: soLucien, you cant debug this from the pry angle as easily I suppose.
[17:51:24] minimalism: has joined #ruby
[17:51:24] levifig: has joined #ruby
[17:52:01] norc: soLucien, https://www.vagrantup.com/docs seems to be quite extensive thoguh.
[17:52:07] soLucien: i will try out pry, it should be a LOT better than printing out stuff
[17:52:10] soLucien: it is extensive
[17:52:15] soLucien: when it comes to using it
[17:52:23] soLucien: extending it is not documented at all
[17:52:51] soLucien: hell i even bought the guy's book
[17:52:58] soLucien: to see how to develop plugins
[17:53:21] norc: soLucien, here is a dumb idea. Have you considered seeking out help from the people who are knowledged in vagrant?
[17:53:26] norc: #vagrant ?
[17:53:27] soLucien: in the last chapter it explains a very easy example
[17:53:30] soLucien: yes it is dead
[17:53:32] soLucien: i am always there
[17:53:38] norc: soLucien, 439 people is dead?
[17:53:46] soLucien: no one knows anything
[17:53:50] chouhoulis: has joined #ruby
[17:54:11] soLucien: and it's basically about support
[17:54:32] norc: soLucien, https://www.vagrantup.com/support.html
[17:55:04] soLucien: yes, trust me
[17:55:11] soLucien: i've been at it for few months
[17:55:21] soLucien: this is the best help i've got so far
[17:55:27] aberen: has joined #ruby
[17:55:43] platzhirsch: has joined #ruby
[17:55:46] soLucien: the rest was reading source code and trial-and-error
[17:56:01] soLucien: i've read the guy's book
[17:56:26] norc: soLucien, is this a work thing?
[17:56:27] nando293921: has joined #ruby
[17:56:49] soLucien: not helpful. the plugin he makes is extremely easy, then goes on saying "there are a lot of plugins around, look at them and see how stuff is done"
[17:56:57] soLucien: norc not necessarily
[17:57:01] soLucien: i do need it for work
[17:57:13] soLucien: but once it is done, it's going to be OSS
[17:57:32] norc: Evidently it cannot be important.
[17:57:45] norc: Otherwise the company would have dished out some money for professional support if you have been wasting months on this.
[17:57:48] ekinmur: has joined #ruby
[17:58:05] soLucien: <-- student dev
[17:58:10] soLucien: it was also my bachelor project
[17:58:31] chipotle: has joined #ruby
[17:58:36] norc: soLucien, look. Do you have a specific question or problem?
[17:58:50] soLucien: no , i will start using pry and ask then
[17:58:57] soLucien: not here to annoy you
[17:59:02] soLucien: thanks a lot !
[17:59:22] soLucien: this was extremely helpful
[18:00:00] wilsonc91: has joined #ruby
[18:00:39] rkoller: has joined #ruby
[18:00:47] kareeoleez: has joined #ruby
[18:01:09] inukshuk_: has joined #ruby
[18:01:16] truenito: has joined #ruby
[18:04:05] flashpoint9: has joined #ruby
[18:05:28] SilverKey: has joined #ruby
[18:05:45] aberen: has joined #ruby
[18:06:45] replay: has joined #ruby
[18:07:09] Polysics: has joined #ruby
[18:08:29] danostrowski: has joined #ruby
[18:08:31] kareeoleez: has joined #ruby
[18:10:01] certainty: has joined #ruby
[18:12:01] blaxter: has joined #ruby
[18:12:07] CrazyEddy: has joined #ruby
[18:13:38] kgrz: has joined #ruby
[18:15:13] ekinmur: has joined #ruby
[18:15:54] edwinvdgraaf: has joined #ruby
[18:16:40] nankyokusei: has joined #ruby
[18:17:08] edwinvdgraaf: has joined #ruby
[18:18:13] urbanmonk: has joined #ruby
[18:19:56] shevy: now that was a monster conversation
[18:20:49] hutch34_: has joined #ruby
[18:20:54] n_blownapart: has joined #ruby
[18:21:02] soLucien: the one involving me ranting in a very unproductive way ?
[18:21:18] allcentu1: has joined #ruby
[18:21:51] patrick_star: has joined #ruby
[18:23:48] johnny56: has joined #ruby
[18:24:24] blockchan: has joined #ruby
[18:25:02] jancel: has joined #ruby
[18:25:54] arlek: has joined #ruby
[18:26:14] mdw: has joined #ruby
[18:27:32] dorje__: has joined #ruby
[18:28:16] cajone: has joined #ruby
[18:28:53] Silthias1: has joined #ruby
[18:29:06] grillo: has joined #ruby
[18:30:04] jenrzzz: has joined #ruby
[18:30:04] jenrzzz: has joined #ruby
[18:30:06] jackjackdripper: has joined #ruby
[18:32:20] dorje_: has joined #ruby
[18:34:52] multi_io: has joined #ruby
[18:35:21] AndroidLoverInSF: has joined #ruby
[18:39:09] shevy: soLucien you and norc... I think the output that you two produced, that normally happens within a *full* day on #ruby :)
[18:39:14] aberen: has joined #ruby
[18:41:36] kareeole_: has joined #ruby
[18:42:31] lxsameer: has joined #ruby
[18:42:47] freerobby: has joined #ruby
[18:42:54] n_blownapart: has joined #ruby
[18:45:02] dionysus69: has joined #ruby
[18:45:25] jglover: has joined #ruby
[18:45:50] jglover: hey guys, I'm wondering what the fastest (complexity wise) way is to do a deep copy of a hash where a key is a string and a value is an array
[18:45:51] jglover: https://repl.it/CZTl
[18:46:02] jglover: if you run, youll see that the original is modified
[18:46:24] jglover: if you comment out 11and uncomment 10 youll see the intended effect
[18:46:59] ChiefAlexander: has joined #ruby
[18:47:44] madgen: has joined #ruby
[18:47:59] sandstrom: has joined #ruby
[18:48:28] freerobby: has joined #ruby
[18:48:29] sandstrom: Is there any downside to using > gem.files = `git ls-files`.split("\n") < in a gemspec file, instead of listing each file by name?
[18:48:39] whatelse: has joined #ruby
[18:48:58] eam: jglover: there are some gems to handle it
[18:48:59] cdg: has joined #ruby
[18:48:59] shevy: sandstrom dunno. if you always have git installed on the target machine then probably not. I am not sure why the above is needed though
[18:49:06] Papierkorb: >> hsh = { b: [1,2,3], c: [4,5,6] }; copy = hsh.dup.update(hsh){|_, v| v.dup} # jglover
[18:49:07] ruby[bot]: Papierkorb: # => {:b=>[1, 2, 3], :c=>[4, 5, 6]} (https://eval.in/584761)
[18:49:16] shevy: since Dir['*'] or something similar should also work
[18:49:21] jglover: eam: rats. nothing i can do in a coding interview
[18:49:39] eam: jglover: you can write your own, of course
[18:49:52] Papierkorb: jglover: fastest? I don't know, ask the benchmark library. But it's understandable and short I guess.
[18:49:54] Elvin: has joined #ruby
[18:49:54] eam: similar to what Papierkorb just suggested, but I'd recurse through the entire object tree
[18:50:15] jglover: Papierkorb: ah, this is a good solution
[18:50:36] eam: h.dup copies the hash itself. h { v.dup } copies the immediate value, but you'd want to recurse to catch any deeper nesting
[18:50:40] apeiros: complexity wise all should be the same
[18:50:53] whatelse: hello, I'm trying to parse a very large log file that has very little structure. I need something that when I find a keyword on a line, I can traverse up the log or down the log looking for the next line containing a different keyword. I think the files will be too big to load every line into memory. I attempted to use each_with_index but haven't succeeded yet. Can someone suggest a better way to do this?
[18:50:54] apeiros: since deep copy is necessarily a tree traversal one way or the other
[18:50:58] apeiros: can't short-cut that
[18:51:03] eam: such as if you have h[v] = [[[]]]
[18:51:28] DTZUBDUB: has joined #ruby
[18:51:49] apeiros: whatelse: take a look at StringScanner
[18:52:02] eam: jglover: if it's for an interview probably just implementing a deep-copy for Hash and Array ought to suffice
[18:52:35] apeiros: gem install <today's facets>; obj.deep_dup :D
[18:53:00] apeiros: oh, eam already mentioned gems
[18:53:05] apeiros: ACTION late to the party, as usual
[18:53:32] jaguarmagenta: has joined #ruby
[18:53:35] jglover: do you guys know the complexity of Marshal.load(Marshal.dump(obj)) ?
[18:53:42] kirun: has joined #ruby
[18:53:44] jglover: can I make some smart argument about that
[18:53:50] Papierkorb: jglover: If that's the question, I'd probably ask if only the inner array should be copied. If not, then I'd give something like I wrote.
[18:54:09] kgrz: has joined #ruby
[18:54:12] stu314: has joined #ruby
[18:54:18] apeiros: jglover: again, tree traversal
[18:54:23] eam: jglover: Marshal should have the same big-O complexity, just slower constant time
[18:54:34] whatelse: apeiros: okay, thanks.
[18:54:40] jglover: the question is actually a really easy graph traversal question. I happen to need to update the hash every time I visit a node.
[18:54:53] jglover: this is just an issue I was having, which I solved via the link I posted
[18:55:36] whatelse: apeiros: if I do a file.open(), f.each_with_index, when I hit a line of interest, should I be able to say, and also give me the line 2 after this line, or 1 line before?
[18:56:08] apeiros: whatelse: no. but you can use seek, which is byte based. and then manually adjust for lines
[18:56:22] whatelse: apeiros: thanks, ill check it out
[18:56:41] apeiros: i.e. don't use each_with_index, just use .gets or similar, and either cache the offset (File#pos or similar iirc)
[18:56:41] aries_liuxueyang: has joined #ruby
[18:56:59] apeiros: or manually seek until you went back a full line
[18:57:05] apeiros: another option: each_cons
[18:57:23] apeiros: that'll need some manual adjustment for either the first or last lines
[18:57:42] apeiros: File.foreach(path).each_cons(number_of_lines) { |l1, l2, …|
[18:58:10] k3rn31: has joined #ruby
[18:58:23] ivanskie: has joined #ruby
[18:59:15] wilsonc91: has joined #ruby
[18:59:35] n_blownapart: has joined #ruby
[18:59:58] zeroDi: has joined #ruby
[19:00:42] Es0teric: has joined #ruby
[19:01:50] tjohnson: has joined #ruby
[19:02:42] sandstrom: shevy thanks!
[19:02:51] whathappens: has joined #ruby
[19:03:07] ljames: has joined #ruby
[19:03:29] jancel: has joined #ruby
[19:04:08] tAn: has joined #ruby
[19:04:31] pglombardo: has joined #ruby
[19:04:55] tao_: has joined #ruby
[19:05:07] yabbes: has joined #ruby
[19:05:19] bitemyap1: has joined #ruby
[19:05:22] \13k: has joined #ruby
[19:05:23] ivanskie: i think i need a refresher on regex in ruby.. uhm
[19:05:30] SirFunk: has joined #ruby
[19:05:33] brixen: has joined #ruby
[19:05:34] shevy: ivanskie rubular.com !
[19:05:40] dcope: has joined #ruby
[19:05:40] ivanskie: yah not helping
[19:05:42] shevy: I can never remember regexes
[19:05:48] aberen: has joined #ruby
[19:05:48] ivanskie: https://glot.io/snippets/efexl9dwnz
[19:05:49] sindork: has joined #ruby
[19:05:54] tvsutton: has joined #ruby
[19:05:56] Gnubie_: has joined #ruby
[19:06:08] shevy: yeah a string
[19:06:10] ivanskie: lets say i scan a barcode with "31P" prefix.. and i use case/when..
[19:06:23] hobodave: has joined #ruby
[19:06:27] shevy: get rid of the ' there
[19:06:44] shevy: and change the regex to match
[19:07:06] shevy: \A to ^ probably should work
[19:07:07] edwinvdg_: has joined #ruby
[19:07:14] ivanskie: yah it works now.... lol
[19:07:24] ivanskie: saved my hair sherry. thank you
[19:07:31] g3funk: has joined #ruby
[19:08:01] shevy: it was a simple regex but for complicated ones, I can really recommend http://rubular.com/ - I hit on "permalink", link in to the permalink, and if I have to check a complex regex again at a later time, I can visit that permalink location and change it to match new criteria
[19:08:21] jenrzzz: has joined #ruby
[19:08:34] ivanskie: oh thats cool
[19:09:04] ivanskie: i was testing it in rubular. and it worked, in rubular..
[19:09:18] shevy: a complicated one I tried to get right was this one: http://rubular.com/r/HM6C6ONQxQ
[19:09:20] ivanskie: but i forgot that there are no quotes
[19:09:37] shevy: (1) program name (2) program version
[19:09:54] shevy: all from existing tarballs / archives, like http://downloads.sourceforge.net/boost/boost_1_60_0.tar.bz2
[19:10:04] ivanskie: thats pretty neat
[19:10:07] shevy: nobody likes standard naming schemes :(
[19:10:36] sp4rrow: has joined #ruby
[19:10:57] certainty: has joined #ruby
[19:11:44] skolman: has joined #ruby
[19:11:49] whathappens: has joined #ruby
[19:12:45] ekinmur: has joined #ruby
[19:12:51] aberen: has joined #ruby
[19:15:55] tAn: has joined #ruby
[19:16:20] freerobby: has joined #ruby
[19:17:06] A124: has joined #ruby
[19:19:16] smathy: has joined #ruby
[19:21:21] araujo_: has joined #ruby
[19:23:57] tAn: has joined #ruby
[19:24:24] n_blownapart: has joined #ruby
[19:24:26] ayee: has left #ruby: ()
[19:24:55] tao_: has joined #ruby
[19:25:31] dorje_: has joined #ruby
[19:25:55] aberen: has joined #ruby
[19:26:13] stu314: has left #ruby: ()
[19:29:38] tAn: has joined #ruby
[19:30:02] jrafanie: has joined #ruby
[19:32:02] nando294021: has joined #ruby
[19:34:31] lxsameer: has joined #ruby
[19:35:10] akahn: has joined #ruby
[19:35:17] snockerton: has joined #ruby
[19:36:15] urbanmonk: has joined #ruby
[19:37:35] ekinmur: has joined #ruby
[19:38:16] rvchangue: has joined #ruby
[19:39:03] choke: has joined #ruby
[19:40:34] mdw7: has joined #ruby
[19:41:33] Elvin: has joined #ruby
[19:43:04] David_H_Smith: has joined #ruby
[19:45:55] j0n3: has joined #ruby
[19:49:26] zack6849: has joined #ruby
[19:49:27] zack6849: has joined #ruby
[19:51:00] sandstrom: has joined #ruby
[19:52:04] mikecmpbll: has joined #ruby
[19:53:33] mistermocha: has joined #ruby
[19:54:49] snowy: has joined #ruby
[19:54:56] kgrz: has joined #ruby
[19:54:57] centrx: has joined #ruby
[19:55:04] allcentu1: has joined #ruby
[19:55:20] rvchangue: has joined #ruby
[19:56:40] In3rti4: has joined #ruby
[19:56:50] blackmesa: has joined #ruby
[19:57:05] truenito: has joined #ruby
[19:58:17] mdw: has joined #ruby
[19:58:51] eljimmy: has joined #ruby
[20:00:19] user2356: has joined #ruby
[20:01:06] sp4rrow: has joined #ruby
[20:02:33] SilverKey: has joined #ruby
[20:03:20] snath: has joined #ruby
[20:03:25] skolman_: has joined #ruby
[20:03:50] mikecmpbll: has joined #ruby
[20:04:41] blackgoat: has joined #ruby
[20:04:52] snath: I'm running into an issue with Net::SSH::Telnet. If the password doesn't work it then asks for a password from stdin. I would prefer that it just fail.
[20:05:35] snath: suggestions?
[20:06:32] postmodern: has joined #ruby
[20:07:40] norc: snath, do the login manually?
[20:08:16] alfiemax: has joined #ruby
[20:08:35] snath: no, if the password doesn't work, I want the connection to fail, not ask for a password
[20:09:02] symm-: has joined #ruby
[20:09:10] jancel: has joined #ruby
[20:09:16] snath: this script is going to try to log in to 251 servers
[20:09:32] jhass: can't spot any reference to stdin in the code on a quick look
[20:09:39] jhass: sure it's net-ssh-telnet's doing?
[20:09:40] snockerton: has left #ruby: ()
[20:10:00] Gasher: has joined #ruby
[20:10:30] snath: it's somewhere in that stack.
[20:11:29] ur5us: has joined #ruby
[20:11:38] certainty: has joined #ruby
[20:12:03] freerobby: has joined #ruby
[20:14:35] firstdayonthejob: has joined #ruby
[20:17:11] nankyokusei: has joined #ruby
[20:17:59] snath: it is happening in net-ssh
[20:18:05] jhass: get a backtrace on ctrl-c?
[20:18:14] snath: has to do with PromptMethods
[20:18:16] jhass: or ctrl-\
[20:18:20] danostrowski: has joined #ruby
[20:19:20] n_blownapart: has joined #ruby
[20:19:26] madgen: has joined #ruby
[20:20:04] blockchan: has joined #ruby
[20:20:48] platzhirsch: has joined #ruby
[20:20:58] rodfersou: has joined #ruby
[20:21:28] weemsledeux: has joined #ruby
[20:23:39] diegoaguilar: has joined #ruby
[20:27:00] snath: maybe I need to create the session with Net::SSH instead
[20:27:29] Fredrich010: has joined #ruby
[20:27:39] arooni: has joined #ruby
[20:28:40] jhack: has joined #ruby
[20:28:51] Madplatypus: has joined #ruby
[20:29:19] blockchan: has joined #ruby
[20:29:45] mistermocha: has joined #ruby
[20:29:48] jhack_: has joined #ruby
[20:31:06] skweek: has joined #ruby
[20:31:15] dhollinger: has joined #ruby
[20:31:40] yqt: has joined #ruby
[20:33:26] chopin: has joined #ruby
[20:34:52] ekinmur: has joined #ruby
[20:36:03] jenrzzz: has joined #ruby
[20:36:03] jenrzzz: has joined #ruby
[20:37:00] aufi: has joined #ruby
[20:37:21] t1mxg0d: has joined #ruby
[20:37:39] sami: has joined #ruby
[20:38:21] ramfjord: has joined #ruby
[20:43:39] danostrowski: has joined #ruby
[20:45:31] agit0: has joined #ruby
[20:46:00] mdw: has left #ruby: ("cya! http://www.somerobots.com")
[20:46:03] mdw: has joined #ruby
[20:46:09] mdw: hey people, I'm not sure why
[20:46:21] mdw: but in my Sidekiq worker, nothing in the perform is happening
[20:46:23] mdw: https://gist.github.com/mattsrobot/e8742b39e7b3099b3fc9f9432a20a231
[20:46:43] mdw: I've tried puts "hello world" (didn't log)
[20:46:52] spider-mario: has joined #ruby
[20:47:09] mdw: I tried connecting to a simple HTTP server, didn't work
[20:47:23] jnoob22: has joined #ruby
[20:47:26] mdw: things inside the every 1.minute block are working though
[20:48:18] jhass: running clockwork and sidekiq master in the same process probably conflicts
[20:51:33] mdw: jhass same process? Do you mind explaining (I didn't realise).
[20:52:02] mdw: I understood the Worker to be executed on its own thread
[20:52:13] jhass: mdw: move your worker definition into a separate file, so that the clockwork definition isn't loaded by your sidekiq process
[20:52:35] whathappens: has joined #ruby
[20:52:36] jhass: but sidekiq's poller wants to run in the main thead
[20:52:36] mdw: wow, I had no idea Ruby worked like that
[20:53:06] whathapp_: has joined #ruby
[20:54:00] mdw: jhass I have much to learn, thanks
[20:54:17] jaguarmagenta: has joined #ruby
[20:55:40] kgrz: has joined #ruby
[20:55:49] davedev24: has joined #ruby
[20:56:14] KINGSABRI: has joined #ruby
[20:56:18] jphase: has joined #ruby
[20:57:10] maloik: has joined #ruby
[20:57:52] KINGSABRI: Hi, I'm trying to find a way to spawn non-interactive shell to interactive shell just like: python -c 'import pty; pty.spawn("/bin/bash")'
[20:58:25] hightower2: has joined #ruby
[20:58:27] KINGSABRI: the test can reproduced using ncat
[20:59:28] KINGSABRI: Tried PTY.getpyy, PTY.spawn, system, ``, IO.popen but nothing really works as expected
[20:59:49] al2o3-cr: has joined #ruby
[21:00:32] sami: has joined #ruby
[21:02:23] bruce_lee: has joined #ruby
[21:02:23] bruce_lee: has joined #ruby
[21:02:48] mdw: jhass hrm, nope wasn't that. Seperate file, same behaviour.
[21:03:27] jhass: mdw: don't just move it and then require
[21:03:54] jhass: mdw: you need to have two programs running, a client and a server, or a producer and a consumer so to say
[21:04:14] mdw: jhass ahh, right
[21:04:26] mdw: hang, IPC sounds a pain >.<
[21:04:37] mdw: i'll have a google around how to do that
[21:06:15] jhass: mdw: have one where you configure and start the sidekiq server, require the worker file there
[21:06:30] KINGSABRI: Here is how to reproduce and all tries I've done
[21:06:30] KINGSABRI: https://gist.github.com/KINGSABRI/baae12a5b4e4786c8cdd830dc9d35228
[21:06:35] jhass: mdw: then have one where you too require the worker file and then do the clockwork stuff
[21:06:36] jwhite_909: has joined #ruby
[21:06:38] jhass: run both files
[21:07:02] mdw: jhass thanks :-)
[21:07:27] ChiefAlexander: has joined #ruby
[21:08:30] sami: has joined #ruby
[21:08:31] workmad3: has joined #ruby
[21:11:04] austinprog: has joined #ruby
[21:11:44] alfiemax: has joined #ruby
[21:12:25] certainty: has joined #ruby
[21:12:27] austinprog: Hello! I'm having a problem with RVM. So, I set RVM to 2.3.0 from JRUBY. This works fine until I close the terminal. When I open a new terminal, JRUBY is still default. Even though I set Ruby 2.3.0 to be default and current in RVM.
[21:14:32] sami: has joined #ruby
[21:16:29] yardenbar: has joined #ruby
[21:17:29] davedev24: has joined #ruby
[21:19:59] diasp: has joined #ruby
[21:21:46] ledestin: has joined #ruby
[21:22:01] SCHAAP137: has joined #ruby
[21:23:07] skolman: has joined #ruby
[21:24:14] bobbycvi: has joined #ruby
[21:26:10] havenwood: austinprog: What do you get for `rvm current` after restarting your terminal?
[21:27:42] austinprog: After restarting the terminal I get jruby-9.0.5.0
[21:27:51] aberen: has joined #ruby
[21:28:35] jhack: has joined #ruby
[21:29:35] binaryplease: has joined #ruby
[21:30:40] nando293921: has joined #ruby
[21:31:15] havenwood: austinprog: But `rvm list` shows another Ruby as default?
[21:32:13] jrafanie: has joined #ruby
[21:34:41] skolman: has joined #ruby
[21:34:49] neanderslob: has joined #ruby
[21:34:59] neanderslob_: has joined #ruby
[21:35:07] austinprog: Havenwood This is what it says when I do RVM List I just set it as default a couple hours ago => jruby-9.0.5.0 [ x86_64 ] * ruby-2.3.0 [ x86_64 ]
[21:35:15] austinprog: I could try restarting and seeing
[21:35:28] swills: has joined #ruby
[21:36:17] neanderslob: has joined #ruby
[21:37:44] havenwood: austinprog: Yeah, I'd turn it off and back on again first. Then see if it's still broken!
[21:38:33] austinprog: Will try that. I mean its not a huge deal just annoying. Let me try that
[21:38:41] whathappens: has joined #ruby
[21:42:30] ramfjord: has joined #ruby
[21:43:45] choke: has joined #ruby
[21:46:05] einarj: has joined #ruby
[21:46:05] danostrowski: has joined #ruby
[21:46:21] devbug: has joined #ruby
[21:49:38] whathappens: has joined #ruby
[21:50:23] diegoviola: has joined #ruby
[21:51:13] chouhoulis: has joined #ruby
[21:51:20] Lockdown: has joined #ruby
[21:51:29] whathappens: I have a Time object (updated_at) and i just want a method that returns the time only, does anybody know what that is?
[21:51:38] mdw: has joined #ruby
[21:52:48] chouhoulis: has joined #ruby
[21:52:58] havenwood: whathappens: A String representation of the time of day only? Like `"1:30 PM"` or similar?
[21:53:51] havenwood: whathappens: This is a nifty site to help find the strftime argument you want: http://strftimer.com
[21:54:46] whathappens: ahhh i didn't know it took arguments, I just did .strftime and didn't like what it gave me so I kept looking
[21:54:48] whathappens: I'll try that!
[21:54:55] havenwood: >>>> Time.now.strftime("%-l:%M %p")
[21:55:03] havenwood: #=> "2:54 PM"
[21:55:19] whathappens: yup that's exactly it! thank you!
[21:55:31] havenwood: any time! :-)
[21:56:23] kgrz: has joined #ruby
[21:56:58] mistermocha: has joined #ruby
[21:58:35] davedev24: has joined #ruby
[21:58:39] whathapp_: has joined #ruby
[21:58:44] karapetyan: has joined #ruby
[21:59:51] aberen: has joined #ruby
[22:02:02] Qommand0r: has joined #ruby
[22:02:11] jenrzzz_: has joined #ruby
[22:04:28] jancel: has joined #ruby
[22:04:51] Respek: has joined #ruby
[22:05:06] aufi: has joined #ruby
[22:05:45] solars: has joined #ruby
[22:08:30] eljimmy: has joined #ruby
[22:13:09] certainty: has joined #ruby
[22:14:19] jnoob22: has joined #ruby
[22:14:19] jnoob22: has joined #ruby
[22:14:33] hahuang61: has joined #ruby
[22:15:24] skolman_: has joined #ruby
[22:16:30] elifoster: has joined #ruby
[22:18:00] nankyokusei: has joined #ruby
[22:19:27] jenrzzz: has joined #ruby
[22:25:18] haxrbyte: has joined #ruby
[22:25:20] k3rn31: has joined #ruby
[22:31:53] flashpoint9: has joined #ruby
[22:32:24] snath: has joined #ruby
[22:32:52] chouhoulis: has joined #ruby
[22:32:58] chopin: has joined #ruby
[22:34:36] tlaxkit: has joined #ruby
[22:37:28] lightt: has joined #ruby
[22:39:31] sp4rrow: has joined #ruby
[22:40:51] shevy: even before-coffee time!!!
[22:42:09] qasaur: has joined #ruby
[22:42:52] haxrbyte: has joined #ruby
[22:44:35] aberen: has joined #ruby
[22:44:50] benlieb: has joined #ruby
[22:44:59] lele: has joined #ruby
[22:45:52] Rodya_: has joined #ruby
[22:47:40] buddhabrot: has joined #ruby
[22:48:55] mistermocha: has joined #ruby
[22:51:52] paul0: has joined #ruby
[22:51:55] kith: has joined #ruby
[22:52:40] blur3d: has joined #ruby
[22:53:08] last_staff1: has joined #ruby
[22:53:51] lele: has joined #ruby
[22:54:09] danostrowski: has joined #ruby
[22:55:04] jaguarmagenta: has joined #ruby
[22:57:11] kgrz: has joined #ruby
[22:58:39] SilverKey: has joined #ruby
[22:59:22] araujo_: has joined #ruby
[23:00:34] tildes_: has joined #ruby
[23:00:40] weemsledeux: has joined #ruby
[23:00:44] lele: has joined #ruby
[23:03:01] tildes_: has joined #ruby
[23:05:05] Vingador: has joined #ruby
[23:05:35] jancel: has joined #ruby
[23:07:09] skolman: has joined #ruby
[23:07:14] lele: has joined #ruby
[23:09:01] Fuzai: has joined #ruby
[23:09:35] Fuzai: https://gist.github.com/StephanieSunshine/cf5f8bcdb775f02472f00c3d5bc98bc1 Can someone explain to me please why I can't dup nil within a block, but I can do it just fine with irb?
[23:11:43] crdpink: has joined #ruby
[23:12:49] chopin: has joined #ruby
[23:13:08] ruby[bot]: havenwood: # => can't dup NilClass (TypeError) ...check link for more (https://eval.in/584834)
[23:13:41] havenwood: >> nil.instance_of? NilClass
[23:13:42] ruby[bot]: havenwood: # => true (https://eval.in/584835)
[23:13:53] dorje_: has joined #ruby
[23:13:54] certainty: has joined #ruby
[23:13:56] hahuang61: has joined #ruby
[23:14:39] havenwood: Fuzai: ^ You can dup NilClass (whose class is Class) but not nil (whose class is NilClass).
[23:14:53] kies: has joined #ruby
[23:15:10] Fuzai: havenwood: Thank you I think I figured out a work around. cell.to_s.dup
[23:15:28] Fuzai: It returns "" which is good enough for this situation. Thank you!
[23:16:39] al2o3-cr: has joined #ruby
[23:16:46] lele: has joined #ruby
[23:17:14] jhack: has joined #ruby
[23:17:30] mistermocha: has joined #ruby
[23:23:33] JesseH: has joined #ruby
[23:24:36] vdamewood: has joined #ruby
[23:27:39] vdamewood: has joined #ruby
[23:28:12] lightt: has joined #ruby
[23:29:13] skade: has joined #ruby
[23:31:47] nando293921: has joined #ruby
[23:33:28] arescorpio: has joined #ruby
[23:35:50] chouhoulis: has joined #ruby
[23:36:57] Rodya_: has joined #ruby
[23:37:56] lightt: has joined #ruby
[23:39:56] postmodern: is there a ruby gem for doing DNS queries explicitly over TCP? Supposedly, Resolv can fallback to TCP, but defaults to using UDP.
[23:40:10] skade: has joined #ruby
[23:45:20] aberen: has joined #ruby
[23:45:27] darkxploit: has joined #ruby
[23:48:28] yfeldblum: has joined #ruby
[23:57:21] aberen: has joined #ruby
[23:57:29] multi_io: has joined #ruby
[23:57:55] kgrz: has joined #ruby
[23:58:18] RushPL: has joined #ruby
[23:58:39] AlexRussia: has joined #ruby
[23:59:31] David_H_Smith: has joined #ruby
[23:59:55] edwinvdgraaf: has joined #ruby