« Back to channel list

#ruby - 19 May 2017

« Back 1 day Forward 1 day »
[00:02:26] DeeJayh: has joined #ruby
[00:05:58] rgr: has joined #ruby
[00:06:05] skweek: has joined #ruby
[00:08:31] Mrgoose: has joined #ruby
[00:08:36] duderonomy: has joined #ruby
[00:08:42] bernd27: has joined #ruby
[00:08:42] Mrgoose: anyone know how to get debug log info from a ruby grpc server
[00:12:08] cam27: has joined #ruby
[00:12:19] coderphive: has joined #ruby
[00:15:49] go|dfish: has joined #ruby
[00:16:00] duderono_: has joined #ruby
[00:16:30] bambanx: has joined #ruby
[00:21:08] ascarter: has joined #ruby
[00:25:33] gusrub: has joined #ruby
[00:26:10] quiller: has joined #ruby
[00:28:06] cam27: has joined #ruby
[00:29:00] quiller: has joined #ruby
[00:30:51] s2013: has joined #ruby
[00:32:22] gusrub: has joined #ruby
[00:35:41] skweek: has joined #ruby
[00:44:02] maddamxx: has joined #ruby
[00:46:53] bronson: has joined #ruby
[00:48:24] charliesome: has joined #ruby
[00:51:06] mwlang: has joined #ruby
[00:51:24] Hunter1: has joined #ruby
[00:52:04] cagomez: has joined #ruby
[00:52:35] apparition: has joined #ruby
[00:53:17] uZiel: has joined #ruby
[00:54:13] cagomez: has joined #ruby
[00:56:00] Asher: has joined #ruby
[00:56:45] cam27: has joined #ruby
[00:57:34] eightlimbed: has joined #ruby
[00:59:05] maddamxx: has joined #ruby
[01:02:47] juggler: has joined #ruby
[01:06:56] gusrub: has joined #ruby
[01:07:36] theRoUS: has joined #ruby
[01:08:37] cyclonis: has joined #ruby
[01:11:17] gizmore|2: has joined #ruby
[01:11:56] Toledo: has joined #ruby
[01:12:14] jolamb: has joined #ruby
[01:12:38] olivier__: has joined #ruby
[01:13:20] mrconfused: has joined #ruby
[01:19:04] GinoMan2440: has joined #ruby
[01:21:18] bambanx: has joined #ruby
[01:21:39] soahccc^: has joined #ruby
[01:22:13] quiller: has joined #ruby
[01:22:31] j416: has joined #ruby
[01:23:15] nobitanobi: has joined #ruby
[01:23:55] Hobbyboy: has joined #ruby
[01:24:36] jenrzzz: has joined #ruby
[01:25:13] olivier__: has joined #ruby
[01:27:01] cam27: has joined #ruby
[01:32:44] coderphive: has joined #ruby
[01:34:21] cschneid_: has joined #ruby
[01:35:09] duderonomy: has joined #ruby
[01:40:21] ascarter: has joined #ruby
[01:40:23] bkxd: has joined #ruby
[01:42:02] cam27: has joined #ruby
[01:45:47] bkxd: has joined #ruby
[01:46:31] hobodave: has joined #ruby
[01:46:56] Jameser: has joined #ruby
[01:48:48] d^sh_: has joined #ruby
[01:49:55] ascarter: has joined #ruby
[01:59:17] jusa: has joined #ruby
[02:01:55] rkazak: has joined #ruby
[02:04:17] GinoMan1423: has joined #ruby
[02:07:33] mrconfused: has joined #ruby
[02:08:11] GinoMan2440: has joined #ruby
[02:10:17] al2o3-cr1: has joined #ruby
[02:12:16] cam27: has joined #ruby
[02:19:03] bernd9000: has joined #ruby
[02:20:26] genpaku: has joined #ruby
[02:21:13] ecuanaso: has joined #ruby
[02:23:23] coderphive: has joined #ruby
[02:24:23] __Yiota: has joined #ruby
[02:27:53] cam27: has joined #ruby
[02:30:05] b0mbnet: has joined #ruby
[02:32:45] Dimik: has joined #ruby
[02:32:46] herbmillerjr: has joined #ruby
[02:34:47] bronson: has joined #ruby
[02:35:53] b0mbnet: is there any guide or books about writing c extension for ruby?
[02:36:05] jenrzzz: has joined #ruby
[02:36:05] jenrzzz: has joined #ruby
[02:36:05] charliesome: has joined #ruby
[02:38:06] uZiel: has joined #ruby
[02:40:05] vahe: has joined #ruby
[02:40:17] mrconfused: has joined #ruby
[02:46:35] hahuang65: has joined #ruby
[02:48:02] jenrzzz: has joined #ruby
[02:48:02] jenrzzz: has joined #ruby
[02:51:36] Hunter1: has joined #ruby
[02:53:10] jackjackdripper1: has joined #ruby
[02:54:09] b0mbnet: has joined #ruby
[02:57:13] b0mbnet: has joined #ruby
[02:58:16] cam27: has joined #ruby
[02:59:50] jcao219: has joined #ruby
[03:01:45] jenrzzz: has joined #ruby
[03:01:46] jenrzzz: has joined #ruby
[03:08:58] ascarter: has joined #ruby
[03:09:58] hutch34: has joined #ruby
[03:13:07] heyimwill: has joined #ruby
[03:13:58] nullobject: has joined #ruby
[03:15:51] skweek: has joined #ruby
[03:16:12] mrconfused: has joined #ruby
[03:19:00] octobermagic: has joined #ruby
[03:20:49] octobermagic: Well hellllo internet
[03:21:15] octobermagic: anyone care to help a Ruby noob?
[03:22:31] olivier__: has joined #ruby
[03:23:05] krasnus: has joined #ruby
[03:23:38] agent_white: has joined #ruby
[03:24:21] cschneid_: has joined #ruby
[03:24:40] cschneid_: has joined #ruby
[03:24:50] juggler: has joined #ruby
[03:27:00] pankaj: has joined #ruby
[03:27:29] ascarter: has joined #ruby
[03:27:47] cam27: has joined #ruby
[03:30:30] enterprisey: has joined #ruby
[03:36:02] uZiel: has joined #ruby
[03:40:06] jenrzzz: has joined #ruby
[03:40:07] jenrzzz: has joined #ruby
[03:41:04] jerematic: has joined #ruby
[03:43:33] cam27: has joined #ruby
[03:46:31] xall: has joined #ruby
[03:47:20] ascarter: has joined #ruby
[03:48:13] tfitts: has joined #ruby
[03:50:27] sneakerhax: has joined #ruby
[03:50:29] gix: has joined #ruby
[03:50:48] cyclonis: has joined #ruby
[03:52:40] hobodave_: has joined #ruby
[03:53:05] claw: has joined #ruby
[03:56:49] DrCode: has joined #ruby
[03:59:39] b0mbnet: has joined #ruby
[04:01:14] pookleblinky: has joined #ruby
[04:04:32] vivekananda: has joined #ruby
[04:05:05] SteenJobs: has joined #ruby
[04:06:26] uZiel: has joined #ruby
[04:08:56] hndk: has joined #ruby
[04:10:22] \tau: has joined #ruby
[04:11:57] jane_booty_doe: has joined #ruby
[04:13:41] cam27: has joined #ruby
[04:18:22] pankaj_: has joined #ruby
[04:29:01] cam27: has joined #ruby
[04:30:50] elsevero: has joined #ruby
[04:32:31] ski7777: has joined #ruby
[04:33:46] spcwlz: has joined #ruby
[04:34:18] renchan: has joined #ruby
[04:36:48] pankaj_: has joined #ruby
[04:37:51] ski7777: has joined #ruby
[04:38:10] Cyrus: has joined #ruby
[04:38:42] Ropeney: has joined #ruby
[04:39:34] knight33: has joined #ruby
[04:41:04] bkxd: has joined #ruby
[04:43:09] patarr: has joined #ruby
[04:46:40] jusa: has joined #ruby
[04:48:02] vahe: has joined #ruby
[04:48:05] hobodave: has joined #ruby
[04:51:29] Ropeney: has joined #ruby
[04:52:44] cschneid_: has joined #ruby
[04:56:11] bronson: has joined #ruby
[04:58:36] cam27: has joined #ruby
[05:01:18] __Yiota: has joined #ruby
[05:01:19] pankaj_: has joined #ruby
[05:17:28] jenrzzz: has joined #ruby
[05:17:28] jenrzzz: has joined #ruby
[05:19:18] Jakaria: has joined #ruby
[05:19:52] Jakaria: which gem should I use for Multiple authentication in Rails?
[05:20:12] hays: has joined #ruby
[05:20:12] hays: has joined #ruby
[05:21:03] anisha: has joined #ruby
[05:22:24] xall: has joined #ruby
[05:24:19] b0mbnet: has joined #ruby
[05:28:58] cam27: has joined #ruby
[05:30:10] nickjj_: has joined #ruby
[05:33:09] dionysus69: has joined #ruby
[05:33:27] b0mbnet: has joined #ruby
[05:33:36] Bock: has joined #ruby
[05:34:41] jenrzzz: has joined #ruby
[05:34:41] jenrzzz: has joined #ruby
[05:35:17] Ropeney: Jakaria, what is "multiple" authentication?
[05:36:10] Jakaria: I want to create two authection.... one for Admin of the Website and aonther one for normal users.....
[05:36:29] Jakaria: authentication*
[05:37:43] Ropeney: So you would authenticate the users, then authorize their permissions based on a Role. I suggest Devise + CanCan.
[05:39:10] selim: good morning
[05:39:14] Jakaria: so, I instead of creating Admin model, I should stick with User model and give each user a role?
[05:39:20] selim: can someone help me with my gem install issues
[05:39:22] Ropeney: Jakaria, Yes
[05:39:35] selim: gem always searches for the online url when dependencies are not fullfilled
[05:39:37] Jakaria: thanks, Ropeney
[05:39:50] selim: the problem is, it's being done even if I use -l as option
[05:40:17] selim: and the timeout for not finding the url, due to firewall blockage, is more then 30 minutes
[05:40:24] selim: how do I avoid that?
[05:40:46] aufi: has joined #ruby
[05:42:49] agent_white: Go authenticate, then auth via some text-message mechanism over Twilio, then hug your pillow goodnight.
[05:42:59] agent_white: As your users or someone will fuck it over at some point.
[05:43:09] agent_white: 5-10 years, then you'll back back into re-writing what you did before.
[05:43:38] cam27: has joined #ruby
[05:45:22] pookleblinky: has left #ruby: ("WeeChat 1.2")
[05:47:30] hobodave_: has joined #ruby
[05:51:52] jusa: has joined #ruby
[05:56:04] bronson: has joined #ruby
[06:04:41] EXCHGR: has joined #ruby
[06:09:08] delta67: has joined #ruby
[06:10:34] yogg-saron: has joined #ruby
[06:14:04] cam27: has joined #ruby
[06:15:05] Hunter1: has joined #ruby
[06:23:19] pankaj_: has joined #ruby
[06:24:49] stoffus: has joined #ruby
[06:24:58] burgestrand: has joined #ruby
[06:29:20] cam27: has joined #ruby
[06:32:48] uZiel: has joined #ruby
[06:33:58] andikr: has joined #ruby
[06:34:41] conta: has joined #ruby
[06:34:57] jenrzzz: has joined #ruby
[06:38:18] Hunter1: has joined #ruby
[06:43:58] patarr: has joined #ruby
[06:54:30] jgt3: has joined #ruby
[06:58:47] TomyWork: has joined #ruby
[07:01:57] dminuoso: !shoot foxmask
[07:02:00] dminuoso: !kill foxmask
[07:02:03] dminuoso: ACTION kicks ruby[bot]
[07:02:25] dminuoso: apeiros: Can we install that Cyberdyne plugin into ruby[bot]?
[07:02:36] nobitanobi: has joined #ruby
[07:02:42] dminuoso: Seen the presentation on TV the other day, seems decent.
[07:03:00] nobitanobi: has joined #ruby
[07:03:08] pandaant: has joined #ruby
[07:11:15] SenpaiSilver: has joined #ruby
[07:12:08] jenrzzz: has joined #ruby
[07:12:41] gil_: has joined #ruby
[07:12:42] gil_: has joined #ruby
[07:15:34] nazar_: has joined #ruby
[07:16:04] foxmask: dminuoso: what'sx the matter ?
[07:17:25] dminuoso: foxmask: I wanted ruby[bot] to go beserk and shoot you in the head.
[07:17:25] nazar_: Hello everyone, can any one explain for Ruby 2.3.4, when exactly GC full run is initiated?
[07:17:45] nazar_: During each GC cycle, is it the soft sweep that occurs? or full clean?
[07:17:54] dminuoso: nazar_: soft sweet
[07:18:17] dminuoso: nazar_: full gc runs take an awful lot of time (50-150ms)
[07:18:29] foxmask: dminuoso: why?
[07:19:27] dminuoso: nazar_: If Ruby allocates more than a given threshold it will run the full run instead.
[07:19:29] nazar_: So related to that, In my app, memory is increasing like a hell... It start from 100MB and goes beyond 60GB. But if I trigger manually GC.start in my code during processing, memory came down. How to handle this?
[07:20:00] dminuoso: nazar_: Down to what?
[07:20:00] nazar_: Otherwise it never ever came down and server blow up
[07:20:11] nazar_: Down to initial or close to initial memory
[07:20:29] dminuoso: nazar_: http://tmm1.net/ruby21-rgengc/
[07:20:38] dminuoso: nazar_: It's a bit old but it still applies to 2.4.1 as far as I know.
[07:21:54] kp666[m]: r.update(amount: r.amount - amount)
[07:21:54] kp666[m]: is it possible to change this activerecord update to something on the lines
[07:21:55] kp666[m]: r.update("amount = amount - ?",amount)
[07:22:00] pankaj_: has joined #ruby
[07:23:15] foxmask: has left #ruby: ()
[07:24:15] nazar_: Let me share an example. https://pastebin.com/JjSjmhvt
[07:24:17] ruby[bot]: nazar_: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/940db6591dc20aeb3702558a721b825d
[07:24:17] ruby[bot]: nazar_: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[07:24:41] rgr: has joined #ruby
[07:25:06] nazar_: Let me share an example https://gist.github.com/940db6591dc20aeb3702558a721b825d
[07:25:58] nazar_: As you notice object count and memory continuously increasing, gc count change does not sweep any thing. In the last line "After Clean" is where I run manually GC.start
[07:26:04] hutch34: has joined #ruby
[07:27:27] ThirstySurfer: has joined #ruby
[07:27:59] nazar_: I need input from you guys on one question. "Is it a memory leak? or a GC issue?"
[07:30:00] dminuoso: nazar_: The thing is. GC.start is not even forcing anything.
[07:30:22] nazar_: But its trigging the full_mark
[07:30:25] nazar_: Is not it?
[07:30:49] dminuoso: nazar_: All GC.start does is kindly suggest to run the GC.
[07:31:40] ur5us: has joined #ruby
[07:31:53] nazar_: Hm... So then question is, when I suggest to run GC, why it cleans the memory, otherwise never...
[07:32:22] nazar_: Its become a nightmare for live server
[07:32:39] dminuoso: nazar_: Do you have any C extensions inb use?
[07:32:55] dminuoso: It should be impossible to cause this kind of behavior from the raw ruby world
[07:33:23] nazar_: I believe a lot inside. Its a Rails app with plenty of gems included.
[07:34:55] nazar_: Does a C extension have any effect on GC run?
[07:35:09] nazar_: I never read such thing any where.
[07:37:30] TomyWork: has joined #ruby
[07:38:30] nazar_: My code base is very comprehensive in a sense. It have three phases. 1. Heavy HTTP calls (IO/Memory) 2. Transformation (CPU/Memory) 3. Storage (IO/CPU)
[07:39:02] nazar_: Most objects and memory allocated in third phase, obviously because huge number of active record objects got initiated at that step.
[07:40:59] dminuoso: nazar_: Ill have to do some reading before I can answer any of these questions properly. Perhaps someone with good knowledge will answer before Im done.
[07:42:11] dionysus69: has joined #ruby
[07:44:00] dminuoso: nazar_: The one thing you could be doing your own research for is RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR
[07:44:09] dminuoso: Which is basically the metric to control full GC timings
[07:44:34] dminuoso: nazar_: Some explanations can be found here: https://bugs.ruby-lang.org/issues/9607
[07:45:09] nazar_: Yeah sure, I will explore it, it also mentioned in few articles I searched over. I was just stuck to one point, if GC.start manually do the clean, why does it not automatically.
[07:45:16] SaschaVoid: has joined #ruby
[07:46:09] biberu: has joined #ruby
[07:49:15] charliesome: has joined #ruby
[07:52:51] Mortomes|Work: has joined #ruby
[07:54:00] ecuanaso: has joined #ruby
[07:57:00] bronson: has joined #ruby
[08:00:01] haxrbyte: has joined #ruby
[08:00:58] ascarter_: has joined #ruby
[08:01:29] jusa: has joined #ruby
[08:04:35] haxrbyte: has joined #ruby
[08:05:59] mikecmpbll: has joined #ruby
[08:06:19] ltem: has joined #ruby
[08:06:53] ascarter: has joined #ruby
[08:11:19] marr: has joined #ruby
[08:12:16] Silthias: has joined #ruby
[08:12:19] charliesome: has joined #ruby
[08:13:23] ferr: has joined #ruby
[08:16:58] Silthias: has joined #ruby
[08:24:09] KeyJoo: has joined #ruby
[08:24:51] ascarter_: has joined #ruby
[08:26:37] uZiel: has joined #ruby
[08:26:47] vahe: has joined #ruby
[08:28:03] Voxxit: has joined #ruby
[08:28:28] djbkd_: has joined #ruby
[08:29:05] jaruga: has joined #ruby
[08:30:57] dasher00: has joined #ruby
[08:33:06] b0mbnet: has joined #ruby
[08:35:14] aupadhye: has joined #ruby
[08:35:25] bkxd: has joined #ruby
[08:36:03] zenspider: huh... this is a new one for me... I have 2 blocks of code. they both work. If I wrap them in `if true then block1 else block2 end` I get a C level fault
[08:36:05] zenspider: [BUG] iseq_set_sequence: adjust bug -3 < 0
[08:38:06] b0mbnet: when i writing c extension for ruby, should i use ruby's xmalloc or pure c malloc? anybody knows?
[08:39:17] zenspider: b0mbnet: what are you trying to do?
[08:40:16] lxsameer: has joined #ruby
[08:40:29] zenspider: don't really have all day
[08:41:02] b0mbnet: implement levenshtein_distance in c for ruby
[08:41:39] quobo: has joined #ruby
[08:42:19] zenspider: seems fast enough in ruby... but OK...there's not really anything to malloc, is there?
[08:42:51] b0mbnet: RSTRING_PTR
[08:42:51] uZiel: has joined #ruby
[08:43:42] andikr: has joined #ruby
[08:43:59] hays: has joined #ruby
[08:44:00] hays: has joined #ruby
[08:44:05] zenspider: oh. I guess you can use an array the length of one of the strings...
[08:44:20] zenspider: if you want a string, make a string using the API
[08:44:53] patarr: has joined #ruby
[08:45:11] zenspider: any of the rb_str_new* functions
[08:45:57] Stan: has joined #ruby
[08:46:32] b0mbnet: using rb_str_new, ruby will automatic free it ?
[08:46:34] Beams: has joined #ruby
[08:47:22] zenspider: that's the idea
[08:47:44] romank: has joined #ruby
[08:48:16] b0mbnet: but how do i get speicifc char for this string, for example string[1]?
[08:48:39] zenspider: what have you tried so far?
[08:48:43] tvw: has joined #ruby
[08:49:18] tvw: has joined #ruby
[08:50:09] b0mbnet: wait a second
[08:50:26] zenspider: liiiike... have you read the extensions doco? have you read any C extension code? have you written anything yet? etc...
[08:51:05] esObe: has joined #ruby
[08:51:15] pankaj_: has joined #ruby
[08:51:54] zenspider: WOW... updated to 2.4.1 just in case I was missing a bug fix... nope. still got the explosion: lib/ruby2ruby.rb:436: [BUG] iseq_set_sequence: adjust bug -3 < 0
[08:52:15] zenspider: and it's on compile too... this is cool
[08:52:22] Kug3lis: has joined #ruby
[08:52:37] b0mbnet: yes, i read ruby/doc/extension.rdoc already
[08:54:33] zenspider: that's good
[08:54:44] b0mbnet: i tried, it support index access, thank you
[08:55:57] vahe: has joined #ruby
[08:56:53] b0mbnet: and i have already done something, my first c extension is to wrap libmagic for ruby
[08:57:25] TreyG: has joined #ruby
[08:58:22] dminuoso: zenspider: Do you have the real code for me?
[08:58:52] zenspider: dminuoso: say what?
[08:59:03] dminuoso: 10:36:01 zenspider | huh... this is a new one for me... I have 2 blocks of code. they both work. If I wrap them in `if true then block1 else block2 end` I get a C level fault │ anisha
[08:59:16] zenspider: I'm reducing it to a minimal repro now
[08:59:36] zenspider: got it from 1346 lines down to 21
[08:59:54] zenspider: anyone have 2.5 dev running?
[09:00:55] dminuoso: zenspider: https://bugs.ruby-lang.org/issues/12613
[09:01:18] dminuoso: Does this apply?
[09:02:28] zenspider: this says 2 months ago... 2.4.1 was 2017-03-22
[09:03:03] mikecmpbll: stop breaking ruby
[09:04:00] djbkd_: has joined #ruby
[09:04:29] dminuoso: mikecmpbll: I constantly trigger gcc and ruby bugs every week..
[09:04:33] dminuoso: Some people have a talent for it.
[09:04:46] Cork: i'm trying to decode aes-gcm data in ruby but get "OpenSSL::CipherError:" https://paste.debian.net/933168/
[09:05:03] Cork: the data is encrypted using webcrypto
[09:05:34] dminuoso: Cork: such a descriptive exception.
[09:05:39] dminuoso: Gotta love OpenSSL
[09:05:53] Cork: any hint on where i can get help with it?
[09:06:55] zenspider: dminuoso: https://bugs.ruby-lang.org/issues/13578
[09:07:02] dminuoso: Cork: I would compare the base64 decoded keys and see if they match
[09:07:32] Cork: dminuoso: Base64.decode64(privateKey).unpack('H2' * Base64.decode64(privateKey).size).map {|s| s.to_i(16) } is identical to the bytearray in js
[09:07:39] zenspider: funny thing is, if you remove the if true/else/end it works fine... this is purely a compiler bug
[09:07:41] dminuoso: zenspider: That is scary.
[09:07:55] zenspider: I just wanted to profile the two versions w/o commenting
[09:08:28] mikecmpbll: Cork : ruby's base64 does stuff new lines every 60th character or something
[09:08:36] mikecmpbll: dunno if that's anything to do with it
[09:08:46] Cork: hmm might be
[09:08:50] mikecmpbll: ah nvm you're only decoding in ruby
[09:09:32] mikecmpbll: there is a strict_decode64 tho too :/
[09:09:39] sdomsta: has joined #ruby
[09:10:36] Cork: mikecmpbll: the result is identical in this case
[09:11:08] Cork: i wonder if it is the auth_tag/auth_data think in ruby causing it
[09:11:19] Cork: but i'm not sure what that would be
[09:11:46] dminuoso: Cork: And the iv matches too?
[09:12:03] FastJack: has joined #ruby
[09:12:47] mim1k: has joined #ruby
[09:13:18] dminuoso: zenspider: I wonder.. I wonder if your bug was actually introduced by the referenced bugfix.
[09:13:38] Cork: dminuoso: yes it is
[09:14:10] Cork: Uint8Array(12) [113, 95, 75, 50, 187, 254, 232, 34, 12, 219, 245, 150]
[09:14:12] Cork: => [113, 95, 75, 50, 187, 254, 232, 34, 12, 219, 245, 150]
[09:14:15] zenspider: possible I guess. I found the error message in the compiler but didn't look into it too much. calculating offsets and blows an assertion, basically
[09:15:24] jgt3: has joined #ruby
[09:15:26] Cork: dminuoso: the iv is the base64 before the space in cryptData
[09:15:34] alazred: has joined #ruby
[09:16:37] gusrub: has joined #ruby
[09:17:53] dminuoso: zenspider: https://github.com/ruby/ruby/commit/52b02ad22a6f45b9d0604343a4067aa14bef0e2c
[09:18:15] dminuoso: This is such a typical nobu commit. The name of that macro.. CHECK() ...
[09:18:31] erry: has joined #ruby
[09:18:34] erry: good m orning all
[09:18:44] erry: So an admition: i know nothing about ruby
[09:18:55] zenspider: I don't think that is what is blowing... but yeah. kinda opaque
[09:18:55] erry: what i want to know is how you get rvm to install to ~/.rvm and not /usr/local/
[09:19:12] dminuoso: erry: Avoid rvm.
[09:19:19] erry: well I just want to insatll this one gem
[09:19:20] zenspider: or read the doco?
[09:19:24] erry: and not have to be root
[09:19:26] dminuoso: erry: You do not need rvm to install a gem.
[09:19:40] dminuoso: rvm is just a pita especially for a beginner, dont bother
[09:19:46] erry: we already use it i think
[09:19:48] erry: but if i can avoid it i will
[09:20:00] zenspider: gem install --user-install gemname
[09:20:18] zenspider: or gem i -i ~/whereveryouwant gemname
[09:20:20] erry: You don't have write permissions for the /usr/local/rvm/gems/ruby-2.3.0/wrappers directory.
[09:20:53] zenspider: can't tell you about that. Not using rvm will probably help :)
[09:20:53] erry: gem install -i ~/.gem breakpoint
[09:20:56] erry: You don't have write permissions for the /usr/local/rvm/gems/ruby-2.3.0/wrappers directory.
[09:21:07] erry: Sigh :(I
[09:21:09] erry: ACTION is a perl developer
[09:21:18] erry: ACTION 's job infra uses ruby for random stuff
[09:21:37] erry: don't worry about it i guess
[09:21:45] zenspider: `gem i -i xxx breakpoint -N` works for me... maybe rvm patches rubygems? god I hope not
[09:22:07] zenspider: see where your gem home is, that's where it'll write stuff to by default
[09:22:19] zenspider: perl... now you have two problems
[09:22:24] erry: http://paste.scsys.co.uk/563081
[09:22:40] erry: i think i know where our perl moduels go at least
[09:23:15] jenrzzz: has joined #ruby
[09:24:04] zenspider: erry: gem install --help | grep wrapper
[09:28:13] dminuoso: zenspider: I can reduce the testcase even further..
[09:28:43] dminuoso: zenspider: if false then if true then .. is sufficient
[09:29:25] dminuoso: zenspider: Oh mmm. That is a syntax error isnt it?
[09:29:34] mikecmpbll: erry: looks like you've installed rvm in "multi-user mode"
[09:29:49] zenspider: dminuoso: even so... it shouldn't blow up
[09:30:21] dminuoso: zenspider: the outer if is not necessary at all, reduced even further
[09:31:29] mikecmpbll: erry : looks like you need to add users to the 'rvm' group if you've installed in multi-user mode
[09:31:30] mikecmpbll: https://rvm.io/rvm/install
[09:32:36] dminuoso: zenspider: https://gist.github.com/dminuoso/3e313ec5e3e7fcec08fd6c9fe5536251
[09:34:01] mim1k: has joined #ruby
[09:34:25] zenspider: Adding that to the ticket. thanks
[09:36:12] dminuoso: zenspider: I should debug this. This seems to be related to the one portion of the compiler that I know and have modified already! :D
[09:36:14] aupadhye: has joined #ruby
[09:36:29] zenspider: cool. have at it.
[09:39:36] horst: has joined #ruby
[09:40:12] erry: mikecmpbll: cheers
[09:40:42] dminuoso: This was not vim.
[09:41:00] dminuoso: Cant't even <u>ndo things..
[09:41:05] pankaj_: has joined #ruby
[09:41:26] dminuoso: Yeah.. I was in weechat but I thought I was in my editor..
[09:46:48] nobitanobi: has joined #ruby
[09:49:37] dminuoso: zenspider: Indeed it looks as if the bugfix introduced the issue.
[09:49:53] dionysus69: has joined #ruby
[09:50:23] dminuoso: ACTION starts compiling ruby
[09:57:54] bronson: has joined #ruby
[10:02:22] jusa: has joined #ruby
[10:07:42] alazred: has joined #ruby
[10:07:42] alazred: has joined #ruby
[10:07:50] zenspider: 1200 line diff... commit message will be something like "completely reworked to be purely functional, performance is roughly the same"
[10:10:25] Hanmac: has joined #ruby
[10:12:03] mikecmpbll: i wish there was a version of `Array#delete` that took a block. like find but removes it from array
[10:12:50] olivier__: has joined #ruby
[10:13:34] vifino: has joined #ruby
[10:16:20] dminuoso: mikecmpbll: you mean like delete_if ?
[10:16:30] Archrover: has joined #ruby
[10:16:34] mikecmpbll: dminuoso : delete_if doesn't return the deleted object
[10:17:00] dminuoso: mikecmpbll: Mutation is bad anyway.
[10:17:07] dminuoso: Go write in Elixir instead.
[10:17:38] mikecmpbll: without mutation, we wouldn't evolve.
[10:17:42] mikecmpbll: ACTION drops mic
[10:18:31] dminuoso: mikecmpbll: Instead we are completely non-functional!
[10:18:39] zenspider: delete_at + find_index ?
[10:19:07] zenspider: or a plain each will totally work
[10:19:28] mikecmpbll: yo i can do it; i'm just dreaming big, is all.
[10:19:29] dminuoso: Or you can use Fiddle.
[10:19:45] dminuoso: There's virtually no problem that cant be solved adequately wth excessive use of raw pointers.
[10:19:56] zenspider: ACTION fires dminuoso 
[10:20:33] zenspider: mikecmpbll: partition
[10:21:53] mikecmpbll: i was always against it.
[10:21:58] dminuoso: zenspider: Have you ever developed the need to temporarily act as if a module had a different superclass?
[10:22:05] dminuoso: zenspider: https://gist.github.com/dminuoso/a7c5f60744acb0f3a34f382046c00f6b
[10:22:27] pankaj_: has joined #ruby
[10:22:49] jottr: has joined #ruby
[10:23:09] dminuoso: zenspider: Temporarily changing ancestors is a wonderful thing to do, trust me.
[10:23:12] PaulePanter: has joined #ruby
[10:24:01] zenspider: huh... rubygems deregistered my `un` gem
[10:24:02] zenspider: https://rubygems.org/gems/un
[10:24:10] dminuoso: What did "un" do?
[10:24:21] zenspider: let you unextend and uninclude
[10:24:28] zenspider: also: https://rubygems.org/gems/change_class
[10:24:57] dminuoso: zenspider: Yeah that one is neat too.
[10:25:19] dminuoso: zenspider: rubyforge seems to be down, how do you deal with the instance variable cache?
[10:25:36] zenspider: cmon... minitest-trump is only at 272 downloads
[10:26:04] zenspider: *shrug* I wrote that shit 9 years ago on a lark
[10:26:21] zenspider: publish evil code for conferences
[10:26:27] zenspider: ok... bed for me
[10:26:34] dminuoso: zenspider: Ohh. Also uses inline, you cheapie!
[10:27:03] zenspider: why wouldn't I use it?
[10:29:23] jottr: has joined #ruby
[10:31:20] dminuoso: zenspider: https://eval.in/635609
[10:32:17] dminuoso: zenspider: I use that instance_variable_set trick to ensure that the iv cache exists (this avoids seg faults when you try to retain ivars after switching the super class to a class that you have had no objects with ivars of before)
[10:32:21] jottr: has joined #ruby
[10:33:41] dminuoso: That particular snippet is actually used in production code *somewhere*
[10:34:04] dminuoso: Because machinze has an annoying interface :|
[10:40:10] bauruine: has joined #ruby
[10:40:12] Lyubo1: has joined #ruby
[10:43:56] andikr: has joined #ruby
[10:45:24] Tempesta: has joined #ruby
[10:45:38] patarr: has joined #ruby
[10:47:30] nazar_: One question guys, Does Ruby GC return the allocated memory back to system? I noticed that in my app there are around 817k free slots in heap while only 723k slots in use. Does GC should not return memory to reduce free slots?
[10:47:53] tomphp: has joined #ruby
[10:55:10] mim1k: has joined #ruby
[10:57:57] Exhiled: has joined #ruby
[10:58:47] dminuoso: nahra: It does, but gradually in small chunks.
[11:04:37] tomphp_: has joined #ruby
[11:09:22] nowhere_man: has joined #ruby
[11:15:01] jackrandom: has joined #ruby
[11:15:22] xall: has joined #ruby
[11:17:52] gusrub: has joined #ruby
[11:17:56] Nicmavr: has joined #ruby
[11:18:35] tomphp: has joined #ruby
[11:19:12] burgestrand: has joined #ruby
[11:24:08] hobodave: has joined #ruby
[11:26:20] Bish: how would you guys iterate over the weeks of a year?
[11:29:06] cyphase: has joined #ruby
[11:29:40] tobiasvl: Bish: what do you mean?
[11:29:55] Bish: well, i want a download link for each week in this year
[11:30:31] tobiasvl: OK, but do you just want to find out how many weeks there are in this year (if it's not just 52), and then just iterate 1..52?
[11:30:46] tobiasvl: or do you want to iterate over the dates of the first mondays/sundays in each week
[11:31:33] olivier__: has joined #ruby
[11:33:09] chouhoulis: has joined #ruby
[11:33:11] Bish: well, basicially i want a download for each week from now backwards
[11:33:23] Bish: how do i generate a list from those :o
[11:33:28] Bish: beautifully.
[11:33:35] tobiasvl: I still don't understand what you want to generate
[11:33:46] Bish: hm, geez.
[11:33:48] tobiasvl: what do you want? an array with what, dates?
[11:34:09] olivier__: has joined #ruby
[11:34:28] Bish: maybe the index of the week as u suggested with 1..52, but i am not even sure if every year has 52 weeks ;;
[11:34:39] Bish: but i would like to have the start date of that week & end, too
[11:34:54] yqt: has joined #ruby
[11:35:13] jusa: has joined #ruby
[11:35:47] adaedra: (Date.parse('2017-01-01')..Date.parse('2017-12-31')).step(7).to_a
[11:36:32] chouhoulis: has joined #ruby
[11:36:37] Bish: why does taht work :o
[11:36:44] adaedra: You have days separated by a week each (but it may not be the start of the week - you may have to find the first monday for that)
[11:37:22] adaedra: It works because Date#+ moves by day and there are 7 days a week
[11:37:43] Bish: okay, great, wow
[11:37:53] Bish: thats ruby for you
[11:37:57] adaedra: If you're in rails, a `.beginning_of_week` may solve the problem of not being a monday :^)
[11:38:05] Bish: ACTION hates rails
[11:38:15] adaedra: If you are a sane person for who a week starts the monday, of course.
[11:39:10] chouhoul_: has joined #ruby
[11:39:55] adaedra: If you don't have beginning of week, `date - date.wday + 1` will take you to monday.
[11:39:55] ldnunes: has joined #ruby
[11:41:35] chouhoul_: has joined #ruby
[11:42:15] Seenox: has joined #ruby
[11:43:39] blackwind_123: has joined #ruby
[11:43:43] patarr: has joined #ruby
[11:45:05] hays: has joined #ruby
[11:46:10] gloscombe: has joined #ruby
[11:47:33] nobitanobi: has joined #ruby
[11:47:41] mim1k: has joined #ruby
[11:52:29] houhoulis: has joined #ruby
[11:52:55] bkxd: has joined #ruby
[11:55:13] anvor: has joined #ruby
[11:55:43] VladGh: has joined #ruby
[11:58:06] Archrover: has joined #ruby
[11:58:24] alazred: has joined #ruby
[11:58:24] alazred: has joined #ruby
[11:59:21] bronson: has joined #ruby
[12:02:26] Jameser: has joined #ruby
[12:02:54] synthroid: has joined #ruby
[12:04:44] Jameser: has joined #ruby
[12:05:40] stupidsenpai: has joined #ruby
[12:06:24] simple_work: has joined #ruby
[12:06:43] nobitanobi: has joined #ruby
[12:10:12] Bish: adaedra: thanks
[12:13:24] ahrs: has joined #ruby
[12:16:00] Jameser: has joined #ruby
[12:17:47] jgt3: has joined #ruby
[12:18:08] dragoonis: has joined #ruby
[12:20:11] Mohan: has joined #ruby
[12:20:19] dragoonis: Hey! I have ruby1.8.7 installed on RHEL and I've just installed chef's InSpec .rpm package .. when I run inspec I get: /opt/inspec/embedded/bin/ruby: /lib53/libc.so.6: version `GLIBC_2.14' not found (required by /opt/inspec/embedded/lib/libruby.so.2.3)
[12:20:35] dragoonis: Can someone help please?
[12:22:36] bkxd: has joined #ruby
[12:24:13] qwasz: has joined #ruby
[12:24:19] darix: dragoonis: /lib53 sounds just broken
[12:24:24] darix: you are sure it isnt lib64?
[12:24:36] darix: dragoonis: and it might mean it needs a newer glibc than your rhel 6 has
[12:26:59] bmurt: has joined #ruby
[12:27:24] olivier__: has joined #ruby
[12:27:53] dragoonis: darix, i checked and I have glibc 2.12 installed
[12:28:20] darix: dragoonis: and the inspec package was built with glib 2.14
[12:28:31] darix: dragoonis: so you need rhel7 probably
[12:28:36] SteenJobs: has joined #ruby
[12:29:14] olivier__: has joined #ruby
[12:29:57] dragoonis: darix, i can't change the RHEL version. Can I just upgrade glibc ?
[12:30:36] darix: dragoonis: i wouldnt do that
[12:30:46] darix: you will lose your support
[12:31:56] alazred: has joined #ruby
[12:31:56] alazred: has joined #ruby
[12:32:10] haxrbyte: has joined #ruby
[12:32:11] qwasz: has joined #ruby
[12:32:21] eightlimbed: has joined #ruby
[12:32:55] bonhoeffer: has joined #ruby
[12:35:09] olivier__: has joined #ruby
[12:39:37] Ericx2x: has joined #ruby
[12:43:31] mim1k: has joined #ruby
[12:43:33] olivier__: has joined #ruby
[12:44:04] jerematic: has joined #ruby
[12:44:17] ramortegui: has joined #ruby
[12:48:57] pankaj_: has joined #ruby
[12:49:38] eightlimbed: has joined #ruby
[12:49:55] Burgestr_: has joined #ruby
[12:50:11] haxrbyte: has joined #ruby
[12:52:10] jeffreylevesque: has joined #ruby
[12:52:38] KeyJoo: has joined #ruby
[12:55:34] fusta: has joined #ruby
[12:57:53] olivier__: has joined #ruby
[13:00:32] yogg-saron: has joined #ruby
[13:01:25] bkxd_: has joined #ruby
[13:03:57] mim1k: has joined #ruby
[13:05:24] AKPWD: has joined #ruby
[13:07:02] stupidsenpai: has joined #ruby
[13:07:57] stoffus: has joined #ruby
[13:08:50] oleo: has joined #ruby
[13:14:36] yeticry_: has joined #ruby
[13:15:46] stupidsenpai: has joined #ruby
[13:15:47] olivier__: has joined #ruby
[13:17:22] olivier__: has joined #ruby
[13:18:54] gusrub: has joined #ruby
[13:22:22] chouhoulis: has joined #ruby
[13:23:02] pankaj_: has joined #ruby
[13:24:29] stoffus: has joined #ruby
[13:24:59] rippa: has joined #ruby
[13:29:12] chouhoulis: has joined #ruby
[13:31:50] DLSteve: has joined #ruby
[13:36:20] nazar_: has joined #ruby
[13:38:13] jrafanie: has joined #ruby
[13:41:08] User458764: has joined #ruby
[13:41:34] Mon_Ouie: has joined #ruby
[13:43:45] pupsicle: has joined #ruby
[13:43:56] quobo: has joined #ruby
[13:44:54] bkxd: has joined #ruby
[13:45:12] hobodave_: has joined #ruby
[13:47:32] b0mbnet: has joined #ruby
[13:48:07] hays: has joined #ruby
[13:51:40] TvL2386: has joined #ruby
[13:54:45] awer_: has joined #ruby
[13:55:16] awer_: Hi, im trying to reinstall ruby rvm 2.3.0 on kali. during compiling i get "Error running '__rvm_make -j4',
[13:55:34] awer_: uncommon.mk:203: recipe for target 'build-ext' failed
[13:55:44] awer_: make: *** [build-ext] Error 2
[13:55:52] awer_: any suggestions on this please?
[13:56:27] awer_: https://paste.ee/p/h3xWl
[13:57:01] dminuoso: awer_: Look at the log file.
[13:57:46] cyclonis: has joined #ruby
[13:58:20] awer_: yes i looked at this - https://paste.ee/p/k9jcy -
[13:58:50] apparition: has joined #ruby
[13:59:13] awer_: dminuoso: sometihing to do with "build-ext"
[14:00:11] awer_: dminuoso: I have libssl-dev installed
[14:00:14] bronson: has joined #ruby
[14:01:01] dminuoso: awer_: https://github.com/rvm/rvm/issues/3862
[14:01:29] dminuoso: awer_: Near the bottom another issue is referenced, look at that too.
[14:02:48] awer_: dminuoso: ok thanks ill give it a try
[14:03:29] awer_: dminuoso: does this work for you? im getting a 404 not found - rvm get branch /bugfix/3862-openssl11-debian
[14:03:49] dminuoso: awer_: I dont use rvm at all because its buggy, annoying and only brings issues.
[14:04:02] dminuoso: And it's highly intrusive and monkey patches shells.
[14:04:33] awer_: ah ok. what the alternative. - the goal is to install BeEF
[14:05:04] stupidsenpai: has joined #ruby
[14:05:16] dminuoso: awer_: You dont need RVM if you just want to run software.
[14:05:43] dminuoso: awer_: The most straight forward solution is either your system ruby or a ruby installed through ruby-install (https://github.com/postmodern/ruby-install)
[14:06:16] awer_: dminuoso: ok thank you
[14:06:44] jgt3: has joined #ruby
[14:07:51] shinnya: has joined #ruby
[14:08:00] uZiel: can I get top n elements from a sorted hash?
[14:08:30] __Yiota: has joined #ruby
[14:08:32] gnufied: has joined #ruby
[14:08:50] nofxxx: has joined #ruby
[14:08:54] dminuoso: uZiel: Enumerator::Lazy
[14:09:18] dminuoso: uZiel: It probably implements Enumerable, so .take(n)
[14:10:46] olivier__: has left #ruby: ("Leaving...")
[14:11:09] uZiel: :D yup it does
[14:11:12] uZiel: thanks dminuoso
[14:11:14] calife: has joined #ruby
[14:12:10] ski7777: has joined #ruby
[14:12:18] haylon: has joined #ruby
[14:15:06] awer_: dminuoso: just got to the end and got this message "!!! Unknown ruby: rubinius
[14:15:17] dionysus69: has joined #ruby
[14:15:51] dminuoso: awer_: What command did you use?
[14:16:10] awer_: dminuoso: ./setup.sh
[14:16:49] awer_: dminuoso: ?
[14:17:48] dangerousdave: has joined #ruby
[14:17:51] dminuoso: awer_: Ohh. Sorry. Dont use that setup.sh
[14:18:03] dminuoso: awer_: It's grossly outdated and probably should be removed.
[14:18:05] awer_: dminuoso: oh ok what should i do?
[14:18:11] awer_: dminuoso: right
[14:18:21] dminuoso: awer_: Look at the "Install" section of that github page.
[14:18:36] awer_: ok thanks
[14:18:40] dminuoso: Once installed, you can just do "ruby-install ruby 2.4.1" for example
[14:21:23] alazred: has joined #ruby
[14:21:23] alazred: has joined #ruby
[14:23:23] bkxd_: has joined #ruby
[14:23:34] cschneid_: has joined #ruby
[14:23:54] nadir: has joined #ruby
[14:26:38] haylon: has joined #ruby
[14:28:35] patarr: has joined #ruby
[14:29:29] jgt3: has joined #ruby
[14:29:41] ForeignBiscuit: has joined #ruby
[14:29:42] __Yiota: has joined #ruby
[14:29:44] chouhoul_: has joined #ruby
[14:33:24] skweek: has joined #ruby
[14:33:26] theunraveler: has joined #ruby
[14:33:40] ornerymoose: has joined #ruby
[14:33:48] jusa: has joined #ruby
[14:34:48] ornerymoose: Having some trouble using Ruby’s CSV force_quotes: false. Doesn’t seem to be consistent. Many of the generated CSVs don’t have quotes at the beginning or end of the CSV (as intended), but some do. Why would that be? Note the data populating the CSV files is coming from SQL Server
[14:36:36] cbarratt: has joined #ruby
[14:36:48] jcao219: has joined #ruby
[14:37:17] cbarratt: hi guys, im attempting to get connection_pool to play nicely with redis but I can't seem to get it to actually use more than 1 connection (using puma, multiple threads)
[14:40:30] ascarter: has joined #ruby
[14:41:04] __Yiota: has joined #ruby
[14:45:18] oborot_: has joined #ruby
[14:48:51] pupsicle: has joined #ruby
[14:58:13] ruby[bot]: has joined #ruby
[14:58:13] ChanServ: +o ruby[bot]
[14:59:35] jgt3: has joined #ruby
[15:01:03] cassianoleal: has joined #ruby
[15:01:20] fusta: has joined #ruby
[15:02:36] Ropeney: has joined #ruby
[15:03:35] xall: has joined #ruby
[15:04:26] eam: @cbarratt: got code? More details?
[15:04:42] bkxd: has joined #ruby
[15:06:17] zepy_aq: has joined #ruby
[15:06:41] olivier__: has joined #ruby
[15:06:47] hutch34: has joined #ruby
[15:08:17] alazred: has joined #ruby
[15:08:18] alazred: has joined #ruby
[15:08:27] Dreamer3: has joined #ruby
[15:09:34] dangerousdave: has joined #ruby
[15:10:08] zzxc: How often do people use Prime::prime?
[15:13:43] cschneid_: has joined #ruby
[15:14:38] vahe: has joined #ruby
[15:15:38] raspado: has joined #ruby
[15:19:16] Asher: has joined #ruby
[15:20:17] mim1k: has joined #ruby
[15:21:32] ascheel: has joined #ruby
[15:23:09] psmmr: has joined #ruby
[15:23:55] ascheel: I'm attempting to use 'cucumber' and 'aruba' as provided by an instructor for checking the output of assignments. His is set up to be for Ubuntu 16.04 and I'm running that on a server. I'm getting lots of variable not defined errors. I'm guessing that there are version mismatches, but I don't know how to diagnose it since I don't know Ruby. Lines 2-5 are the actual error. How can I diagnose the real issue? https://gist.github.com/ascheel/7659b5f
[15:24:20] ascheel: undefined local variable or method `cmd' for #<Aruba::Processes::SpawnProcess:0x00000003103b98>
[15:31:31] sepp2k: has joined #ruby
[15:32:34] nitric: has joined #ruby
[15:33:49] theRoUS: has joined #ruby
[15:34:25] t-recx: has joined #ruby
[15:35:39] cam27: has joined #ruby
[15:40:01] alazred: has joined #ruby
[15:40:01] alazred: has joined #ruby
[15:42:41] synthroid: has joined #ruby
[15:42:57] raspado: has joined #ruby
[15:44:31] jgt3: has joined #ruby
[15:47:06] Kug3lis: has joined #ruby
[15:47:30] kegster: has joined #ruby
[15:47:58] ascarter: has joined #ruby
[15:49:11] bkxd: has joined #ruby
[15:49:16] horst_: has joined #ruby
[15:51:05] __Yiota: has joined #ruby
[15:59:03] baweaver: WHO HAS AWOKEN ME FROM MY SLUM... oh hey dminuoso. What's up?
[16:00:08] catphish: has joined #ruby
[16:01:10] bronson: has joined #ruby
[16:02:43] amclain: has joined #ruby
[16:04:03] majuk: has joined #ruby
[16:04:08] fusta: has joined #ruby
[16:04:26] catphish: jhass: thanks :)
[16:05:42] haylon: has joined #ruby
[16:06:16] arooni: has left #ruby: ("WeeChat 1.8")
[16:06:29] pankaj_: has joined #ruby
[16:06:35] rakm: has joined #ruby
[16:06:37] marr: has joined #ruby
[16:07:29] blackwind_123: has joined #ruby
[16:08:52] hobodave: has joined #ruby
[16:08:59] pb122: has joined #ruby
[16:09:17] gizmore: has joined #ruby
[16:09:52] hobodave: has joined #ruby
[16:14:32] P4f73k: has joined #ruby
[16:15:53] stupidsenpai: has joined #ruby
[16:16:45] dangerousdave: has joined #ruby
[16:17:38] gusrub: has joined #ruby
[16:21:04] catphish: has left #ruby: ("Leaving")
[16:24:40] SeepingN: has joined #ruby
[16:27:21] bkxd_: has joined #ruby
[16:29:58] muelleme: has joined #ruby
[16:32:51] Silthias: has joined #ruby
[16:32:55] haylon: has joined #ruby
[16:33:32] jusa: has joined #ruby
[16:36:15] User458764: has joined #ruby
[16:36:51] adaedra: ACTION pokes baweaver 
[16:36:53] BSaboia: has joined #ruby
[16:37:21] adaedra: Just to poke you.
[16:37:30] baweaver: ACTION pokes adaedra 
[16:37:40] jgnagy: has joined #ruby
[16:38:26] Guest7184: has joined #ruby
[16:38:42] alazred: has joined #ruby
[16:38:43] alazred: has joined #ruby
[16:43:46] TomyLobo: has joined #ruby
[16:44:01] __Yiota: has joined #ruby
[16:44:14] b0mbnet: has joined #ruby
[16:45:22] mikecmpbll: has joined #ruby
[16:45:44] pb122-two: has joined #ruby
[16:46:37] nowhere_man: has joined #ruby
[16:50:00] psychicist__: has joined #ruby
[16:52:42] armguy: has joined #ruby
[16:56:41] majuk: During compilation, ruby complains 'Following extensions failed to configure' and complains about openssl, zlib and readline. Is there a way to get those extensions pulled in post-compile?
[16:56:56] polishdub: has joined #ruby
[16:58:05] gothicsouth: has joined #ruby
[16:58:55] NeoMalachi: has joined #ruby
[16:59:09] majuk: I think I'm googling this with the wrong verbiage, not making any progress.
[17:00:19] NingaLeaf: has joined #ruby
[17:02:16] tildes: has joined #ruby
[17:05:52] knight33: has joined #ruby
[17:09:35] bkxd: has joined #ruby
[17:11:06] rkazak: has joined #ruby
[17:15:38] GGMethos: has joined #ruby
[17:17:47] __Yiota: has joined #ruby
[17:23:17] armyriad: has joined #ruby
[17:26:55] dionysus69: has joined #ruby
[17:29:01] chouhoulis: has joined #ruby
[17:29:17] benlieb: has joined #ruby
[17:30:35] darix: majuk: just install the needed development packages for those libraries. the name of the package depends on your distro
[17:30:41] rdw200169__: has joined #ruby
[17:31:01] majuk: darix: Wish it were that simple.
[17:31:19] majuk: darix: But thanks. I've moved on from that attempt./
[17:31:35] gusrub: has joined #ruby
[17:35:20] DrCode: has joined #ruby
[17:35:58] psychicist__: has joined #ruby
[17:37:54] duderonomy: has joined #ruby
[17:39:48] ojab: has joined #ruby
[17:40:03] ojab: has left #ruby: ()
[17:40:40] u0_a190: has joined #ruby
[17:41:34] ascarter: has joined #ruby
[17:43:51] ascarter: has joined #ruby
[17:44:41] ascarter: has joined #ruby
[17:50:07] bkxd_: has joined #ruby
[17:51:16] nazar_: has joined #ruby
[17:52:24] ben_h: has joined #ruby
[17:54:43] enterprisey: has joined #ruby
[17:54:43] montyboy: has joined #ruby
[17:56:54] andrzejku: has joined #ruby
[17:56:59] ascarter: has joined #ruby
[17:57:56] pb122: has joined #ruby
[17:59:27] cdg: has joined #ruby
[18:01:59] chouhoul_: has joined #ruby
[18:02:12] bronson: has joined #ruby
[18:02:25] ojab: has joined #ruby
[18:02:46] ojab: has left #ruby: ()
[18:03:46] tomphp: has joined #ruby
[18:09:41] majuk: https://pastebin.com/FXAG6rPF
[18:09:43] ruby[bot]: majuk: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/055a00f7802710bb1699c3423cb0c7cb
[18:09:43] ruby[bot]: majuk: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[18:09:56] majuk: Nice. That works.
[18:10:20] majuk: So line 19, it can't find stdio.h. It and all its referenced files are at /usr/include
[18:11:07] stupidsenpai: has joined #ruby
[18:11:47] majuk: Any clever ideas how to resolve that issue and get the compiler to look in /usr/include?
[18:12:28] minimalism: has joined #ruby
[18:12:36] majuk: or maybe somewhere to symlink /usr/include so it can find those headers.
[18:13:26] tomphp: has joined #ruby
[18:15:44] Mon_Ouie: CFLAGS="-I/usr/include" would cause gcc (and most C compilers) to check that directory, although it would normally be one of the default paths.
[18:17:09] jeffreylevesque: has joined #ruby
[18:20:27] majuk: Mon_Ouie: Can I pass that in on the command line with gem?
[18:21:24] majuk: I agree I think the compiler should already look there, but I'm willing to hold its hand if it might get me through thise.
[18:22:00] majuk: Here we go
[18:22:06] Mon_Ouie: If you set it as an environment variable, it should apply to the compiler processes spawned by gem
[18:22:07] majuk: gem install RedCloth -- --with-cflags=\"-O2 -pipe -march=native -Wno-unused-but-set-variable\"
[18:22:19] cam27: has joined #ruby
[18:23:30] majuk: Yea, --with-cflags got it
[18:23:52] majuk: exporting that sys variable didn't get it for whatever reason.
[18:24:29] majuk: Mon_Ouie: Thanks for your input, appreciate it.
[18:25:47] nofxxxx: has joined #ruby
[18:27:12] ecuanaso: has joined #ruby
[18:27:14] redaudit: has joined #ruby
[18:29:49] Ticky: has joined #ruby
[18:30:54] jgt3: has joined #ruby
[18:31:51] bkxd: has joined #ruby
[18:32:05] jenrzzz: has joined #ruby
[18:32:19] t-recx: has joined #ruby
[18:32:49] ij: has joined #ruby
[18:35:52] Ticky: hello, #ruby, I’ve got a curly one… I’ve got emoji preprocessing going on (to replace it with images on platforms which don’t support it) with Ruby and JavaScript, and I want to keep them consistent. I’ve just updated the JavaScript portion to support Unicode 9.0 emoji, however, the regex I used there checks for high surrogates, and Ruby’s regex implementation thus simply tells me I must be joking. Is there any way around this? The full JS
[18:35:52] Ticky: regex Ruby doesn’t like is here; https://gist.github.com/ticky/219a2724738e29e8b2ccd76524795cee (built from https://www.npmjs.com/package/emoji-regex)
[18:36:59] AlexRussia: has joined #ruby
[18:37:38] ij: When might a attr_writer/foo= method be perceived as a local variable declaration?
[18:38:55] ij: Oh, it should be self.foo = 3, if I want to trigger the #foo=.
[18:39:05] tildes: has joined #ruby
[18:47:38] ascarter_: has joined #ruby
[18:51:54] Dimik: has joined #ruby
[19:00:02] ascarter: has joined #ruby
[19:01:11] User458764: has joined #ruby
[19:01:14] ascarter: has joined #ruby
[19:06:52] ascarter: has joined #ruby
[19:07:44] bheesham: has joined #ruby
[19:10:35] haylon: has joined #ruby
[19:12:07] bkxd_: has joined #ruby
[19:12:10] ascarter: has joined #ruby
[19:12:47] dviola: has joined #ruby
[19:14:10] dviola: has joined #ruby
[19:16:54] jenrzzz: has joined #ruby
[19:16:54] jenrzzz: has joined #ruby
[19:23:05] lxsameer: has joined #ruby
[19:23:50] jackrandom: has joined #ruby
[19:23:56] oborot_: has joined #ruby
[19:24:55] postmodern: has joined #ruby
[19:26:05] gnufied: has joined #ruby
[19:26:19] tildes: has joined #ruby
[19:26:27] tomphp: has joined #ruby
[19:26:38] jackrandom: has joined #ruby
[19:27:54] nofxxx: has joined #ruby
[19:28:21] ur5us: has joined #ruby
[19:28:35] hutch34: has joined #ruby
[19:29:15] gil_: has joined #ruby
[19:29:15] gil_: has joined #ruby
[19:31:04] dviola: has joined #ruby
[19:31:39] dviola: has joined #ruby
[19:32:01] futilegames: has joined #ruby
[19:32:23] grymmjack: has joined #ruby
[19:32:38] bilal: has joined #ruby
[19:34:30] __Yiota: has joined #ruby
[19:36:12] bilal: has joined #ruby
[19:36:54] zenspider: Ticky: that regexp IS horrible. I can't blame ruby for hating it
[19:37:16] ojab: has joined #ruby
[19:37:39] PatrikasZvaigzde: has joined #ruby
[19:38:20] bilal: has joined #ruby
[19:38:55] bilal: has joined #ruby
[19:41:35] belmoussaoui: has joined #ruby
[19:41:35] ascarter: has joined #ruby
[19:44:59] _tpavel: has joined #ruby
[19:45:45] belmoussaoui: has joined #ruby
[19:46:05] squaregoldfish: has joined #ruby
[19:47:52] ij: has left #ruby: ("WeeChat 1.7.1")
[19:50:37] Ticky: zenspider: I mean, if JavaScript’s awful regex engine can handle it…
[19:50:45] belmoussaoui: has joined #ruby
[19:51:00] patr0clus: has joined #ruby
[19:51:32] Ticky: if either language just up and supported Unicode 9.0 character properties out of the box I wouldn’t have this problem :P
[19:52:01] planigan: has joined #ruby
[19:53:31] bkxd: has joined #ruby
[19:53:46] elomatreb: Are you sure it doesn't? I think I remember reading somewhere that Ruby was updated for Unicode 9.0
[19:54:09] elomatreb: (If I knew anything about Unicode I would test it)
[19:55:08] ojab: has left #ruby: ()
[19:55:11] ojab: has joined #ruby
[19:55:38] choke: has joined #ruby
[19:56:34] ascarter: has joined #ruby
[19:57:02] gja: has joined #ruby
[19:58:52] ascarter: has joined #ruby
[19:59:55] boringcpg: has joined #ruby
[20:00:07] boringcpg: I'm trying to find a version of Ruby that has UnixSocket on Windows...
[20:00:29] boringcpg: The only one I found is msys2 version.
[20:01:41] hobodave_: has joined #ruby
[20:03:07] bronson: has joined #ruby
[20:03:19] ecuanaso: has joined #ruby
[20:03:30] ojab: has left #ruby: ()
[20:03:30] ahmetkapikiran: has joined #ruby
[20:05:12] psychicist__: has joined #ruby
[20:06:01] zenspider: Ticky: not sure I'm versed well enough... what character properties do you need?
[20:06:11] dionysus69: has joined #ruby
[20:07:01] Ticky: zenspider: specifically, these ones https://mathiasbynens.be/notes/es-unicode-property-escapes#emoji
[20:07:04] zenspider: boringcpg: install cygwin or whatever it is called?
[20:07:17] Ticky: (they expand to that big ol’ gnarly regex I pasted above that Ruby doesn’t like)
[20:07:40] Ticky: (or rather to that plus some extra handling for ZWJ sequences)
[20:07:59] pupsicle: has joined #ruby
[20:09:43] ur5us: has joined #ruby
[20:10:07] hutch34: has joined #ruby
[20:10:35] zenspider: Ticky: I read that backwarcds and thought "What does Jamie Zawinski have to do with this?" (other than the "now you have two problems" line)
[20:10:41] zenspider: >> /\p{In_Emoticons}/
[20:10:43] ruby[bot]: zenspider: # => /\p{In_Emoticons}/ (https://eval.in/801804)
[20:10:49] zenspider: no clue what that matches tho
[20:11:15] zenspider: https://github.com/k-takata/Onigmo/blob/master/doc/UnicodeProps.txt
[20:11:30] OO--OO: has joined #ruby
[20:11:58] Ticky: ACTION zenspider: a very small subset of emoji ¯\_(ツ)_/¯ https://en.wikipedia.org/wiki/Emoticons_(Unicode_block)
[20:12:14] zenspider: that document hints that it does v9 tho... maybe file an issue?
[20:12:46] zenspider: oh. the version on the document is v6... but it has DerivedAges including Age=9.0
[20:12:53] zenspider: so I might be reading too much into it
[20:13:11] Ticky: I suspect that’s reading too much :P
[20:14:48] zenspider: that document you pointed at also hints that our unicode \w is insufficient
[20:14:49] knight33: has joined #ruby
[20:14:54] zenspider: const regex = /([\p{Alphabetic}\p{Mark}\p{Decimal_Number}\p{Connector_Punctuation}\p{Join_Control}]+)/gu;
[20:15:07] zenspider: vs: General_Category -- (Letter|Mark|Number|Connector_Punctuation)
[20:15:17] ascarter: has joined #ruby
[20:16:13] OO--OO: how does one add up the number of True's in a TrueClass?
[20:16:16] zenspider: the issues are pretty up to date tho... file an issue to extend
[20:16:27] zenspider: OO--OO: your question doesn't make sense
[20:16:59] zenspider: short answer: 1 ... but to a totally different question
[20:16:59] Ticky: zenspider: where do you mean? what issues?
[20:17:13] zenspider: Ticky: on Onigmo
[20:18:16] Ticky: oh, right, right
[20:18:23] Ticky: I missed that that’s Ruby’s regex engine! 😃
[20:19:18] OO--OO: under a loop which outputs true/flase values how do you add the number of times 'true' is outputted for example
[20:19:26] ytti: </win 20
[20:19:56] zenspider: I don't know unicode spec enough... but running your horrid regexp through ruby complains about all the codepoints that start w/ D: eg \uDC69 ... I don't know if those are invalid or not
[20:20:17] OO--OO: in a method names abcdef? for example
[20:20:17] zenspider: OO--OO: do you even see how what you just described is NOTHING like your original question?
[20:20:41] Ticky: zenspider: they’re “valid,” they’re just not characters by themselves - they’re high surrogates
[20:21:12] zenspider: ?answers OO--OO
[20:21:13] ruby[bot]: OO--OO: How to ask the right questions to get you the right answer: https://www.mikeash.com/getting_answers.html
[20:21:56] OO--OO: maybe another person understood it ?
[20:22:12] zenspider: highly doubtful. you suck at asking clear questions
[20:22:22] zenspider: so, read that document. learn how to ask. try again
[20:22:58] jenrzzz_: has joined #ruby
[20:23:38] baweaver: OO--OO - yeah, unclear
[20:23:43] zenspider: Ticky: I dropped your regexp down to the first 2 \u's... repro'd the errors, then tried to convert to \u{.... ....} and at least got fewer errors. :P
[20:24:13] zenspider: also sounds awfully like homework. homework you don't understand in the first place
[20:24:21] Ticky: yeah that might be… part of it, it expects JavaScript’s one-character-at-a-time regex parsing
[20:24:40] Ticky: it _might_ be that anywhere it’s not looking for “one of these characters” it should actually be in that format
[20:24:53] Ticky: but honestly I can’t figure out enough about the error Ruby’s giving me to know for sur
[20:26:05] Ticky: issue opened https://github.com/k-takata/Onigmo/issues/89
[20:26:08] Ticky: ACTION takes cover
[20:26:12] zenspider: cool. thanks
[20:27:05] Ticky: thanks for pointing me in the right direction 😃
[20:27:23] zenspider: Ticky: if you're feeling adventurous, go hunt down UNICODE_VALID_CODEPOINT_P(c) in the codebase and see what it does
[20:27:34] Ticky: I’m currently looking into whether https://github.com/janlelis/unicode-emoji has equivalent behaviour to what I’m after… if it is I might concede defeat and use that lol
[20:27:44] zenspider: ah... it's in regenc.h
[20:28:20] zenspider: that code looks clean as fuck
[20:28:52] zenspider: except that it uses String#+... that's dumb. but it's for constants so it doesn't matter too much
[20:28:59] sepp2k1: has joined #ruby
[20:29:33] marahin: Hello! I seem to have trouble operating on Sequel documentation. Is there a way to define a model that has no primary key (I'm using some stupid auto-generated database for a game engine), but yet be able to call Model.last, Model.first?
[20:29:57] marahin: I could assume that the order should be defined by 'time' column (which is integer UNIX timestamp), but there can be duplicates.
[20:29:59] Ticky: zenspider: yeah, none of this is very “good” but if it does the thing you need™
[20:30:01] zenspider: no primary key??
[20:30:32] Ticky: zenspider: honestly ideally I wouldn’t be doing emoji replacements at all but with Linux and Windows’ chaotic emoji support levels out there…
[20:31:03] zenspider: marahin: I haven't used Sequel in ages, but the author is very responsive
[20:31:15] zenspider: just ... not to MY issues. :P
[20:31:23] zenspider: not true... he very quickly said no :P
[20:32:03] marahin: zenspider: I feel embarrased to ask such question to the creator himself.
[20:32:06] marahin: Like, honestly. :D
[20:32:14] yogg-saron: has joined #ruby
[20:32:22] marahin: I will google some more and then just maybe force a primary key into the game schema. Thank you for your answer nonetheless! :-)
[20:32:26] zenspider: that's pretty self-limiting
[20:32:54] zenspider: you might be able to compose some sort of .all.order(...).first... no clue.
[20:34:52] ecuanaso: has joined #ruby
[20:35:33] bkxd_: has joined #ruby
[20:36:47] andrzejku: has joined #ruby
[20:38:16] mwlang: has joined #ruby
[20:39:38] comet23: has joined #ruby
[20:40:02] redaudit: has joined #ruby
[20:41:48] pupsicle: has joined #ruby
[20:42:59] marahin: zenspider Death.order(Sequel.desc(:time)) seems to do the job
[20:43:26] Ticky: I think I have a solid approach to this emoji stuff, thanks for your input, zenspider 😃 https://github.com/janlelis/unicode-emoji seems to match the behaviour I need!
[20:43:47] zenspider: take a look at their code and see if they go about it terribly differently or not
[20:44:04] boringcp1: has joined #ruby
[20:44:29] ecuanaso: has joined #ruby
[20:46:40] jbeeze_: has joined #ruby
[20:54:09] blackmesa: has joined #ruby
[20:59:57] haylon: has joined #ruby
[21:00:20] OO--OO: how long until someone can answer my question?
[21:04:56] nobitanobi: has joined #ruby
[21:10:30] mim1k: has joined #ruby
[21:10:35] eam: time between asking and answering is potentially unbounded
[21:11:08] zenspider: especially when you don't ask a good question. consider it infinite until you try again
[21:11:27] zenspider: also, that's some seriously entitled bullshit right there...
[21:12:47] quobo: has joined #ruby
[21:13:44] hxegon: I think they left, but the answer is reduce(Hash.new(0)) { |acc, e| acc.tap { |h| h[e] += 1 } }
[21:14:07] hxegon: also, hi all
[21:14:52] bkxd: has joined #ruby
[21:15:41] ascarter: has joined #ruby
[21:15:59] hxegon: Maybe we should have a !fact that links to this:
[21:16:01] hxegon: https://www.mikeash.com/getting_answers.html#guide_begin
[21:16:40] __Yiota: has joined #ruby
[21:17:30] baweaver: hxegon: best not to feed the vampires
[21:17:53] ruby[bot]: How to ask the right questions to get you the right answer: https://www.mikeash.com/getting_answers.html
[21:17:59] hxegon: baweaver: nice
[21:18:10] baweaver: tap isn't needed by the way
[21:18:17] baweaver: just use each_with_object
[21:18:21] baweaver: switch the args though
[21:18:43] baweaver: besides, true/false makes more sense with select/count
[21:18:55] zenspider: hxegon: we do and I did. :P
[21:18:56] baweaver: collection.select { |v| cond }.count
[21:19:03] ur5us: has joined #ruby
[21:19:31] zenspider: collection.count { |v| cond }
[21:19:44] zenspider: no memory used
[21:20:08] baweaver: &ri Enumerable#count
[21:20:08] `derpy: http://ruby-doc.org/core-2.4.1/Enumerable.html#method-i-count
[21:20:19] hxegon: I'll add that to the list of ruby's "that takes a block?" methods
[21:20:44] zenspider: not size/length... count. :P
[21:21:13] ascarter: has joined #ruby
[21:21:27] jcao219: has joined #ruby
[21:23:48] jeffreylevesque_: has joined #ruby
[21:24:52] milardovich: has joined #ruby
[21:30:55] gothicsouth: has joined #ruby
[21:33:26] __Yiota: has joined #ruby
[21:34:05] swills: has joined #ruby
[21:35:17] hobodave: has joined #ruby
[21:42:47] milardovich: has joined #ruby
[21:43:43] sumobob: has joined #ruby
[21:44:57] nankyokusei: has joined #ruby
[21:44:59] ascarter: has joined #ruby
[21:45:35] swills: has joined #ruby
[21:47:34] nobitanobi: has joined #ruby
[21:51:06] quobo: has joined #ruby
[21:57:38] bkxd_: has joined #ruby
[21:58:37] quuxman: has joined #ruby
[21:59:59] bheesham: has joined #ruby
[22:01:41] BSaboia: has joined #ruby
[22:03:25] BSaboia: has joined #ruby
[22:03:53] kegster: has joined #ruby
[22:04:10] bronson: has joined #ruby
[22:04:20] milardovich: has joined #ruby
[22:07:09] BSAlb: has joined #ruby
[22:09:43] muelleme: has joined #ruby
[22:15:50] BSaboia: has joined #ruby
[22:16:33] BSaboia: has joined #ruby
[22:16:52] ecuanaso: has joined #ruby
[22:20:41] gothicsouth: has joined #ruby
[22:25:06] Hollyver: has joined #ruby
[22:25:22] ascarter: has joined #ruby
[22:27:14] Hollyver: is this a channel for dating?
[22:27:19] bheesham: has joined #ruby
[22:27:58] havenwood: Hollyver: This is a channel for the Ruby programming language.
[22:28:55] Hollyver: has left #ruby: ()
[22:30:11] ytti: believe ruby means something in the gay scene
[22:33:26] benlieb: has joined #ruby
[22:38:49] SeepingN: just because I have a rainbow of nicknames? geez cmon
[22:38:49] bkxd: has joined #ruby
[22:39:38] __Yiota: has joined #ruby
[22:41:50] byte512: has joined #ruby
[22:42:26] dstrunk: has joined #ruby
[22:45:28] npgm: has joined #ruby
[22:48:35] rakm: has joined #ruby
[22:51:10] belmoussaoui_: has joined #ruby
[22:51:20] jenrzzz: has joined #ruby
[22:51:20] jenrzzz: has joined #ruby
[22:52:11] boringcpg: has joined #ruby
[22:59:05] alveric2: has joined #ruby
[23:01:32] shinnya: has joined #ruby
[23:03:25] alveric3: has joined #ruby
[23:03:51] Hunter1: has joined #ruby
[23:04:07] jackjackdripper: has joined #ruby
[23:08:29] cyphase: has joined #ruby
[23:11:04] mim1k: has joined #ruby
[23:20:26] bkxd_: has joined #ruby
[23:28:52] gothicsouth: has joined #ruby
[23:30:21] ascarter: has joined #ruby
[23:31:04] hplar: has joined #ruby
[23:42:54] bheesham: has joined #ruby
[23:44:40] ascarter: has joined #ruby
[23:44:42] DeeJayh: has joined #ruby
[23:45:50] ur5us: has joined #ruby
[23:53:49] bheesham: has joined #ruby
[23:56:24] muhlisbc: has joined #ruby
[23:58:46] Nicmavr: has joined #ruby