gpowered.net is now timbroder.com

Hi all, some of you may have noticed this site is no longer on the gpowered.net domain.  I've been wanting to move onto wordpress for a while now and also do some additional writing beyond code stuffs which would be outside of the scope of gpowered.  I also unfortunately (or fortunately because I love my job) don't have as much time as I used to to research and post how to's.  Heavy django and magento going on lately, I'll try to post about those. There are two RSS links at the top, RSS has everything on…

Pig Roast

Had a great time at Crossfit Virtuosity's anniversary pig roast this past weekend. mmmm pig

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

iPhone4 vs HTC Evo

Warning: cursing

Wedding Planning

Tim: aside from not being a buffet, the food looks redic Tim: also, they are using joomla for their site via maybe-not.

SyntaxHighlighter Evolved

I'm currently in the process of migrating gpowerd.net over to this domain and onto wordpress. SyntaxHighlighter has been upgraded quite a bit since I last wrote about it.  I came across a great plugin to handle the code highlighting for me on wordpress.  I love the plugin, didn't have to go into the wordpress template. It doesn't support the old pre syntax that I had been using previously but it was simple to add in. Patch to add this to 2.3.8 is below, Thanks to Alex for the plugin

Lazy bum

Jack guards the office

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 the present: The result:

IE9 platform preview

Interested in checking out the new Web platform capabilities of Internet Explorer 9? Download the Internet Explorer Platform Preview right now.

Hide buzz without disabling it

If you want people to see your buzzes, but like myself want to keep checking people's google reader shares IN google reader, and see twitter in twitter, you can hide the Buzz label. Go into settings > labels > buzz > hide

Why Google Needs Buzz

Why Google Needs Buzz: "

Google Buzz? Facebook Email?

Google Buzz quetly came out, adds friendfeed like functionality to gmail Facebook is also launching email, interesting times ahead in the communication world.

Django Admin inline preview

Update: This code lives on Github To get inline Admin Previews in the list view Inherit from PreviewAdmin in your ModelAdmin In your model's template directory, create a folder called preview, and create a template for that model's preview Example for model Article then edit Whatever is in article.html will be shown inline Access your Article object through {{ object }} in the template

Get the admin url for a django model

Add this to your model to be able to get their admin change link from anywhere Useful if you want to jump to the admin screen of an object you are looking at on the front end

Remaining character count in django admin

Update: This code also lives on Github Want to display the remaining characters on a text field in admin? (based off of maxlength or an override)