<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>aartemenko.com: comments</title><link>http://aartemenko.com</link><description /><language>en-us</language><lastBuildDate>Tue, 22 Sep 2009 20:50:13 +0300</lastBuildDate><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/LazyCrazyCoder/comments" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><title>

    "How to make email field optional in django.contrib.comments", comment from oid#d0cba31f91bcebe21f8f86463a

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/M6V9snTqiMk/</link><description>please share!   where is the code?&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/M6V9snTqiMk" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">oid#d0cba31f91bcebe21f8f86463a</dc:creator><pubDate>Tue, 22 Sep 2009 20:50:13 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/texts/optional-email-in-django-comments/#comment-36</guid><feedburner:origLink>http://aartemenko.com/texts/optional-email-in-django-comments/#comment-36</feedburner:origLink></item><item><title>

    "How to make email field optional in django.contrib.comments", comment from oid#c20230d170119049228ac34669

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/KVcrPJhAoF8/</link><description>Thanks a bunch! :)&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/KVcrPJhAoF8" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">oid#c20230d170119049228ac34669</dc:creator><pubDate>Fri, 11 Sep 2009 23:59:32 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/texts/optional-email-in-django-comments/#comment-35</guid><feedburner:origLink>http://aartemenko.com/texts/optional-email-in-django-comments/#comment-35</feedburner:origLink></item><item><title>

    "RopeVim — refactoring tool for Python and Vim", art replies to weakish

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/3ON44e0DZL8/</link><description>Yes, thanks.&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/3ON44e0DZL8" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">art</dc:creator><pubDate>Thu, 27 Aug 2009 17:54:01 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/texts/ropevim-refactoring-tool-for-python-and/#comment-34</guid><feedburner:origLink>http://aartemenko.com/texts/ropevim-refactoring-tool-for-python-and/#comment-34</feedburner:origLink></item><item><title>

    "RopeVim — refactoring tool for Python and Vim", comment from weakish

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/XSMCJjfnwqc/</link><description>If you work under Linux Ubuntu, like me, **than** you need to do few simple commands, to install the ropevim:

Note: Should be "then"?&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/XSMCJjfnwqc" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">weakish</dc:creator><pubDate>Thu, 27 Aug 2009 12:00:56 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/texts/ropevim-refactoring-tool-for-python-and/#comment-33</guid><feedburner:origLink>http://aartemenko.com/texts/ropevim-refactoring-tool-for-python-and/#comment-33</feedburner:origLink></item><item><title>

    "RopeVim — refactoring tool for Python and Vim", comment from oid#7da76b8480a5159b906bd9ae9b

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/jsyPudYzKa0/</link><description>Hi Alex,

your install script proved very useful to me - the ropevim instructions left me a little confused.


I did have a problem with the PYTHONPATH setting in the rope.vim the script creates; I changed it to this:


"let $PYTHONPATH .= ":/path/to/install/ropevim/pylibs"

python import sys; sys.path.append("/path/to/install/ropevim/pylibs"); del sys

source /path/to/install/ropevim/ropevim.vim

