« Back to channel list

#ruby - 27 November 2018

« Back 1 day Forward 1 day »
[00:08:20] \void: has joined #ruby
[00:16:41] dbz: has joined #ruby
[00:17:40] blackmesa: has joined #ruby
[00:17:41] Xeago_: has joined #ruby
[00:26:11] elphe: has joined #ruby
[00:27:25] blackmesa: has joined #ruby
[00:32:25] C-o: Hi, I would like to use cycle on an array to cycle through the list while a condition is true but I would also like to retrieve, in the block. the number of the current iteration of cycle, I tried with cycle.with_index but the index is increase for each element instead of each cycle, sorry for my bad english
[00:33:01] elphe: has joined #ruby
[00:33:08] baweaver: Enumerator, though why do you want to do that?
[00:33:21] baweaver: Maybe lazy map with index too
[00:34:59] akem: has joined #ruby
[00:35:15] dbz_: has joined #ruby
[00:39:28] akem: has joined #ruby
[00:43:12] asphyxia: has joined #ruby
[00:43:35] kent\n: has joined #ruby
[00:49:16] graphene: has joined #ruby
[00:59:30] havenwood: &>> a = %w[tick tock]; a.cycle.lazy.with_index.map { |item, index| [item, index / a.size] }.first 5 # C-o
[00:59:33] rubydoc: # => [["tick", 0], ["tock", 0], ["tick", 1], ["tock", 1], ["tick", 2]] (https://carc.in/#/r/5mry)
[01:03:00] C-o: havenwood: baweaver thanks a lot
[01:06:44] \void: has joined #ruby
[01:15:22] kapil____: has joined #ruby
[01:23:14] orbyt_: has joined #ruby
[01:24:19] Renich: has left #ruby: ()
[01:25:01] Renich: has joined #ruby
[01:28:05] Fusl: has joined #ruby
[01:30:53] brkkyk: has joined #ruby
[01:31:43] alicef: has joined #ruby
[01:32:32] jottr: has joined #ruby
[01:43:19] jottr: has joined #ruby
[01:52:26] SeepingN_: has joined #ruby
[01:55:05] nadir: has joined #ruby
[01:57:08] chens: has joined #ruby
[02:24:02] Renich: has left #ruby: ()
[02:24:43] Renich: has joined #ruby
[02:38:21] tdy: has joined #ruby
[03:02:42] ua: has joined #ruby
[03:03:42] solocshaw: has joined #ruby
[03:14:56] OrangeManBad: has joined #ruby
[03:27:54] kent\n: has joined #ruby
[03:29:47] bga57: has left #ruby: ()
[03:33:56] dbz: has joined #ruby
[03:34:56] Nicmavr: has joined #ruby
[03:37:56] graphene: has joined #ruby
[03:42:57] alicef: has joined #ruby
[03:44:18] jottr: has joined #ruby
[03:48:26] elphe: has joined #ruby
[03:52:12] alicef: has joined #ruby
[03:54:59] jottr: has joined #ruby
[03:55:26] chens: has joined #ruby
[04:08:25] graphene: has joined #ruby
[04:09:57] braincrash: has joined #ruby
[04:22:34] kent\n: has joined #ruby
[04:23:55] dbz: has joined #ruby
[04:24:24] Xiti: has joined #ruby
[04:30:36] akaiiro: has joined #ruby
[04:48:33] dellavg_: has joined #ruby
[04:50:56] dbz: has joined #ruby
[04:51:48] sheepman: has joined #ruby
[04:59:49] sheepman: has joined #ruby
[05:07:50] sheepman: has joined #ruby
[05:10:39] Xiti: has joined #ruby
[05:13:48] Azure: has joined #ruby
[05:21:21] sheepman: has joined #ruby
[05:21:44] Xiti: has joined #ruby
[05:22:41] zapata: has joined #ruby
[05:26:04] darkhanb: has joined #ruby
[05:30:22] sheepman: has joined #ruby
[05:35:40] nchambers: has joined #ruby
[05:38:53] sheepman: has joined #ruby
[05:42:19] dtzuzu: has joined #ruby
[05:43:00] cnsvc: has joined #ruby
[05:45:20] cd: has joined #ruby
[05:55:59] jottr: has joined #ruby
[06:04:50] Radar: irb(main):001:0> (1..20).sort
[06:04:50] Radar: => [1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 3, 4, 5, 6, 7, 8, 9]
[06:04:57] Radar: Brought JS sorting to Ruby
[06:08:22] chens: has joined #ruby
[06:11:38] alicef: has joined #ruby
[06:17:13] ajaya: has joined #ruby
[06:17:37] solocshaw: has joined #ruby
[06:18:07] Milos: has joined #ruby
[06:18:15] reber: has joined #ruby
[06:20:21] madhatter: has joined #ruby
[06:23:56] conta: has joined #ruby
[06:30:11] graphene: has joined #ruby
[06:30:38] cnsvc: has joined #ruby
[06:35:41] madhatter: has joined #ruby
[06:36:14] ajaya: has joined #ruby
[06:40:31] aupadhye: has joined #ruby
[06:40:56] chens: has joined #ruby
[06:42:50] hiroaki: has joined #ruby
[06:49:20] esrse: has joined #ruby
[06:52:33] akemot: has joined #ruby
[07:01:05] yokel: has joined #ruby
[07:02:23] chussenot: has joined #ruby
[07:15:36] elphe: has joined #ruby
[07:20:28] sauvin: has joined #ruby
[07:41:59] elphe: has joined #ruby
[07:48:54] sepp2k: has joined #ruby
[07:52:59] vqrs: has joined #ruby
[07:55:23] n13z_: has joined #ruby
[07:56:51] jottr: has joined #ruby
[07:59:39] clemens3: has joined #ruby
[08:01:30] blackmesa: has joined #ruby
[08:02:05] elphe: has joined #ruby
[08:07:49] jottr: has joined #ruby
[08:08:16] clemens3_: has joined #ruby
[08:08:23] jamesaxl: has joined #ruby
[08:09:46] n13z: has joined #ruby
[08:15:46] graphene: has joined #ruby
[08:21:21] keden: has joined #ruby
[08:22:19] elphe: has joined #ruby
[08:32:48] agent_white: [1] pry(main)> (1..20).sort
[08:32:48] agent_white: => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
[08:32:48] agent_white: [2] pry(main)> RUBY_VERSION
[08:32:59] agent_white: Radar: How did that happen?
[08:37:28] armyriad: has joined #ruby
[08:38:47] Freshnuts: has joined #ruby
[08:40:27] Exuma: has joined #ruby
[08:40:30] mikker: has joined #ruby
[08:41:25] mikker: Is there an easy way to execute a process as a specific user (when run as root) with something like Open3, or do I have to rely on sudo?
[08:42:29] elphe: has joined #ruby
[08:44:22] cnsvc: has joined #ruby
[08:45:04] Sylario: has joined #ruby
[08:52:36] elphe: has joined #ruby
[08:54:01] burgestrand: has joined #ruby
[08:56:05] mikecmpbll: has joined #ruby
[08:59:31] n13z: has joined #ruby
[09:08:15] Emmanuel_Chanel: has joined #ruby
[09:12:41] elphe: has joined #ruby
[09:13:45] snowy: has joined #ruby
[09:22:48] elphe: has joined #ruby
[09:23:28] Radar: agent_white: do you really want to know?
[09:23:46] Radar: agent_white: https://gist.github.com/radar/2c06a80f10cd5d0ffc4759fcf5c210c0
[09:25:02] agent_white: Radar: I'll have to follow-up on this - too late to keep crested-eyes open. Thank you for the gist :)
[09:25:33] troulouliou_div2: has joined #ruby
[09:26:04] agent_white: Scared me at first though... I tried a few different 1..10 lineups against various versions.
[09:26:50] agent_white: Radar: Hope your family and new kid are doing well. Cheers!
[09:27:12] Radar: agent_white: Thanks mate :) We're doing really well. She's two now, so not so new anymore!
[09:32:55] elphe: has joined #ruby
[09:35:05] Sylario: I have a block ruby question about a gem doc. How can they call cached_block on serializer ? : https://github.com/rails-api/active_model_serializers/blob/v0.10.6/docs/general/serializers.md#has_one
[09:37:40] pskosinski: has joined #ruby
[09:46:49] Sylario: Did I miss something?
[09:48:18] jottr: has joined #ruby
[09:55:48] crankhar1er: has joined #ruby
[10:00:36] gnufied: has joined #ruby
[10:03:44] gnufied: has joined #ruby
[10:04:24] LinuxKnight: has joined #ruby
[10:07:14] elphe: has joined #ruby
[10:07:16] dbz: has joined #ruby
[10:11:13] Guest21835: has joined #ruby
[10:17:11] elphe: has joined #ruby
[10:18:55] dhollinger: has joined #ruby
[10:23:26] elphe: has joined #ruby
[10:29:54] phaul: has joined #ruby
[10:42:47] arekushi: has joined #ruby
[10:58:16] SuperL4g: has joined #ruby
[11:02:16] keden: has joined #ruby
[11:02:54] elphe: has joined #ruby
[11:08:22] mangold: has joined #ruby
[11:22:35] elphe: has joined #ruby
[11:34:54] lomex: has joined #ruby
[11:35:53] Dbugger: has joined #ruby
[11:36:08] lomex: has joined #ruby
[11:42:16] elphe: has joined #ruby
[11:50:34] dviola: has joined #ruby
[12:00:36] elphe: has joined #ruby
[12:06:57] burgestrand: has joined #ruby
[12:20:08] elphe: has joined #ruby
[12:20:14] AJA4350: has joined #ruby
[12:39:48] burgestrand: has joined #ruby
[12:39:50] elphe: has joined #ruby
[12:41:52] mangold: has joined #ruby
[12:43:20] reber: has joined #ruby
[12:44:11] supergeek: has joined #ruby
[12:57:38] sheepman: has joined #ruby
[12:59:31] elphe: has joined #ruby
[13:04:39] graphene: has joined #ruby
[13:05:47] mangold: has joined #ruby
[13:14:35] Guest21835: has joined #ruby
[13:17:52] keden: has joined #ruby
[13:19:10] elphe: has joined #ruby
[13:22:28] bmurt: has joined #ruby
[13:28:45] za1b1tsu: has joined #ruby
[13:29:00] elphe: has joined #ruby
[13:35:24] beeman: has joined #ruby
[13:38:52] elphe: has joined #ruby
[13:48:46] elphe: has joined #ruby
[13:53:03] akemot: has joined #ruby
[13:59:51] GinoMan: has joined #ruby
[14:01:07] GinoMan2440: has joined #ruby
[14:02:57] fredmorcos: has joined #ruby
[14:03:45] elphe: has joined #ruby
[14:04:09] lomex: has joined #ruby
[14:10:56] conta1: has joined #ruby
[14:14:36] Nicmavr: has joined #ruby
[14:15:41] crankhar1er: has joined #ruby
[14:23:24] elphe: has joined #ruby
[14:31:44] roelof: has joined #ruby
[14:32:40] roelof: is still RubyMonk the best free way to learn ruby ? and can I work on Windows 10 well with ruby ?
[14:37:38] lomex: has joined #ruby
[14:37:47] sheepman: has joined #ruby
[14:40:05] Zarthus: you can work with W10 well enough for ruby, but it's still recommended to spin up a VM of your dev environment to match production
[14:40:18] Zarthus: I've never used rubymonk, but there is no "objective best way for everyone"
[14:40:21] Zarthus: people learn differently
[14:40:25] Zarthus: try it, you like it? go for it.
[14:43:04] elphe: has joined #ruby
[14:52:54] elphe: has joined #ruby
[14:56:45] Inline: has joined #ruby
[15:01:32] kaleido: has joined #ruby
[15:01:56] keden: has joined #ruby
[15:02:43] elphe: has joined #ruby
[15:05:15] SeepingN: has joined #ruby
[15:08:07] dkmueller: has joined #ruby
[15:11:27] lomex: has joined #ruby
[15:14:41] akem: has joined #ruby
[15:18:49] knight33: has joined #ruby
[15:19:18] rippa: has joined #ruby
[15:19:33] knight33: We have a small app written in Ruby, deployed to a ton of Windows machine. I work on macOS/Linux, and am scratching my head on how I can test it locally (I'm coding through TeamViewer on a remote Windows box right now) and it's really annoying.
[15:20:04] knight33: It uses the `win32-service` gem .
[15:20:11] beefjoe: has joined #ruby
[15:22:25] elphe: has joined #ruby
[15:23:49] nchambers: has joined #ruby
[15:32:19] za1b1tsu: has joined #ruby
[15:36:05] orcus: has joined #ruby
[15:40:09] keden: has joined #ruby
[15:42:05] elphe: has joined #ruby
[15:43:47] lipoqil: has joined #ruby
[15:48:44] mostlybadfly: has joined #ruby
[15:51:45] dinfuehr_: has joined #ruby
[15:57:06] vondruch: has joined #ruby
[15:58:18] unreal: has joined #ruby
[16:01:14] blackmesa: has joined #ruby
[16:01:46] elphe: has joined #ruby
[16:02:54] akem: has joined #ruby
[16:08:12] lomex: has joined #ruby
[16:09:45] marz_d`ghostman: has joined #ruby
[16:10:00] marz_d`ghostman: Isn't the 'with_options' available for activerecord in plain ruby? what's the alternative?
[16:12:59] jaddison: has joined #ruby
[16:13:14] crankharder: has joined #ruby
[16:14:34] tbuehlmann: that's from activesupport and there's no such pendant in ruby
[16:14:54] marz_d`ghostman: is there an alternative to using orm for plain ruby?
[16:15:10] elkapitan20: has joined #ruby
[16:15:18] tbuehlmann: do you mean activerecord?
[16:15:52] marz_d`ghostman: oh yea, I mean activerecord
[16:16:18] tbuehlmann: you can use that without using rails, if that's what you mean
[16:16:59] marz_d`ghostman: tbuehlmann: I'm trying to make this work
[16:17:00] marz_d`ghostman: http://termbin.com/oorf
[16:17:02] elkapitan20: anyone running sidekiq with more than 10 millions queues per day ?
[16:17:18] marz_d`ghostman: tbuehlmann: but it says with_options is an undefined method
[16:20:35] havenwood: marz_d`ghostman: require 'active_support/core_ext/object/with_options'
[16:21:29] elphe: has joined #ruby
[16:21:49] marz_d`ghostman: havenwood: Is there a module I can require to have it support everything including the stuff like allow_blank etc. etc.
[16:22:22] agent_white: has joined #ruby
[16:23:22] havenwood: marz_d`ghostman: Sequel is a popular alternnative: https://github.com/jeremyevans/sequel
[16:23:25] havenwood: marz_d`ghostman: require 'active_support/all'
[16:23:25] lomex: has joined #ruby
[16:24:23] marz_d`ghostman: havenwood: thanks. So you leaning on sequel rather than activesupport?
[16:24:44] jaddison: has joined #ruby
[16:25:18] ellcs: has joined #ruby
[16:27:15] havenwood: marz_d`ghostman: Sequel is an alternative to ActiveRecord.
[16:36:14] GinoMan: has joined #ruby
[16:41:08] elphe: has joined #ruby
[16:46:26] hutch: has joined #ruby
[16:47:15] akaiiro: has joined #ruby
[16:50:09] Ishido: has joined #ruby
[16:50:53] akem: has joined #ruby
[16:50:58] jaddison: has joined #ruby
[16:51:03] elphe: has joined #ruby
[16:52:43] akemot: has joined #ruby
[16:53:20] blackmesa: has joined #ruby
[16:53:52] conta1: has joined #ruby
[16:57:24] DTZUZO: has joined #ruby
[17:00:47] elphe: has joined #ruby
[17:03:26] moei: has joined #ruby
[17:07:51] sezuan: has joined #ruby
[17:08:19] Rapture: has joined #ruby
[17:09:32] sezuan: Is there something like: gem "foo", 'ruby(<2.2)' - install the latest foo that is supported by ruby older than 2.2?
[17:09:38] marz_d`ghostman: havenwood: Thanks mate
[17:10:23] Guest21835: has joined #ruby
[17:10:44] sezuan: It's very cumbersome to pin all dependencies manually.
[17:10:45] elphe: has joined #ruby
[17:11:37] Inline: has joined #ruby
[17:11:43] fluxAeon: has joined #ruby
[17:12:38] akemot: has joined #ruby
[17:13:05] bambanx: has joined #ruby
[17:13:15] Inline: has joined #ruby
[17:17:38] jaddison: has joined #ruby
[17:20:47] gix: has joined #ruby
[17:23:05] maryo_: has joined #ruby
[17:24:09] Inline: has joined #ruby
[17:26:05] Renich: has joined #ruby
[17:28:42] darkhanb: has joined #ruby
[17:30:21] elphe: has joined #ruby
[17:32:09] agent_white: has joined #ruby
[17:33:01] turt2live: has joined #ruby
[17:39:35] maryo__: has joined #ruby
[17:41:10] Eiam: has joined #ruby
[17:41:36] sepp2k: has joined #ruby
[17:43:15] maryo_: has joined #ruby
[17:46:56] maryo__: has joined #ruby
[17:47:10] Guest21835: has joined #ruby
[17:48:02] alem0lars: has joined #ruby
[17:50:00] elphe: has joined #ruby
[17:56:25] szulak_: has joined #ruby
[17:57:03] maslen: has joined #ruby
[17:58:01] maslen: I'm getting an error on line 71, that there's "no implicit conversion of string into integer". What is causing this problem? https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/postgresql/templates/default/pg_hba.conf.erb#L67
[18:00:03] elphe: has joined #ruby
[18:03:43] GinoMan2440: has joined #ruby
[18:14:14] graphene: has joined #ruby
[18:15:06] eckhardt: has joined #ruby
[18:16:49] \void: has joined #ruby
[18:19:39] elphe: has joined #ruby
[18:29:30] elphe: has joined #ruby
[18:32:30] Renich: has left #ruby: ()
[18:32:50] Renich: has joined #ruby
[18:38:40] j416: has joined #ruby
[18:48:56] maryo__: has joined #ruby
[18:49:06] code_zombie: has joined #ruby
[18:49:15] elphe: has joined #ruby
[18:51:00] mikecmpbll: has joined #ruby
[18:51:01] \void: has joined #ruby
[18:52:57] impermanence: has joined #ruby
[18:55:19] venmx: has joined #ruby
[18:57:24] irdr: has joined #ruby
[18:58:07] lxsameer: has joined #ruby
[19:00:54] jhass: has joined #ruby
[19:04:06] jeffspeff: has joined #ruby
[19:04:49] jeffspeff: I've inherited a redmine server and am trying to install a plugin but running into an issue. Anyone know what I'm doing wrong? https://gist.github.com/jeffclay/6b670855f69860c97202f530ec4c79f1 thanks in advance
[19:08:52] elphe: has joined #ruby
[19:10:17] Renich_: has joined #ruby
[19:13:10] akemot: has joined #ruby
[19:13:40] Demos[m]: has joined #ruby
[19:26:51] Aqo: has joined #ruby
[19:27:29] Renich_: has joined #ruby
[19:28:36] elphe: has joined #ruby
[19:34:46] impermanence: has joined #ruby
[19:35:04] beeman: has joined #ruby
[19:35:55] bastilian: has joined #ruby
[19:35:55] turt2live: has joined #ruby
[19:35:55] jonjitsu: has joined #ruby
[19:36:26] postmodern: has joined #ruby
[19:38:26] elphe: has joined #ruby
[19:40:42] akemot: has joined #ruby
[19:48:12] elphe: has joined #ruby
[19:49:45] j416: has joined #ruby
[19:56:05] Renich: has joined #ruby
[19:58:09] elphe: has joined #ruby
[19:59:34] irdr: has joined #ruby
[20:02:12] j416: has joined #ruby
[20:05:00] Demos[m]: has joined #ruby
[20:07:57] elphe: has joined #ruby
[20:09:24] TheBloke: has joined #ruby
[20:11:56] tectonic: has joined #ruby
[20:17:48] elphe: has joined #ruby
[20:18:42] Exuma: has joined #ruby
[20:27:12] jonjitsu: has joined #ruby
[20:27:12] turt2live: has joined #ruby
[20:27:13] bastilian: has joined #ruby
[20:27:28] Renich: has joined #ruby
[20:27:41] elphe: has joined #ruby
[20:29:36] Fernando-Basso: has joined #ruby
[20:34:08] zenspider: jeffspeff: just looks old. very.
[20:36:35] zenspider: sezuan: no... that's not a dependency term that is supported. supported ruby version is there... but mostly as a means of failing out, not matching.
[20:39:08] zenspider: maslen: "entries" is plural, implies array. The error does too (indexing an array with a string)... so maybe you have an array of arrays of hashes?
[20:40:12] perique: has joined #ruby
[20:40:53] cd: has joined #ruby
[20:42:27] elphe: has joined #ruby
[20:52:47] snowy: has joined #ruby
[20:54:44] Renich_: has joined #ruby
[21:02:06] elphe: has joined #ruby
[21:02:17] gigetoo: has joined #ruby
[21:02:36] maslen: zenspider: Entries is an associated array, mapping a name to another associated array
[21:03:10] dviola: has joined #ruby
[21:03:22] maslen: I guess I just don't understand which parameter on line 71 is being converted from string to integer ... I don't see any conversion happening there
[21:19:27] Exuma: has joined #ruby
[21:21:46] elphe: has joined #ruby
[21:22:21] j416: has joined #ruby
[21:23:43] Voxxit: has joined #ruby
[21:25:17] jaddison: has joined #ruby
[21:31:38] elphe: has joined #ruby
[21:39:04] elphe: has joined #ruby
[21:40:21] j416: has joined #ruby
[21:48:24] szulak_: has joined #ruby
[21:48:36] darkhanb: has joined #ruby
[21:49:48] elphe: has joined #ruby
[21:53:37] darkhanb: has joined #ruby
[21:54:03] clemens3_: has joined #ruby
[21:56:52] darkhanb: has joined #ruby
[21:58:49] clemens3: has joined #ruby
[22:02:46] CrazyEddy: has joined #ruby
[22:09:50] cnsvc: has joined #ruby
[22:11:34] akem: has joined #ruby
[22:16:36] cnsvc: has joined #ruby
[22:19:57] venmx: has joined #ruby
[22:28:14] akemot: has joined #ruby
[22:31:30] mangold: has joined #ruby
[22:36:27] Exuma: has joined #ruby
[22:36:43] pskosinski: has joined #ruby
[22:40:07] icantc: has joined #ruby
[22:42:24] jenrzzz: has joined #ruby
[22:55:20] SeepingN: has joined #ruby
[23:07:30] Puffball: has joined #ruby
[23:09:03] Renich_: has joined #ruby
[23:20:05] jaddison: has joined #ruby
[23:24:05] kapil____: has joined #ruby
[23:42:52] P1ro_: has joined #ruby