<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for gallard</title><link>http://disqus.com/by/gallard/</link><description></description><atom:link href="http://disqus.com/gallard/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 28 Aug 2009 16:30:02 -0000</lastBuildDate><item><title>Re: Conditions on Count or Sum in MySQL</title><link>http://codespatter.com/2008/07/22/conditions-on-count-or-sum-in-mysql/#comment-15543471</link><description>&lt;p&gt;yeah that looks like it should work&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Fri, 28 Aug 2009 16:30:02 -0000</pubDate></item><item><title>Re: Kegerator Upgrade for Guinness</title><link>http://kegstat.us/kegerator-upgrade-for-guinness/#comment-15342658</link><description>&lt;p&gt;Great idea. Done. Thanks for the donations.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Tue, 25 Aug 2009 01:41:43 -0000</pubDate></item><item><title>Re: A Django Model Manager for Soft Deleting Records and How to Customize the Django Admin</title><link>http://codespatter.com/2009/07/01/django-model-manager-soft-delete-how-to-customize-admin/#comment-14570877</link><description>&lt;p&gt;That would work. If you are using a signal (pre_delete or post_delete), you might need to send it from the new function since you wouldn't want to call the real delete.&lt;/p&gt;&lt;p&gt;I've been doing object.deleted = 1 &lt;a href="http://object.save" rel="nofollow noopener" target="_blank" title="object.save"&gt;object.save&lt;/a&gt;() and not calling or overriding delete(). That way I still have the option to do the real delete in case I need it. You could probably make a real_delete() function to do that if needed though.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Mon, 10 Aug 2009 10:11:07 -0000</pubDate></item><item><title>Re: Python Projects in Users&amp;#8217; Home Directories with wsgi</title><link>http://codespatter.com/2009/07/08/python-projects-in-users-home-directories-with-wsgi/#comment-13127848</link><description>&lt;p&gt;I like the AddHandler approach more than what I was trying in this post. It is better since AddHandler will work in an .htaccess file. Which means this doesn't require a new public_python folder and doesn't require /p/ to be added to the url.&lt;/p&gt;&lt;p&gt;Before arriving at the solution in my post I tried using an .htaccess file and the directives I tried weren't supported in .htaccess. I didn't read the part about AddHandler so I missed that.&lt;/p&gt;&lt;p&gt;Something with either WSGIDaemonProcess or WSGIProcessGroup from the code in the blog post is making those applications work in daemon mode. It seems like any wsgi file that is touched will result in the code being reloaded for that project.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Wed, 22 Jul 2009 15:47:58 -0000</pubDate></item><item><title>Re: A Django Model Manager for Soft Deleting Records and How to Customize the Django Admin</title><link>http://codespatter.com/2009/07/01/django-model-manager-soft-delete-how-to-customize-admin/#comment-13127248</link><description>&lt;p&gt;I tested this out with a simple many to many example and I am not getting the soft deleted objects returned. With objects = SoftDeleteManager the many to many queries will be using get_query_set() which won't return the soft deleted records. I might need to see an example of how you are getting the deleted results to be able to figure out what is going on. I tried it with some_object.related_things.all() and the returned set won't have deleted related_things.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Wed, 22 Jul 2009 15:37:32 -0000</pubDate></item><item><title>Re: Python Projects in Users&amp;#8217; Home Directories with wsgi</title><link>http://codespatter.com/2009/07/08/python-projects-in-users-home-directories-with-wsgi/#comment-12382867</link><description>&lt;p&gt;I tried it without the LocationMatch directives and it works with just having AliasMatch in there for the static locations.&lt;/p&gt;&lt;p&gt;I didn't expect that WSGIDaemonProcess wouldn't expand the python_project_name. I was doing that so that each project would have a different process so touching one wsgi file wouldn't effect another project. It seemed like it was working like that.&lt;/p&gt;&lt;p&gt;If you can figure out a better way of doing this that would be awesome.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Thu, 09 Jul 2009 11:06:15 -0000</pubDate></item><item><title>Re: Python Projects in Users&amp;#8217; Home Directories with wsgi</title><link>http://codespatter.com/2009/07/08/python-projects-in-users-home-directories-with-wsgi/#comment-12337319</link><description>&lt;p&gt;Thanks for taking at look at this. I'll test it without SetHandler None when I get a chance. It is probably something I was keeping around from when I was using mod_python. I'm guessing I need to keep LocationMatch in there so that the request doesn't go to the wsgi file though, right?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Wed, 08 Jul 2009 18:26:33 -0000</pubDate></item><item><title>Re: A Django Model Manager for Soft Deleting Records and How to Customize the Django Admin</title><link>http://codespatter.com/2009/07/01/django-model-manager-soft-delete-how-to-customize-admin/#comment-12030609</link><description>&lt;p&gt;You can do this.&lt;br&gt;from somewhere import SoftDeleteManager&lt;/p&gt;&lt;p&gt;class NewManager(SoftDeleteManager):&lt;br&gt;    '''new stuff'''&lt;/p&gt;&lt;p&gt;and in the model&lt;br&gt;objects = NewManager()&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Thu, 02 Jul 2009 09:50:13 -0000</pubDate></item><item><title>Re: Interview with John, the mysterious creator of &amp;#8216;E-mails from an Asshole&amp;#8217;</title><link>http://blog.ivylees.com/interview-with-john/#comment-11454114</link><description>&lt;p&gt;That's good to hear he will have an rss feed soon. I would hate to miss out on his funny emails.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Fri, 19 Jun 2009 12:30:08 -0000</pubDate></item><item><title>Re: Quick Thumbnails in Django</title><link>http://codespatter.com/2008/09/13/quick-thumbnails-in-django/#comment-8895243</link><description>&lt;p&gt;I updated this post. I was thinking the uploaded file was deleted after using it, but I just needed to reset the file. Django's InMemoryUploadedFile uses StringIO. Doing &lt;a href="http://file.seek" rel="nofollow noopener" target="_blank" title="file.seek"&gt;file.seek&lt;/a&gt;(0)&lt;br&gt; will reset the StringIO file to be ready to create another thumbnail.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Fri, 01 May 2009 10:54:36 -0000</pubDate></item><item><title>Re: How to Speed up Your Django Sites</title><link>http://codespatter.com/2009/04/23/how-to-speed-up-your-django-sites/#comment-8825492</link><description>&lt;p&gt;I just installed django-memcache-status to see the usage of memcache in the django admin interface. It looks pretty good and it's easy to install. Just download it and add it to installed apps. &lt;a href="http://github.com/bartTC/django-memcache-status/" rel="nofollow noopener" target="_blank" title="http://github.com/bartTC/django-memcache-status/"&gt;http://github.com/bartTC/dj...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Wed, 29 Apr 2009 16:44:24 -0000</pubDate></item><item><title>Re: How to Speed up Your Django Sites</title><link>http://codespatter.com/2009/04/23/how-to-speed-up-your-django-sites/#comment-8819759</link><description>&lt;p&gt;Yeah amazon's content distribution network is awesome and not a bad price. I'd like to hook that up sometime soon. I didn't know that subdomains would help with the browser limit. That's a good idea.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Wed, 29 Apr 2009 14:33:22 -0000</pubDate></item><item><title>Re: Python Google Analytics Client: How to use it and how to help make it better</title><link>http://blog.clintecker.com/post/100021441#comment-8742059</link><description>&lt;p&gt;I gave it another shot and it still wasn't working. I sent a message to the google group and got a response from someone at google. It is a feature that needs to be implemented and it sounds like they will prioritize it since a few people were requesting it. &lt;a href="http://groups.google.com/group/google-analytics-data-export-api/browse_thread/thread/8315c9b174a57096?hl=en" rel="nofollow noopener" target="_blank" title="http://groups.google.com/group/google-analytics-data-export-api/browse_thread/thread/8315c9b174a57096?hl=en"&gt;http://groups.google.com/gr...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Mon, 27 Apr 2009 14:43:21 -0000</pubDate></item><item><title>Re: Python Google Analytics Client: How to use it and how to help make it better</title><link>http://blog.clintecker.com/post/100021441#comment-8691352</link><description>&lt;p&gt;This is awesome. It was pretty easy to get going. It seems like google analytics is unable to produce one type of result that I want though. For a single page on my site I want to know the keywords that got people there or the referrers. I can browse to it on the web interface, but I keep getting bad request errors when I try a way to get that info from them.&lt;/p&gt;&lt;p&gt;I've tried adding pagePath and keyword as dimensions and I've tried using a filter on pagePath while only having keyword as a dimension. Neither of those would work. Do you have any other ideas I could try?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Sat, 25 Apr 2009 17:41:56 -0000</pubDate></item><item><title>Re: How to Speed up Your Django Sites</title><link>http://codespatter.com/2009/04/23/how-to-speed-up-your-django-sites/#comment-8689623</link><description>&lt;p&gt;Thanks. I've never been to tutlist before. Sounds like a good idea.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Sat, 25 Apr 2009 15:42:17 -0000</pubDate></item><item><title>Re: How to Write Reusable Apps for Pinax and Django</title><link>http://codespatter.com/2009/01/15/how-to-write-reusable-apps-for-pinax-and-django/#comment-8667831</link><description>&lt;p&gt;Ah good question. I left that in from some old code I guess. It was probably from before I made the model work by being applied to any other object. I removed it from the code. Thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Fri, 24 Apr 2009 17:36:30 -0000</pubDate></item><item><title>Re: How to Speed up Your Django Sites</title><link>http://codespatter.com/2009/04/23/how-to-speed-up-your-django-sites/#comment-8648533</link><description>&lt;p&gt;I haven't gotten into caching and increasing performance of my application code itself; I was starting with the server. Thanks for the suggestion. When I do get around to speeding up slow parts of my code, I'll keep Beaker in mind.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Fri, 24 Apr 2009 09:42:59 -0000</pubDate></item><item><title>Re: How to Speed up Your Django Sites</title><link>http://codespatter.com/2009/04/23/how-to-speed-up-your-django-sites/#comment-8618039</link><description>&lt;p&gt;There are two more django apps that could help reduce http requests. I didn't find these until after posting this. &lt;a href="http://code.google.com/p/django-sprites/" rel="nofollow noopener" target="_blank" title="http://code.google.com/p/django-sprites/"&gt;http://code.google.com/p/dj...&lt;/a&gt; and &lt;a href="http://github.com/rnk/django-media-bundler/tree/master" rel="nofollow noopener" target="_blank" title="http://github.com/rnk/django-media-bundler/tree/master"&gt;http://github.com/rnk/djang...&lt;/a&gt; will help create image sprites so that your css background images are all one file request. CSS sprites are explained in more detail here &lt;a href="http://alistapart.com/articles/sprites" rel="nofollow noopener" target="_blank" title="http://alistapart.com/articles/sprites"&gt;http://alistapart.com/artic...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Thu, 23 Apr 2009 16:08:08 -0000</pubDate></item><item><title>Re: How To Use Triggers to Track Changes in MySQL</title><link>http://codespatter.com/2008/05/06/how-to-use-triggers-to-track-changes-in-mysql/#comment-8429004</link><description>&lt;p&gt;I don't think there is anyway to do it in the database, but you can still put the logic in your application. If you are using django, there are signals that will help get that done. &lt;a href="http://docs.djangoproject.com/en/1.0/topics/signals/" rel="nofollow noopener" target="_blank" title="http://docs.djangoproject.com/en/1.0/topics/signals/"&gt;http://docs.djangoproject.c...&lt;/a&gt; If you aren't then you will need to program it into your project in some other way.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Mon, 20 Apr 2009 12:18:54 -0000</pubDate></item><item><title>Re: Setting up Apache2, mod_python, MySQL, and Django on Debian Lenny or Ubuntu Hardy Heron</title><link>http://codespatter.com/2008/10/15/setting-up-apache2-mod_python-mysql-and-django-on-debian-lenny-or-ubuntu-hardy-heron/#comment-8261204</link><description>&lt;p&gt;That is a good post. I've been wanting to use nginx since you mentioned it 5 months ago and now I have no excuse for not using it.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Thu, 16 Apr 2009 10:52:36 -0000</pubDate></item><item><title>Re: The People Make SXSW Awesome</title><link>http://codespatter.com/2009/03/25/the-people-make-sxsw-awesome/#comment-7557375</link><description>&lt;p&gt;I didn't walk out on any and I probably should have a few times. I'll have a backup plan next time.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Fri, 27 Mar 2009 10:28:43 -0000</pubDate></item><item><title>Re: How to Write Django Template Tags</title><link>http://boxedviking.com/how-to-write-django-template-tags/#comment-7485289</link><description>&lt;p&gt;tags&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Tue, 24 Mar 2009 23:17:14 -0000</pubDate></item><item><title>Re: MoMB Labs | Twitter&amp;#160;100</title><link>http://momb.socio-kybernetics.net/labs/twitter-50#comment-6277574</link><description>&lt;p&gt;didn't see this on the list &lt;a href="http://foamee.com/" rel="nofollow noopener" target="_blank" title="http://foamee.com/"&gt;http://foamee.com/&lt;/a&gt; for @ioubeer &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Sun, 15 Feb 2009 13:44:41 -0000</pubDate></item><item><title>Re: How to Break a MySQL Left Join</title><link>http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/#comment-4996299</link><description>&lt;p&gt;I'm glad that this has been able to help other people out&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Thu, 08 Jan 2009 16:43:32 -0000</pubDate></item><item><title>Re: Kegerator Upgrade for Guinness</title><link>http://kegstat.us/kegerator-upgrade-for-guinness/#comment-4536885</link><description>&lt;p&gt;Adjusted the psi and temperature for the guinness keg just a bit based on the recommendation of a Guinness delivery guy. 28 psi and 35 degrees F.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg Allard</dc:creator><pubDate>Sat, 20 Dec 2008 00:17:50 -0000</pubDate></item></channel></rss>