Get Mouse co-ordinates on page

I happen to work on elements relative to viewports with interaction to mouse movements a lot lately. It was a pain to console log mouse events and examin the exact co-ords of mouse. So I wrote a simple javascript to give me mouse co-ordinates in a tooltip. !function() { var coordContainer = document.createElement(‘DIV’); coordContainer.id = […]

Read More...

Magento ‘This account is locked.’

Today I was setting up Magento with sample data and the default admin wouldn’t let me in the Magento backend. And because I was on windows I was unable to get the email from ‘Forgor your password link’ Here is what I did to unlock the admin user. The file ‘app\code\core\Mage\Adminhtml\IndexController.php’ contains the ‘forgotpasswordAction’ which […]

Read More...