« Back to channel list

#ruby - 25 February 2018

« Back 1 day Forward 1 day »
[00:00:34] side_track: has joined #ruby
[00:00:56] cabotto: has joined #ruby
[00:06:46] willmichael: has joined #ruby
[00:10:11] cabotto: has joined #ruby
[00:11:50] Asher: has joined #ruby
[00:13:24] s2013: has joined #ruby
[00:18:59] Asher: has joined #ruby
[00:21:24] naprimer: has joined #ruby
[00:22:38] _cabotto: has joined #ruby
[00:24:05] willmichael: has joined #ruby
[00:27:22] konsolebox: has joined #ruby
[00:29:34] white_lilies: has joined #ruby
[00:31:00] nowhereman_: has joined #ruby
[00:31:40] cabotto: has joined #ruby
[00:32:46] moei: has joined #ruby
[00:33:49] bmurt: has joined #ruby
[00:34:57] gary_: has joined #ruby
[00:36:26] cabotto: has joined #ruby
[00:37:32] white_lilies: has joined #ruby
[00:42:28] Gary_B: has joined #ruby
[00:44:30] s3nd1v0g1us: has joined #ruby
[00:44:37] cabotto: has joined #ruby
[00:48:27] white_lilies: has joined #ruby
[00:50:26] s2013: has joined #ruby
[00:52:53] bmurt: has joined #ruby
[00:53:13] gary: has joined #ruby
[00:53:24] cabotto: has joined #ruby
[00:55:34] white_lilies: has joined #ruby
[01:01:49] cabotto: has joined #ruby
[01:02:18] workmad3: has joined #ruby
[01:07:43] white_lilies: has joined #ruby
[01:11:46] gary_: has joined #ruby
[01:13:37] bigblind: has joined #ruby
[01:17:03] Joufflu: has joined #ruby
[01:18:15] orbyt_: has joined #ruby
[01:19:13] Gary_B: has joined #ruby
[01:21:21] white_lilies: has joined #ruby
[01:22:55] Puffball: has joined #ruby
[01:27:29] konsolebox: has joined #ruby
[01:27:51] s2013: has joined #ruby
[01:29:40] white_lilies: has joined #ruby
[01:30:10] mostlybadfly: has joined #ruby
[01:31:02] guardianx: has joined #ruby
[01:37:50] Gary_B: has joined #ruby
[01:42:08] X-Jester_: has left #ruby: ()
[01:42:22] X-Jester: has joined #ruby
[01:42:31] phate408: has joined #ruby
[01:43:36] dinfuehr: has joined #ruby
[01:44:48] white_lilies: has joined #ruby
[01:51:35] herbmillerjr: has joined #ruby
[01:59:04] white_lilies: has joined #ruby
[02:01:53] arescorpio: has joined #ruby
[02:04:31] guardianx: has joined #ruby
[02:12:26] gary: has joined #ruby
[02:12:43] white_lilies: has joined #ruby
[02:14:58] bentlema: has joined #ruby
[02:21:51] ogres: has joined #ruby
[02:22:45] ResidentBiscuit: has joined #ruby
[02:25:04] konsolebox: has joined #ruby
[02:26:40] chat: has joined #ruby
[02:27:13] cabotto: has joined #ruby
[02:27:28] white_lilies: has joined #ruby
[02:31:44] gizmore|2: has joined #ruby
[02:34:43] RawphullCawpter: has joined #ruby
[02:35:22] RawphullCawpter: I'm trying to run gem install sigar, but it's failing on FreeBSD 11.1. Anyone familiar with cause and/or workaround?
[02:35:58] white_lilies: has joined #ruby
[02:36:19] cabotto: has joined #ruby
[02:36:33] RawphullCawpter: https://gist.github.com/anonymous/404c4e677f18a84e3ddd1536057b1fcc my output here
[02:38:24] jeffreylevesque: has joined #ruby
[02:39:33] Joufflu: has joined #ruby
[02:39:44] gizmore|2: RawphullCawpter: fatal: Not a git repository (or any of the parent directories): .git
[02:40:09] Joufflu: has joined #ruby
[02:40:17] gizmore|2: darwin_sigar.c:403:22: error: no member named 'v_cache_min' in 'struct vmmeter'
[02:40:52] Joufflu: has joined #ruby
[02:41:14] Asher: has joined #ruby
[02:44:38] cabotto: has joined #ruby
[02:45:25] RawphullCawpter: okay, but all I did was run gem install, and it managed to install a bunch of other gems first, so I'm not sure what to do about this. Particularly not the error in the C code
[02:46:08] RawphullCawpter: I'm not even sure where it's seeing .git since that's not in the directory I was in when I ran the command
[02:47:52] RawphullCawpter: the "current directory" doesn't have it, either
[02:48:40] dinfuehr: has joined #ruby
[02:51:59] gary_: has joined #ruby
[02:54:59] gizmore|2: RawphullCawpter: probably some outdated software
[02:57:34] jxv: has joined #ruby
[02:57:37] cabotto: has joined #ruby
[02:57:51] kapil___: has joined #ruby
[02:59:31] gary: has joined #ruby
[03:00:33] ResidentBiscuit: has joined #ruby
[03:03:03] workmad3: has joined #ruby
[03:03:25] PresidentBiscuit: has joined #ruby
[03:09:55] cabotto: has joined #ruby
[03:12:35] Gary_B: has joined #ruby
[03:13:53] Joufflu: has joined #ruby
[03:17:37] konsolebox: has joined #ruby
[03:19:00] cabotto: has joined #ruby
[03:23:15] Gary_B: has joined #ruby
[03:26:03] cschneid: has joined #ruby
[03:26:30] codimiracle: has joined #ruby
[03:27:02] cabotto: has joined #ruby
[03:33:49] govg: has joined #ruby
[03:46:23] Joufflu: has joined #ruby
[03:48:53] Joufflu: has joined #ruby
[03:49:49] AxelAlex: has joined #ruby
[03:55:52] alfiemax: has joined #ruby
[03:56:57] cabotto: has joined #ruby
[03:58:53] Joufflu: has joined #ruby
[04:01:23] Joufflu: has joined #ruby
[04:05:30] cabotto: has joined #ruby
[04:09:17] bigblind: has joined #ruby
[04:09:58] eckhardt: has joined #ruby
[04:11:53] _cabotto: has joined #ruby
[04:16:39] cabotto: has joined #ruby
[04:19:36] safetypin: has joined #ruby
[04:19:55] cschneid: has joined #ruby
[04:21:37] alex``: has joined #ruby
[04:21:43] nowhere_man: has joined #ruby
[04:24:49] phate408: has joined #ruby
[04:25:18] trautwein: has joined #ruby
[04:28:41] darkhanb: has joined #ruby
[04:30:37] cabotto: has joined #ruby
[04:32:55] alfiemax: has joined #ruby
[04:36:35] andydna: has joined #ruby
[04:38:53] cabotto: has joined #ruby
[04:40:30] hndk: has joined #ruby
[04:41:57] Mudstart: has joined #ruby
[04:50:49] RawphullCawpter: has left #ruby: ("Leaving")
[04:53:02] gix: has joined #ruby
[04:53:52] Joufflu: has joined #ruby
[04:54:52] cschneid: has joined #ruby
[04:55:58] cabotto: has joined #ruby
[04:56:23] Joufflu: has joined #ruby
[05:02:32] alfiemax: has joined #ruby
[05:03:43] workmad3: has joined #ruby
[05:04:08] nadir: has joined #ruby
[05:04:56] cabotto: has joined #ruby
[05:05:11] n0m4d1c: has joined #ruby
[05:10:50] konsolebox: has joined #ruby
[05:13:25] cabotto: has joined #ruby
[05:16:58] clemens3: has joined #ruby
[05:20:46] mrush: has joined #ruby
[05:21:23] Joufflu: has joined #ruby
[05:22:15] Joufflu: has joined #ruby
[05:22:17] cabotto: has joined #ruby
[05:27:53] Joufflu: has joined #ruby
[05:28:25] Puffball: has joined #ruby
[05:29:03] Joufflu: has joined #ruby
[05:30:07] cschneid: has joined #ruby
[05:33:26] shinnya: has joined #ruby
[05:33:58] darkhanb: has joined #ruby
[05:44:03] cabotto: has joined #ruby
[05:51:58] jeffreylevesque: has joined #ruby
[05:58:53] Joufflu: has joined #ruby
[06:01:53] Joufflu: has joined #ruby
[06:04:17] gary: has joined #ruby
[06:05:06] cabotto: has joined #ruby
[06:07:22] darkhanb: has joined #ruby
[06:09:34] _cabotto: has joined #ruby
[06:11:47] amelliaa: has joined #ruby
[06:14:54] ayonkhan: has joined #ruby
[06:19:13] Asher1: has joined #ruby
[06:25:33] mtkd: has joined #ruby
[06:27:21] gary_: has joined #ruby
[06:28:31] apparition: has joined #ruby
[06:34:32] bigblind: has joined #ruby
[06:38:10] cschneid: has joined #ruby
[06:39:19] cabotto: has joined #ruby
[06:42:44] Gary_B: has joined #ruby
[06:46:00] cabotto: has joined #ruby
[06:46:30] cschneid: has joined #ruby
[06:54:20] cabotto: has joined #ruby
[07:03:17] cabotto: has joined #ruby
[07:04:27] workmad3: has joined #ruby
[07:08:22] alex``: has joined #ruby
[07:13:36] reber: has joined #ruby
[07:15:59] ayonkhan: has joined #ruby
[07:24:47] cabotto: has joined #ruby
[07:33:25] cabotto: has joined #ruby
[07:34:31] phaul: has joined #ruby
[07:53:59] someuser: has joined #ruby
[07:56:59] conta: has joined #ruby
[07:59:08] cabotto: has joined #ruby
[08:00:50] cschneid: has joined #ruby
[08:00:57] tAn: has joined #ruby
[08:05:06] KeyJoo: has joined #ruby
[08:05:24] biberu: has joined #ruby
[08:07:06] mtkd: has joined #ruby
[08:07:20] cabotto: has joined #ruby
[08:08:41] _cabotto: has joined #ruby
[08:12:07] quobo: has joined #ruby
[08:12:44] quobo: has joined #ruby
[08:12:44] quobo: has joined #ruby
[08:20:21] gary: has joined #ruby
[08:21:56] cabotto: has joined #ruby
[08:25:28] gary_: has joined #ruby
[08:27:06] tAn: has joined #ruby
[08:27:56] tAn: has joined #ruby
[08:28:47] tAn: has joined #ruby
[08:29:31] tAn: has joined #ruby
[08:31:11] cabotto: has joined #ruby
[08:31:22] Gary_B: has joined #ruby
[08:35:01] iamayam: has joined #ruby
[08:36:23] Gary_B: has joined #ruby
[08:41:35] amelliaa: has joined #ruby
[08:43:40] cabotto: has joined #ruby
[08:44:35] claudiuinberlin: has joined #ruby
[08:45:20] cschneid: has joined #ruby
[08:47:16] Dimik: has joined #ruby
[08:49:23] Gary_B: has joined #ruby
[08:59:10] xco: has joined #ruby
[09:00:39] matled: has joined #ruby
[09:01:56] bigblind: has joined #ruby
[09:02:07] VladGh_: has joined #ruby
[09:02:21] tomlukeywood: has joined #ruby
[09:03:34] iamayam: has joined #ruby
[09:04:24] xco: hi all! i see Ruby has #public_send and #send in this example what the difference between using #send and just the #hello method created? https://gist.github.com/siaw23/a7880d3e8b842985a53fd4c3691a9c8a
[09:05:12] workmad3: has joined #ruby
[09:06:36] elomatreb: #send bypasses access control/visibility, i.e. you can call private methods with #send
[09:07:31] elomatreb: The main use of these is either during testing or in places where you want to dynamically call methods
[09:08:08] xco: elomatreb: ok! :) in this case public #hello and #public_send are the same thing in my example right?
[09:08:22] tAn: has joined #ruby
[09:08:25] xco: meaning using #send is useless because #hello is public anyway?
[09:08:52] elomatreb: Unless you actually want the bypassing behavior, using public_send is the correct choice in most of the cases
[09:09:03] elomatreb: (And wanting that behavior usually indicates a deeper problem anyway)
[09:09:14] xco: ok i got confused because i saw code where they were using #public_send even when their #method was public anyway
[09:09:16] cabotto: has joined #ruby
[09:09:33] elomatreb: You can't accidentally end up calling something you shouldn't, it's just good practice
[09:10:04] xco: are you saying using #public_send is a better practice over using #hello in my example?
[09:10:29] marr: has joined #ruby
[09:11:17] xco: can i think of it this way; that i can use #public_send(:some_method) when I have :some_method both defined publicly and privately?
[09:11:38] elomatreb: You can't have a method defined publicly and privately
[09:11:47] elomatreb: The one that comes later will override
[09:12:30] tAn: has joined #ruby
[09:12:37] cschneid: has joined #ruby
[09:12:57] elomatreb: And generally you shouldn't use the send-style calling, it's for when you want to call a method dynamically (usually to avoid having to type long if-elseif chains)
[09:12:58] srt2: has joined #ruby
[09:13:29] xco: ok thank you
[09:13:43] xco: what’s “dynamic calling” anyway?
[09:14:05] srt2: Hi all, I'm having some trouble parsing a CSV in Ruby that contains commas. They're all inside double quotes (exported from LibreOffice Calc), but I still get a "CSV::MalformedCSVError: Missing or stray quote in line 3" when I try to parse them. Any ideas what I can do to fix?
[09:15:15] elomatreb: Contrived example, but imagine you want to call one of many methods at random. You could either pick an index and go through a long else-if chain, or you could put those method names as symbols into an array and use #sample to pick a random one for public_send
[09:16:42] xco: elomatreb: got it :)
[09:17:25] elomatreb: If you do complex stuff with it it's usually a sign that you're overcomplicating/over-DRYing your code
[09:17:57] xco: you’re right, the code i saw was actually over-DRYing stuff
[09:18:09] apeiros: srt2: gist a piece of csv which reproduces your error
[09:18:29] elomatreb: srt2: Are the quotes actual quotes or some high-ASCII/Unicode quotes?
[09:18:44] apeiros: srt2: usually the reason for this kind of error is invalid csv, but since you say you exported it from libreoffice, I'd actually assume the csv to be valid.
[09:18:47] gary: has joined #ruby
[09:20:06] srt2: apeiros: here it is: https://gist.github.com/anonymous/84e0002cb8df1c92a82bfe172b11c490 Interestingly, GitHub also seems to think there's an error there, but it's a direct export from LO
[09:20:12] amelliaa: has joined #ruby
[09:20:45] srt2: elomatreb: it's a proper " quote
[09:20:47] apeiros: srt2: probably because you have unquoted empty fields
[09:21:26] apeiros: oh, not empty, they wrapped…
[09:21:46] apeiros: that's directly from LO?
[09:22:02] apeiros: iirc this is not valid: `"data" ,` (whitespace after the quote)
[09:22:04] srt2: it's weird... I'm kinda tempted to try setting the text delimiter to a single quote and then manually replacing all the commas with "\," in the spreadsheet before I export it
[09:22:15] apeiros: but I'd have to read the most recent rfc again
[09:22:58] Yonk: has joined #ruby
[09:23:03] mroth: has joined #ruby
[09:23:17] lipoqil: has joined #ruby
[09:23:34] srt2: apeiros: yep, direct from LO with these settings: https://imgur.com/P92Bqw2
[09:23:41] DukeDave: has joined #ruby
[09:23:44] apeiros: yeah, removing that helps
[09:23:46] srt2: bug with calc then?
[09:24:05] apeiros: not sure. I'd have to read the csv rfc
[09:24:18] apeiros: but from the top of my head I'd have said that's not valid output.
[09:24:18] fury: has joined #ruby
[09:24:33] jwheare: has joined #ruby
[09:24:37] srt2: hmm. alrighty, thanks! I'll go get rid of the whitespace manually for now I guess
[09:24:55] apeiros: srt2: try the "always quote"
[09:25:56] srt2: that gives me this: https://gist.github.com/anonymous/4079b9ba3e992fe9fb5e34e980a247b0
[09:26:20] srt2: it's valid CSV syntax then, sure, but I can't actually use it because activerecord balks when trying to import it because there's other space characters after the header names
[09:28:00] apeiros: ok, reread the rfc, and I'd say calc is at fault here.
[09:28:04] apeiros: https://tools.ietf.org/html/rfc4180
[09:28:21] Bilge-: has joined #ruby
[09:28:50] Liothen: has joined #ruby
[09:28:51] Liothen: has joined #ruby
[09:28:58] apeiros: relevant parts: `record = field *(COMMA field)`, `field = (escaped / non-escaped)`, `escaped = DQUOTE *(TEXTDATA / COMMA / CR / LF / 2DQUOTE) DQUOTE`, `non-escaped = *TEXTDATA`, `TEXTDATA = %x20-21 / %x23-2B / %x2D-7E`
[09:29:20] apeiros: this does not allow for spaces to be around quoted data
[09:29:24] srt2: I get what libreoffice is trying to do - maintain readability and all that - but you're right, it looks like it breaks the standard
[09:29:28] srt2: I'll file a report with them
[09:29:52] apeiros: I'm curious about the result. can you keep me posted about it?
[09:30:26] srt2: Sure haha!
[09:30:31] apeiros: note: I wish ruby's csv class had a way to handle semi-broken csv like this :-/ (there's plenty)
[09:32:36] despai: has joined #ruby
[09:32:46] srt2: okay, so as it turns out, I am a massive idiot
[09:33:10] apeiros: (might help me telling others they're being massive idiots ;-p)
[09:33:24] srt2: the spreadsheet file had spaces in... I didn't think to check *smh*
[09:33:50] srt2: LO wasn't adding spaces, there were spaces in the header when the file was given to me apparently
[09:34:08] srt2: why I was given the file with spaces in the headers is now the mystery...
[09:34:15] apeiros: but you exported it from LO? so it should properly quote those fields?
[09:35:13] srt2: yeah, it doesn't quite answer the whole thing, but it answers the question of why it wasn't working properly when I forced it to quote everything
[09:35:17] apeiros: btw. srt2, the "always quote" variant seems to work fine?
[09:35:52] srt2: yeah, always quote worked fine, the thing was that there were loads of spaces littered around it, and it turns out that's the fault of the original spreadsheet, not LO haha
[09:36:22] apeiros: ok, so I'd actually still maintain that LO creates faulty csv when "always quote" is off
[09:36:29] gs: has joined #ruby
[09:36:29] claws: has joined #ruby
[09:36:29] caw______: has joined #ruby
[09:36:29] rflot: has joined #ruby
[09:36:29] JJonah: has joined #ruby
[09:36:29] adgtl: has joined #ruby
[09:36:29] shoogz: has joined #ruby
[09:36:29] Matt[m]1: has joined #ruby
[09:36:29] swein: has joined #ruby
[09:36:29] wwalker: has joined #ruby
[09:36:29] Flabbergazta: has joined #ruby
[09:36:29] lele: has joined #ruby
[09:36:29] hfp_work: has joined #ruby
[09:36:29] remix2000: has joined #ruby
[09:36:29] thinkpad: has joined #ruby
[09:36:29] yonahw: has joined #ruby
[09:36:30] RushPL: has joined #ruby
[09:36:30] aspiers: has joined #ruby
[09:36:30] chrisarcand: has joined #ruby
[09:36:30] TheBrayn: has joined #ruby
[09:36:30] yokel: has joined #ruby
[09:36:30] mikeiniowa: has joined #ruby
[09:36:30] pabs: has joined #ruby
[09:36:30] devyn: has joined #ruby
[09:36:30] camilasan: has joined #ruby
[09:36:30] heftig: has joined #ruby
[09:36:30] baweaver: has joined #ruby
[09:36:30] FifthWall: has joined #ruby
[09:36:30] jidar: has joined #ruby
[09:36:30] ren0v0: has joined #ruby
[09:36:30] jhass: has joined #ruby
[09:36:30] ahuman: has joined #ruby
[09:36:30] elomatreb: has joined #ruby
[09:36:30] err_ok: has joined #ruby
[09:36:30] Mutsuhito: has joined #ruby
[09:36:30] romain_t: has joined #ruby
[09:36:30] andywojo: has joined #ruby
[09:36:30] jabreity: has joined #ruby
[09:36:30] zleap: has joined #ruby
[09:36:30] rfv: has joined #ruby
[09:36:30] avdi: has joined #ruby
[09:36:30] lucas: has joined #ruby
[09:36:30] spectra: has joined #ruby
[09:36:30] priodev: has joined #ruby
[09:36:31] mistym: has joined #ruby
[09:36:31] contradictioned: has joined #ruby
[09:36:31] argoneus: has joined #ruby
[09:36:31] DarthGandalf: has joined #ruby
[09:36:31] pinkfloyd1911: has joined #ruby
[09:36:31] jamo: has joined #ruby
[09:36:31] jtperreault: has joined #ruby
[09:36:31] krasnus: has joined #ruby
[09:36:31] SuperTux88: has joined #ruby
[09:36:31] mitchellvanw: has joined #ruby
[09:36:31] Fire-Dragon-DoL: has joined #ruby
[09:36:31] Aloy: has joined #ruby
[09:36:31] shtirlic: has joined #ruby
[09:36:31] nchambers: has joined #ruby
[09:36:58] apeiros: btw., you can get rid of the surrounding spaces by: parsed_csv.map { |r| r.map { |c| c.strip } }
[09:37:14] gary_: has joined #ruby
[09:37:18] srt2: yeah, ta :)
[09:38:09] tAn: has joined #ruby
[09:39:45] bokayio: has joined #ruby
[09:39:57] srt2: apeiros: I dunno what the spaces were doing, but without them, the CSV is suddenly valid...
[09:40:08] srt2: even without the quote everything option on
[09:42:02] mtkd: has joined #ruby
[09:42:35] aguestuser: has joined #ruby
[09:46:23] apeiros: srt2: makes sense. as said, IMO a bug in calc. it shouldn't matter what data you have in your sheet. it should generate valid csv.
[09:46:44] cabotto: has joined #ruby
[09:47:31] bigblind: has joined #ruby
[09:52:10] cschneid: has joined #ruby
[09:55:42] n008f4g_: has joined #ruby
[09:59:40] Asher: has joined #ruby
[10:00:18] shoogz: has joined #ruby
[10:00:55] swein: has joined #ruby
[10:03:30] hogetaro: has joined #ruby
[10:05:18] xco: has joined #ruby
[10:07:15] sleetdrop: has joined #ruby
[10:09:19] remix2000: has joined #ruby
[10:10:48] remix2000: has joined #ruby
[10:11:55] alfiemax: has joined #ruby
[10:13:54] gary: has joined #ruby
[10:17:54] alfiemax: has joined #ruby
[10:21:16] cabotto: has joined #ruby
[10:21:52] \void: has joined #ruby
[10:32:51] govg: has joined #ruby
[10:36:05] cschneid: has joined #ruby
[10:37:37] despai: has joined #ruby
[10:39:23] GodFather: has joined #ruby
[10:39:54] schneider-: has joined #ruby
[10:40:48] govg_: has joined #ruby
[10:50:46] gary_: has joined #ruby
[10:55:43] sameerynho: has joined #ruby
[10:58:20] InfinityFye: has joined #ruby
[10:58:30] despai: has joined #ruby
[10:58:36] KeyJoo: has joined #ruby
[11:07:47] DoubleMalt: has joined #ruby
[11:07:49] Gary_B: has joined #ruby
[11:08:31] mikecmpbll: has joined #ruby
[11:16:38] willmichael: has joined #ruby
[11:16:49] gary: has joined #ruby
[11:17:13] phaul: has joined #ruby
[11:23:58] someuser: has joined #ruby
[11:31:46] cabotto: has joined #ruby
[11:33:26] Gary_B: has joined #ruby
[11:34:08] TinkerTyper: has joined #ruby
[11:35:48] apparition: has joined #ruby
[11:40:21] tAn: has joined #ruby
[11:42:08] Gary_B: has joined #ruby
[11:43:56] dminuoso: apeiros: Dont you wish you could write (map * map)[&:strip, parsed_cvs] instead?
[11:44:19] dminuoso: What Ruby friendly syntax would you like to be able to use here.
[11:44:48] cschneid: has joined #ruby
[11:46:34] InfinityFye: has joined #ruby
[11:49:18] someuser: has joined #ruby
[11:50:16] dminuoso: >> fix = -> f { -> y { y[y] }[->x { f[-> v { x[x][v] }] }] }; d = -> q { q * 2 }; fix[-> f, (x, *xs) { xs.empty? ? [d[x]] : ([d[x]] + f[xs])}.curry][[1,2,3]]
[11:50:17] ruby[bot]: dminuoso: # => [2, 4, 6] (https://eval.in/962643)
[11:51:51] despai: has joined #ruby
[11:51:59] dminuoso: >> fix = -> f { -> y { y[y] }[->x { f[-> v { x[x][v] }] }] }; d = -> q { q * 2 }; fix[-> f, (x, *xs) { x.nil? ? [] : ([d[x]] + f[xs])}.curry][[1,2,3]]
[11:52:00] ruby[bot]: dminuoso: # => [2, 4, 6] (https://eval.in/962644)
[11:57:45] n0m4d1c_: has joined #ruby
[11:59:06] gary_: has joined #ruby
[11:59:50] tAn: has joined #ruby
[12:01:00] WA9ACE: has joined #ruby
[12:13:29] mtkd: has joined #ruby
[12:14:43] alfiemax: has joined #ruby
[12:15:42] AJA4350: has joined #ruby
[12:16:00] mikecmpbll: has joined #ruby
[12:17:41] jamesaxl: has joined #ruby
[12:17:54] iamayam: has joined #ruby
[12:18:39] cats: has joined #ruby
[12:20:25] gary: has joined #ruby
[12:24:52] marr: has joined #ruby
[12:34:03] desperek: has joined #ruby
[12:35:25] rrutkowski: has joined #ruby
[12:37:25] Gary_B: has joined #ruby
[12:38:52] \void: has joined #ruby
[12:41:31] tAn: has joined #ruby
[12:42:01] bigblind: has joined #ruby
[12:45:51] tevio: has joined #ruby
[12:48:23] nowhereman_: has joined #ruby
[12:49:21] Barrt: has joined #ruby
[12:51:01] WA9ACE: has joined #ruby
[12:54:30] gary_: has joined #ruby
[12:55:27] SynSynack: has joined #ruby
[13:06:10] meadmoon: has joined #ruby
[13:06:35] workmad3: has joined #ruby
[13:09:24] amatas: has joined #ruby
[13:10:26] duderonomy: has joined #ruby
[13:10:55] karapetyan: has joined #ruby
[13:11:31] Gary_B: has joined #ruby
[13:19:32] eroux: has joined #ruby
[13:22:00] alfiemax: has joined #ruby
[13:25:40] cschneid: has joined #ruby
[13:28:07] willmichael: has joined #ruby
[13:33:07] Hanmac: has joined #ruby
[13:33:53] n0m4d1c: has joined #ruby
[13:34:17] trautwein: has joined #ruby
[13:34:43] quobo: has joined #ruby
[13:37:04] IanMalcolm: has joined #ruby
[13:37:11] gary: has joined #ruby
[13:58:27] gary_: has joined #ruby
[14:01:51] cschneid: has joined #ruby
[14:07:26] John_Ivan: has joined #ruby
[14:07:26] John_Ivan: has joined #ruby
[14:11:39] despai: has joined #ruby
[14:19:50] gary: has joined #ruby
[14:23:57] herbmillerjr: has joined #ruby
[14:26:35] envex: has joined #ruby
[14:28:18] Gary_B: has joined #ruby
[14:29:24] shakes: has joined #ruby
[14:36:09] mrBen2k2k2k: has joined #ruby
[14:42:32] cschneid: has joined #ruby
[14:45:23] Gary_B: has joined #ruby
[14:52:19] govg: has joined #ruby
[15:02:42] gary_: has joined #ruby
[15:04:42] Fusselgesicht: has joined #ruby
[15:07:19] workmad3: has joined #ruby
[15:08:53] shakes: has joined #ruby
[15:13:27] claudiuinberlin: has joined #ruby
[15:19:33] gary: has joined #ruby
[15:20:35] mtkd: has joined #ruby
[15:23:18] cschneid: has joined #ruby
[15:23:59] nowhere_man: has joined #ruby
[15:25:40] ResidentBiscuit: has joined #ruby
[15:26:02] rrutkowski: has joined #ruby
[15:26:06] yonahw: has joined #ruby
[15:32:17] bigblind: has joined #ruby
[15:34:35] abramovich: has joined #ruby
[15:36:28] Gary_B: has joined #ruby
[15:37:41] minimalism: has joined #ruby
[15:42:11] herbmillerjr: has joined #ruby
[15:45:39] Gary_B: has joined #ruby
[15:45:40] goatish: has joined #ruby
[15:47:17] Rutix: has joined #ruby
[15:47:17] Rutix: has joined #ruby
[15:49:25] dionysus69: has joined #ruby
[15:50:36] Mike11: has joined #ruby
[15:51:22] Azure: has joined #ruby
[15:54:49] rippa: has joined #ruby
[15:58:17] gary_: has joined #ruby
[15:58:28] cagmz: has joined #ruby
[16:04:51] cschneid: has joined #ruby
[16:06:44] Gary_B: has joined #ruby
[16:09:57] A124: has joined #ruby
[16:10:45] A124: has joined #ruby
[16:16:27] cdg: has joined #ruby
[16:17:07] conta: has joined #ruby
[16:17:45] ruby[bot]: -bbb *!*@lns-bzn-27-82-248-18-21.adsl.proxad.net$#ruby-banned *!*@109.102.200.202$#ruby-banned *!*@host184-217-static.11-188-b.business.telecomitalia.it$#ruby-banned
[16:19:55] gary: has joined #ruby
[16:20:00] ogres: has joined #ruby
[16:20:06] motstgo: has joined #ruby
[16:20:13] LJNZXWZMB: has joined #ruby
[16:28:25] Gary_B: has joined #ruby
[16:35:33] ltem: has joined #ruby
[16:37:24] schneider: has joined #ruby
[16:41:44] cschneid: has joined #ruby
[16:46:50] ResidentBiscuit: has joined #ruby
[16:47:06] Gary_B: has joined #ruby
[16:48:21] garyserj: Is there a command line ERB?
[16:48:41] garyserj: i've heard of one but if I look for an erb executable I can't see it
[16:49:10] n0m4d1c: has joined #ruby
[16:49:55] tomphp: has joined #ruby
[16:52:45] ruby[bot]: -b *!*@autogas.iasi.rdsnet.ro$#ruby-banned
[16:55:02] gary_: has joined #ruby
[16:57:12] tomlukeywood: has joined #ruby
[16:58:53] herbmillerjr: has joined #ruby
[16:59:59] raynold: has joined #ruby
[17:01:29] ResidentBiscuit: has joined #ruby
[17:01:34] n0m4d1c: has joined #ruby
[17:03:08] rahul_bajaj: has joined #ruby
[17:03:35] tomphp: has joined #ruby
[17:06:08] rabajaj: has joined #ruby
[17:07:50] KeyJoo: has joined #ruby
[17:07:59] workmad3: has joined #ruby
[17:09:11] troys: has joined #ruby
[17:12:04] Gary_B: has joined #ruby
[17:15:14] mikecmpbll: has joined #ruby
[17:21:41] cschneid: has joined #ruby
[17:25:43] mtkd: has joined #ruby
[17:27:45] dmitriy_: has joined #ruby
[17:29:06] gary: has joined #ruby
[17:32:21] char_var[buffer]: has joined #ruby
[17:35:58] dviola: has joined #ruby
[17:35:59] chat: has joined #ruby
[17:39:33] chromis: has joined #ruby
[17:44:40] milardovich: has joined #ruby
[17:46:17] bigblind: has joined #ruby
[17:49:06] willmichael: has joined #ruby
[17:50:35] karapetyan: has joined #ruby
[17:55:05] willmichael: has joined #ruby
[18:01:16] Blackraider: has joined #ruby
[18:01:43] gary_: has joined #ruby
[18:03:35] rahul_bajaj: has joined #ruby
[18:04:33] Miron: has joined #ruby
[18:04:53] milardovich: has joined #ruby
[18:06:36] ResidentBiscuit: has joined #ruby
[18:06:50] rabajaj: has joined #ruby
[18:08:16] Gary_B: has joined #ruby
[18:08:38] hndk: has joined #ruby
[18:13:52] Blackraider: has joined #ruby
[18:17:55] mtkd: has joined #ruby
[18:19:07] chat: has joined #ruby
[18:30:50] gary: has joined #ruby
[18:33:05] orbyt_: has joined #ruby
[18:35:43] eightlimbed: has joined #ruby
[18:36:42] tAn: has joined #ruby
[18:36:58] mcr: has joined #ruby
[18:38:39] Gary_B: has joined #ruby
[18:39:45] ruby[bot]: -bb *!*@p50939665.dip0.t-ipconnect.de$#ruby-banned *!*@152.red-79-153-176.dynamicip.rima-tde.net$#ruby-banned
[18:44:41] marr: has joined #ruby
[18:44:42] tomlukeywood: has left #ruby: ()
[18:46:54] karapetyan: has joined #ruby
[18:48:41] Gary_B: has joined #ruby
[18:49:09] willmichael: has joined #ruby
[18:49:56] eightlimbed: has joined #ruby
[18:50:09] kapil___: has joined #ruby
[18:50:23] gizmore: has joined #ruby
[18:54:58] speakingcode: has joined #ruby
[18:56:33] despai: has joined #ruby
[18:59:48] milardovich: has joined #ruby
[19:00:33] schneider: ACTION https://www.facebook.com/groups/708874352499611/permalink/1664264323627271/
[19:03:08] rahul_bajaj: has joined #ruby
[19:06:18] rabajaj: has joined #ruby
[19:08:24] gary_: has joined #ruby
[19:08:40] willmichael: has joined #ruby
[19:08:45] workmad3: has joined #ruby
[19:09:36] KeyJoo: has joined #ruby
[19:09:48] havenwood: ?offtopic schneider
[19:09:48] ruby[bot]: schneider: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[19:10:28] schneider: sorry, wrong command, ignore it
[19:12:37] schneider: ACTION Undernet .
[19:15:58] bigblind: has joined #ruby
[19:16:33] nofxx: has joined #ruby
[19:16:35] duderonomy: has joined #ruby
[19:17:43] cdg: has joined #ruby
[19:18:52] tevio: has joined #ruby
[19:22:02] white_lilies: has joined #ruby
[19:24:07] Exuma: has joined #ruby
[19:35:12] gary: has joined #ruby
[19:36:13] karapetyan: has joined #ruby
[19:47:26] despai: has joined #ruby
[19:48:23] Gary_B: has joined #ruby
[19:49:31] karapetyan: has joined #ruby
[19:50:31] someuser: has joined #ruby
[19:53:11] tomphp: has joined #ruby
[19:57:34] willmichael: has joined #ruby
[20:05:19] quobo: has joined #ruby
[20:07:46] milardovich: has joined #ruby
[20:08:43] karapetyan: has joined #ruby
[20:12:25] John_Ivan: has joined #ruby
[20:12:25] John_Ivan: has joined #ruby
[20:14:41] alfiemax: has joined #ruby
[20:15:15] mtkd: has joined #ruby
[20:16:46] gary_: has joined #ruby
[20:18:48] karapetyan: has joined #ruby
[20:19:37] rabajaj: has joined #ruby
[20:19:40] InfinityFye: has joined #ruby
[20:20:11] garyserj: If I have a statement for x in [1,2,3] do ....... end Is it possible to replace do and end with { and } ?
[20:20:24] garyserj: I get an error when I try.. I can't see if it's possible to use curly braces with a for, and how
[20:21:41] alfiemax: garyserj: you'd have to use `each` for that
[20:24:34] tomphp: has joined #ruby
[20:26:59] karapetyan: has joined #ruby
[20:30:34] milardovich: has joined #ruby
[20:30:59] milardovich: has joined #ruby
[20:32:36] Vapez: has joined #ruby
[20:40:20] weaksauce: garyserj no but there is a simple class you can use to use erb from a script
[20:40:30] weaksauce: https://ruby-doc.org/stdlib-2.5.0/libdoc/erb/rdoc/ERB.html
[20:42:02] bigblind: has joined #ruby
[20:42:18] jamesaxl: has joined #ruby
[20:43:03] AxelAlex: has joined #ruby
[20:43:03] John_Ivan: has joined #ruby
[20:43:23] despai: has joined #ruby
[20:44:10] dmitriy_: has joined #ruby
[20:44:44] mcr: has joined #ruby
[20:45:44] gary: has joined #ruby
[20:49:02] AxelAlex: has joined #ruby
[20:52:25] Gary_B: has joined #ruby
[20:53:08] n0m4d1c: has joined #ruby
[20:54:01] InfinityFye: has joined #ruby
[20:58:17] texs_: has joined #ruby
[21:00:38] someuser: has joined #ruby
[21:06:42] AxelAlex: has joined #ruby
[21:07:53] cthulchu_: has joined #ruby
[21:09:25] workmad3: has joined #ruby
[21:10:12] AxelAlex: has joined #ruby
[21:15:36] willmichael: has joined #ruby
[21:16:48] willmichael: has joined #ruby
[21:24:05] gary: has joined #ruby
[21:26:11] nowhere_man: has joined #ruby
[21:33:38] InfinityFye: has joined #ruby
[21:42:05] clemens3: has joined #ruby
[21:47:40] gary_: has joined #ruby
[21:49:21] jeffreylevesque: has joined #ruby
[21:51:34] clemens3: has joined #ruby
[21:53:41] karapetyan: has joined #ruby
[21:56:42] milardovich: has joined #ruby
[21:58:39] Gary_B: has joined #ruby
[22:00:40] white_lilies: has joined #ruby
[22:03:52] bigblind: has joined #ruby
[22:12:56] Gary_B: has joined #ruby
[22:14:58] cdg: has joined #ruby
[22:16:38] marr: has joined #ruby
[22:20:25] mtkd: has joined #ruby
[22:25:26] karapetyan: has joined #ruby
[22:25:32] gary: has joined #ruby
[22:31:32] willmichael: has joined #ruby
[22:41:48] darkhanb: has joined #ruby
[22:44:01] zapata: has joined #ruby
[22:44:31] bl4ckn1nj4: has joined #ruby
[22:48:27] gary_: has joined #ruby
[22:49:36] lupine: has joined #ruby
[22:50:45] karapetyan: has joined #ruby
[22:58:30] jerikl: has joined #ruby
[22:58:35] schneider: has joined #ruby
[22:59:16] mcr: has joined #ruby
[23:02:42] karapetyan: has joined #ruby
[23:06:29] Gary_B: has joined #ruby
[23:09:42] karapetyan: has joined #ruby
[23:10:08] workmad3: has joined #ruby
[23:13:55] white_lilies: has joined #ruby
[23:15:20] Gary_B: has joined #ruby
[23:20:06] gix-: has joined #ruby
[23:20:24] white_lilies: has joined #ruby
[23:20:54] agent_white: has joined #ruby
[23:26:40] gary_: has joined #ruby
[23:26:40] white_lilies: has joined #ruby
[23:30:26] Dimik: has joined #ruby
[23:30:56] bigblind: has joined #ruby
[23:35:45] mkvrick: has joined #ruby
[23:37:19] orbyt_: has joined #ruby
[23:50:12] maesitos: has joined #ruby
[23:50:38] maesitos: Could anybody tell me what's wrong with this line?
[23:50:40] maesitos: super.create!(reason: "sale",payable_type: "Payment" , price: "200" , currency: "EUR",crypto: :bch)
[23:51:09] maesitos: I get: " syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' " and it's driving me nuts
[23:56:34] ResidentBiscuit: has joined #ruby
[23:56:49] havenwood: maesitos: show more code
[23:57:09] shinnya: has joined #ruby
[23:57:21] mkvrick: ...gets the gdb ready ...
[23:57:45] maesitos: https://pastebin.com/raw/sBX7UJfP
[23:57:45] ruby[bot]: maesitos: as I told you already, please use https://gist.github.com
[23:58:10] maesitos: ruby[bot]: pastebin raw is ok man
[23:58:11] milardovich: has joined #ruby
[23:58:17] white_lilies: has joined #ruby