Tag Archive for 'HOWTO'

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 [...]

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 [...]

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 = [...]

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, [...]

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 [...]

How to get brightkite photos into an RSS feed (to post to a blog)

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 [...]

Finding unread gmails (or: the best gmail filter ever)

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 [...]

Set / Change / Reset the MySQL root password on Ubuntu Linux (Ubuntu)

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;

How to turn any webpage into an RSS feed

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 [...]



timbroder.com is Digg proof thanks to caching by WP Super Cache