Archive for March, 2010

Find duplicate entries in MySQL

Sunday, March 14th, 2010

select address, count(address) as cnt
from mailing_list
group by address
having cnt > 1
order by cnt;

undefined method `before_persisting’ for Authlogic::Session::Base:Class (NoMethodError)

Thursday, March 11th, 2010

If you are using rails 3.0.0 beta and authlogic, you may see this after you add authlogic in your GemFile. This is a bug in authlogic, you need to disable the authlogic from the GemFile and install authlogic latest plugin as well. The latest authlogic build fixed the problem.