« Back to channel list

#ruby - 09 June 2017

« Back 1 day Forward 1 day »
[00:02:21] jusa: has joined #ruby
[00:03:14] mesamoo: has joined #ruby
[00:05:48] Rodya_: has joined #ruby
[00:06:05] nofxxxx: has joined #ruby
[00:07:52] jdsampayo: has joined #ruby
[00:09:17] mim1k: has joined #ruby
[00:12:32] forgot: has joined #ruby
[00:12:35] nofxxxx: has joined #ruby
[00:12:38] dkam: has joined #ruby
[00:18:00] poloych: has joined #ruby
[00:21:48] Kug3lis: has joined #ruby
[00:23:11] brent__: has joined #ruby
[00:29:56] bkxd: has joined #ruby
[00:39:56] enterprisey: has joined #ruby
[00:41:18] enterprisey: has joined #ruby
[00:43:40] bruce_lee: has joined #ruby
[00:43:41] bruce_lee: has joined #ruby
[00:50:35] chat_: has joined #ruby
[00:54:11] jenrzzz: has joined #ruby
[00:54:52] raspado: has joined #ruby
[00:58:18] ben_h: has joined #ruby
[01:04:58] HoierM: has joined #ruby
[01:05:27] dasher00: has joined #ruby
[01:06:35] Rodya_: has joined #ruby
[01:08:31] brent__: has joined #ruby
[01:10:19] nofxx: has joined #ruby
[01:11:27] uZiel: has joined #ruby
[01:17:27] bmurt: has joined #ruby
[01:23:57] Orbixx: has joined #ruby
[01:24:42] duderonomy: has joined #ruby
[01:25:00] arescorpio: has joined #ruby
[01:28:28] bambanx: has joined #ruby
[01:29:25] z3uS: has joined #ruby
[01:29:27] bkxd: has joined #ruby
[01:30:26] cschneid_: has joined #ruby
[01:30:50] nunchuck: has joined #ruby
[01:31:30] chouhoulis: has joined #ruby
[01:32:04] d^sh: has joined #ruby
[01:33:55] hakoichi: has joined #ruby
[01:33:56] Silthias1: has joined #ruby
[01:35:29] bkxd: has joined #ruby
[01:36:48] Orbixx: hakoichi: hey
[01:40:46] bvcosta: has joined #ruby
[01:42:35] PorcoRex: has joined #ruby
[01:42:39] PorcoRex: Good evening.
[01:47:46] gizmore|2: has joined #ruby
[01:48:10] chatts: has joined #ruby
[01:50:03] __Yiota: has joined #ruby
[01:50:05] charliesome: has joined #ruby
[01:53:16] jenrzzz: has joined #ruby
[01:53:17] jenrzzz: has joined #ruby
[01:53:56] johnzorn: has joined #ruby
[01:54:58] ascarter: has joined #ruby
[01:59:19] gnufied: has joined #ruby
[02:00:32] __Yiota: has joined #ruby
[02:01:46] jusa: has joined #ruby
[02:07:21] Rodya_: has joined #ruby
[02:09:49] mim1k: has joined #ruby
[02:20:25] genpaku: has joined #ruby
[02:27:23] __Yiota: has joined #ruby
[02:34:15] sarbs: has joined #ruby
[02:42:27] pb122: has joined #ruby
[02:45:02] DeeJayh: has joined #ruby
[02:45:56] uZiel: has joined #ruby
[02:47:49] sarbs: has joined #ruby
[02:48:10] sleetdrop: has joined #ruby
[02:52:55] gothicsouth: has joined #ruby
[02:56:41] __Yiota: has joined #ruby
[02:59:28] ben_h: has joined #ruby
[03:08:10] Rodya_: has joined #ruby
[03:08:35] ascarter: has joined #ruby
[03:09:40] Ryzokuken: has joined #ruby
[03:15:33] dasher00: has joined #ruby
[03:20:21] ecuanaso: has joined #ruby
[03:22:16] cdg: has joined #ruby
[03:23:22] bkxd: has joined #ruby
[03:23:50] gix: has joined #ruby
[03:34:50] felltir: has joined #ruby
[03:35:02] mim1k: has joined #ruby
[03:41:06] haylon: has joined #ruby
[03:46:44] __Yiota: has joined #ruby
[03:51:04] Jameser: has joined #ruby
[03:54:56] sleetdrop: has joined #ruby
[03:56:50] ascarter: has joined #ruby
[04:00:43] ascarter_: has joined #ruby
[04:01:51] ecuanaso: has joined #ruby
[04:09:00] Rodya_: has joined #ruby
[04:12:20] uZiel: has joined #ruby
[04:13:36] xall: has joined #ruby
[04:22:57] bkxd: has joined #ruby
[04:26:58] mikecmpbll: has joined #ruby
[04:30:49] ascarter: has joined #ruby
[04:34:27] perniciouscaffei: has joined #ruby
[04:37:50] SeepingN: has joined #ruby
[04:40:14] A124: has joined #ruby
[04:41:09] MrBusiness3: has joined #ruby
[04:42:45] rohitpaulk: has joined #ruby
[04:42:58] raspado: has joined #ruby
[04:45:53] patarr: has joined #ruby
[04:50:49] MrBusiness: has joined #ruby
[04:51:53] 18VABDA0J: has joined #ruby
[04:52:24] ascarter: has joined #ruby
[04:56:06] uZiel: has joined #ruby
[04:59:15] mikecmpbll: has joined #ruby
[05:05:13] Ryzokuken: has joined #ruby
[05:05:25] arquebus: has joined #ruby
[05:08:16] chatbat: has joined #ruby
[05:09:52] Rodya_: has joined #ruby
[05:10:28] armyriad: has joined #ruby
[05:11:39] mjuszczak: has joined #ruby
[05:12:17] rohitpaulk: has joined #ruby
[05:16:57] Bock: has joined #ruby
[05:22:28] bkxd: has joined #ruby
[05:28:44] aupadhye: has joined #ruby
[05:29:37] charliesome: has joined #ruby
[05:30:24] chat_: has joined #ruby
[05:30:46] muelleme: has joined #ruby
[05:31:26] ur5us: has joined #ruby
[05:35:42] tvw: has joined #ruby
[05:41:39] Ishido: has joined #ruby
[05:46:47] hutch34: has joined #ruby
[05:59:14] dionysus69: has joined #ruby
[05:59:39] cschneid_: has joined #ruby
[06:02:38] muelleme: has joined #ruby
[06:09:39] S1kx: has joined #ruby
[06:10:29] ryzokuken_: has joined #ruby
[06:10:43] Rodya_: has joined #ruby
[06:14:36] jenrzzz: has joined #ruby
[06:16:35] chat: has joined #ruby
[06:21:59] bkxd: has joined #ruby
[06:25:35] sleetdrop: has joined #ruby
[06:26:42] nadir: has joined #ruby
[06:27:06] harfangk: has joined #ruby
[06:27:07] vali: has joined #ruby
[06:27:12] anisha: has joined #ruby
[06:27:24] bkxd: has joined #ruby
[06:27:39] conta: has joined #ruby
[06:30:08] anisha_: has joined #ruby
[06:33:47] weathermaker: has joined #ruby
[06:35:02] roshanavand: has joined #ruby
[06:40:06] Tempesta: has joined #ruby
[06:41:15] andikr: has joined #ruby
[06:44:35] dionysus69: has joined #ruby
[06:45:56] sleetdrop: has joined #ruby
[06:46:44] patarr: has joined #ruby
[06:48:25] nofxx: has joined #ruby
[06:48:32] cfec0b8d: has joined #ruby
[06:50:24] 5EXAA6YSK: has joined #ruby
[06:50:50] roshanavand1: has joined #ruby
[06:51:04] jusa: has joined #ruby
[06:52:25] aufi: has joined #ruby
[06:55:02] arquebus: has joined #ruby
[06:58:46] Silthias: has joined #ruby
[07:00:07] Silthias2: has joined #ruby
[07:00:54] felltir: has joined #ruby
[07:01:09] ben_h: has joined #ruby
[07:05:33] Pumukel: has joined #ruby
[07:10:05] Pumukel: has joined #ruby
[07:10:12] jgnagy: has joined #ruby
[07:11:09] biberu: has joined #ruby
[07:11:20] Rodya_: has joined #ruby
[07:14:30] yosafbridge: has joined #ruby
[07:14:47] milardovich: has joined #ruby
[07:16:39] mark_66: has joined #ruby
[07:18:16] charliesome: has joined #ruby
[07:26:19] Otti: has joined #ruby
[07:28:57] LightStalker: has joined #ruby
[07:29:58] Silthias: has joined #ruby
[07:30:06] mathys: has joined #ruby
[07:34:10] im0nde: has joined #ruby
[07:37:01] mark_66: has joined #ruby
[07:38:09] belmoussaoui: has joined #ruby
[07:38:34] bricker: has joined #ruby
[07:40:33] Chat0555: has joined #ruby
[07:43:17] bricker: has joined #ruby
[07:47:44] bricker: has joined #ruby
[07:52:52] horst: has joined #ruby
[07:58:52] ben_h: has joined #ruby
[08:01:34] valentinul: has joined #ruby
[08:02:42] jcao219: has joined #ruby
[08:03:57] jenrzzz: has joined #ruby
[08:03:57] jenrzzz: has joined #ruby
[08:03:58] rgr: has joined #ruby
[08:04:02] hurricanehrndz: has joined #ruby
[08:06:18] nachoman: has joined #ruby
[08:07:41] brent__: has joined #ruby
[08:08:56] ltem: has joined #ruby
[08:09:17] ferr1: has joined #ruby
[08:11:17] roshanavand: has joined #ruby
[08:12:06] Rodya_: has joined #ruby
[08:15:28] mark_66: has joined #ruby
[08:18:43] mikecmpbll: has joined #ruby
[08:22:13] ddffg: has joined #ruby
[08:22:41] _joes___: has joined #ruby
[08:23:57] _joes___: has joined #ruby
[08:25:52] zipace: has joined #ruby
[08:25:59] zipace: has joined #ruby
[08:28:57] burgestrand: has joined #ruby
[08:29:08] mim1k: has joined #ruby
[08:29:54] bkxd: has joined #ruby
[08:38:12] bvcosta: has joined #ruby
[08:39:47] bvcosta: has joined #ruby
[08:43:44] AlexRussia: has joined #ruby
[08:43:59] marr: has joined #ruby
[08:45:51] Beams: has joined #ruby
[08:47:33] patarr: has joined #ruby
[08:48:56] mikecmpb_: has joined #ruby
[08:52:22] milardovich: has joined #ruby
[08:53:08] milardovich: has joined #ruby
[08:54:27] milardov_: has joined #ruby
[08:55:27] uZiel: has joined #ruby
[08:56:49] burgestrand: has joined #ruby
[08:57:21] MrBusiness: has joined #ruby
[08:57:42] bvcosta: has joined #ruby
[08:58:09] jaruga________: has joined #ruby
[08:59:54] haraoka: has joined #ruby
[09:00:12] mim1k: has joined #ruby
[09:01:25] flying: has joined #ruby
[09:04:18] zenspider: wow. fairly dead
[09:07:46] mim1k: has joined #ruby
[09:09:45] Kug3lis: has joined #ruby
[09:13:08] Rodya_: has joined #ruby
[09:13:20] nachoman: has joined #ruby
[09:13:50] Puffball: has joined #ruby
[09:13:50] dreamthese: has joined #ruby
[09:14:20] rohitpaulk: has joined #ruby
[09:14:22] Otti: has joined #ruby
[09:15:04] kke_: how can i tail a stringio? something like https://gist.github.com/kke/e7f8721840cf09900cabcc900312f134 but so it actually works :)
[09:17:02] bkxd: has joined #ruby
[09:18:15] howdoi: has joined #ruby
[09:19:16] gagrio: has joined #ruby
[09:21:16] kke_: read in a loop and do something like output to stdout for the new data
[09:22:06] bkxd: has joined #ruby
[09:22:11] zenspider: are you sure you want a StringIO for that?
[09:22:38] zenspider: kke_: can you figure out how to do the equivalent with a regular file?
[09:24:04] universa1: why not push to an array and pop? ;)
[09:24:26] benz: has joined #ruby
[09:24:30] dasher^0_o: has joined #ruby
[09:24:43] zenspider: universa1: maybe they actually want an IO
[09:24:44] benz: hello, i have some emergency issue on puma
[09:24:57] benz: any expert here?
[09:25:43] universa1: zenspider: yeah maybe, but the example is so contrived, that the actual problem might be something totally different ;)
[09:25:58] kke_: zenspider: i was planning to capture the real $stdout, then do $stdout = my_string_io and then process stuff that comes into it
[09:26:31] zenspider: kke_: you didn't answer my question. can you figure out how to do this with a regular IO?
[09:26:36] zenspider: like a file
[09:26:52] ruby[bot]: benz: Just ask your question, if anyone has, is or can, they will respond.
[09:27:12] zenspider: Burgestrand: thank you. I never remember those things
[09:27:23] burgestrand: zenspider me neither, I looked it up at https://ruby-community.com/ruboto/facts
[09:27:49] ruby[bot]: zenspider: I don't see no me, whom should I tell about help?
[09:27:49] benz: on a rails project, puma starts consuming all the cpu
[09:27:54] raul782: has joined #ruby
[09:27:58] kke_: zenspider: yes, you can just keep file.reading it (or use inotifier/kqueue whatever)
[09:28:13] benz: in just 1 minutes it reaches 80%
[09:28:20] zenspider: kke_: don't think so...
[09:28:20] benz: any idea how to debug
[09:28:34] lxsameer: has joined #ruby
[09:28:39] universa1: benz: it stays at 80% or it drops after a minute or two?
[09:28:40] raul782: Hi guys, how can I replace a \n with an invisible newline. because right now
[09:28:42] zenspider: kke_: if your same process opens a file writes to it and then tries to read from it in a loop? what happens?
[09:29:12] raul782: when I store it in a mysql textfield, I can still see the \n
[09:29:23] zenspider: benz: how are you sure it isn't doing something legitimately?
[09:29:33] zenspider: raul782: how do you see it?
[09:29:39] benz: it stays at 80
[09:30:12] kke_: zenspider: hmm yes, the reader should keep track of file position and rewind and then the writer in another thread will screw things up by overwriting
[09:30:43] zenspider: kke_: that's because the reader and the writer are the same thing... the single IO
[09:31:16] kke_: i wonder if i could use IO.pipe then
[09:31:37] zenspider: what are you REALLY trying to do?
[09:31:40] kke_: read, write = IO.pipe $stdout = write; then keep reading the read
[09:31:42] leitz: has joined #ruby
[09:31:47] raul782: zenspider: this is how it's stored in the database <script type="text/javascript">\n var abc=1 </script>
[09:32:03] raul782: I've tried several combinations with gsub, before storing it.
[09:32:06] zenspider: raul782: how do you know that? how do you see it?
[09:32:09] kke_: trying to capture stdout of another thread
[09:32:10] tomphp: has joined #ruby
[09:32:29] zenspider: kke_: what does that mean, and in what context?
[09:32:33] raul782: zenspider: My app, display that field in a text area
[09:33:09] zenspider: so you're not looking at the raw value in the db (or whatever)
[09:33:33] kke_: IO.pipe however is not available on all platforms. dang.
[09:35:33] kke_: i have something like spinner "foo" { .... } and i don't like how it currently requires monkeypatching/overwriting puts/print/etc to keep track of the spinner position
[09:35:34] tvw: has joined #ruby
[09:36:17] raul782: zenspider: let me confirm you that
[09:37:11] nanoz: has joined #ruby
[09:40:52] mark_66: has left #ruby: ("PART #elixir-lang :PART #crystal-lang :PONG :verne.freenode.net")
[09:42:18] raul782: zenspider: Yeah, I can see the \n in the field of type: text
[09:43:10] raul782: zenspider: The context is the following: I had this javascript snippet stored in the database, and then the app exported in a CSV, in order to not break the format, I replaced newline with \n
[09:43:12] zenspider: so then the value is correct in the db and incorrect in the form. it is probably being escaped by something when it goes into the form? is there some sanitizer being used?
[09:43:32] raul782: But when I want to import it again, I can replace it back to an invisible new line
[09:45:59] raul782: zenspider: yes, I'm using codemirror
[09:46:04] raul782: http://codemirror.net/
[09:47:08] zenspider: well... that's not exactly what I mean, but maybe it is also getting in the way. You could add an extra text-area that is plain and see what displays in there...
[09:47:15] hutch34: has joined #ruby
[09:47:29] zenspider: I suspect that something is causing problems before codemirror is involved (but that's just a guess)
[09:47:49] zenspider: I would be attempting to write a test to verify this more directly tho
[09:48:54] olivier__: has joined #ruby
[09:49:54] romank: has joined #ruby
[09:51:33] raul782: zenspider: ok I'll spit it out in a regular textarea
[09:58:58] raul782: zenspider: Weird, in a simple textarea. I can se the \n
[09:59:09] raul782: *still see
[09:59:23] raul782: IS there a a non printable character for newline
[09:59:34] tomphp: has joined #ruby
[10:00:33] cschneid_: has joined #ruby
[10:01:05] zenspider: raul782: kk. then you know it isn't codemirror. cool.
[10:01:43] zenspider: can you `p the_text` in ruby, before the render and then look at it there? the real question is whether it displays as \n or \\n
[10:02:10] nimzo: has joined #ruby
[10:02:13] nimzo: hello all
[10:02:26] nimzo: what's the neatest way of achiving the following in ruby:
[10:02:39] nimzo: a = [1, 2, 3, 4]
[10:02:42] zenspider: don't paste...
[10:03:07] nimzo: b = [2, 6] -> a.include?(b)
[10:03:08] burgestrand: has joined #ruby
[10:03:20] nimzo: have two arrays, check if ANY value of b is contained in a
[10:03:24] zenspider: raul782: wait. when you said you escaped it yourself... where did you do that? did you put in a literal \n into the db or what?
[10:03:33] zenspider: nimzo: what'd you try so far?
[10:03:46] nimzo: I know I can write my own logic to check that but I was wondering if there's a neater way of doing it
[10:04:16] nimzo: zenspider: function which iterates of a and check b.include(i)
[10:04:30] nimzo: iterates over*
[10:04:54] nimzo: sorry I meant the other way round.. iterates over b and for each element a.include?(i)
[10:05:02] zenspider: doesn't matter... it's the same thing
[10:05:17] zenspider: what do you call that type of check?
[10:05:25] nimzo: if it finds one then returns true else false.. I feel like there's gotta be a sexier way of doing that
[10:05:29] bkxd: has joined #ruby
[10:05:50] burgestrand: nimzo nope, pretty much `b.any? { … }` is the way to go.
[10:06:12] zenspider: Burgestrand: come on... 1) you're wrong. 2) at least TRY to teach a little
[10:06:23] burgestrand: zenspider ditto
[10:06:35] eifran: has joined #ruby
[10:06:52] zenspider: ditto as in I'm not trying to teach? nice try
[10:07:00] burgestrand: zenspider no I mean if you tell me I'm wrong tell me where
[10:07:11] tomphp: has joined #ruby
[10:07:31] nimzo: Burgestrand: this is a shortcut to what I'm already doing.
[10:07:46] nimzo: in the block I'll still have to check a.include?(i)
[10:07:49] burgestrand: zenspider I don't mind being wrong, but it'd be more helpful if you could tell me why :)
[10:08:00] tomphp: has joined #ruby
[10:08:01] zenspider: I'm more concerned with nimzo's problem atm
[10:08:10] raul782: zenspider: when coming from the db to the CSV I did the following: gsub(/[\r\n]+/, '\n')
[10:08:12] nimzo: Burgestrand: but I do agree it's better than what I got.
[10:08:29] nimzo: nimzo: don't know what you call that type of check.
[10:08:31] zenspider: raul782: ok. so you actually have a literal "\\n" in your string
[10:08:49] zenspider: >> '\n'.inspect
[10:08:50] ruby[bot]: zenspider: # => "\"\\\\n\"" (https://eval.in/814591)
[10:08:55] burgestrand: nimzo all I saw was "have to arrays, check if ANy value of b is contained in a, is there a neater way of doing it?`
[10:09:11] bvcosta: has joined #ruby
[10:09:21] burgestrand: nimzo maybe I missed your actual question? :)
[10:09:42] zenspider: nimzo: ok. checking what is in common between two collections is called the "intersection"
[10:10:28] nimzo: oh you're right!
[10:10:31] raul782: the only way to capture the \n
[10:10:38] nimzo: zenspider: that's neat. Thanks!
[10:10:52] zenspider: nimzo: look at the doco for Set
[10:10:55] raul782: zenspider is df.gsub("\n", ???)
[10:10:58] burgestrand: >> [1, 2, 3, 4] & [2, 4]
[10:10:59] ruby[bot]: Burgestrand: # => [2, 4] (https://eval.in/814592)
[10:11:06] burgestrand: Oh, that's a bad example :(
[10:11:21] burgestrand: >> [1, 2, 3, 4] && [0, 2, 4, 7]
[10:11:22] ruby[bot]: Burgestrand: # => [0, 2, 4, 7] (https://eval.in/814593)
[10:11:28] _DanN_: has joined #ruby
[10:11:28] burgestrand: >> [1, 2, 3, 4] & [0, 2, 4, 7]
[10:11:29] ruby[bot]: Burgestrand: # => [2, 4] (https://eval.in/814594)
[10:11:54] raul782: zenspider: what should I put on ???, to get back the initial non printable newline?
[10:11:55] zenspider: >> '\n'.gsub('\n', "\n")
[10:12:01] ruby[bot]: zenspider: # => "\n" (https://eval.in/814595)
[10:12:29] zenspider: Burgestrand: hopeless
[10:13:18] zenspider: raul782: does that make sense? '\n' in ruby is the escaped form. "\n" is normal form
[10:13:34] Neptu: has joined #ruby
[10:13:43] raul782: ok, I'll try it on my import method to see if that works
[10:13:49] burgestrand: zenspider rude!
[10:13:49] Rodya_: has joined #ruby
[10:14:30] zenspider: raul782: iirc, newlines in values in CSV *is* valid tho, you need to have quotes around the field. so you don't need to escape them so much as you need to output valid CSV, rigt?
[10:14:34] zenspider: right. ugh.
[10:15:05] konsolebox: raul782: what are you really trying to do?
[10:15:15] rohitpaulk: has joined #ruby
[10:15:36] uZiel: has joined #ruby
[10:16:10] zenspider: field = (escaped / non-escaped)
[10:16:10] zenspider: escaped = DQUOTE *(TEXTDATA / COMMA / CR / LF / 2DQUOTE) DQUOTE
[10:16:11] zenspider: non-escaped = *TEXTDATA
[10:16:27] d^sh: has joined #ruby
[10:16:47] raul782: zenspider, that worked :). well it's not a CSV but a TSV
[10:16:47] zenspider: and using the CSV class should do that for you automatically
[10:18:25] raul782: zenspider: the thing is that many fields have double quotes
[10:18:49] raul782: so it seemed to me at the moment that using a TSV should work
[10:19:31] papercode: has joined #ruby
[10:19:32] raul782: I ahd to use this to make it work : csv = CSV.parse(string, col_sep: "\t", :quote_char => "\x00")
[10:19:35] zenspider: double quotes are just "" inside (2DQUOTE above)
[10:20:36] Arahael: Also, tabs in values is valid, too.
[10:20:54] zenspider: yes, but again, the file format allows for all of this
[10:21:13] Xeago: has joined #ruby
[10:21:25] zenspider: but whatever... you can munge and demunge the values consistently
[10:21:47] arup_r: has joined #ruby
[10:21:47] raul782: That's great to know, I'll follow your advice then, now that it's working.
[10:21:51] cschneid_: has joined #ruby
[10:21:55] Arahael: zenspider: At this point, you might as well just read the lines, and do a .split('\t')
[10:28:04] lel: has joined #ruby
[10:28:31] mikecmpbll: i read between the lines 🕵🏼
[10:37:36] rikkipitt: has joined #ruby
[10:39:07] blackwind_123: has joined #ruby
[10:40:41] papercode: has left #ruby: ("WeeChat 1.8-dev")
[10:48:28] patarr: has joined #ruby
[10:49:47] anisha: has joined #ruby
[10:52:23] arup_r: has left #ruby: ()
[10:52:29] arup_r: has joined #ruby
[10:53:58] mim1k: has joined #ruby
[10:54:19] d^sh_: has joined #ruby
[11:02:48] aruns: has joined #ruby
[11:03:10] aruns: Hi, running RVM 1.29.1 on Mac OS X 10.11.6 (El Capitan) using Fish Shell 2.4.0
[11:03:18] milardovich: has joined #ruby
[11:03:36] ur5us: has joined #ruby
[11:03:41] aruns: Have downloaded RVM via Bash, default Ruby prior to RVM was 2.0.0, have installed the RVM function script for Fish
[11:04:00] aruns: But rvm default does not update the default Ruby version on my system
[11:04:12] aruns: Even though I have rvm default in ~/.config/fish/config.fish
[11:04:27] aruns: And everything seems to be fine in terms of what's in $PATH
[11:06:14] cdg: has joined #ruby
[11:06:28] Ninja0n3: has joined #ruby
[11:08:45] Ninja0n3: Hello, I'm feeling a bit stupid right now, I'm trying to run a ruby script which uses ENV['ENVVAR'] from a bash script, in the script I have ENVVAR="my_var_value" before calling 'ruby myscript.rb', however when I 'puts ENV['ENVVAR']' it comes empty, any ideas?
[11:11:42] zenspider: aruns: you might want to switch to bash and ensure that things work there first. then it is either fish itself or the bindings between the two.
[11:12:03] zenspider: that said... rvm does a LOT. you might want to check out rbenv or others instead. they might play nicer with fish just because they do less
[11:12:08] zenspider: and do it MUCH MUCH cleaner
[11:12:13] kke_: Ninja0n3: i think you need to export it
[11:12:23] kke_: Ninja0n3: export ENVVAR
[11:12:36] zenspider: Ninja0n3: either export it or have it on the same line as the call
[11:12:41] zenspider: K=V ruby blah.rb
[11:12:55] Ninja0n3: kke_: Thank you, I just found that out myself, I did not have the 'export' command before the env variable, adding it solved the issue
[11:12:56] Ninja0n3: Thanks a lot
[11:13:07] Ninja0n3: zenspider, kke_ thank you!
[11:14:12] kke_: strings from env are frozen btw. ran into this when doing something like foo = ENV['BAR']; foo.gsub!(...)
[11:14:13] burgestrand: has joined #ruby
[11:14:34] Rodya_: has joined #ruby
[11:18:27] Fernando-Basso: has joined #ruby
[11:21:08] bkxd: has joined #ruby
[11:21:16] Tempesta_: has joined #ruby
[11:22:53] burgestrand: has joined #ruby
[11:23:06] moei: has joined #ruby
[11:25:44] petruff1: has joined #ruby
[11:27:00] tomphp: has joined #ruby
[11:27:36] SaschaVoid: has joined #ruby
[11:29:48] patarr: has joined #ruby
[11:32:39] saschavo1d: has joined #ruby
[11:34:28] cfec0b8d: has joined #ruby
[11:35:24] milardovich: has joined #ruby
[11:35:55] Jameser: has joined #ruby
[11:36:09] burgestrand: has joined #ruby
[11:37:37] SaschaVoid: has joined #ruby
[11:39:21] iam3: has joined #ruby
[11:41:39] kke_: zenspider: btw, what i can actually do is use anything that responds to .write instead of StringIO (perhaps in this case Queue with alias_method :push, :write)
[11:41:40] iam3: It looks like spontaneously creating a nested hash is possible https://en.wikipedia.org/wiki/Autovivification#Ruby but I'm wondering if there's a way to only create h['foo'] if h['foo']['something'] is actually *assigned to* (and not just accessed).
[11:42:39] saschavo1d: has joined #ruby
[11:47:08] rikkipitt: has joined #ruby
[11:47:38] SaschaVoid: has joined #ruby
[11:47:53] rikkipitt: has joined #ruby
[11:48:43] rikkipitt: has joined #ruby
[11:49:26] bvcosta: has joined #ruby
[11:49:28] rikkipitt: has joined #ruby
[11:50:18] rikkipitt: has joined #ruby
[11:51:28] rikkipitt: has joined #ruby
[11:52:46] Kug3lis: has joined #ruby
[11:54:40] ldnunes: has joined #ruby
[11:57:52] kke_: so the revised version of my gist that actually does what i wanted to: https://gist.github.com/kke/e7f8721840cf09900cabcc900312f134
[11:59:14] belmoussaoui: has joined #ruby
[11:59:33] Kug3lis: has joined #ruby
[12:01:48] HoierM: has joined #ruby
[12:03:26] johnny56_: has joined #ruby
[12:03:31] belmoussaoui: has joined #ruby
[12:04:32] psychicist__: has joined #ruby
[12:04:37] flying: has joined #ruby
[12:06:10] olivier__: has joined #ruby
[12:06:31] test: has joined #ruby
[12:08:05] Tempesta: has joined #ruby
[12:09:44] ur5us: has joined #ruby
[12:10:08] MarkBilk: has joined #ruby
[12:13:35] bkxd: has joined #ruby
[12:14:44] rikkipitt: has joined #ruby
[12:15:16] Rodya_: has joined #ruby
[12:19:30] renchan: has joined #ruby
[12:21:03] brendan-: has joined #ruby
[12:22:25] Kug3lis: has joined #ruby
[12:23:00] synthroid: has joined #ruby
[12:25:18] swills: has joined #ruby
[12:25:19] ldnunes: has joined #ruby
[12:26:05] pupsicle: has joined #ruby
[12:26:05] jhass: has joined #ruby
[12:26:20] hutch34: has joined #ruby
[12:26:32] mikecmpbll: anyone got any experience of using traveling-ruby with native extensions that aren't yet supported by the project?
[12:26:50] mikecmpbll: i want to package up a ruby project that uses msgpack gem.
[12:30:37] Puffball: has joined #ruby
[12:30:46] nachoman: has joined #ruby
[12:31:32] pupsicle: has joined #ruby
[12:32:48] uZiel: has joined #ruby
[12:42:57] roshanavand: has joined #ruby
[12:46:51] oleo: has joined #ruby
[12:49:01] Kug3lis: has joined #ruby
[12:50:21] hogetaro: has joined #ruby
[12:51:42] krasnus: has joined #ruby
[12:54:47] tmm88: has joined #ruby
[12:55:18] mtkd: has joined #ruby
[12:55:44] xzhao: has joined #ruby
[12:58:51] olivier__: has joined #ruby
[12:59:26] ben_h: has joined #ruby
[12:59:29] omab: has joined #ruby
[12:59:35] xzhao: has joined #ruby
[13:00:24] omab: has joined #ruby
[13:01:19] prubini87: has joined #ruby
[13:01:49] sepp2k: has joined #ruby
[13:05:44] heyimwill: has joined #ruby
[13:06:02] gigetoo: has joined #ruby
[13:07:13] kith_: has joined #ruby
[13:08:39] mim1k: has joined #ruby
[13:10:00] Benshiro: has joined #ruby
[13:11:07] jhass: has joined #ruby
[13:13:01] bkxd: has joined #ruby
[13:15:03] olivier__: has joined #ruby
[13:15:13] rohitpaulk: has joined #ruby
[13:16:05] Rodya_: has joined #ruby
[13:17:41] Kug3lis: has joined #ruby
[13:17:53] jhass: has joined #ruby
[13:19:04] millerti: has joined #ruby
[13:20:25] PatrikasZvaigzde: has joined #ruby
[13:21:25] dasher^0_o: has joined #ruby
[13:23:44] rippa: has joined #ruby
[13:26:11] Mon_Ouie: has joined #ruby
[13:28:10] mostlybadfly: has joined #ruby
[13:29:18] DLSteve: has joined #ruby
[13:29:34] mjuszczak: has joined #ruby
[13:33:26] mim1k: has joined #ruby
[13:35:12] gizmore: has joined #ruby
[13:40:01] tomphp: has joined #ruby
[13:44:36] shinnya: has joined #ruby
[13:45:36] olivier__: has joined #ruby
[13:46:22] KeyJoo: has joined #ruby
[13:46:28] bmurt: has joined #ruby
[13:48:38] xzhao: has joined #ruby
[13:50:52] chouhoulis: has joined #ruby
[13:53:06] tomphp: has joined #ruby
[13:54:05] __Yiota: has joined #ruby
[13:54:49] arup_r: has joined #ruby
[13:56:11] tomphp: has joined #ruby
[13:56:59] belmoussaoui: has joined #ruby
[13:57:09] GinoMan: has joined #ruby
[14:01:12] tomphp: has joined #ruby
[14:02:57] KeyJoo: has joined #ruby
[14:03:12] perniciouscaffei: has joined #ruby
[14:03:47] tomphp: has joined #ruby
[14:04:04] Kug3lis: has joined #ruby
[14:06:36] Alex9: has joined #ruby
[14:08:03] chouhoul_: has joined #ruby
[14:10:33] ur5us: has joined #ruby
[14:14:27] DeeJayh: has joined #ruby
[14:15:43] DeeJayh_: has joined #ruby
[14:16:55] rohitpaulk: has joined #ruby
[14:16:55] bvcosta: has joined #ruby
[14:17:06] Rodya_: has joined #ruby
[14:17:30] djbkd: has joined #ruby
[14:19:43] bvcosta_: has joined #ruby
[14:20:25] patarr: has joined #ruby
[14:22:02] jhass: has joined #ruby
[14:26:14] burgestrand: IAM_ (3 hours later) not AFAIK, but you can create your own object with a similar interface, and specifically implement `[]=(key, value)`
[14:27:09] swills: has joined #ruby
[14:27:48] olivier__: has joined #ruby
[14:30:39] DeeJayh: has joined #ruby
[14:31:26] ldnunes: has joined #ruby
[14:31:45] DeeJayh_: has joined #ruby
[14:31:46] iam3: Burgestrand: Thanks for the info. So I'm guessing the implementation for assignment []= could differ from read/traversal. Would writing an extended object need much more to it than the autovivification example needs? Such as: tree = proc { Hash.new { |hash, key| hash[key] = tree.call } }
[14:34:21] hutch34: has joined #ruby
[14:34:25] LastWhisper____: has joined #ruby
[14:37:50] burgestrand: IAM_ problem will arise if you want to something such as `tree["x"]["y"] = "Hey"` without `tree["x"]` being defined
[14:38:06] bkxd: has joined #ruby
[14:38:48] burgestrand: IAM_ since the implementation of `[]` in the root node does not know if you want to autovivi…thingy or if you want a nil value
[14:40:00] burgestrand: IAM_ so sorry, I did misunderstand your initial question
[14:41:45] chouhoulis: has joined #ruby
[14:41:47] bmurt: has joined #ruby
[14:42:19] snockerton: has joined #ruby
[14:45:27] chouhoul_: has joined #ruby
[14:54:05] WxW: has joined #ruby
[14:54:46] iam3: Ok thanks. I had wondered if there was a way to "propagate" the difference between doing a `tree["x"]["y"] = "Hey"` versus a test access `tree["x"]["y"]` that just checks for the presence of that `["y"]`.
[14:54:53] WxW: has left #ruby: ()
[14:55:05] WxW: has joined #ruby
[14:56:44] burgestrand: IAM_ there's possibly a way to hack around it, but there's no nice way to go about it I don't think
[14:58:11] Derperperd: has joined #ruby
[15:00:15] mtkd: has joined #ruby
[15:00:45] WxW: has left #ruby: ("Leaving")
[15:01:15] perniciouscaffei: has joined #ruby
[15:03:18] howdoi: has joined #ruby
[15:03:28] djbkd: has joined #ruby
[15:05:14] chalkmonster: has joined #ruby
[15:06:07] cschneid_: has joined #ruby
[15:10:39] djbkd: has joined #ruby
[15:13:25] milardovich: has joined #ruby
[15:17:56] Rodya_: has joined #ruby
[15:18:11] djbkd: has joined #ruby
[15:18:43] Derperperd: has joined #ruby
[15:19:26] djbkd: has joined #ruby
[15:24:57] gothicsouth: has joined #ruby
[15:25:22] milardov_: has joined #ruby
[15:25:25] roychri: has joined #ruby
[15:26:44] hobodave: has joined #ruby
[15:28:04] brent__: has joined #ruby
[15:28:45] boombox_: has joined #ruby
[15:29:10] milardovich: has joined #ruby
[15:31:53] brent__: has joined #ruby
[15:31:56] ascarter: has joined #ruby
[15:32:17] ascarter_: has joined #ruby
[15:37:15] swills: has joined #ruby
[15:40:59] yeticry_: has joined #ruby
[15:43:09] Kug3lis: has joined #ruby
[15:51:16] charliesome: has joined #ruby
[15:55:25] plujon: has joined #ruby
[16:01:00] ascarter: has joined #ruby
[16:02:48] rohitpaulk: has joined #ruby
[16:03:07] bkxd: has joined #ruby
[16:03:27] chat_: has joined #ruby
[16:03:37] cdg: has joined #ruby
[16:06:28] nanoz: has joined #ruby
[16:08:13] amclain: has joined #ruby
[16:08:40] Silthias1: has joined #ruby
[16:09:06] gnufied: has joined #ruby
[16:09:39] muelleme: has joined #ruby
[16:11:14] ur5us: has joined #ruby
[16:12:33] millerti: has joined #ruby
[16:13:13] Silthias: has joined #ruby
[16:14:29] ivanskie: has joined #ruby
[16:15:15] keyjoo_: has joined #ruby
[16:18:04] ivanskie: i know its wrong channel but.. (famous last words)... uhm is there a command to 'forget' all previous changes in git before I push? i don't want it to push anything about what i did before how the files are right now
[16:18:28] Rodya_: has joined #ruby
[16:19:10] gusrub: has joined #ruby
[16:19:12] petruff1: has joined #ruby
[16:19:27] nitric: has joined #ruby
[16:19:59] ivanskie: not sure if i need clean or reset. because I want to keep everything i just did, without history. i do git push origin, and it tells me uploading 5mb.. and its wrong unless its uploading previous changes which i don't want it to do
[16:22:27] im0nde: has joined #ruby
[16:23:48] Papierkorb: ivanskie: Have you committed them already, or only staged through `git add`?
[16:25:24] Papierkorb: ivanskie: You can view the most recent commit (probably the one you created) with `git show` (without further parameters) to review it again. Maybe you added a binary file (images?) by accident
[16:26:57] [Butch]: has joined #ruby
[16:28:18] MarkBilk_: has joined #ruby
[16:29:11] ivanskie: maybe this git rm --cached FILENAME
[16:36:48] Ishido: has joined #ruby
[16:36:58] mjuszczak: has joined #ruby
[16:41:44] weathermaker: has joined #ruby
[16:41:56] MarkBilk: has joined #ruby
[16:46:45] bkxd: has joined #ruby
[16:47:55] DeeJayh: has joined #ruby
[16:49:54] Silthias: has left #ruby: ()
[16:50:28] hobodave: has joined #ruby
[16:51:02] xzhao: has joined #ruby
[16:53:39] iron16: has joined #ruby
[16:55:16] bvcosta: has joined #ruby
[16:56:39] cfec0b8d: has joined #ruby
[16:59:45] ivanskie: pretty sure i haven't figured out how to use modules / classes yet: https://github.com/i5okie/pxgMapFetcher/tree/MultiSite
[16:59:52] iron16: has left #ruby: ("Leaving")
[17:00:13] ivanskie: this is what im trying to do: https://gist.github.com/i5okie/fed889b444d2165e4770a598cdf4b7d4
[17:03:46] mjuszczak: has joined #ruby
[17:05:44] ledestin: has joined #ruby
[17:07:54] hahuang65: has joined #ruby
[17:08:56] dviola: has joined #ruby
[17:10:56] rippa: has joined #ruby
[17:12:48] bvcosta: has joined #ruby
[17:13:28] bvcosta: has joined #ruby
[17:14:51] kies: has joined #ruby
[17:15:52] millerti: has joined #ruby
[17:17:59] benlieb: has joined #ruby
[17:18:15] xall: has joined #ruby
[17:18:44] nertzy: has joined #ruby
[17:18:57] nitric: has joined #ruby
[17:19:25] Rodya_: has joined #ruby
[17:19:42] Xiti`: has joined #ruby
[17:19:49] SuperLag: has joined #ruby
[17:20:53] SuperLag: has joined #ruby
[17:20:53] SuperLag: has joined #ruby
[17:21:22] dc4: has joined #ruby
[17:23:19] gusrub: has joined #ruby
[17:23:48] mjuszczak: has joined #ruby
[17:24:31] pwnd_nsfw: has joined #ruby
[17:24:46] kegster: has joined #ruby
[17:26:25] rgiscard: has joined #ruby
[17:26:33] mikecmpbll: has joined #ruby
[17:28:39] gusrub: has joined #ruby
[17:30:40] __Yiota: has joined #ruby
[17:31:16] knight33: has joined #ruby
[17:32:22] bvcosta: has joined #ruby
[17:32:36] bkxd: has joined #ruby
[17:33:57] bvcosta: has joined #ruby
[17:35:35] mjuszczak: has joined #ruby
[17:36:16] yottanami: has joined #ruby
[17:37:13] yottanami: has left #ruby: ()
[17:37:22] yottanami: has joined #ruby
[17:38:02] yottanami: How can I write this code in Ruby style and cleaner? `if params[:reception_status] == true; pay_status = 1 else payed = 0`
[17:40:19] SaschaVoid: has joined #ruby
[17:41:28] ecuanaso: has joined #ruby
[17:41:59] olivier__: has joined #ruby
[17:43:09] baweaver: why not just have pay_status be true or false?
[17:43:37] baweaver: also the `== true` is redundant
[17:47:02] duderonomy: has joined #ruby
[17:47:42] dc4: has joined #ruby
[17:48:23] petruff1: has joined #ruby
[17:48:57] pupsicle: baweaver: == true is not redundant.
[17:49:15] havenwood: pupsicle: it is though
[17:49:29] baweaver: It's going to be true or false
[17:49:49] baweaver: and anything not explicitly false or nil is truthy in Ruby
[17:49:54] baweaver: hence redundant
[17:49:56] pupsicle: How in the fuck would you know that?
[17:50:06] havenwood: pupsicle: try removing the ` == true` part and see that the behavior doesn't change
[17:50:30] havenwood: pupsicle: we know Ruby!
[17:50:31] pupsicle: If the value is true, yes. But he may specifically need it to be true to meet the condition.
[17:50:38] pupsicle: The status could be anything besides true or false.
[17:50:52] pupsicle: In fact, it's probably a string.
[17:51:02] pupsicle: So it'll always "be truthy"
[17:51:27] havenwood: pupsicle: So it may be a TrueClass or a String? Why?
[17:51:37] baweaver: depends on the form in (I assume because or params) Rails
[17:51:40] havenwood: pupsicle: That's not a good idea.
[17:51:43] Kug3lis: has joined #ruby
[17:51:45] baweaver: havenwood: note that pupsicle wasn't the OP there.
[17:51:53] baweaver: yottanami was.
[17:51:59] cjhowe7: has joined #ruby
[17:52:02] havenwood: ACTION tries to wake up
[17:52:08] baweaver: so they don't entirely know either ;)
[17:52:10] gusrub: has joined #ruby
[17:52:58] havenwood: yottanami: What are the values that `params[:reception_status]` might be? Is it just `true` or `false`?
[17:53:19] bvcosta: has joined #ruby
[17:53:59] mjuszczak: has joined #ruby
[17:54:12] pupsicle: << "false" == true
[17:54:37] baweaver: other way by the way
[17:54:43] baweaver: >> 'false' == true
[17:54:44] ruby[bot]: baweaver: # => false (https://eval.in/814979)
[17:55:52] pupsicle: I guess my point wasn't that it wasn't redundant but that he may not be expressing what he intended to.
[17:55:57] pupsicle: Apologies for getting fired up.
[17:56:13] baweaver: weekend is almost here
[17:56:40] havenwood: pupsicle: It's extremely common for new folk to `== false` and `== true` when the values are `false`, `true` or `nil`. I assumed Strings were in no way involved because of the `== true`.
[17:57:21] baweaver: pretty much that
[17:57:23] havenwood: Hopefully the value doesn't alternate between TrueClass and a String or there are other issues in play.
[17:58:43] rgr: has joined #ruby
[17:58:48] havenwood: I see it enough one wonders if Ruby should warn in that case.
[17:59:14] havenwood: the == true check, i mean
[17:59:41] havenwood: I guess like pupsicle points out, it *can* be intended.
[18:00:15] hutch34: has joined #ruby
[18:01:19] pupsicle: I just saw 'params' and immediately thought Rails and strings.
[18:05:09] desnudopenguino: has joined #ruby
[18:05:39] desnudopenguino: I have an issue trying to get rid of \xA0 unicode characters in a string, anyone have any suggestions?
[18:07:39] Kug3lis: has joined #ruby
[18:12:04] dviola: has joined #ruby
[18:12:05] ur5us: has joined #ruby
[18:12:13] bvcosta: has joined #ruby
[18:12:46] muelleme: has joined #ruby
[18:13:48] bvcosta: has joined #ruby
[18:14:41] mjuszczak: has joined #ruby
[18:17:02] bkxd: has joined #ruby
[18:17:05] devyn: has joined #ruby
[18:17:37] nertzy: has joined #ruby
[18:20:04] Rodya_: has joined #ruby
[18:20:37] grymmjack: has joined #ruby
[18:23:13] zapata: has joined #ruby
[18:23:45] nertzy: has joined #ruby
[18:24:15] harfangk: has joined #ruby
[18:29:53] mjuszczak: has joined #ruby
[18:31:51] jakew: has joined #ruby
[18:31:52] centrx: has joined #ruby
[18:32:03] ivanskie: https://unsee.cc/gipumaso/
[18:32:40] ivanskie: looks like YAML is loaded with relation to different dir than this hmm
[18:32:41] Xiti: has joined #ruby
[18:33:35] bvcosta: has joined #ruby
[18:34:15] bvcosta: has joined #ruby
[18:37:00] dc4: has joined #ruby
[18:39:36] lxsameer: has joined #ruby
[18:43:26] olivier__: has joined #ruby
[18:44:34] petruff1: has joined #ruby
[18:45:02] mjuszczak: has joined #ruby
[18:45:08] olivier__: has joined #ruby
[18:45:45] stryek: has joined #ruby
[18:47:31] speakingcode: has joined #ruby
[18:47:56] chouhoulis: has joined #ruby
[18:51:08] petruff2: has joined #ruby
[18:54:04] bvcosta: has joined #ruby
[18:54:16] ascarter: has joined #ruby
[18:54:16] govg: has joined #ruby
[18:54:39] bvcosta: has joined #ruby
[18:56:06] kies: has joined #ruby
[18:57:45] Authenticator: A user of an app I wrote is having a *ton* of 'already initialized constant' messages about OpenSSL. I don't when I run the same app the same way. I bundled the OpenSSL 2.0.3 gem with it.
[18:57:59] mjuszczak: has joined #ruby
[19:02:07] solars: has joined #ruby
[19:02:58] Kug3lis: has joined #ruby
[19:03:36] solars: hey, I've got the following Gemfile and test script, but keep getting /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundle/setup (LoadError)
[19:03:36] mim1k: has joined #ruby
[19:03:57] solars: with bundle exec sudo ruby test.rb - can anyone tell me what's wrong here?
[19:04:03] ivanskie: i have a strange error going on. I'm thinking to do with relation of directory? https://github.com/i5okie/pxgMapFetcher/blob/MultiSite/app/mapfetcher.rb#L28 can't figure it out.
[19:05:02] ivanskie: thought the YAML was getting loaded with different relation to the app. but couldn't fix it. YAML.read_file() gets "./sites/site.yml" and still gives an error that seems to point to wrong file path.
[19:06:38] Authenticator: Does anyone know why my user is getting a bunch of OpenSSL constant-already-initialized messages and I am not? They installed my bundled gems...
[19:07:53] ur5us: has joined #ruby
[19:11:54] pupsicle: Authenticator: https://stackoverflow.com/questions/41993527/fresh-install-of-rails-and-getting-openssl-errors-already-initialized-constant
[19:11:57] olivier__: has joined #ruby
[19:12:14] pupsicle: Suggests rolling back to 2.0.2
[19:12:32] bvcosta: has joined #ruby
[19:12:48] pupsicle: or specifiying 2.0.3 in the gemfile vice just openssl
[19:14:07] bvcosta: has joined #ruby
[19:15:43] GinoMan2440: has joined #ruby
[19:16:44] olivier__: has joined #ruby
[19:17:44] bkxd: has joined #ruby
[19:19:03] faelkle: has joined #ruby
[19:19:04] faelkle: has joined #ruby
[19:19:49] [Butch]: has joined #ruby
[19:20:45] Rodya_: has joined #ruby
[19:22:47] bkxd: has joined #ruby
[19:23:08] dviola: has joined #ruby
[19:23:16] axyjo: has joined #ruby
[19:23:34] Authenticator: pupsicle: Thanks.
[19:24:06] weathermaker: has joined #ruby
[19:27:44] bkxd: has joined #ruby
[19:29:44] keanny479: has joined #ruby
[19:30:12] apeiros: hi keanny479
[19:30:24] keanny479: Is there a good online program to learn Ruby/Rails ?
[19:31:09] keanny479: I wish to create my own apps
[19:31:24] keanny479: i use OpenBSD as main Operating system
[19:31:39] zenspider: is lmgtfy still a thing?
[19:32:22] hfp: has joined #ruby
[19:32:22] apeiros: there are a couple I don't know how good each of them are, though. codecademy is one f.ex.
[19:32:47] bkxd: has joined #ruby
[19:32:53] hfp_work: has joined #ruby
[19:32:59] bvcosta: has joined #ruby
[19:33:16] keanny479: no suggestions except code academy ?
[19:33:16] hutch34: has joined #ruby
[19:33:32] zenspider: ACTION sighs
[19:33:48] mjuszczak: has joined #ruby
[19:34:12] zenspider: http://lmgtfy.com/?q=learning+ruby+on+rails
[19:34:34] bvcosta: has joined #ruby
[19:35:04] centrx: keanny479: The Hartl tutorial at railstutorial.org is good
[19:35:29] keanny479: thank's everyone
[19:38:00] SuperLag: has joined #ruby
[19:38:00] SuperLag: has joined #ruby
[19:38:01] enterprisey: has joined #ruby
[19:38:46] roamingdog: has joined #ruby
[19:44:40] bkxd: has joined #ruby
[19:45:39] hahuang65: has joined #ruby
[19:48:30] dc4: has joined #ruby
[19:50:04] poloych: has joined #ruby
[19:50:26] mjuszczak: has joined #ruby
[19:50:46] GinoMan: has joined #ruby
[19:51:13] mtkd: has joined #ruby
[19:53:29] bvcosta: has joined #ruby
[19:55:00] bvcosta: has joined #ruby
[19:56:13] ascarter_: has joined #ruby
[20:02:30] GinoMan2440: has joined #ruby
[20:03:34] govg: has joined #ruby
[20:04:10] hobodave_: has joined #ruby
[20:05:28] GinoMan2440: has joined #ruby
[20:06:24] dionysus69: has joined #ruby
[20:09:27] govg: has joined #ruby
[20:10:57] wnd: has joined #ruby
[20:11:06] SeepingN: has joined #ruby
[20:12:09] hutch34: has joined #ruby
[20:12:47] cjhowe7: has joined #ruby
[20:12:53] johnny56: has joined #ruby
[20:13:08] bvcosta: has joined #ruby
[20:13:44] GinoMan: has joined #ruby
[20:13:53] jenrzzz: has joined #ruby
[20:13:53] jenrzzz: has joined #ruby
[20:14:20] nhhc: has joined #ruby
[20:14:28] bvcosta: has joined #ruby
[20:14:39] wnd: has joined #ruby
[20:15:10] hutch34_: has joined #ruby
[20:16:45] ldnunes: has joined #ruby
[20:20:11] govg: has joined #ruby
[20:21:33] Rodya_: has joined #ruby
[20:22:01] govg_: has joined #ruby
[20:23:06] ekinmur: has joined #ruby
[20:27:29] Kug3lis: has joined #ruby
[20:31:11] sepp2k: has joined #ruby
[20:31:17] hutch34_: has joined #ruby
[20:32:26] bvcosta: has joined #ruby
[20:33:56] bvcosta: has joined #ruby
[20:34:45] SuperLag: has joined #ruby
[20:36:35] SuperLag: has joined #ruby
[20:36:36] SuperLag: has joined #ruby
[20:36:55] Fira_: has joined #ruby
[20:37:21] chopin: has joined #ruby
[20:52:49] bvcosta: has joined #ruby
[20:53:50] hutch34_: has joined #ruby
[20:54:24] bvcosta: has joined #ruby
[20:57:50] keyjoo_: has joined #ruby
[21:00:52] anisha: has joined #ruby
[21:03:07] mim1k: has joined #ruby
[21:04:12] PatrikasZvaigzde: has joined #ruby
[21:06:42] brent__: has joined #ruby
[21:12:06] bkxd: has joined #ruby
[21:13:18] bvcosta: has joined #ruby
[21:14:53] bvcosta: has joined #ruby
[21:15:13] desnudopenguino: kenny479: RoR on OpenBSD is interesting, PM me if you want some detai
[21:17:06] gusrub: has joined #ruby
[21:17:13] desnudopenguino: keanny479: sorry, missed the a, see above
[21:18:03] shinnya: has joined #ruby
[21:22:14] Rodya_: has joined #ruby
[21:22:48] olivier__: has joined #ruby
[21:23:11] chat_: has joined #ruby
[21:32:52] tvw: has joined #ruby
[21:33:37] bvcosta: has joined #ruby
[21:34:17] bvcosta: has joined #ruby
[21:34:20] creshiem: has joined #ruby
[21:34:42] belmoussaoui: has joined #ruby
[21:46:40] mgirk: has joined #ruby
[21:51:12] mim1k: has joined #ruby
[21:53:08] bvcosta: has joined #ruby
[21:54:03] olivier__: has joined #ruby
[21:56:59] nachoman: has joined #ruby
[21:57:50] godel_: has joined #ruby
[21:57:58] ResidentBiscuit: has joined #ruby
[21:58:39] DeeJayh: has joined #ruby
[22:00:41] ruby[bot]: has joined #ruby
[22:00:41] ChanServ: +o ruby[bot]
[22:04:29] HoierM: has joined #ruby
[22:05:46] HoierM: has joined #ruby
[22:12:34] t-recx: has joined #ruby
[22:13:08] bvcosta: has joined #ruby
[22:13:44] learningruby: has joined #ruby
[22:14:21] learningruby: Is a Ruby exception an object? And where can I find more detailed information about exceptions?
[22:14:45] mjuszczak: has joined #ruby
[22:16:43] elomatreb: learningRuby: Yes, https://ruby-doc.org/core-2.4.1/Exception.html
[22:17:30] learningruby: thanks elomatreb
[22:18:44] centrx: has joined #ruby
[22:18:44] centrx: has joined #ruby
[22:19:04] learningruby: Most Ruby books are all kinda superficial and ambiguous, I've tried several. Can anybody suggest a resource for learning Ruby that is more precise and detailed but not as puzzling as the Ruby documentation itself for a beginner?
[22:19:34] centrx: has joined #ruby
[22:19:34] centrx: has joined #ruby
[22:22:58] learningruby: So elomatreb, if Ruby ‘raises an exception’ related to ZeroDivisionError for example, it means that Ruby detected a division by zero and then responded to this error by creating an object of ZeroDivisionError class?
[22:23:02] Rodya_: has joined #ruby
[22:23:31] username1: has joined #ruby
[22:24:43] ascarter_: has joined #ruby
[22:25:03] ivanskie: what is a recommended tdd/bdd process for ruby apps, outside of rails?
[22:25:11] ivanskie: something that's not overkill lol
[22:30:33] baweaver: ivanskie: you can just use RSpec the same as anything else, or Minitest if you're so inclined
[22:30:46] baweaver: I typically just set up Guard/RSpec on a project and go at it
[22:31:03] baweaver: learningRuby: See the channel topic, there's a book list in there
[22:31:45] baweaver: Really I tend to read Eloquent Ruby most times, but if you really want that good tome-y feel check out The Ruby Way
[22:31:56] mochiyoda_: has joined #ruby
[22:32:21] ivanskie: as i asked the question I realised if i'm going to test it i'll have to retool the code a bit to accept faker
[22:32:56] ivanskie: this is becoming a medusa of a project
[22:33:03] ivanskie: for no reason what so efer
[22:33:48] learningruby: thanks a lot baweaver.. I'm currently reading “well grounded rubyist” it's good but often ambiguous which annoys me a bit.. I'll check these ones you suggested
[22:34:00] baweaver: define ambiguous
[22:35:40] ivanskie: https://github.com/i5okie/pxgMapFetcher/tree/MultiSite
[22:36:18] baweaver: bundle gem <name>
[22:36:25] baweaver: makes a brand new packageable gem for ya
[22:37:09] baweaver: Most Ruby tends to be lib/ and spec/ (or test/)
[22:37:15] ivanskie: i could just duplicate the 'master' branch folder and edit the yml csv files. but no i decided i need to have a folder Sites and read sitename.yml & sitename.csv files lol
[22:38:34] learningruby: baweaver For example, “An exception is a special kind of object, an instance of the class Exception or a descendant of that class. ” → here at the end of this sentence, I don't know whether the exception are the descendent classes themselves or instances of these descendent classes. Not the best example, but run into many situations where it's not
[22:38:34] learningruby: perfectly clear what the sentence means.
[22:39:57] DoubleMalt: has joined #ruby
[22:40:50] bpmedley: has joined #ruby
[22:49:31] wtc: has joined #ruby
[22:50:09] centrx: has joined #ruby
[22:50:10] centrx: has joined #ruby
[22:56:17] zenspider: seems perfectly clear to me. what are you getting confused by specifically?
[22:57:20] learningruby: it is clear to you because you know what an exception is in advance.. but if you read by comment carefully you'll see the ambiguity
[22:58:20] ascarter_: has joined #ruby
[22:59:23] zenspider: no, actually I won't... which is why I asked what specifically you got hung up on... and I was willing to help you with that but it seems like you don't want that
[23:00:15] learningruby: sorry for being rude man. ok, here's the ambiguity, more specifically: “an instance of the class Exception or a descendant of that class” → you could remove the ambiguity like this “an instance of the class Exception or OF a descendant of that class”
[23:02:22] learningruby: “an instance of the class Exception or a descendant of that class. ” can have two meanings: 1. “an (instance of the class Exception) or (a descendant of that class)” and 2. “an instance of (the class Exception) or (a descendant of that class).”. I think what the book meant is the second interpretation.
[23:03:59] bvcosta: has joined #ruby
[23:05:44] cjhowe7: has joined #ruby
[23:23:48] Rodya_: has joined #ruby
[23:23:53] wnd_: has joined #ruby
[23:23:57] hsiktas_: has joined #ruby
[23:25:19] helpa: has joined #ruby
[23:26:43] belmoussaoui__: has joined #ruby
[23:28:51] forgot: has joined #ruby
[23:30:51] bkxd: has joined #ruby
[23:33:04] helpa-bot: has joined #ruby
[23:34:07] Pierreb|home: has joined #ruby
[23:34:47] helpa: has joined #ruby
[23:36:19] rikai_: has joined #ruby
[23:36:49] _DanN__: has joined #ruby
[23:36:51] pbruna: has joined #ruby
[23:36:51] piotrj_: has joined #ruby
[23:36:55] DEac-_: has joined #ruby
[23:36:58] roamingdog: has joined #ruby
[23:37:48] roamingdog: has joined #ruby
[23:38:19] duderonomy: has joined #ruby
[23:38:38] roamingdog: has joined #ruby
[23:39:25] roamingdog: has joined #ruby
[23:39:28] KillerFox: has joined #ruby
[23:39:34] forgot: has joined #ruby
[23:39:37] my123: has joined #ruby
[23:39:38] my123: has joined #ruby
[23:39:39] FastJack: has joined #ruby
[23:40:10] roamingdog: has joined #ruby
[23:41:20] helpa: has joined #ruby
[23:41:50] roamingdog: has joined #ruby
[23:44:54] bvcosta: has joined #ruby
[23:46:13] spectrum: has joined #ruby
[23:50:11] alveric2: has joined #ruby
[23:50:31] ResidentBiscuit: has joined #ruby
[23:51:23] Guest17649: has joined #ruby
[23:52:09] mim1k: has joined #ruby
[23:52:26] ResidentBiscuit: has joined #ruby
[23:55:39] olivier__: has joined #ruby