Code Monkey home page Code Monkey logo

Comments (7)

fw42 avatar fw42 commented on July 21, 2024

For my own future reference:

aliases = {}

result = ActiveRecord::Base.connection.execute(%q{
  SELECT first_name, last_name, GROUP_CONCAT(DISTINCT(email) SEPARATOR '|') FROM competitors
  GROUP BY first_name, last_name HAVING COUNT(DISTINCT(email)) > 1
}).to_a

result.each{ |u| addrs = u.last.split("|").map(&:downcase); addrs.each{ |a| aliases[a] = addrs - [a] } }

aliases

Gives a hash that maps email addresses to known other addresses of the same person.

from cubecomp.

timhabermaas avatar timhabermaas commented on July 21, 2024

These guys use Mailcheck to point out common errors in email addresses.

btw. Have you thought about sending confirmation emails? This would be the most foolproof method to make sure the user didn't mess up.

from cubecomp.

fw42 avatar fw42 commented on July 21, 2024

Interesting. That's kinda cool! I like that JS thing. We should totally use that.

I would like to avoid confirmation emails if possible, that seems like too much imho (do you disagree?). It's not really that important that an email address is valid. It's just a bit annoying (mostly for the competitor, not for us).

from cubecomp.

timhabermaas avatar timhabermaas commented on July 21, 2024

do you disagree?

I'm not sure. Sending an email is the only way for organizers to contact competitors (about missing payments, canceled events etc.). But confirming your email every time you register for a competition might get annoying. Maybe make it "Confirm your registration"? Or make it an option to require confirmation? ¯_(ツ)_/¯

from cubecomp.

fw42 avatar fw42 commented on July 21, 2024

@SAuroux what do you think?

from cubecomp.

Laura-O avatar Laura-O commented on July 21, 2024

One problem I see with automatic confirmation mails is that people might mistake them as a confirmation for their registration. When we use a prepayment system this might not be helpful.

from cubecomp.

fw42 avatar fw42 commented on July 21, 2024

I would say lets try the Mailcheck JS thing and if organizers still see a lot of broken email addresses, we can still implement confirmation emails later. I also added an MX record check (#125), so that should catch at least many typos in the domain part.

from cubecomp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.