<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>{me: narendra}</title>
	<atom:link href="http://eastman.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://eastman.wordpress.com</link>
	<description>all in one</description>
	<lastBuildDate>Thu, 21 Jan 2010 12:32:50 +0000</lastBuildDate>
	<language></language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='eastman.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>{me: narendra}</title>
		<link>http://eastman.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://eastman.wordpress.com/osd.xml" title="{me: narendra}" />
	<atom:link rel='hub' href='http://eastman.wordpress.com/?pushpress=hub'/>
		<item>
		<title>thread locals and user object in django</title>
		<link>http://eastman.wordpress.com/2009/11/23/thread-locals-and-user-object-in-django/</link>
		<comments>http://eastman.wordpress.com/2009/11/23/thread-locals-and-user-object-in-django/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 07:26:45 +0000</pubDate>
		<dc:creator>eastman</dc:creator>
				<category><![CDATA[DJango]]></category>

		<guid isPermaLink="false">http://eastman.wordpress.com/?p=31</guid>
		<description><![CDATA[There is an interesting scenario regarding automation of routines related to model. I want make my model in such a way that, everytime it is modified by some user, it should automatically set &#8220;modified by&#8221; field with current logged in &#8230; <a href="http://eastman.wordpress.com/2009/11/23/thread-locals-and-user-object-in-django/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eastman.wordpress.com&amp;blog=106185&amp;post=31&amp;subd=eastman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There is an interesting scenario regarding automation of routines related to model.</p>
<p>I want make my model in such a way that, everytime it is modified by some user, it should automatically set &#8220;modified by&#8221; field with current logged in user.<br />
first step is to override &#8220;save&#8221; method in model, do update fields as you require and call super class save method.<br />
but the question is, how model can access logged in user object, there is no request object wright?<br />
there is a way with thread locals to deal with this kind of situation, click on following link<br />
<a href="http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser">thread local and user objct in django models</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eastman.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eastman.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eastman.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eastman.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eastman.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eastman.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eastman.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eastman.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eastman.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eastman.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eastman.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eastman.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eastman.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eastman.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eastman.wordpress.com&amp;blog=106185&amp;post=31&amp;subd=eastman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eastman.wordpress.com/2009/11/23/thread-locals-and-user-object-in-django/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2271790e80eb5e8131c9b7e20bbf8af9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">eastman</media:title>
		</media:content>
	</item>
		<item>
		<title>mysql for python 2.6</title>
		<link>http://eastman.wordpress.com/2009/11/22/mysql-for-python/</link>
		<comments>http://eastman.wordpress.com/2009/11/22/mysql-for-python/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 14:51:45 +0000</pubDate>
		<dc:creator>eastman</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://eastman.wordpress.com/?p=27</guid>
		<description><![CDATA[if you want to use mysql with python, apart from standard installations, you also need a small integrator called mysql for python. Its a python based module to make sure that all communications with mysql from python code to look &#8230; <a href="http://eastman.wordpress.com/2009/11/22/mysql-for-python/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eastman.wordpress.com&amp;blog=106185&amp;post=27&amp;subd=eastman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>if you want to use mysql with python, apart from standard installations, you also need a small integrator called <strong>mysql for python</strong>. Its a python based module to make sure that all communications with mysql from python code to look and behave similar rest of python style apis.</p>
<blockquote><p>if you are on windows with python 2.5, you can get it from following link<br />
<a href="http://sourceforge.net/projects/mysql-python/">mysql for python</a></p>
<p>However, for python 2.6, above installation is not working. follow below link<br />
<a href="http://www.thescotties.com/mysql-python/test/">mysql for python 2.6</a></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eastman.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eastman.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eastman.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eastman.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eastman.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eastman.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eastman.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eastman.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eastman.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eastman.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eastman.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eastman.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eastman.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eastman.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eastman.wordpress.com&amp;blog=106185&amp;post=27&amp;subd=eastman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eastman.wordpress.com/2009/11/22/mysql-for-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2271790e80eb5e8131c9b7e20bbf8af9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">eastman</media:title>
		</media:content>
	</item>
		<item>
		<title>dir command in Python</title>
		<link>http://eastman.wordpress.com/2009/10/27/dir-command-in-python/</link>
		<comments>http://eastman.wordpress.com/2009/10/27/dir-command-in-python/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 12:15:06 +0000</pubDate>
		<dc:creator>eastman</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://eastman.wordpress.com/?p=22</guid>
		<description><![CDATA[There is a quite useful command in python to introspect a particular object or module. Pass any object or module to dir function, which is a built-in function. Yes, you can access it from Python interpreter. &#62;&#62;&#62; a = [] &#8230; <a href="http://eastman.wordpress.com/2009/10/27/dir-command-in-python/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eastman.wordpress.com&amp;blog=106185&amp;post=22&amp;subd=eastman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There is a quite useful command in python to introspect a particular object or module.<br />
Pass any object or module to dir function, which is a built-in function. Yes, you can access it from Python interpreter.</p>
<blockquote><p><code><br />
&gt;&gt;&gt; a = []<br />
&gt;&gt;&gt; dir(a)</p>
<p>results:<br />
 ['__add__', '__class__', '__contains__', '__delattr__', '__delitem__', '__delslice__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getslice__', '__gt__', '__hash__', '__iadd__', '__imul__', '__init__', '__iter__', '__le__', '__len__', '__lt__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__reversed__', '__rmul__', '__setattr__', '__setitem__', '__setslice__', '__sizeof__', '__str__', '__subclasshook__', 'append', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort']</p>
<p></code></p></blockquote>
<p>Quite simple, yet powerful.</p>
<p>also, try this interesting stuff, philosophy of python on &#8220;this&#8221;<br />
<code>import this</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eastman.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eastman.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eastman.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eastman.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eastman.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eastman.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eastman.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eastman.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eastman.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eastman.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eastman.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eastman.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eastman.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eastman.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eastman.wordpress.com&amp;blog=106185&amp;post=22&amp;subd=eastman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eastman.wordpress.com/2009/10/27/dir-command-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2271790e80eb5e8131c9b7e20bbf8af9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">eastman</media:title>
		</media:content>
	</item>
		<item>
		<title>Regular Expressions &#8211; Python</title>
		<link>http://eastman.wordpress.com/2009/10/27/regular-expressions-python/</link>
		<comments>http://eastman.wordpress.com/2009/10/27/regular-expressions-python/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 11:55:16 +0000</pubDate>
		<dc:creator>eastman</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://eastman.wordpress.com/?p=16</guid>
		<description><![CDATA[While searching for python based parser implementations, for my next personal project, visited following websites about regular expressions, thought useful to others also. 1. Python official documentation about RE 2. Dive into Python &#8211; (Basic cookbook)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eastman.wordpress.com&amp;blog=106185&amp;post=16&amp;subd=eastman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While searching for python based parser implementations, for my next personal project, visited following websites about regular expressions, thought useful to others also.</p>
<blockquote><p>
1. <a href="http://docs.python.org/library/re.html">Python official documentation about RE  </a></p>
<p>2. <a href="http://diveintopython.org/regular_expressions"> Dive into Python  &#8211; (Basic cookbook)</a>
</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eastman.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eastman.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eastman.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eastman.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eastman.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eastman.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eastman.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eastman.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eastman.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eastman.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eastman.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eastman.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eastman.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eastman.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eastman.wordpress.com&amp;blog=106185&amp;post=16&amp;subd=eastman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eastman.wordpress.com/2009/10/27/regular-expressions-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2271790e80eb5e8131c9b7e20bbf8af9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">eastman</media:title>
		</media:content>
	</item>
		<item>
		<title>DJango fixtures</title>
		<link>http://eastman.wordpress.com/2009/10/27/django-fixtures/</link>
		<comments>http://eastman.wordpress.com/2009/10/27/django-fixtures/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 09:58:08 +0000</pubDate>
		<dc:creator>eastman</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[DJango]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://eastman.wordpress.com/?p=4</guid>
		<description><![CDATA[One of the important feature from DJango is fixture generation and consumption. Fixture is nothing but searialized data in file with proper file naming. Well, it by default recognizes some serialization formats. ex: xml, json etc. Usally file names goes &#8230; <a href="http://eastman.wordpress.com/2009/10/27/django-fixtures/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eastman.wordpress.com&amp;blog=106185&amp;post=4&amp;subd=eastman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of the important feature from DJango is fixture generation and consumption.</p>
<p>Fixture is nothing but searialized data in file with proper file naming. Well, it by default recognizes some serialization formats. ex: xml, json etc. Usally file names goes like this: MyFixture.json.</p>
<p>DJango tries to learn data format from file extension.<br />
Generating fixtures from DJango is pretty easy</p>
<blockquote><p><code>manage.py dumpdata</code></p></blockquote>
<p>Above command results serialized data of all models of your all apps under project. Ofcourse, there are couple of options to fine tune your command to exclude some apps, to mention format of serialization etc.</p>
<blockquote><p><code>manage.py help dumpdata</code></p></blockquote>
<p>issue above command to get full details of available options from your DJango project path.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/eastman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/eastman.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/eastman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/eastman.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/eastman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/eastman.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/eastman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/eastman.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/eastman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/eastman.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/eastman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/eastman.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/eastman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/eastman.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=eastman.wordpress.com&amp;blog=106185&amp;post=4&amp;subd=eastman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://eastman.wordpress.com/2009/10/27/django-fixtures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2271790e80eb5e8131c9b7e20bbf8af9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">eastman</media:title>
		</media:content>
	</item>
	</channel>
</rss>
