<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>David Stanek's Digressions - Latest Comments</title><link>http://davidstaneksdigressions.disqus.com/</link><description></description><atom:link href="https://davidstaneksdigressions.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 21 Jan 2010 10:35:37 -0000</lastBuildDate><item><title>Re: Measuring Cyclomatic Complexity Of Python Code</title><link>http://www.traceback.org/2008/03/31/measuring-cyclomatic-complexity-of-python-code/#comment-33968840</link><description>&lt;p&gt;Nice work! I just gave it a go in a casual project of mine and it didn't point out any issues. (It's a simple project. :) )&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;You should add pygenie to PyPI.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Juho Vepsäläinen</dc:creator><pubDate>Thu, 21 Jan 2010 10:35:37 -0000</pubDate></item><item><title>Re: Setting Gmail As The Preferred Mail Reader In Gnome</title><link>http://www.traceback.org/2009/11/28/setting-gmail-as-the-preferred-mail-reader-in-gnome/#comment-33968905</link><description>&lt;p&gt;Thanks!&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Those smartypants at sourceforge ought to make it easier for me to use apt-get to grab .deb files from their projects.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Downloading deb files and installing them manually just seems silly in 2009.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Wilson</dc:creator><pubDate>Sun, 29 Nov 2009 09:48:48 -0000</pubDate></item><item><title>Re: Getting Branch Coverage In Nose</title><link>http://www.traceback.org/2009/11/13/getting-branch-coverage-in-nose/#comment-33968903</link><description>&lt;p&gt;@Ned&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;That's a great idea! Just sent emails to those lists.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Stanek</dc:creator><pubDate>Sun, 15 Nov 2009 17:42:50 -0000</pubDate></item><item><title>Re: Getting Branch Coverage In Nose</title><link>http://www.traceback.org/2009/11/13/getting-branch-coverage-in-nose/#comment-33968902</link><description>&lt;p&gt;Dave, thanks for doing the work!  You should announce this on Testing-In-Python and nose-users...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ned Batchelder</dc:creator><pubDate>Sun, 15 Nov 2009 11:00:04 -0000</pubDate></item><item><title>Re: Getting Branch Coverage In Nose</title><link>http://www.traceback.org/2009/11/13/getting-branch-coverage-in-nose/#comment-33968901</link><description>&lt;p&gt;These changes will not work with older versions of coverage. It would not be hard to fix if there is a need.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Thanks Bill, John and John for bringing that to my attention.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Stanek</dc:creator><pubDate>Sat, 14 Nov 2009 11:02:52 -0000</pubDate></item><item><title>Re: Measuring Cyclomatic Complexity Of Python Code</title><link>http://www.traceback.org/2008/03/31/measuring-cyclomatic-complexity-of-python-code/#comment-33968839</link><description>&lt;p&gt;Thanks, handy code, worked first time.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Doar</dc:creator><pubDate>Fri, 28 Aug 2009 11:53:37 -0000</pubDate></item><item><title>Re: Article Help - Dependency Injection in Python</title><link>http://www.traceback.org/2009/01/01/article-help-dependency-injection-in-python/#comment-33968882</link><description>&lt;p&gt;DI is fundamental for me as a TDD developer. I can't find a better way to manage dependencies among collaborators. No matter if it is Python, Java or C#. Test driving the software changes it all. &lt;br&gt;By the way, Pinsor is very nice: &lt;a href="http://www.carlosble.com/?p=375" rel="nofollow noopener" target="_blank" title="http://www.carlosble.com/?p=375"&gt;http://www.carlosble.com/?p...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Carlos Ble</dc:creator><pubDate>Fri, 28 Aug 2009 08:51:08 -0000</pubDate></item><item><title>Re: Hacking On A super Alternative</title><link>http://www.traceback.org/2009/08/01/hacking-on-a-super-alternative/#comment-33968900</link><description>&lt;p&gt;Very neat solution. Not saying I'd use it (it would probably confuse the hell out of anyone who saw it unless they knew that super() was overridden), but cool nonetheless. :-)&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;@Hanno, that's very cool and I hadn't heard about it. One thing that seems poor about it is how you can freely call methods through super() implicitly. For instance, if I have a method &lt;code&gt;foo()&lt;/code&gt; and I call &lt;code&gt;super()&lt;/code&gt; in it, it'll call the &lt;code&gt;foo()&lt;/code&gt; in the supercalss without having to specify &lt;code&gt;super().foo()&lt;/code&gt;. The implicit nature of this specific case seems like it could be counter-productive.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Evan Fosmark</dc:creator><pubDate>Sat, 01 Aug 2009 13:39:14 -0000</pubDate></item><item><title>Re: Hacking On A super Alternative</title><link>http://www.traceback.org/2009/08/01/hacking-on-a-super-alternative/#comment-33968899</link><description>&lt;p&gt;Err... that was @Hanno, not @dstanek&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tony Arkles</dc:creator><pubDate>Sat, 01 Aug 2009 09:43:35 -0000</pubDate></item><item><title>Re: Hacking On A super Alternative</title><link>http://www.traceback.org/2009/08/01/hacking-on-a-super-alternative/#comment-33968898</link><description>&lt;p&gt;I was mulling over something like this the other day too.  Cool to see that I was on the right track (but missing some of the implementation details...)&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;@dstanek: nice!  I was hoping that it was one of the warts that would get fixed, although I haven't actually tried Python 3 yet...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tony Arkles</dc:creator><pubDate>Sat, 01 Aug 2009 09:43:00 -0000</pubDate></item><item><title>Re: Hacking On A super Alternative</title><link>http://www.traceback.org/2009/08/01/hacking-on-a-super-alternative/#comment-33968897</link><description>&lt;p&gt;@Joshua: No, it would not break anything.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;@Hanno: Very cool. Maybe I should start looking and seeing what other goodness awaits me. So far I have considered 3.x to be in the land of fairies and unicorns.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Stanek</dc:creator><pubDate>Sat, 01 Aug 2009 07:58:22 -0000</pubDate></item><item><title>Re: Hacking On A super Alternative</title><link>http://www.traceback.org/2009/08/01/hacking-on-a-super-alternative/#comment-33968896</link><description>&lt;p&gt;How about you look at &lt;a href="http://www.python.org/dev/peps/pep-3135" rel="nofollow noopener" target="_blank" title="http://www.python.org/dev/peps/pep-3135"&gt;http://www.python.org/dev/p...&lt;/a&gt; ? This exact change has long been implemented in Python 3 ;-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hanno Schlichting</dc:creator><pubDate>Sat, 01 Aug 2009 06:51:49 -0000</pubDate></item><item><title>Re: Hacking On A super Alternative</title><link>http://www.traceback.org/2009/08/01/hacking-on-a-super-alternative/#comment-33968895</link><description>&lt;p&gt;Knowing absolutely nothing about Python internals: is this simply Python compliant, or will it break on anything besides CPython?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joshua Kugler</dc:creator><pubDate>Sat, 01 Aug 2009 02:43:43 -0000</pubDate></item><item><title>Re: A figleaf Text Coverage Report</title><link>http://www.traceback.org/2008/12/14/a-figleaf-text-coverage-report/#comment-33968871</link><description>&lt;p&gt;That's great news! I am looking forward to the next official release.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Stanek</dc:creator><pubDate>Sun, 05 Apr 2009 02:01:47 -0000</pubDate></item><item><title>Re: A figleaf Text Coverage Report</title><link>http://www.traceback.org/2008/12/14/a-figleaf-text-coverage-report/#comment-33968870</link><description>&lt;p&gt;Hey David, it'll be in the next release, in some form or other -- I just checked it into figleaf's github repo.  Thanks!&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;cheers,&lt;br&gt;--titus&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Titus Brown</dc:creator><pubDate>Sat, 04 Apr 2009 23:25:40 -0000</pubDate></item><item><title>Re: I&amp;#8217;m Planning a PyCon 2010 Talk</title><link>http://www.traceback.org/2009/03/28/im-planning-a-pycon-2010-talk/#comment-33968892</link><description>&lt;p&gt;@Graham&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Sounds like it yes. I am not familiar with that. This style of virtual hosting is very nice and allows our websites to easily scale.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Stanek</dc:creator><pubDate>Mon, 30 Mar 2009 12:03:42 -0000</pubDate></item><item><title>Re: I&amp;#8217;m Planning a PyCon 2010 Talk</title><link>http://www.traceback.org/2009/03/28/im-planning-a-pycon-2010-talk/#comment-33968891</link><description>&lt;p&gt;So, effectively doing what the so called virtual host monster in Zope did. That is, handle the virtual hosting within the application itself in same memory space rather than using an external generic mechanism which splits different virtual hosts into different processes.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Graham Dumpleton</dc:creator><pubDate>Sun, 29 Mar 2009 17:27:03 -0000</pubDate></item><item><title>Re: I&amp;#8217;m Planning a PyCon 2010 Talk</title><link>http://www.traceback.org/2009/03/28/im-planning-a-pycon-2010-talk/#comment-33968890</link><description>&lt;p&gt;@Graham&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;At AGI we have a single application server that is able to host all of our websites at the same time in the same process. Our new approach is to use a series of WSGI pipelines. I was thinking about talking about that setup.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Stanek</dc:creator><pubDate>Sun, 29 Mar 2009 09:14:21 -0000</pubDate></item><item><title>Re: I&amp;#8217;m Planning a PyCon 2010 Talk</title><link>http://www.traceback.org/2009/03/28/im-planning-a-pycon-2010-talk/#comment-33968889</link><description>&lt;p&gt;When you say 'WSGI', what particular WSGI hosting mechanism are you talking about? Or is the intent to give an overview of the various options available.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Graham Dumpleton</dc:creator><pubDate>Sun, 29 Mar 2009 06:29:06 -0000</pubDate></item><item><title>Re: I&amp;#8217;m Planning a PyCon 2010 Talk</title><link>http://www.traceback.org/2009/03/28/im-planning-a-pycon-2010-talk/#comment-33968888</link><description>&lt;p&gt;Very cool Dave. I hope to be at PyCon 2010 and attend your talk. &lt;em&gt;thumbs up&lt;/em&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dave noyes</dc:creator><pubDate>Sat, 28 Mar 2009 17:01:06 -0000</pubDate></item><item><title>Re: I&amp;#8217;m Planning a PyCon 2010 Talk</title><link>http://www.traceback.org/2009/03/28/im-planning-a-pycon-2010-talk/#comment-33968887</link><description>&lt;p&gt;+111 for dependency injection and snake-guice -- and PLEASE accompany that with a concise but powerful coverage of WHY monkey patching is NOT a good alternative if you can avoid it!-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Martelli</dc:creator><pubDate>Sat, 28 Mar 2009 14:53:11 -0000</pubDate></item><item><title>Re: Article Help - Dependency Injection in Python</title><link>http://www.traceback.org/2009/01/01/article-help-dependency-injection-in-python/#comment-33968881</link><description>&lt;p&gt;Juri Pakaste did an article for Python Magazine that might be useful as background material: &lt;a href="http://pymag.phparch.com/c/issue/view/79" rel="nofollow noopener" target="_blank" title="http://pymag.phparch.com/c/issue/view/79"&gt;http://pymag.phparch.com/c/...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Wed, 18 Mar 2009 14:11:03 -0000</pubDate></item><item><title>Re: Remap Caps Lock and Left Control on Windows XP</title><link>http://www.traceback.org/2006/06/14/remap-caps-lock-and-left-control-on-windows-xp/#comment-33968754</link><description>&lt;p&gt;There is also a way without rebooting, but needs an external tool:&lt;br&gt;&lt;a href="http://vim.wikia.com/wiki/Remap_CapsLock_or_other_keys_without_reboot_in_Windows" rel="nofollow noopener" target="_blank" title="http://vim.wikia.com/wiki/Remap_CapsLock_or_other_keys_without_reboot_in_Windows"&gt;http://vim.wikia.com/wiki/R...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mubed</dc:creator><pubDate>Wed, 11 Feb 2009 23:05:45 -0000</pubDate></item><item><title>Re: Article Help - Dependency Injection in Python</title><link>http://www.traceback.org/2009/01/01/article-help-dependency-injection-in-python/#comment-33968880</link><description>&lt;p&gt;I think DI provides the right level of indirection that lets you write simple apps, and then later layer on useful services. As project lead for Spring Python, I have found the ability to apply AOP interceptors to already written apps makes it easy to apply transactions to business logic, put security in place where it wasn't before, and convert my simple app into a multi-node app very easy without altering the method signatures or original business code.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;If you have ever coded database transactions, things can get messy. And you have to do it right to handle errors appropriate. With DI, it is easy to plug in a transactional interceptor without the business code having to be aware of it. The only part of your app that has to be in the know is the part that launches your app, because it needs to launch the DI container which holds your blueprints.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;The risk of using the term "framework" is that many people interpret it to mean "extend my classes" to get the power. Spring Python provides a DI library that does NOT require you to extend any classes. Basically, it promotes usage of DI principles without the major requirement of hanging your whole application off the framework.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;There is no arcane syntax involved. You can pick to create your objects using constructor calls to &lt;strong&gt;init&lt;/strong&gt;, or just setting object properties by name. You may be assuming I'm talking about some XML definition. True, I have one, however, this is python, so why use XML at all? That is why I also wrote a DI container that uses pure python code and a decorator. Create your objects just like you would normally, only now harvest the benefits of have a central place to see how your components are wired together.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg</dc:creator><pubDate>Thu, 22 Jan 2009 22:06:22 -0000</pubDate></item><item><title>Re: Simple Random Number Generator For #codemash</title><link>http://www.traceback.org/2009/01/14/simple-random-number-generator-for-codemash/#comment-33968884</link><description>&lt;p&gt;Clearly whoever organized the #codemash drawing doesn't understand what &lt;a href="http://random.org" rel="nofollow noopener" target="_blank" title="random.org"&gt;random.org&lt;/a&gt; is or what a random number is.&lt;br&gt;Random numbers repeat.  Each new number is completely random.  It could be any possible number.  There should be no correlation with any previous sequence.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg</dc:creator><pubDate>Thu, 15 Jan 2009 09:30:49 -0000</pubDate></item></channel></rss>