If anybody else gets stuck maybe they will find this useful.&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/jsyPudYzKa0" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">oid#7da76b8480a5159b906bd9ae9b</dc:creator><pubDate>Mon, 29 Jun 2009 16:21:47 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/texts/ropevim-refactoring-tool-for-python-and/#comment-32</guid><feedburner:origLink>http://aartemenko.com/texts/ropevim-refactoring-tool-for-python-and/#comment-32</feedburner:origLink></item><item><title>

    "Group by N python generator", comment from art

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/wZAS_PqiGk4/</link><description>Thanks for your comments guys, you've opened my eyes :)&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/wZAS_PqiGk4" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">art</dc:creator><pubDate>Fri, 22 May 2009 10:27:35 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/links/group-n-python-generator/#comment-31</guid><feedburner:origLink>http://aartemenko.com/links/group-n-python-generator/#comment-31</feedburner:origLink></item><item><title>

    "Group by N python generator", comment from oid#5a7a62f397d9b8a82b105b12f7

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/45_0mA95Cgs/</link><description>&gt;&gt;&gt; from itertools import groupby
&gt;&gt;&gt; N = range(10)
&gt;&gt;&gt; groupevery = 4
&gt;&gt;&gt; [list(x[1]) for x in groupby(N, lambda x: x // groupevery)]
[[0, 1, 2, 3], [4, 5, 6, 7], [8, 9]]
&gt;&gt;&gt;&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/45_0mA95Cgs" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">oid#5a7a62f397d9b8a82b105b12f7</dc:creator><pubDate>Fri, 22 May 2009 00:49:11 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/links/group-n-python-generator/#comment-30</guid><feedburner:origLink>http://aartemenko.com/links/group-n-python-generator/#comment-30</feedburner:origLink></item><item><title>

    "Group by N python generator", comment from oid#7eba32335f4de0c5d974603709

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/2Oz3egx0mNI/</link><description>Please kill this before it gets cut-n-pasted around.  What you want is on the itertools docs page.
http://docs.python.org/library/itertools.html#module-itertools

        def grouper(n, iterable, fillvalue=None):
                "grouper(3, 'ABCDEFG', 'x') --&gt; ABC DEF Gxx"
                args = [iter(iterable)] * n
                return izip_longest(fillvalue=fillvalue, *args)

This does less work in general and also works with infinite iterators.
And thank you for making me learn a markup language just to post this comment.&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/2Oz3egx0mNI" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">oid#7eba32335f4de0c5d974603709</dc:creator><pubDate>Thu, 21 May 2009 00:00:15 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/links/group-n-python-generator/#comment-29</guid><feedburner:origLink>http://aartemenko.com/links/group-n-python-generator/#comment-29</feedburner:origLink></item><item><title>

    "Group by N python generator", comment from oid#2ae8f693951871790d1db772dd

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/IDdU1a4oQUM/</link><description>http://docs.python.org/library/functions.html#zip

"The left-to-right evaluation order of the iterables is guaranteed. This makes possible an idiom for clustering a data series into n-length groups using zip(*[iter(s)]*n)"

Use itertools.izip (or Python 3.0!) to generate N-tuples.&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/IDdU1a4oQUM" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">oid#2ae8f693951871790d1db772dd</dc:creator><pubDate>Wed, 20 May 2009 13:38:15 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/links/group-n-python-generator/#comment-28</guid><feedburner:origLink>http://aartemenko.com/links/group-n-python-generator/#comment-28</feedburner:origLink></item><item><title>

    "Nose — alternate unittesting for python", art replies to oid#db5c618840e031075ab8088d07

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/NLci87jGrgw/</link><description>Thank you for advice!&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/NLci87jGrgw" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">art</dc:creator><pubDate>Wed, 15 Apr 2009 11:02:44 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/links/nose-alternate-unittesting-python/#comment-27</guid><feedburner:origLink>http://aartemenko.com/links/nose-alternate-unittesting-python/#comment-27</feedburner:origLink></item><item><title>

    "Nose — alternate unittesting for python", comment from oid#db5c618840e031075ab8088d07

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/tjOR9gAHOlE/</link><description>We use nose with unittest.  We write all our tests with standard unit test code but use nosetests as our running/test discovery mechanism.  I see no reason not to use it for at least that.&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/tjOR9gAHOlE" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">oid#db5c618840e031075ab8088d07</dc:creator><pubDate>Tue, 14 Apr 2009 23:22:39 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/links/nose-alternate-unittesting-python/#comment-26</guid><feedburner:origLink>http://aartemenko.com/links/nose-alternate-unittesting-python/#comment-26</feedburner:origLink></item><item><title>

    "Disassembler of Python byte code", comment from oid#cf06d241f53f5e5e7a3e195b2f

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/lUf8eA8pODY/</link><description>Yes, dis is an interesting module, but be wary of examining it too much from a performance standpoint. Python's opcodes can be very complicated individually, so the number of bytecode instructions is generally not a very good indicator of performance.&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/lUf8eA8pODY" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">oid#cf06d241f53f5e5e7a3e195b2f</dc:creator><pubDate>Tue, 24 Mar 2009 01:14:54 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/texts/disassembler-python-byte-code/#comment-25</guid><feedburner:origLink>http://aartemenko.com/texts/disassembler-python-byte-code/#comment-25</feedburner:origLink></item><item><title>

    "RopeVim — refactoring tool for Python and Vim", art replies to oid#19bcc6ab432b568097056a1d7f

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/_2Ktm-fTdIU/</link><description>Well, I fix it, but I can't to upload my file to gist with unix-style newlines! It converts them to dos-style :-(&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/_2Ktm-fTdIU" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">art</dc:creator><pubDate>Mon, 02 Mar 2009 11:56:09 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/texts/ropevim-refactoring-tool-for-python-and/#comment-24</guid><feedburner:origLink>http://aartemenko.com/texts/ropevim-refactoring-tool-for-python-and/#comment-24</feedburner:origLink></item><item><title>

    "RopeVim — refactoring tool for Python and Vim", oid#19bcc6ab432b568097056a1d7f replies to art

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/CB7p6DdJoFg/</link><description>dear alexander, your new commit broke the old code by omitting the pound sign of the shebang...&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/CB7p6DdJoFg" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">oid#19bcc6ab432b568097056a1d7f</dc:creator><pubDate>Thu, 26 Feb 2009 23:49:38 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/texts/ropevim-refactoring-tool-for-python-and/#comment-23</guid><feedburner:origLink>http://aartemenko.com/texts/ropevim-refactoring-tool-for-python-and/#comment-23</feedburner:origLink></item><item><title>

    "RopeVim — refactoring tool for Python and Vim", art replies to oid#19bcc6ab432b568097056a1d7f

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/CyOUg7h03TY/</link><description>Thanks, already fixed.&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/CyOUg7h03TY" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">art</dc:creator><pubDate>Wed, 25 Feb 2009 15:08:24 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/texts/ropevim-refactoring-tool-for-python-and/#comment-22</guid><feedburner:origLink>http://aartemenko.com/texts/ropevim-refactoring-tool-for-python-and/#comment-22</feedburner:origLink></item><item><title>

    "RopeVim — refactoring tool for Python and Vim", comment from oid#19bcc6ab432b568097056a1d7f

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/oiLk6b_IV9w/</link><description>dear alexander, why is your bash script extracted from the tarball using dos-style newlines? i've fixed that though&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/oiLk6b_IV9w" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">oid#19bcc6ab432b568097056a1d7f</dc:creator><pubDate>Wed, 25 Feb 2009 10:48:48 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/texts/ropevim-refactoring-tool-for-python-and/#comment-21</guid><feedburner:origLink>http://aartemenko.com/texts/ropevim-refactoring-tool-for-python-and/#comment-21</feedburner:origLink></item><item><title>

    "Equality and identity fun with python", comment from oid#e747d19434c89685903b0d8825

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/I1DwAtBewR4/</link><description>See also &lt;a href="http://drj11.wordpress.com/2007/06/11/python-perils-of-«x-is-1»/"&gt;Perils of x is 1&lt;/a&gt;.&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/I1DwAtBewR4" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">oid#e747d19434c89685903b0d8825</dc:creator><pubDate>Thu, 19 Feb 2009 00:51:18 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/texts/equality-and-identity-fun/#comment-20</guid><feedburner:origLink>http://aartemenko.com/texts/equality-and-identity-fun/#comment-20</feedburner:origLink></item><item><title>

    "Equality and identity fun with python", comment from oid#e1032d657acda56c6f7ae15406

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/K3w7EBP6XgE/</link><description>Попробуй assert(type(var).__name__ == 'long')&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/K3w7EBP6XgE" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">oid#e1032d657acda56c6f7ae15406</dc:creator><pubDate>Wed, 18 Feb 2009 23:28:13 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/texts/equality-and-identity-fun/#comment-19</guid><feedburner:origLink>http://aartemenko.com/texts/equality-and-identity-fun/#comment-19</feedburner:origLink></item><item><title>

    "Quick review of 20 Django blogs.", comment from Āudioslave ᵝ « ... »

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/TL9hUeOdNN4/</link><description>simple?

    $ du -sh ./n00bish-django-blog/
    11M	./n00bish-django-blog/&lt;/code&gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/TL9hUeOdNN4" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Āudioslave ᵝ « ... »</dc:creator><pubDate>Wed, 21 Jan 2009 23:42:57 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/texts/quick-review-of-20-django-blogs/#comment-18</guid><feedburner:origLink>http://aartemenko.com/texts/quick-review-of-20-django-blogs/#comment-18</feedburner:origLink></item><item><title>

    "Python Google Chart", comment from oid#7c102f8d691384ab69dc48ad15

</title><link>http://feedproxy.google.com/~r/LazyCrazyCoder/comments/~3/US4TkVo3yic/</link><description>You might want to check out this python wrapper library for Open Flash Chart - http://btbytes.github.com/pyofc2/&lt;img src="http://feeds.feedburner.com/~r/LazyCrazyCoder/comments/~4/US4TkVo3yic" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">oid#7c102f8d691384ab69dc48ad15</dc:creator><pubDate>Wed, 07 Jan 2009 00:44:53 +0300</pubDate><guid isPermaLink="false">http://aartemenko.com/links/python-google-chart/#comment-17</guid><feedburner:origLink>http://aartemenko.com/links/python-google-chart/#comment-17</feedburner:origLink></item></channel></rss>
