News for hackers. Stuff that matters.

ralphchurch

Re:Why using a regex to validate emails is a dangerous game on Friday February 08, 2013 @01:36PM (#5189376)
Here is a fully compliant regex. It is nasty. http://ex-parrot.com/~pdw/Mail-RFC822-Address.html
Note: The method that I used to locate this (stackoverflow) did not show the worst non-deleted question, but stopped at the second worst.

Using data.stackexchange.com, I located this: http://i.imgur.com/nmrP3Xe.png

Sorry for the misleading title, according to stackoverflow site search, it was the worst (questions => sort by vote => last page, last result)

caveat: It is the worst undeleted question in history through 2/7/13. It may be possible to browse here for a worse deleted question: http://data.stackexchange.com/ , but I'm not sure if they remain in the database.

It has gone through over a dozen revisions and isn't nearly as horrible as it once was. http://stackoverflow.com/posts/3455660/revisions

Re:What is Branch Prediction? on Tuesday February 05, 2013 @04:52PM (#5173499)
The author of the answer has set multiple world records for calculating digits of pi. I highly recommend browsing through his answer history. You can learn more from his answers than from entire computer science classes.

http://stackoverflow.com/users/922184/mysticial

"The 1 and 2 character names are common because in earlier versions of Basic, variable names were restricted to 2 characters max."

Straight out of the stone ages