« Back to channel list

#ruby - 21 March 2018

« Back 1 day Forward 1 day »
[00:00:20] tolerablyjake: has joined #ruby
[00:00:29] jottr: has joined #ruby
[00:00:47] konsolebox: has joined #ruby
[00:03:26] netherwolfe: has joined #ruby
[00:09:03] karapetyan: has joined #ruby
[00:10:13] clampy: has joined #ruby
[00:12:53] duckpuppy: has joined #ruby
[00:17:10] kn-928: has joined #ruby
[00:18:00] Creatornator: has joined #ruby
[00:20:38] beremenushka3: has joined #ruby
[00:25:36] roca: has joined #ruby
[00:26:18] Toggi3: has joined #ruby
[00:27:10] Creatornator: has joined #ruby
[00:29:18] nowhereman_: has joined #ruby
[00:40:58] alfiemax: has joined #ruby
[00:42:32] graft: has joined #ruby
[00:42:32] graft: has joined #ruby
[00:43:44] Creatornator: has joined #ruby
[00:45:48] truenito: has joined #ruby
[00:45:53] jottr: has joined #ruby
[00:46:33] cdg: has joined #ruby
[00:47:51] Creatornator: has joined #ruby
[00:48:37] robscomputer: has joined #ruby
[00:49:04] konsolebox: has joined #ruby
[00:51:33] workmad3: has joined #ruby
[00:52:17] Creatornator: has joined #ruby
[00:52:58] duderonomy: has joined #ruby
[00:56:42] cdg: has joined #ruby
[00:58:31] Creatornator: has joined #ruby
[00:59:19] jottr: has joined #ruby
[01:06:03] Creatornator: has joined #ruby
[01:08:17] dr3wo: has joined #ruby
[01:12:40] duckpuppy: has joined #ruby
[01:26:04] nadir: has joined #ruby
[01:26:22] Yzguy: has joined #ruby
[01:28:39] robscomputer: has joined #ruby
[01:29:25] cdg: has joined #ruby
[01:30:31] guacamole: has joined #ruby
[01:30:31] guacamole: has joined #ruby
[01:30:44] darix: has joined #ruby
[01:37:39] dtzuzu: has joined #ruby
[01:39:48] alfiemax: has joined #ruby
[01:40:49] ramfjord: has joined #ruby
[01:40:58] robscomputer: has joined #ruby
[01:41:02] jottr: has joined #ruby
[01:45:21] Creatornator: has joined #ruby
[01:46:37] apparition: has joined #ruby
[01:48:26] jottr: has joined #ruby
[01:52:30] erlend: has joined #ruby
[01:57:17] dstrunk: has joined #ruby
[02:00:52] ciscam: has joined #ruby
[02:04:53] Guest33581: has joined #ruby
[02:10:44] kapil___: has joined #ruby
[02:17:06] duckpuppy: has joined #ruby
[02:24:07] pilne: has joined #ruby
[02:28:37] dr3wo: has joined #ruby
[02:28:58] stairmast0r: has joined #ruby
[02:29:36] chatchatt: has joined #ruby
[02:33:22] jottr: has joined #ruby
[02:33:32] alfiemax: has joined #ruby
[02:39:04] gizmore: has joined #ruby
[02:40:35] jottr: has joined #ruby
[02:41:26] ogres: has joined #ruby
[02:43:53] nowhere_man: has joined #ruby
[02:45:11] harrycs: has joined #ruby
[02:51:52] workmad3: has joined #ruby
[02:55:10] pd: has joined #ruby
[02:56:54] roca: has joined #ruby
[02:59:39] dinfuehr: has joined #ruby
[03:00:13] cschneid: has joined #ruby
[03:02:18] jcarl43: has joined #ruby
[03:04:57] sspreitz: has joined #ruby
[03:07:54] darkhanb: has joined #ruby
[03:16:55] alfiemax: has joined #ruby
[03:18:21] duckpuppy: has joined #ruby
[03:18:35] hahuang65_: I remember there were some dangers/gotchas with using class variables to store state... was there a good link that demonstrates these?
[03:19:58] Azure: has joined #ruby
[03:22:28] jottr: has joined #ruby
[03:24:04] weaksauce: hahuang65_ in what sense?
[03:24:13] weaksauce: anything is dangerous if you use it wrong
[03:26:53] Radar: Probably due to state possibly leaking across threads.
[03:28:45] jottr: has joined #ruby
[03:38:47] robscomputer: has joined #ruby
[03:40:54] hahuang65_: Radar: yeah I think that's what I read before
[03:40:57] hahuang65_: I just wanted to review it
[03:41:52] orbyt_: has joined #ruby
[03:42:06] Radar: https://stackoverflow.com/questions/9558192/thread-safety-class-variables-in-ruby ?
[03:44:28] n0m4d1c: has joined #ruby
[03:46:17] hahuang65_: Radar: appreciate the link buddy
[03:47:04] cdg: has joined #ruby
[03:57:17] phenom: has joined #ruby
[04:00:16] roca: has joined #ruby
[04:01:11] erlend: has joined #ruby
[04:02:47] postmodern: has joined #ruby
[04:09:39] jottr: has joined #ruby
[04:09:48] duckpuppy: has joined #ruby
[04:11:57] Creatornator: has joined #ruby
[04:17:04] guacamole: has joined #ruby
[04:17:04] guacamole: has joined #ruby
[04:19:46] jottr: has joined #ruby
[04:21:50] jamesaxl: has joined #ruby
[04:22:06] Yzguy: has joined #ruby
[04:25:15] trautwein: has joined #ruby
[04:26:06] robscomputer: has joined #ruby
[04:28:28] conta: has joined #ruby
[04:29:18] imode: has joined #ruby
[04:30:18] Yzguy: has joined #ruby
[04:37:30] conta: has joined #ruby
[04:39:40] conta: has joined #ruby
[04:43:17] conta: has joined #ruby
[04:46:59] gix: has joined #ruby
[04:52:01] workmad3: has joined #ruby
[04:53:44] DTZUZO: has joined #ruby
[04:54:09] ramfjord: has joined #ruby
[04:56:06] robscomputer: has joined #ruby
[05:00:34] jottr: has joined #ruby
[05:05:10] ryan_ford: has joined #ruby
[05:06:32] alfiemax: has joined #ruby
[05:07:14] stairmast0r: has joined #ruby
[05:07:53] c0ncealed: has joined #ruby
[05:12:30] duckpuppy: has joined #ruby
[05:15:00] jottr: has joined #ruby
[05:27:38] robscomputer: has joined #ruby
[05:40:13] bsamorim: has joined #ruby
[05:42:19] bsamorim: Hello, guys! I have made a quick sinatra app that, in one of its endpoints, reads a video file in chunks and sends it over the net.
[05:42:51] bsamorim: The problem is that the amount of memory that the app consumes seems to be independent of the chunk size
[05:43:23] bsamorim: Is this something due to ruby or sinatra?
[05:44:00] bsamorim: I am opening the file with `open(file_path)` and yielding its chunks with `read(chunk_size)`
[05:58:14] zipace: has joined #ruby
[06:01:26] jottr: has joined #ruby
[06:02:04] sidx64: has joined #ruby
[06:03:18] eckhardt_: has joined #ruby
[06:05:54] imode: has joined #ruby
[06:07:05] sidx64: has joined #ruby
[06:08:07] mtkd: has joined #ruby
[06:09:00] jottr: has joined #ruby
[06:09:46] sidx64: has joined #ruby
[06:10:13] erlend: has joined #ruby
[06:11:36] Dimik: has joined #ruby
[06:12:56] _aeris_: has joined #ruby
[06:14:25] anisha: has joined #ruby
[06:16:32] karapetyan: has joined #ruby
[06:18:03] duckpuppy: has joined #ruby
[06:19:51] Azure: has joined #ruby
[06:21:36] sauvin_: has joined #ruby
[06:22:58] aupadhye: has joined #ruby
[06:23:05] nicesignal: has joined #ruby
[06:23:07] anisha_: has joined #ruby
[06:27:19] dn`_: has joined #ruby
[06:32:42] venmx: has joined #ruby
[06:32:51] chatchatt: has joined #ruby
[06:35:56] reber: has joined #ruby
[06:36:49] tuelz: has joined #ruby
[06:37:54] shuforov: has joined #ruby
[06:38:05] kliq: has joined #ruby
[06:38:17] russt: has joined #ruby
[06:39:45] netherwolfe: has joined #ruby
[06:39:49] tpendragon: has joined #ruby
[06:45:16] burgestrand: has joined #ruby
[06:46:36] zapata: has joined #ruby
[06:47:26] alfiemax: has joined #ruby
[06:47:57] c0ncealed: has joined #ruby
[06:49:53] stoffus: has joined #ruby
[06:52:14] workmad3: has joined #ruby
[06:55:29] jottr: has joined #ruby
[07:00:33] za1b1tsu: has joined #ruby
[07:02:14] jamesaxl: has joined #ruby
[07:02:42] jottr: has joined #ruby
[07:03:15] n008f4g_: has joined #ruby
[07:03:45] alfiemax: has joined #ruby
[07:06:11] aufi: has joined #ruby
[07:06:23] bijan_: has joined #ruby
[07:10:33] bijan_: has joined #ruby
[07:11:35] moei: has joined #ruby
[07:11:51] sidx64_: has joined #ruby
[07:12:04] dionysus69: has joined #ruby
[07:17:10] duckpuppy: has joined #ruby
[07:17:24] sidx64: has joined #ruby
[07:18:53] kriskropd: has joined #ruby
[07:20:48] alfiemax: has joined #ruby
[07:21:13] karapetyan: has joined #ruby
[07:23:48] conta: has joined #ruby
[07:24:58] alex``: has joined #ruby
[07:26:37] _insomniac: has joined #ruby
[07:26:46] conta1: has joined #ruby
[07:37:37] andikr: has joined #ruby
[07:40:25] kapil___: has joined #ruby
[07:40:50] cschneid: has joined #ruby
[07:46:39] jottr: has joined #ruby
[07:47:33] cdg: has joined #ruby
[07:51:48] alfiemax: has joined #ruby
[07:52:22] Mortomes|Work: has joined #ruby
[07:53:42] jottr: has joined #ruby
[07:54:35] olspookishmagus: has joined #ruby
[07:55:33] asio: has joined #ruby
[08:01:46] VladGh_: has joined #ruby
[08:01:56] gigetoo: has joined #ruby
[08:07:24] cdg: has joined #ruby
[08:08:46] cdg_: has joined #ruby
[08:09:59] venmx: has joined #ruby
[08:12:18] cdg: has joined #ruby
[08:12:40] mtkd: has joined #ruby
[08:12:52] duckpuppy: has joined #ruby
[08:15:43] clemens3: has joined #ruby
[08:18:36] erlend: has joined #ruby
[08:19:19] phaul: has joined #ruby
[08:21:48] ryan_ford: has joined #ruby
[08:27:09] schneider: has joined #ruby
[08:29:29] claudiuinberlin: has joined #ruby
[08:29:47] schneider: has joined #ruby
[08:31:34] sidx64: has joined #ruby
[08:31:45] conta1: has joined #ruby
[08:32:17] c0ncealed: has joined #ruby
[08:32:24] chatchat1: has joined #ruby
[08:33:40] sidx64: has joined #ruby
[08:35:28] jottr: has joined #ruby
[08:38:34] moei: has joined #ruby
[08:41:37] bijan_: has joined #ruby
[08:43:15] jottr: has joined #ruby
[08:43:28] Eldritch: has joined #ruby
[08:44:15] DTZUZO: has joined #ruby
[08:45:31] xuyuheng: has joined #ruby
[08:47:46] aupadhye: has joined #ruby
[08:48:43] marr: has joined #ruby
[08:49:01] nemesit|znc: anyone know why I get ActionController::ParameterMissing in rails but the request clearly contains the missing parameter?
[08:49:57] conta: has joined #ruby
[08:50:52] conta1: has joined #ruby
[08:52:15] ryan_ford: has joined #ruby
[08:52:22] aupadhye: has joined #ruby
[08:54:29] ramfjord: has joined #ruby
[08:55:42] Mike11: has joined #ruby
[08:57:07] guille-moe: has joined #ruby
[08:59:16] dminuoso: nemesit|znc: Gist your code and the log output.
[08:59:39] dminuoso: nemesit|znc: Also for completeness sake, include the sniffed output (wireshark/tcpdump/devtools)
[09:00:43] sidx64: has joined #ruby
[09:00:47] madhatter: has joined #ruby
[09:01:06] dr3wo: has joined #ruby
[09:05:23] mtkd: has joined #ruby
[09:05:27] leitz: has joined #ruby
[09:06:17] leitz: What's the Ruby way for including a config file with items like "name = 'Fred'"?
[09:06:52] dminuoso: nemesit|znc: Also take this to
[09:06:53] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[09:07:06] tomphp: has joined #ruby
[09:07:26] dminuoso: leitz: Is the format of the config file already defined, or do you have the freedom to define it?
[09:08:21] leitz: dminuso, have freedom, but trying to avoid things like yaml or json.
[09:08:43] dminuoso: Why do you want to avoid them?
[09:08:49] leitz: dminuoso, and I missed the "o". Need more coffee.
[09:09:09] sidx64: has joined #ruby
[09:09:17] dminuoso: leitz: Most clients have tab completion. If you just type the first few letters and use tab you can cycle through all names matching those starting characters.
[09:09:28] leitz: Both are very white space or syntax specific. I'm trying to stick to straight text so I can give the code to non-coders and they can extend it.
[09:09:39] dminuoso: leitz: YAML is human readable and simple.
[09:09:47] duckpuppy: has joined #ruby
[09:10:03] leitz: dminuoso, yes on tabs, but I try to learn people's names. Assuming you're not a bot, anyway...
[09:10:09] dminuoso: leitz: If you add enough comments to show how the file is to be modified its not an issue.
[09:10:55] leitz: YAML is really problematic for whitespace. I'm doing Ansible and it's frustrating. Error messages from Ansible aren't so hot, either.
[09:11:10] dminuoso: leitz: That's an Ansibile problem, not a yaml problem.
[09:11:31] leitz: It's a yaml problem when whitespace changes the meaning.
[09:11:40] leitz: Well, not problem, just the way it is.
[09:12:14] dminuoso: leitz: you could go with s-expressions :D
[09:13:09] leitz: I use other experssions when dealing with Ansible error messages. :)
[09:13:29] dminuoso: leitz: My point is, its really hard to screw up s-exps
[09:14:00] dminuoso: leitz: anyway. inifile is a gem that lets you parse ini style config files
[09:14:40] rabajaj: has joined #ruby
[09:15:14] guille-moe: has joined #ruby
[09:16:11] cschneid: has joined #ruby
[09:16:46] leitz: Eh...I think I'll write a simple parser. I don't see a lot of nested variables needed for my nefarious plans.
[09:18:19] Papierkorb: has joined #ruby
[09:18:30] Papierkorb: has left #ruby: ("Konversation terminated!")
[09:20:30] tvw: has joined #ruby
[09:24:52] Bish: if i use $stderr.puts, how do i know i am not actually using kernel#puts
[09:25:19] jottr: has joined #ruby
[09:26:28] kliq: has joined #ruby
[09:26:38] Bish: i don't, right?
[09:29:13] cliq: has joined #ruby
[09:30:07] tomphp: has joined #ruby
[09:35:00] jottr: has joined #ruby
[09:35:01] sanscoeur: has joined #ruby
[09:35:35] phaul: you could override puts in a module that you prepend on Kernel, set global state, assert or whatever, then you can see if $stderr.puts triggers it
[09:35:36] dminuoso: leitz: If you want something custom, use s-exprs
[09:35:46] dminuoso: leitz: They are freaking easy to parse, and extremely powerful at the same time.
[09:36:21] dminuoso: it lets you scale way beyond a simple `a=b` pattern, but in a way that is almost impossible to screw up
[09:40:36] dhollinger: has joined #ruby
[09:41:46] Bish: are there things sexp can't do?
[09:44:53] dminuoso: Bish: that equals to "are there things that emacs cant do" - the answer is no =P
[09:45:25] jenrzzz: has joined #ruby
[09:46:00] guille-moe: has joined #ruby
[09:46:37] Bish: you and your emacs
[09:50:03] Bish: can i use WHEN iwith an array?
[09:50:28] Bish: >> case 1;when [1,2];"hello";
[09:50:29] ruby[bot]: Bish: # => /tmp/execpad-abb19c9cfd1d/source-abb19c9cfd1d:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/975680)
[09:50:33] Bish: >> case 1;when [1,2];"hello";end;
[09:50:35] ruby[bot]: Bish: # => nil (https://eval.in/975681)
[09:51:23] tomphp: has joined #ruby
[09:52:14] alfiemax: has joined #ruby
[09:52:30] venmx: has joined #ruby
[09:55:26] Bish: how does one do that?
[09:55:33] Bish: >> case 1;when *[1,2];"hello";end;
[09:55:34] ruby[bot]: Bish: # => "hello" (https://eval.in/975682)
[09:56:11] dminuoso: >> case; when [1,2].include?(1); "hello" ;end
[09:56:12] ruby[bot]: dminuoso: # => "hello" (https://eval.in/975683)
[09:56:17] bijan_: has joined #ruby
[09:56:48] dminuoso: Bish: ^- I prefer this style of case construct. #=== has no well defined meaning, because its defined to mean "whatever one might expect in a case statement"
[09:57:21] Bish: but that confuses me, because when uses ===
[09:57:25] dminuoso: i.e. if you ever have: `case a when b ... end` it requires knowing the type of `b`, and knowing what its implementation of `===` does.
[09:57:26] Bish: when when i have your construc tere
[09:57:28] Bish: i'd have
[09:57:34] Bish: 1 === true/false
[09:57:39] dminuoso: Bish: this style is just a clean `if/elseif`
[09:57:46] Bish: but if confuses me
[09:58:28] Bish: does when switch it's behaviour when it yields true/false ?
[09:58:32] Bish: or how exactly does that work
[09:58:36] Bish: 1 === true
[09:58:40] Bish: >> 1 === true
[09:58:41] ruby[bot]: Bish: # => false (https://eval.in/975684)
[09:58:56] Bish: case/when *
[09:59:15] dminuoso: Bish: let me show you
[09:59:36] Bish: afaik when does check the cased expression with ===.. but not if it's true/false?
[09:59:49] dr3wo: has joined #ruby
[09:59:59] dminuoso: Bish: https://gist.github.com/dminuoso/d86250e94e4733e2b467bf415fecbab0
[10:00:22] dminuoso: I just refuse to play the #=== game, because it requires knowing the _types_ and the implementations.
[10:00:35] Bish: well i know that works, but i don.t know why
[10:00:54] Bish: afaik it always does === (whatever that implementation of #===)
[10:01:02] Bish: except for true/false values
[10:01:09] dminuoso: Bish: its just an if/else if/else if/else
[10:01:25] Bish: yeah but what is behind the "if" differs
[10:02:00] Bish: well.. it has to
[10:02:07] dminuoso: Bish: why does it have to?
[10:02:13] Bish: because what you say is true
[10:02:27] Bish: when *[1,2] wouldn't work
[10:02:33] dminuoso: * is fucking magic
[10:02:53] dminuoso: asm>> case when 1.even? then "1" else "2"
[10:02:54] Bish: i don't think so... i think my explaination fits it really well.. tell me where if i am wrong
[10:02:54] ruby[bot]: dminuoso: I have disassembled your code, the result is at https://eval.in/975689
[10:03:03] dminuoso: asm>> case when 1.even? then "1" else "2" end
[10:03:04] ruby[bot]: dminuoso: I have disassembled your code, the result is at https://eval.in/975690
[10:03:08] Bish: when does casedExpression == whenExpression
[10:03:12] dminuoso: Bish: see how its just an if?
[10:03:21] Bish: i know.. ofcourse it is an if internally
[10:03:37] dminuoso: asm>> case; when 1.even? then "1"; when 1.odd? then "2"; else "3" end
[10:03:38] ruby[bot]: dminuoso: I have disassembled your code, the result is at https://eval.in/975691
[10:03:38] Bish: asm>> case 1;when *[1,2] then "lol";end;
[10:03:39] ruby[bot]: Bish: I have disassembled your code, the result is at https://eval.in/975692
[10:03:41] Strepsils: has joined #ruby
[10:04:16] alfiemax: has joined #ruby
[10:04:18] Bish: the fuck is checkmatch
[10:04:23] dminuoso: Bish: the second you pass something to `case` it becomes this weird mess of polymorphic pattern matching
[10:05:37] sidx64: has joined #ruby
[10:05:41] Bish: asm>> 1 === [1]
[10:05:42] ruby[bot]: Bish: I have disassembled your code, the result is at https://eval.in/975697
[10:05:55] Bish: odd, case when is really weird
[10:05:56] dminuoso: Bish: checkmatch basically invokes #===
[10:06:11] Bish: i will just live with it
[10:06:30] Bish: but i like *[...] more than includes in a when
[10:06:45] Bish: because WHEN is some sort of matching.. if i was about to #include? i would if/elif
[10:06:49] WhereIsMySpoon: has joined #ruby
[10:12:39] mikecmpbll: has joined #ruby
[10:14:08] dminuoso: Bish: like I said, #=== incurs a large mental overheadl
[10:14:17] dminuoso: you cant quickly glance at the code and understand what it does
[10:14:36] dminuoso: You need to _know_ the types involved, and _know_ the #=== implementation of those types
[10:17:11] duckpuppy: has joined #ruby
[10:18:57] ryan_ford: has joined #ruby
[10:20:35] dminuoso: Bish: And *[1,2] is even more bizarre. I dont think many rubyists will immediately know what that does when they gloss over your code.
[10:21:03] leitz: ACTION heads off to work.
[10:25:09] Terens: has joined #ruby
[10:25:13] Terens: https://www.reddit.com/r/jobs/comments/85r5ko/a_day_at_work/
[10:27:16] erlend: has joined #ruby
[10:28:06] cdg: has joined #ruby
[10:32:56] jamesyu: has joined #ruby
[10:34:07] venmx: has joined #ruby
[10:40:20] sidx64: has joined #ruby
[10:42:28] amatas: has joined #ruby
[10:44:30] mtkd: has joined #ruby
[10:47:16] sanscoeur: has joined #ruby
[10:48:06] gregf_: has joined #ruby
[10:52:46] workmad3: has joined #ruby
[10:54:39] ramfjord: has joined #ruby
[10:55:34] psychicist__: has joined #ruby
[10:58:06] jimmylu2333-fedo: has joined #ruby
[10:58:18] amelliaa: has joined #ruby
[10:58:20] xuyuheng: has joined #ruby
[10:58:58] Azure: has joined #ruby
[11:04:51] schneider: has joined #ruby
[11:05:29] amatas_: has joined #ruby
[11:07:46] venmx: has joined #ruby
[11:14:56] alfiemax: has joined #ruby
[11:15:27] stoffus: has joined #ruby
[11:15:41] schneider: has joined #ruby
[11:19:28] duckpuppy: has joined #ruby
[11:20:59] ferr: has joined #ruby
[11:25:53] jamesaxl: has joined #ruby
[11:26:20] tomphp: has joined #ruby
[11:27:05] duckpuppy: has joined #ruby
[11:27:45] ferr: has left #ruby: ("WeeChat 2.1")
[11:30:00] workmad3: has joined #ruby
[11:32:39] Papierkorb: has joined #ruby
[11:33:00] Cavallari: has joined #ruby
[11:33:13] Papierkorb: has left #ruby: ()
[11:33:25] WhereIsMySpoon: has joined #ruby
[11:33:41] sidx64: has joined #ruby
[11:34:35] tomphp: has joined #ruby
[11:35:56] Nobun: has joined #ruby
[11:36:04] nemesit|znc: has joined #ruby
[11:36:19] Nobun: Any hint how to properly debug an application embedding ruby?
[11:36:39] Nobun: this is my application code: http://dpaste.com/17CVBA7
[11:36:46] ldnunes: has joined #ruby
[11:36:55] Nobun: and this is the ruby file I tested: http://dpaste.com/2P62H3Y
[11:37:27] Nobun: the application encounter a sort of segmentation fault, with a VERY LOOOOONG message
[11:44:47] karapetyan: has joined #ruby
[11:47:03] Psybur__: has joined #ruby
[11:47:54] alfiemax_: has joined #ruby
[11:48:19] sanscoeur: has joined #ruby
[11:49:23] imode: has joined #ruby
[11:54:15] sidx64: has joined #ruby
[11:55:58] schneider: has joined #ruby
[11:56:50] sidx64: has joined #ruby
[11:57:45] Psybur_: has joined #ruby
[12:03:54] bijan_: has joined #ruby
[12:04:56] sidx64: has joined #ruby
[12:06:16] AJA4350: has joined #ruby
[12:07:53] bsamorim: has joined #ruby
[12:09:06] shuforov: has joined #ruby
[12:09:17] nowhere_man: has joined #ruby
[12:10:00] sidx64: has joined #ruby
[12:10:35] alfiemax: has joined #ruby
[12:13:03] roca: has joined #ruby
[12:14:12] n0m4d1c: has joined #ruby
[12:18:40] conta1: has joined #ruby
[12:26:04] burgestrand: has joined #ruby
[12:27:49] John_Ivan: has joined #ruby
[12:27:52] sidx64: has joined #ruby
[12:29:01] perzival: has joined #ruby
[12:29:25] nowhereman_: has joined #ruby
[12:34:24] jottr: has joined #ruby
[12:36:01] erlend: has joined #ruby
[12:40:22] pd: has joined #ruby
[12:41:22] Creatornator: has joined #ruby
[12:42:15] gnufied: has joined #ruby
[12:47:47] jottr: has joined #ruby
[12:49:15] mtkd: has joined #ruby
[12:50:26] sanscoeur: has joined #ruby
[12:53:00] ogres: has joined #ruby
[12:53:30] rsh: has joined #ruby
[12:56:47] shuforov: has joined #ruby
[12:58:26] riotjoe: has joined #ruby
[12:59:58] dminuoso: Nobun: By studying how the entirety of ruby works (from the initialization process, to the ruby object model, and the GC), and then using a debugger.
[13:00:10] dminuoso: Nobun: You wanted to embed full ruby, be prepared to suffer the consequences.
[13:02:49] Nobun: dminuoso: yeah. I saw. But it is my best choice for dependency build
[13:03:30] Nobun: however this first problem was solved. Don't know why but erasing corevxa_rubylib function will solved the issue
[13:03:38] vondruch_: has joined #ruby
[13:03:50] Nobun: I instead changed the approach and setted rubyvxa_rubylib as a global ruby variable
[13:04:07] Nobun: that way (with the same code) the segmentation fault problem was solved.
[13:04:16] dminuoso: Nobun: If you prefer to play "plug the leaks" by randomly doing things...
[13:04:22] dminuoso: Nobun: That does not mean the problem is solved.
[13:04:32] dminuoso: Nobun: Do you know when segmentation faults arise?
[13:04:37] Nobun: I mean THAT problem is solved
[13:04:43] dminuoso: Nobun: No it does not.
[13:04:51] Nobun: dminuoso: yeah. This is why I executed script more than once
[13:04:53] dminuoso: Nobun: It just means it's not crashing anymore. Doesn't mean the problem is solved.
[13:05:01] dminuoso: Nobun: What does "segfault" mean?
[13:05:25] Nobun: it is a problem of memory allocation (a memory address is not anymore valid)
[13:05:50] Nobun: however I didn't have properly a SISVEG, but a core dump with a long message on ruby side
[13:05:51] dminuoso: its not a problem of memory allocation.
[13:06:02] dminuoso: Nobun: it is a proper sigsegv.
[13:06:40] Nobun: I always thinked that segmentation faults are related to memory management (or garbage collectors). Do I miss something?
[13:06:45] dminuoso: Nobun: segmentation faults arise from trying to access a memory page for which the kernel has no mapping (for your process)
[13:06:52] dminuoso: Nobun: almost anything could be the cause
[13:07:06] dminuoso: pointer arithmetic gone wrong
[13:07:08] dminuoso: accessing freed memory
[13:07:09] bijan_: has joined #ruby
[13:07:11] dminuoso: double freeing memory
[13:07:13] dminuoso: buffer overflows
[13:07:41] dminuoso: Nobun: now your code may *still* be misbehaving, but perhaps it doesn't lead to a memory access in invalid memory regions
[13:07:53] dminuoso: so perhaps it corrupts the rubyvm in other ways
[13:08:26] Nobun: it is not impossible. Also becouse ruby is not the only language I embed, but I embed ruby together with python and lua.
[13:10:23] dminuoso: Nobun: understand how the segmenation fault arises, determine the actual cause, and then fix the underlying problem.
[13:10:34] Nobun: However I can say that usually a segmentation fault will happen after less than 10 tries. I mean in practical test I did in past (not with ruby specifically) when a segmentation fault problem happened, it showed not exactly randomly (even if not exactly happens at the point where the actual problem is located)
[13:10:49] Guest53066: has joined #ruby
[13:10:49] dminuoso: Nobun: again, its not proof of anything.
[13:10:56] dminuoso: Nobun: determine the _CAUSE_ of the segmentation fault
[13:11:30] Nobun: dminuoso: I had a speculation. I think that doing a c++ operation on ruby Kernel side (global function should be added there, if I understood the problem) probably could explain the original issue.
[13:11:56] dminuoso: Nobun: If you embed ruby, you either need to get ready to understand the ruby object model and the garbage collector so you can pinpoint the cause for the crash - or find a different hobby.
[13:12:09] Nobun: dminuoso: I never been able to be sure about the CAUSE. Usually with segmentation fault I try to trace gdb and do experiments until things are fine.
[13:12:13] jcalla: has joined #ruby
[13:12:14] Guest53066: has joined #ruby
[13:12:29] dminuoso: Nobun: If that's your debugging technique then I have better things to do.
[13:13:02] dminuoso: Nobun: for starters: start with the very cpu instruction that created the page fault
[13:13:10] dminuoso: is it a null pointer? or some garbage address?
[13:13:19] Nobun: dminuoso: it is only becouse I am a non-professional programmer. All I learnt I learnt by myself. But if you can show me a nicer way to approach to debugging, I will be happy to hear.
[13:13:21] dminuoso: what memory address did this
[13:13:52] dminuoso: once you have determined that, figure out what code path you are in
[13:14:32] Nobun: I mean... I use gdb as debugger (I usually use breakpoints to try to guess where problems could be located. Even if it is not a very good way, hearing your words)
[13:14:47] dminuoso: Nobun: gdb is absolutely great, but experimentation is the most terrible way to fix things
[13:15:13] dminuoso: Nobun: I would look at the topmost stackframe first, and look at the very instruction that led to the problem.
[13:15:25] dminuoso: see if the address is 0x0 or some other address
[13:15:30] dminuoso: then I check the source code for that stack frame
[13:15:41] dminuoso: and use the assembly to correlate what exact part of the code line went wrong
[13:16:00] Nobun: dminuoso: I mean that not always breakpoints on gdb will actually crash to actual problem. You must do some try-and-guess, trying to understand what the problem is. I don't know, for example, how to interpret a memory address alone.
[13:16:23] Nobun: unluckly I don't know ASM at all. Only C++
[13:17:17] tomphp_: has joined #ruby
[13:17:20] schneider: has joined #ruby
[13:17:37] dminuoso: Nobun: its not really difficult. just switch to `layout asm` in gdb abd gist the output of the crash
[13:17:49] Nobun: the only thing I could manage is 0x0 that I now it means "null pointer"
[13:18:02] dminuoso: Nobun: (strictly speaking it might not, but on most regular implementations it does)
[13:18:12] FrostCandy: has joined #ruby
[13:18:18] dminuoso: so its likely that you crashed on some
[13:18:23] anikras: has joined #ruby
[13:19:15] Nobun: well but now, if I cannot reproduce the problem (i mean with the new code) how could I verify what went wrong to gdb? should I re-write the original (bugged) code?
[13:19:21] SanguineAnomaly: has joined #ruby
[13:19:40] dminuoso: Nobun: the core dump that ruby produces might contain enough information
[13:19:43] dminuoso: do you have one at hand?
[13:19:54] Nobun: I am afraid it was deleted.
[13:19:56] anikras: i am following this guide, and a i am on Step 4 https://github.com/DMPRoadmap/roadmap/wiki/Upgrading-from-DMPonline_v4
[13:20:09] anikras: i don't have a rake migrate:init_plan_visibility
[13:20:09] anikras: or rake upgrade:v0_3_3
[13:20:30] anikras: I search this commands with rake -T and it isn't
[13:20:33] Nobun: the best thing is to try to re-write the original code and paste the original core dump informations
[13:20:37] dminuoso: Nobun: You can run your program with gdb
[13:21:24] dminuoso: Nobun: if the debugger is attached, then the moment the process receives the SIGSEGV signal the debugger will break
[13:22:38] Nobun: yeah I am rebuilding the code with the original solution (with the issue) and try to run it with gdb (it is compiled with debugging flags, so no problem on using gdb)
[13:23:03] dminuoso: Nobun: Just keep in mind that there's a category of bugs called Heisenbugs that will not trigger when a debugger is attached. Those are particularly fun to debug.
[13:23:48] desperek: has joined #ruby
[13:23:53] jeecht: has joined #ruby
[13:24:27] cdg: has joined #ruby
[13:24:30] Guest53066: has joined #ruby
[13:25:05] Nobun: ok reintroducing the original code reproduced the problem. Now I pastebin the core dump (happened without calling gdb)
[13:26:09] Nobun: http://dpaste.com/3MSZ143
[13:26:18] Nobun: now I try to run it with gdb
[13:26:35] Nobun: this is only the stderr
[13:26:52] dminuoso: Nobun: Check the instruction at 0x7fcb5a137ca5 in your /usr/lib/x86_64-linux-gnu/libruby-2.3.so.2.3
[13:26:58] dminuoso: Nobun: also your ruby seems to be built without debugging symbols.
[13:27:13] jrafanie: has joined #ruby
[13:27:17] Nobun: but the stdout could be able to print the $corevxa_rubylib varible but not corevxa_rubylib2 function
[13:28:09] Nobun: dminuoso: hmm I am using the ruby library provided by ubuntu. But it should be used in the debugging
[13:28:25] Nobun: let me see my CmakeLists.txt
[13:29:09] Nobun: -DCMAKE_BUILD_TYPE=Debug
[13:29:22] dminuoso: Nobun: You still need debugging symbols for that.
[13:29:28] Nobun: so it should use the debugging version of every library found with find_package()
[13:29:30] dminuoso: Perhaps Ubuntu doesn't ship those by default? I have no idea.
[13:29:45] Nobun: strange, since I installed development version
[13:30:04] Nobun: it should have both and cmake should link to the debugging with the flag I posted some lines ago
[13:30:28] Nobun: let me see what happens with VERBOSE build
[13:33:44] Nobun: it seems you are right. For some strange reasons it links to standard libraries and not debug ones as expected.
[13:33:55] drale2k_: has joined #ruby
[13:33:58] Nobun: and not only with ruby, also with qt
[13:34:43] dminuoso: Nobun: Personally I'd not use systems ruby anyway. Built your own: it's simple and fast.
[13:35:14] Nobun: dminuoso: yeah but building ruby means using ruby to build ruby wich it seems very strange to me
[13:35:31] dminuoso: Nobun: thats an internal process
[13:35:52] dminuoso: Nobun: (it does not use an external ruby)
[13:35:53] Nobun: yeah but it is strange. Becouse ruby is a dependency in order to build ruby.
[13:35:57] dminuoso: Nobun: no it is not.
[13:36:23] Nobun: well in Ubuntu 14.04 forced me to install ruby in order to be allowed to compile it.
[13:36:46] ramfjord: has joined #ruby
[13:36:56] dminuoso: Nobun: the ruby Makefile will bootstrap that first miniruby (as it is called) on its own
[13:37:03] dminuoso: Nobun: I have no idea why Ubuntu does it that way.
[13:37:20] dminuoso: Nobun: But I guarantee: if you compile yourself (either manually or through ruby-install), you will not need an external ruby
[13:37:25] Nobun: however I must check what it happens exactly (compiling a custom qt would be very painful. And I like to see if I am missing something in my system)
[13:38:00] Nobun: dminuoso: don't know too. I don't remember exactly how I built ruby.
[13:38:21] Ryzokuken: has joined #ruby
[13:38:31] Nobun: however at first I investigate my system before building anything
[13:38:47] Nobun: then I will build ruby etc
[13:39:28] Nobun: dminuoso: out of curiosity: how did you understand that debugging symbols were disabled?
[13:40:12] dminuoso: Nobun: the stacktrace didn't have symbol names/source locations for the frames fro ruby
[13:40:31] dminuoso: Nobun: compare: /usr/lib/x86_64-linux-gnu/libruby-2.3.so.2.3 [0x7fcb5a137ca5]
[13:40:52] dminuoso: Nobun: or wait...
[13:40:54] dminuoso: Nobun: oh: /usr/lib/x86_64-linux-gnu/libruby-2.3.so.2.3(rb_load_protect+0xb5) [0x7fcb5a01ac15]
[13:41:10] dminuoso: Nobun: looks as if I was a bit too hasty
[13:41:40] Nobun: that is strange: libruby is only that one? I mean... both for debug and release?
[13:41:58] Nobun: I mean. I am expecting to see librubyd or something similar
[13:42:17] dminuoso: Nobun: well you can also debug with a release build.
[13:42:37] dminuoso: Nobun: debug means one of two things: generating debug symbols or disabling certain optimizations
[13:43:02] dminuoso: Nobun: however, you can have optimized builds with debugging symbols
[13:43:23] Nobun: dminuoso: let me paste you my link flags (they will be displayed as one-line-only sorry)
[13:44:19] Nobun: http://dpaste.com/2D73F3R
[13:45:21] govg: has joined #ruby
[13:45:50] alfiemax: has joined #ruby
[13:46:15] Nobun: I say "no debugging symbols" becouse I expected to be linked with debugging libraries (qt libraries for debug should end with "d" for example, and they're not)
[13:51:51] tomphp: has joined #ruby
[13:51:52] sanscoeur: has joined #ruby
[13:52:55] karapetyan: has joined #ruby
[13:53:35] jottr: has joined #ruby
[13:54:37] WhereIsMySpoon: has joined #ruby
[13:54:49] DTZUZO: has joined #ruby
[13:55:50] cyberg: has joined #ruby
[13:57:33] cdg: has joined #ruby
[13:59:46] dminuoso: Nobun: well run this through gdb
[14:05:33] karapetyan: has joined #ruby
[14:08:44] nfsnobody: has joined #ruby
[14:09:07] Voxxit: has joined #ruby
[14:10:33] unreal: has joined #ruby
[14:12:09] gray_-_wolf: has joined #ruby
[14:12:13] Creatornator: has joined #ruby
[14:14:50] ltt: has joined #ruby
[14:15:33] edwardly: has joined #ruby
[14:15:33] edwardly: has joined #ruby
[14:16:12] erlingur: has joined #ruby
[14:16:14] Rapture: has joined #ruby
[14:17:17] Inoperable: has joined #ruby
[14:19:29] n0m4d1c: has joined #ruby
[14:21:22] bijan_: has joined #ruby
[14:21:23] erlingur: has joined #ruby
[14:23:32] Nobun: dminuoso: ok I will sorry for late reply but I had to go out for a while
[14:24:54] Nobun: dminuoso: Thread 1 "vxapo" received signal SIGSEGV, Segmentation fault.
[14:24:57] Nobun: 0x00007ffff74440f6 in ?? () from /usr/lib/x86_64-linux-gnu/libruby-2.3.so.2.3
[14:25:12] Nobun: this is what gdb says
[14:25:34] Nobun: it seems that debugging symbols are all whipped out :(
[14:26:02] suukim: has joined #ruby
[14:26:09] cagmz: has joined #ruby
[14:27:12] nfsnobody: has joined #ruby
[14:27:21] imode: has joined #ruby
[14:28:04] cagmz: has joined #ruby
[14:28:06] unreal: has joined #ruby
[14:29:48] cdg: has joined #ruby
[14:30:42] mtkd: has joined #ruby
[14:31:09] ltt: has joined #ruby
[14:32:34] dminuoso: Nobun: Just build ruby yourself =)
[14:32:47] dminuoso: Nobun: It takes maybe 1-2 minutes to compile (if you have an SSD)
[14:35:04] Nobun: dminuoso: no SSD here and a slow pc. However I will follow your suggestion. At least for developing state it could be the best choice.
[14:35:37] chouhoulis: has joined #ruby
[14:36:04] Nobun: however I will use 2.3.0 since ubuntu use 2.3.SOMETHING_ELSE in order to be sure that the code will be compatible with my distro ruby version
[14:36:08] dminuoso: Well it cant be worse than maybe 4-5 minutes on an older machine
[14:37:06] cdg: has joined #ruby
[14:37:08] Nobun: yeah. I don't think it can be as painful as trying to compile qt after all :P (I don't remember how much time required with ubuntu 14.04, but I remember it should be not so much time)
[14:37:37] havenwood: if you have multiple cores, the `-j` flag with make speeds things up.
[14:37:48] Nobun: dminuoso: ah it is possible that in my case ruby required an external ruby since I compiled from github source?
[14:37:53] chouhoulis: has joined #ruby
[14:38:04] havenwood: -j for as many as possible, or I often use -j8
[14:38:17] Nobun: havenwood: I can use -j2 at max and I never see so much difference
[14:38:45] Nobun: havenwood: it depends of processor. You cannot do make -j64 without crash :P
[14:38:58] havenwood: i just want a new processor ;-)
[14:39:25] Nobun: cloning github...
[14:40:00] havenwood: skipping generating docs speeds it up a lot
[14:40:10] netherwolfe: has joined #ruby
[14:40:30] robscomputer: has joined #ruby
[14:43:47] oleo: has joined #ruby
[14:44:18] cyberg: has joined #ruby
[14:44:38] erlend: has joined #ruby
[14:46:24] kn-928: has joined #ruby
[14:47:20] unreal: has joined #ruby
[14:48:19] Nobun: dminuoso: did you use any particular configure flag in order to ensure to build "debug" version of ruby? (I mean with debugging symbols)
[14:48:46] gizmore: has joined #ruby
[14:50:58] Psybur_: has joined #ruby
[14:51:03] rippa: has joined #ruby
[14:53:29] sanscoeur: has joined #ruby
[14:55:02] John_Ivan: has joined #ruby
[14:55:02] bijan_: has joined #ruby
[14:55:53] darix: Nobun: CFLAGS="-g $OTHERCFLAGS" is a good start
[14:56:01] coderphive: has joined #ruby
[14:56:48] Nobun: darix when you compile autotools package (like ruby) you cannot add manually flags, but you should use "configure" options
[14:56:58] ltt: has joined #ruby
[14:57:46] cschneid: has joined #ruby
[14:59:02] jottr: has joined #ruby
[15:02:42] roca: has joined #ruby
[15:03:12] xall_: has joined #ruby
[15:04:00] dminuoso: Nobun: It's build with debugging symbols out of the box.
[15:04:12] darix: Nobun: CFLAGS="-g" ./configure
[15:04:24] darix: Nobun: I package ruby for living. trust me on that part
[15:04:38] darix: dminuoso: -g is inthe default CFLAGS?
[15:05:54] dminuoso: darix: Yes.
[15:06:01] drale2k_: has joined #ruby
[15:06:03] dminuoso: darix: -ggdb3 is includeed by default
[15:06:09] nowhereman_: has joined #ruby
[15:06:38] Nobun: thank dminuoso and darix. I will re-compile ruby than
[15:07:42] dminuoso: Nobun: Like I said, no need to recompile. You just configure `./configure --disable-install-rdoc --disable-install-doc`
[15:07:46] dminuoso: and thats it
[15:08:08] sidx64: has joined #ruby
[15:08:13] amelliaa: has joined #ruby
[15:08:44] Nobun: needed to recompile becouse otherwhise -g will not have effect to previously builded source
[15:09:28] dminuoso: Nobun: -ggdb3 is included by default.
[15:10:21] Nobun: yeah bit I have to rebuild. I deleted the previous build :P
[15:12:00] dionysus69: has joined #ruby
[15:12:37] nowhereman_: has joined #ruby
[15:12:39] Nobun: ok builded and installed in a custom prefix (under home)
[15:13:06] schneider: has joined #ruby
[15:13:14] Nobun: now I have to check how to allow cmake to recognize it instead of the default system library
[15:16:44] duckpuppy: has joined #ruby
[15:17:43] erlend: has joined #ruby
[15:18:07] imode: has joined #ruby
[15:19:09] nowhereman_: has joined #ruby
[15:19:28] Fysicus: has joined #ruby
[15:20:57] jimmylu2333-fedo: has joined #ruby
[15:25:36] nowhereman_: has joined #ruby
[15:28:14] Nobun: cmake cannot find the new builded library :(
[15:28:35] Nobun: even if I tried to specify directory. Perhaps it is related to pkg-config directories...
[15:30:23] ruby_: has joined #ruby
[15:30:35] ruby_: anyone know what the do does? https://github.com/TwilioDevEd/api-snippets/blob/master/guides/voice/record-calls-guide/record-twiml/example.5.x.rb#L7
[15:30:59] ruby_: what is the purpose of the do |r| ? from what i've read this syntax can be used for iterate over loops but i dont see how it's being used here
[15:31:22] ruby_: the python version just gets the object and uses it which confuses me https://github.com/TwilioDevEd/api-snippets/blob/master/guides/voice/record-calls-guide/record-twiml/example.5.x.py#L11
[15:31:51] mrBen2k2k2k: has joined #ruby
[15:32:21] nowhereman_: has joined #ruby
[15:36:19] ruby_: anyone knows? :(
[15:36:23] ruby_: really curious
[15:37:17] Nobun: ruby_: the code you pasted is not enough to reply you. This becouse it uses python decorators
[15:37:32] Nobun: @app.route("/record", methods=['GET', 'POST'])
[15:37:46] Nobun: you must investigate what this decorator exactly does
[15:37:54] nowhereman_: has joined #ruby
[15:38:37] jottr: has joined #ruby
[15:39:07] nowhereman_: has joined #ruby
[15:39:56] ruby_: Nobun: i wouldn't think the app decorate would have anything to do with this though
[15:40:14] ruby_: Nobun: forgetting the python code aside, what does it mean specifically for the ruby code i posted?
[15:40:29] ruby_: to have do |r|
[15:42:38] Nobun: you can see |r| as current element in the iteration
[15:42:46] cagomez: has joined #ruby
[15:43:14] mgraf: has joined #ruby
[15:43:40] cagomez: has joined #ruby
[15:44:01] Nobun: example: (0..7).each do |i|
[15:44:17] Nobun: in that case i will be the current value in the iteration in the range 0..7
[15:44:25] konsolebox: has joined #ruby
[15:44:35] noobineer: has joined #ruby
[15:44:36] ryan_ford: has joined #ruby
[15:45:57] jottr: has joined #ruby
[15:49:28] Nobun: still having troubles on building the application to the new ruby library (I cannot setup cmake properly in order to find and configure custom ruby)
[15:49:38] Nobun: so sorry for delay
[15:52:17] [Butch]: has joined #ruby
[15:54:48] sanscoeur: has joined #ruby
[15:57:13] robscomputer: has joined #ruby
[15:57:59] Nobun: it seems it compiled ONLY libruby static version
[15:58:15] Nobun: I cannot find libruby-2.3.0.so or similar
[15:59:29] WhereIsMySpoon: has joined #ruby
[15:59:53] jcarl43: has joined #ruby
[16:00:03] Nobun: I can confirm. No libruby...so but only .a
[16:00:06] Nobun: very strange
[16:00:13] Nobun: any suggestion?
[16:00:14] einarj: has joined #ruby
[16:01:51] ltt: has joined #ruby
[16:02:51] Creatornator: has joined #ruby
[16:04:07] tolerablyjake: has joined #ruby
[16:08:35] Nobun: and moreover it didn't install config.h
[16:08:57] riotjones: has joined #ruby
[16:09:06] Guest53066: has joined #ruby
[16:09:17] Nobun: I did CFLAGS="-g" ./configure --prefix=/home/user/programmi/ruby
[16:09:20] schneider: has joined #ruby
[16:09:22] Nobun: than make and make install
[16:09:46] nowhereman_: has joined #ruby
[16:10:48] sanscoeur: has joined #ruby
[16:10:56] al2o3-cr: >> ?\c == $/
[16:10:57] ruby[bot]: al2o3-cr: # => false (https://eval.in/976015)
[16:11:08] al2o3-cr: >> $/ == ?\c
[16:11:12] ruby[bot]: al2o3-cr: # => (NilClass) ...check link for more (https://eval.in/976016)
[16:11:15] nowhereman_: has joined #ruby
[16:12:25] stormpack: has joined #ruby
[16:13:20] al2o3-cr: that returns true with 2.5
[16:14:36] duckpuppy: has joined #ruby
[16:16:53] chouhoul_: has joined #ruby
[16:17:33] robscomputer: has joined #ruby
[16:19:14] aupadhye: has joined #ruby
[16:19:24] ReinH: has joined #ruby
[16:20:00] nowhereman_: has joined #ruby
[16:20:04] Dimik: has joined #ruby
[16:20:24] xall_: has joined #ruby
[16:20:34] schneider: has joined #ruby
[16:22:29] duckpuppy: has joined #ruby
[16:22:50] DTZUZO: has joined #ruby
[16:23:12] tolerablyjake: has joined #ruby
[16:25:28] nowhereman_: has joined #ruby
[16:25:34] jottr: has joined #ruby
[16:26:43] guacamole: has joined #ruby
[16:26:43] guacamole: has joined #ruby
[16:27:30] n0m4d1c: has joined #ruby
[16:31:09] SanguineAnomaly: has joined #ruby
[16:32:18] Nobun: I compiled ruby enabling also shared library, but config.h again not installed. How to solve this issue?
[16:32:19] nowhereman_: has joined #ruby
[16:34:02] eckhardt: has joined #ruby
[16:34:53] jottr: has joined #ruby
[16:35:51] dminuoso: Nobun: Honestly, if you need handholding for every single bit with this, do you really think its a good idea to play with embedding ruby?
[16:36:07] dminuoso: It's just a thought ¯\_(ツ)_/¯
[16:36:29] ramfjord: has joined #ruby
[16:37:28] guacamole: has joined #ruby
[16:37:28] guacamole: has joined #ruby
[16:41:10] dionysus69: has joined #ruby
[16:44:36] karapetyan: has joined #ruby
[16:44:56] Nobun: dminuoso: no finally I'm in on this issues, but adding some cflags
[16:45:28] Nobun: but even if I pass --enable-rpath in configure it seems that run-time cannot find shared library in my custom path during run
[16:45:40] WhereIsMySpoon: has joined #ruby
[16:45:40] WhereIsMySpoon: has joined #ruby
[16:45:50] Nobun: I am trying to compile with static ruby now and see if it can compile successfully
[16:45:56] schneider: has joined #ruby
[16:47:45] vondruch: has joined #ruby
[16:47:49] Nobun: as I figured I cannot use static library. Well... I will rebuild again and run with LD_PATH=
[16:47:59] darkhanb: has joined #ruby
[16:50:04] vondruch: has joined #ruby
[16:50:40] Nobun: ok, dminuoso now I have a more verbose gdb
[16:50:58] xall_: has joined #ruby
[16:51:28] Nobun: dminuoso: http://dpaste.com/2J3FXDD
[16:51:40] Nobun: (I had to run with LD_LIBRARY_PATH)
[16:51:59] conceivably: has joined #ruby
[16:54:57] Nobun: dminuoso: when you can... this case I really need your help becouse debugging message is not understandable to me.
[16:58:51] ineb: has joined #ruby
[16:59:43] xall_: has joined #ruby
[17:01:55] chouhoulis: has joined #ruby
[17:03:56] dostoyevsky: Is rails less popular these days? I was surprised that there are more people on #ruby than on #rails
[17:04:13] havenwood: dostoyevsky: Maybe Ruby is just more popular.
[17:04:24] havenwood: dostoyevsky: It's Rails on Ruby these days. ;-P
[17:04:34] raynold: has joined #ruby
[17:05:09] roca_: has joined #ruby
[17:05:16] shuforov: has joined #ruby
[17:05:51] dostoyevsky: I started using ruby in 2001 and never really had much of an interest in rails, which emerged around 2006... but it was impossible to get a job as a ruby programmer, people thought the only ruby was rails
[17:09:47] perzival: has joined #ruby
[17:10:46] dionysus69: is this concatenation in php ? 'Authorization' => 'Bearer ' . $apiToken, the dot i mean
[17:11:14] havenwood: dionysus69: This is the Ruby channel!
[17:11:21] schneider: has joined #ruby
[17:11:36] crankharder: has joined #ruby
[17:11:43] dionysus69: i am translating that to ruby xD
[17:12:14] kies: has joined #ruby
[17:12:16] dostoyevsky: I learned many programming languages but never PHP, makes me kind of proud :)
[17:12:46] havenwood: dionysus69: Type `php -a` then try: echo 'dio' . 'nysus';
[17:12:54] havenwood: dionysus69: Isn't there a PHP channel?
[17:13:09] dionysus69: there is but I dont wanna go in there
[17:13:18] dionysus69: too many depressed people lol
[17:16:28] roca_: has joined #ruby
[17:16:40] perzival: has joined #ruby
[17:17:30] jottr: has joined #ruby
[17:18:48] dostoyevsky: dionysus69: try ##programming
[17:19:03] dionysus69: I found it by now yes it was concatenation :D
[17:19:11] dionysus69: just wanted to double check :)
[17:19:57] dionysus69: someone had to try hard to make string concatenation non-intuitive lmfo
[17:22:58] SeepingN: has joined #ruby
[17:23:59] Cavallari: has joined #ruby
[17:25:49] marr: has joined #ruby
[17:25:52] adam12: has left #ruby: ("Leaving...")
[17:26:28] erlend: has joined #ruby
[17:26:34] dminuoso: havenwood: Is Rails similar to Ruby?
[17:26:46] dminuoso: Why is it called Ruby on Rails when you dont need to know any Ruby?
[17:26:48] dminuoso: ACTION ducks
[17:27:01] marxarelli: has joined #ruby
[17:27:19] havenwood: Ruby on Planes
[17:27:39] havenwood: A gem too precious to scuttle around the country on Rails.
[17:27:46] tolerablyjake: havenwood Planes on Ruby
[17:27:54] havenwood: https://collectiveidea.com/blog/archives/2012/04/01/walken-on-rails
[17:31:56] Psybur_: has joined #ruby
[17:36:21] amatas: has joined #ruby
[17:37:02] eckhardt: has joined #ruby
[17:37:17] perc1val: has joined #ruby
[17:37:48] zipkid: has joined #ruby
[17:38:00] r3m: has joined #ruby
[17:38:05] sparr: has joined #ruby
[17:38:53] justache: has joined #ruby
[17:39:02] marius: has joined #ruby
[17:39:11] tuelz: has joined #ruby
[17:39:27] rikai: has joined #ruby
[17:39:33] tpendragon: has joined #ruby
[17:40:18] nrk: has joined #ruby
[17:40:19] amitchellbullard: has joined #ruby
[17:40:26] mitsuhiko: has joined #ruby
[17:40:33] szulak: has joined #ruby
[17:40:37] raynold: has joined #ruby
[17:41:31] perzival: has joined #ruby
[17:41:45] schneider: has joined #ruby
[17:45:47] desnudopenguino: has joined #ruby
[17:46:21] desnudopenguino: is anyone in here messing with AWS and serverless-ruby for lambda functions?
[17:46:48] karapetyan: has joined #ruby
[17:46:59] ramfjord: has joined #ruby
[17:47:43] havenwood: desnudopenguino: I've played with it.
[17:48:03] havenwood: desnudopenguino: CRuby static binary, JRuby and MRuby all work.
[17:48:16] havenwood: It still feels like a bit of a hack.
[17:48:23] einarj: has joined #ruby
[17:49:17] jjaii9: has joined #ruby
[17:49:31] desnudopenguino: havenwood: do you have any good tips for getting things to work? i know it is a bit hacky still.
[17:49:42] havenwood: desnudopenguino: Which Ruby are you shooting for?
[17:50:19] desnudopenguino: which would you suggest?
[17:50:30] Zaab1t: has joined #ruby
[17:50:46] havenwood: desnudopenguino: Probably JRuby, hrmm.
[17:51:30] havenwood: desnudopenguino: Or you could try rumbda, with CRuby packaged via Traveling Ruby: https://github.com/kleaver/rumbda
[17:51:48] perzival: has joined #ruby
[17:52:20] n008f4g_: has joined #ruby
[17:52:25] havenwood: desnudopenguino: I'd vote JRuby.
[17:52:36] havenwood: The .js shim for CRuby or MRuby seems hacky.
[17:52:46] havenwood: https://github.com/qrush/lambda-function-wrapper-ruby/blob/master/lambda-function-wrapper.js
[17:53:08] desnudopenguino: https://github.com/stewartlord/serverless-ruby is what i am starting with, but i'm flexible.
[17:54:15] Creatornator: has joined #ruby
[17:54:48] havenwood: desnudopenguino: I haven't tried this recently, and I'm not sure if there's a nicer wrapper, but: https://github.com/c9katayama/aws-lambda-jruby
[17:55:51] havenwood: desnudopenguino: https://github.com/plainprogrammer/aws-lambda-jruby
[17:56:25] havenwood: There seem to be a variety of JRuby on Lambda strategies.
[17:56:41] desnudopenguino: havenwood: you're a godsend my friend. you've given me a path to go down at least (look into jruby aws lambda wrappers).
[17:57:05] havenwood: desnudopenguino: Yeah, that way seem nice, just because you're avoiding hacky shims.
[18:00:25] guacamole: has joined #ruby
[18:00:25] guacamole: has joined #ruby
[18:00:35] Klumben: has joined #ruby
[18:01:39] jottr: has joined #ruby
[18:03:47] desnudopenguino: i haven't played with any of the alternative rubies yet.
[18:07:46] desnudopenguino: havenwood: are you familiar with how it would handle bundling gems? (c9katayama/aws-lambda-jruby that is)
[18:12:17] havenwood: desnudopenguino: I've only played with hello world, but I'd assume bundling your gems to a vendor/ location would work perfectly.
[18:12:58] havenwood: desnudopenguino: I haven't tried the plainprogrammer/aws-lambda-jruby repo, but that looks really simple if it works.
[18:13:05] havenwood: Just three jars and a little rake task.
[18:13:26] achiu: has joined #ruby
[18:13:36] havenwood: the jars need updating. ;-P
[18:14:05] havenwood: We should make a script that grabs latest versions and generates a JRuby Lambda project.
[18:15:17] karapetyan: has joined #ruby
[18:15:54] desnudopenguino: havenwood: thanks i've got some stuff to look at now haha.
[18:17:17] mikecmpbll: has joined #ruby
[18:17:35] desnudopenguino: how hard is it to gram those jars from somewhere to use?
[18:22:51] ltt: has joined #ruby
[18:23:16] roca: has left #ruby: ("Good Bye")
[18:26:18] havenwood: desnudopenguino: i'd guess not too hard
[18:26:22] havenwood: https://s3.amazonaws.com/jruby.org/downloads/9.1.16.0/jruby-complete-9.1.16.0.jar
[18:27:19] ldepandis: has joined #ruby
[18:28:35] havenwood: desnudopenguino: I'd say ask in #jruby
[18:28:49] desnudopenguino: i'll probably float over there shortly.
[18:29:10] havenwood: I don't know where to grab jruby-core.jar... is that jruby.jar?
[18:32:02] desnudopenguino: i've no idea. i've heard about JRuby and CRuby before, and some of those other flavors, but never actually used them. today's going to be a long, but hopefully positively eventful day
[18:32:36] perzival: has joined #ruby
[18:35:02] mtkd: has joined #ruby
[18:35:48] claudiuinberlin: has joined #ruby
[18:41:06] \void: has joined #ruby
[18:41:46] ledestin: has joined #ruby
[18:46:39] tolerablyjake: has joined #ruby
[18:48:37] dr3wo: has joined #ruby
[18:49:58] desperek: has joined #ruby
[18:49:59] gr33n7007h: has joined #ruby
[18:50:59] cdg: has joined #ruby
[18:51:12] jottr: has joined #ruby
[18:54:22] weaksauce: has joined #ruby
[18:55:52] Creatornator: has joined #ruby
[18:56:55] alfiemax: has joined #ruby
[18:59:02] desnudopenguino: well i got the c9katayama to build, now to write some code to deploy and see if it works
[19:05:21] sidx64: has joined #ruby
[19:05:51] dtzuzu: has joined #ruby
[19:06:24] claudiuinberlin: has joined #ruby
[19:07:01] havenwood: desnudopenguino: let me know
[19:07:17] havenwood: desnudopenguino: I did a code spike for downloading latest jars: https://gist.github.com/havenwood/a69b8f6a079711d16ec6a98d9acf7887
[19:07:30] erciccione_[m]: has left #ruby: ("User left")
[19:07:31] minimalism: has joined #ruby
[19:07:37] havenwood: (it's hacky)
[19:07:38] Fraeon: has joined #ruby
[19:07:42] schneider: has joined #ruby
[19:07:43] havenwood: hacky but works!
[19:08:11] imode: has joined #ruby
[19:09:07] Creatornator: has joined #ruby
[19:11:49] desnudopenguino: my stack deployed, let's see what happens when i try to run it. hahaha
[19:14:13] desnudopenguino: ah, it might be because of how i set things up...
[19:14:29] dr3wo: has joined #ruby
[19:17:20] za1b1tsu: has joined #ruby
[19:19:15] ryan_ford: has joined #ruby
[19:26:15] ramfjord: has joined #ruby
[19:26:25] alfiemax: has joined #ruby
[19:29:31] \void: has joined #ruby
[19:31:35] Xeago: has joined #ruby
[19:33:49] ramfjord: has joined #ruby
[19:35:09] erlend: has joined #ruby
[19:37:18] sidx64: has joined #ruby
[19:37:57] EXCHGR: has joined #ruby
[19:40:02] ramfjord: has joined #ruby
[19:41:19] guacamole: has joined #ruby
[19:41:20] guacamole: has joined #ruby
[19:43:29] jottr: has joined #ruby
[19:46:11] ramfjord: has joined #ruby
[19:49:59] crankharder: has joined #ruby
[19:52:52] sameerynho: has joined #ruby
[19:53:13] sidx64_: has joined #ruby
[19:53:51] ErhardtMundt: has joined #ruby
[19:56:18] cagomez: has joined #ruby
[19:57:17] cagomez: has joined #ruby
[19:58:15] mtkd: has joined #ruby
[19:59:24] FrostCandy: has joined #ruby
[19:59:28] sidx64: has joined #ruby
[20:00:57] yokel: has joined #ruby
[20:01:45] mbeasley_: has joined #ruby
[20:02:51] n0m4d1c: has joined #ruby
[20:02:52] jenrzzz: has joined #ruby
[20:04:17] dinfuehr_: has joined #ruby
[20:09:12] eckhardt: has joined #ruby
[20:09:50] robscomputer: has joined #ruby
[20:15:03] WhereIsMySpoon: has joined #ruby
[20:18:05] yokel: has joined #ruby
[20:18:42] amelliaa: has joined #ruby
[20:23:00] alfiemax: has joined #ruby
[20:24:37] rgb-one: has joined #ruby
[20:24:59] rgb-one: > (0..1024).find { |i| !File.exist?("/tmp/.X11-unix/X#{i}") }
[20:25:05] \void: has joined #ruby
[20:25:14] rgb-one: how does one run eval here?
[20:25:30] rgb-one: !eval (0..1024).find { |i| !File.exist?("/tmp/.X11-unix/X#{i}") }
[20:25:58] phaul: >> 'this is how'
[20:25:59] ruby[bot]: phaul: # => "this is how" (https://eval.in/976199)
[20:26:07] rgb-one: >> (0..1024).find { |i| !File.exist?("/tmp/.X11-unix/X#{i}") }
[20:26:08] ruby[bot]: rgb-one: # => (https://eval.in/976200)
[20:26:53] tolerablyjake: has joined #ruby
[20:27:00] rgb-one: On my system that command I pasted returns 18
[20:27:06] rgb-one: I don't know why though
[20:27:17] rgb-one: Not quite sure what that snippet is doing
[20:28:30] phaul: I don't know but a stab in the dark is that it tries to find the Xorg display number
[20:29:32] phaul: though then ENV['DISPLAY'] should be better for the same
[20:29:53] phaul: *if* it does that :)
[20:34:22] cmhobbs: has joined #ruby
[20:34:42] rgb-one: ENV['DISPLAY'] returns :0
[20:34:52] rgb-one: which makes sense to me
[20:35:20] cmhobbs: if i've built a gem via bundler ("bundle gem foo") and i want to add a new source file to it, do i simply create the file in lib/foo/myclass.rb and add "require "foo/myclass"" to the gemspec?
[20:35:26] cmhobbs: because i keep getting uninitialized constant there
[20:35:32] jenrzzz: has joined #ruby
[20:35:32] jenrzzz: has joined #ruby
[20:36:15] alfiemax: has joined #ruby
[20:37:08] cmhobbs: top of lib/foo/myclass.rb is "module Foo; class Myclass; ..."
[20:39:35] jecht: in my gems i have module Foo at the lib level
[20:39:43] jecht: lib/foo.rb
[20:39:59] cmhobbs: yeah, foo.rb is there
[20:39:59] jecht: and i require the class in there
[20:40:12] jecht: that has worked for me
[20:40:13] cmhobbs: alright, i added it to the gemspec because rspec was bitching about uninit constant
[20:40:23] cmhobbs: i probably have some path nonsense wrong
[20:44:34] yokel: has joined #ruby
[20:45:23] phaul: I don't see why you would want to add all source files with require to the gemspec. That shouldn't be needed. Only needed if the gemspec is using something that is defined in the source file. typically with autogenerated gem the SomeGem::VERSION that is auto generated in lib/somegem/version.rb
[20:46:32] cmhobbs: i only did it because rspec was complaining
[20:46:46] cmhobbs: i had my test under spec/foo/myclass_spec.rb when it should've been spec/myclass_spec.rb
[20:46:50] cmhobbs: this resolved the issue
[20:47:17] cmhobbs: why spec/ doesn't mirror lib/, i will never know
[20:48:49] alfiemax: has joined #ruby
[20:49:04] rgb-one: has left #ruby: ("Konversation terminated!")
[20:51:36] dr3wo: has joined #ruby
[20:53:00] yokel: has joined #ruby
[20:54:21] troulouliou_dev: has joined #ruby
[20:54:38] eckhardt_: has joined #ruby
[20:55:58] robscomputer: has joined #ruby
[20:56:25] chouhoul_: has joined #ruby
[20:56:59] eckhardt_: has joined #ruby
[20:57:06] jottr: has joined #ruby
[20:59:11] clemens3: has joined #ruby
[20:59:27] cdg: has joined #ruby
[21:03:06] tomphp: has joined #ruby
[21:03:54] phaul: cmhobbs: rspec is fully flexible on folder layouts, this is a simple example https://github.com/phaul/befunge/tree/master/spec that even categorizes specs in integration / module folders.
[21:04:50] cdg_: has joined #ruby
[21:05:50] chouhoulis: has joined #ruby
[21:05:50] alfiemax: has joined #ruby
[21:06:16] yokel: has joined #ruby
[21:12:49] yokel: has joined #ruby
[21:16:09] ChaosBringer: has joined #ruby
[21:17:23] arne: has joined #ruby
[21:17:41] arne: if i have a set of numbers [1,2,3,5,6,99,100]
[21:18:30] arne: how would i detect ranges like this becomes [1..3,5..6,99..100]
[21:18:32] alfiemax: has joined #ruby
[21:18:38] arne: i think i even asked that question before
[21:19:00] arne: each_cons and then ech if a.succ == b?
[21:20:52] havenwood: >> [1,2,3,5,6,99,100].chunk_while { |a, b| a.succ == b }.map(&:minmax).map { |min, max| min..max } # arne
[21:20:53] ruby[bot]: havenwood: # => [1..3, 5..6, 99..100] (https://eval.in/976251)
[21:21:24] workmad3: has joined #ruby
[21:23:31] arne: yeah this was my try .sort.chunk_while { |a,b| a.succ == b }
[21:23:40] arne: that min max thingie is cool
[21:25:01] chouhoul_: has joined #ruby
[21:27:39] Creatornator: has joined #ruby
[21:29:01] jottr: has joined #ruby
[21:30:35] Azure: has joined #ruby
[21:31:40] alfiemax: has joined #ruby
[21:36:55] yokel: has joined #ruby
[21:41:19] Mike11: has joined #ruby
[21:41:23] Creatornator: has joined #ruby
[21:43:58] erlend: has joined #ruby
[21:48:19] alfiemax: has joined #ruby
[21:50:22] dr3wo: has joined #ruby
[21:51:56] eckhardt: has joined #ruby
[21:53:24] noobineer: has joined #ruby
[21:56:15] venmx: has joined #ruby
[21:56:19] GJdan: has joined #ruby
[22:01:47] drale2k_: has joined #ruby
[22:03:21] mtkd: has joined #ruby
[22:04:15] Creatornator: has joined #ruby
[22:09:11] drale2k_: has joined #ruby
[22:11:59] yokel: has joined #ruby
[22:13:29] drale2k_: has joined #ruby
[22:14:16] mojtaba: has joined #ruby
[22:14:58] mojtaba: Hello, I have just installed ruby using rvm, but the thing is that, I can not install 2.5. Do you know what should I do? (I am using ubuntu 16.04 LTS)
[22:16:34] orbyt_: has joined #ruby
[22:17:21] guacamole: has joined #ruby
[22:17:26] mojtaba: rvm list known, gives ruby-2.4.1 as the latest one.
[22:17:34] havenwood: mojtaba: rvm get head && rvm install ruby 2.5
[22:17:45] havenwood: mojtaba: Update RVM to a version that has 2.5 definitions: rvm get head
[22:18:07] mojtaba: havenwood: Thanks. I will run it.
[22:18:39] mojtaba: havenwood: after rvm install ruby 2.5, what will happen to the older version?
[22:18:46] mojtaba: Should I remove it, or it will take care of it?
[22:18:57] havenwood: mojtaba: it will still be there and the default will remain what it was before your install
[22:19:05] havenwood: mojtaba: it will not be automatically removed
[22:19:14] mojtaba: havenwood: should I remove it? and how?
[22:19:34] nowhere_man: has joined #ruby
[22:19:36] yokel: has joined #ruby
[22:20:07] havenwood: mojtaba: I'd remove ruby-2.4.1 personally, yes.
[22:20:34] jottr: has joined #ruby
[22:20:38] mojtaba: havenwood: How should I do that? (This is my first try with Ruby)
[22:20:53] havenwood: mojtaba: rvm uninstall ruby-2.4.1
[22:21:04] mojtaba: havenwood: Thanks
[22:21:10] duckpuppy: has joined #ruby
[22:21:19] Xiti`: has joined #ruby
[22:21:24] mojtaba: havenwood: last question, how should I change the default ruby?
[22:21:34] havenwood: mojtaba: rvm install ruby-2.5.0 && rvm use --default ruby-2.5.0
[22:21:35] havenwood: mojtaba: see my last message
[22:21:50] mojtaba: havenwood: Thank you very much
[22:21:56] havenwood: mojtaba: you're welcome
[22:22:12] schneider: Is there a way for editing YAML files without removing comments and styling?
[22:22:17] zapata: has joined #ruby
[22:23:11] havenwood: schneider: i don't know a way with a yaml parser
[22:25:56] mojtaba: havenwood: Setting the default gives this error: RVM is not a function, selecting rubies with 'rvm use ...' will not work.
[22:26:05] mojtaba: You need to change your terminal emulator preferences to allow login shell.
[22:26:05] mojtaba: Sometimes it is required to use `/bin/bash --login` as the command.
[22:26:05] mojtaba: Please visit https://rvm.io/integration/gnome-terminal/ for an example.
[22:26:10] mojtaba: Do you know what should I do?
[22:26:15] havenwood: mojtaba: Try restarting your terminal.
[22:26:36] mojtaba: havenwood: same error
[22:26:46] havenwood: mojtaba: source ~/.rvm/scripts/rvm
[22:26:55] havenwood: mojtaba: then try
[22:27:22] mojtaba: havenwood: perfect, thanks. Should I install the documentation? (I mean is it needed?)
[22:27:47] havenwood: mojtaba: it's not needed especially if you're online
[22:28:00] mojtaba: havenwood: thanks a million
[22:28:11] havenwood: mojtaba: You'll want to add this to one of the dotfiles that loads with your shell: [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
[22:28:21] havenwood: mojtaba: like ~/.bash_profile
[22:28:31] mojtaba: havenwood: What is that for?
[22:28:40] havenwood: it's just the source line above
[22:28:44] havenwood: i've got to relocate
[22:29:03] mojtaba: havenwood: So, I have to run each time to set the default ruby?
[22:29:30] Xiti: has joined #ruby
[22:29:34] guacamole: has joined #ruby
[22:30:30] mojtaba: havenwood: This line was added to my .bashrc automatically: export PATH="$PATH:$HOME/.rvm/bin"
[22:31:16] alfiemax: has joined #ruby
[22:33:43] duckpuppy: has joined #ruby
[22:35:36] yokel: has joined #ruby
[22:40:02] drale2k_: has joined #ruby
[22:40:20] eckhardt: has joined #ruby
[22:43:57] white_lilies: has joined #ruby
[22:44:56] nopolitica: has joined #ruby
[22:46:14] cmhobbs: has left #ruby: ()
[22:50:07] cagomez: has joined #ruby
[22:50:37] tAn: has joined #ruby
[22:51:26] yokel: has joined #ruby
[22:52:36] alfiemax: has joined #ruby
[22:53:30] crankharder: has joined #ruby
[22:54:42] duderonomy: has joined #ruby
[22:56:25] yokel: has joined #ruby
[23:00:58] tolerablyjake: mojtaba: you don't have to set the default ruby each time, the ` [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"` loading with your shell is what makes the magic happen
[23:01:31] mojtaba: tolerablyjake: what magic?
[23:01:58] tolerablyjake: sorry, no magic. It's what looks up your default ruby and selects it for you
[23:03:53] alfiemax: has joined #ruby
[23:05:48] drale2k_: has joined #ruby
[23:06:19] crankharder: has joined #ruby
[23:06:49] RougeR: has joined #ruby
[23:12:19] iszak: has joined #ruby
[23:12:19] iszak: has joined #ruby
[23:16:07] duckpuppy: has joined #ruby
[23:16:49] Psybur_: has joined #ruby
[23:16:50] alfiemax: has joined #ruby
[23:21:57] workmad3: has joined #ruby
[23:22:55] duderonomy: has joined #ruby
[23:24:01] ur5us: has joined #ruby
[23:25:42] drale2k_: has joined #ruby
[23:27:09] dnewkerk: has joined #ruby
[23:31:53] crankharder: has joined #ruby
[23:32:56] dnewkerk: has joined #ruby
[23:33:04] TinkerT: has joined #ruby
[23:38:20] cschneid: has joined #ruby
[23:38:53] cagomez: has joined #ruby
[23:39:06] yxhuvud: has joined #ruby
[23:40:16] yokel: has joined #ruby
[23:41:19] Creatornator: has joined #ruby
[23:45:58] guacamole: has joined #ruby
[23:46:46] roshanavand: has joined #ruby
[23:47:50] yokel: has joined #ruby
[23:48:35] crankharder: has joined #ruby
[23:49:22] conceivably: has joined #ruby
[23:51:12] alfiemax: has joined #ruby
[23:52:38] erlend: has joined #ruby
[23:55:23] conceivably: has joined #ruby
[23:55:38] crankharder: has joined #ruby
[23:57:52] jenrzzz: has joined #ruby
[23:58:42] conceivably: has joined #ruby
[23:59:07] nowhereman_: has joined #ruby