<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?
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
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.
<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…]
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?
<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?