Quantcast
Channel: a day in the pit » Code
Browsing all 2 articles
Browse latest View live

Validating Emails in Ruby on Rails

It's time to validate e-mail addresses and you're sitting in a Ruby on Rails application. Fortunately, there are a few methods to tackle such a task, and a combination of them can yield a pretty nice...

View Article



PHP array_diff vs foreach: a battle for speed

1000 runs w/ 1000 data elements in the two arrays (php array diff): 2.7389E-5 seconds 1000 runs w/ 1000 data elements in the two arrays (php foreach): 1.085E-7 seconds php array diff slower by 2.728E-5...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images