« Back to channel list

#ruby - 20 May 2016

« Back 1 day Forward 1 day »
[00:00:47] rkazak: has joined #ruby
[00:01:37] pawnbox: has joined #ruby
[00:02:29] CJKinni: has joined #ruby
[00:06:09] swein: has joined #ruby
[00:08:21] sdwrage: has joined #ruby
[00:08:34] Oclair: has joined #ruby
[00:09:38] smathy: has joined #ruby
[00:10:31] stardiviner: has joined #ruby
[00:16:38] sfmk: has joined #ruby
[00:17:27] tax: has joined #ruby
[00:18:27] wrkrcoop: has joined #ruby
[00:19:20] sfmk: Could I get some fresh eyes? I've got an issue with my regex being "ambiguous"
[00:20:56] CJKinni: has joined #ruby
[00:21:48] swein: has joined #ruby
[00:22:28] startupality: has joined #ruby
[00:24:57] jenrzzz: has joined #ruby
[00:30:05] Radar: sfmk: show us your code.
[00:30:15] mistermocha: has joined #ruby
[00:30:23] sfmk: working on that, and the error I'm getting
[00:31:45] sfmk: https://gist.github.com/aburgd/fe474df186d0fda4d54c5548815d0ebf here is the code, and the error I'm talking about is the first line
[00:32:11] RegulationD: has joined #ruby
[00:35:03] sdwrage: has joined #ruby
[00:35:05] sfmk: I'm using the Cinch framework, and am trying to add a command for using Ruby's Time class, but I cannot get the regex right, I guess
[00:36:01] sfmk: I've tried with parens before and after the /, without the parens, with a caret before the bang - all without luck
[00:37:17] mistermocha: has joined #ruby
[00:37:28] swein: has joined #ruby
[00:39:00] chouhoulis: has joined #ruby
[00:39:39] curses: has joined #ruby
[00:41:22] hutch34_: has joined #ruby
[00:43:20] ruby248: has joined #ruby
[00:44:53] nankyokusei: has joined #ruby
[00:48:09] jetpack_joe: has joined #ruby
[00:49:51] swein: has joined #ruby
[00:55:42] mistermocha: has joined #ruby
[00:55:51] centrx: has joined #ruby
[00:57:05] stannard: has joined #ruby
[01:01:26] cdg: has joined #ruby
[01:02:10] swein: has joined #ruby
[01:03:29] rkazak: has joined #ruby
[01:04:56] skweek: has joined #ruby
[01:09:44] al2o3-cr: sfmk: so did you try the parens?
[01:12:11] wilsonc91: has joined #ruby
[01:12:41] xxneolithicxx: has joined #ruby
[01:13:34] sfmk: al2o3-cr: I did, it got rid of the ambiguous complaint
[01:14:23] sfmk: https://gist.github.com/aburgd/06ab3d0b540c06b9d85f316267ea6f4b
[01:14:27] swein: has joined #ruby
[01:19:06] halfamind: has joined #ruby
[01:19:24] tax: has joined #ruby
[01:20:22] wilsonc91: has joined #ruby
[01:21:34] al2o3-cr: has joined #ruby
[01:22:50] wilsonc91: has joined #ruby
[01:26:44] swein: has joined #ruby
[01:29:54] agent_white: Evenin' folks
[01:30:41] maxdoubt: has joined #ruby
[01:31:03] Ropeney: has joined #ruby
[01:32:06] swills: has joined #ruby
[01:33:01] flashpoint9: has joined #ruby
[01:33:06] rrichardsr3: has joined #ruby
[01:34:37] sdwrage: has joined #ruby
[01:36:47] nerium_: has joined #ruby
[01:38:16] diegoviola: has joined #ruby
[01:39:04] swein: has joined #ruby
[01:40:07] al2o3-cr: good morning
[01:43:02] jaguarmagenta: has joined #ruby
[01:45:49] blackmesa: has joined #ruby
[01:46:13] akiTendo: has joined #ruby
[01:46:50] rbennacer: has joined #ruby
[01:46:54] halfamind: has joined #ruby
[01:48:03] mistermocha: has joined #ruby
[01:51:28] swein: has joined #ruby
[01:55:56] tax: has joined #ruby
[01:56:53] minimalism: has joined #ruby
[01:57:47] arescorpio: has joined #ruby
[02:00:15] chopin: has joined #ruby
[02:03:43] swein: has joined #ruby
[02:06:30] Vingador: has joined #ruby
[02:06:38] DarthGandalf: has joined #ruby
[02:07:09] tax: has joined #ruby
[02:07:42] tax: has joined #ruby
[02:11:28] maxdoubt: has joined #ruby
[02:14:19] A5101: has joined #ruby
[02:14:37] Madplatypus: has joined #ruby
[02:16:03] swein: has joined #ruby
[02:18:36] blackgoat: has joined #ruby
[02:19:32] auzty: has joined #ruby
[02:19:50] bronson: has joined #ruby
[02:24:58] lukeholder: has joined #ruby
[02:27:22] tax: has joined #ruby
[02:28:24] swein: has joined #ruby
[02:31:07] arlek_: has joined #ruby
[02:34:23] cdg: has joined #ruby
[02:35:02] dessm: has joined #ruby
[02:35:59] Amnez777: has joined #ruby
[02:36:59] hutch34_: has joined #ruby
[02:38:13] impermanence: has joined #ruby
[02:39:23] govg: has joined #ruby
[02:40:03] tax: has joined #ruby
[02:40:41] swein: has joined #ruby
[02:40:51] curses: has joined #ruby
[02:41:12] dessm: Hi, I have three questions. I am wondering why (Q1) exactly and how (Q2) 'first' works on hashes. 'first' is neither listed in the ruby documentation under hashes nor is it listed in the irb if I type Hash.methods. I suspect that my understanding is still too deficient to google this properly since my search terms don't seem to turn up answers to the question. Q3: I am also wondering if...
[02:41:14] dessm: ...'first' indeed does work on hashes where I might find a COMPLETE list of all the methods that can be applied to hashes.Thank you :)
[02:41:39] ur5us: has joined #ruby
[02:44:08] wreet: has joined #ruby
[02:45:29] cosmicfires: has joined #ruby
[02:45:46] nankyokusei: has joined #ruby
[02:45:54] cosmicfires: Hi is it better to use a timer or sleep in ruby?
[02:46:53] tax: has joined #ruby
[02:49:44] cholq: has joined #ruby
[02:50:47] Masteroshi57: has joined #ruby
[02:51:41] sdwrage: has joined #ruby
[02:52:17] blackmesa: has joined #ruby
[02:52:59] swein: has joined #ruby
[02:53:41] rrichardsr3: has joined #ruby
[02:53:57] JoshGlzBrk: has joined #ruby
[02:54:50] ramfjord_: If you're making a gem, and you want to use yard for documentation, do you put it as a development dependency or do you just make sure it's installed in your build environment?
[02:55:10] ramfjord_: cosmicfires: what are you trying to do?
[02:56:23] Radar: ramfjord_: development dependency. Yard should not be required for the functionality of the gem
[02:57:01] ramfjord_: dessm: I'm guessing you couldn't find #first in the instance method list at something like http://docs.ruby-lang.org/en/2.0.0/Hash.html. When you can't find a method, look at the parent and the included modules
[02:57:14] ramfjord_: in this case #first comes from Enumerable (http://docs.ruby-lang.org/en/2.0.0/Enumerable.html)
[02:57:26] cosmicfires: I want to ping periodically to check for network outages
[02:58:03] ramfjord_: cosmicfires: I would expect sleep to work fine for that
[02:58:25] cosmicfires: is there a difference in performance?
[02:58:32] ramfjord_: Radar: yeah, but you could argue that it's not even a development dependency - you only need it to generate the docs, not to run the tests
[02:58:37] stannard: has joined #ruby
[02:58:44] Radar: ramfjord_: Docs are useful for development.
[02:59:01] cosmicfires: when would it be good to use the timers gem?
[02:59:02] ramfjord_: mmmk, it's easier to put it in there anyway
[02:59:21] dessm: Ah I see, thank you ramfjord_
[02:59:23] ramfjord_: I've just noticed some projects taht seem to use Yard for docs, but don't have it as a dev dependency (PG gem)
[02:59:34] tmtwd: has joined #ruby
[02:59:58] todd: has joined #ruby
[03:00:42] ramfjord_: cosmicfires: I'm not familiar with that gem, but from looking at the docs[1] it seems that you would still need to call #sleep. It looks like Timer is mainly for tracking the amount of time you've take with certain tasks. [1] http://www.rubydoc.info/github/rubyworks/facets/Timer
[03:01:01] cosmicfires: thank you ramfjord_
[03:01:11] mbreedlove: has joined #ruby
[03:01:23] ramfjord_: The second example there is calling sleep, and using timer just for keeping track of the amount of time between resets
[03:01:58] tax: has joined #ruby
[03:02:43] cosmicfires: I've been working with a system where sleep paraylizes most of it you have to use timers
[03:04:17] gtsai: has joined #ruby
[03:04:47] lukeholder: has joined #ruby
[03:05:15] mistermocha: has joined #ruby
[03:05:21] swein: has joined #ruby
[03:06:06] maxdoubt: has joined #ruby
[03:07:09] zenlot: has joined #ruby
[03:12:32] shakes: has joined #ruby
[03:13:16] LoneHerm_: has joined #ruby
[03:13:30] gix: has joined #ruby
[03:13:50] braincrash: has joined #ruby
[03:17:09] LoneHerm_: has joined #ruby
[03:17:28] vdamewood: has joined #ruby
[03:17:40] swein: has joined #ruby
[03:17:50] chipotle: has joined #ruby
[03:18:46] MrSamuel: has joined #ruby
[03:19:56] sesquipedalian: has joined #ruby
[03:20:55] k3rn31: has joined #ruby
[03:21:14] yfeldblum: has joined #ruby
[03:21:28] ruby[bot]: agent_white: # => "asdf" (https://eval.in/574081)
[03:21:31] kgrz: has joined #ruby
[03:21:47] agent_white: >> puts "Herro"; puts "-"*_
[03:21:48] ruby[bot]: agent_white: # => Herro ...check link for more (https://eval.in/574082)
[03:22:43] agent_white: >> "one"; _.length
[03:22:49] ruby[bot]: agent_white: I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
[03:22:51] agent_white: >> "one"; puts _.length
[03:22:52] ruby[bot]: agent_white: # => undefined local variable or method `_' for main:Object (NameError) ...check link for more (https://eval.in/574084)
[03:24:14] agent_white: >> "a" && _ << "b"
[03:24:15] ruby[bot]: agent_white: # => undefined local variable or method `_' for main:Object (NameError) ...check link for more (https://eval.in/574086)
[03:24:22] agent_white: Ok I'm done :D
[03:26:03] zast: has joined #ruby
[03:27:40] imperman1nce: has joined #ruby
[03:29:26] mbreedlove: has joined #ruby
[03:29:58] swein: has joined #ruby
[03:31:47] mbreedlove: has joined #ruby
[03:33:43] rbennacer: has joined #ruby
[03:33:48] RegulationD: has joined #ruby
[03:36:21] yfeldblum: has joined #ruby
[03:40:49] Es0teric: has joined #ruby
[03:42:03] |ifei5g00d: has joined #ruby
[03:42:18] LoneHerm_: has joined #ruby
[03:42:20] swein: has joined #ruby
[03:42:28] kgrz: has joined #ruby
[03:43:45] jaguarmagenta: has joined #ruby
[03:43:45] blackwell: has joined #ruby
[03:44:56] tmtwd: has joined #ruby
[03:45:22] braincra-: has joined #ruby
[03:45:53] RobertBirnie: has joined #ruby
[03:47:07] sesquipedalian: has joined #ruby
[03:53:04] blackmesa: has joined #ruby
[03:53:36] crystal77: has joined #ruby
[03:54:37] swein: has joined #ruby
[03:56:13] kgrz: has joined #ruby
[03:59:09] mistermocha: has joined #ruby
[04:02:59] jenrzzz: has joined #ruby
[04:03:42] noService: has joined #ruby
[04:04:22] lukeholder: has joined #ruby
[04:04:43] pawnbox: has joined #ruby
[04:06:55] swein: has joined #ruby
[04:06:57] mistermocha: has joined #ruby
[04:08:03] kareeoleez: has joined #ruby
[04:10:46] kareeoleez: has joined #ruby
[04:11:23] MrSamuel: has joined #ruby
[04:13:11] dEPy: has joined #ruby
[04:18:33] CrazyEddy: has joined #ruby
[04:18:48] UKn0Me: has joined #ruby
[04:18:48] ilovemysillybana: has joined #ruby
[04:19:17] swein: has joined #ruby
[04:21:48] dsea: has joined #ruby
[04:24:41] edev: has joined #ruby
[04:25:12] LBRapid: has joined #ruby
[04:25:16] Nightmare: has joined #ruby
[04:25:47] centrx: has joined #ruby
[04:31:35] swein: has joined #ruby
[04:33:45] k3rn31: has joined #ruby
[04:40:46] Schweppes: has joined #ruby
[04:41:43] curses: has joined #ruby
[04:42:13] halfamind: has joined #ruby
[04:42:22] statelesscode: has joined #ruby
[04:43:27] twistedpixels: has joined #ruby
[04:43:27] twistedpixels: has joined #ruby
[04:43:52] swein: has joined #ruby
[04:44:55] bluOxigen: has joined #ruby
[04:46:41] nankyokusei: has joined #ruby
[04:47:02] momomomomo: has joined #ruby
[04:50:51] centrx: has joined #ruby
[04:53:01] Devalo: has joined #ruby
[04:53:29] mistermocha: has joined #ruby
[04:53:55] jackjackdripper1: has joined #ruby
[04:54:05] blackmesa: has joined #ruby
[04:56:11] swein: has joined #ruby
[04:56:15] grassass: has joined #ruby
[04:57:27] sameerynho: has joined #ruby
[04:59:06] konsolebox: has joined #ruby
[04:59:21] yfeldblum: has joined #ruby
[04:59:43] skolman: has joined #ruby
[05:00:50] nando293921: has joined #ruby
[05:03:12] janebootydoe: has joined #ruby
[05:08:33] swein: has joined #ruby
[05:09:48] zapata: has joined #ruby
[05:09:54] jenrzzz: has joined #ruby
[05:10:29] MrSamuel: has joined #ruby
[05:11:10] lukeholder: has joined #ruby
[05:12:48] kies: has joined #ruby
[05:14:34] moeabdol: has joined #ruby
[05:17:35] roelof: has joined #ruby
[05:17:58] roelof: hello, I have a array of hashes which looks like this : [{"x"=>0, "y"=>0, "url"=>"http://lh5.ggpht.com/XbPYbPJS2-q5gWIbbpLdvnYtu9FoZ33jZwMv1NjBC-WaSRr0evqwUsNidQrt7L8P_IF69Z-BqJmbj-O2UL6UZ14VfDo"}, {"x"=>1, "y"=>0, "url"=>"http://lh6.ggpht.com/XtOy-EM2e-LFHlGl0PaUoqvlgdeJGwCBEbvDQm8ypdoqc-GZ8-tB83-dNyLQo516TO1DNv_B6uJIWOx-PTy6OoYccH2C"}]}}]
[05:18:28] roelof: is there a way I can collect the url where x = 1 and y = 0 ?
[05:19:08] tAn: has joined #ruby
[05:20:06] roelof: maybe something like .collect { |item| item["url"] if item["x"] == 1 && item["y"] == 0 } ??
[05:20:07] Devalo: has joined #ruby
[05:20:52] swein: has joined #ruby
[05:24:26] RobertBirnie: has joined #ruby
[05:25:59] nando293921: has joined #ruby
[05:31:06] woodruffw: has joined #ruby
[05:31:36] woodruffw: has joined #ruby
[05:33:10] swein: has joined #ruby
[05:34:41] tmtwd: has joined #ruby
[05:36:32] jas02: has joined #ruby
[05:37:05] auzty: has joined #ruby
[05:38:02] dsea: has joined #ruby
[05:38:16] Dimik: has joined #ruby
[05:38:26] Radar: roelof: .select, not .collect
[05:39:36] cosmicfires: has joined #ruby
[05:42:24] roelof: Radar: thanks, Im trying to display a image which is divided into 2, 3 or 4 parts
[05:42:57] roelof: I think I will use a table without border so the user sees only 1 image
[05:44:31] jaguarmagenta: has joined #ruby
[05:45:29] swein: has joined #ruby
[05:47:44] aufi: has joined #ruby
[05:54:04] jaguarmagenta: has joined #ruby
[05:54:05] _joes__: has joined #ruby
[05:54:51] blackmesa: has joined #ruby
[05:55:52] LoneHermit: has joined #ruby
[05:57:45] swein: has joined #ruby
[05:57:51] kareeoleez: has joined #ruby
[05:58:09] pikajude: has joined #ruby
[05:58:09] pikajude: has joined #ruby
[06:00:48] rbennacer: has joined #ruby
[06:03:14] postmodern: on MRI don't Structs technically allocate less memory than Arrays?
[06:03:29] tax: has joined #ruby
[06:04:44] auzty: has joined #ruby
[06:04:53] d0lph1n98: has joined #ruby
[06:05:32] rbennacer: has joined #ruby
[06:06:46] moeabdol: has joined #ruby
[06:07:09] solars: has joined #ruby
[06:09:24] Vingador_: has joined #ruby
[06:10:07] swein: has joined #ruby
[06:17:15] hightower2: has joined #ruby
[06:19:11] roelof: has left #ruby: ()
[06:20:24] coffeecupp: has joined #ruby
[06:21:12] [spoiler]: has joined #ruby
[06:21:47] Coldblackice: has joined #ruby
[06:22:26] swein: has joined #ruby
[06:23:18] LoneHerm_: has joined #ruby
[06:23:33] bronson: has joined #ruby
[06:24:28] firstdayonthejob: has joined #ruby
[06:24:55] chipotle: has joined #ruby
[06:25:19] PaulCape_: has joined #ruby
[06:27:20] hogetaro_: has joined #ruby
[06:28:37] sarlalian: has joined #ruby
[06:29:11] Ariadeno: has joined #ruby
[06:29:12] LaT0rtue: has joined #ruby
[06:29:18] mburns: has joined #ruby
[06:29:19] mtkd: has joined #ruby
[06:29:34] rgs: has joined #ruby
[06:29:40] kaleido: has joined #ruby
[06:29:50] Coldblackice: has joined #ruby
[06:30:07] centrx: has joined #ruby
[06:31:24] Tharbakim: has joined #ruby
[06:31:27] neanderslob: has joined #ruby
[06:31:27] existensil: has joined #ruby
[06:31:42] lsmola: has joined #ruby
[06:31:55] tris: has joined #ruby
[06:32:18] veloutin: has joined #ruby
[06:32:59] PaulCapestany: has joined #ruby
[06:33:30] kriskropd: has joined #ruby
[06:34:41] swein: has joined #ruby
[06:36:24] MEATCHICKEN: has joined #ruby
[06:36:34] auzty: has joined #ruby
[06:36:55] CloCkWeRX: has joined #ruby
[06:37:50] rbennacer: has joined #ruby
[06:38:17] emilkarl: has joined #ruby
[06:38:42] noService: has joined #ruby
[06:38:46] EdwardIII: has joined #ruby
[06:39:05] crdpink: has joined #ruby
[06:40:00] kgrz: has joined #ruby
[06:41:57] lukeholder: has joined #ruby
[06:43:02] MEATCHICKEN: has joined #ruby
[06:46:35] ruby-lang569: has joined #ruby
[06:47:02] swein: has joined #ruby
[06:47:09] aganov: has joined #ruby
[06:47:28] nankyokusei: has joined #ruby
[06:47:46] rrichardsr3: has joined #ruby
[06:51:54] rbennacer: has joined #ruby
[06:52:59] djbkd: has joined #ruby
[06:53:35] gtsai: has joined #ruby
[06:54:48] sameerynho: has joined #ruby
[06:55:53] blackmesa: has joined #ruby
[06:57:05] CausaMortis: has joined #ruby
[06:59:21] swein: has joined #ruby
[06:59:38] terlar: has joined #ruby
[07:01:01] rbennacer: has joined #ruby
[07:01:01] ItSANgo__: has joined #ruby
[07:03:11] kgrz: has joined #ruby
[07:03:44] mistermocha: has joined #ruby
[07:06:40] tAn: has joined #ruby
[07:06:56] tAn: has joined #ruby
[07:07:10] cosmicfires: has joined #ruby
[07:08:34] giz|work: has joined #ruby
[07:08:49] noobsu: has joined #ruby
[07:09:46] n1x-nz: has joined #ruby
[07:09:53] Es0teric: has joined #ruby
[07:10:20] rbennacer: has joined #ruby
[07:10:46] TomyWork: has joined #ruby
[07:10:53] LoneHerm_: has joined #ruby
[07:11:41] swein: has joined #ruby
[07:12:00] fenre: has joined #ruby
[07:12:13] coffeecupp: has joined #ruby
[07:14:52] rbennacer: has joined #ruby
[07:14:58] fbandov: has joined #ruby
[07:19:25] noobsu: has joined #ruby
[07:19:27] anisha: has joined #ruby
[07:20:47] fenre: has joined #ruby
[07:21:41] jaruga___: has joined #ruby
[07:24:01] swein: has joined #ruby
[07:24:12] rbennacer: has joined #ruby
[07:26:55] mark_66: has joined #ruby
[07:27:00] Devalo: has joined #ruby
[07:27:02] kgrz: has joined #ruby
[07:27:44] patrick_star_3: has joined #ruby
[07:31:08] hahuang65: has joined #ruby
[07:32:18] Tyrant_: has joined #ruby
[07:33:14] rbennacer: has joined #ruby
[07:35:11] RegulationD: has joined #ruby
[07:36:17] swein: has joined #ruby
[07:36:47] last_staff: has joined #ruby
[07:40:49] coffeecupp: has joined #ruby
[07:41:30] mikar: has joined #ruby
[07:42:35] rbennacer: has joined #ruby
[07:42:52] Couch: has joined #ruby
[07:43:42] sepp2k: has joined #ruby
[07:48:37] swein: has joined #ruby
[07:51:23] sameerynho: has joined #ruby
[07:51:38] kgrz: has joined #ruby
[07:52:33] bookies: has joined #ruby
[07:53:09] bookies: I apologise. I am new to refactoring. For a reason I cannot test this. Could you please tell me if my refactoring to the new file correct? (https://gist.github.com/stefioan/6b781ef54b89ea3a5c97f40c42eafe6c) Will it call the new method?
[07:53:12] troulouliou_div2: has joined #ruby
[07:54:09] kumardev: has joined #ruby
[07:55:00] kumardev: Hi , i wanted to make a standalone authentication in ruby . Any suggestions except SAML ?
[07:56:08] giz|work: has joined #ruby
[07:56:28] craigp: has joined #ruby
[07:57:07] blackmesa: has joined #ruby
[07:57:10] CloCkWeRX: has left #ruby: ()
[07:58:51] fenre: has joined #ruby
[08:00:53] swein: has joined #ruby
[08:02:19] Mia: has joined #ruby
[08:03:47] snowy: has joined #ruby
[08:03:54] kgrz: has joined #ruby
[08:04:06] chrismytton: has joined #ruby
[08:04:15] mbreedlo_: has joined #ruby
[08:08:33] ocbtec: has joined #ruby
[08:08:54] fenre: has joined #ruby
[08:09:39] marr: has joined #ruby
[08:10:12] fenre: has joined #ruby
[08:10:32] fbandov: has joined #ruby
[08:12:48] Olipro: has joined #ruby
[08:13:18] swein: has joined #ruby
[08:13:22] biberu: has joined #ruby
[08:14:58] jenrzzz: has joined #ruby
[08:14:58] jenrzzz: has joined #ruby
[08:15:30] janebootydoe: has joined #ruby
[08:15:38] Shashikant86: has joined #ruby
[08:16:02] astrobunny: has joined #ruby
[08:16:05] noService: has joined #ruby
[08:16:09] fenre: has joined #ruby
[08:16:52] cosmicfires: has joined #ruby
[08:17:02] fenre: has joined #ruby
[08:17:49] mbreedlove: has joined #ruby
[08:18:38] Gasher: has joined #ruby
[08:19:59] mbreedlove: has joined #ruby
[08:21:39] drptbl: has joined #ruby
[08:22:52] insanedreamer: has joined #ruby
[08:25:34] swein: has joined #ruby
[08:26:01] bronson: has joined #ruby
[08:26:56] tomphp: has joined #ruby
[08:28:37] Devalo: has joined #ruby
[08:32:58] rbennacer: has joined #ruby
[08:37:49] swein: has joined #ruby
[08:38:38] chouhoulis: has joined #ruby
[08:38:39] ext0: has joined #ruby
[08:38:41] saush: has joined #ruby
[08:39:08] aupadhye: has joined #ruby
[08:40:44] astrobunny: has joined #ruby
[08:40:52] saush: I am currently benchmarking ruby, so for every commit made to ruby trunk I have to fetch, recompile everything and then benchmark. Compiling takes me a lot of time. Is there another way out?
[08:41:09] gregf_: has left #ruby: ()
[08:43:09] curses: has joined #ruby
[08:43:25] skade: has joined #ruby
[08:45:26] toretore: has joined #ruby
[08:46:05] noService: has joined #ruby
[08:46:57] rbennacer: has joined #ruby
[08:48:22] nankyokusei: has joined #ruby
[08:49:49] eljimmy: has joined #ruby
[08:50:11] swein: has joined #ruby
[08:55:29] evidex: has joined #ruby
[08:57:45] saush: I am currently benchmarking ruby, so for every commit made to ruby trunk I have to fetch, recompile everything and then benchmark. Compiling takes me a lot of time. Is there another way out?
[08:57:50] platzhirsch: has joined #ruby
[08:57:53] zenlot6: has joined #ruby
[08:58:05] blackmesa: has joined #ruby
[08:58:08] jaguarmagenta: has joined #ruby
[08:58:14] Hanmac: saush: i don't think there is an easy way ... i also use "rvm reinstall ruby-head" to rebuild ruby
[08:59:35] LoneHermit: has joined #ruby
[09:00:42] saush: hanmac: So for a single commit we need to recompile everything? Can't we use the previously compiled ruby in some way and just make the necessary changes?
[09:00:57] rbennacer: has joined #ruby
[09:01:51] Labaleine: has joined #ruby
[09:02:16] qasaur: has joined #ruby
[09:02:27] swein: has joined #ruby
[09:02:42] Hanmac: saush: it depends how you checkout and install your ruby ... if you have a checked out repo from ruby and you build it there, than it should probably only build whats needed to build ... otherwise you might get a problem because you might need to run configure again (and then you probably need to rebuild all again too) ... so its not an easy answer for that.
[09:02:51] skade: has joined #ruby
[09:03:46] cosmicfires: has joined #ruby
[09:05:20] rbennacer: has joined #ruby
[09:09:24] startupality: has joined #ruby
[09:10:48] d0lph1n98: has joined #ruby
[09:11:26] auzty: has joined #ruby
[09:12:07] JakFrist: has joined #ruby
[09:14:01] noService: has joined #ruby
[09:14:19] codecop: has joined #ruby
[09:14:35] rbennacer: has joined #ruby
[09:14:46] swein: has joined #ruby
[09:15:25] syndikate: has joined #ruby
[09:15:38] blaxter: has joined #ruby
[09:17:25] mbreedlove: has joined #ruby
[09:17:30] gregf_: has joined #ruby
[09:19:55] mbreedlove: has joined #ruby
[09:20:45] rrichardsr3: has joined #ruby
[09:21:56] mbreedlove: has joined #ruby
[09:22:35] rrichardsr3: has joined #ruby
[09:22:38] zenlot: has joined #ruby
[09:23:13] chipotle: has joined #ruby
[09:24:39] pawnbox: has joined #ruby
[09:25:17] mbreedlove: has joined #ruby
[09:25:52] c355E3B: has joined #ruby
[09:27:06] swein: has joined #ruby
[09:27:33] dumdedum: has joined #ruby
[09:28:52] skade: has joined #ruby
[09:29:54] framling: has joined #ruby
[09:32:31] skade: has joined #ruby
[09:32:42] noService: has joined #ruby
[09:33:26] yfeldblum: has joined #ruby
[09:36:01] gtsai: has joined #ruby
[09:36:24] RegulationD: has joined #ruby
[09:38:18] depesz: has left #ruby: ("WeeChat 1.5-dev")
[09:39:12] lsmola: has joined #ruby
[09:39:16] jud: has joined #ruby
[09:39:22] swein: has joined #ruby
[09:40:00] JohnBat26: has joined #ruby
[09:47:46] ramfjord: has joined #ruby
[09:50:04] startupality: has joined #ruby
[09:51:44] swein: has joined #ruby
[09:52:35] CloCkWeRX: has joined #ruby
[09:53:00] mdw: has joined #ruby
[09:54:00] Ishido: has joined #ruby
[09:56:46] Labaleine: Hello ! I don't get perfectly the synthax "#{}". I do understand that it can be used in a text with a variable. But I don't understand this way of using it
[09:56:54] Labaleine: all_tasks.map.with_index { |l, i| "(#{i.next}): #{l}"}
[09:57:22] Labaleine: I see that it works however I would have done more something like this all_tasks.map.with_index { |v, i| i + next v
[09:58:22] Labaleine: Can you explain me a bit more the use of this syntax ?
[09:58:33] framling: anything inside the #{} gets evaluated, then the result is interpolated into the string
[09:58:52] blackmesa: has joined #ruby
[10:00:22] joonty: has joined #ruby
[10:00:36] Labaleine: thanks for the help.
[10:00:46] framling: you're welcome labaleine
[10:01:39] Shashikant86: has joined #ruby
[10:02:05] phatypus: has joined #ruby
[10:03:11] sameerynho: has joined #ruby
[10:03:58] swein: has joined #ruby
[10:06:07] crazydiamond: has joined #ruby
[10:06:22] skade: has joined #ruby
[10:15:02] mtkd: has joined #ruby
[10:15:25] startupality: has joined #ruby
[10:16:19] swein: has joined #ruby
[10:16:30] terlar: has joined #ruby
[10:17:19] startupality: has joined #ruby
[10:21:18] kumardev: has joined #ruby
[10:23:33] bhrgunatha: has joined #ruby
[10:23:43] chipotle: has joined #ruby
[10:26:11] Shashikant86: has joined #ruby
[10:27:48] blackmesa: has joined #ruby
[10:28:10] bronson: has joined #ruby
[10:28:35] swein: has joined #ruby
[10:29:49] CausaMortis: has joined #ruby
[10:30:04] der-landgraf: has joined #ruby
[10:30:21] JakFrist: has joined #ruby
[10:30:25] Devalo: has joined #ruby
[10:31:43] terlar: has joined #ruby
[10:32:59] emilkarl: has joined #ruby
[10:33:05] strigonLeader: has joined #ruby
[10:34:39] stardiviner: has joined #ruby
[10:35:38] strigonLeader: hey I'm playing around with regular expressions could anyone help me out I'm not sure why there are two matches happening here http://puu.sh/oYCnH/e818e2ebde.png
[10:35:50] strigonLeader: Is it something special about the $ character?
[10:37:33] adaedra: It's the end of line
[10:37:40] terlar: has joined #ruby
[10:38:06] adaedra: you match twice: once you match a<eol>, then <eol> (as a? is ignored the second time)
[10:38:14] jhass: strigonLeader: you make a optional with ?, so the first match is a[endofstringorline] which makes the string "aat", a$ no longer matches, so next you match $/[endofstringorline] and replace it with t, and you get "aatt"
[10:38:15] adaedra: Use sub instead of gsub.
[10:38:57] jhass: then the index moved past the string size and the replacement stops
[10:40:31] giz|work: use /n modifier?
[10:40:32] strigonLeader: thanks guys, sub will do exactly what I want to
[10:40:37] noobsu: has joined #ruby
[10:40:38] d0lph1n98: has joined #ruby
[10:40:45] strigonLeader: I'll see if that works as well
[10:40:57] swein: has joined #ruby
[10:42:41] jhass: giz|work: could you elaborate how changing the encoding of the literal would change anything?
[10:44:04] giz|work: i thought its a problem of newline interpretion
[10:44:08] curses: has joined #ruby
[10:44:14] jhass: did you think about /m ?
[10:44:24] giz|work: but that wouldn´t work
[10:44:36] jhass: yes that only influences what . matches
[10:44:58] giz|work: it influences ^ and $
[10:45:12] giz|work: according to some site, yes
[10:45:19] giz|work: http://www.regular-expressions.info/modifiers.html
[10:45:22] jhass: according to the official docs, no
[10:45:36] ferr1: has joined #ruby
[10:45:43] giz|work: pocs or it did not happen
[10:45:52] jhass: /pat/m - Treat a newline as a character matched by .
[10:46:00] jhass: &ri Regexp
[10:46:00] `derpy: http://ruby-doc.org/core-2.3.0/Regexp.html
[10:46:38] jhass: giz|work: even your link mentions "In Ruby, (?m) makes the dot match all characters, without affecting the caret and dollar"
[10:46:58] giz|work: thank you :)
[10:49:13] nankyokusei: has joined #ruby
[10:49:22] skade: has joined #ruby
[10:52:34] LaT0rtue: has joined #ruby
[10:53:12] swein: has joined #ruby
[10:54:33] swills: has joined #ruby
[10:54:41] rodfersou: has joined #ruby
[10:56:09] ramfjord: has joined #ruby
[10:56:20] skade: has joined #ruby
[10:56:51] emilkarl: has joined #ruby
[10:56:56] johnmilton: has joined #ruby
[10:58:54] jaguarmagenta: has joined #ruby
[11:01:09] CloCkWeRX: has joined #ruby
[11:01:36] CloCkWeRX: has left #ruby: ()
[11:01:53] banister: has joined #ruby
[11:02:24] CausaMortis: has joined #ruby
[11:04:14] stannard: has joined #ruby
[11:05:34] swein: has joined #ruby
[11:08:19] sdothum: has joined #ruby
[11:11:17] cpup: has joined #ruby
[11:11:50] mbreedlove: has joined #ruby
[11:15:26] Fernando-Basso: has joined #ruby
[11:17:52] swein: has joined #ruby
[11:18:07] maucar: has joined #ruby
[11:19:54] rbennacer: has joined #ruby
[11:22:03] hk238: has joined #ruby
[11:22:15] gnufied: has joined #ruby
[11:22:22] CausaMortis: has joined #ruby
[11:23:16] mdw: has joined #ruby
[11:25:05] gnufied: has joined #ruby
[11:25:36] toretore: has joined #ruby
[11:25:39] nemesit|znc: has joined #ruby
[11:27:09] Shashikant86: has joined #ruby
[11:28:13] CROOKED^HILLARY^: has joined #ruby
[11:28:18] sepp2k: has joined #ruby
[11:29:02] rbennacer: has joined #ruby
[11:30:10] swein: has joined #ruby
[11:33:43] stardiviner: has joined #ruby
[11:35:17] ldnunes: has joined #ruby
[11:37:11] RegulationD: has joined #ruby
[11:38:15] CausaMortis: has joined #ruby
[11:38:21] rbennacer: has joined #ruby
[11:39:05] moeabdol: has joined #ruby
[11:41:31] duckpuppy: has joined #ruby
[11:42:06] idletask: has joined #ruby
[11:42:21] mbreedlove: has joined #ruby
[11:42:28] swein: has joined #ruby
[11:45:31] d0lph1n98: has joined #ruby
[11:46:20] Guyome41: has joined #ruby
[11:46:27] mic_e: has joined #ruby
[11:46:59] banister: has joined #ruby
[11:47:29] rbennacer: has joined #ruby
[11:47:46] gtsai: has joined #ruby
[11:49:40] mbreedlove: has joined #ruby
[11:50:26] elementaru: has joined #ruby
[11:51:21] ryoshu: has left #ruby: ()
[11:51:23] fbandov: has joined #ruby
[11:52:33] Guyome41: has left #ruby: ()
[11:52:43] mdw: has joined #ruby
[11:54:50] swein: has joined #ruby
[11:55:37] k3rn31: has joined #ruby
[11:56:37] rbennacer: has joined #ruby
[11:58:09] kgrz: has joined #ruby
[12:00:21] catpoop: has joined #ruby
[12:02:16] Hanmac: has joined #ruby
[12:02:52] catpoop: has joined #ruby
[12:02:57] davedev24: has joined #ruby
[12:03:08] deadnull_: has joined #ruby
[12:04:28] deadnull_: has joined #ruby
[12:05:58] deadnull_: has joined #ruby
[12:07:07] swein: has joined #ruby
[12:07:41] nadir: has joined #ruby
[12:09:00] synthroid: has joined #ruby
[12:09:17] centrx: has joined #ruby
[12:10:43] flashpoint9: has joined #ruby
[12:11:18] |2701: has joined #ruby
[12:11:18] chouhoulis: has joined #ruby
[12:11:53] ponga: has joined #ruby
[12:12:40] GodFather_: has joined #ruby
[12:13:57] bkulbida: has joined #ruby
[12:14:13] craigp: has joined #ruby
[12:14:28] GodFather_: has joined #ruby
[12:15:08] rbennacer: has joined #ruby
[12:16:32] blackmesa: has joined #ruby
[12:17:48] gheegh: has joined #ruby
[12:19:29] swein: has joined #ruby
[12:21:06] nettoweb: has joined #ruby
[12:24:19] rbennacer: has joined #ruby
[12:25:14] mikecmpbll: has joined #ruby
[12:29:22] davedev24: has joined #ruby
[12:30:26] bronson: has joined #ruby
[12:30:46] sameerynho: has joined #ruby
[12:31:48] swein: has joined #ruby
[12:33:17] kareeole_: has joined #ruby
[12:34:46] joonty: has joined #ruby
[12:35:53] LoneHerm_: has joined #ruby
[12:37:15] rbennacer: has joined #ruby
[12:39:20] akiTendo: has joined #ruby
[12:41:09] solars: has joined #ruby
[12:41:22] kareeoleez: has joined #ruby
[12:44:09] swein: has joined #ruby
[12:44:25] mbreedlove: has joined #ruby
[12:44:47] curses: has joined #ruby
[12:47:52] snowy: has joined #ruby
[12:48:40] eljimmy: has joined #ruby
[12:50:03] nankyokusei: has joined #ruby
[12:53:20] KantonKid: has joined #ruby
[12:53:38] chipotle: has joined #ruby
[12:55:32] Kus: has joined #ruby
[12:56:21] ocbtec: has joined #ruby
[12:56:25] swein: has joined #ruby
[12:57:46] ramortegui: has joined #ruby
[12:59:38] jaguarmagenta: has joined #ruby
[12:59:56] chouhoulis: has joined #ruby
[13:04:18] fbandov: has joined #ruby
[13:04:53] A124: has joined #ruby
[13:05:56] stannard: has joined #ruby
[13:07:13] zast: has joined #ruby
[13:07:26] akiTendo: has joined #ruby
[13:07:37] dangerousdave: has joined #ruby
[13:08:43] swein: has joined #ruby
[13:11:52] aegis3121: has joined #ruby
[13:13:57] beauby: has joined #ruby
[13:14:22] malconis: has joined #ruby
[13:15:36] cosmicfires: has joined #ruby
[13:16:33] ChiefAlexander: has joined #ruby
[13:19:14] _Stimpy: has joined #ruby
[13:19:41] rippa: has joined #ruby
[13:19:50] tvw: has joined #ruby
[13:20:11] _Stimpy: has joined #ruby
[13:20:46] Kus: has joined #ruby
[13:21:05] swein: has joined #ruby
[13:22:48] tzica: has left #ruby: ()
[13:25:32] cdg: has joined #ruby
[13:28:29] stannard: has joined #ruby
[13:29:14] antgel: has joined #ruby
[13:29:21] maxdoubt: has joined #ruby
[13:30:26] doodlehaus: has joined #ruby
[13:30:27] ruby[bot]: +b doodlehaus!*@*$#ruby-banned
[13:30:27] ruby[bot]: ruby[bot] kicked doodlehaus: banned before
[13:31:03] allcentury: has joined #ruby
[13:31:33] zyzioziom: has joined #ruby
[13:32:22] Devalo: has joined #ruby
[13:32:52] troulouliou_div2: has joined #ruby
[13:34:48] zenlot6: has joined #ruby
[13:34:49] arajakul: has joined #ruby
[13:42:35] tvw: has joined #ruby
[13:42:36] soud: has joined #ruby
[13:43:09] dstarh: has joined #ruby
[13:43:16] kumardev: has joined #ruby
[13:44:10] dstarh: I need to install a gem, rjb which is a ruby/java bridge. Installing locally works just fine where I have JVA_HOME set, but we don't want to set that globally on our CI server, is bundle config an appropriate place to set JAVA_HOME for the gem?
[13:44:18] maxdoubt: has joined #ruby
[13:49:32] sdwrage: has joined #ruby
[13:50:59] ferr1: has joined #ruby
[13:51:40] gnufied: dstarh, you can invoke `JAVA_HOME=/home/what/ bundle install` ?
[13:52:08] cosmicfires: has joined #ruby
[13:52:17] dstarh: gnufied yes we were just wondering if bundle configs will work for that
[13:53:00] gnufied: I don't think bundler config is used for setting environment variables
[13:54:58] jas02_: has joined #ruby
[13:59:42] TvL2386: has joined #ruby
[13:59:50] dstarh: ok thanks
[14:00:38] skylerto: has joined #ruby
[14:01:03] skweek: has joined #ruby
[14:01:08] noobsu: has joined #ruby
[14:01:32] JJM: has joined #ruby
[14:01:36] frem_: has joined #ruby
[14:01:58] Shashikant86: has joined #ruby
[14:02:11] cyclonis: has joined #ruby
[14:05:35] chouhoulis: has joined #ruby
[14:05:42] jas02_: has joined #ruby
[14:06:16] djcp: has joined #ruby
[14:06:50] eL_bAmba: has joined #ruby
[14:06:55] bruce_lee: has joined #ruby
[14:06:55] bruce_lee: has joined #ruby
[14:07:32] idle_task: has joined #ruby
[14:08:08] GinoManWorks: has joined #ruby
[14:09:42] Shashikant86: has joined #ruby
[14:11:33] fenre: has joined #ruby
[14:12:09] cosmicfires: has joined #ruby
[14:12:30] JesseH: has joined #ruby
[14:15:26] flughafen_: has joined #ruby
[14:17:27] arthurl: has joined #ruby
[14:18:19] Eiam_: has joined #ruby
[14:21:47] antgel: has joined #ruby
[14:24:00] griffindy: has joined #ruby
[14:27:16] evidex: has joined #ruby
[14:27:28] chipotle: has joined #ruby
[14:28:06] dopamean_: has joined #ruby
[14:31:21] ChiefAlexander: has joined #ruby
[14:33:36] antgel: has joined #ruby
[14:35:31] shinnya: has joined #ruby
[14:37:01] gtsai: has joined #ruby
[14:37:34] pelegreno: has joined #ruby
[14:37:53] k3rn31: has joined #ruby
[14:40:09] mistermocha: has joined #ruby
[14:40:56] Es0teric: has joined #ruby
[14:41:27] ccooke: has joined #ruby
[14:44:55] gtsai: has joined #ruby
[14:45:15] blaxter: has joined #ruby
[14:45:47] curses: has joined #ruby
[14:46:06] crameth: has joined #ruby
[14:48:37] gtsai_: has joined #ruby
[14:48:46] stannard_: has joined #ruby
[14:50:12] jhack: has joined #ruby
[14:50:58] nankyokusei: has joined #ruby
[14:51:47] ixti: has joined #ruby
[14:51:59] jhack_: has joined #ruby
[14:53:21] RobertBirnie: has joined #ruby
[14:53:29] rkazak: has joined #ruby
[14:58:34] maxdoubt: has joined #ruby
[14:59:23] jackjackdripper: has joined #ruby
[15:00:36] jaguarmagenta: has joined #ruby
[15:01:41] ljames: has joined #ruby
[15:01:50] jwren: has joined #ruby
[15:02:05] Yiota: has joined #ruby
[15:03:35] symm-: has joined #ruby
[15:03:41] kobain: has joined #ruby
[15:04:20] jhack: has joined #ruby
[15:04:49] diegoviola: has joined #ruby
[15:08:44] RegulationD: has joined #ruby
[15:10:09] ramfjord: has joined #ruby
[15:10:48] Shashikant86: has joined #ruby
[15:11:40] elemenn: has joined #ruby
[15:12:28] Kyle__: So, trying ot use ruby-prof for memory...... and all I get is a bunch of NaN entries.
[15:13:00] Kyle__: I'm not finding much for good tutorials that cover memory profiling on it :/ anyone know of a good one?
[15:14:21] chopin: has joined #ruby
[15:14:45] mikar: has joined #ruby
[15:16:00] warreng__: has joined #ruby
[15:16:03] pengown: has joined #ruby
[15:17:40] Kus: has joined #ruby
[15:18:33] gomix: has joined #ruby
[15:22:46] chipotle: has joined #ruby
[15:22:55] nettoweb: has joined #ruby
[15:24:31] mitt3ns: has joined #ruby
[15:24:35] rht: has joined #ruby
[15:25:34] platzhirsch: has joined #ruby
[15:26:11] ramfjord: has joined #ruby
[15:27:30] hutch34: has joined #ruby
[15:29:27] chipotle: has joined #ruby
[15:32:59] bronson: has joined #ruby
[15:38:16] fbandov: has joined #ruby
[15:38:38] skolman_: has joined #ruby
[15:41:35] chouhoulis: has joined #ruby
[15:44:16] crystal77: has joined #ruby
[15:45:16] GodFather: has joined #ruby
[15:47:46] TomyLobo: has joined #ruby
[15:47:54] jwren: has joined #ruby
[15:49:17] swills: has joined #ruby
[15:49:36] Devalo: has joined #ruby
[15:50:42] [Butch]: has joined #ruby
[15:51:25] smathy: has joined #ruby
[15:51:26] jaruga___: has joined #ruby
[15:53:09] chouhoulis: has joined #ruby
[15:53:30] CROOKED^HILLARY^: has joined #ruby
[15:54:56] DoubleMan: has joined #ruby
[15:55:23] gtsai: has joined #ruby
[15:55:34] synthroid: has joined #ruby
[15:55:42] troulouliou_div2: has joined #ruby
[15:56:50] Ropeney: has joined #ruby
[15:56:59] jhack: has joined #ruby
[15:57:04] gtsai_: has joined #ruby
[15:57:21] DoubleMan: This is free hacked videogame for windows http://gamejolt.com/games/spaceshooter-x1/110914/download/build/274495
[15:58:56] jwren: has joined #ruby
[15:59:04] quazimodo: has joined #ruby
[15:59:12] adaedra: (Don't bother to click that link, people.)
[15:59:40] amclain: has joined #ruby
[16:00:06] adaedra: !spam DoubleMan
[16:00:06] ruby[bot]: +bb DoubleMan!*@*$#ruby-banned *!*@2.237.171.7$#ruby-banned
[16:03:23] benlieb: has joined #ruby
[16:04:29] Guest38: has joined #ruby
[16:04:56] jgpawletko: has joined #ruby
[16:09:30] RegulationD: has joined #ruby
[16:09:38] VeryBewitching: has joined #ruby
[16:09:57] kareeoleez: has joined #ruby
[16:10:20] grs: has joined #ruby
[16:12:22] sunnypar1eunji: has joined #ruby
[16:12:32] sunnypar1eunji: anyone familiar with troubleshooting net-ssh?
[16:12:51] ruby[bot]: Just ask your question, if anyone has or can, they will respond.
[16:13:22] sunnypar1eunji: a particular device gets "Net::SSH::Disconnect: connection closed by remote host"
[16:13:26] duoi: has joined #ruby
[16:13:37] sunnypar1eunji: it does not get disconnected when using /usr/bin/ssh on the host machine
[16:13:48] sunnypar1eunji: i have the debug output:
[16:13:50] sunnypar1eunji: https://www.zerobin.net/?ef57dfa22e9e8b0b#FFza/sOIHEZ9Dz9pkx9kOAMpJp+46SQfJWXpHxVlTp0=
[16:14:39] jhass: what do the remote servers logs say?
[16:14:39] CROOKED^HILLARY^: has joined #ruby
[16:14:57] diegoaguilar: has joined #ruby
[16:14:57] sunnypar1eunji: jhass: it's a network device that doesn't have any helpful logs
[16:16:39] PaulCapestany: has joined #ruby
[16:17:25] jhass: mh, entirely possible dropbear and net-ssh disagree about how to implement the SSH protocol or don't share any available ciphers or stuff like that
[16:18:14] RegulationD: has joined #ruby
[16:18:44] mdw: has joined #ruby
[16:19:50] sunnypar1eunji: jhass: i guess that makes sense, though it does surprise me that net-ssh wouldn't have the same ciphers as OpenSSH
[16:20:38] bluOxigen: has joined #ruby
[16:22:00] danostrowski: has joined #ruby
[16:22:01] mistermocha: has joined #ruby
[16:22:44] Kyle__: sunnypar1eunji: Native implementation means it doesn'tshare code with openssh.
[16:23:09] jhass: I'd probably wireshark it and see if there's anything more visible
[16:23:10] smathy: 0.52 is from 2008 sunnypar1eunji, Net::SSH might have the ciphers it's using disabled for security.
[16:23:11] Kyle__: sunnypar1eunji: A bunch of python libraries have the same issues when a new cipher or MAC comes out, or an old one is deemed insecure.
[16:23:36] gtsai: has joined #ruby
[16:25:24] smathy: I'd quickly check if a version of Net::SSH from 2008 works.
[16:25:34] smathy: ...as a debugging step.
[16:26:00] ruby-lang963: has joined #ruby
[16:26:01] polishdub: has joined #ruby
[16:26:12] GinoMan2440: has joined #ruby
[16:26:36] Kyle__: jhass: I'm going to lay money on: defaults in openssh have tightened significantly recently, and they can't agree on a cipher.
[16:26:40] signbit: hey guys not really working with ruby but need to install a gem on a work computer with a heavy proxy
[16:26:53] signbit: I downloaded the gem
[16:27:09] signbit: but it can't pull the specs.4.8.gz
[16:27:24] signbit: so I downloaded it myself and gunzip'ed it
[16:27:34] mikecmpbll: has joined #ruby
[16:27:43] signbit: apparently I need specs before I can do anything
[16:27:53] jhass: signbit: which gem, what for, in what context and what's the command you run to install the downloaded gem file
[16:27:55] signbit: how can I install? this by hand without the web
[16:27:59] sunnypar1eunji: kyle__ jhass smathy: fwiw, here's the ssh -v output from the host OS - https://www.zerobin.net/?38e4b0e62005fc1b#YOVh73s+3Dozd4NA6JWK80XnfaAXGqN+/Ffh3Qc8l7Q=
[16:28:13] griffindy: has joined #ruby
[16:28:27] signbit: I'm just trying to get lolcat install to make sure this works for later
[16:28:33] jhass: sunnypar1eunji: admin vs user might even make a difference
[16:28:39] signbit: I downloaded it from github
[16:28:48] signbit: ran gem install ./lolcat
[16:28:55] Labaleine: has joined #ruby
[16:29:11] jhass: signbit: https://rubygems.org/gems/lolcat download from here instead
[16:29:11] signbit: " gem install ./lolcat ERROR: Could not find a valid gem './lolcat' (>= 0), here is why: Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Connection timed out - connect(2) (https://api.rubygems.org/specs.4.8.gz)"
[16:29:16] sunnypar1eunji: jhass: user is a placeholder, i redacted the actual UN/PW from the paste
[16:29:25] sunnypar1eunji: both used the same, which is not admin
[16:29:39] signbit: okay I'll try that one sec
[16:29:48] Kyle__: signbit: gem --help
[16:30:11] signbit: so I need to worry about this specs?
[16:30:18] signbit: seems like everything requires it
[16:30:34] jhass: sunnypar1eunji: aes128-ctr hmac-sha1 not unlikely to be disabled in net-ssh
[16:30:50] jhass: signbit: no
[16:30:53] Kyle__: signbit: gem --local install whatever.gem
[16:31:22] signbit: cool it's trying
[16:31:40] gtsai: has joined #ruby
[16:31:59] Kyle__: sunnypar1eunji: What does dropbear tell you? I think it should still have good-enough logs to at least give you a clue.
[16:32:03] sunnypar1eunji: jhass: aes128-cbc hmac-sha1 is what my other hosts negotiated
[16:32:29] jhass: https://github.com/net-ssh/net-ssh/blob/master/lib/net/ssh/transport/hmac.rb#L20 mmh still there
[16:33:30] signbit: I'm still getting the same error as before
[16:33:37] sunnypar1eunji: kyle__: it's a network device without an obvious way to drop into a legit still. stuck in the vendor interactive config.
[16:33:38] smathy: jhass, there's no 128 bit though.
[16:33:40] signbit: unable to download data
[16:33:43] danostrowski: has joined #ruby
[16:33:54] sunnypar1eunji: kyle__: can't even find an obvious 'show log' equivalent on it
[16:33:56] signbit: specs.4.8.gz
[16:34:02] Kyle__: sunnypar1eunji: Then test against a different system that's not localhost.
[16:34:10] jhass: smathy: https://github.com/net-ssh/net-ssh/blob/master/lib/net/ssh/transport/cipher_factory.rb#L29
[16:34:52] smathy: Ah, sorry.
[16:35:02] jhass: signbit: what exactly did you do now?
[16:35:11] jhass: smathy: no worries, just using github search here
[16:35:12] signbit: downloaded it from that page
[16:35:13] Devalo: has joined #ruby
[16:35:24] signbit: gem install lolcat.gem
[16:36:00] signbit: I tried the local tag but wasn't and option
[16:36:17] signbit: I have no internet really, have to download everything and install it myself
[16:36:18] jhass: signbit: try ./lolcat.gem or --local as kyle__ suggested
[16:36:24] ljames: has joined #ruby
[16:36:56] signbit: eh it's hanging like crazy
[16:37:14] signbit: If I have the specs.4.8 what do I do with it to make it pick it up
[16:37:23] stardiviner: has joined #ruby
[16:37:38] signbit: is it a gem?
[16:37:59] signbit: because thats what its getting stuck on
[16:38:33] jhass: it's not a gem and nothing that will help you with anything in regards to installing a gem you downloaded
[16:38:35] jhass: forget about it
[16:39:02] sneakerhax: has joined #ruby
[16:39:05] signbit: I fail to believe I can't install gem without internet
[16:39:17] lictor36: has joined #ruby
[16:40:14] sunnypar1eunji: so a different device (using RomSShell_5.40) negotiated with net-ssh to use aes128-cbc hmac-sha1
[16:40:15] CROOKED^HILLARY^: has joined #ruby
[16:40:18] jhass: sunnypar1eunji: also just to cut down error sources, your openssl does support the cipher? Net::SSH::Transport.supported?("aes128-ctr")
[16:40:56] sunnypar1eunji: well when i ran /usr/bin/ssh -v -c aes128-cbc to the dropbear host it worked just fine
[16:41:26] chouhoulis: has joined #ruby
[16:41:38] sunnypar1eunji: so net-ssh indeed uses aes128-cbc just fine, and the dropbear device indeed negotiates aes128-cbc just fine
[16:41:52] sunnypar1eunji: so that's confusing
[16:41:56] sunnypar1eunji: jhass: i'll do that, thanks
[16:42:46] swein: has joined #ruby
[16:43:15] gizmore: has joined #ruby
[16:44:27] sunnypar1eunji: jhass: definitely a ruby novice, how exactly do i run "Net::SSH::Transport.supported?("aes128-ctr")" from irb?
[16:44:50] sunnypar1eunji: i got a "undefined method `supported?'" error when i tried
[16:46:47] jhass: sunnypar1eunji: oh I missed a namespace, Net::SSH::Transport::CipherFactory.supported?("aes128-ctr")
[16:48:33] jhass: sunnypar1eunji: btw net-ssh 3.1.1 is out, you're still on 3.0.2
[16:49:08] phrozen77: has joined #ruby
[16:49:19] am55: has joined #ruby
[16:49:28] GodFather: has joined #ruby
[16:49:30] mistermo_: has joined #ruby
[16:49:58] ChiefAlexander: has joined #ruby
[16:51:49] nankyokusei: has joined #ruby
[16:52:16] Labaleine: has joined #ruby
[16:53:44] Kus: has joined #ruby
[16:55:32] Oclair: has joined #ruby
[16:56:14] EdwardIII: has joined #ruby
[16:56:27] jhass: sunnypar1eunji: it's also curious that you never get to https://github.com/net-ssh/net-ssh/blob/2118da3b5e2b5cb4428b41c0f90704706268540b/lib/net/ssh/transport/algorithms.rb#L184
[16:56:41] jhass: it's like dropbear closes the connection upon seeing the client version
[16:56:52] edavis: has joined #ruby
[16:57:45] mistermocha: has joined #ruby
[16:58:16] tomchapin: has joined #ruby
[16:59:23] Dimik: has joined #ruby
[16:59:57] Madplatypus: has joined #ruby
[16:59:59] Torrieri: has joined #ruby
[17:01:10] jaguarmagenta: has joined #ruby
[17:03:52] tlaxkit: has joined #ruby
[17:05:11] curses: has joined #ruby
[17:06:10] mdw7: has joined #ruby
[17:09:28] CJKinni: has joined #ruby
[17:10:10] cdg: has joined #ruby
[17:10:15] rikai: has joined #ruby
[17:14:32] kgrz: has joined #ruby
[17:15:00] jgpawletko: has joined #ruby
[17:15:24] firstdayonthejob: has joined #ruby
[17:15:56] stannard: has joined #ruby
[17:17:54] djbkd: has joined #ruby
[17:21:45] nobitanobi: has joined #ruby
[17:22:23] ico: has joined #ruby
[17:22:46] ramfjord: has joined #ruby
[17:22:48] gtsai: has joined #ruby
[17:23:37] banister: has joined #ruby
[17:23:37] davedev24: has joined #ruby
[17:24:53] last_staff: has joined #ruby
[17:25:46] grs: has joined #ruby
[17:27:15] mjuszczak: has joined #ruby
[17:29:39] wreet: has joined #ruby
[17:29:39] wreet: has joined #ruby
[17:29:52] wreet: has left #ruby: ()
[17:30:12] danostrowski: has joined #ruby
[17:30:54] Nahra: has joined #ruby
[17:31:12] tildes: has joined #ruby
[17:32:30] noobsu: has joined #ruby
[17:35:37] bronson: has joined #ruby
[17:36:44] nanoz: has joined #ruby
[17:36:53] zyzioziom: has joined #ruby
[17:37:10] Devalo: has joined #ruby
[17:45:09] danostrowski: has joined #ruby
[17:45:51] Devalo: has joined #ruby
[17:45:56] postmodern: has joined #ruby
[17:46:34] k3rn31: has joined #ruby
[17:48:58] sfmk: has joined #ruby
[17:50:03] babblebre: has joined #ruby
[17:50:15] noobsu: has joined #ruby
[17:50:50] beauby: has joined #ruby
[17:51:20] blackmesa: has joined #ruby
[17:52:49] nischay: has joined #ruby
[17:52:54] |2701: has joined #ruby
[17:53:15] whathappens: has joined #ruby
[17:55:05] zenlot6: has joined #ruby
[17:57:46] RegulationD: has joined #ruby
[18:00:52] zenlot6: has joined #ruby
[18:01:30] mistermocha: has joined #ruby
[18:02:02] lictor36: has left #ruby: ()
[18:02:14] RegulationD: has joined #ruby
[18:02:41] nobitanobi: has joined #ruby
[18:02:41] kirun: has joined #ruby
[18:04:06] postmodern: has joined #ruby
[18:04:40] diegoaguilar: has joined #ruby
[18:06:10] sunnypar1eunji: jhass: i was using 3.1.1, but purposely downgraded in hopes it would fix the problem
[18:07:03] yfeldblum: has joined #ruby
[18:07:07] sunnypar1eunji: but yeah i agree, it's like it doesn't even attempt to negotiate the algorithm
[18:07:26] sunnypar1eunji: just gets the client version and hangs for awhile before closing the connection
[18:07:33] chipotle: has joined #ruby
[18:07:38] mic_e: has joined #ruby
[18:09:19] wrkrcoop: has joined #ruby
[18:09:27] wrkrcoop: i’m trying to call JSON.parse on this string … https://gist.github.com/anonymous/332c09f6cc211630b2ea3d5cb7c83595
[18:09:37] sunnypar1eunji: jhass: Net::SSH::Transport::CipherFactory.supported?("aes128-ctr") end up true, btw
[18:09:47] wrkrcoop: anyone see anything worng with it, im getting a parse error, unexpected token
[18:09:48] jhass: guessed so
[18:10:04] jhass: wrkrcoop: json doesn't allow single quotes
[18:10:09] jhass: where do you get that from?
[18:10:12] noobsu: has joined #ruby
[18:10:15] wrkrcoop: i made it up for my test
[18:10:23] jhass: there you have it then
[18:10:31] wrkrcoop: but i cant get it to format correctly
[18:11:00] baweaver: >> require 'json'; {a: 1}.to_json
[18:11:02] ruby[bot]: baweaver: # => "{\"a\":1}" (https://eval.in/574458)
[18:13:38] ethicalhacker: has joined #ruby
[18:14:09] martee: has joined #ruby
[18:14:19] martee: jhass: sorry i got disconnected. thanks for that info
[18:14:22] martee: appreciate it
[18:14:23] Coldblackice: has joined #ruby
[18:14:53] rbennacer: has joined #ruby
[18:16:49] sunnypar1eunji: jhass: i finally found an event-log for the dropbear device, but all it logs is "user logged in" and "user logged out". since our ssh never gets that far, it lgs none of the failed attempts
[18:17:04] spk: has joined #ruby
[18:17:08] hutch34: has joined #ruby
[18:18:04] DanyC: has joined #ruby
[18:18:46] jhass: looks like the majority of dropbears configuration is compile time anyway
[18:18:47] tildes: has joined #ruby
[18:18:51] jhass: especially debug stuff
[18:18:54] baweaver: ethicalhacker: freenode#ruby
[18:20:19] Cohedrin: has joined #ruby
[18:22:02] tomphp: has joined #ruby
[18:23:08] ethicalhacker: has left #ruby: ("Leaving")
[18:23:22] rickmasta: has joined #ruby
[18:25:13] aegis3121: has joined #ruby
[18:25:47] baweaver: >> module Enumerable;def >(o)map(&o) end end; [1,2,3] >-> x { x * 5 } >-> x { x / 2 }
[18:25:48] ruby[bot]: baweaver: # => [2, 5, 7] (https://eval.in/574477)
[18:26:07] arlek_: has joined #ruby
[18:26:30] cpup: has joined #ruby
[18:27:35] Eiam_: has joined #ruby
[18:29:02] sunnypar1eunji: jhass: is there any way to have net-ssh falsely advertise its protocol verison as openssh?
[18:29:08] sunnypar1eunji: likely not, but grasping at straws
[18:29:18] sumobob: has joined #ruby
[18:29:40] der-landgraf: has joined #ruby
[18:30:04] jhass: sunnypar1eunji: you can just reset the constant
[18:30:27] habitullence: has joined #ruby
[18:30:40] jhass: https://github.com/net-ssh/net-ssh/blob/3-1-release/lib/net/ssh/transport/server_version.rb#L18
[18:30:49] habitullence: How would you loop over an array indefinitely?
[18:31:04] jhass: Net::SSH::Transport::ServerVersion::PROTO_VERSION = "Whatever"
[18:31:11] jhass: habitullence: Enumerable#cycle
[18:31:23] elifoster: has joined #ruby
[18:31:53] habitullence: jhass: perfect, thank you
[18:33:08] dmr8: has joined #ruby
[18:33:33] habitullence: jhass: is there a way to give it a starting point?
[18:33:41] lxsameer: has joined #ruby
[18:34:04] habitullence: jhass: ah sorry, nm http://stackoverflow.com/questions/26597835/set-starting-point-for-cycle
[18:34:27] Eiam_: has joined #ruby
[18:34:32] sunnypar1eunji: jhass: looks to do the same when set to 'SSH-2.0-OpenSSH_6.7p1 Debian-5+deb8u1'
[18:34:34] jhass: I wonder if it resets beyond a Enumerable#skip though
[18:34:40] jhass: sunnypar1eunji: too bad
[18:34:58] jenrzzz: has joined #ruby
[18:34:58] jenrzzz: has joined #ruby
[18:35:05] jhass: oh, skip wasn't ruby?
[18:36:26] codecop: has joined #ruby
[18:36:36] krobzaur: has joined #ruby
[18:37:22] codecop: has joined #ruby
[18:37:29] cpup: has joined #ruby
[18:41:58] gtsai: has joined #ruby
[18:42:53] arlek_: has joined #ruby
[18:44:18] CJKinni`: has joined #ruby
[18:45:38] Jardayn: has joined #ruby
[18:45:39] danostrowski: has joined #ruby
[18:46:09] ruurd: has joined #ruby
[18:47:52] ruby-lang522: has joined #ruby
[18:48:36] tacit7: has joined #ruby
[18:52:41] nankyokusei: has joined #ruby
[18:54:08] ChiefAlexander: has joined #ruby
[18:55:08] ruby-lang522: Is there an array method in ruby to return an array minus an item at a given position, without modifying the original array? Kind of the opposite of array.slice(n) -- I want the array returned rather than array[n].
[18:57:27] catpoop: has joined #ruby
[18:57:34] jackjackdripper: has joined #ruby
[18:58:14] Torrieri: has joined #ruby
[18:58:34] mnrmnaugh: has joined #ruby
[18:59:57] aegis3121: I mean, using Array#delete_at will return array[n], but the array you're left with will have it removed.
[19:00:37] noobsu_: has joined #ruby
[19:01:11] noService: has joined #ruby
[19:01:52] ruby-lang522: Thanks for the response aegis. I need the original array to stay intact.
[19:01:53] jaguarmagenta: has joined #ruby
[19:02:18] crystal77: has joined #ruby
[19:02:29] jhass: ruby-lang522: nope. If you have not only the index but the value you want to remove too and it's unique, you could array - [value]
[19:02:49] Papierkorb: else, there's always .dup
[19:03:13] jhass: well or you could do .reject.with_index I guess
[19:03:47] jhass: or [*array[0..i-1], *array[i+1..-1]]
[19:03:47] gregf: has joined #ruby
[19:03:52] jhass: all not really pretty
[19:03:55] blaxter: has joined #ruby
[19:04:34] jhass: dup.tap {|a| a.delete_at(i) } is probably your best bet
[19:04:48] aegis3121: but that's assuming rails/active support, right?
[19:05:01] tildes: has joined #ruby
[19:05:02] ruby-lang522: I was doing [*array[0..i-1], *array[i+1..-1]], but yeah, it seems too ugly for ruby.
[19:05:14] ruby-lang522: not using Rails, but I'll remember that.
[19:05:22] ruby-lang522: Thanks for the discussion.
[19:05:24] tobiasvl: monkey patch Array!
[19:05:26] jhass: it does not require activesupport
[19:05:36] jhass: Object#tap is in core for a long time now
[19:05:41] aegis3121: Ah, okay. Was going off of some old documentation from a gem.
[19:05:53] oncall-pokemon: has joined #ruby
[19:07:24] whathapp_: has joined #ruby
[19:08:06] ruby-lang522: I'm afraid of monkeypatching. Won't a nun show up and start beating me with a stick?
[19:08:24] mloy: has joined #ruby
[19:09:30] JakFrist: has joined #ruby
[19:09:54] djbkd: has joined #ruby
[19:10:18] jhack: has joined #ruby
[19:11:01] nfk: has joined #ruby
[19:11:04] martee: has joined #ruby
[19:11:29] roamingdog: has joined #ruby
[19:13:19] swein: has joined #ruby
[19:15:16] adaedra: People will have different opinions, but I guess it's better if you can avoid it, especially now that we have refinements which are a bit cleaner
[19:15:40] hutch34_: has joined #ruby
[19:15:41] adaedra: But that's not as bad as Ox0dea'isms.
[19:15:53] tobiasvl: yeah, I was mostly kidding. but it is an option
[19:16:03] cpup: has joined #ruby
[19:18:10] ruby-lang522: the joys of cowboy coding...
[19:18:49] sdwrage: has joined #ruby
[19:22:05] crazydiamond: has joined #ruby
[19:24:22] martee: has joined #ruby
[19:24:48] shakes: has joined #ruby
[19:25:48] jenrzzz: has joined #ruby
[19:26:32] failshell: has joined #ruby
[19:26:44] pulpfiction: has joined #ruby
[19:27:02] mistermocha: has joined #ruby
[19:27:12] pulpfiction: am i allowed to ask ruby on rails questions here?
[19:27:23] Zarthus: there's a #rubyonrails
[19:28:28] swein: has joined #ruby
[19:28:49] adaedra: yep, #RubyOnRails is the place for Rails questions
[19:30:05] benlieb: has joined #ruby
[19:30:36] Devalo: has joined #ruby
[19:31:06] elemenn: I heard they create gui interface using visual basic to track your ip address
[19:31:15] elemenn: if you ask rails questions here
[19:31:22] havenwood: we will answer them
[19:31:34] troulouliou_dev: has joined #ruby
[19:31:55] Puffball_: has joined #ruby
[19:32:03] adaedra: TraceIP.exe elemenn
[19:32:06] adaedra: oops, wrong window
[19:32:08] havenwood: pulpfiction: Ruby questions are the favorite type of question here! :)
[19:32:33] pulpfiction: havenwood, yup, i figured :) thanks, guys!
[19:33:25] chipotle: has joined #ruby
[19:36:53] nerium: has joined #ruby
[19:38:04] bronson: has joined #ruby
[19:38:10] danostrowski: has joined #ruby
[19:39:27] beauby: has joined #ruby
[19:40:34] n_blownapart: has joined #ruby
[19:40:46] Es0teric: has joined #ruby
[19:41:04] blackmesa: has joined #ruby
[19:41:36] aries_liuxueyang: has joined #ruby
[19:42:06] mikeric: has joined #ruby
[19:42:06] stannard: has joined #ruby
[19:43:50] Devalo: has joined #ruby
[19:44:23] emilkarl: has joined #ruby
[19:45:26] dreinull: not strictly ruby… I use slimer.js to create pdfs from views in sinatra. Doesnt matter. If one route is called it starts slimerjs which creates the pdf and returns it. That's the context. Is there a ruby way of starting slimerjs, i.e. an external service and keeping an eye on it? I want to keep slimer running and just get output from it once it creates some.
[19:46:07] adaedra: You could look at execjs
[19:46:18] dopie: has joined #ruby
[19:48:04] Papierkorb: execjs with the therubyracer gem, or the ruby racer alone
[19:48:34] Papierkorb: (well, depends on how long slimerjs takes to boot and to render a PDF if it's actually worth using the racer gem)
[19:48:50] dreinull: Papierkorb, yes, I think it would help.
[19:48:57] eL_bAmba: has joined #ruby
[19:49:00] dreinull: ok, will look at those.
[19:49:37] JoshGlzBrk: has joined #ruby
[19:49:56] toretore: looks like it's just an executable, so i'd just use popen
[19:50:20] elifoster: has joined #ruby
[19:53:39] noobsu: has joined #ruby
[19:55:50] tjohnson: has joined #ruby
[19:57:22] kareeoleez: has joined #ruby
[19:57:41] benlieb: What editors offer the best code "exploration" in ruby? I've been using vim for 14 years. Recently I'm working a lot with big code bases I'm not familiar with, and I'm feeling that there must be a better way to explore code, jump to method defs, classes, modules...
[19:58:20] chip_: has joined #ruby
[19:59:16] sdwrage: has joined #ruby
[20:00:24] adaedra: vim should be able to do it just fine.
[20:00:51] adaedra: use ripper-tags to generate tags, as it handles ruby better than the default ctags for tag-based navigation.
[20:01:21] jenrzzz: has joined #ruby
[20:01:22] havenwood: benlieb: Jetbrains RubyMine is one of the notable Ruby IDEs. Do you have vim all decked out for Ruby?
[20:02:12] tomphp: has joined #ruby
[20:02:18] snowy: has joined #ruby
[20:02:33] RegulationD: has joined #ruby
[20:02:43] Papierkorb: benlieb: I also use pry to 'explore' code
[20:02:51] bougyman: I use pry for *
[20:02:58] bougyman: I can't believe my mentor doesn't like it.
[20:03:30] Papierkorb: in which case you'd also need to change the tense of the word after
[20:03:46] benlieb: Papierkorb: I use pry for debugging, but I'm wanting to be able to jump to method defs, variable assignment, modules, classes, etc.
[20:03:55] benlieb: Papierkorb: does pry have something like that I don't know about.
[20:03:59] Papierkorb: benlieb: $ foo.the_method
[20:04:06] Papierkorb: benlieb: yes, literal dollar sign
[20:04:08] ur5us: has joined #ruby
[20:04:16] yfeldblum: has joined #ruby
[20:04:36] bougyman: i use pry for all sorts of neat shit. most often to have a live repl for running apps.
[20:04:40] martee: has joined #ruby
[20:05:01] bougyman: Thread.new { while true; binding.pry_remote; end }, etc.
[20:05:02] noobsu: has joined #ruby
[20:05:16] Papierkorb: I use it to fiddle with Java stuff at work. much faster and easier than to fight with Java directly
[20:07:05] Papierkorb: bougyman: I didn't know about pry-remote until now, nice
[20:08:08] benlieb: havenwood: I have the rails plugin for vim, but I don't use it that much, maybe I should look back into that.
[20:08:28] adaedra: it's really good to move between files
[20:08:30] benlieb: havenwood: looks like ruby mine requires a license. Any free options for ruby
[20:08:43] adaedra: for the rest, I base myself on tags and file names.
[20:09:25] adaedra: fzf/unite/ctrlp and consorts make browsing easier
[20:09:48] havenwood: benlieb: maybe nerdtree and ruby-vim as well
[20:09:52] havenwood: https://github.com/scrooloose/nerdtree
[20:09:55] havenwood: https://github.com/vim-ruby/vim-ruby
[20:10:14] adaedra: but netrw is awesome already!
[20:10:38] bougyman: Papierkorb: I use it as a console for a cinch bot: https://gist.github.com/bougyman/7579526080b0070b9fa811f27211da47
[20:10:52] tildes: has joined #ruby
[20:11:41] sfmk: has joined #ruby
[20:16:12] nando293921: has joined #ruby
[20:17:56] noobsu: has joined #ruby
[20:18:50] Devalo: has joined #ruby
[20:19:08] benlieb: havenwood: is there a command in ruby-vim or rails-vim that when on the line: include Aca::Support::Employer, it will open the file that defines this?
[20:20:34] adaedra: C-], if you have tags generated
[20:20:48] chip_: has joined #ruby
[20:20:55] havenwood: benlieb: i think recent rails-vim does gf with includes as well
[20:20:58] thirax: has joined #ruby
[20:21:16] havenwood: 4.3+ maybe?
[20:21:46] rbennacer: has joined #ruby
[20:21:55] RegulationD: has joined #ruby
[20:22:10] nettoweb: has joined #ruby
[20:22:59] benlieb: havenwood: hm, seems buggy. It worked on a simple module (One word without ::), failed on another with error of can't find in path, and modules like This::that or This::That::TheOther, it doesn't find it but instead opens a dir
[20:23:21] gizless: has joined #ruby
[20:24:14] rickmasta: has joined #ruby
[20:24:22] blackgoat: has joined #ruby
[20:25:29] wuyin: has joined #ruby
[20:27:19] roamingdog: has joined #ruby
[20:27:23] mostlybadfly: has joined #ruby
[20:27:42] mistermocha: has joined #ruby
[20:32:35] Puffball: has joined #ruby
[20:34:12] crystal77: has joined #ruby
[20:35:38] gizmore: has joined #ruby
[20:36:29] jenrzzz: has joined #ruby
[20:36:37] gizmore|2: has joined #ruby
[20:37:13] benlieb: havenwood: not working on partials either. sad sad face
[20:38:10] Xiti: has joined #ruby
[20:38:24] bruce_lee: has joined #ruby
[20:38:37] Devalo: has joined #ruby
[20:39:11] grs: has joined #ruby
[20:40:06] Devalo: has joined #ruby
[20:40:26] noobsu: has joined #ruby
[20:41:49] shevy: it all sucks!
[20:41:50] blackmesa: has joined #ruby
[20:42:50] _whitelogger: has joined #ruby
[20:44:52] rbennacer: has joined #ruby
[20:45:33] diego1: has joined #ruby
[20:46:34] zyzioziom: has joined #ruby
[20:48:08] diego1: has joined #ruby
[20:49:11] freerobby: has joined #ruby
[20:49:19] dome22xl: has joined #ruby
[20:49:48] dome22xl: has left #ruby: ()
[20:50:19] eljimmy: has joined #ruby
[20:50:37] centrx: has joined #ruby
[20:51:40] stannard_: has joined #ruby
[20:53:33] nankyokusei: has joined #ruby
[20:53:55] blackmesa: has joined #ruby
[20:54:04] rbennacer: has joined #ruby
[20:55:45] JakFrist: has joined #ruby
[20:57:04] allcentury: has joined #ruby
[20:57:31] dreinull: You're too general.
[20:57:43] elementaru: has joined #ruby
[20:57:56] roamingdog: has joined #ruby
[20:58:07] diego1: has joined #ruby
[20:58:08] dreinull: solotyping is worse than stereotyping.
[20:58:29] nettoweb: has joined #ruby
[20:59:41] rbennacer: has joined #ruby
[21:00:36] sdwrage: has joined #ruby
[21:00:42] noobsu_: has joined #ruby
[21:01:38] noobsu: has joined #ruby
[21:02:44] jaguarmagenta: has joined #ruby
[21:03:14] opus_: has joined #ruby
[21:03:25] eljimbo: has joined #ruby
[21:03:25] Torrieri: has joined #ruby
[21:03:26] Torrieri: has joined #ruby
[21:03:50] noobsu: has joined #ruby
[21:04:12] monod: has joined #ruby
[21:05:30] mjuszczak: has joined #ruby
[21:05:31] DanyC: has joined #ruby
[21:08:19] rbennacer: has joined #ruby
[21:09:32] Weavel: has joined #ruby
[21:09:49] JoshGlzBrk: has joined #ruby
[21:11:55] JoshGlzBrk: has joined #ruby
[21:12:59] roamingdog: has joined #ruby
[21:13:59] eL_bAmba: has joined #ruby
[21:14:05] noobsu: has joined #ruby
[21:14:31] djbkd: has joined #ruby
[21:15:40] mjuszczak: has joined #ruby
[21:16:12] craigp: has joined #ruby
[21:19:39] griffindy: has joined #ruby
[21:22:09] rbennacer: has joined #ruby
[21:23:47] tvw: has joined #ruby
[21:25:23] sdwrage: has joined #ruby
[21:25:58] graft: has joined #ruby
[21:25:58] graft: has joined #ruby
[21:27:46] huyderman: has joined #ruby
[21:27:52] smathy: has joined #ruby
[21:29:08] roamingdog: has joined #ruby
[21:29:21] Kneecaps: has joined #ruby
[21:29:49] djbkd: has joined #ruby
[21:30:35] djbkd: has joined #ruby
[21:32:14] danostrowski: has joined #ruby
[21:32:15] ftj: has joined #ruby
[21:33:14] banister: has joined #ruby
[21:35:46] rbennacer: has joined #ruby
[21:37:48] cpup: has joined #ruby
[21:38:16] mjuszczak: has joined #ruby
[21:38:59] benlieb: Papierkorb: I'm loving this $ in pry
[21:39:19] shevy: what is $ is that show source?
[21:39:24] Papierkorb: benlieb: replace $ with ? to make pry show you the docs :)
[21:39:27] bronson: has joined #ruby
[21:39:40] benlieb: what do I do what I don't know where a method comes from?
[21:39:56] havenwood: benlieb: ask it its #owner
[21:39:57] benlieb: Papierkorb: i.e., it could be in any included module
[21:40:09] havenwood: >> method(:puts).owner
[21:40:10] ruby[bot]: havenwood: # => Kernel (https://eval.in/574595)
[21:40:13] Papierkorb: benlieb: some_object.the_method will work too
[21:40:19] tomphp: has joined #ruby
[21:40:26] Papierkorb: benlieb: Just as well as TheClass#the_method
[21:40:42] havenwood: benlieb: #source_location as well
[21:40:52] havenwood: benlieb: ls Method
[21:41:32] Papierkorb: havenwood: I didn't know that you could ls use like that .. -.-;
[21:41:44] beauby: has joined #ruby
[21:41:44] shevy: havenwood knows all the things
[21:41:48] martee: has joined #ruby
[21:42:34] benlieb: Papierkorb: some_object.the_method will just call the method no, or do you mean $ some_object.the_method
[21:42:45] Papierkorb: benlieb: the latter, yes
[21:43:16] benlieb: yeah I know that one but I'm asking about when I don't know where the method comes from
[21:43:38] benlieb: and the other tricky thing is that this has to actually be in context
[21:44:28] adaedra: binding.pry ftw
[21:44:37] havenwood: benlieb: you want to know the owner class/module of the method or the source location?
[21:44:51] havenwood: benlieb: ls some_object(:the_method)
[21:44:52] benlieb: havenwood: source location
[21:45:00] havenwood: err, miswrote that
[21:45:11] havenwood: benlieb: some_object.method(:the_method).source_location
[21:45:41] havenwood: benlieb: (Doesn't work for methods implemented in C)
[21:46:20] havenwood: benlieb: http://ruby-doc.org/core/Method.html#method-i-source_location
[21:46:21] mtkd: has joined #ruby
[21:46:38] Papierkorb: $ does work for C functions however. Sadly, not for Java methods in JRuby :(
[21:46:47] gregf: has joined #ruby
[21:46:55] benlieb: that is the best thing ever
[21:47:39] rrichardsr3: has joined #ruby
[21:48:15] havenwood: method(:papierkorb).to_java.source_location(org.jruby.Ruby.getGlobalRuntime().getCurrentContext())
[21:48:53] johnmilton: has joined #ruby
[21:48:58] headius: oh in pry?
[21:49:08] Kneecaps: has joined #ruby
[21:49:18] havenwood: yeah, in Pry though I'm not sure how well it actually works?
[21:49:38] havenwood: https://github.com/pry/pry/issues/242
[21:49:42] rbennacer: has joined #ruby
[21:49:46] Papierkorb: Wouldn't be the first pry hack in my .pryrc ...
[21:50:51] headius: I suppose it can bring up MRI source because most people build from source?
[21:51:09] headius: it wouldn't be a big deal for it to fetch JRuby source...it's all out there, neatly published
[21:51:20] Papierkorb: headius: iirc it's part of the pry-doc gem, and for gems, it just goes into the gems ext/ directory
[21:51:28] craigp: has joined #ruby
[21:51:44] nb_bez___: has joined #ruby
[21:53:00] headius: Papierkorb: does it fetch proper source for current Ruby version then, I assume?
[21:53:07] ss_much: has joined #ruby
[21:53:18] Papierkorb: headius: I have no idea tbh
[21:53:24] headius: JRuby exts don't have to ship source
[21:53:31] headius: since they don't have to build
[21:53:40] JoshGlzBrk: has joined #ruby
[21:53:44] headius: they could for this, I suppose
[21:54:16] Papierkorb: well best effort of course, if some JAR doesn't bundle sources then it can't find them of course. same for JRuby gems.
[21:54:51] cpup: has joined #ruby
[21:55:04] tacit7`: has joined #ruby
[21:55:39] JoshGlzBrk: has joined #ruby
[21:58:14] craigp: has joined #ruby
[21:58:49] rbennacer: has joined #ruby
[21:59:05] Kneecaps: has left #ruby: ()
[22:00:16] mwlang: has joined #ruby
[22:02:32] terlar: has joined #ruby
[22:03:02] duncannz: has joined #ruby
[22:04:01] hutch34_: has joined #ruby
[22:04:07] duncannz: has joined #ruby
[22:05:34] mjuszczak: has joined #ruby
[22:06:13] mjuszczak: has joined #ruby
[22:06:20] johnmilton: has joined #ruby
[22:06:28] ocbtec: has joined #ruby
[22:07:02] ocbtec: has joined #ruby
[22:08:49] cpup: has joined #ruby
[22:09:50] colegatron: has joined #ruby
[22:10:16] diegoviola: has joined #ruby
[22:10:25] freerobby: has joined #ruby
[22:10:28] kobain: has joined #ruby
[22:12:06] mic_e: has joined #ruby
[22:12:15] rbennacer: has joined #ruby
[22:12:19] banister: has joined #ruby
[22:13:05] rrichardsr3: has joined #ruby
[22:13:33] chipotle: has joined #ruby
[22:16:16] gnufied: has joined #ruby
[22:16:21] postmodern: has joined #ruby
[22:16:25] elifoster: has joined #ruby
[22:19:24] mikeric: has joined #ruby
[22:19:52] tacit7``: has joined #ruby
[22:21:16] mjuszczak: has joined #ruby
[22:24:16] GodFather: has joined #ruby
[22:24:50] mjuszczak: has joined #ruby
[22:25:01] rickmasta: has joined #ruby
[22:26:11] rbennacer: has joined #ruby
[22:27:48] GodFather: has joined #ruby
[22:28:16] diegoaguilar: has joined #ruby
[22:29:29] Devalo: has joined #ruby
[22:31:10] rbennacer: has joined #ruby
[22:31:55] diegoviola: has joined #ruby
[22:31:59] diegoviola: has joined #ruby
[22:33:14] Gasher: has joined #ruby
[22:33:43] qasaur: has joined #ruby
[22:35:42] zenlot: has joined #ruby
[22:36:56] sumobob: has joined #ruby
[22:39:29] SuperLag: has joined #ruby
[22:39:41] ramfjord_: has joined #ruby
[22:41:39] danostrowski: has joined #ruby
[22:41:45] djbkd: has joined #ruby
[22:43:06] zyzioziom: has joined #ruby
[22:43:53] zyzioziom: has joined #ruby
[22:43:56] graft: has joined #ruby
[22:46:02] that2: has joined #ruby
[22:46:22] that2: has left #ruby: ()
[22:46:35] hxegon: It's fine if 2 threads call Queue#push at the same time right?
[22:48:13] havenwood: hxegon: one will get the mutex lock before the other
[22:48:17] segy: has joined #ruby
[22:48:42] hxegon: havenwood: but assuming order doesn't matter it will be fine right? #push will block until it can take it?
[22:48:55] havenwood: hxegon: yup, threadsafe
[22:49:38] hxegon: thx havenwood. I've completely avoided concurrent/parrallel programming until recently, so I'm trying to sanity check everything
[22:52:08] hutch34_: has joined #ruby
[22:53:21] nobitanobi: has joined #ruby
[22:53:29] whathappens: has joined #ruby
[22:53:42] duckpuppy: has joined #ruby
[22:54:24] nankyokusei: has joined #ruby
[22:55:02] danostrowski: has joined #ruby
[22:55:04] skweek: has joined #ruby
[22:55:09] Es0teric: has joined #ruby
[22:57:52] danostrowski: has joined #ruby
[22:58:28] banister: has joined #ruby
[22:58:50] ramfjord: has joined #ruby
[22:59:07] chipotle: has joined #ruby
[22:59:32] ReK2: has joined #ruby
[22:59:32] ReK2: has joined #ruby
[23:00:06] whathappens: has joined #ruby
[23:01:07] nettoweb: has joined #ruby
[23:01:52] catpoop: has left #ruby: ("Leaving")
[23:02:12] skade: has joined #ruby
[23:02:41] mnrmnaugh: has joined #ruby
[23:03:26] jaguarmagenta: has joined #ruby
[23:05:03] ur5us: has joined #ruby
[23:05:24] ur5us: has joined #ruby
[23:05:38] bobbycvi: has joined #ruby
[23:06:02] shinnya: has joined #ruby
[23:06:34] JesseH: has joined #ruby
[23:08:27] n1x-nz: has joined #ruby
[23:08:42] eljimbo: has joined #ruby
[23:16:35] eljimmy: has joined #ruby
[23:17:12] sdwrage: has joined #ruby
[23:17:37] Biopandemic: has joined #ruby
[23:20:12] zyzioziom1: has joined #ruby
[23:21:14] Cohedrin_: has joined #ruby
[23:21:42] mwlang: has joined #ruby
[23:21:49] chopin: has joined #ruby
[23:21:54] majuscule: any ideas on a cleaner way of doing combinations than this? %w(b c d e).map{ |d| "sd#{d}" }
[23:22:20] majuscule: (i think this example is short enough to write out, but for sake of discussion)
[23:22:49] Papierkorb: in general? no. in context? Dir["/dev/sd[bcde]"]
[23:23:51] majuscule: ahh nice :-)
[23:24:01] majuscule: that's actually perfect for me, thanks.
[23:24:41] majuscule: or erm, not quite, but w/e, it's cool
[23:26:02] jolts: has joined #ruby
[23:26:58] benlieb: has joined #ruby
[23:27:53] trinaldi: has joined #ruby
[23:34:22] centrx: has joined #ruby
[23:36:45] hahuang65: has joined #ruby
[23:40:34] cdg: has joined #ruby
[23:41:49] bronson: has joined #ruby
[23:42:09] chopin: has joined #ruby
[23:42:19] djbkd: has joined #ruby
[23:42:30] beauby: has joined #ruby
[23:42:53] hahuang61: has joined #ruby
[23:43:55] blackmesa: has joined #ruby
[23:45:03] dionyziz: has joined #ruby
[23:46:37] dionyziz: Hi folks, I would like to replace a needle with a replacement string in a haystack string in ruby. I'm using this example: s = "replace me"; s.sub!("me", "you \\`"). I expect the replaced string to read: replace you \` i.e. to finish with the three characters space, backslash and backtick
[23:47:01] dionyziz: This doesn't work because the \` sequence is a backreference in ruby. So I tried escaping it using Regexp.escape like this: s.sub!("me", Regexp.escape("you \\`"))
[23:47:10] rkazak: has joined #ruby
[23:47:50] dionyziz: However, in this case the replaced string reads: replace you\ \` i.e. more special characters, such as spaces, are escaped, which have no special meaning in the replacement string.
[23:48:03] dionyziz: How do I just replace a string with another string within a string ignoring backreferences completely?
[23:48:29] ico: has joined #ruby
[23:49:28] jhack: has joined #ruby
[23:50:13] dionyziz: I figured it out. Using block syntax does the trick. Thanks!
[23:52:46] danostrowski: has joined #ruby
[23:54:18] curses: has joined #ruby
[23:55:21] chipotle: has joined #ruby
[23:55:38] ur5us: has joined #ruby
[23:56:33] djbkd: has joined #ruby
[23:59:12] skweek: has joined #ruby
[23:59:15] Kus: has joined #ruby
[23:59:45] Torrieri: has joined #ruby
[23:59:45] Torrieri: has joined #ruby
[23:59:53] Cohedrin: has joined #ruby