<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for pieceofpy.com</title>
	<atom:link href="http://pieceofpy.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://pieceofpy.com</link>
	<description>Another python blog with a love for agile methods.</description>
	<lastBuildDate>Mon, 25 Jan 2010 20:27:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on I Need a New Theme by Wayne</title>
		<link>http://pieceofpy.com/2009/04/09/i-need-a-new-theme/comment-page-1/#comment-350</link>
		<dc:creator>Wayne</dc:creator>
		<pubDate>Mon, 25 Jan 2010 20:27:56 +0000</pubDate>
		<guid isPermaLink="false">http://pieceofpy.com/index.php/2009/04/09/i-need-a-new-theme/#comment-350</guid>
		<description>I&#039;ve not really found a Python blogging solution that is as feature rich or easy to use as Wordpress. Wordpress can be installed on pretty much any shared hosting server in a matter of seconds, in fact most have one-click installations for it. My projects happen to be Python, unless I have a practical reason to use a different language, but it doesn&#039;t mean that all the software that powers my every day from Wordpress, to Mac OS X, to my Twitter client has to be Python.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve not really found a Python blogging solution that is as feature rich or easy to use as Wordpress. Wordpress can be installed on pretty much any shared hosting server in a matter of seconds, in fact most have one-click installations for it. My projects happen to be Python, unless I have a practical reason to use a different language, but it doesn&#8217;t mean that all the software that powers my every day from Wordpress, to Mac OS X, to my Twitter client has to be Python.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on I Need a New Theme by Chris Santiago</title>
		<link>http://pieceofpy.com/2009/04/09/i-need-a-new-theme/comment-page-1/#comment-343</link>
		<dc:creator>Chris Santiago</dc:creator>
		<pubDate>Sun, 24 Jan 2010 18:17:40 +0000</pubDate>
		<guid isPermaLink="false">http://pieceofpy.com/index.php/2009/04/09/i-need-a-new-theme/#comment-343</guid>
		<description>I find it a bit awkward that you are running a blog dedicated to Python and not using Python software for it, not that it&#039;s a bad thing.</description>
		<content:encoded><![CDATA[<p>I find it a bit awkward that you are running a blog dedicated to Python and not using Python software for it, not that it&#8217;s a bad thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQLalchemy and JSON w/ Pylons &#8211; Best Practices by Chris Santiago</title>
		<link>http://pieceofpy.com/2009/08/17/sqlalchemy-and-json-w-pylons-best-practices/comment-page-1/#comment-342</link>
		<dc:creator>Chris Santiago</dc:creator>
		<pubDate>Sun, 24 Jan 2010 18:02:41 +0000</pubDate>
		<guid isPermaLink="false">http://pieceofpy.com/?p=316#comment-342</guid>
		<description>Personally, to avoid all of that boilerplate code, I just take advantage of the fact that Elixir Entity objects have a to_dict/from_dict method crafted especially for JSON, although I&#039;m not too sure how nesting works for different cases, but it&#039;s pretty solid for me anyway.</description>
		<content:encoded><![CDATA[<p>Personally, to avoid all of that boilerplate code, I just take advantage of the fact that Elixir Entity objects have a to_dict/from_dict method crafted especially for JSON, although I&#8217;m not too sure how nesting works for different cases, but it&#8217;s pretty solid for me anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on paster shell &#8211; do people know about it? by Alex Conrad</title>
		<link>http://pieceofpy.com/2010/01/21/paster-shell-do-people-know-about-it/comment-page-1/#comment-321</link>
		<dc:creator>Alex Conrad</dc:creator>
		<pubDate>Thu, 21 Jan 2010 11:25:48 +0000</pubDate>
		<guid isPermaLink="false">http://pieceofpy.com/?p=329#comment-321</guid>
		<description>Plus, if you have ipython installed, it will be automatically loaded. It&#039;s just awesome for debugging (%pdb ipython command).</description>
		<content:encoded><![CDATA[<p>Plus, if you have ipython installed, it will be automatically loaded. It&#8217;s just awesome for debugging (%pdb ipython command).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What I Look For In A Job by Wayne</title>
		<link>http://pieceofpy.com/2010/01/20/what-i-look-for-in-a-job/comment-page-1/#comment-313</link>
		<dc:creator>Wayne</dc:creator>
		<pubDate>Wed, 20 Jan 2010 16:02:01 +0000</pubDate>
		<guid isPermaLink="false">http://pieceofpy.com/?p=322#comment-313</guid>
		<description>Your last comment is exactly what I was getting at. The work itself doesn&#039;t have to be the star. I don&#039;t want to be at a company that is just coat tailing the latest trends and chasing a buck.

I am always happy when I am creating. I am always happy when I am writing software. Even in the worst environments, at the end of the day, I am getting paid to do what I love. I get paid to do what I do when I&#039;m not getting paid.

This post was more of a what I look for when I look. These aren&#039;t hard and fast rules and there is balance and trade offs for everything, but I am the type who will take a lower salary or a less convenient commute to work at place that meets more of the &quot;requirements&quot;.</description>
		<content:encoded><![CDATA[<p>Your last comment is exactly what I was getting at. The work itself doesn&#8217;t have to be the star. I don&#8217;t want to be at a company that is just coat tailing the latest trends and chasing a buck.</p>
<p>I am always happy when I am creating. I am always happy when I am writing software. Even in the worst environments, at the end of the day, I am getting paid to do what I love. I get paid to do what I do when I&#8217;m not getting paid.</p>
<p>This post was more of a what I look for when I look. These aren&#8217;t hard and fast rules and there is balance and trade offs for everything, but I am the type who will take a lower salary or a less convenient commute to work at place that meets more of the &#8220;requirements&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What I Look For In A Job by j_king</title>
		<link>http://pieceofpy.com/2010/01/20/what-i-look-for-in-a-job/comment-page-1/#comment-312</link>
		<dc:creator>j_king</dc:creator>
		<pubDate>Wed, 20 Jan 2010 14:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://pieceofpy.com/?p=322#comment-312</guid>
		<description>You&#039;re asking for a lot.

Hopefully you can compromise and find something that gives you at least one or two of your &quot;requirements.&quot;

However, the only likely way you will fulfill all of these is to work for yourself.

Although I hear hitting yourself on the head with a hammer might reintroduce youthful enthusiasm and ambition. ;)

Honestly though, try not to put your expectations into something else. Only you can feel refreshed, excited, and what-have-you about what it is you do. Whether that&#039;s making yet another Internet frob or developing QA software for medical calibration devices, the work itself isn&#039;t fulfilling. It&#039;s only fulfilling if you feel fulfilled.</description>
		<content:encoded><![CDATA[<p>You&#8217;re asking for a lot.</p>
<p>Hopefully you can compromise and find something that gives you at least one or two of your &#8220;requirements.&#8221;</p>
<p>However, the only likely way you will fulfill all of these is to work for yourself.</p>
<p>Although I hear hitting yourself on the head with a hammer might reintroduce youthful enthusiasm and ambition. <img src='http://pieceofpy.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Honestly though, try not to put your expectations into something else. Only you can feel refreshed, excited, and what-have-you about what it is you do. Whether that&#8217;s making yet another Internet frob or developing QA software for medical calibration devices, the work itself isn&#8217;t fulfilling. It&#8217;s only fulfilling if you feel fulfilled.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Exercise even a programmer can do. by Ned Giuliani</title>
		<link>http://pieceofpy.com/2008/11/05/exercise-even-a-programmer-can-do/comment-page-1/#comment-309</link>
		<dc:creator>Ned Giuliani</dc:creator>
		<pubDate>Fri, 15 Jan 2010 04:59:48 +0000</pubDate>
		<guid isPermaLink="false">http://pieceofpy.com/?p=210#comment-309</guid>
		<description>Awesome site. Gives me the motivation to lose weight this year. Will be visiting again</description>
		<content:encoded><![CDATA[<p>Awesome site. Gives me the motivation to lose weight this year. Will be visiting again</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQLalchemy and JSON w/ Pylons &#8211; Best Practices by Daniel</title>
		<link>http://pieceofpy.com/2009/08/17/sqlalchemy-and-json-w-pylons-best-practices/comment-page-1/#comment-308</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Thu, 14 Jan 2010 16:17:12 +0000</pubDate>
		<guid isPermaLink="false">http://pieceofpy.com/?p=316#comment-308</guid>
		<description>You can use the object_mapper to iterate over all the ORM-defined properties in your mapped class. Usually there are interesting and uninteresting properties as far as serialization goes.

[source language=&#039;python&#039;]
from sqlalchemy.orm.util import object_mapper
from sqlalchemy.orm.properties import ColumnProperty, RelationProperty

class MappedClass(Base):
    ...
    def properties(self):
        propdict = {}
        for prop in object_mapper(self).iterate_properties:
              if isinstance(prop, (ColumnProperty)) or
                  isinstance(prop, RelationProperty) and prop.secondary:
                      propdict[prop.key] = getattr(self, prop.key)
[/source]</description>
		<content:encoded><![CDATA[<p>You can use the object_mapper to iterate over all the ORM-defined properties in your mapped class. Usually there are interesting and uninteresting properties as far as serialization goes.</p>
<p>[source language='python']<br />
from sqlalchemy.orm.util import object_mapper<br />
from sqlalchemy.orm.properties import ColumnProperty, RelationProperty</p>
<p>class MappedClass(Base):<br />
    &#8230;<br />
    def properties(self):<br />
        propdict = {}<br />
        for prop in object_mapper(self).iterate_properties:<br />
              if isinstance(prop, (ColumnProperty)) or<br />
                  isinstance(prop, RelationProperty) and prop.secondary:<br />
                      propdict[prop.key] = getattr(self, prop.key)<br />
[/source]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sucker for the green. Python GUI Green-Bar? by Paul Hildebrandt</title>
		<link>http://pieceofpy.com/2009/01/06/sucker-for-the-green-python-gui-green-bar/comment-page-1/#comment-307</link>
		<dc:creator>Paul Hildebrandt</dc:creator>
		<pubDate>Thu, 07 Jan 2010 05:44:29 +0000</pubDate>
		<guid isPermaLink="false">http://pieceofpy.com/?p=224#comment-307</guid>
		<description>I&#039;m pinging you too about this project.  It would be awesome to have PyDev use nose and produce a red/green bar.</description>
		<content:encoded><![CDATA[<p>I&#8217;m pinging you too about this project.  It would be awesome to have PyDev use nose and produce a red/green bar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery getJSON and IE cache by daoming</title>
		<link>http://pieceofpy.com/2009/08/13/jquery-getjson-and-ie-cache/comment-page-1/#comment-306</link>
		<dc:creator>daoming</dc:creator>
		<pubDate>Wed, 16 Dec 2009 17:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://pieceofpy.com/?p=313#comment-306</guid>
		<description>I had the same problem.

Here is the solution if you are using MVC: 

[OutputCache(Duration = 0, VaryByParam = &quot;None&quot;)]

http://daomingworks.wordpress.com/2009/12/16/jquery-getjson-data-has-been-cached/</description>
		<content:encoded><![CDATA[<p>I had the same problem.</p>
<p>Here is the solution if you are using MVC: </p>
<p>[OutputCache(Duration = 0, VaryByParam = "None")]</p>
<p><a href="http://daomingworks.wordpress.com/2009/12/16/jquery-getjson-data-has-been-cached/" rel="nofollow">http://daomingworks.wordpress.com/2009/12/16/jquery-getjson-data-has-been-cached/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
