Hello Python

Posted by & filed under Python.

As I talked about earlier, I am beginning to learn Python. I thought that this could be a good opportunity to document what I am learning and share my thoughts, experience and code. To be totally cliche, I figured I would first demonstrate how to create the Hello World program in Python. The most simplistic… Read more »

Magento Debugging Basics

Posted by & filed under Magento.

Magento is a big system. If you are developing for Magento it is inevitable that you are going to either need to trace down a big or just figure out how a particular process works. The best thing to do is to start with the controller that is triggered when the process starts. If you… Read more »

Have Your Magento Caches Update Themselves

Posted by & filed under Magento.

Magento has a lot of caches. They are (in my opinion) the biggest reason Magento is usable as a platform (If you think Magento runs slowly now – turn them off for a little bit). One thing that I as a programmer find odd is that the caches in Magento are intelligent enough to flag… Read more »

Get Your Magento System’s Time

Posted by & filed under Magento.

Magento handles time in a pretty different way. Instead of just using the time on the server it automatically converts the time to the selected time zone in Magento’s system. The way to get the current time is by using the following code: Mage::getModel(‘core/date’)->timestamp(time()); What this will do is take the timestamp that you get… Read more »