« Back to channel list

#ruby - 06 August 2017

« Back 1 day Forward 1 day »
[00:00:09] apeiros: what are you trying to achieve?
[00:00:25] airdisa: has joined #ruby
[00:00:34] impermanence: apeiros: hey. I'm writing that now.
[00:00:37] jrabe: has joined #ruby
[00:02:21] impermanence: apeiros: I have a lambda. say exp = -> (a, b) { a**b } and a method that takes a lambda. say def my_method(m) ; my_method needs to return a new lambda like the original, but with the arguments flipped
[00:03:07] ascarter_: has joined #ruby
[00:03:52] cagomez: has joined #ruby
[00:04:40] apeiros: def foo; ->(a,b) { exp(b, a) }; end
[00:04:47] apeiros: assuming foo has somehow access to exp
[00:05:11] apeiros: though you're still very xy
[00:06:32] impermanence: apeiros: "very xy" ?
[00:06:37] apeiros: ?xy impermanence
[00:06:37] ruby[bot]: impermanence: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[00:06:56] apeiros: you told me exactly *zero* about your actual problem.
[00:07:09] impermanence: apeiros: oh, that was not my intention :)
[00:07:34] apeiros: I know. xy people often don't realize. they think "I reduced the problem". but instead, they substitute.
[00:08:22] cagomez: has joined #ruby
[00:08:36] impermanence: apeiros: one sec, being specific.
[00:17:23] impermanence: apeiros: https://gist.github.com/jonassteinberg1/47578c67d83345605f3eda95c000640d
[00:20:53] __Yiota: has joined #ruby
[00:23:07] apeiros: that does not really tell me anything more than you already told me
[00:23:11] ascarter: has joined #ruby
[00:23:46] impermanence: apeiros: I can be even more specific.
[00:25:14] matthewd: impermanence: I think you're being *too* specific -- the question isn't for more clarity of what you want this method to do, but *why* you want it
[00:25:43] impermanence: matthewd: oh, okay.
[00:26:00] apeiros: I'd actually say your gist did not add/increase specifity.
[00:26:10] apeiros: it added examples.
[00:26:59] impermanence: apeiros: are you wanting to know what problem I am trying to solve?
[00:27:07] apeiros: "I want to fetch some water" - "please tell me what problem you want to solve by fetching water" - "I want to fetch water with a bucket"
[00:27:54] apeiros: yes. I thought I'd even used those very words. but doesn't seem I did.
[00:30:03] impermanence: apeiros: no problem. I am trying to solve an exercise and am being asked to write a method that takes a lambda which itself takes two arguments, returns a new lambda like the original but with the two arguments flipped.
[00:31:11] apeiros: oh, homework
[00:31:17] matthewd: Right, so that's particularly important information, because it'd rather defeat the point of the exercise if someone accidentally just gave you the solution
[00:31:56] cadillac_: has joined #ruby
[00:32:03] impermanence: that's why I led off by asking if I could access lambda parameters from inside a function that takes a lambda is its one argument.
[00:32:49] matthewd: So: no, but you don't need to
[00:33:19] impermanence: apeiros said that. at that point I started listening ;)
[00:37:58] impermanence: matthewd: -> (a,b) { f(b, a) }
[00:38:11] digitalnomad: has joined #ruby
[00:38:16] impermanence: I began working on this based on an earlier example from apeiros but
[00:38:38] impermanence: pry is throwing undef meth f
[00:38:57] matthewd: Presumably because f isn't a method
[00:39:22] `derpy: http://ruby-doc.org/core-2.4.1/Proc.html
[00:39:27] baweaver: How does one call a proc?
[00:39:33] baweaver: hint: not just with ()
[00:43:06] baweaver: >> lambda = -> a,b { a + b }; lambda(1,2)
[00:43:07] ruby[bot]: baweaver: # => wrong number of arguments (given 2, expected 0) (ArgumentError) ...check link for more (https://eval.in/841978)
[00:43:13] impermanence: baweaver: ah, that makes sense.
[00:43:20] baweaver: ...ignore my names there
[00:43:25] impermanence: baweaver: yes, I see now.
[00:43:29] baweaver: >> add = -> a,b { a + b }; add(1,2)
[00:43:30] ruby[bot]: baweaver: # => undefined method `add' for main:Object (NoMethodError) ...check link for more (https://eval.in/841979)
[00:43:34] baweaver: there we go
[00:43:48] apeiros: ACTION puts up a gofundme to buy baweaver a dot
[00:43:53] impermanence: there we go :)
[00:44:17] baweaver: apeiros: Oh I know. I was making a point.
[00:44:27] baweaver: and it was received
[00:44:28] mjolnird: has joined #ruby
[00:44:51] baweaver: Admittedly I always screw that one up myself and I'm still not fond that you can't just call add(1,2)
[00:44:59] Radar: Elixir has the same thing
[00:45:11] impermanence: my understanding is that the dot operator access is new as of 2.4?
[00:45:22] baweaver: 1.9 or before somewhere.
[00:45:36] baweaver: but for all intents and purposes it's in modern ruby versions is the point there
[00:45:41] Radar: At least 1.9.3
[00:45:53] Radar: I just tried it locally and it works on 1.9.3
[00:45:54] baweaver: 1.9.2 -> 1.9.3 was odd
[00:46:40] apeiros: not before 1.9
[00:46:59] apeiros: and yes, lets pretend 1.9.0-1.9.2 didn't happen.
[00:47:29] baweaver: Now if you really want to have fun with Lambdas read Raganwald's books and blog posts. Particularly: Kestrels, Quirky Birds, and Hopeless Egocentricity.
[00:47:49] Radar: o .() and calling Procs without #call/#[] <- from the 1.9.1 changelogs:http://svn.ruby-lang.org/repos/ruby/tags/v1_9_1_0/NEWS
[00:48:34] gigetoo: has joined #ruby
[00:48:54] baweaver: impermanence: darker times
[00:48:57] baweaver: uncivilized times
[00:49:05] baweaver: we do not talk about them
[00:51:35] impermanence: wow, the raganwald books are impressive.
[00:52:32] apeiros: impermanence: those updates had weird braking changes. and 1.9.0 was officially never for production.
[00:53:05] impermanence: apeiros: braking changes?
[00:53:34] apeiros: impermanence: yes. it stopped everything :o)
[00:53:44] apeiros: *breaking, oc
[01:07:56] agent_white: has joined #ruby
[01:11:47] ncthom91: has joined #ruby
[01:22:57] rvca: has joined #ruby
[01:25:50] levifig: has joined #ruby
[01:27:42] nertzy: has joined #ruby
[01:29:36] gizmore: has joined #ruby
[01:29:56] digitalnomad: has joined #ruby
[01:33:24] ascarter: has joined #ruby
[01:37:51] ahrs: has joined #ruby
[01:37:55] brent__: has joined #ruby
[01:37:57] hutch34: has joined #ruby
[01:38:39] brent__: has joined #ruby
[01:43:38] charliesome: has joined #ruby
[01:52:49] FahmeF: has joined #ruby
[01:57:55] rvca: has joined #ruby
[01:58:25] rapha: YAY! , my Swiss keyboard and I mean
[01:59:35] rapha: eam: apeiros: this is the result of the stuff I asked questions about earlier. https://github.com/sixtyfive/watchsys/blob/master/watchsys ... I'd be happy about criticism :)
[02:06:33] ecuanaso: has joined #ruby
[02:17:06] kobain: has joined #ruby
[02:18:49] growp: has joined #ruby
[02:18:55] growp: how do you split on regex?
[02:20:06] growp: like: string = ("John - Doe - John_Record.rb")
[02:20:35] growp: i want string.split to #=> ["John", "Doe", "John_Record"]
[02:21:32] Bhootrk_: has joined #ruby
[02:21:42] ascarter: has joined #ruby
[02:22:30] cagomez: has joined #ruby
[02:24:12] hndk: has joined #ruby
[02:26:14] rapha: string.split /\ -\ /
[02:28:51] growp: rapha that will return what I'm not looking for
[02:29:09] growp: that will have "John_Record.rb" as the third element in the string array
[02:29:42] jeffreylevesque: has joined #ruby
[02:47:07] cschneid_: has joined #ruby
[02:48:25] hutch34: has joined #ruby
[02:56:18] AnoHito: has joined #ruby
[03:00:10] cadillac_: has joined #ruby
[03:03:35] DTZUZO: has joined #ruby
[03:09:06] hutch34: has joined #ruby
[03:19:49] postmodern: has joined #ruby
[03:28:38] patr0clus: has joined #ruby
[03:29:42] hutch34: has joined #ruby
[03:33:20] KanKava: has joined #ruby
[03:36:47] CrazyEddy: has joined #ruby
[03:43:30] jinie_: has joined #ruby
[03:45:14] gix: has joined #ruby
[03:50:20] hutch34: has joined #ruby
[03:51:42] impermanence: has joined #ruby
[03:51:56] patr0clus: has joined #ruby
[03:54:09] sleepee: has joined #ruby
[03:54:48] t-recx: has joined #ruby
[03:57:19] chouhoulis: has joined #ruby
[04:00:12] AnoHito: has joined #ruby
[04:02:57] segy_: has joined #ruby
[04:03:18] AnoHito: has joined #ruby
[04:04:08] AnoHito: has joined #ruby
[04:04:20] sunya7a_: has joined #ruby
[04:05:19] segy-: has joined #ruby
[04:05:54] AnoHito: has joined #ruby
[04:08:21] chouhoulis: has joined #ruby
[04:09:35] segy: has joined #ruby
[04:10:53] hutch34: has joined #ruby
[04:11:25] opekktar: has joined #ruby
[04:12:33] leandrobighetti: has joined #ruby
[04:12:59] ascarter: has joined #ruby
[04:13:06] segy_: has joined #ruby
[04:13:21] __Yiota: has joined #ruby
[04:19:54] AxelAlex: has joined #ruby
[04:22:15] chouhoulis: has joined #ruby
[04:27:54] Yacker: has joined #ruby
[04:30:34] opekktar: has joined #ruby
[04:30:43] hutch34: has joined #ruby
[04:42:40] naprimer: has joined #ruby
[04:44:29] Ryzokuken: has joined #ruby
[04:47:26] opekktar: has joined #ruby
[04:56:27] duderonomy: has joined #ruby
[04:56:42] acalycine: has joined #ruby
[04:56:42] acalycine: has joined #ruby
[05:04:47] balazs: has joined #ruby
[05:05:20] opekktar: has joined #ruby
[05:09:35] digitalnomad: has joined #ruby
[05:11:02] opekktar: has joined #ruby
[05:12:50] hutch34: has joined #ruby
[05:13:03] duderono_: has joined #ruby
[05:16:19] andrzejku: has joined #ruby
[05:16:50] acalycine: has joined #ruby
[05:16:50] acalycine: has joined #ruby
[05:18:00] opekktar: has joined #ruby
[05:21:01] ascarter: has joined #ruby
[05:21:13] govg: has joined #ruby
[05:21:51] opekktar: has joined #ruby
[05:27:09] leandrobighetti: has joined #ruby
[05:33:32] hutch34: has joined #ruby
[05:36:20] rvca: has joined #ruby
[05:39:00] jphase: has joined #ruby
[05:39:58] duderonomy: has joined #ruby
[05:44:36] digitalnomad: has joined #ruby
[05:48:08] duderono_: has joined #ruby
[05:48:52] rabajaj: has joined #ruby
[05:48:55] high_fiver: has joined #ruby
[05:54:04] hutch34: has joined #ruby
[06:01:40] TomyLobo3: has joined #ruby
[06:03:08] Ryzokuken: has joined #ruby
[06:03:28] beauby: has joined #ruby
[06:07:52] nofxxxx: has joined #ruby
[06:10:25] andrzejku: has joined #ruby
[06:14:40] hutch34: has joined #ruby
[06:16:16] acalycine: has joined #ruby
[06:18:22] Yacker: has joined #ruby
[06:23:24] alex``: has joined #ruby
[06:24:43] __Yiota: has joined #ruby
[06:26:13] ascarter: has joined #ruby
[06:35:20] hutch34: has joined #ruby
[06:41:32] mim1k: has joined #ruby
[06:48:52] __Yiota: has joined #ruby
[06:49:00] Dimik: has joined #ruby
[06:54:14] brent__: has joined #ruby
[06:55:56] hutch34: has joined #ruby
[06:56:53] xall: has joined #ruby
[07:00:00] mim1k: has joined #ruby
[07:05:19] vuoto: has joined #ruby
[07:10:19] vuoto: has joined #ruby
[07:10:45] scrooloose: has joined #ruby
[07:14:47] alex``: has joined #ruby
[07:18:28] dionysus69: has joined #ruby
[07:20:46] rapha: growp: So change the regex accordingly.
[07:20:52] rapha: Oh. Gone.
[07:24:12] _whitelogger: has joined #ruby
[07:24:14] yabbes: has joined #ruby
[07:27:10] andrzejku: has joined #ruby
[07:28:33] conta: has joined #ruby
[07:32:46] ascarter: has joined #ruby
[07:34:01] antgel: has joined #ruby
[07:34:20] solrize: has joined #ruby
[07:34:31] herbmillerjr: has joined #ruby
[07:34:38] solrize: has joined #ruby
[07:37:17] hutch34: has joined #ruby
[07:42:40] KeyJoo: has joined #ruby
[07:52:35] djbkd: has joined #ruby
[07:58:42] FahmeF: has joined #ruby
[08:01:22] _main_: has joined #ruby
[08:01:47] VladGh_: has joined #ruby
[08:02:26] _main_: has joined #ruby
[08:04:04] hurricanehrndz: has joined #ruby
[08:04:28] romain_t: has joined #ruby
[08:08:05] djbkd: has joined #ruby
[08:10:42] vuoto: has joined #ruby
[08:12:07] mjolnird: has joined #ruby
[08:12:51] millerti: has joined #ruby
[08:13:02] hutch34: has joined #ruby
[08:21:46] high_fiver: has joined #ruby
[08:28:12] dcunit3d: has joined #ruby
[08:37:58] ascarter: has joined #ruby
[08:42:45] lexruee: has joined #ruby
[08:43:17] mim1k: has joined #ruby
[08:48:57] hutch34: has joined #ruby
[08:53:50] ajnulo: has joined #ruby
[08:59:02] lxsameer: has joined #ruby
[08:59:50] ledestin: has joined #ruby
[09:00:33] marr: has joined #ruby
[09:09:09] djbkd: has joined #ruby
[09:14:24] vuoto: has joined #ruby
[09:17:23] vuoto: has joined #ruby
[09:22:13] vindvaki: has joined #ruby
[09:24:40] JyZyXEL: has joined #ruby
[09:24:47] JyZyXEL: bash_to_zsh_history.rb:18:in `split': invalid byte sequence in UTF-8 (ArgumentError)
[09:24:55] hutch34: has joined #ruby
[09:25:13] JyZyXEL: https://gist.github.com/goyalankit/a1c88bfc69107f93cda1
[09:27:14] apeiros: JyZyXEL: is there a question in this somewhere?
[09:27:41] JyZyXEL: the error makes no sense to me
[09:28:06] apeiros: your file contains data which is not valid utf-8
[09:28:13] apeiros: you tell ruby to read and treat it as utf-8
[09:28:19] apeiros: and that doesn't work
[09:28:33] apeiros: you know what utf-8 is?
[09:29:21] JyZyXEL: i guess my bash_history isn't UTF-8 then
[09:29:47] apeiros: you don't have to guess. that's what ruby tells you and what I just told you :)
[09:29:56] JyZyXEL: but i also didn't see anywhere that it would need to be!
[09:30:29] apeiros: newer rubies default to utf-8 unless your env specifically states something else.
[09:30:39] apeiros: you have to tell ruby if you want to treat your files as e.g. binary.
[09:31:16] JyZyXEL: .bash_history: ISO-8859 text, with very long lines, .zsh_history: Non-ISO extended-ASCII text
[09:31:35] JyZyXEL: oh wow, the author had no consideration that these files don't even use the same encoding
[09:32:10] apeiros: probably because that's not very likely? :)
[09:34:14] apeiros: (more likely because they didn't consider encodings at all)
[09:34:43] JyZyXEL: that's what it looks like. no wonder someone in the comments was complaining about data corruption
[09:37:37] cveron: has joined #ruby
[09:45:00] ascarter: has joined #ruby
[09:51:13] fr1eza: has joined #ruby
[09:53:16] quobo: has joined #ruby
[09:54:31] apparition47: has joined #ruby
[10:00:49] hutch34: has joined #ruby
[10:01:35] lexruee: has joined #ruby
[10:01:44] lexruee_: has joined #ruby
[10:05:13] beilabs: has joined #ruby
[10:05:30] belmoussaoui: has joined #ruby
[10:07:38] conta: has joined #ruby
[10:19:32] sagax: has joined #ruby
[10:30:11] Yacker: has joined #ruby
[10:35:38] http_GK1wmSU: has joined #ruby
[10:37:22] anas: has joined #ruby
[10:39:53] http_GK1wmSU: has left #ruby: ()
[10:42:12] kkiero: has joined #ruby
[10:43:29] melkor: has joined #ruby
[10:49:52] ascarter: has joined #ruby
[10:54:40] beilabs_: has joined #ruby
[10:54:41] brent__: has joined #ruby
[10:55:26] ctp: has joined #ruby
[10:56:38] JyZyXEL: has left #ruby: ("WeeChat 1.9")
[11:00:56] nofxxx: has joined #ruby
[11:09:22] konsolebox: anyone knows a C function that checks if a string or symbol is a valid name for a constant?
[11:09:40] http_GK1wmSU: has joined #ruby
[11:09:58] konsolebox: or a class name
[11:11:24] http_GK1wmSU: has left #ruby: ()
[11:12:51] hutch34: has joined #ruby
[11:16:02] http_GK1wmSU: has joined #ruby
[11:17:32] konsolebox: nvm. found the functions i need to examine.
[11:20:40] cagomez: has joined #ruby
[11:27:57] belmoussaoui: has joined #ruby
[11:28:44] tomphp: has joined #ruby
[11:33:20] oleo: has joined #ruby
[11:34:48] beilabs: has joined #ruby
[11:41:24] kkiero_: has joined #ruby
[11:47:07] beilabs: has joined #ruby
[11:51:12] _whitelogger: has joined #ruby
[11:51:45] mim1k: has joined #ruby
[11:54:37] charliesome: has joined #ruby
[11:58:34] ascarter: has joined #ruby
[11:59:15] http_GK1wmSU: has joined #ruby
[12:00:43] http_GK1wmSU: has left #ruby: ()
[12:04:47] beilabs_: has joined #ruby
[12:05:01] rahul_bajaj: has joined #ruby
[12:18:08] beauby: has joined #ruby
[12:21:33] Serpent7776: has joined #ruby
[12:24:58] hutch34: has joined #ruby
[12:25:42] impermanence: has joined #ruby
[12:27:02] __Yiota: has joined #ruby
[12:29:19] oleo: has joined #ruby
[12:31:47] vuoto: has joined #ruby
[12:34:14] cadillac_: has joined #ruby
[12:35:45] beauby: has joined #ruby
[12:36:40] GodFather: has joined #ruby
[12:41:59] gr33n7007h: has joined #ruby
[12:53:34] ascarter: has joined #ruby
[13:00:50] hutch34: has joined #ruby
[13:02:38] ascarter_: has joined #ruby
[13:03:48] beauby: has joined #ruby
[13:04:46] Ryzokuken: has joined #ruby
[13:07:43] opekktar: has joined #ruby
[13:08:01] dcunit3d: has joined #ruby
[13:12:50] jinie_: has joined #ruby
[13:17:51] cveron: has joined #ruby
[13:18:32] tomphp: has joined #ruby
[13:19:00] kobain: has joined #ruby
[13:19:17] rgtk: has joined #ruby
[13:19:42] chouhoulis: has joined #ruby
[13:21:21] mtkd: has joined #ruby
[13:22:23] ascarter: has joined #ruby
[13:24:24] digitalnomad: has joined #ruby
[13:24:32] rgtk: has joined #ruby
[13:25:53] Xiti`: has joined #ruby
[13:26:27] alex``: has joined #ruby
[13:26:37] sepp2k: has joined #ruby
[13:27:27] jamesaxl: has joined #ruby
[13:34:32] mim1k: has joined #ruby
[13:34:59] impermanence: has joined #ruby
[13:35:07] jamesaxl: has joined #ruby
[13:36:44] hutch34: has joined #ruby
[13:43:29] tacoboy: has joined #ruby
[13:44:05] opekktar: has joined #ruby
[13:47:36] Yacker: has joined #ruby
[13:47:51] S007: has joined #ruby
[13:48:04] BTRE: has joined #ruby
[13:54:26] brent__: has joined #ruby
[14:02:25] t-recx: has joined #ruby
[14:07:29] http_GK1wmSU: has joined #ruby
[14:07:51] ecuanaso: has joined #ruby
[14:08:28] ascarter: has joined #ruby
[14:10:17] http_GK1wmSU: has left #ruby: ()
[14:12:17] v1m: has joined #ruby
[14:12:43] hutch34: has joined #ruby
[14:14:16] bruno-: has joined #ruby
[14:19:11] leandrobighetti: has joined #ruby
[14:20:07] Ryzokuken: has joined #ruby
[14:23:04] digitalnomad: has joined #ruby
[14:30:37] pandaant: has joined #ruby
[14:31:22] mustaffa__: has joined #ruby
[14:32:46] shortdudey123: has joined #ruby
[14:35:01] mim1k: has joined #ruby
[14:40:14] rgr: has joined #ruby
[14:42:13] tom69: has left #ruby: ("WeeChat 1.9")
[14:42:41] tom69: has joined #ruby
[14:42:45] dcunit3d: has joined #ruby
[14:46:17] jgorak: has joined #ruby
[14:47:00] dcunit3d: has joined #ruby
[14:48:15] ooc: has joined #ruby
[14:49:08] jgorak: Hi all. Does anyone have a compelling reason to do assignments like "a ||= b if b" instead of just "a ||= b"?
[14:51:35] DLSteve: has joined #ruby
[14:52:36] Yacker: has joined #ruby
[14:54:19] hkdsun: has joined #ruby
[14:56:11] tAn: has joined #ruby
[14:56:41] konsolebox: it means assign a default value to a if a is not set and b is set. it kind of looks like b is an alternative default value which can be customized.
[14:57:28] jgorak: I understand the meaning of it, but I sometimes see it written with the conditional part at the end, but I don't see a difference
[14:58:01] cveron: has joined #ruby
[14:59:28] __Yiota: has joined #ruby
[14:59:30] jgorak: Wait, I just needed to say it out loud. I see the difference now. If a is nil and b is false, "a ||= b" makes a==false, but "a ||= b if b" makes a==nil
[14:59:35] konsolebox: `a ||= b` is not synonymous to `a ||= b if b` if b is `false`
[15:00:00] konsolebox: jgorak: yeah, i noticed it soon but i had to verify hence the delay of my message
[15:00:03] jgorak: Didn't consider that there's multiple falsey values
[15:00:47] cveron: has joined #ruby
[15:00:54] jgorak: Just a curiousity I had. Thanks for helping me work through it :)
[15:01:09] dcunit3d: has joined #ruby
[15:02:13] jphase: has joined #ruby
[15:03:02] chouhoulis: has joined #ruby
[15:05:34] hkdsun: has joined #ruby
[15:08:21] cveron: has joined #ruby
[15:14:19] smulverine: has joined #ruby
[15:15:02] __Yiota: has joined #ruby
[15:16:20] ascarter: has joined #ruby
[15:16:20] leandrobighetti: has joined #ruby
[15:19:55] gr33n7007h: has joined #ruby
[15:21:27] cschneid_: has joined #ruby
[15:24:59] hutch34: has joined #ruby
[15:25:07] cschneid_: has joined #ruby
[15:25:50] conta: has joined #ruby
[15:27:33] beauby: has joined #ruby
[15:28:36] ecuanaso: has joined #ruby
[15:29:10] MrBusiness: has joined #ruby
[15:30:13] InfinityFye: has joined #ruby
[15:35:45] mim1k: has joined #ruby
[15:37:36] segy: has joined #ruby
[15:38:10] hkdsun: has joined #ruby
[15:39:39] digitalnomad: has joined #ruby
[15:44:11] cveron: has joined #ruby
[15:45:14] nobitanobi: has joined #ruby
[15:46:41] fr1eza: has joined #ruby
[15:51:03] nopolitica: has joined #ruby
[15:51:39] leandrobighetti: has joined #ruby
[15:53:09] HoierM: has joined #ruby
[15:54:34] fr1eza: has joined #ruby
[15:55:05] ledestin: has joined #ruby
[15:59:56] naprimer2: has joined #ruby
[16:02:56] danieel: has joined #ruby
[16:03:15] danieel: anybody here to help me out with ruby issues for gitlabhq installation (gentoo) ?
[16:04:08] havenwood: danieel: what issues are you running into?
[16:04:18] danieel: git@work /opt/gitlabhq-9.4 $ bundle exec rake gitlab:setup RAILS_ENV=production
[16:04:19] danieel: rake aborted!
[16:04:19] danieel: LoadError: cannot load such file -- peek-mysql2
[16:05:18] danieel: had a similar issues with mysql2 package, which i managed to pass by by editing Gemfile, deleting group tag
[16:09:42] havenwood: danieel: does `bundle` succeed? what version of peek-mysql2?
[16:10:09] havenwood: basename $(bundle show peek-mysql2)
[16:10:11] danieel: havenwood: i tried to add mysql2-peek to gemfile, then it complained that its there 2x
[16:10:21] havenwood: danieel: Gist your Gemfile?
[16:10:21] danieel: so i found it was there, again in mysql group
[16:10:45] havenwood: Is it resolving to version 1.2.0?
[16:10:52] danieel: i think i miss some essential bit... it was skipping to install those
[16:11:12] danieel: i edited this:
[16:11:14] danieel: # Supported DBs
[16:11:14] danieel: #gem 'mysql2', '~> 0.3.16', group: :mysql
[16:11:14] danieel: gem 'mysql2', '~> 0.3.16'
[16:11:42] danieel: the .bundle/config contains BUNDLE_WITHOUT: "development:test:mysql:thin:memcached:postgres"
[16:11:57] danieel: the suggested: bundle install --deployment --without development test mysql
[16:12:10] danieel: does not install those mysql stuff, so i removed the group specifier
[16:12:29] danieel: what did i miss here? (i am totally new to ruby and bundle.. )
[16:13:02] kculpis: has joined #ruby
[16:15:12] havenwood: danieel: Why are you excluding all those groups with `--without`? Is that intended?
[16:15:32] danieel: it is in gitlab guide for gentoo.. i dont know exactly
[16:16:33] danieel: i did managed to pass by now for this, so now it is a question of user privileges on my sql server...
[16:17:47] havenwood: danieel: It's expected that if you `--without mysql` the :mysql group won't install.
[16:17:57] _aeris_: has joined #ruby
[16:18:07] danieel: yes, just figured out how this is supposed to work
[16:18:08] vuoto: has joined #ruby
[16:18:54] havenwood: If you'd like to remove the "remembered" ones you can `bundle config --delete without`. You can also provide withouts by env var like: BUNDLE_WITHOUT="development:test" bundle --deployment
[16:19:03] aglorei: has joined #ruby
[16:19:19] havenwood: danieel: I've got to relocate but I'm sure others are waking up / still awake. Happy coding!
[16:20:26] wrhwh: has joined #ruby
[16:23:13] ascarter: has joined #ruby
[16:24:04] __Yiota: has joined #ruby
[16:27:04] duderonomy: has joined #ruby
[16:27:55] dcunit3d: has joined #ruby
[16:28:09] rgtk: has joined #ruby
[16:28:18] yabbes: has joined #ruby
[16:28:33] jamesaxl: has joined #ruby
[16:28:36] lexruee: has joined #ruby
[16:32:51] dviola: has joined #ruby
[16:33:08] kobain: has joined #ruby
[16:34:19] rippa: has joined #ruby
[16:36:30] mim1k: has joined #ruby
[16:36:40] hutch34: has joined #ruby
[16:40:17] LiamW: has joined #ruby
[16:40:35] LiamW: so I've noticed that Kernel#` when called in a tight loop tends to create zombies
[16:40:54] LiamW: would that be a bug in ruby or in libc?
[16:42:16] LiamW: loop { Process.wait } reaps them, obviously
[16:42:40] LiamW: but they shouldn't be sticking around in the first place
[16:49:58] duderonomy: has joined #ruby
[16:51:09] nobitanobi: has joined #ruby
[16:51:09] mim1k: has joined #ruby
[16:51:42] apeiros: LiamW: might be related to finalizers and how they're non-deterministically run. i.e. it might be that the reaping happens in a finalizer, which might run "whenever"
[16:55:04] ekinmur: has joined #ruby
[16:55:43] apeiros: though, no. `` has to wait for the subprocess to terminate before it can return anyway… wouldn't make sense in a finalizer
[16:57:21] selim_: has joined #ruby
[17:00:29] tom69: has joined #ruby
[17:03:35] nobitanobi: has joined #ruby
[17:04:24] nobitanobi: has joined #ruby
[17:04:49] tom69: is there any way to compile a ruby script into an executable, or a more portable form?
[17:05:04] nobitanobi: has joined #ruby
[17:08:25] normie1: has joined #ruby
[17:09:15] mim1k: has joined #ruby
[17:10:45] melkor: has joined #ruby
[17:11:22] quobo: has joined #ruby
[17:14:34] beilabs: has joined #ruby
[17:17:51] airdisa: has joined #ruby
[17:18:47] ResidentBiscuit: has joined #ruby
[17:19:13] ch3: has joined #ruby
[17:19:20] cschneid_: has joined #ruby
[17:19:40] beilabs: has joined #ruby
[17:24:23] LiamW: apeiros: but how could it be waiting if it created a zombie?
[17:28:14] ascarter: has joined #ruby
[17:28:36] rgtk: has joined #ruby
[17:28:52] tom69: has left #ruby: ("WeeChat 1.9")
[17:39:46] _sfiguser: has joined #ruby
[17:41:29] impermanence: has joined #ruby
[17:41:56] P_R_Deltoid: has joined #ruby
[17:50:53] MarkBilk_: has joined #ruby
[17:54:04] __Yiota: has joined #ruby
[17:57:07] FahmeF: has joined #ruby
[17:57:10] melkor: has joined #ruby
[17:58:16] Joufflu: has joined #ruby
[18:06:53] mim1k: has joined #ruby
[18:13:37] eightlimbed_: has joined #ruby
[18:14:45] minimalism: has joined #ruby
[18:18:53] djbkd: has joined #ruby
[18:18:59] duderonomy: has joined #ruby
[18:21:03] |ifei5g00d: has joined #ruby
[18:28:50] Dimik: has joined #ruby
[18:31:39] http_GK1wmSU: has joined #ruby
[18:35:26] ascarter: has joined #ruby
[18:37:03] sepp2k: has joined #ruby
[18:37:28] GK1wmSU-deepbook: has joined #ruby
[18:40:15] GK1wmSU-deepbook: has left #ruby: ()
[18:40:26] digitalnomad: has joined #ruby
[18:46:06] watersoul: has joined #ruby
[18:48:00] |ifei5good: has joined #ruby
[18:49:25] swills_: has joined #ruby
[18:49:49] eightlimbed_: has joined #ruby
[18:52:55] runescape07rsps: has joined #ruby
[18:58:30] perniciouscaffei: has joined #ruby
[18:59:17] duderonomy: has joined #ruby
[19:00:44] Phate: has joined #ruby
[19:01:09] SpComb^: has joined #ruby
[19:01:09] alex```: has joined #ruby
[19:03:31] csaunders_: has joined #ruby
[19:03:47] Armand: has joined #ruby
[19:03:50] Marc-: has joined #ruby
[19:04:01] twe4ked_: has joined #ruby
[19:04:06] danieel: has left #ruby: ("Leaving")
[19:04:23] theRoUS`: has joined #ruby
[19:05:57] chloe__: has joined #ruby
[19:06:31] dysfigur-: has joined #ruby
[19:06:33] FK04: has joined #ruby
[19:06:34] Liothen-: has joined #ruby
[19:06:38] shortdudey123_: has joined #ruby
[19:06:41] Bilge-: has joined #ruby
[19:06:41] ablackack_: has joined #ruby
[19:06:42] insu: has joined #ruby
[19:06:56] LBRapid_: has joined #ruby
[19:08:11] tessi_zz: has joined #ruby
[19:08:28] vedu: has joined #ruby
[19:08:37] Nightmare: has joined #ruby
[19:08:38] Scient: has joined #ruby
[19:09:27] sonne_: has joined #ruby
[19:09:42] Klumben: has joined #ruby
[19:09:47] sinduck: has joined #ruby
[19:10:39] modin: has joined #ruby
[19:11:38] priodev: has joined #ruby
[19:12:33] rileyy: has joined #ruby
[19:12:33] ahrs_: has joined #ruby
[19:12:39] bokayio: has joined #ruby
[19:12:49] Xeago: has joined #ruby
[19:13:05] jnollette: has joined #ruby
[19:13:21] KnownSyntax: has joined #ruby
[19:13:25] justache: has joined #ruby
[19:13:25] Caius: has joined #ruby
[19:13:25] Caius: has joined #ruby
[19:13:29] manveru: has joined #ruby
[19:13:48] machty: has joined #ruby
[19:16:30] GGMethos: has joined #ruby
[19:18:50] beilabs: has joined #ruby
[19:18:50] cschneid_: has joined #ruby
[19:18:50] quobo: has joined #ruby
[19:18:50] Koshian: has joined #ruby
[19:18:50] ruby[bot]: has joined #ruby
[19:18:50] jtperreault: has joined #ruby
[19:18:50] JoL1hAHN: has joined #ruby
[19:18:50] err_ok: has joined #ruby
[19:18:50] daxroc: has joined #ruby
[19:18:50] afisher: has joined #ruby
[19:18:50] knowtheory: has joined #ruby
[19:18:50] lipoqil: has joined #ruby
[19:18:50] johnkpaul: has joined #ruby
[19:21:22] Tralin: has joined #ruby
[19:22:00] \13k: has joined #ruby
[19:23:18] joast: has joined #ruby
[19:24:07] __Yiota: has joined #ruby
[19:24:42] nobitanobi: has joined #ruby
[19:27:06] http_GK1wmSU: has joined #ruby
[19:30:31] FahmeF: has joined #ruby
[19:33:32] djbkd: has joined #ruby
[19:33:43] clemens3: has joined #ruby
[19:34:17] djbkd: has joined #ruby
[19:34:36] InfinityFye: has joined #ruby
[19:35:27] djbkd: has joined #ruby
[19:35:34] alem0lars: has joined #ruby
[19:37:27] ekinmur: has joined #ruby
[19:38:31] evlute: has joined #ruby
[19:39:17] evlute: hello, i wanna open an ipv6 socket and i'm don't know how to select AF_INET6 as Protocol.
[19:40:41] ascarter: has joined #ruby
[19:41:12] ascarter_: has joined #ruby
[19:42:24] gr33n7007h: evlute: what have you tried so far?
[19:45:47] evlute: http://ruby-doc.org/stdlib-1.9.3/libdoc/socket/rdoc/TCPServer.html
[19:46:45] evlute: maybe i have to use the socket class instead of tcpserver
[19:47:23] gusrub: has joined #ruby
[19:48:44] ekinmur: has joined #ruby
[19:50:23] tomphp: has joined #ruby
[19:50:39] gr33n7007h: evlute: are you trying to create a tcpserver?
[19:50:41] cdg: has joined #ruby
[19:54:00] TomyLobo2: has joined #ruby
[19:58:27] gusrub: has joined #ruby
[20:02:04] nobitanobi: has joined #ruby
[20:04:44] beauby: has joined #ruby
[20:06:25] grant: has joined #ruby
[20:22:08] acalycine: has joined #ruby
[20:22:08] acalycine: has joined #ruby
[20:23:29] rgtk: has joined #ruby
[20:24:40] phinxy: has joined #ruby
[20:28:16] eightlimbed_: has joined #ruby
[20:33:08] ur5us: has joined #ruby
[20:33:57] beauby: has joined #ruby
[20:36:05] GodFather: has joined #ruby
[20:37:40] aagdbl[m]: has joined #ruby
[20:44:24] opekktar: has joined #ruby
[20:45:44] ascarter: has joined #ruby
[20:46:57] velu_aon[m]: has joined #ruby
[20:46:58] Matt[m]1: has joined #ruby
[20:47:02] LiamW: apeiros: 4_500_000.times { `echo` }
[20:47:05] Tagami[m]: has joined #ruby
[20:47:05] LiamW: seems to do it
[20:47:25] LiamW: (that'll take 10-15 minutes)
[20:47:54] LiamW: I'm testing with a C version to see if I can get the same bug
[20:48:00] LiamW: it might be ruby just failing to wait()
[20:50:36] LiamW: C version didn't bug
[20:50:59] naprimer: has joined #ruby
[20:54:51] S1kx: has joined #ruby
[21:07:36] yeticry: has joined #ruby
[21:12:03] patr0clus: has joined #ruby
[21:12:57] patr0clus: has joined #ruby
[21:14:37] segy_: has joined #ruby
[21:15:02] _sfiguser: has joined #ruby
[21:15:40] dman[m]: has joined #ruby
[21:16:47] M107262[m]: has joined #ruby
[21:16:57] inkky[m]: has joined #ruby
[21:17:18] Guest94946: has joined #ruby
[21:17:35] joenas[m]: has joined #ruby
[21:17:37] Guest94946: need help on ruby script
[21:18:51] yana[m]: has joined #ruby
[21:19:41] jonjits[m]: has joined #ruby
[21:19:41] aviraldg: has joined #ruby
[21:19:56] lasenna[m]: has joined #ruby
[21:20:46] Giphy[m]: has joined #ruby
[21:20:59] tomphp: has joined #ruby
[21:21:06] KevinMGranger: has joined #ruby
[21:21:09] aidalgol: has joined #ruby
[21:21:15] torarne: has joined #ruby
[21:21:21] heftig: has joined #ruby
[21:21:28] turt2live: has joined #ruby
[21:21:38] gokul_mr[m]: has joined #ruby
[21:21:51] sepp2k1: has joined #ruby
[21:23:40] pb122: has joined #ruby
[21:26:43] segy_: has joined #ruby
[21:27:12] _aeris_: has joined #ruby
[21:27:50] banisterfiend: has joined #ruby
[21:30:17] mustaffa__: has joined #ruby
[21:37:57] segy_: has joined #ruby
[21:38:35] tomphp: has joined #ruby
[21:40:29] opekktar_: has joined #ruby
[21:41:49] evlute: has joined #ruby
[21:43:39] ResidentBiscuit: has joined #ruby
[21:47:31] armyriad: has joined #ruby
[21:50:01] gusrub: has joined #ruby
[21:50:17] hkdsun: has joined #ruby
[21:54:00] ascarter: has joined #ruby
[21:54:45] ekinmur: has joined #ruby
[21:57:24] gusrub: has joined #ruby
[22:00:31] raul782: has joined #ruby
[22:02:53] Puffball: has joined #ruby
[22:04:39] evlute: has joined #ruby
[22:09:23] impermanence: has joined #ruby
[22:09:29] impermanence: https://gist.github.com/jonassteinberg1/acd19aa51f475bdca4d1c6ce974f9d0f
[22:09:50] impermanence: ^ i know there is a more ruby way to do this, but unsure how to make it happen
[22:10:13] impermanence: also unsure how to get it to stop duplicating the last element
[22:12:41] sunrunner20: has joined #ruby
[22:14:58] gusrub: has joined #ruby
[22:18:08] beauby: has joined #ruby
[22:18:51] bruno-: has joined #ruby
[22:23:42] dn`: has joined #ruby
[22:28:57] bruno-: has joined #ruby
[22:31:29] duderonomy: has joined #ruby
[22:33:07] raul782: has joined #ruby
[22:33:55] selim: has joined #ruby
[22:34:04] bruno-: has joined #ruby
[22:42:30] inkky[m]: has left #ruby: ("User left")
[22:43:59] impermanence: I've figured out the second part.
[22:44:09] impermanence: Now I'm just interested in rubifying this.
[22:44:18] raul782: has joined #ruby
[22:46:27] |ifei5g00d: has joined #ruby
[22:46:28] ekinmur: has joined #ruby
[22:53:23] Thiru: has joined #ruby
[22:59:23] rubylegend2092: has joined #ruby
[22:59:38] ascarter: has joined #ruby
[23:00:10] astrobunny: has joined #ruby
[23:04:31] skweek: has joined #ruby
[23:05:20] karlding: has joined #ruby
[23:05:44] chloe__: has joined #ruby
[23:07:58] genpaku: has joined #ruby
[23:08:27] beilabs: has joined #ruby
[23:09:06] bmurt: has joined #ruby
[23:09:15] oblique: has joined #ruby
[23:10:47] enodata: has joined #ruby
[23:11:57] RahulT: has joined #ruby
[23:13:35] ltp: has joined #ruby
[23:14:24] lxsameer: has joined #ruby
[23:14:54] astrobunny: has joined #ruby
[23:15:16] GodFather: has joined #ruby
[23:15:55] segy_: has joined #ruby
[23:17:31] raul782: has joined #ruby
[23:17:57] bruno-: has joined #ruby
[23:19:36] cschneid_: has joined #ruby
[23:23:16] nobitanobi: has joined #ruby
[23:24:53] jinie_: has joined #ruby
[23:29:30] bmurt: has joined #ruby
[23:29:53] segy: has joined #ruby
[23:31:55] alveric1: has joined #ruby
[23:38:39] nobitanobi: has joined #ruby
[23:40:30] opekktar: has joined #ruby
[23:48:23] cschneid_: has joined #ruby
[23:50:02] mim1k: has joined #ruby
[23:56:14] bmurt: has joined #ruby
[23:59:31] gusrub: has joined #ruby