Tag Archive for 'HOWTO'
June 29th, 2010 by tim
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
March 31st, 2010 by tim
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 [...]
June 2nd, 2009 by tim
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 [...]
June 2nd, 2009 by tim
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 = [...]
April 17th, 2009 by tim
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, [...]
February 25th, 2009 by tim
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 [...]
January 26th, 2009 by tim
I started another blog so I have a place to rant about comics or movies or whatever else I need to get off my chest, and I needed an excuse to play with wordpress (something I’ve been wanting to do for a while). I plan on posting how I did certain things on that blog [...]
December 23rd, 2008 by tim
As the year starts to wind down, I figure I should start the year off with a clean inbox. I try to keep no unread messages in my inbox, instead I tag and archive. These past few weeks however, my inbox has gotten a little crazy. I found this filter to show me all my [...]
November 24th, 2008 by tim
This came in veeeerrryyy handy just now… Stop the MySQL Server sudo /etc/init.d/mysql stop Start the mysqld config sudo mysqld –skip-grant-tables & Login to the server as root mysql -u root mysql Ser your NEWPASSWORD UPDATE user SET Password=PASSWORD(‘NEWPASSWORD’) WHERE User=’root’; FLUSH PRIVILEGES; exit;
October 6th, 2008 by tim
Using a tool called Dapper and Yahoo Pipes, its fairly easy to turn any webpage into an RSS feed. Dapper is a powerful HTML scrapping system and Pipes is a handy data remixing tool. Head on over to dapper.net and check to make sure someone hasn’t already done what you are planning on doing (Do [...]