This has helped me immensely in situations like “Where is this getting called from??!?” Create a helper like so: That can be called from anywhere: I’ve also wrapped this into a module that you can drop right into your project. Details here: https://bitbucket.org/broderboy/magento_callstack/src Example output: Thanks to nextide for some of the code
Posts Tagged: HOWTO
Want user available in every template in Django?
Create a context processor settings.py context_processors.py user is now available in any template: source: stackoverflow
Displaying Custom Attributes on the Product Page in Magento
At some point you may not want to use the canned attributes.phtml groupings that magento provides, or you just want to cherry pick which attributes to show on your product listing page template/catalog/product/view.phtml $_product = $this->getProduct(); //For the attribute bike_specs_rear_shock $_product->getResource()->getAttribute(‘bike_specs_rear_shock’)->getStoreLabel(); //label $_product->getbike_specs_rear_shock(); //value
select foo, count(*) from bar group by foo in django
Every once in a while you need some old fashion SQL style queries in django. This is a common one for reporting and aggregation. Its fairly easy to replicate in a queryset. Say I wanted to get the authors and the number of articles they have written going back to the beginning of 2009 to… Read more »
WordPress Plugin: Displaying your Google Reader RSS subscriptions
I’ve been meaning to write this code for a while, and I really wanted to take a stab at writing a wordpress plugin so here it goes. The following takes in Google user credentials, and allows the user to display what RSS feeds they subscribe to on their wordpress blog Example: The RSS that I… Read more »
Quick Google Authentication in PHP
Here is a quick way to authenticate against Google and retrieve a protected feed. It does not use the supported ClientLogin method but it does allow you to get to some unsupported feeds (Reader, Bookmarks, etc) The Zend Gdata library is required $show_list = ‘show-google-reader-sub-list’; //the hook in a page $login = ”; $pass =… Read more »
How to manage podcasts in Winamp (screw itunes)
So I really have been digging the Windows 7 beta. However, Itunes does not sync podcasts correctly on the 64 bit version. IF syncing works at all, it takes a while. I had used winamp to listen to my music a while ago, but had switched to amarok when I started single booting linux (yes,… Read more »
Installing Ubuntu Netbook Remix (with Jaunty) on an MSI Wind
I recently picked up a MSI Wind Netbook and love the damn thing. Ubuntu Netbook Remix brings in a great UI which makes navigating on the small screen much easier.I used Ubuntu Jaunty Jackalope Alpha 4 as the base install, mainly because I didn’t want to go through the trouble of converting my ext3 partitions… Read more »










