« Back to channel list

#ruby - 03 February 2018

« Back 1 day Forward 1 day »
[00:00:22] workmad3: has joined #ruby
[00:01:14] cpruitt: has joined #ruby
[00:03:42] schneide_: has joined #ruby
[00:05:06] AJA4350: has joined #ruby
[00:05:21] shinnya: has joined #ruby
[00:08:49] eckhardt: has joined #ruby
[00:12:24] nopolitica: has joined #ruby
[00:12:43] schneide_: has joined #ruby
[00:13:10] cpruitt: has joined #ruby
[00:21:22] tAn: has joined #ruby
[00:21:51] schneide_: has joined #ruby
[00:23:22] nopolitica: has joined #ruby
[00:28:24] dogweather: has joined #ruby
[00:30:57] schneide_: has joined #ruby
[00:34:53] jeffreylevesque: has joined #ruby
[00:38:09] cpruitt: has joined #ruby
[00:39:49] raazdaan: has joined #ruby
[00:39:56] guacamole: has joined #ruby
[00:39:56] guacamole: has joined #ruby
[00:39:59] govg: has joined #ruby
[00:40:01] schneide_: has joined #ruby
[00:41:11] jeffreylevesque: has joined #ruby
[00:44:54] alfiemax: has joined #ruby
[00:45:31] jenrzzz: has joined #ruby
[00:47:39] white_lilies: has joined #ruby
[00:49:05] schneide_: has joined #ruby
[00:49:41] aguestuser: has joined #ruby
[00:53:31] Guest29: has joined #ruby
[00:53:49] Azure: has joined #ruby
[00:54:08] alveric2: has joined #ruby
[00:55:55] unreal_: has joined #ruby
[00:58:12] schneide_: has joined #ruby
[00:59:14] white_lilies: has joined #ruby
[00:59:26] pastorinni: has joined #ruby
[01:00:29] jottr: has joined #ruby
[01:01:00] LastWhisper____: has joined #ruby
[01:02:04] tAn: has joined #ruby
[01:03:17] GodFather: has joined #ruby
[01:03:28] guacamole: has joined #ruby
[01:03:28] guacamole: has joined #ruby
[01:06:33] cpruitt: has joined #ruby
[01:09:43] jottr: has joined #ruby
[01:09:50] dogweather: has joined #ruby
[01:14:02] vutral|kali: has joined #ruby
[01:14:02] vutral|kali: has joined #ruby
[01:16:28] schneide_: has joined #ruby
[01:19:30] alfiemax: has joined #ruby
[01:20:52] jottr: has joined #ruby
[01:22:03] pastorinni: has joined #ruby
[01:23:04] sanscoeur: has joined #ruby
[01:25:31] schneide_: has joined #ruby
[01:31:07] alfiemax: has joined #ruby
[01:31:57] vutral|kali: has joined #ruby
[01:31:57] vutral|kali: has joined #ruby
[01:33:23] snath: has joined #ruby
[01:34:39] schneide_: has joined #ruby
[01:36:54] FastJack: has joined #ruby
[01:37:32] oncall-pokemon: has joined #ruby
[01:38:08] white_lilies: has joined #ruby
[01:38:08] tAn: has joined #ruby
[01:38:31] veduardo: has joined #ruby
[01:39:20] cpruitt: has joined #ruby
[01:41:10] jottr: has joined #ruby
[01:41:59] aroaminggeek: has joined #ruby
[01:42:49] guacamole: has joined #ruby
[01:42:49] guacamole: has joined #ruby
[01:43:44] schneide_: has joined #ruby
[01:45:06] LenPayne: has joined #ruby
[01:46:22] elphe: has joined #ruby
[01:47:16] plexigras: has joined #ruby
[01:49:08] aguestuser: has joined #ruby
[01:49:27] cpruitt: has joined #ruby
[01:52:47] schneide_: has joined #ruby
[01:57:49] hahuang61: has joined #ruby
[01:58:34] jottr: has joined #ruby
[02:01:10] workmad3: has joined #ruby
[02:01:16] guacamole: has joined #ruby
[02:01:16] guacamole: has joined #ruby
[02:01:40] zacts: I thought that bundler was going to be included with 2.5.0, but I don't see it? :-)
[02:01:43] zacts: (just curious)
[02:01:59] schneide_: has joined #ruby
[02:02:13] leitz: If you have an array of arrays, how do you reference the inner array as a name? [alpha, bravo, charlie, delta].each <print name of array, iterate though array."
[02:02:13] Radar: zacts: it was postponed: https://bugs.ruby-lang.org/issues/12733#note-19
[02:02:35] Radar: leitz: you don't? You'd reference it by its position.
[02:03:01] Radar: >> alpha = [1,2,3]; combined = [alpha]
[02:03:02] ruby[bot]: Radar: # => [[1, 2, 3]] (https://eval.in/948419)
[02:04:16] Radar: leitz: Once that code has been evaluated then it doesn't retain that the first element was called "alpha"
[02:04:25] Radar: You _could_ do combined.detect { |e| e == alpha }
[02:04:57] leitz: Radar, I'm trying to print the array name before going through the array. https://github.com/makhidkarun/2d6_ogl_chargen/blob/master/toys/gang_teams.rb#L40-L45
[02:05:15] Radar: leitz: perhaps you should use a hahs instead.
[02:05:28] Radar: {alpha: alpha, bravo: bravo, charlie: charlie, delta: delta}
[02:05:29] white_lilies: has joined #ruby
[02:06:47] leitz: Are hashes ordered as declared?
[02:07:31] spiette_: has joined #ruby
[02:07:59] alfiemax: has joined #ruby
[02:08:24] Radar: https://stackoverflow.com/questions/31418673/is-order-of-a-ruby-hash-literal-guaranteed
[02:09:14] leitz: ACTION goes back to coding.
[02:09:15] Radar: bbl, little Radar is awake
[02:10:59] schneide_: has joined #ruby
[02:12:04] cpruitt: has joined #ruby
[02:12:28] jottr: has joined #ruby
[02:15:07] white_lilies: has joined #ruby
[02:16:10] tAn: has joined #ruby
[02:16:42] guacamole: has joined #ruby
[02:18:31] Thaelim: has joined #ruby
[02:20:08] schneide_: has joined #ruby
[02:23:51] guacamole: has joined #ruby
[02:23:51] guacamole: has joined #ruby
[02:24:55] bmurt: has joined #ruby
[02:27:36] darkhanb: has joined #ruby
[02:27:44] alfiemax: has joined #ruby
[02:33:02] gizmore|2: has joined #ruby
[02:34:58] FastJack: has joined #ruby
[02:38:14] mastrofrancesco: has joined #ruby
[02:38:23] schneide_: has joined #ruby
[02:44:35] jottr: has joined #ruby
[02:47:27] schneide_: has joined #ruby
[02:48:01] white_lilies: has joined #ruby
[02:48:41] mtkd: has joined #ruby
[02:51:58] nso95: has joined #ruby
[02:52:51] hahuang61: has joined #ruby
[02:53:44] tAn: has joined #ruby
[02:57:22] jottr: has joined #ruby
[03:00:18] cadillac_: has joined #ruby
[03:03:20] nso95: has left #ruby: ("Leaving")
[03:05:41] schneide_: has joined #ruby
[03:06:54] bmurt: has joined #ruby
[03:07:32] nowhereman_: has joined #ruby
[03:09:55] Barrt: has joined #ruby
[03:11:21] Mia: has joined #ruby
[03:11:22] Mia: has joined #ruby
[03:14:43] schneide_: has joined #ruby
[03:15:25] alfiemax: has joined #ruby
[03:17:08] cpruitt: has joined #ruby
[03:21:38] _6pedrosa9_: has joined #ruby
[03:22:41] hahuang61: has joined #ruby
[03:23:43] Mia: has joined #ruby
[03:23:43] Mia: has joined #ruby
[03:23:51] schneide_: has joined #ruby
[03:27:34] white_lilies: has joined #ruby
[03:31:02] kay: has joined #ruby
[03:32:18] tAn: has joined #ruby
[03:32:23] Mia: has joined #ruby
[03:32:23] Mia: has joined #ruby
[03:32:55] _6pedrosa9_: has joined #ruby
[03:35:14] cpruitt: has joined #ruby
[03:36:33] white_lilies: has joined #ruby
[03:36:35] ahrs: has joined #ruby
[03:36:56] alfiemax: has joined #ruby
[03:39:52] goatish: has joined #ruby
[03:40:18] nit3rid3: has joined #ruby
[03:40:23] _6pedrosa9_: has joined #ruby
[03:41:29] govg: has joined #ruby
[03:42:09] schneide_: has joined #ruby
[03:43:13] cadillac_: has joined #ruby
[03:43:38] Azure: has joined #ruby
[03:49:36] x77686d: has joined #ruby
[03:50:43] fmccann: has joined #ruby
[03:51:10] schneide_: has joined #ruby
[03:51:24] jottr: has joined #ruby
[03:51:32] nadir: has joined #ruby
[03:55:29] guardianx: has joined #ruby
[03:58:19] _6pedrosa9_: has joined #ruby
[03:59:49] darkhanb: has joined #ruby
[04:00:06] cdg: has joined #ruby
[04:00:43] white_lilies: has joined #ruby
[04:01:54] workmad3: has joined #ruby
[04:02:59] karapetyan: has joined #ruby
[04:07:32] tAn: has joined #ruby
[04:09:26] schneide_: has joined #ruby
[04:10:00] _6pedrosa9_: has joined #ruby
[04:10:14] Barrt: has joined #ruby
[04:14:08] alfiemax: has joined #ruby
[04:14:58] cpruitt: has joined #ruby
[04:18:25] schneide_: has joined #ruby
[04:18:29] guardianx: has joined #ruby
[04:21:25] gix: has joined #ruby
[04:21:56] skweek: has joined #ruby
[04:25:14] trautwein: has joined #ruby
[04:25:59] nowhere_man: has joined #ruby
[04:27:33] schneide_: has joined #ruby
[04:27:36] dn`_: has joined #ruby
[04:30:43] apparition: has joined #ruby
[04:33:11] guardianx: has joined #ruby
[04:34:05] arescorpio: has joined #ruby
[04:36:42] schneide_: has joined #ruby
[04:38:59] white_lilies: has joined #ruby
[04:45:26] jottr: has joined #ruby
[04:45:44] schneide_: has joined #ruby
[04:45:52] Emmanuel_Chanel: has joined #ruby
[04:46:13] cpruitt: has joined #ruby
[04:47:07] tAn: has joined #ruby
[04:53:56] mtkd: has joined #ruby
[04:54:49] schneide_: has joined #ruby
[04:56:04] vichib: has joined #ruby
[05:00:44] alfiemax: has joined #ruby
[05:04:02] schneide_: has joined #ruby
[05:07:25] Guest29: has joined #ruby
[05:09:59] cpruitt: has joined #ruby
[05:13:05] schneide_: has joined #ruby
[05:13:08] _6pedrosa9_: has joined #ruby
[05:17:26] white_lilies: has joined #ruby
[05:22:08] schneide_: has joined #ruby
[05:25:19] weasel_: has joined #ruby
[05:27:04] tAn: has joined #ruby
[05:30:19] segy: has joined #ruby
[05:31:17] schneide_: has joined #ruby
[05:38:13] nowhere_man: has joined #ruby
[05:39:10] segy: has joined #ruby
[05:39:35] jottr: has joined #ruby
[05:40:26] schneide_: has joined #ruby
[05:40:54] _aeris_: has joined #ruby
[05:42:41] _6pedrosa9_: has joined #ruby
[05:42:44] sanscoeur: has joined #ruby
[05:43:38] alfiemax: has joined #ruby
[05:49:26] schneide_: has joined #ruby
[05:50:58] cdg: has joined #ruby
[05:51:52] _6pedrosa9_: has joined #ruby
[05:52:00] white_lilies: has joined #ruby
[05:54:27] dtzuzu: has joined #ruby
[05:55:11] konsolebox: has joined #ruby
[05:58:31] ramfjord: has joined #ruby
[05:58:36] schneide_: has joined #ruby
[06:00:21] Guest29: has joined #ruby
[06:06:31] alfiemax: has joined #ruby
[06:06:33] white_lilies: has joined #ruby
[06:07:39] schneide_: has joined #ruby
[06:08:37] ramfjord: has joined #ruby
[06:10:43] apparition: has joined #ruby
[06:13:09] cpruitt: has joined #ruby
[06:16:51] schneide_: has joined #ruby
[06:20:23] nowhereman_: has joined #ruby
[06:20:34] naprimer3: has joined #ruby
[06:23:04] LocaMocha: has joined #ruby
[06:25:27] schneide_: has joined #ruby
[06:25:48] cpruitt: has joined #ruby
[06:26:41] white_lilies: has joined #ruby
[06:31:04] apparition: has joined #ruby
[06:31:18] schneide_: has joined #ruby
[06:33:39] jottr: has joined #ruby
[06:38:43] Azure: has joined #ruby
[06:47:06] _6pedrosa9_: has joined #ruby
[06:49:41] tAn: has joined #ruby
[06:53:01] govg: has joined #ruby
[06:54:24] cpruitt: has joined #ruby
[06:56:51] ramfjord: has joined #ruby
[06:58:25] white_lilies: has joined #ruby
[07:05:38] white_lilies: has joined #ruby
[07:06:45] za1b1tsu: has joined #ruby
[07:07:39] za1b1tsu: Anyone working with vim? If so what is the best option for go to definition?
[07:12:28] ramfjord: has joined #ruby
[07:13:19] _6pedrosa9_: has joined #ruby
[07:13:22] vutral|kali: has joined #ruby
[07:13:22] vutral|kali: has joined #ruby
[07:17:38] cpruitt: has joined #ruby
[07:19:30] _6pedrosa9_: has joined #ruby
[07:27:47] jottr: has joined #ruby
[07:30:31] alfiemax: has joined #ruby
[07:31:34] mtkd: has joined #ruby
[07:36:59] cpruitt: has joined #ruby
[07:37:32] white_lilies: has joined #ruby
[07:40:51] Emmanuel_Chanel: has joined #ruby
[07:51:09] BH1: has joined #ruby
[07:51:33] ur5us: has joined #ruby
[07:52:34] BH23: has joined #ruby
[07:52:53] skweek: has joined #ruby
[07:53:40] schneide_: has joined #ruby
[07:54:58] claudiuinberlin: has joined #ruby
[07:56:03] Emmanuel_Chanel: has joined #ruby
[07:56:25] BH23: has joined #ruby
[07:58:07] alex``: has joined #ruby
[08:02:15] ramfjord: has joined #ruby
[08:02:47] schneide_: has joined #ruby
[08:03:26] workmad3: has joined #ruby
[08:03:49] jottr: has joined #ruby
[08:04:12] TinkerTyper: has joined #ruby
[08:04:49] nicesignal: has joined #ruby
[08:04:50] cpruitt: has joined #ruby
[08:06:48] cdg: has joined #ruby
[08:07:05] _6pedrosa9_: has joined #ruby
[08:09:41] white_lilies: has joined #ruby
[08:11:58] schneide_: has joined #ruby
[08:13:07] Axsuul: has joined #ruby
[08:17:23] schneide_: has joined #ruby
[08:20:29] skweek: has joined #ruby
[08:20:34] SebastianThorn: has joined #ruby
[08:25:29] jottr: has joined #ruby
[08:26:29] schneide_: has joined #ruby
[08:29:41] axsuul-: has joined #ruby
[08:32:27] tAn: has joined #ruby
[08:33:29] vichib: has joined #ruby
[08:35:21] desperek: has joined #ruby
[08:35:32] schneide_: has joined #ruby
[08:36:26] wnd: I'm working with vim, have done so for the past 20 years, but I don't know what you're talking about :-)
[08:40:20] dinfuehr: has joined #ruby
[08:40:47] white_lilies: has joined #ruby
[08:44:43] schneide_: has joined #ruby
[08:49:03] cpruitt: has joined #ruby
[08:49:45] jamesaxl: has joined #ruby
[08:53:46] schneide_: has joined #ruby
[08:55:33] Guest29: has joined #ruby
[08:58:09] biberu: has joined #ruby
[09:00:28] jnollette: has joined #ruby
[09:03:47] ramfjord: has joined #ruby
[09:05:38] jottr: has joined #ruby
[09:05:44] tAn: has joined #ruby
[09:06:57] skweek: has joined #ruby
[09:10:44] karapetyan: has joined #ruby
[09:11:59] schneide_: has joined #ruby
[09:17:08] white_lilies: has joined #ruby
[09:17:38] hightower4: has joined #ruby
[09:19:36] tAn: has joined #ruby
[09:23:35] jottr: has joined #ruby
[09:24:01] alfiemax: has joined #ruby
[09:24:15] ramfjord: has joined #ruby
[09:25:16] xfbs: has joined #ruby
[09:32:59] conta: has joined #ruby
[09:35:10] schneide_: has joined #ruby
[09:35:42] hoylemd: has joined #ruby
[09:40:17] hightower2: has joined #ruby
[09:40:17] hightower2: has joined #ruby
[09:43:36] claudiuinberlin: has joined #ruby
[09:44:34] schneide_: has joined #ruby
[09:46:47] Chuguniy: has joined #ruby
[09:49:51] white_lilies: has joined #ruby
[09:53:39] schneide_: has joined #ruby
[10:01:06] alfiemax: has joined #ruby
[10:02:42] jottr: has joined #ruby
[10:02:50] cpruitt: has joined #ruby
[10:04:10] workmad3: has joined #ruby
[10:04:23] white_lilies: has joined #ruby
[10:04:40] x77686d: has joined #ruby
[10:05:15] quobo: has joined #ruby
[10:05:51] desperek: has joined #ruby
[10:13:43] ltem: has joined #ruby
[10:15:36] mikecmpbll: has joined #ruby
[10:16:11] Prutheus: Hello. I have a hash like { '@name' => 'Lucas', '__value__' => '' } and rubocop installed. Everytime i save the file robucop changes the hash to { :@name => 'Lucas', :__value__ => '' } but I dont want this. Any idea how to stop rubocop from that?
[10:16:47] marr: has joined #ruby
[10:17:01] Guest29: has joined #ruby
[10:21:00] dinfuehr: has joined #ruby
[10:21:36] jottr: has joined #ruby
[10:22:05] _6pedrosa9_: has joined #ruby
[10:26:09] baweaver: prutheus: is that the real code?
[10:26:34] cochi: has left #ruby: ()
[10:28:05] white_lilies: has joined #ruby
[10:31:52] troulouliou_div2: has joined #ruby
[10:33:24] Megamos: has joined #ruby
[10:38:47] jottr: has joined #ruby
[10:38:49] drewmcmillan: has joined #ruby
[10:40:33] Prutheus: yeah, why do you ask?
[10:41:53] jaruga: has joined #ruby
[10:43:37] apeiros: prutheus: probably because the two variants are not equivalent. and rubocop changing actual values seems terrible.
[10:44:06] Prutheus: what do you mean exactly?
[10:44:29] apeiros: that '@name' is a string, while :@name is a symbol
[10:45:00] Prutheus: yes right. but rubocop should not change string to symbol, why is it doing that?
[10:45:11] apeiros: "@name", '@name', %{@name} are all strings, changing from one to another is just a style question
[10:45:23] apeiros: but changing from '@name' to :@name has nothing to do with style
[10:45:34] Prutheus: but rubocop is doing that
[10:45:38] Prutheus: and this is stupid
[10:45:42] apeiros: correct, I'm pretty sure baweaver concurs, I certainly do.
[10:45:46] apeiros: hence the question
[10:46:33] _6pedrosa9_: has joined #ruby
[10:46:55] Prutheus: what do you say? I do not understand
[10:47:51] schneide_: has joined #ruby
[10:48:29] apeiros: I say me and baweaver agree with you. it should not make this kind of changes. we are surprised it does. we want to make sure it really does. so he asks if that's the real code to make sure rubocop really does it and it's not just you accidentally misrepresenting what rubocop does.
[10:50:26] Megamos: has joined #ruby
[10:50:37] Prutheus: yes its my real code.... is there any change to stop rubocop for cheching for a code section?
[10:52:16] apeiros: I haven't used rubocop in a long time. so I wouldn't know. I'd have to go read its docs. I think there are special comments to instruct rubocop to ignore a section, yes.
[10:59:25] AJA4350: has joined #ruby
[11:00:10] alfiemax: has joined #ruby
[11:00:14] _6pedrosa9_: has joined #ruby
[11:06:00] ldepandis: has joined #ruby
[11:06:11] white_lilies: has joined #ruby
[11:06:32] ur5us: has joined #ruby
[11:09:33] TomyLobo: has joined #ruby
[11:09:46] clemens3: has joined #ruby
[11:15:05] sameerynho: has joined #ruby
[11:16:19] _6pedrosa9_: has joined #ruby
[11:17:43] cpruitt: has joined #ruby
[11:30:32] osvico: has joined #ruby
[11:30:55] cpruitt: has joined #ruby
[11:33:52] _6pedrosa9_1: has joined #ruby
[11:36:46] mtkd: has joined #ruby
[11:37:49] _6pedrosa9_1: has joined #ruby
[11:38:10] jokke1: has joined #ruby
[11:38:48] Gnut: has joined #ruby
[11:42:51] schneide_: has joined #ruby
[11:45:06] white_lilies: has joined #ruby
[11:47:24] goatish: has joined #ruby
[11:52:00] schneide_: has joined #ruby
[11:57:54] cpruitt: has joined #ruby
[12:01:04] schneide_: has joined #ruby
[12:02:14] _6pedrosa9_: has joined #ruby
[12:03:38] dinfuehr: has joined #ruby
[12:04:09] ptx0: has joined #ruby
[12:04:53] workmad3: has joined #ruby
[12:08:33] jottr: has joined #ruby
[12:08:38] Guest29: has joined #ruby
[12:09:14] _6pedrosa9_: has joined #ruby
[12:10:11] schneide_: has joined #ruby
[12:13:12] _6pedrosa9_: has joined #ruby
[12:15:59] alfiemax: has joined #ruby
[12:18:39] white_lilies: has joined #ruby
[12:19:16] schneide_: has joined #ruby
[12:20:08] nowhereman_: has joined #ruby
[12:22:51] rrutkowski: has joined #ruby
[12:22:55] tomphp: has joined #ruby
[12:25:36] lucas: has joined #ruby
[12:28:17] schneide_: has joined #ruby
[12:29:20] rrutkowski: has joined #ruby
[12:30:15] nowhere_man: has joined #ruby
[12:30:45] deepredsky: has joined #ruby
[12:37:28] schneide_: has joined #ruby
[12:40:25] Megamos: has joined #ruby
[12:46:38] ogotai: has joined #ruby
[12:47:09] dtzuzu: has joined #ruby
[12:47:17] jottr: has joined #ruby
[12:47:59] ogotai: hi folks, is there a way to limit BigDecimal precision to X digits? after some looping my numbers become hundreds of digits long and it starts to run extremely slow - I could just round(), but is there a better way to fix it on the BigDecimal instance and not having round()s everywhere?
[12:48:44] karapetyan: has joined #ruby
[12:49:22] ogotai: ah nvm, found limit() now, sorry to bother
[12:54:15] alex``: has joined #ruby
[12:54:56] white_lilies: has joined #ruby
[12:55:43] schneide_: has joined #ruby
[12:57:00] alfiemax_: has joined #ruby
[12:59:31] tomphp: has joined #ruby
[13:04:45] schneide_: has joined #ruby
[13:05:49] cpruitt: has joined #ruby
[13:07:20] ur5us: has joined #ruby
[13:08:39] Guest14: has joined #ruby
[13:11:48] al2o3-cr: has joined #ruby
[13:13:20] schneide_: has joined #ruby
[13:17:56] deepredsky: has joined #ruby
[13:19:04] DTZUZO: has joined #ruby
[13:19:27] John_Ivan: has joined #ruby
[13:19:27] John_Ivan: has joined #ruby
[13:22:23] schneide_: has joined #ruby
[13:28:04] alfiemax: has joined #ruby
[13:31:57] jottr: has joined #ruby
[13:34:24] white_lilies: has joined #ruby
[13:35:11] redlegion: has joined #ruby
[13:39:11] tomphp: has joined #ruby
[13:40:42] schneide_: has joined #ruby
[13:40:52] mtkd: has joined #ruby
[13:41:22] jottr: has joined #ruby
[13:42:12] herbmillerjr: has joined #ruby
[13:43:01] selim: has joined #ruby
[13:47:20] karapetyan: has joined #ruby
[13:48:55] deepredsky: has joined #ruby
[13:49:09] apparition: has joined #ruby
[13:49:42] schneide_: has joined #ruby
[13:57:42] deepredsky: has joined #ruby
[14:01:11] redlegion: has joined #ruby
[14:04:05] govg: has joined #ruby
[14:05:35] white_lilies: has joined #ruby
[14:07:32] redlegion: has joined #ruby
[14:07:32] redlegion: has joined #ruby
[14:07:39] shinnya: has joined #ruby
[14:07:58] schneide_: has joined #ruby
[14:12:23] Guest29: has joined #ruby
[14:15:24] workmad3: has joined #ruby
[14:15:24] Bounga: has joined #ruby
[14:15:36] cpruitt: has joined #ruby
[14:17:01] schneide_: has joined #ruby
[14:17:18] yottanami: has joined #ruby
[14:17:53] yottanami: I am trying to read a csv file using ```CSV.foreach('filialstamm.csv', :row_sep => "\n", :col_sep => ";", encoding: 'ISO8859-1', skip_blanks: true, headers: true) do |row|...``` but I got this error Unquoted fields do not allow \r or \n (line 1)
[14:18:20] zwliew: has joined #ruby
[14:18:51] apeiros: sounds like your file is not correct csv
[14:19:06] yottanami: first line is like this `Item1;Item2;Filialname;Strasse;PLZ ;ORT
[14:20:48] apeiros: though… it might just be that you're mistaken about row_sep
[14:21:09] apeiros: ; as colsep, is this from excel? potentially from windows?
[14:21:38] gr33n7007h: has joined #ruby
[14:22:27] yottanami: apeiros, I am not sure, someone else sent it to me.I also tried row_sep: :auto and '\r\n'
[14:22:39] apeiros: '\r\n' is not "\r\n"
[14:22:55] apeiros: '\r\n' is 4 characters, literally slash r slash n
[14:24:00] yottanami: apeiros, I also tried "\r\n" and "\r"
[14:24:17] deepredsky: has joined #ruby
[14:24:33] yottanami: apeiros, I can open the file in libreoffice without any problem
[14:24:56] apeiros: then I need an example dataset which reproduces the error. if your file is sensible, I'd recommend anonymizing the data and try whether the problem still happens, then provide that anonymized data.
[14:25:28] apeiros: if it's not sensible, then just provide enough lines to exhibit the problem (sounds like 2 would be sufficient)
[14:26:12] schneide_: has joined #ruby
[14:26:48] yottanami: apeiros, This is first part of my file http://dpaste.com/2JVEV1D
[14:27:11] apeiros: hm, a pastebin might change line endings and stuff
[14:27:20] apeiros: you should probably use a service where you can upload binary files
[14:27:49] apeiros: I'll try with a copy & paste of the raw, though. lets see.
[14:29:00] apeiros: yeah, no. copy & paste of the raw loads fine with CSV.foreach
[14:29:50] yottanami: apeiros, here is the complete file https://expirebox.com/download/11f0e3c175781e48bb4b70822971fec2.html
[14:30:55] apeiros: ah. it's got trailing whitespace.
[14:31:08] apeiros: ;ORT \n19106;
[14:32:06] yottanami: apeiros, So, How should I parse it?
[14:32:32] yottanami: I also tried using `skip_blanks: true`
[14:33:03] apeiros: btw., your file is utf-8, not iso8859-1
[14:33:20] apeiros: (and when you use iso-8859-1 you usually want windows-1252 instead)
[14:33:38] apeiros: CSV.parse(File.read(path, encoding: 'utf-8').gsub(/ +$/, ''), col_sep: ";") # works for me for the file you provided
[14:33:47] apeiros: skip_blanks is about empty rows
[14:33:50] yottanami: apeiros, But when I use utf-8 I got this error ``=~': invalid byte sequence in UTF-8 (ArgumentError)`
[14:34:26] apeiros: used the wrong path, used still the copy pasted on the 2nd try. sorry.
[14:35:15] schneide_: has joined #ruby
[14:35:24] apeiros: huh? it even has \r\r\n in it o0
[14:36:01] karapetyan: has joined #ruby
[14:36:39] apeiros: ok, this time I tried with the correct file :D
[14:36:39] yottanami: apeiros, :-( Any chance to parse?
[14:36:39] apeiros: CSV.parse(File.read(path, encoding: 'windows-1252:utf-8').gsub(/ *\r\r\n/, "\n"), col_sep: ";")
[14:36:47] apeiros: this is some mangled csv…
[14:37:05] apeiros: I'd club whoever gave you this and tell them to learn how proper csv looks.
[14:37:29] apeiros: also tell them that windows-1252 is something from last millenium and no sane person still uses it.
[14:38:18] white_lilies: has joined #ruby
[14:38:26] karapetyan: has joined #ruby
[14:38:41] Bounga: has joined #ruby
[14:38:57] elomatreb: Well, Unicode/UTF-8 is from the last millenium as well :P
[14:39:20] yottanami: apeiros, wow it works, thank you very much. it was a big help
[14:39:34] yottanami: apeiros, lol. Sure.
[14:39:37] apeiros: elomatreb: sssssh, no details
[14:41:55] apeiros: also lol - it's space padded, but not to the same length on all rows
[14:42:03] apeiros: this is stupid on so many levels.
[14:42:28] apeiros: https://imgur.com/qaJDqIj
[14:43:10] apeiros: (if it was, you could also use unpack, though for this filesize the perf diff won't matter anyway)
[14:44:16] schneide_: has joined #ruby
[14:45:22] amatas: has joined #ruby
[14:45:49] Bounga: has joined #ruby
[14:45:52] cpruitt: has joined #ruby
[14:47:17] bmurt: has joined #ruby
[14:53:29] schneide_: has joined #ruby
[14:56:39] venmx: has joined #ruby
[14:58:53] deepredsky: has joined #ruby
[15:07:59] ur5us: has joined #ruby
[15:10:33] GodFather: has joined #ruby
[15:11:44] schneide_: has joined #ruby
[15:11:45] white_lilies: has joined #ruby
[15:14:00] jamesaxl: has joined #ruby
[15:16:37] justsurely: has joined #ruby
[15:20:44] schneide_: has joined #ruby
[15:23:03] justsurely: has left #ruby: ()
[15:24:40] nowhereman_: has joined #ruby
[15:25:28] Bounga: has joined #ruby
[15:29:32] schneide_: has joined #ruby
[15:30:20] Puffball: has joined #ruby
[15:33:20] deepredsky: has joined #ruby
[15:38:44] schneide_: has joined #ruby
[15:39:36] workmad3: has joined #ruby
[15:39:36] cpruitt: has joined #ruby
[15:42:41] John_Ivan: has joined #ruby
[15:43:29] schneide_: has joined #ruby
[15:43:42] cadillac_: has joined #ruby
[15:44:13] venmx: has joined #ruby
[15:45:14] mtkd: has joined #ruby
[15:47:37] white_lilies: has joined #ruby
[15:56:56] dinfuehr: has joined #ruby
[15:58:33] aef: has joined #ruby
[16:00:12] Bounga: has joined #ruby
[16:02:30] karapetyan: has joined #ruby
[16:06:07] deepredsky: has joined #ruby
[16:07:01] zacts: has joined #ruby
[16:12:05] cpruitt: has joined #ruby
[16:12:36] BTRE: has joined #ruby
[16:21:19] drakko: has joined #ruby
[16:21:52] white_lilies: has joined #ruby
[16:24:20] GodFather_: has joined #ruby
[16:28:14] minimalism: has joined #ruby
[16:29:02] gr33n7007h: has joined #ruby
[16:30:11] GodFather__: has joined #ruby
[16:37:08] aef: has joined #ruby
[16:45:39] hoylemd: has joined #ruby
[16:47:09] karapetyan: has joined #ruby
[16:47:55] x77686d: has joined #ruby
[16:54:24] schneide_: has joined #ruby
[16:56:26] dviola: has joined #ruby
[16:58:57] u0157542: has joined #ruby
[16:59:43] white_lilies: has joined #ruby
[17:00:28] yokel: has joined #ruby
[17:02:44] mikecmpbll: has joined #ruby
[17:03:03] Bounga: has joined #ruby
[17:04:20] karapetyan: has joined #ruby
[17:08:37] ur5us: has joined #ruby
[17:13:19] jottr: has joined #ruby
[17:25:06] sanscoeur: has joined #ruby
[17:30:09] white_lilies: has joined #ruby
[17:31:16] raynold: has joined #ruby
[17:37:04] biberu: has joined #ruby
[17:38:01] ahrs: has joined #ruby
[17:40:33] eckhardt: has joined #ruby
[17:41:35] nadir: has joined #ruby
[17:43:32] shaman42: has joined #ruby
[17:44:41] Gnubie_: has joined #ruby
[17:46:18] rabajaj: has joined #ruby
[17:46:56] ur5us: has joined #ruby
[17:47:16] claudiuinberlin: has joined #ruby
[17:50:33] mtkd: has joined #ruby
[17:55:17] goatish: has joined #ruby
[17:56:30] c0ncealed: has joined #ruby
[17:57:32] workmad3: has joined #ruby
[17:58:43] white_lilies: has joined #ruby
[17:59:47] cpruitt: has joined #ruby
[18:00:30] u0157542: has joined #ruby
[18:01:13] woodruffw: has joined #ruby
[18:01:13] woodruffw: has joined #ruby
[18:03:55] Bounga: has joined #ruby
[18:06:55] white_lilies: has joined #ruby
[18:11:23] karapetyan: has joined #ruby
[18:13:08] Bounga: has joined #ruby
[18:18:35] veduardo: has joined #ruby
[18:22:09] suhdood: has joined #ruby
[18:22:54] orbyt_: has joined #ruby
[18:25:48] schneide_: has joined #ruby
[18:27:06] vichib: has joined #ruby
[18:28:32] jrm: has joined #ruby
[18:29:43] sanscoeur: has joined #ruby
[18:29:49] jrm: Is there a way to seed SecureRandom.hex() à la $PYTHONHASHSEED ?
[18:30:27] hoylemd: has joined #ruby
[18:31:42] gizmore|2: jm there is no need or way to seed cryptographic ng?
[18:32:02] gizmore|2: you want it safe... you cannot reproduce the safe random numbers, i think
[18:32:03] nchambers: would anyone be able to explain what "C: Metrics/AbcSize: Assignment Branch Condition size for initialize is too high." means? I'm getting it with rubocop and am not familiar with AbcSize or Branch Condition Size
[18:33:40] clemens3: has joined #ruby
[18:34:27] jrm: gizmore: Are you saying a rng should, in general, never have a seed?
[18:34:35] schneide_: has joined #ruby
[18:35:57] Xiti: has joined #ruby
[18:36:05] gizmore: jrm: i say that cryptosafe rng should not be reproducable
[18:36:16] gizmore: if you want reproduce, use mersenne twister
[18:36:25] u0157542: has joined #ruby
[18:38:39] white_lilies: has joined #ruby
[18:46:11] jaruga: has joined #ruby
[18:47:59] Bounga: has joined #ruby
[18:48:08] apricant: has joined #ruby
[18:50:37] sanscoeur: has joined #ruby
[18:52:31] schneide_: has joined #ruby
[18:57:42] woodruffw: has joined #ruby
[18:57:43] woodruffw: has joined #ruby
[18:58:44] u0157542: has joined #ruby
[19:00:39] apricant: has joined #ruby
[19:02:56] cajone: has left #ruby: ()
[19:03:49] vichib`: has joined #ruby
[19:08:46] x77686d: has joined #ruby
[19:10:16] ur5us: has joined #ruby
[19:10:47] schneide_: has joined #ruby
[19:14:55] troulouliou_div2: has joined #ruby
[19:14:59] troulouliou_div2: has joined #ruby
[19:16:36] venmx: has joined #ruby
[19:17:17] white_lilies: has joined #ruby
[19:17:49] karapetyan: has joined #ruby
[19:19:51] haylon_: has joined #ruby
[19:26:12] haylon_: has joined #ruby
[19:26:28] kapil___: has joined #ruby
[19:26:32] kapil___: how to return string with first and last character removed?
[19:26:50] clemens3: has joined #ruby
[19:27:33] nchambers: str[1...-1]
[19:31:13] desperek: has joined #ruby
[19:32:11] white_lilies: has joined #ruby
[19:33:40] kapil___: nchambers: thanks
[19:43:50] hoylemd_: has joined #ruby
[19:44:14] schneide_: has joined #ruby
[19:48:18] drakko: has joined #ruby
[19:49:21] hoylemd: has joined #ruby
[19:52:51] cdg: has joined #ruby
[19:54:09] cdg_: has joined #ruby
[19:55:50] mtkd: has joined #ruby
[19:56:55] x77686d: has joined #ruby
[19:58:20] workmad3: has joined #ruby
[20:02:11] schneide_: has joined #ruby
[20:07:04] desperek: has joined #ruby
[20:09:12] cpruitt: has joined #ruby
[20:17:26] n0m4d1c: has joined #ruby
[20:17:59] ramfjord: has joined #ruby
[20:19:28] darkhanb: has joined #ruby
[20:20:17] darkhanb: has joined #ruby
[20:21:57] skweek: has joined #ruby
[20:28:43] justinfaler: has joined #ruby
[20:28:47] dtzuzu: has joined #ruby
[20:31:12] white_lilies: has joined #ruby
[20:32:32] Guest17632: has joined #ruby
[20:33:32] nchambers: https://gitlab.com/ntchambers/cherrybomb/blob/master/lib/cherrybomb/ident.rb#L11-24 can anyone see any way to make this method 1 line smaller? rubocop is saying its 1 line too long
[20:35:12] workmad3: has joined #ruby
[20:40:24] nickjj: has joined #ruby
[20:42:09] x77686d: has joined #ruby
[20:48:11] Bounga: has joined #ruby
[20:51:40] white_lilies: move the logger configuration to a method?
[20:51:55] milardovich: has joined #ruby
[20:57:17] Dimik: has joined #ruby
[20:57:22] Bounga: has joined #ruby
[21:03:05] skweek: has joined #ruby
[21:05:06] orbyt_: has joined #ruby
[21:06:25] u0157542: has joined #ruby
[21:08:07] gary: has joined #ruby
[21:09:29] armyriad: has joined #ruby
[21:11:33] cdg: has joined #ruby
[21:15:08] cpruitt: has joined #ruby
[21:21:41] ledestin: has joined #ruby
[21:23:14] karapetyan: has joined #ruby
[21:28:55] nchambers: are nested begin/rescue blocks not normal in ruby?
[21:32:03] nchambers: ah nevermind, misunderstood the error
[21:33:24] milardovich: has joined #ruby
[21:33:29] schneide_: has joined #ruby
[21:38:07] alex``: has joined #ruby
[21:41:09] kies: has joined #ruby
[21:50:09] DaniG2k: has joined #ruby
[21:51:12] hahuang61: has joined #ruby
[21:51:31] orbyt_: has joined #ruby
[21:53:49] nogic: has joined #ruby
[21:55:16] quobo: has joined #ruby
[21:57:12] sanscoeur: has joined #ruby
[22:00:34] mtkd: has joined #ruby
[22:10:50] locsmif: has joined #ruby
[22:13:06] cdg: has joined #ruby
[22:21:26] skweek: has joined #ruby
[22:23:20] u0157542: has joined #ruby
[22:24:07] d5sx43: has joined #ruby
[22:26:04] Guest61974: has joined #ruby
[22:26:41] suhdood: has joined #ruby
[22:28:17] AxelAlex: has joined #ruby
[22:28:51] bigblind: has joined #ruby
[22:31:19] milardovich: has joined #ruby
[22:34:56] orbyt_: has joined #ruby
[22:43:47] u0157542: has joined #ruby
[22:44:00] skweek: has joined #ruby
[22:46:59] tomphp: has joined #ruby
[22:47:28] John_Ivan: has joined #ruby
[22:47:28] John_Ivan: has joined #ruby
[22:50:20] hahuang61: has joined #ruby
[22:55:50] TinkerTyper: has joined #ruby
[22:56:28] gr33n7007h: has joined #ruby
[22:57:29] milardovich: has joined #ruby
[22:59:52] Gnut: has joined #ruby
[23:00:16] karapetyan: has joined #ruby
[23:01:36] baweaver: nchambers: -1 is last, -2 is what they wanted
[23:02:21] al2o3-cr: baweaver: they used ...
[23:02:37] baweaver: ACTION goes to get coffee
[23:06:30] orbyt_: has joined #ruby
[23:07:08] AJA4350: has joined #ruby
[23:08:24] Bounga: has joined #ruby
[23:09:25] aroaminggeek: has joined #ruby
[23:12:04] apeiros: baweaver: heh, I *almost* said the same
[23:12:31] baweaver: http://thinktheology.org/wp-content/uploads/2017/01/Its-a-Trap_better.jpg
[23:12:44] baweaver: Also yeah, the earlier rubocop thing, that's basically what I was thinking
[23:12:44] milardovich: has joined #ruby
[23:12:51] apeiros: he's dead, though :<
[23:14:33] apeiros: baweaver: re rubocop thing - you mean you too thought it was weird that rubocop would perform a semantical change?
[23:17:11] u0157542: has joined #ruby
[23:17:56] Guest70084: has joined #ruby
[23:21:24] Asher: has joined #ruby
[23:22:46] ResidentBiscuit: has joined #ruby
[23:23:44] milardovich: has joined #ruby
[23:24:35] nchambers: baweaver: is it wrong to use ...? I'm fairly new to ruby so am not up to code on best practices
[23:25:18] nchambers: also, the rubocop thing, I didn't realize you could have a rescue without a begin at the top level of the method (which is why it was complaining)
[23:26:09] apeiros: nchambers: it's not wrong. it's just that .. is far more prevalent and people tend to miss the extra ., even experienced ones as baweaver just proved :)
[23:26:23] apeiros: one reason why I usually write it as 1..-2 instead of 1...-2
[23:26:28] apeiros: one reason why I usually write it as 1..-2 instead of 1...-1
[23:26:43] Bounga: has joined #ruby
[23:26:45] nchambers: I can't remember how I picked up ..., but I just use it now out of habit
[23:26:48] apeiros: ... means "excluding the end", so for this use-case, 1..-2 is equivalent to 1...-1
[23:26:57] nchambers: thats good to know. thanks!
[23:27:11] apeiros: it's in the range docs, should you ever need to look it up ;-)
[23:27:44] nchambers: ill probably do that at some point in the neat future
[23:29:01] riskish: has joined #ruby
[23:36:15] elcontrastador: has joined #ruby
[23:36:50] milardovich: has joined #ruby
[23:38:00] jsrn: has joined #ruby
[23:39:42] Guest50959: has joined #ruby
[23:45:11] jrp93: has joined #ruby
[23:48:38] u0157542: has joined #ruby
[23:48:39] aroaming_: has joined #ruby
[23:53:58] milardovich: has joined #ruby
[23:56:16] jnyw: has joined #ruby