News for hackers. Stuff that matters.
Re:Rent time with founders from Parse, Hipmunk, Sincerely an... by bambax on Tuesday April 03, 2012 @03:28PM (#3794396)
Trying to create an account on exec:

- email cannot contain the '+' character (yes it can!)

- phone should be 10 characters long

I can go around the first problem but not the second one (I'm in France: country prefix (33) + number = 11 pos).

I understand the service is targeted at SF residents right now, but since it's available for "virtual" tasks, why be so restrictive?

Re:Rent time with founders from Parse, Hipmunk, Sincerely an... by justin on Tuesday April 03, 2012 @03:43PM (#3794459)
Sorry, right now I don't think we have a good way to validate international phone numbers, we should fix that soon. The email refusing "+" was because of a crappy lib that I was using, and it isn't terribly high on the list of things to fix.

So, I guess the real answer is that it is restrictive because that was what was easiest.. sorry :(

Re:Rent time with founders from Parse, Hipmunk, Sincerely an... by clavalle on Tuesday April 03, 2012 @04:13PM (#3794605)
Here is some handy regex:

/^([\w\!\#$\%\&\'\\+\-\/\=\?\^\`{\|\}\~]+\.)[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,6})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)$/i

Re:Rent time with founders from Parse, Hipmunk, Sincerely an... by icebraining on Tuesday April 03, 2012 @04:20PM (#3794639)
Apparently, you need something like this to fully comply with the RFC: http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html

Or you can just do some basic checks and verify it by sending an actual email.

Re:Rent time with founders from Parse, Hipmunk, Sincerely an... by duaneb on Tuesday April 03, 2012 @05:12PM (#3794850)
Or just check for an @ symbol and use confirmation email.
Re:Rent time with founders from Parse, Hipmunk, Sincerely an... by wging on Tuesday April 03, 2012 @11:09PM (#3796035)
It's worth hesitating before introducing a confirmation-email step. You're certainly going to lose people every time you increase the complexity of the signup process.
Re:Rent time with founders from Parse, Hipmunk, Sincerely an... by Uchikoma on Wednesday April 04, 2012 @05:06AM (#3796759)
In some countries (EU?) you're required to do a confirmation-email step.
Re:Rent time with founders from Parse, Hipmunk, Sincerely an... by nullflux on Tuesday April 03, 2012 @07:24PM (#3795328)
MX/A records can be useful for this as well.
Re:Rent time with founders from Parse, Hipmunk, Sincerely an... by fizx on Wednesday April 04, 2012 @12:15AM (#3796156)
Also, libphonenumber from google works.
Re:Rent time with founders from Parse, Hipmunk, Sincerely an... by buro9 on Wednesday April 04, 2012 @06:03AM (#3796873)
2nd this.

You shouldn't need to worry about phone numbers, just use libphonenumber and you're done.

Re:Rent time with founders from Parse, Hipmunk, Sincerely an... by baq on Tuesday April 03, 2012 @03:49PM (#3794493)
fyi: see itu-t e.123 for standardized phone number notation: http://www.itu.int/rec/T-REC-E.123-200102-I/e