« Back to channel list

#ruby - 12 January 2018

« Back 1 day Forward 1 day »
[00:00:29] ruby[bot]: -bb kiltzman!*@*$#ruby-fix-your-connection *!*@95.215.47.208$#ruby-fix-your-connection
[00:07:25] goatish: has joined #ruby
[00:14:07] alfiemax: has joined #ruby
[00:16:23] fmcgeough: has joined #ruby
[00:16:34] miah: has joined #ruby
[00:17:14] pastorinni: has joined #ruby
[00:20:33] cschneid_: has joined #ruby
[00:20:47] mtkd: has joined #ruby
[00:25:10] GremL1N2: has joined #ruby
[00:26:20] infernix: has joined #ruby
[00:27:54] eblip: has joined #ruby
[00:28:59] DTZUZO: has joined #ruby
[00:33:22] leitz: has joined #ruby
[00:33:47] jeffreylevesque: has joined #ruby
[00:34:11] bronson: has joined #ruby
[00:38:57] maum: has joined #ruby
[00:39:38] cschneid_: has joined #ruby
[00:41:49] Jameser: has joined #ruby
[00:42:55] JusticeFries: has joined #ruby
[00:44:58] alfiemax: has joined #ruby
[00:46:08] Troy2: has joined #ruby
[00:46:16] MaksimPinigin: has joined #ruby
[00:46:51] Riddell: has joined #ruby
[00:48:08] felipec: has joined #ruby
[00:48:43] felipec: Anyone has a better sugestion to accumulate an array?
[00:48:47] felipec: _, accum = [5, 10, 15].reduce([0,[]]) { |(sum,array),x| [sum = sum + x, array << sum] }
[00:49:53] felipec: I expect: [5, 15, 30]
[00:52:06] TomyLobo: has joined #ruby
[00:53:09] jeffreylevesque_: has joined #ruby
[00:57:44] mikeiniowa: has joined #ruby
[00:58:40] rrutkowski: has joined #ruby
[00:59:02] s3nd1v0g1us: has joined #ruby
[00:59:15] sammi`: has joined #ruby
[01:02:13] rrutkowski_: has joined #ruby
[01:02:51] roshanavand: has left #ruby: ()
[01:07:00] rrutkowski: has joined #ruby
[01:10:31] havenwood: felipec: [5, 10, 15].reduce([]) { |a, n| a << a.last.to_i + n }
[01:10:43] havenwood: felipec: not better, per se
[01:12:04] rrutkowski: has joined #ruby
[01:12:46] havenwood: >> [5, 10, 15].reduce([0, []]) { |(sum, array), x| [sum += x, array << sum] }.last
[01:12:47] ruby[bot]: havenwood: # => [5, 15, 30] (https://eval.in/933896)
[01:13:06] havenwood: felipec: really += is the only thing i can think of for improving your solution
[01:13:44] guacamole: has joined #ruby
[01:13:44] guacamole: has joined #ruby
[01:14:31] havenwood: or the #to_i trick for initialization - i'd have to think about it
[01:16:10] priodev: has joined #ruby
[01:19:55] ltp: has joined #ruby
[01:19:57] veduardo: has joined #ruby
[01:20:09] bmurt: has joined #ruby
[01:20:19] rrutkowski: has joined #ruby
[01:22:48] felipec: havenwood: I think this is nicer https://gist.github.com/felipec/811711cb4dbddbf1b9def5065d894078
[01:24:40] havenwood: >> counter = 0; [5, 10, 15].map { |n| counter += n }
[01:24:46] ruby[bot]: havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[01:24:49] havenwood: >> counter = 0; [5, 10, 15].map { |n| counter += n }
[01:24:55] ruby[bot]: havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[01:25:01] havenwood: bot is down
[01:25:03] havenwood: #=> [5, 15, 30]
[01:25:14] havenwood: felipec: how about a simple solution like that ^?
[01:27:20] felipec: havenwood: yeah, when I can't find a functional soltuion I fall to imperative ones, but I thought there must be a way for a simple one line solution
[01:28:13] havenwood: felipec: there's something really stateful about it
[01:29:38] havenwood: [5, 10, 15] #=> [5, 15, 30]
[01:31:12] baweaver: a = [5, 10, 15]; a.map.with_index { |n, i| i > 0 ? n + a[i - 1] : n }
[01:31:30] baweaver: ah, no, not quite
[01:32:14] felipec: cumulative sum
[01:33:42] baweaver: >> [5, 10, 15].reduce([]) { |a,i| a << a.last.to_i + i }
[01:33:48] ruby[bot]: baweaver: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[01:33:58] baweaver: # => [5, 15, 30]
[01:34:18] havenwood: baweaver: that's what i came up with too! check scrollback :-)
[01:35:16] bronson: has joined #ruby
[01:35:51] cdg_: has joined #ruby
[01:39:12] Guest29596: has joined #ruby
[01:41:33] rrutkowski_: has joined #ruby
[01:46:32] rrutkowski: has joined #ruby
[01:49:22] dtzuzu: has joined #ruby
[01:55:16] Mia: has joined #ruby
[01:55:16] Mia: has joined #ruby
[01:55:59] nit3rid3: has joined #ruby
[01:59:45] fmcgeough: has joined #ruby
[02:01:01] gnufied: has joined #ruby
[02:01:19] ramfjord: I'm writing a migration to drop 4 columns on a heavily accessed table, so I'll probably be setting the lock timeout and retrying over and over until I can get the lock. I'm thinking I should just drop all 4 in a single ALTER TABLE once I finally get the lock - would there be any reason to do 1 at a time? I'm guessing these calls will be super fast even on our large prod table since it's just updating the
[02:01:25] ramfjord: metadata - it went fine on staging.
[02:02:03] ramfjord: doh thought his was postgres IRC - sorry guys!
[02:04:18] Azure|dc: has joined #ruby
[02:09:13] pastorinni: has joined #ruby
[02:11:11] sammi`: has joined #ruby
[02:11:27] r3kz: has joined #ruby
[02:16:03] felipec: >> [1.1, 2.01, 3.001].map { |e| e.round(2) }
[02:16:09] ruby[bot]: felipec: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[02:16:46] felipec: Can I make { |e| e.round(2) } a proc or a lambda and pass it to map?
[02:18:00] alfiemax: has joined #ruby
[02:22:38] felipec: Got it: array.map(&lambda)
[02:27:46] Axy: has joined #ruby
[02:29:31] gizmore: has joined #ruby
[02:30:36] xa0s_: has joined #ruby
[02:34:40] Azure: has joined #ruby
[02:36:19] bronson: has joined #ruby
[02:38:55] orbyt_: has joined #ruby
[02:41:28] sammi`: has joined #ruby
[02:42:18] RyanMcCoskrie: has joined #ruby
[02:43:12] ramfjord: felipec: yup! too bad there's no magic syntax for curried functions like that. One could hope for `array.map(&:round(2))`, but such does not exist
[02:43:13] alfiemax: has joined #ruby
[02:46:26] shaw908: has joined #ruby
[02:51:41] rrutkowski: has joined #ruby
[02:55:36] Jameser: has joined #ruby
[02:56:28] JusticeFries: has joined #ruby
[02:56:41] rrutkowski: has joined #ruby
[03:00:37] ledestin: has joined #ruby
[03:01:58] guardianx: has joined #ruby
[03:02:46] izaac_: has joined #ruby
[03:03:46] shaw908: has joined #ruby
[03:04:18] sammi`: has joined #ruby
[03:07:58] ramfjord: has joined #ruby
[03:09:56] alfiemax: has joined #ruby
[03:10:23] JusticeFries: has joined #ruby
[03:10:45] kapil___: has joined #ruby
[03:20:36] JusticeFries: has joined #ruby
[03:29:19] herbmillerjr: has joined #ruby
[03:31:26] uZiel: has joined #ruby
[03:32:48] orbyt_: has joined #ruby
[03:33:41] dstrunk: has joined #ruby
[03:37:02] bronson: has joined #ruby
[03:38:18] ptx0: has joined #ruby
[03:40:04] MaksimPinigin: has joined #ruby
[03:40:56] cdg: has joined #ruby
[03:42:16] PaulCapestany: has joined #ruby
[03:43:17] Inoperable: has joined #ruby
[03:43:35] darkhanb: has joined #ruby
[03:51:22] alfiemax: has joined #ruby
[03:57:37] uZiel: has joined #ruby
[04:09:14] Jameser: has joined #ruby
[04:14:26] Azure: has joined #ruby
[04:24:21] v0dro: has joined #ruby
[04:26:32] jabreity_: has joined #ruby
[04:28:02] pharma_joe: has joined #ruby
[04:36:55] mikhael_k33hl: has joined #ruby
[04:37:56] bronson: has joined #ruby
[04:38:11] mikhael_k33hl: I've declared a constant in my Module - named AppLog- . . . the constant is for Logger.new(), but I think referring to it everytime i want to log is a bit ugly, e.g. AppLog::LOG.info . . . is there any better way to do it?
[04:41:15] jxv: has joined #ruby
[04:44:45] Troy2: has joined #ruby
[04:48:30] gix: has joined #ruby
[04:55:45] skweek: has joined #ruby
[04:56:36] alfiemax: has joined #ruby
[05:12:45] tAn: has joined #ruby
[05:15:53] mjolnird: has joined #ruby
[05:18:12] izaac: has joined #ruby
[05:32:40] uZiel: has joined #ruby
[05:34:57] JusticeFries: has joined #ruby
[05:38:33] unayung: has joined #ruby
[05:38:44] bronson: has joined #ruby
[05:40:51] aupadhye: has joined #ruby
[05:49:24] pharma_j_: has joined #ruby
[05:53:54] Prutheus: has joined #ruby
[05:56:28] Prutheus: Hello. I am on rails. I want to download a file via a send_file call. This worked yesterday. But however, now it does not work anymore. When I click on my URL which calls a function where send_file is inside, no file gets downloaded. But in the server log, the send_file was successful (but with 0.1ms every time, what is too few for such a big file). So what could I do wrong? What part of code do you need to see?
[06:01:38] alfiemax_: has joined #ruby
[06:03:36] skweek: has joined #ruby
[06:10:31] Jameser: has joined #ruby
[06:11:29] ramfjord: has joined #ruby
[06:15:56] Immune: has joined #ruby
[06:16:17] KeyJoo: has joined #ruby
[06:17:40] iamarun: has joined #ruby
[06:18:45] nowhereman_: has joined #ruby
[06:27:24] zalipuha[m]: has joined #ruby
[06:27:40] aviraldg: has joined #ruby
[06:28:03] Nightmare: has joined #ruby
[06:28:05] Giphy[m]: has joined #ruby
[06:28:09] naprimer: has joined #ruby
[06:28:57] guardianx: has joined #ruby
[06:29:23] jenrzzz: has joined #ruby
[06:29:24] jenrzzz: has joined #ruby
[06:31:05] NightMonkey: has joined #ruby
[06:31:10] MobiBleu: has joined #ruby
[06:31:51] unayung: has left #ruby: ()
[06:33:19] Immune: has joined #ruby
[06:37:32] dionysus69: has joined #ruby
[06:38:53] Pisuke: has joined #ruby
[06:39:25] bronson: has joined #ruby
[06:43:17] zwliew: has joined #ruby
[06:44:52] reber: has joined #ruby
[06:50:41] tAn: has joined #ruby
[06:51:25] tAn: has joined #ruby
[06:52:41] tAn: has joined #ruby
[06:53:00] tAn: has joined #ruby
[06:53:05] mtkd: has joined #ruby
[06:55:32] kapil___: has joined #ruby
[06:58:53] RyanMcCoskrie: has joined #ruby
[06:59:33] clemens3: has joined #ruby
[07:03:13] Sembei: has joined #ruby
[07:03:40] Xiti: has joined #ruby
[07:03:54] apeiros: has joined #ruby
[07:05:57] amatas: has joined #ruby
[07:06:21] mark_66: has joined #ruby
[07:12:15] aufi: has joined #ruby
[07:13:01] Hobbyboy: has joined #ruby
[07:15:29] Inoperable: has joined #ruby
[07:16:25] andikr: has joined #ruby
[07:16:55] Immune: has joined #ruby
[07:17:09] MyMind: has joined #ruby
[07:18:10] Jameser: has joined #ruby
[07:19:38] nowhereman_: has joined #ruby
[07:26:32] conta: has joined #ruby
[07:27:58] tAn: has joined #ruby
[07:29:10] anisha: has joined #ruby
[07:30:53] Ishido: has joined #ruby
[07:34:13] skweek: has joined #ruby
[07:35:23] tao_: has joined #ruby
[07:40:15] bronson: has joined #ruby
[07:40:29] iamarun: has joined #ruby
[07:43:07] tAn: has joined #ruby
[07:51:58] Immune: has joined #ruby
[07:55:42] roshanavand: has joined #ruby
[07:56:27] darkhanb: has joined #ruby
[07:59:32] volix: has joined #ruby
[08:00:31] cdg: has joined #ruby
[08:01:55] ptx0: has joined #ruby
[08:03:06] anas: has joined #ruby
[08:05:56] RyanMcCoskrie: Can someone tell me how to properly exit on EOF when reading from a terminal instead of a file?
[08:06:55] RyanMcCoskrie: The usual file reading loop results in prompts being written AFTER reading the users command
[08:08:12] dionysus69: has joined #ruby
[08:11:45] ramfjord: has joined #ruby
[08:17:31] nowhereman_: has joined #ruby
[08:18:02] alex``: has joined #ruby
[08:19:09] claudiuinberlin: has joined #ruby
[08:26:50] rabajaj: has joined #ruby
[08:26:54] zachary12: has joined #ruby
[08:29:30] burgestrand: has joined #ruby
[08:33:26] TomyWork: has joined #ruby
[08:35:51] maufart: has joined #ruby
[08:37:27] Asher: has joined #ruby
[08:37:47] vondruch: has joined #ruby
[08:41:24] bronson: has joined #ruby
[08:45:35] tvw: has joined #ruby
[08:47:30] alfiemax: has joined #ruby
[08:52:19] aufi_: has joined #ruby
[08:53:14] rrutkowski: has joined #ruby
[08:54:52] aufi_: has joined #ruby
[08:57:40] mtkd: has joined #ruby
[08:58:44] nadir: has joined #ruby
[09:02:21] hurricanehrndz: has joined #ruby
[09:03:09] guille-moe: has joined #ruby
[09:03:21] amatas_: has joined #ruby
[09:04:22] Immune: has joined #ruby
[09:05:10] Jameser: has joined #ruby
[09:10:00] cdg: has joined #ruby
[09:11:23] cdg_: has joined #ruby
[09:15:06] marr: has joined #ruby
[09:20:04] Jameser: has joined #ruby
[09:21:36] cschneid_: has joined #ruby
[09:23:19] Jameser: has joined #ruby
[09:26:01] jaruga: has joined #ruby
[09:27:30] apeiros: has joined #ruby
[09:31:31] mrBen2k2k2k: has joined #ruby
[09:32:57] blackmesa: has joined #ruby
[09:34:28] Emmanuel_Chanel: has joined #ruby
[09:36:12] hahuang65: has joined #ruby
[09:42:12] bronson: has joined #ruby
[09:43:12] Beams: has joined #ruby
[09:45:00] alex``: has joined #ruby
[09:52:27] jsrn: has joined #ruby
[09:58:38] alfiemax: has joined #ruby
[10:01:14] blackmesa: has joined #ruby
[10:01:48] guardianx: has joined #ruby
[10:02:03] phaul: has joined #ruby
[10:04:30] tomphp: has joined #ruby
[10:06:25] johno84: has joined #ruby
[10:11:55] ramfjord: has joined #ruby
[10:13:34] LenPayne: has joined #ruby
[10:15:47] iamarun: has joined #ruby
[10:19:19] sameerynho: has joined #ruby
[10:24:14] kelseynz: has joined #ruby
[10:31:47] dhollinger: has joined #ruby
[10:31:58] tomphp: has joined #ruby
[10:33:07] za1b1tsu: has joined #ruby
[10:34:26] workmad3: has joined #ruby
[10:36:10] camilasan: has joined #ruby
[10:36:33] LocaMocha: has joined #ruby
[10:36:37] kelseynz: has joined #ruby
[10:36:42] jamesaxl: has joined #ruby
[10:38:05] ldnunes: has joined #ruby
[10:41:08] blackmesa: has joined #ruby
[10:42:59] bronson: has joined #ruby
[10:44:31] vtx: has joined #ruby
[10:49:02] thinkpad: has joined #ruby
[10:49:16] minimalism: has joined #ruby
[10:49:24] sidx64: has joined #ruby
[10:49:42] benjen: has joined #ruby
[10:50:12] huddy: has joined #ruby
[10:51:32] sammi`: has joined #ruby
[10:51:47] alfiemax: has joined #ruby
[10:58:26] LenPayne: has joined #ruby
[10:59:29] iamarun: has joined #ruby
[11:02:12] mtkd: has joined #ruby
[11:07:54] alfiemax: has joined #ruby
[11:08:44] biberu: has joined #ruby
[11:08:46] Cavallari: has joined #ruby
[11:11:10] bkxd: has joined #ruby
[11:14:26] jaruga_: has joined #ruby
[11:14:45] hfp_work: has joined #ruby
[11:15:08] alfiemax: has joined #ruby
[11:15:39] mikhael_k33hl: Is there a better way to to code something like this? @rsync_options += ' ' + rsync_delete_options || DEFAULT_RSYNC_DELETE_OPTIONS
[11:15:41] hays_: has joined #ruby
[11:18:14] alfiemax: has joined #ruby
[11:18:44] bkxd_: has joined #ruby
[11:20:50] Riddell: has joined #ruby
[11:20:59] tulivu: has joined #ruby
[11:23:56] alex``: has joined #ruby
[11:24:39] jottr: has joined #ruby
[11:25:55] Jameser: has joined #ruby
[11:34:20] Jameser: has joined #ruby
[11:39:22] alfiemax: has joined #ruby
[11:43:50] bronson: has joined #ruby
[11:44:30] phaul: mikhael_k33hl: + is higher precedence than || so I think this ccode might have a bug. if rsync_delete_options.nil? then you have ' ' + nil which throws exception
[11:46:37] mikhael_k33hl: phaul: oh yeah, just tried it, haha, silly me
[11:47:47] sepp2k: has joined #ruby
[11:47:55] zachary12: has joined #ruby
[11:50:51] anisha: has joined #ruby
[11:51:37] Asher: has joined #ruby
[11:53:05] Guest29596: has joined #ruby
[11:54:33] za1b1tsu: Hello, for a model I have an attribute expire that is an DateTime object, when I try to do Model.new(expire: DateTime.current) in the console, it shows expire nil, but if do Model.new(name:'foo') the name attribute has 'foo' value. Anybody knows why?
[11:56:33] ur5us: has joined #ruby
[12:00:42] apeiros: za1b1tsu: activerecord model?
[12:00:45] tobiasvl: za1b1tsu: this sounds like rails? try #RubyOnRails
[12:02:26] drewmcmillan: has joined #ruby
[12:06:11] za1b1tsu: oops my bad
[12:06:20] za1b1tsu: I thought this was rails channel lol
[12:06:49] Gnukpd: has joined #ruby
[12:12:06] ramfjord: has joined #ruby
[12:13:25] dstrunk: has joined #ruby
[12:16:47] tomphp: has joined #ruby
[12:17:57] roshanavand: has left #ruby: ()
[12:18:41] bkxd: has joined #ruby
[12:21:42] cschneid_: has joined #ruby
[12:22:40] tomphp: has joined #ruby
[12:24:52] tomphp: has joined #ruby
[12:24:52] troulouliou_div2: has joined #ruby
[12:25:57] Mia: has joined #ruby
[12:25:57] Mia: has joined #ruby
[12:26:56] cabotto: has joined #ruby
[12:34:05] AJA4350: has joined #ruby
[12:38:02] bkxd: has joined #ruby
[12:38:51] bkxd: has joined #ruby
[12:41:17] apparition: has joined #ruby
[12:42:42] LenPayne: has joined #ruby
[12:42:51] Troy2: has joined #ruby
[12:44:39] bronson: has joined #ruby
[12:53:49] tcopeland: has joined #ruby
[13:06:25] fmcgeough: has joined #ruby
[13:06:32] apeiros: has joined #ruby
[13:07:18] mtkd: has joined #ruby
[13:10:14] stephenh: has joined #ruby
[13:10:53] err_ok: has joined #ruby
[13:12:57] drewmcmillan: has joined #ruby
[13:13:06] cardoni: has joined #ruby
[13:13:17] caw__: has joined #ruby
[13:13:17] pabs: has joined #ruby
[13:13:24] cstrahan: has joined #ruby
[13:13:26] DukeDave: has joined #ruby
[13:13:32] Azure: has joined #ruby
[13:16:51] k0mpa: has joined #ruby
[13:20:05] voker57: has joined #ruby
[13:20:05] voker57: has joined #ruby
[13:20:46] SirFunk: has joined #ruby
[13:24:44] quobo: has joined #ruby
[13:29:48] bmurt: has joined #ruby
[13:30:10] guardianx: has joined #ruby
[13:31:48] burgestrand: has joined #ruby
[13:32:30] rippa: has joined #ruby
[13:33:45] tomphp: has joined #ruby
[13:34:49] jeffreylevesque: has joined #ruby
[13:42:57] shinnya: has joined #ruby
[13:45:57] bronson: has joined #ruby
[13:53:56] eckhardt: has joined #ruby
[14:02:46] cdg: has joined #ruby
[14:03:18] deadnull: has joined #ruby
[14:07:54] cdg: has joined #ruby
[14:08:38] Jameser: has joined #ruby
[14:10:38] dinfuehr: has joined #ruby
[14:12:02] SirFunk: has joined #ruby
[14:12:19] ramfjord: has joined #ruby
[14:15:42] jinie: has joined #ruby
[14:21:43] tomphp: has joined #ruby
[14:25:19] tomphp: has joined #ruby
[14:27:28] synthroid: has joined #ruby
[14:28:06] Emmanuel_Chanel: has joined #ruby
[14:29:40] MaksimPinigin: has joined #ruby
[14:33:47] eckhardt: has joined #ruby
[14:34:56] Terens: has joined #ruby
[14:36:31] guille-moe: has joined #ruby
[14:38:38] tomphp: has joined #ruby
[14:40:35] izaac_: has joined #ruby
[14:44:56] amatas_: has joined #ruby
[14:46:37] bronson: has joined #ruby
[14:47:10] amatas_: has joined #ruby
[14:48:24] belmoussaoui: has joined #ruby
[14:48:55] nchambers: has joined #ruby
[14:49:40] apeiros: has joined #ruby
[14:51:14] krawchyk: has joined #ruby
[14:51:45] Jnco: has joined #ruby
[14:53:36] ramfjord: has joined #ruby
[14:54:08] jottr: has joined #ruby
[14:55:43] DTZUZO: has joined #ruby
[14:58:43] Mia: has joined #ruby
[14:58:43] Mia: has joined #ruby
[15:01:37] jeremy04: has joined #ruby
[15:02:49] cadillac_: has joined #ruby
[15:03:05] jottr: has joined #ruby
[15:04:31] Cad: has joined #ruby
[15:04:45] Cad: has left #ruby: ()
[15:07:25] Emmanuel_Chanel: has joined #ruby
[15:08:55] jxv: has joined #ruby
[15:10:37] uZiel: has joined #ruby
[15:11:43] daxroc: has joined #ruby
[15:11:55] mtkd: has joined #ruby
[15:15:36] troys: has joined #ruby
[15:15:40] Rapture: has joined #ruby
[15:15:59] JusticeFries: has joined #ruby
[15:20:55] k0mpa: has joined #ruby
[15:21:41] hays_: i want to do gem install xxxx and have a commandline utility that i made put in a path somewhere. is there a tool for this?
[15:21:55] blackmesa: has joined #ruby
[15:23:52] Mia: has joined #ruby
[15:25:22] apeiros: hays_: what's the former got to do with the latter? like this, my answer is "gem install xxx; mv path/to/your/utility path/you/want/to/have/it"
[15:25:32] pastorinni: has joined #ruby
[15:25:52] hays_: the utility is the gem
[15:28:45] apeiros: have a bin dir in your gem, add it to the gemspec properly. rubygems will install it.
[15:28:48] LenPayne: has joined #ruby
[15:28:52] cjs226: has joined #ruby
[15:29:04] apeiros: hays_: http://guides.rubygems.org/specification-reference/
[15:29:47] apeiros: executables and files are the relevant ones for this iirc.
[15:35:35] RougeR: has joined #ruby
[15:35:43] RougeR: has joined #ruby
[15:40:54] cadillac_: has joined #ruby
[15:44:28] pastorinni: has joined #ruby
[15:47:22] bronson: has joined #ruby
[15:47:52] oleo: has joined #ruby
[15:48:43] desperek: has joined #ruby
[15:48:55] cschneid_: has joined #ruby
[15:58:35] Miron: has joined #ruby
[15:59:54] zy: has joined #ruby
[16:00:01] selim: has joined #ruby
[16:02:08] zigzig: has joined #ruby
[16:05:28] dionysus69: has joined #ruby
[16:05:58] depesz: has joined #ruby
[16:07:18] depesz: Hi. I'm opening pipe to write to program, using: f = IO.popen(%w{some program}, 'w'); then i write data to it. but when I try to f.close my program waits for the other program (the one I sent data to) to end. How can I make it "send end of data" to child, but not wait for it to finish?
[16:11:17] tomlukeywood: has joined #ruby
[16:11:32] theRoUS: has joined #ruby
[16:13:03] MobiBleu: has joined #ruby
[16:20:19] kapil___: has joined #ruby
[16:25:36] MobiBleu: has joined #ruby
[16:28:39] LenPayne: has joined #ruby
[16:28:47] doublemalt_: has joined #ruby
[16:28:50] wald0: has joined #ruby
[16:31:15] cschneid_: has joined #ruby
[16:34:39] [Butch]: has joined #ruby
[16:37:14] eckhardt: has joined #ruby
[16:37:34] lroca: has joined #ruby
[16:37:34] oz: has joined #ruby
[16:37:36] krasnus: has joined #ruby
[16:37:37] elomatreb: has joined #ruby
[16:37:37] olblak: has joined #ruby
[16:37:40] Junaos: has joined #ruby
[16:37:43] ericmathison: has joined #ruby
[16:37:48] aarongodin: has joined #ruby
[16:37:56] SegFaultAX: has joined #ruby
[16:37:58] kaia: has joined #ruby
[16:38:01] petems: has joined #ruby
[16:38:02] gbailey: has joined #ruby
[16:38:03] lipoqil: has joined #ruby
[16:38:03] hsiktas: has joined #ruby
[16:38:06] fury: has joined #ruby
[16:38:07] Diabolik: has joined #ruby
[16:38:10] jnix: has joined #ruby
[16:38:12] craysiii: has joined #ruby
[16:38:13] manveru: has joined #ruby
[16:38:15] rann: has joined #ruby
[16:38:22] charles81_: has joined #ruby
[16:38:23] MobiBleu: has joined #ruby
[16:38:53] SuperTux88: has joined #ruby
[16:41:06] oetjenj: has joined #ruby
[16:42:41] bauruine: has joined #ruby
[16:42:42] priodev: has joined #ruby
[16:43:41] cschneid_: has joined #ruby
[16:46:44] chmurifree: has joined #ruby
[16:47:28] banisterfiend: has joined #ruby
[16:48:15] bronson: has joined #ruby
[16:50:22] MobiBleu: has joined #ruby
[16:56:03] alfiemax: has joined #ruby
[16:56:16] theRoUS: has joined #ruby
[16:56:16] goatish: has joined #ruby
[16:56:42] clemens3: has joined #ruby
[16:57:05] quobo: has joined #ruby
[17:00:02] krawchyk: has joined #ruby
[17:01:26] Hien: has joined #ruby
[17:02:33] MobiBleu: has joined #ruby
[17:04:22] thejamespinto: has joined #ruby
[17:05:32] JusticeFries: has joined #ruby
[17:10:57] JusticeFries: has joined #ruby
[17:12:53] alex``: has joined #ruby
[17:14:43] MobiBleu: has joined #ruby
[17:16:37] mtkd: has joined #ruby
[17:18:49] ricer2: has joined #ruby
[17:19:51] dviola: has joined #ruby
[17:21:01] synthroid: has joined #ruby
[17:21:37] haylon: @hays_ if you use bundle gem new_gem_name it'll be in the exe folder unless you change the gemspec
[17:23:13] jaruga: has joined #ruby
[17:26:32] uZiel: has joined #ruby
[17:26:44] JusticeFries: has joined #ruby
[17:28:38] orbyt_: has joined #ruby
[17:30:14] darkhanb: has joined #ruby
[17:31:04] lcarlson: has joined #ruby
[17:33:05] lcarlson: has joined #ruby
[17:33:08] jaruga: has joined #ruby
[17:33:09] guacamole: has joined #ruby
[17:33:09] guacamole: has joined #ruby
[17:33:47] cschneid_: has joined #ruby
[17:35:09] MobiBleu: has joined #ruby
[17:35:09] lcarlson: Can anyone recommend a good book, resource, whatever for the latest Ruby code best practices/standards of writing code?
[17:35:32] lcarlson: esp for creating "frameworks of frameworks"
[17:35:53] gizmore: just code ruby
[17:36:03] gizmore: you will know when you fail hard
[17:36:36] lcarlson: gizmore, lol, well I recently used inherited with several define_methods yesterday
[17:36:38] Mrgoose2: has joined #ruby
[17:36:54] lcarlson: and I couldn't help but feel like I was writing rails 2 code
[17:36:57] gizmore: self modifying code?
[17:37:16] lcarlson: to accomplish something I might've been able to do another way
[17:37:34] lcarlson: more like declarative class kind of things
[17:38:01] lcarlson: but yes, I ended up using meta programming/self modifying code to accomplish that task
[17:39:31] cyberRodent: has joined #ruby
[17:42:48] [Butch]: has joined #ruby
[17:43:21] my123: has joined #ruby
[17:43:22] my123: has joined #ruby
[17:46:29] jaruga: has joined #ruby
[17:47:22] MobiBleu: has joined #ruby
[17:49:04] bronson: has joined #ruby
[17:51:43] sanscoeur: has joined #ruby
[17:53:11] dionysus69: has joined #ruby
[17:54:16] raynold: has joined #ruby
[17:54:24] tomlukeywood: has left #ruby: ()
[17:55:04] zautomata: has joined #ruby
[17:58:16] Cavallari: has joined #ruby
[18:00:07] claudiuinberlin: has joined #ruby
[18:00:18] JusticeFries: has joined #ruby
[18:03:37] rrutkowski: has joined #ruby
[18:04:42] alfiemax: has joined #ruby
[18:08:27] rrutkowski: has joined #ruby
[18:08:32] Cavallari: has joined #ruby
[18:08:44] cloaked1: has joined #ruby
[18:10:50] alex-tfdc: has joined #ruby
[18:11:37] MobiBleu: has joined #ruby
[18:13:27] Ishido: has joined #ruby
[18:14:08] rrutkowski: has joined #ruby
[18:15:31] Cavallari: has joined #ruby
[18:15:52] havenwood: lcarlson: Good reads along those lines include Eloquent Ruby, POOR and Confident Ruby.
[18:16:04] havenwood: lcarlson: See: https://gist.github.com/baweaver/57a7c8296ca2c03effbd8fac1e7f6b40#eloquent-ruby
[18:16:14] lcarlson: havenwood, thank you!!
[18:16:32] havenwood: lcarlson: For non-Ruby-specific stuff I'd personally recommend watching all of Rich Hickey's talks.
[18:16:45] havenwood: lcarlson: https://www.infoq.com/presentations/Simple-Made-Easy
[18:17:00] havenwood: lcarlson: Or here's one from RailsConf: https://www.youtube.com/watch?v=rI8tNMsozo0
[18:17:01] lcarlson: havenwood, ya I def watched his talks before
[18:17:14] lcarlson: Simple made easy is one of my favs
[18:17:21] havenwood: lcarlson: You might want to read an article Radar is writing too!
[18:17:43] havenwood: ACTION peers into the mysterious future
[18:18:02] lcarlson: havenwood, haha! How will I acquire said future link?
[18:18:11] havenwood: lcarlson: Roda, dry-rb, and a bunch of other functional-leaning, quality libraries are worth looking at.
[18:18:40] havenwood: Roda has a great pattern that the Sequel gem also shares for plugins.
[18:18:53] rrutkowski: has joined #ruby
[18:19:01] havenwood: And dry-rb has a bunch of libraries to get you thinking. ROM is also interesting.
[18:19:41] MobiBleu: has joined #ruby
[18:19:47] lcarlson: dry-rb is awesome looking!
[18:24:12] lcarlson: havenwood, I'm finding my way back to Ruby after several years of Node programming
[18:24:13] lcarlson: it's been awhile
[18:24:25] lcarlson: I stopped after Rails and Merb merged
[18:24:29] havenwood: lcarlson: There's been a lot of great progress in Ruby while you've been gone.
[18:24:29] lcarlson: source grapes :)
[18:24:46] lcarlson: havenwood, I've noticed!
[18:24:54] kiltzman: has joined #ruby
[18:25:36] lcarlson: anything in particular I should be aware of since that time?
[18:26:32] havenwood: lcarlson: The GC has improved substantially and everything is faster. There're a ton of new methods and features. You should probably check out frozen string literals, since they're widely used now.
[18:27:12] havenwood: We might get a JIT as early as Christmas. It'll be optionally enabled with a -j flag.
[18:27:22] havenwood: That's a huge performance win at the cost of a bit of memory.
[18:27:54] plexigras: has joined #ruby
[18:28:04] lcarlson: havenwood, do frozen string literals even the score with symbols as far as memory usage then?
[18:28:22] lcarlson: wow, JIT! crazy
[18:28:25] havenwood: lcarlson: Yes, and many symbols can be GCed now as well.
[18:29:05] oetjenj: has joined #ruby
[18:29:12] havenwood: https://bugs.ruby-lang.org/issues/14235
[18:29:32] jottr: has joined #ruby
[18:30:24] belmoussaoui: has joined #ruby
[18:30:54] havenwood: lcarlson: There's also a complete rewrite of YARV underway, converting the IR to RTL. (The JIT that's been chosen came from that work, and can get merged before RTL is done.)
[18:31:33] MobiBleu: has joined #ruby
[18:31:43] havenwood: https://github.com/vnmakarov/ruby/tree/rtl_mjit_branch
[18:32:33] reber__: has joined #ruby
[18:33:06] havenwood: lcarlson: I'd also recommend looking into TruffleRuby!
[18:33:08] baweaver: I have been summoned
[18:33:20] havenwood: ACTION says "RTL" three times
[18:33:53] baweaver: more of the gist earlier.
[18:33:57] havenwood: baweaver: Oh, the books!
[18:33:57] lcarlson: "We do run Rails, and pass the majority of the Rails test suite. But we are missing support for OpenSSL, Nokogiri, and ActiveRecord database drivers which makes it not practical to run real Rails applications at the moment."
[18:33:59] havenwood: Right, right.
[18:34:04] baweaver: I should update it later.
[18:34:24] lcarlson: baweaver, great gist btw
[18:34:30] baweaver: danke danke
[18:34:33] lcarlson: thank you much
[18:34:35] Lyfe: has joined #ruby
[18:34:40] Cybergeek: has joined #ruby
[18:34:40] cochi: has joined #ruby
[18:34:40] cochi: has joined #ruby
[18:34:44] Phage: has joined #ruby
[18:34:44] Phage: has joined #ruby
[18:34:47] majoh_: has joined #ruby
[18:34:48] havenwood: lcarlson: I do think it's gotten further now than when that was written.
[18:34:50] lcarlson: bought 3 of those suggestions with one click ;)
[18:34:53] baweaver: It hides up in the channel topic if you're ever looking for it again
[18:34:57] aviraldg: has joined #ruby
[18:35:04] qooupapn: has joined #ruby
[18:35:29] FifthWall: has joined #ruby
[18:35:39] lcarlson: baweaver, oh the short link! nice
[18:35:43] crayfishx: has joined #ruby
[18:35:52] baweaver: Same in the Rails channel
[18:36:02] baweaver: Book List: http://goo.gl/SGklzh
[18:36:24] havenwood: lcarlson: OpenSSL and Nokogiri seem to be working. I think Rails is excitingly close.
[18:36:32] lcarlson: what ever happened to Rubinius? :)
[18:36:34] rrutkowski_: has joined #ruby
[18:36:40] havenwood: lcarlson: It's still around, but lost its JIT.
[18:36:43] gremax: has joined #ruby
[18:36:47] havenwood: It also changed its license.
[18:37:01] TheMoonMaster_: has joined #ruby
[18:37:06] drale2k: has joined #ruby
[18:37:08] havenwood: BSD to Mozilla 2 I think?
[18:37:28] lcarlson: Evan still working on it at all?
[18:37:43] havenwood: lcarlson: Nope
[18:38:15] havenwood: lcarlson: But his Puma webserver is now the Rails default.
[18:38:26] havenwood: It's a lot nicer than Webrick.
[18:38:34] lcarlson: havenwood, ya I noticed that ! It's been smooth sailing
[18:38:41] lcarlson: ya... Webrick..... bleh
[18:38:46] heyimwill: has joined #ruby
[18:38:52] havenwood: Rails 5.2 will even compile Ruby btyecode and cache it for faster startup.
[18:39:12] bokayio: has joined #ruby
[18:39:16] havenwood: That's another thing Ruby has exposed in recent years, so it can be compiled to IR like Elixir, etc.
[18:39:21] selim: has joined #ruby
[18:39:22] lcarlson: can Ruby bytecode convert to web assembly?
[18:39:24] baweaver: Also a lot of us are accumulating around SF and Seattle
[18:39:43] havenwood: lcarlson: Yeah, it's actually ~30% of the runtime, so ~30% faster if you skip that step by caching to disk.
[18:39:50] havenwood: https://github.com/ko1/yomikomu
[18:39:53] hfp_work: has joined #ruby
[18:40:14] lcarlson: baweaver, I do miss SF. Living in Ann Arbor
[18:40:22] lcarlson: (my original hometown)
[18:40:25] havenwood: I'm joining the wave of Rubyists heading to San Fransisco... Boxes just got loaded onto the truck.
[18:40:32] baweaver: havenwood sits behind me
[18:40:52] baweaver: there are quite a few of us working at the same company :D
[18:41:06] cyberRodent: has joined #ruby
[18:41:08] lcarlson: Engine Yard? ;)
[18:41:12] baweaver: Na, Square.
[18:41:16] lcarlson: haha, kidding
[18:41:22] sdrew: has joined #ruby
[18:41:55] baweaver: me, havenwood, xshay, eam, eckhardt, margolis, mmarston, and some others
[18:42:21] lcarlson: Man, I need to start going to Ruby/Rails confs again
[18:42:21] baweaver: So if you ever find an itch to come back to SF some time we can grab coffee
[18:42:24] alfiemax: has joined #ruby
[18:42:28] baweaver: Xavier is a Director now
[18:42:30] lcarlson: I will def do so!
[18:42:50] chat_: has joined #ruby
[18:42:58] lcarlson: Well I'm glad there are so many peeps left :)
[18:43:10] Troy3: has joined #ruby
[18:43:25] lcarlson: what are your githubs/twitters? What's the best way to follow up if I'm in SF? I do visit frequently
[18:43:39] MobiBleu: has joined #ruby
[18:43:45] baweaver: @keystonelemur on Twitter, @baweaver most other places
[18:43:47] drewmcmillan: has joined #ruby
[18:43:54] havenwood: lcarlson: I'm https://github.com/havenwood and @_havenn
[18:44:24] baweaver: baweaver on Twitter was a sorority girl. Only reason I know this is because a recruiter thought she was me which led to quite an amusing followup
[18:45:06] jtdoncas: has joined #ruby
[18:45:31] lcarlson: baweaver, hahah! Oh the fun of Internet aliases
[18:46:26] lcarlson: havenwood, baweaver both followed!
[18:46:31] lcarlson: lancecarlson
[18:47:52] lcarlson: what is the best Ruby conf to go to these days?
[18:47:55] lcarlson: Ruby or Rails?
[18:48:36] baweaver: RubyConf hits LA this year
[18:49:13] baweaver: RailsConf is always fun, especially whenever you get tenderlove giving a keynote
[18:49:39] lcarlson: ah I miss those
[18:49:52] bronson: has joined #ruby
[18:50:17] baweaver: avdi is still giving awesome talks and tutorials, zenspider is still going on Minitest and other SeattleRB projects
[18:51:03] k0mpa: has joined #ruby
[18:51:21] leitz: has joined #ruby
[18:51:24] Ishido: has joined #ruby
[18:52:01] baweaver: Radar is still Radar
[18:52:37] lcarlson: tpope around anymroe?
[18:53:14] baweaver: twitter mainly
[18:53:32] baweaver: giles and zedshaw as well on that note
[18:53:47] lcarlson: Miss Giles. Haven't seen him in ages
[18:54:00] lcarlson: Isn't Zed back to python ? :)
[18:54:11] baweaver: Zed's dead baby
[18:54:19] baweaver: Na, he skips around languages
[18:54:38] lcarlson: curious if he ever got consulting gigs for Mongrel2
[18:54:49] lcarlson: I fell in love with the idea
[18:54:50] zautomata: has joined #ruby
[18:55:01] baweaver: Reddit has some more of the old guard
[18:56:02] lcarlson: great to see people still here though :)
[18:56:08] baweaver: sgriff took into Rust and had a kid he named Ruby XD
[18:56:09] MobiBleu: has joined #ruby
[18:56:13] zautomata: has joined #ruby
[18:56:28] lcarlson: baweaver, LOL, I didn't realize he named his kid Ruby
[18:56:35] lcarlson: I've been listening to Bike Shed for awhile now
[18:56:37] baweaver: Matz is still awesome as always, and is particularly bent on MRuby (Embedded) currently
[18:56:39] nowhereman_: has joined #ruby
[18:56:41] lcarlson: and super into Rust as well
[18:56:47] lcarlson: Rust + Ruby <3
[18:57:21] baweaver: apeiros is still around somewhere
[18:57:31] lcarlson: technoweenie?
[18:57:34] baweaver: cirwin stopped popping up on IRC but runs startups now
[18:57:57] baweaver: not familiar with that one
[18:58:18] lcarlson: Rick Olson I think his name is
[18:58:52] leah2: anyone using vagrant with ruby 2.5?
[18:59:07] lcarlson: I noticed he is a contributor (creator?) of faraday
[18:59:34] baweaver: became the lord commander of EmberJS
[18:59:42] baweaver: and patron saint of package managers for languages
[18:59:49] lcarlson: yes, crates
[19:00:06] baweaver: Can't say I've used Vagrant in a while
[19:00:44] spectra: has joined #ruby
[19:00:52] sameerynho: has joined #ruby
[19:01:55] leah2: dont use it either, but it depends on <2.5
[19:04:12] nowhere_man: has joined #ruby
[19:05:36] blackmesa: has joined #ruby
[19:08:35] rrutkowski: has joined #ruby
[19:08:38] tcopeland: lcarlson: Lance I think we crossed paths back in RubyForge days…
[19:08:45] jaruga: has joined #ruby
[19:09:11] MobiBleu: has joined #ruby
[19:09:32] lcarlson: tcopeland, yes! What's uptime Tom??
[19:10:25] conceivably: has joined #ruby
[19:10:39] jottr: has joined #ruby
[19:11:20] weathermaker: has joined #ruby
[19:12:51] tcopeland: same ol same ol man
[19:12:52] hahuang65: has joined #ruby
[19:13:23] rrutkowski: has joined #ruby
[19:13:49] tcopeland: rails rails rails
[19:14:46] lcarlson: tcopeland, love it. Rails 5 has come a long way. I'm a little miffed that I had to bring in webpacker in order to use es6 instead of using sprockets (because I'd rather not use coffeescript)
[19:14:53] lcarlson: but other than that, no complaints really
[19:15:45] SuperLag: I'm having issues installing "fpm" on RHEL 7.2
[19:15:48] SuperLag: https://pastebin.com/dqQ4vssg
[19:15:50] ruby[bot]: SuperLag: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/d61202cb28f29723552c920443ec8bd2
[19:15:50] ruby[bot]: SuperLag: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[19:16:30] kies: has joined #ruby
[19:17:15] baweaver: no ruby-devel on there
[19:17:23] baweaver: https://stackoverflow.com/questions/4304438/gem-install-failed-to-build-gem-native-extension-cant-find-header-files
[19:17:28] JusticeFries: has joined #ruby
[19:18:37] conceivably: Hello. I'm parsing some XML and in the process instantiate a bunch of Ruby classes. Conceptually, all of these classes represent table rows, but they are different kinds of table rows. What kind of row class should be instantiated depends on various factors such as a xml attribute or name. Where should the part of the code go that makes the decision on which class to instantiate? In a parser class that checks the attributes and name of
[19:18:37] conceivably: the xml node and then instantiates the appropriate subclass, or should I initialize the parent row class with the xml node, which then decides which subclass to instantiate? Or would some other approach be preferable?
[19:19:30] blackmesa: has joined #ruby
[19:20:16] SuperLag: baweaver: I thought ruby-libs would have the magic. Looks like I need to enable another repo.
[19:22:09] baweaver: conceivably: I'd probably put it in a secondary function that the parser calls which would handle distribution to the various classes or errors in the case of an invalid row
[19:22:58] baweaver: Part of me wants to call that a Hydrate / Dehydrate class
[19:23:05] JusticeFries: has joined #ruby
[19:23:20] baweaver: or serialize / deserialize
[19:25:27] jottr: has joined #ruby
[19:30:51] bkxd: has joined #ruby
[19:33:19] MobiBleu: has joined #ruby
[19:35:38] s3nd1v0g1us: has joined #ruby
[19:35:39] johno84: has joined #ruby
[19:36:51] pastorinni: has joined #ruby
[19:37:19] FrostCandy: has joined #ruby
[19:38:13] cdg: has joined #ruby
[19:40:47] conceivably: has joined #ruby
[19:42:22] conceivably: Sorry baweaver I got disconnected. Yes that sounds like a good idea. I think I will go with that and have a sort of factory class. Thanks again :)
[19:43:04] MobiBleu: has joined #ruby
[19:45:49] jamiejackson: has joined #ruby
[19:47:11] blackmesa: has joined #ruby
[19:47:31] guacamole: has joined #ruby
[19:47:31] guacamole: has joined #ruby
[19:48:49] krawchyk: has joined #ruby
[19:51:02] bronson: has joined #ruby
[19:52:41] rrutkowski: has joined #ruby
[19:54:18] ramfjord: has joined #ruby
[19:56:04] MobiBleu: has joined #ruby
[19:56:30] rrutkowski: has left #ruby: ()
[19:57:27] kloeri: has joined #ruby
[19:58:10] dionysus69: has joined #ruby
[19:58:59] rrutkowski_: has joined #ruby
[20:03:59] nopolitica: has joined #ruby
[20:04:07] rrutkowski: has joined #ruby
[20:04:58] MobiBleu: has joined #ruby
[20:07:32] synthroid: has joined #ruby
[20:08:16] bmurt: has joined #ruby
[20:08:34] tcopeland: lcarlson: (sorry, I got pulled into a demo) yeah newer Rails are pretty nice, ditto newer Ruby… a lot faster than the bad old 1.8.7 days
[20:09:06] lcarlson: tcopeland, remember when fcgi was what we came up with?
[20:09:25] tcopeland: haha nice. gotta configure it Apache too, httpd.conf baby
[20:09:31] lcarlson: tcopeland, eventually we got mongrel and used nginx in the front to compensate for insane memory usage
[20:09:38] lcarlson: even then, times were still tough for scale
[20:09:52] tcopeland: yeah there was a whole series of things
[20:10:45] rrutkowski: has joined #ruby
[20:10:57] tcopeland: let’s get Austin Zieglar in here, the whole gang’s back together
[20:10:57] jxv: has joined #ruby
[20:11:21] tcopeland: I met up with Rich Kilmer the other day, he’s mostly doing Elixir now, although some RubyMotion too
[20:12:03] tcopeland: actually I think he spoke at the past rubyconf too, talked about Rake and Rubygems and all that
[20:12:42] lcarlson: tcopeland, I don't understand this obsession with Elixer
[20:12:46] lcarlson: Ruby's syntax is so much nicer
[20:13:02] lcarlson: if you need speed, just use Rust
[20:13:07] lcarlson: then come back to Ruby
[20:13:21] lcarlson: at least you def to write underscored functions :)
[20:13:45] tcopeland: yeah ruby is still doing the job for me… if something is slow it’s usually my fault because I’m doing N+1 queries or recalculating something a million times or something
[20:14:14] lcarlson: tcopeland, well the first one is not even Ruby too! It's the database
[20:15:07] tcopeland: yeah can’t blame ruby for a missing index or whatevs
[20:15:15] lcarlson: tcopeland, in fact, instead of Elixer, why not Go? LOL
[20:15:32] rrutkowski: has joined #ruby
[20:15:44] johnpaul: has joined #ruby
[20:15:44] lcarlson: Go has "agent thingies"
[20:15:55] lcarlson: and they're arguably cuter. "Gophers"
[20:16:10] tcopeland: bam https://kore.io/
[20:16:40] lcarlson: maybe modern C++
[20:16:56] lcarlson: I appreciate the effort that was put into this though
[20:17:00] MobiBleu: has joined #ruby
[20:17:59] lcarlson: I think it's a sign I'm getting older and more mature when I've come back to rails. ;)
[20:18:33] rrutkowski: has joined #ruby
[20:18:44] jottr: has joined #ruby
[20:19:16] tcopeland: yeah maybe realized that it’s pretty good at doing what it does
[20:19:47] tcopeland: once we get to 1B customers we’ll rewrite the perf-critical bits in XYZ
[20:20:36] apeiros_: has joined #ruby
[20:22:23] lcarlson: tcopeland, haha, magic number!
[20:22:40] lcarlson: sys ops have improved too
[20:22:54] lcarlson: so scaling things that are slow in your apps are pretty easy to do
[20:23:08] lcarlson: I can't English today
[20:23:18] rrutkowski: has joined #ruby
[20:23:23] tcopeland: yeah select a new item in dropdown box, bam, RAM doubled
[20:23:34] pilne: has joined #ruby
[20:24:22] r4z3r: has joined #ruby
[20:24:35] lcarlson: tcopeland, loll
[20:26:13] rrutkowski: has joined #ruby
[20:28:12] bmurt: has joined #ruby
[20:30:19] MobiBleu: has joined #ruby
[20:30:28] mtkd: has joined #ruby
[20:34:58] dionysus69: has joined #ruby
[20:35:57] conceivably: has joined #ruby
[20:36:36] priodev: has joined #ruby
[20:37:23] ltp: has joined #ruby
[20:39:41] dionysus69: has joined #ruby
[20:40:18] r3kz: has joined #ruby
[20:43:06] MobiBleu: has joined #ruby
[20:47:14] fmcgeough: has joined #ruby
[20:49:52] han`: has joined #ruby
[20:51:05] rrutkowski: has joined #ruby
[20:51:51] bronson: has joined #ruby
[20:53:08] jottr: has joined #ruby
[20:53:54] jtdoncas: has joined #ruby
[20:55:13] MobiBleu: has joined #ruby
[20:57:42] oleo2: has joined #ruby
[21:01:38] jtdoncas: has joined #ruby
[21:02:47] Stazer: has joined #ruby
[21:03:38] Stazer: has joined #ruby
[21:04:15] eckhardt: has joined #ruby
[21:07:45] MobiBleu: has joined #ruby
[21:07:51] guacamole: has joined #ruby
[21:07:51] guacamole: has joined #ruby
[21:09:04] cdg: has joined #ruby
[21:09:05] goatish: has joined #ruby
[21:10:35] jeffreylevesque_: has joined #ruby
[21:12:58] oleo2: has joined #ruby
[21:13:51] ramfjord: has joined #ruby
[21:14:05] conceivably: has joined #ruby
[21:14:06] rrutkowski: has joined #ruby
[21:15:57] MobiBleu: has joined #ruby
[21:16:07] krawchyk: has joined #ruby
[21:18:24] gizmore: has joined #ruby
[21:19:11] rrutkowski: has joined #ruby
[21:22:47] ramfjord: has joined #ruby
[21:26:05] alfiemax: has joined #ruby
[21:28:26] MobiBleu: has joined #ruby
[21:30:07] LastWhisper____: has joined #ruby
[21:31:18] hinbody: has joined #ruby
[21:31:54] zautomata: has joined #ruby
[21:32:14] JusticeFries: has joined #ruby
[21:36:29] zautomata: has joined #ruby
[21:36:42] ur5us: has joined #ruby
[21:36:54] jtdoncas: has joined #ruby
[21:41:56] guacamole: has joined #ruby
[21:41:56] guacamole: has joined #ruby
[21:42:24] MobiBleu: has joined #ruby
[21:42:51] krawchyk: has joined #ruby
[21:44:16] zautomata: has joined #ruby
[21:46:15] pastorinni: has joined #ruby
[21:46:59] CJKinni: has joined #ruby
[21:47:57] belmoussaoui: has joined #ruby
[21:48:41] mtkd: has joined #ruby
[21:49:25] jtdoncas: has joined #ruby
[21:51:40] Trel: has joined #ruby
[21:51:59] Trel: Is there any way to use gem install to download a gem to a specific directory as a one off?
[21:52:41] bronson: has joined #ruby
[21:53:07] Trel: (unless that's ruby on rails, if it is I'll ask there, but I'm too unfamiliar to know)
[21:55:26] Stazer: you can specify the install directory by the -i option
[21:55:42] Stazer: gem help install
[21:55:46] vipaca: has joined #ruby
[21:56:41] drewmcmillan: has joined #ruby
[21:58:44] guille-moe: has joined #ruby
[21:59:47] jxv: has joined #ruby
[22:01:54] eckhardt: has joined #ruby
[22:06:21] my123: has joined #ruby
[22:06:22] my123: has joined #ruby
[22:06:35] TaderFit: has joined #ruby
[22:06:57] TaderFit: héy everyone
[22:07:42] mjolnird: has joined #ruby
[22:07:55] jtdoncas: has joined #ruby
[22:08:07] TaderFit: i have a problem in my ruby code and i seach sinsce 2 day forum for get help
[22:08:23] TaderFit: so plz if some one can help me
[22:08:54] ramfjord: has joined #ruby
[22:09:14] jenrzzz: has joined #ruby
[22:09:18] TaderFit: you will find my code in git page https://gist.github.com/TaderFit/0408e74795ddd0dd5ee7cba1254b57a7
[22:09:41] ruby[bot]: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
[22:09:44] baweaver: Don't ask to ask, just ask
[22:09:49] baweaver: ...really bad bot
[22:10:18] baweaver: What's the problem?
[22:10:28] baweaver: Include any errors you get
[22:10:30] jnollette: has joined #ruby
[22:10:59] cagomez: has joined #ruby
[22:11:00] TaderFit: i have problem when i want to enter value in gets.chomp
[22:11:12] TaderFit: and when i want write in the file
[22:12:19] TaderFit: B:/TD1.rb:52:in `[]': no impli cit conversion of Symbol into Integer (TypeError)
[22:12:41] baweaver: https://gist.github.com/TaderFit/0408e74795ddd0dd5ee7cba1254b57a7#file-td1-rb-L52
[22:12:52] baweaver: That typically means you tried to access an array like it's a Hash
[22:13:01] baweaver: >> [1,2,3,4][:line]
[22:13:02] ruby[bot]: baweaver: # => no implicit conversion of Symbol into Integer (TypeError) ...check link for more (https://eval.in/934412)
[22:13:48] baweaver: >> {a:1,b:2}.each { |v| p v }
[22:13:50] ruby[bot]: baweaver: # => [:a, 1] ...check link for more (https://eval.in/934413)
[22:13:57] baweaver: notice v is an array
[22:14:28] baweaver: >> {a:1,b:2}.each { |k,v| puts "#{k}: #{v}" }
[22:14:30] ruby[bot]: baweaver: # => a: 1 ...check link for more (https://eval.in/934414)
[22:14:33] guacamole: has joined #ruby
[22:14:34] guacamole: has joined #ruby
[22:14:40] baweaver: that's your issue on line 52.
[22:14:51] baweaver: your each makes a hash pair into an array
[22:15:41] baweaver: you need to use two values in that, so `each { |v| ... }` vs `each { |k,v| ... }`
[22:15:42] baweaver: the second is correct
[22:15:53] baweaver: you're also doing something else wrong there
[22:16:01] baweaver: you only want to output the hash information into the file
[22:16:25] gizmore: logic error ftw
[22:16:33] baweaver: so what you want to actually do is: File.open('name', 'w') { |f| f.puts "NOM: #{line[:nom]}\tNotes: #{line[:notes]}\tMoyenne: #{isMoyenne}\n" }
[22:17:01] baweaver: be warned that mode 'w' will erase the current file
[22:17:09] baweaver: you likely want append instead
[22:17:23] TaderFit: no i wanqt to add so its 'a' and i remove 'w'
[22:17:46] TaderFit: its corecte?
[22:18:04] nadir: has joined #ruby
[22:18:19] TaderFit: can i use stdin.flush
[22:18:47] postmodern: has joined #ruby
[22:19:19] TaderFit: because when i want to get value of second chose i muste type tow time 2
[22:20:16] baweaver: you're also using gets.chomp wrong
[22:20:22] baweaver: you want to save it in a variable at the top
[22:20:31] baweaver: otherwise you're constantly getting a new value
[22:21:29] TaderFit: so if i want send the value i must save it in variable
[22:21:41] baweaver: also you really need to fix indentation
[22:21:46] ramfjord: has joined #ruby
[22:22:30] leah2: can i do a access(2) syscall from ruby?
[22:23:35] TaderFit: ok thank you bro thank so much
[22:23:48] TaderFit: im will rewrite this now
[22:24:43] ur5us: has joined #ruby
[22:25:39] rrutkowski_: has joined #ruby
[22:25:57] jeffreylevesque: has joined #ruby
[22:26:40] kapil___: has joined #ruby
[22:29:05] han`: has joined #ruby
[22:29:42] rrutkowski: has joined #ruby
[22:31:04] jeffreylevesque_: has joined #ruby
[22:33:53] danguita: has joined #ruby
[22:34:01] rrutkowski: has joined #ruby
[22:36:37] pastorin_: has joined #ruby
[22:37:57] jenrzzz: has joined #ruby
[22:37:57] jenrzzz: has joined #ruby
[22:38:36] Azure: has joined #ruby
[22:40:21] cdg: has joined #ruby
[22:40:53] jtdoncas: has joined #ruby
[22:42:43] Trel: Stazer: -i specifies the install directory I'm installing TO or FROM?
[22:44:12] guacamole: has joined #ruby
[22:44:12] guacamole: has joined #ruby
[22:44:31] Dimik: has joined #ruby
[22:44:32] Stazer: seems like it specified FROM
[22:44:44] Stazer: *specifies
[22:45:42] jeffreylevesque: has joined #ruby
[22:46:37] herbmillerjr: has joined #ruby
[22:50:39] plexigras: has joined #ruby
[22:51:05] guacamole: has joined #ruby
[22:51:06] guacamole: has joined #ruby
[22:51:12] Immune: has joined #ruby
[22:52:10] leah2: ah File.readable?
[22:53:21] k0mpa: has joined #ruby
[22:53:40] bronson: has joined #ruby
[22:54:37] ledestin: has joined #ruby
[22:55:16] quobo: has joined #ruby
[22:56:27] milardovich: has joined #ruby
[22:57:20] Vapez: has joined #ruby
[22:58:09] nowhere_man: has joined #ruby
[22:59:35] banisterfiend: has joined #ruby
[23:01:32] alfiemax: has joined #ruby
[23:02:02] guacamole: has joined #ruby
[23:02:02] guacamole: has joined #ruby
[23:02:51] pastorinni: has joined #ruby
[23:03:59] yaw: has joined #ruby
[23:04:08] yaw: is ruby's grammar regular?
[23:04:30] cdg: has joined #ruby
[23:06:09] jeffreylevesque: has joined #ruby
[23:06:26] guacamole: has joined #ruby
[23:06:26] guacamole: has joined #ruby
[23:07:04] leah2: obviously not?
[23:07:12] leah2: it has parentheses
[23:08:46] oleo2: has joined #ruby
[23:09:26] leah2: i'm not even sure its context-free
[23:09:28] zautomata1: has joined #ruby
[23:12:07] marr: has joined #ruby
[23:13:10] jtdoncas: has joined #ruby
[23:15:41] zwliew: has joined #ruby
[23:19:14] yaw: leah2: can you unpack a little bit more? how does having parentheses make a language's grammar other than regular
[23:20:03] raynold: has joined #ruby
[23:23:26] leah2: regular = can be matched by a finite machine
[23:23:27] cdg: has joined #ruby
[23:23:43] gizmore: ruby == beauty == NP
[23:23:43] leah2: matching parentheses = need to count depth
[23:25:15] pastorinni: has joined #ruby
[23:25:45] dstrunk: has joined #ruby
[23:27:47] guacamole: has joined #ruby
[23:27:47] guacamole: has joined #ruby
[23:28:06] tcopeland: has joined #ruby
[23:29:27] tAn: has joined #ruby
[23:30:10] tAn: has joined #ruby
[23:31:22] tAn: has joined #ruby
[23:32:22] cdg: has joined #ruby
[23:32:45] GremL1N: has joined #ruby
[23:33:37] cdg: has joined #ruby
[23:37:43] alfiemax: has joined #ruby
[23:38:09] jeffreylevesque: has joined #ruby
[23:41:45] jeffreylevesque_: has joined #ruby
[23:41:56] alex-tfdc: has joined #ruby
[23:48:46] nopolitica: has joined #ruby
[23:50:07] techn1cs: has joined #ruby
[23:50:08] techn1cs: has joined #ruby
[23:50:17] banisterfiend: has joined #ruby
[23:52:06] shinnya: has joined #ruby
[23:52:32] mtkd: has joined #ruby
[23:54:13] nopolitica: has joined #ruby
[23:54:26] bronson: has joined #ruby
[23:54:37] jeffreylevesque: has joined #ruby
[23:54:38] sanscoeur: has joined #ruby
[23:57:22] cloaked1: has joined #ruby
[23:57:22] cloaked1: has joined #ruby
[23:57:42] ramfjord: has joined #ruby