« Back to channel list

#ruby - 11 July 2019

« Back 1 day Forward 1 day »
[00:01:03] jidar: has joined #ruby
[00:05:01] Swyper: has joined #ruby
[00:07:24] orbyt_: has joined #ruby
[00:10:32] skryking: has joined #ruby
[00:12:38] johnny56: has joined #ruby
[00:12:44] ElFerna: has joined #ruby
[00:17:26] colechristensen: has joined #ruby
[00:22:26] ElFerna: has joined #ruby
[00:22:36] DaRock: has joined #ruby
[00:28:43] Guest42592: has joined #ruby
[00:30:34] colechr85: has joined #ruby
[00:33:28] ElFerna: has joined #ruby
[00:41:47] orbyt_: has joined #ruby
[00:42:27] lepepe: has joined #ruby
[00:45:39] chalkmonster: has joined #ruby
[00:48:08] lepepe_: has joined #ruby
[00:53:45] budonyc: has joined #ruby
[00:56:23] colechristensen: has joined #ruby
[00:57:10] Swyper: has joined #ruby
[00:59:43] jenrzzz: has joined #ruby
[01:00:28] Swyper_: has joined #ruby
[01:01:17] involans: has joined #ruby
[01:05:34] colechristensen: has joined #ruby
[01:09:10] Swyper: has joined #ruby
[01:12:40] jenrzzz: has joined #ruby
[01:18:51] pygmypup_: has joined #ruby
[01:48:03] deepredsky: has joined #ruby
[01:50:38] hope_canyon: has joined #ruby
[01:57:12] codefriar: has joined #ruby
[01:58:03] jenrzzz_: has joined #ruby
[02:05:48] RiPuk: has joined #ruby
[02:08:58] johnny56: has joined #ruby
[02:10:50] aert: has joined #ruby
[02:15:11] involans: has joined #ruby
[02:38:22] alnk: has joined #ruby
[02:38:57] RiPuk: has joined #ruby
[02:39:56] alnk: has joined #ruby
[02:53:55] TvL2386: has joined #ruby
[02:55:07] DTZUZO: has joined #ruby
[02:59:41] jenrzzz: has joined #ruby
[03:09:32] jenrzzz: has joined #ruby
[03:14:10] brendan-: has joined #ruby
[03:21:13] lepepe: has joined #ruby
[03:30:12] _whitelogger: has joined #ruby
[03:38:28] chalkmonster: has joined #ruby
[03:39:34] akem-hp: has joined #ruby
[03:40:57] Joufflu: has joined #ruby
[03:44:18] colechristensen: has joined #ruby
[03:59:42] jenrzzz: has joined #ruby
[04:11:52] jenrzzz: has joined #ruby
[04:19:52] brendan-: has joined #ruby
[04:20:02] jenrzzz: has joined #ruby
[04:20:32] Swyper: has joined #ruby
[04:29:17] jenrzzz: has joined #ruby
[04:29:46] sarink: has joined #ruby
[04:37:24] jaequery: has joined #ruby
[04:51:05] ananth99: has joined #ruby
[04:52:12] sarink: has joined #ruby
[04:57:57] jenrzzz: has joined #ruby
[05:02:25] cammellos: has joined #ruby
[05:12:30] jenrzzz: has joined #ruby
[05:19:12] conta: has joined #ruby
[05:19:14] jenrzzz: has joined #ruby
[05:29:49] jaequery: has joined #ruby
[05:31:26] mozzarella: has joined #ruby
[05:33:47] mozzarella: has joined #ruby
[05:36:20] rcs: has joined #ruby
[05:40:00] ur5us: has joined #ruby
[05:43:02] sarink: has joined #ruby
[05:43:11] reber: has joined #ruby
[05:51:23] sarink: has joined #ruby
[05:51:26] absolutejam: has joined #ruby
[05:54:48] schne1der: has joined #ruby
[06:00:40] conta: has joined #ruby
[06:06:57] xco: has joined #ruby
[06:16:45] RiPuk: has joined #ruby
[06:26:53] troulouliou_div2: has joined #ruby
[06:28:59] sarink: has joined #ruby
[06:34:11] sarink_: has joined #ruby
[06:35:38] snickers: has joined #ruby
[06:36:11] jenrzzz: has joined #ruby
[06:37:31] sarink: has joined #ruby
[06:38:20] Fraeon: has joined #ruby
[06:40:14] haxx0r: has joined #ruby
[06:41:43] ascarter: has joined #ruby
[06:42:41] andikr: has joined #ruby
[06:43:11] sarink: has joined #ruby
[06:48:49] Nicmavr: has joined #ruby
[06:50:12] sarink: has joined #ruby
[06:55:07] sandstrom: has joined #ruby
[06:55:35] lepepe: has joined #ruby
[06:56:46] schne1der: has joined #ruby
[06:57:42] lxsameer: has joined #ruby
[06:59:19] suukim: has joined #ruby
[07:11:31] TomyWork: has joined #ruby
[07:14:56] ytti: http://nakedsecurity.sophos.com/2019/07/09/backdoor-discovered-in-ruby-strong_password-library/
[07:15:42] ytti: anyone know what is going on here? Where is that library even used? Why did someone bother owning rubygems to troyan it? And how did they own rubygems
[07:15:59] ytti: seems like a lot of bother for library i don't immediately see being particularly popular
[07:18:58] aupadhye: has joined #ruby
[07:25:24] conta: has joined #ruby
[07:35:16] absolutejam: has joined #ruby
[07:38:26] Cthulu201: has joined #ruby
[07:39:43] meinside: has joined #ruby
[07:40:36] ur5us: has joined #ruby
[07:48:35] Keltia: has joined #ruby
[07:48:48] Keltia: has joined #ruby
[07:51:24] RiPuk: has joined #ruby
[07:51:31] troulouliou_div2: has joined #ruby
[08:08:32] conta: has joined #ruby
[08:10:37] DaRock: has joined #ruby
[08:13:51] ascarter: has joined #ruby
[08:19:29] ellcs: has joined #ruby
[08:20:03] fphilipe_: has joined #ruby
[08:24:26] ascarter: has joined #ruby
[08:25:01] ta: has joined #ruby
[08:26:10] Swyper: has joined #ruby
[08:28:36] tuor: has joined #ruby
[08:37:41] colechristensen: has joined #ruby
[08:42:49] mcgee-io: has joined #ruby
[08:47:41] alem0lars: has joined #ruby
[08:49:48] ur5us: has joined #ruby
[08:49:59] deepredsky: has joined #ruby
[08:55:45] mcgee-io: has left #ruby: ()
[08:56:08] luna_x: has joined #ruby
[09:04:40] mcgee-io: has joined #ruby
[09:06:30] chalkmonster: has joined #ruby
[09:13:49] jenrzzz: has joined #ruby
[09:17:20] snowy: has joined #ruby
[09:18:43] conta: has joined #ruby
[09:20:01] yo-wan: has joined #ruby
[09:24:10] Dbugger: has joined #ruby
[09:24:30] al2o3-cr: has joined #ruby
[09:26:44] lepepe: has joined #ruby
[09:37:47] sandstrom: has joined #ruby
[09:38:30] RiPuk: has joined #ruby
[09:42:04] ur5us: has joined #ruby
[09:46:15] dtzuzu: has joined #ruby
[09:48:33] BH23: has joined #ruby
[09:52:58] queip: has joined #ruby
[09:53:42] moei: has joined #ruby
[10:00:58] dtzuzu: has joined #ruby
[10:05:48] Bish: &> [*1..49].combinations(6).first
[10:05:48] rubydoc: parser error at position 0 around `>'
[10:05:51] Bish: > [*1..49].combinations(6).first
[10:05:55] Bish: >> [*1..49].combinations(6).first
[10:06:00] ruby[bot]: Bish: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[10:06:27] Bish: how would i get a random combination?
[10:07:45] lepepe: has joined #ruby
[10:09:06] Swyper: has joined #ruby
[10:15:41] conta: has joined #ruby
[10:21:58] balo: Bish: .sample(6) ?
[10:22:28] Bish: is that a question?
[10:22:39] balo: not sure what is your goal with the *, i'm not familiar with that syntax
[10:22:39] Bish: enumrators o not have the "sample" method
[10:24:19] balo: not sure about your exact problem you are trying to solve. for me `[*1..49].sample(6)` seems to do something similar
[10:26:12] Bish: yeah but you're letting out one part of my code :D
[10:26:28] Bish: i want a combination of 6 numbers
[10:26:34] Bish: not 6 random number
[10:26:45] Swyper: has joined #ruby
[10:27:02] Swyper: has joined #ruby
[10:30:45] absolutejam1: has joined #ruby
[10:34:27] Swyper_: has joined #ruby
[10:39:30] dtzuzu: has joined #ruby
[10:45:54] lepepe: has joined #ruby
[10:54:57] leitz: has joined #ruby
[11:14:02] DTZUZO: has joined #ruby
[11:18:07] RiPuk: has joined #ruby
[11:21:30] AJA4350: has joined #ruby
[11:24:36] NL3limin4t0r: Bish: It retreives 6 random elements from the array. It's not simply an array with 6 random numbers.
[11:26:02] NL3limin4t0r: > 12:06:27 Bish | how would i get a random combination?
[11:26:54] NL3limin4t0r: &>> [*1...50].sample(6)
[11:26:58] rubydoc: # => [13, 44, 7, 41, 24, 2] (https://carc.in/#/r/77ij)
[11:27:02] NL3limin4t0r: gives you a random combination
[11:27:43] NL3limin4t0r: Or do you want them in ordered?
[11:29:02] NL3limin4t0r: Or do you want them ordered?*
[11:36:13] Rudd0: has joined #ruby
[11:37:12] lepepe: has joined #ruby
[11:39:29] lepepe_: has joined #ruby
[11:41:58] havenwood: Bish: Give one example of the desired result?
[11:49:13] fphilipe_: has joined #ruby
[11:50:08] lepepe: has joined #ruby
[11:50:24] Bish: havenwood: well, lottonumbers
[11:51:07] Bish: NL3limin4t0r: i always tend to get confused with combinations & permutations
[11:51:22] Bish: but taking 6 random numbers gives me duplicate numbers
[11:51:33] Bish: and i THINK combinations dont have that
[11:51:56] havenwood: Bish: So you want #sample, as suggested. It doesn't take duplicates.
[11:52:11] Bish: havenwood: i want 6 unique numbers out of [1..49]
[11:52:19] havenwood: Bish: Yes, #sample.
[11:52:22] ytti: NL3limin4t0r did that
[11:52:33] Bish: havenwood: sample does not hit things twice?
[11:52:43] Bish: oh, okay
[11:52:50] Swyper: has joined #ruby
[11:53:01] Bish: never noticed
[11:53:42] Bish: still i would be interested how would i get a random combination that way
[11:53:51] ytti: no need to notice, there is like 5 sentence doc for it
[11:53:58] Bish: would i be calling next random amount of times? or is there a way to navigate
[11:54:07] ytti: which says ' unique indices into the array in order to ensure that an element doesn't repeat itself unless the array already contained duplicate elements.
[11:54:09] Bish: ytti: well, i always thought i know what sample is doing
[11:54:24] Bish: so there was no need for me to check it, so i thought
[11:54:38] ytti: 14:26 < NL3limin4t0r> &>> [*1...50].sample(6)
[11:54:39] ytti: 14:26 < rubydoc> # => [13, 44, 7, 41, 24, 2] (https://carc.in/#/r/77ij)
[11:54:44] ytti: how is this not doing what you ask?
[11:54:50] Swyper: has joined #ruby
[11:54:53] Bish: it does, i just didn't expect it to be
[11:55:13] ytti: ok, then i misunderstood your 'still ..'
[11:55:15] Bish: i thought sample might hit a number twice
[11:55:31] Bish: ytti: yeah, still i would like to know to get a random element out of a iterator
[11:55:35] Bish: out of curiousity
[11:55:46] Bish: or would be calling next a random number of times the way to go
[11:56:04] ytti: ACTION blinks
[11:56:12] ytti: what is happening here
[11:56:52] Bish: enumerator*
[11:56:52] ytti: perhaps i did acid but forgot
[11:57:33] fphilipe_: has joined #ruby
[11:57:45] ytti: i'm gonna be honest with you Bish, i have no idea what you need :/
[11:57:57] ytti: maybe input and desired possible output would help
[11:58:06] Bish: well, assume i needed it to do that way
[11:58:10] Bish: [*1..10].combination(6)
[11:58:46] Bish: is there a better way to call "next" rand(1..10) times)
[11:58:55] Bish: on that enumerator
[11:59:08] Bish: i guess not.
[11:59:22] monika_: has joined #ruby
[11:59:41] ytti: i still have no idea what is going on, but *1..10].combination(6).to_a.sample
[11:59:50] Bish: yes, but that's expensive af
[11:59:51] ddffg: has joined #ruby
[11:59:59] Bish: and basicially calling next 10 times
[12:00:01] ytti: yes, yes it is
[12:00:12] Bish: scratch that.. more than that ofc
[12:00:20] Bish: n^k whatever
[12:01:07] RiPuk: has joined #ruby
[12:01:27] havenwood: Bish: You can implement #sample for a lazily sized Enumerator, but for an unsized one you have to iterate the entire collection just to count it anyways.
[12:01:44] Bish: havenwood: okay, thanks
[12:01:51] havenwood: Bish: sized_enumerator.drop(rand(0...sized_enumerator.size)).first
[12:01:59] havenwood: &>> sized_enumerator = 1.upto(50); sized_enumerator.drop(rand(0...sized_enumerator.size)).first
[12:01:59] rubydoc: # => 29 (https://carc.in/#/r/77io)
[12:03:05] Bish: but shouldn't be that one sized
[12:05:24] Bish: really odd that that enumators way of counting "it's element" is iterating through
[12:06:03] havenwood: Bish: That ^ one is lazily sized. The size is known.
[12:07:11] havenwood: &>> [].to_enum.size # This is not sized, for example.
[12:07:12] rubydoc: # => nil (https://carc.in/#/r/77iv)
[12:07:19] havenwood: &>> [].to_enum { 1 }.size # This is.
[12:07:20] rubydoc: # => 1 (https://carc.in/#/r/77iw)
[12:07:45] NL3limin4t0r: &>> [*1...50].combination(6).size
[12:07:45] rubydoc: # => 13983816 (https://carc.in/#/r/77ix)
[12:07:51] havenwood: Bish: Note, the lazy size *can* be a lie. (It shouldn't be.)
[12:08:35] havenwood: I did a PR to change the output of #yield_self/#then to be a sized Enumerator, which meant teaching Ruby objects their size is one. :P
[12:09:00] havenwood: A tiny step towards object self awareness.
[12:09:57] havenwood: rb_obj_size(VALUE self, VALUE args, VALUE obj) { return LONG2FIX(1); }
[12:10:40] havenwood: &>> 42.then.size
[12:10:41] rubydoc: # => 1 (https://carc.in/#/r/77iy)
[12:10:51] donofrio: has joined #ruby
[12:10:52] havenwood: So that's `1` now, not `nil`. :)
[12:11:13] havenwood: Dunno if it matters, but seems nice to me. ¯\_(ツ)_/¯
[12:12:05] havenwood: Actually, I'm pretty sure it doesn't matter. Still seems nice.
[12:15:58] claudiuinberlin: has joined #ruby
[12:16:57] RiPuk: has joined #ruby
[12:17:04] kyrylo: has joined #ruby
[12:19:20] ddffg: has joined #ruby
[12:26:52] yalue: has joined #ruby
[12:27:12] conta: has joined #ruby
[12:27:16] lepepe: has joined #ruby
[12:35:37] RiPuk: has joined #ruby
[12:35:48] Swyper: has joined #ruby
[12:42:14] ddffg: has joined #ruby
[12:45:42] jenrzzz: has joined #ruby
[12:49:06] involans: has joined #ruby
[12:53:14] Nowaker: has joined #ruby
[12:56:53] BH23: has joined #ruby
[12:57:23] lucasb: has joined #ruby
[13:00:05] akem-lnvo: has joined #ruby
[13:02:40] DaRock: has joined #ruby
[13:04:49] misterioso: has joined #ruby
[13:07:49] za1b1tsu: has joined #ruby
[13:11:02] sarink_: has joined #ruby
[13:20:11] ljarvis_: has joined #ruby
[13:36:27] alan_w: has joined #ruby
[13:37:05] leitz: has joined #ruby
[13:40:29] olspookishmagus: has joined #ruby
[13:48:11] Necro^Byte: has joined #ruby
[13:53:20] woodruffw: has joined #ruby
[13:53:21] woodruffw: has joined #ruby
[14:00:24] tf2ftw: has joined #ruby
[14:04:55] akem-hp: has joined #ruby
[14:10:09] luna_x: has joined #ruby
[14:10:24] queip: has joined #ruby
[14:13:35] Inline: has joined #ruby
[14:21:47] schne1der: has joined #ruby
[14:24:35] Megamos: has joined #ruby
[14:25:06] sarink: has joined #ruby
[14:26:48] queip: has joined #ruby
[14:29:56] sarink: has joined #ruby
[14:30:24] sarink: has joined #ruby
[14:33:41] aupadhye: has joined #ruby
[14:36:50] sarink: has joined #ruby
[14:38:59] Dr_MDMA_MD: has joined #ruby
[14:46:02] jenrzzz: has joined #ruby
[14:50:40] yxhuvud: has joined #ruby
[14:55:39] Inline__: has joined #ruby
[14:57:03] Tempesta: has joined #ruby
[15:02:05] tf2ftw: has joined #ruby
[15:05:41] ElFerna: has joined #ruby
[15:06:23] queip: has joined #ruby
[15:07:11] rippa: has joined #ruby
[15:09:46] sarink: has joined #ruby
[15:09:58] Inline: has joined #ruby
[15:14:12] Swyper: has joined #ruby
[15:15:46] involans: has joined #ruby
[15:16:42] involans: has joined #ruby
[15:19:41] pygmypuppy: has joined #ruby
[15:21:31] tf2ftw: has joined #ruby
[15:42:10] Exuma: has joined #ruby
[15:45:21] jenrzzz: has joined #ruby
[15:48:21] involans: has joined #ruby
[15:58:42] orbyt_: has joined #ruby
[16:03:40] Exuma: has joined #ruby
[16:03:45] tf2ftw: has joined #ruby
[16:10:27] jaequery: has joined #ruby
[16:10:48] sepp2k: has joined #ruby
[16:12:20] psilly0: has joined #ruby
[16:14:12] falconfox: has joined #ruby
[16:15:09] cow[moo]: has joined #ruby
[16:17:39] Exuma: has joined #ruby
[16:19:06] s3nd1v0g1us: has joined #ruby
[16:19:44] involans: has joined #ruby
[16:21:36] TomyWork: has joined #ruby
[16:23:35] tf2ftw: has joined #ruby
[16:25:44] Inside: has joined #ruby
[16:25:51] Inside: Can I complain to y'all about python?
[16:25:56] Inside: I do miss the block syntax of ruby :(
[16:26:30] ytti: list comprehensions are so fugly
[16:26:58] mozzarella: ytti: right? I'd rather chain iterator methods
[16:27:34] ytti: many things in python obviously shout that it wasnt designed with coherent picture at mind
[16:27:39] ytti: OO stuff seems taped on
[16:27:56] ytti: randomly function(object) object.method, makes it php-esque, you just gotta know
[16:28:23] ytti: map/reduce are 2nd class citizens later added on by someone who missed them from proper languages
[16:28:45] ytti: build-in magic methods you just gotta know __getitem__, __sub__ ...
[16:29:00] ytti: very poor control on what is internal implementation and what is API
[16:29:20] ytti: and yet the general impression is that ruby is bit of a web toy language, while python is more grown up
[16:29:31] ytti: nothing could be further from the truth to anyone with cursory understanding of both languages
[16:30:24] ytti: alas $dayjob is full python
[16:30:52] Inside: I'm using python because it definitely has better graphing/ui/data analysis stuff, but am posting results to a RoR server
[16:31:11] ytti: of course terrific library overrides language argument
[16:31:18] ytti: and for many domains python libraries are much much better
[16:31:50] tdy4: has joined #ruby
[16:32:02] havenwood: Inside: Python has really thorough coverage for graphics bindings.
[16:32:19] havenwood: A lot better than Ruby in that regard, unfortunately for Rubyists.
[16:32:49] Inside: I'm using pyside2 (qt5)... ruby has bindings for some ancient version of qt4
[16:35:19] lepepe: has joined #ruby
[16:42:18] lepepe: has joined #ruby
[16:45:08] involans: has joined #ruby
[16:50:22] tf2ftw: has joined #ruby
[16:57:07] tf2ftw: has joined #ruby
[17:03:28] Guest42592: has joined #ruby
[17:03:47] Guest42592: has joined #ruby
[17:03:58] mikker: has joined #ruby
[17:06:03] houhoulis: has joined #ruby
[17:08:39] claudiuinberlin: has joined #ruby
[17:13:55] lepepe: has joined #ruby
[17:15:26] lepepe_: has joined #ruby
[17:15:47] tf2ftw: has joined #ruby
[17:16:30] Swyper: has joined #ruby
[17:17:08] conta: has joined #ruby
[17:17:38] tf2ftw: has joined #ruby
[17:17:41] houhoulis: has joined #ruby
[17:20:10] conta: has joined #ruby
[17:23:31] lepepe: has joined #ruby
[17:28:31] Nicmavr: has joined #ruby
[17:29:28] queip: has joined #ruby
[17:35:28] leitz: Anyone know if Ruby 3.x is likely out in the next 2-4 years?
[17:36:25] havenwood: ACTION stares into a glowing orb...
[17:47:24] falconfox: has joined #ruby
[17:53:20] Exuma: has joined #ruby
[17:54:17] leitz: ACTION thinks havenwood should stare into a multi-faceted gem...
[17:55:14] leitz: Now and again I e-mail people who have written Ruby books. I'll politely point out that a new version of their book, timed with the release of Ruby 3, might be opportune.
[17:55:32] Paraxial: has joined #ruby
[17:57:02] dellavg_: has joined #ruby
[18:01:17] absolutejam: has joined #ruby
[18:08:06] jenrzzz: has joined #ruby
[18:09:48] dan64-: has joined #ruby
[18:11:02] gix: has joined #ruby
[18:25:47] claudiuinberlin: has joined #ruby
[18:35:03] tf2ftw: has joined #ruby
[18:38:22] code_zombie: has joined #ruby
[18:46:16] skryking: has joined #ruby
[18:46:20] xco: has joined #ruby
[18:52:38] tf2ftw: has joined #ruby
[18:54:06] lepepe_: has joined #ruby
[18:55:42] CCDelivery: has joined #ruby
[18:57:39] augcesar: has joined #ruby
[19:04:03] queip: has joined #ruby
[19:13:01] alem0lars: has joined #ruby
[19:14:51] caduguedess: has joined #ruby
[19:15:39] caduguedess: Hi, I've installed a Ruby on Rails project (OpenStreetMapWebsite https://github.com/openstreetmap/openstreetmap-website ). I can access it through localhost:3000 but I'm not receiving the confirmation email after signing up. I can only activate accounts through the Rails Console. I tried to follow RoR tutorials but couldn't figure it out. How could I set the mailer to make it work? I appreciate any help .
[19:16:55] caduguedess: It comes with some erb files that seems to be used to send the emails, but I don't know how to set them to work, thats why I couldnt follow a tutorial because the tutorials teach how to make them from scratch
[19:17:27] Swyper: has joined #ruby
[19:17:33] havenwood: caduguedess: Looks like that project uses delayed_job for its worker queue. I'm assuming email is using that queue.
[19:17:47] havenwood: caduguedess: Are you running delayed_job locally?
[19:18:07] havenwood: caduguedess: RAILS_ENV=production script/delayed_job start
[19:18:19] havenwood: well, not the `production` bit :P
[19:18:39] Swyper: has joined #ruby
[19:20:08] havenwood: caduguedess: https://github.com/collectiveidea/delayed_job#running-jobs
[19:20:47] caduguedess: I dont know if I'm running it, I just run "bundle exec rails server" to make it work
[19:20:49] havenwood: caduguedess: Or better yet, these days: bin/rails jobs:work
[19:20:58] havenwood: caduguedess: then you're not running it
[19:21:06] havenwood: caduguedess: also run: bin/rails jobs:work
[19:21:14] havenwood: caduguedess: (From another terminal.)
[19:22:41] havenwood: It looks like neither script/delayed_job nor bin/delayed_job were generated, for whatever reason
[19:23:18] caduguedess: I did run bin/rails jobs:work and tried to re-send the email, but not received yet
[19:23:43] havenwood: caduguedess: Are you running Redis locally?
[19:23:55] caduguedess: yes, in my machine
[19:24:10] havenwood: any log results from trying?: bin/rails jobs:work
[19:24:18] caduguedess: you mean the RoR project?
[19:24:19] havenwood: yeah, Redis
[19:24:28] caduguedess: I dont think so
[19:24:49] havenwood: caduguedess: Redis is what delayed_job uses to queue jobs.
[19:25:06] havenwood: caduguedess: What OS/distro are you on?
[19:25:29] caduguedess: after bin/rails jobs:work it didnt produced nothing in the console
[19:25:39] caduguedess: just [Worker(host:carlos-Inspiron-7773 pid:19052)] Starting job worker
[19:26:01] caduguedess: and nothing after I retried the email sending
[19:26:27] caduguedess: About the Redis, I dont think I'm using it
[19:26:46] havenwood: caduguedess: sudo apt-get update && sudo apt-get install -y redis-server && sudo systemctl start redis-server.service
[19:28:04] havenwood: caduguedess: Ah, looks like delayed_job supports multiple backends - not just Redis: https://github.com/collectiveidea/delayed_job/wiki/Backends
[19:29:06] havenwood: I usually use Sidekiq or Resque.
[19:29:29] havenwood: caduguedess: I don't see Redis listed as a dep, actually: https://github.com/openstreetmap/openstreetmap-website/blob/master/INSTALL.md
[19:30:19] caduguedess: Should it be? Or it may use another lib to send the confirmation email?
[19:30:29] havenwood: caduguedess: https://github.com/openstreetmap/openstreetmap-website/blob/master/app/mailers/notifier.rb
[19:30:33] caduguedess: in the folder /app/mailers/ there are the files notifier.rb and application_mailer.rb
[19:30:41] adam12: I like Que if I'm using Postgres. No extra dependency.
[19:30:51] SeepingN: has joined #ruby
[19:31:01] adam12: or Suckerpunch if you don't care about job persistence.
[19:31:31] havenwood: yeah, I've used SuckerPunch too.
[19:31:36] havenwood: adam12: I like the idea of fewer deps.
[19:31:53] adam12: havenwood: I love redis but I feel like it's introduced wayy too early for a lot of projects.
[19:32:04] caduguedess: so the openstreetmap uses the notifier to send the email?
[19:32:15] havenwood: caduguedess: I may have led you on a wild goose chase as it seems they're not using jobs for mail...
[19:33:33] havenwood: caduguedess: It's been a while since I've used ActionMailer. If you haven't read the docs recently, they're probably worth a read: https://guides.rubyonrails.org/action_mailer_basics.html
[19:34:22] caduguedess: Actually I did read, but couldn't figure it out which file I have to modify, since the tutorials says to create files and the project already have the files with different names
[19:34:57] caduguedess: about the redis, should I uninstall it if I will not use?
[19:37:07] havenwood: caduguedess: Yes, I'd just uninstall it.
[19:37:08] havenwood: caduguedess: I was flat wrong.
[19:37:18] havenwood: caduguedess: I guessed first without looking at the repo. >.>
[19:37:31] caduguedess: Which commands should I run to do it in the right way?
[19:39:12] havenwood: sudo systemctl stop redis-server.service && sudo apt-get purge -y redis-server &&
[19:39:41] havenwood: caduguedess: ^ that but no trailing &&
[19:39:45] integral: has joined #ruby
[19:40:24] tf2ftw: has joined #ruby
[19:40:33] havenwood: caduguedess: Or, maybe a bit better: sudo systemctl stop redis-server.service && sudo apt-get purge --auto-remove redis-server
[19:40:51] havenwood: caduguedess: (Stop the service, uninstall it.)
[19:41:45] caduguedess: Thanks for help, Ill try to check the action mailer thing
[19:42:00] houhoulis: has joined #ruby
[19:44:09] cd: has joined #ruby
[19:45:22] extrowerk: has left #ruby: ()
[19:55:06] jenrzzz: has joined #ruby
[20:03:21] hutch: has joined #ruby
[20:05:02] snickers: has joined #ruby
[20:21:00] involans: has joined #ruby
[20:29:46] dan64: has joined #ruby
[20:53:04] gb_away: has joined #ruby
[20:53:07] jcalla: has joined #ruby
[21:03:44] ur5us: has joined #ruby
[21:04:12] ddffg: has joined #ruby
[21:05:45] RiPuk: has joined #ruby
[21:06:40] mumisko: has left #ruby: ()
[21:11:29] lxsameer: has joined #ruby
[21:16:23] RiPuk: has joined #ruby
[21:20:41] Dr_MDMA_MD: has joined #ruby
[21:22:43] RiPuk: has joined #ruby
[21:24:19] Ober: has joined #ruby
[21:41:30] RiPuk: has joined #ruby
[21:49:42] RiPuk: has joined #ruby
[21:52:29] absolutejam: has joined #ruby
[21:53:28] lepepe: has joined #ruby
[21:56:32] Fernando-Basso: has joined #ruby
[21:57:31] xco: has joined #ruby
[22:00:14] fr3tz0r: has joined #ruby
[22:06:34] houhoulis: has joined #ruby
[22:12:03] teej: has joined #ruby
[22:16:46] absolutejam1: has joined #ruby
[22:20:08] lepepe: has joined #ruby
[22:21:28] lepepe_: has joined #ruby
[22:23:58] reaVer: has joined #ruby
[22:26:43] lepepe: has joined #ruby
[22:30:29] RiPuk: has joined #ruby
[22:38:27] shah^: has joined #ruby
[22:38:51] shah^: has joined #ruby
[22:39:15] shah^: has joined #ruby
[22:39:35] shah^: has joined #ruby
[22:39:53] shah^: has joined #ruby
[22:40:12] shah^: has joined #ruby
[22:42:53] Exuma: has joined #ruby
[22:45:55] Thenekofell: has joined #ruby
[22:51:18] caduguedess: has joined #ruby
[23:05:24] orbyt_: has joined #ruby
[23:12:46] codefriar: has joined #ruby
[23:20:41] Swyper: has joined #ruby
[23:22:59] Swyper__: has joined #ruby
[23:27:28] johnny56: has joined #ruby
[23:34:37] involans: has joined #ruby
[23:35:45] jcalla: has joined #ruby
[23:44:17] RyanMcCoskrie: has joined #ruby
[23:48:12] Dr_MDMA_MD: has joined #ruby
[23:53:38] havenwood: Neat extension for pattern matching: https://bugs.ruby-lang.org/issues/15865
[23:54:11] havenwood: This is something I've been wanting lately. Great to see an experimental go ahead!
[23:54:56] havenwood: even for very simple things, it's a great alternative to =/== ambiguity
[23:55:31] colechr60: has joined #ruby
[23:56:00] havenwood: `while message in connection.read` has none of the funkiness of `while (message = connection.read)`