havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.7.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
jidar has quit [Read error: Connection reset by peer]
jidar has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lepepe has quit [Ping timeout: 272 seconds]
Swyper has joined #ruby
orbyt_ has joined #ruby
hays has quit [Ping timeout: 245 seconds]
skryking has quit [Ping timeout: 268 seconds]
skryking has joined #ruby
johnny56 has joined #ruby
ElFerna has joined #ruby
psilly0 has quit [Quit: psilly0]
colechr94 has quit [Read error: Connection reset by peer]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
colechristensen has joined #ruby
leitz has quit [Quit: Leaving]
ElFerna has quit [Read error: No route to host]
ElFerna has joined #ruby
DaRock has joined #ruby
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest42592 has quit [Read error: Connection reset by peer]
Guest42592 has joined #ruby
johnny56 has quit [Ping timeout: 272 seconds]
colechr85 has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
ElFerna has quit [Quit: Konversation terminated!]
ElFerna has joined #ruby
colechristensen has quit [Ping timeout: 245 seconds]
orbyt_ has joined #ruby
lepepe has joined #ruby
chalkmonster has joined #ruby
lepepe_ has joined #ruby
CCDelivery_ has quit [Remote host closed the connection]
lepepe has quit [Ping timeout: 258 seconds]
budonyc has joined #ruby
Swyper has quit [Remote host closed the connection]
colechristensen has joined #ruby
Swyper has joined #ruby
jenrzzz has joined #ruby
Swyper_ has joined #ruby
colechr85 has quit [Ping timeout: 268 seconds]
ElFerna has quit [Quit: Konversation terminated!]
Swyper has quit [Read error: Connection reset by peer]
involans has joined #ruby
Swyper_ has quit [Ping timeout: 246 seconds]
colechristensen has quit [Ping timeout: 252 seconds]
colechristensen has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
chalkmonster has quit [Quit: WeeChat 2.5]
Swyper has joined #ruby
jenrzzz has joined #ruby
Swyper has quit [Ping timeout: 245 seconds]
involans has quit [Quit: involans]
pygmypup_ has joined #ruby
pygmypuppy has quit [Ping timeout: 246 seconds]
deepredsky has joined #ruby
hope_canyon has joined #ruby
deepreds1 has quit [Ping timeout: 258 seconds]
codefriar has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz_ has quit [Ping timeout: 246 seconds]
RiPuk has quit [Ping timeout: 272 seconds]
RiPuk has joined #ruby
johnny56 has joined #ruby
aert has joined #ruby
RiPuk has quit [Ping timeout: 244 seconds]
involans has joined #ruby
involans has quit [Quit: involans]
alnk has quit [Quit: leaving]
alnk has joined #ruby
RiPuk has joined #ruby
alnk has quit [Client Quit]
alnk has joined #ruby
code_zombie has quit [Quit: Leaving]
pygmypup_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TvL2386 has quit [Ping timeout: 246 seconds]
akem_lnvo has quit [Remote host closed the connection]
TvL2386 has joined #ruby
DTZUZO has joined #ruby
hope_canyon has quit [Quit: Leaving]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
brendan- has quit [Ping timeout: 248 seconds]
AJA4350 has quit [Quit: AJA4350]
jenrzzz has quit [Ping timeout: 248 seconds]
brendan- has joined #ruby
RiPuk has quit [Read error: Connection reset by peer]
brendan- has quit [Ping timeout: 272 seconds]
gix has quit [Ping timeout: 268 seconds]
lepepe_ has quit [Remote host closed the connection]
lepepe has joined #ruby
lepepe has quit [Ping timeout: 258 seconds]
_whitelogger has joined #ruby
chalkmonster has joined #ruby
akem-hp has joined #ruby
Joufflu has joined #ruby
colechristensen has quit [Read error: Connection reset by peer]
colechristensen has joined #ruby
fr3tz0r has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.5]
jenrzzz has quit [Ping timeout: 245 seconds]
brendan- has joined #ruby
jenrzzz has joined #ruby
Swyper has joined #ruby
Swyper has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
aert has quit [Quit: Leaving]
jenrzzz has joined #ruby
sarink has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jaequery has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ananth99 has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
jenrzzz has joined #ruby
cammellos has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
DaRock has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
conta has joined #ruby
jenrzzz has joined #ruby
mozzarella has quit [Remote host closed the connection]
jaequery has joined #ruby
mozzarella has joined #ruby
mozzarella has quit [Remote host closed the connection]
mozzarella has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
rcs has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
reber has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
sarink has quit [Ping timeout: 245 seconds]
cow[moo] has quit [Ping timeout: 248 seconds]
reber has quit [Remote host closed the connection]
sarink has joined #ruby
absolutejam has joined #ruby
schne1der has joined #ruby
sarink has quit [Ping timeout: 246 seconds]
conta has quit [Ping timeout: 272 seconds]
conta has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
RiPuk has joined #ruby
Azure has quit [Ping timeout: 244 seconds]
troulouliou_div2 has joined #ruby
schne1der has quit [Ping timeout: 245 seconds]
sarink has joined #ruby
hiroaki has quit [Ping timeout: 245 seconds]
ascarter_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarink_ has joined #ruby
sarink has quit [Read error: Connection reset by peer]
snickers has joined #ruby
jenrzzz has joined #ruby
sarink_ has quit [Remote host closed the connection]
sarink has joined #ruby
Fraeon has joined #ruby
absolutejam has quit [Ping timeout: 244 seconds]
haxx0r has joined #ruby
ascarter has joined #ruby
sarink has quit [Ping timeout: 268 seconds]
andikr has joined #ruby
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
sarink has joined #ruby
sandstrom has joined #ruby
lepepe has joined #ruby
schne1der has joined #ruby
lxsameer has joined #ruby
suukim has joined #ruby
lepepe has quit [Ping timeout: 245 seconds]
Joufflu has quit [Read error: Connection reset by peer]
TomyWork has joined #ruby
conta has quit [Ping timeout: 245 seconds]
sezuan_ is now known as sezuan
<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
<ytti> seems like a lot of bother for library i don't immediately see being particularly popular
jenrzzz has quit [Ping timeout: 268 seconds]
aupadhye has joined #ruby
conta has joined #ruby
absolutejam has joined #ruby
RiPuk has quit [Ping timeout: 246 seconds]
Cthulu201 has quit [Remote host closed the connection]
Cthulu201 has joined #ruby
meinside has joined #ruby
Dr_MDMA_MD has quit [Quit: Connection closed for inactivity]
ur5us has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 248 seconds]
Keltia has joined #ruby
Keltia has quit [Changing host]
Keltia has joined #ruby
RiPuk has joined #ruby
troulouliou_div2 has joined #ruby
RiPuk has quit [Ping timeout: 244 seconds]
conta has quit [Ping timeout: 248 seconds]
deepredsky has quit [Ping timeout: 245 seconds]
conta has joined #ruby
DaRock has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
ascarter has quit [Client Quit]
ellcs has joined #ruby
fphilipe_ has joined #ruby
fphilipe has quit [Ping timeout: 246 seconds]
ta has quit [Ping timeout: 248 seconds]
ascarter has joined #ruby
ta has joined #ruby
Swyper has joined #ruby
Tuor has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
colechristensen has quit [Quit: -a- Connection Timed Out]
colechristensen has joined #ruby
mcgee_io has joined #ruby
alem0lars has joined #ruby
ur5us has joined #ruby
deepredsky has joined #ruby
mcgee_io has left #ruby [#ruby]
luna_x has joined #ruby
conta has quit [Ping timeout: 258 seconds]
mcgee_io has joined #ruby
chalkmonster has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
jenrzzz has joined #ruby
Snowy has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
al2o3-cr has quit [Quit: If the universe is a machine where the future is uniquely determined by its present state, it would not be possible to calculate what the future will be.]
conta has joined #ruby
NL3limin4t0r_afk is now known as NL3limin4t0r
DTZUZO has quit [Ping timeout: 258 seconds]
yo-wan has joined #ruby
dbugger has joined #ruby
al2o3-cr has joined #ruby
lepepe has joined #ruby
lepepe has quit [Ping timeout: 272 seconds]
sandstrom has joined #ruby
RiPuk has joined #ruby
DTZUZU has quit [Ping timeout: 246 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
RiPuk has quit [Ping timeout: 248 seconds]
tdy4 has quit [Ping timeout: 248 seconds]
queip has quit [Ping timeout: 268 seconds]
mcgee_io has quit [Remote host closed the connection]
DTZUZU has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
BH23 has joined #ruby
queip has joined #ruby
moei has joined #ruby
DaRock has quit [Read error: Connection reset by peer]
Swyper has quit [Remote host closed the connection]
DTZUZU has quit [Ping timeout: 245 seconds]
DTZUZU has joined #ruby
<Bish> &> [*1..49].combinations(6).first
<rubydoc> parser error at position 0 around `>'
<Bish> > [*1..49].combinations(6).first
<Bish> >> [*1..49].combinations(6).first
<ruby[bot]> Bish: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<Bish> eh.
<Bish> how would i get a random combination?
cd has quit [Quit: cd]
conta has quit [Ping timeout: 245 seconds]
lepepe has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
lepepe has quit [Ping timeout: 248 seconds]
conta has joined #ruby
Snowy has quit [Quit: ragequit]
<balo> Bish: .sample(6) ?
<Bish> is that a question?
<balo> not sure what is your goal with the *, i'm not familiar with that syntax
<Bish> enumrators o not have the "sample" method
<balo> gotcha
<balo> not sure about your exact problem you are trying to solve. for me `[*1..49].sample(6)` seems to do something similar
<Bish> yeah but you're letting out one part of my code :D
ZAJDAN has quit [Quit: Konversation terminated!]
<Bish> i want a combination of 6 numbers
<Bish> not 6 random number
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
BH23 has quit [Ping timeout: 248 seconds]
Swyper has quit [Remote host closed the connection]
absolutejam1 has joined #ruby
DTZUZU has quit [Ping timeout: 246 seconds]
Swyper_ has joined #ruby
fphilipe_ has quit [Read error: Connection reset by peer]
Swyper_ has quit [Ping timeout: 246 seconds]
DTZUZU has joined #ruby
lepepe has joined #ruby
leitz has joined #ruby
lepepe has quit [Ping timeout: 258 seconds]
DTZUZO has joined #ruby
RiPuk has joined #ruby
Rudd0 has quit [Ping timeout: 245 seconds]
AJA4350 has joined #ruby
<NL3limin4t0r> Bish: It retreives 6 random elements from the array. It's not simply an array with 6 random numbers.
<NL3limin4t0r> > 12:06:27 Bish | how would i get a random combination?
<NL3limin4t0r> &>> [*1...50].sample(6)
<rubydoc> # => [13, 44, 7, 41, 24, 2] (https://carc.in/#/r/77ij)
<NL3limin4t0r> gives you a random combination
<NL3limin4t0r> Or do you want them in ordered?
<NL3limin4t0r> Or do you want them ordered?*
RiPuk has quit [Ping timeout: 272 seconds]
Rudd0 has joined #ruby
lepepe has joined #ruby
snickers has quit [Quit: Textual IRC Client: www.textualapp.com]
lepepe_ has joined #ruby
lepepe has quit [Remote host closed the connection]
leitz has quit [Quit: Leaving]
<havenwood> Bish: Give one example of the desired result?
fphilipe_ has joined #ruby
lepepe has joined #ruby
<Bish> havenwood: well, lottonumbers
<Bish> NL3limin4t0r: i always tend to get confused with combinations & permutations
<Bish> but taking 6 random numbers gives me duplicate numbers
<Bish> and i THINK combinations dont have that
<havenwood> Bish: So you want #sample, as suggested. It doesn't take duplicates.
<Bish> havenwood: i want 6 unique numbers out of [1..49]
<havenwood> Bish: Yes, #sample.
<ytti> NL3limin4t0r did that
<Bish> havenwood: sample does not hit things twice?
<havenwood> Bish: no
<Bish> oh, okay
Swyper has joined #ruby
lepepe_ has quit [Ping timeout: 245 seconds]
<Bish> never noticed
Swyper has quit [Remote host closed the connection]
<Bish> still i would be interested how would i get a random combination that way
<ytti> no need to notice, there is like 5 sentence doc for it
<Bish> would i be calling next random amount of times? or is there a way to navigate
<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.
<Bish> ytti: well, i always thought i know what sample is doing
<Bish> so there was no need for me to check it, so i thought
<ytti> 14:26 < NL3limin4t0r> &>> [*1...50].sample(6)
<ytti> 14:26 < rubydoc> # => [13, 44, 7, 41, 24, 2] (https://carc.in/#/r/77ij)
<ytti> how is this not doing what you ask?
Swyper has joined #ruby
<Bish> it does, i just didn't expect it to be
<ytti> ok, then i misunderstood your 'still ..'
<Bish> i thought sample might hit a number twice
fphilipe_ has quit [Read error: Connection reset by peer]
<Bish> ytti: yeah, still i would like to know to get a random element out of a iterator
<Bish> out of curiousity
<Bish> or would be calling next a random number of times the way to go
* ytti blinks
<ytti> what is happening here
<Bish> enumerator*
<ytti> perhaps i did acid but forgot
fphilipe_ has joined #ruby
<ytti> i'm gonna be honest with you Bish, i have no idea what you need :/
<ytti> maybe input and desired possible output would help
<Bish> well, assume i needed it to do that way
<Bish> [*1..10].combination(6)
<Bish> is there a better way to call "next" rand(1..10) times)
<Bish> on that enumerator
<Bish> i guess not.
Swyper has quit [Ping timeout: 246 seconds]
monika_ has joined #ruby
<ytti> i still have no idea what is going on, but *1..10].combination(6).to_a.sample
<Bish> yes, but that's expensive af
ddffg has joined #ruby
<Bish> and basicially calling next 10 times
<ytti> yes, yes it is
<Bish> scratch that.. more than that ofc
<Bish> n^k whatever
monika_ has quit [Client Quit]
RiPuk has joined #ruby
<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.
<Bish> havenwood: okay, thanks
<havenwood> Bish: sized_enumerator.drop(rand(0...sized_enumerator.size)).first
<havenwood> &>> sized_enumerator = 1.upto(50); sized_enumerator.drop(rand(0...sized_enumerator.size)).first
<rubydoc> # => 29 (https://carc.in/#/r/77io)
<Bish> but shouldn't be that one sized
<Bish> really odd that that enumators way of counting "it's element" is iterating through
<havenwood> Bish: That ^ one is lazily sized. The size is known.
<havenwood> &>> [].to_enum.size # This is not sized, for example.
<rubydoc> # => nil (https://carc.in/#/r/77iv)
<havenwood> &>> [].to_enum { 1 }.size # This is.
<rubydoc> # => 1 (https://carc.in/#/r/77iw)
<havenwood> Bish: ^
<NL3limin4t0r> &>> [*1...50].combination(6).size
<rubydoc> # => 13983816 (https://carc.in/#/r/77ix)
<havenwood> Bish: Note, the lazy size *can* be a lie. (It shouldn't be.)
<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
<havenwood> A tiny step towards object self awareness.
<havenwood> rb_obj_size(VALUE self, VALUE args, VALUE obj) { return LONG2FIX(1); }
<havenwood> &>> 42.then.size
<rubydoc> # => 1 (https://carc.in/#/r/77iy)
donofrio has joined #ruby
<havenwood> So that's `1` now, not `nil`. :)
<havenwood> Dunno if it matters, but seems nice to me. ¯\_(ツ)_/¯
<havenwood> Actually, I'm pretty sure it doesn't matter. Still seems nice.
conta has quit [Ping timeout: 258 seconds]
RiPuk has quit [Ping timeout: 272 seconds]
claudiuinberlin has joined #ruby
RiPuk has joined #ruby
kyrylo has joined #ruby
ddffg has quit [Ping timeout: 248 seconds]
ddffg has joined #ruby
schne1der has quit [Ping timeout: 248 seconds]
sandstrom has quit [Quit: OS X IRC Client (www.textualapp.com)]
lepepe has quit [Read error: Connection reset by peer]
yalue has joined #ruby
conta has joined #ruby
lepepe has joined #ruby
RiPuk has quit [Ping timeout: 245 seconds]
ddffg has quit [Ping timeout: 246 seconds]
RiPuk has joined #ruby
Swyper has joined #ruby
andikr has quit [Remote host closed the connection]
Swyper has quit [Ping timeout: 258 seconds]
ddffg has joined #ruby
ddffg has quit [Client Quit]
jenrzzz has joined #ruby
involans has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
Nowaker has quit [Remote host closed the connection]
Nowaker has joined #ruby
BH23 has joined #ruby
lucasb has joined #ruby
akem-lnvo has joined #ruby
matheusmoreira has quit [Ping timeout: 246 seconds]
DaRock has joined #ruby
misterioso has joined #ruby
erry has quit [Quit: WeeChat 2.4]
vondruch has quit [Ping timeout: 246 seconds]
za1b1tsu has joined #ruby
sarink_ has joined #ruby
sarink has quit [Read error: Connection reset by peer]
aupadhye has quit [Ping timeout: 268 seconds]
ljarvis_ has joined #ruby
ljarvis has quit [Read error: Connection reset by peer]
BH23 has quit [Ping timeout: 245 seconds]
conta has quit [Quit: conta]
alan_w has joined #ruby
leitz has joined #ruby
olspookishmagus has quit [Ping timeout: 245 seconds]
olspookishmagus has joined #ruby
olspookishmagus is now known as Guest62509
skryking has quit [Quit: WeeChat 2.4]
Necro^Byte has joined #ruby
woodruffw has quit [Ping timeout: 258 seconds]
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
tf2ftw has joined #ruby
akem-hp has quit [Remote host closed the connection]
queip has quit [Ping timeout: 246 seconds]
akem-hp has joined #ruby
luna_x has quit [Ping timeout: 246 seconds]
luna_x has joined #ruby
queip has joined #ruby
Inline has joined #ruby
queip has quit [Ping timeout: 245 seconds]
schne1der has joined #ruby
megamos has joined #ruby
sarink_ has quit [Remote host closed the connection]
sarink has joined #ruby
queip has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
aupadhye has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
alem0lars has quit [Ping timeout: 258 seconds]
Dr_MDMA_MD has joined #ruby
sarink has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
Yxhuvud has quit [Read error: Connection reset by peer]
Yxhuvud has joined #ruby
Inline__ has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v3.6 Beta Build (2019/07/10 UTC) 64 Bit]
Tempesta has joined #ruby
Inline has quit [Ping timeout: 264 seconds]
queip has quit [Ping timeout: 248 seconds]
tf2ftw has quit [Quit: This computer has gone to sleep]
tf2ftw has joined #ruby
ElFerna has joined #ruby
Inline__ has quit [Quit: Leaving]
queip has joined #ruby
rippa has joined #ruby
sarink has joined #ruby
Inline has joined #ruby
Swyper has joined #ruby
involans has quit [Remote host closed the connection]
tf2ftw has quit [Quit: This computer has gone to sleep]
involans has joined #ruby
involans has quit [Read error: Connection reset by peer]
involans has joined #ruby
Swyper has quit [Ping timeout: 258 seconds]
pygmypuppy has joined #ruby
sarink has quit []
suukim has quit [Quit: Konversation terminated!]
tf2ftw has joined #ruby
Tuor has quit [Quit: Konversation terminated!]
DaRock has quit [Read error: Connection reset by peer]
absolutejam has quit [Ping timeout: 245 seconds]
involans has quit [Ping timeout: 246 seconds]
Exuma has joined #ruby
deepredsky has quit [Ping timeout: 245 seconds]
tf2ftw has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
Exuma has quit [Client Quit]
involans has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
ellcs has quit [Ping timeout: 245 seconds]
orbyt_ has joined #ruby
hutch has quit [Ping timeout: 246 seconds]
Exuma has joined #ruby
tf2ftw has joined #ruby
Necro^Byte has quit [Ping timeout: 244 seconds]
Exuma has quit [Client Quit]
jaequery has joined #ruby
sepp2k has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
involans has quit [Quit: involans]
psilly0 has joined #ruby
tf2ftw has quit [Quit: This computer has gone to sleep]
falconfox has joined #ruby
cow[moo] has joined #ruby
Exuma has joined #ruby
luna_x has quit [Quit: WeeChat 2.3]
s3nd1v0g1us has joined #ruby
involans has joined #ruby
Exuma has quit [Client Quit]
jaequery has quit [Ping timeout: 268 seconds]
TomyWork has quit [Remote host closed the connection]
TomyWork has joined #ruby
tf2ftw has joined #ruby
Inside has joined #ruby
<Inside> Can I complain to y'all about python?
<Inside> I do miss the block syntax of ruby :(
<ytti> list comprehensions are so fugly
TomyWork has quit [Ping timeout: 246 seconds]
<mozzarella> ytti: right? I'd rather chain iterator methods
<ytti> many things in python obviously shout that it wasnt designed with coherent picture at mind
<ytti> OO stuff seems taped on
<ytti> randomly function(object) object.method, makes it php-esque, you just gotta know
<ytti> map/reduce are 2nd class citizens later added on by someone who missed them from proper languages
<ytti> build-in magic methods you just gotta know __getitem__, __sub__ ...
<ytti> very poor control on what is internal implementation and what is API
<ytti> and yet the general impression is that ruby is bit of a web toy language, while python is more grown up
<ytti> nothing could be further from the truth to anyone with cursory understanding of both languages
<ytti> alas $dayjob is full python
<Inside> Heh
<Inside> I'm using python because it definitely has better graphing/ui/data analysis stuff, but am posting results to a RoR server
<ytti> of course terrific library overrides language argument
<ytti> and for many domains python libraries are much much better
tdy4 has joined #ruby
<havenwood> Inside: Python has really thorough coverage for graphics bindings.
<havenwood> A lot better than Ruby in that regard, unfortunately for Rubyists.
<Inside> I'm using pyside2 (qt5)... ruby has bindings for some ancient version of qt4
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lepepe has quit [Remote host closed the connection]
lepepe has joined #ruby
ElFerna has quit [Quit: ElFerna]
involans has quit [Quit: involans]
lepepe has quit [Ping timeout: 246 seconds]
tf2ftw has quit [Quit: This computer has gone to sleep]
lepepe has joined #ruby
involans has joined #ruby
lepepe has quit [Ping timeout: 258 seconds]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
s3nd1v0g1us has quit [Quit: WeeChat 2.4]
tf2ftw has joined #ruby
xco has quit [Quit: xco]
_ikke_ has quit [Ping timeout: 264 seconds]
Guest42592 has quit [Read error: Connection reset by peer]
Guest42592 has joined #ruby
Guest42592 has quit [Read error: Connection reset by peer]
Guest42592 has joined #ruby
_ikke_ has joined #ruby
houhoulis has joined #ruby
claudiuinberlin has joined #ruby
aupadhye has quit [Quit: Leaving]
lepepe has joined #ruby
tf2ftw has quit [Quit: This computer has gone to sleep]
lepepe_ has joined #ruby
tf2ftw has joined #ruby
tf2ftw has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
conta has joined #ruby
falconfox has quit [Ping timeout: 246 seconds]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
houhouli_ has joined #ruby
lepepe has quit [Ping timeout: 248 seconds]
megamos has quit [Ping timeout: 268 seconds]
conta has quit [Read error: Connection reset by peer]
conta has joined #ruby
Swyper has quit [Ping timeout: 245 seconds]
houhoulis has quit [Ping timeout: 245 seconds]
queip has quit [Ping timeout: 245 seconds]
lepepe has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
lepepe_ has quit [Ping timeout: 258 seconds]
Nicmavr has joined #ruby
queip has joined #ruby
NL3limin4t0r is now known as NL3limin4t0r_afk
houhouli_ has quit [Ping timeout: 272 seconds]
<leitz> Anyone know if Ruby 3.x is likely out in the next 2-4 years?
* havenwood stares into a glowing orb...
Guest42592 has quit [Quit: Leaving]
falconfox has joined #ruby
Exuma has joined #ruby
* leitz thinks havenwood should stare into a multi-faceted gem...
paraxial has quit [Quit: The Lounge - https://thelounge.chat]
<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.
paraxial has joined #ruby
dellavg_ has joined #ruby
absolutejam has joined #ruby
jenrzzz has joined #ruby
dan64- has joined #ruby
gix has joined #ruby
dan64 has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
tf2ftw has joined #ruby
code_zombie has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
skryking has joined #ruby
xco has joined #ruby
exmortus has quit [Remote host closed the connection]
pygmypuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
tf2ftw has quit [Quit: This computer has gone to sleep]
tf2ftw has joined #ruby
lepepe_ has joined #ruby
CCDelivery has joined #ruby
queip has quit [Ping timeout: 248 seconds]
augcesar has joined #ruby
lepepe has quit [Ping timeout: 244 seconds]
jcalla has quit [Ping timeout: 246 seconds]
queip has joined #ruby
Dr_MDMA_MD has quit []
tf2ftw has quit [Quit: This computer has gone to sleep]
gb_away has quit [Ping timeout: 245 seconds]
alem0lars has joined #ruby
caduguedess has joined #ruby
<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 .
<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
Swyper has joined #ruby
<havenwood> caduguedess: Looks like that project uses delayed_job for its worker queue. I'm assuming email is using that queue.
<havenwood> caduguedess: Are you running delayed_job locally?
<havenwood> caduguedess: RAILS_ENV=production script/delayed_job start
Swyper has quit [Read error: Connection reset by peer]
<havenwood> well, not the `production` bit :P
Swyper has joined #ruby
<caduguedess> I dont know if I'm running it, I just run "bundle exec rails server" to make it work
<havenwood> caduguedess: Or better yet, these days: bin/rails jobs:work
<havenwood> caduguedess: then you're not running it
<havenwood> caduguedess: also run: bin/rails jobs:work
<havenwood> caduguedess: (From another terminal.)
<havenwood> It looks like neither script/delayed_job nor bin/delayed_job were generated, for whatever reason
Swyper has quit [Ping timeout: 245 seconds]
<caduguedess> I did run bin/rails jobs:work and tried to re-send the email, but not received yet
<havenwood> caduguedess: Are you running Redis locally?
<caduguedess> yes, in my machine
<havenwood> any log results from trying?: bin/rails jobs:work
<caduguedess> actually
<caduguedess> redis?
<caduguedess> you mean the RoR project?
<havenwood> yeah, Redis
<caduguedess> I dont think so
<havenwood> caduguedess: Redis is what delayed_job uses to queue jobs.
<havenwood> caduguedess: What OS/distro are you on?
<caduguedess> Ubuntu 18.04
<caduguedess> after bin/rails jobs:work it didnt produced nothing in the console
<caduguedess> just [Worker(host:carlos-Inspiron-7773 pid:19052)] Starting job worker
<caduguedess> and nothing after I retried the email sending
falconfox has quit []
<caduguedess> About the Redis, I dont think I'm using it
<havenwood> caduguedess: sudo apt-get update && sudo apt-get install -y redis-server && sudo systemctl start redis-server.service
<caduguedess> ok
<havenwood> caduguedess: Ah, looks like delayed_job supports multiple backends - not just Redis: https://github.com/collectiveidea/delayed_job/wiki/Backends
<caduguedess> done
<havenwood> I usually use Sidekiq or Resque.
<havenwood> caduguedess: I don't see Redis listed as a dep, actually: https://github.com/openstreetmap/openstreetmap-website/blob/master/INSTALL.md
<caduguedess> Should it be? Or it may use another lib to send the confirmation email?
<caduguedess> in the folder /app/mailers/ there are the files notifier.rb and application_mailer.rb
<adam12> I like Que if I'm using Postgres. No extra dependency.
SeepingN has joined #ruby
<adam12> or Suckerpunch if you don't care about job persistence.
<havenwood> yeah, I've used SuckerPunch too.
<havenwood> adam12: I like the idea of fewer deps.
<adam12> havenwood: I love redis but I feel like it's introduced wayy too early for a lot of projects.
<caduguedess> so the openstreetmap uses the notifier to send the email?
<havenwood> caduguedess: I may have led you on a wild goose chase as it seems they're not using jobs for mail...
conta has quit [Quit: conta]
<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
<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
<caduguedess> about the redis, should I uninstall it if I will not use?
<havenwood> caduguedess: Yes, I'd just uninstall it.
<havenwood> caduguedess: I was flat wrong.
<havenwood> caduguedess: I guessed first without looking at the repo. >.>
<caduguedess> Which commands should I run to do it in the right way?
envex has quit [Ping timeout: 244 seconds]
<havenwood> sudo systemctl stop redis-server.service && sudo apt-get purge -y redis-server &&
<havenwood> caduguedess: ^ that but no trailing &&
integral has joined #ruby
tf2ftw has joined #ruby
<havenwood> caduguedess: Or, maybe a bit better: sudo systemctl stop redis-server.service && sudo apt-get purge --auto-remove redis-server
<havenwood> caduguedess: (Stop the service, uninstall it.)
<caduguedess> ok, done
<caduguedess> Thanks for help, Ill try to check the action mailer thing
<havenwood> Good luck!
houhoulis has joined #ruby
cd has joined #ruby
extrowerk has left #ruby [#ruby]
lxsameer has quit [Ping timeout: 245 seconds]
haxx0r has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
dellavg_ has quit [Ping timeout: 244 seconds]
CCDelivery has quit [Remote host closed the connection]
xco has quit [Quit: xco]
hutch has joined #ruby
snickers has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lol768_ is now known as lol768
involans has quit [Quit: involans]
tdy4 has quit [Remote host closed the connection]
yalue has quit [Quit: Leaving]
involans has joined #ruby
brendan- has quit [Quit: Textual IRC Client: www.textualapp.com]
dan64- has quit [Quit: ZNC - http://znc.in]
dan64 has joined #ruby
akem-lnvo has quit [Ping timeout: 268 seconds]
dbugger has quit [Quit: Leaving]
RiPuk has quit [Ping timeout: 268 seconds]
gb_away has joined #ruby
jcalla has joined #ruby
tf2ftw has quit [Quit: This computer has gone to sleep]
ur5us has joined #ruby
ddffg has joined #ruby
ddffg is now known as mumisko
RiPuk has joined #ruby
mumisko has left #ruby [#ruby]
RiPuk has quit [Ping timeout: 248 seconds]
lxsameer has joined #ruby
schne1der has quit [Ping timeout: 272 seconds]
yo-wan has quit [Remote host closed the connection]
RiPuk has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
Dr_MDMA_MD has joined #ruby
RiPuk has quit [Ping timeout: 246 seconds]
caduguedess has quit [Quit: Leaving.]
RiPuk has joined #ruby
Inline has quit [Quit: Leaving]
ober has joined #ruby
alem0lars has quit [Ping timeout: 268 seconds]
RiPuk has quit [Ping timeout: 246 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
absolutejam has quit [Ping timeout: 248 seconds]
RiPuk has joined #ruby
RiPuk has quit [Read error: Connection reset by peer]
RiPuk has joined #ruby
alan_w has quit [Ping timeout: 245 seconds]
absolutejam has joined #ruby
lepepe has joined #ruby
lepepe has quit [Remote host closed the connection]
leitz has quit [Quit: Leaving]
Fernando-Basso has joined #ruby
lepepe_ has quit [Ping timeout: 272 seconds]
xco has joined #ruby
johnny56 has quit [Ping timeout: 272 seconds]
fr3tz0r has joined #ruby
absolutejam1 has quit [Ping timeout: 246 seconds]
houhoulis has quit [Remote host closed the connection]
houhoulis has joined #ruby
teej has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
absolutejam1 has joined #ruby
RiPuk has quit [Ping timeout: 258 seconds]
lepepe has joined #ruby
DTZUZO has quit [Ping timeout: 248 seconds]
lepepe_ has joined #ruby
absolutejam has quit [Ping timeout: 258 seconds]
reaVer has joined #ruby
lepepe has quit [Ping timeout: 246 seconds]
lxsameer has quit [Ping timeout: 244 seconds]
lepepe_ has quit [Remote host closed the connection]
lepepe has joined #ruby
xco has quit [Quit: xco]
shah^ has quit [Ping timeout: 248 seconds]
RiPuk has joined #ruby
lepepe has quit [Ping timeout: 246 seconds]
RiPuk has quit [Ping timeout: 246 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
moei has quit [Quit: Leaving...]
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
Exuma has joined #ruby
Exuma has quit [Client Quit]
Thenekofell has joined #ruby
caduguedess has joined #ruby
orbyt_ has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
codefriar has joined #ruby
codefriar has quit [Client Quit]
jcalla has quit [Ping timeout: 272 seconds]
Swyper has joined #ruby
Swyper has quit [Read error: Connection reset by peer]
Swyper__ has joined #ruby
involans has quit [Quit: involans]
lucasb has quit [Quit: Connection closed for inactivity]
Swyper__ has quit [Ping timeout: 245 seconds]
johnny56 has joined #ruby
involans has joined #ruby
jcalla has joined #ruby
RyanMcCoskrie has joined #ruby
Dr_MDMA_MD has quit []
Dr_MDMA_MD has joined #ruby
<havenwood> Neat extension for pattern matching: https://bugs.ruby-lang.org/issues/15865
<havenwood> This is something I've been wanting lately. Great to see an experimental go ahead!
involans has quit [Quit: involans]
<havenwood> even for very simple things, it's a great alternative to =/== ambiguity
colechr60 has joined #ruby
<havenwood> `while message in connection.read` has none of the funkiness of `while (message = connection.read)`
colechristensen has quit [Ping timeout: 246 seconds]
<havenwood> \o/
queip has quit [Ping timeout: 246 seconds]
houhoulis has quit [Remote host closed the connection]