Comments (7)
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.
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.
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.
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.
@SAuroux what do you think?
from cubecomp.
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.
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)
- WCA delegate
- Event overview has wrong registration numbers HOT 4
- Confirmation mails marked as spam HOT 5
- Remove "Newcomer"-comment for guest from checklist HOT 2
- Date displayed incorrectly if spread over multiple months
- WCA database script not working on Mac OS X HOT 1
- Bug in Stats HOT 3
- Loading front page with custom domain should only show competitions that use that domain
- Broken CSV export HOT 8
- Competitor comparison not working HOT 4
- Competitor limit for competitions
- Uniformly width for each table at schedule
- Wrong weekday for birthdays HOT 5
- French Flag not displayed HOT 2
- Swiss Nationals: Psych sheet error HOT 3
- Lichtenstein missing as a country HOT 1
- Unnoticed mail delivery failures HOT 1
- Option to partially close registration
- Add support for "other" gender HOT 1
- s/United States/USA HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cubecomp.