<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Code Spatter - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-1baba510" type="application/json"/><link>http://codespatter.disqus.com/</link><description></description><atom:link href="http://codespatter.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 25 Mar 2012 18:58:44 -0000</lastBuildDate><item><title>Re: Django Settings Site Domain example.com</title><link>http://codespatter.com/2009/01/05/django-settings-site-domain-examplecom/#comment-476084686</link><description>&lt;p&gt;This needs to be WAY more obvious than it is &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Sun, 25 Mar 2012 18:58:44 -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-453096374</link><description>&lt;p&gt;Thank you very much. Perfectly resolved my issue.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Thu, 01 Mar 2012 01:35:10 -0000</pubDate></item><item><title>Re: Django Settings Site Domain example.com</title><link>http://codespatter.com/2009/01/05/django-settings-site-domain-examplecom/#comment-396366289</link><description>&lt;p&gt;cloul change it through admin pannel too....&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aswad R</dc:creator><pubDate>Thu, 29 Dec 2011 04:28:29 -0000</pubDate></item><item><title>Re: Django Settings Site Domain example.com</title><link>http://codespatter.com/2009/01/05/django-settings-site-domain-examplecom/#comment-396365983</link><description>&lt;p&gt;I could change it through the django admin panel too...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aswad R</dc:creator><pubDate>Thu, 29 Dec 2011 04:27:12 -0000</pubDate></item><item><title>Re: Django Settings Site Domain example.com</title><link>http://codespatter.com/2009/01/05/django-settings-site-domain-examplecom/#comment-392118968</link><description>&lt;p&gt;Thanks!&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aswad R</dc:creator><pubDate>Thu, 22 Dec 2011 04:34:34 -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-369743979</link><description>&lt;p&gt;thx man. if you had google +1 button i'd hit it =)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jessey</dc:creator><pubDate>Mon, 21 Nov 2011 19:48:29 -0000</pubDate></item><item><title>Re: Django Settings Site Domain example.com</title><link>http://codespatter.com/2009/01/05/django-settings-site-domain-examplecom/#comment-321974671</link><description>&lt;p&gt;Thank you for pointing me in the right direction.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">How to make him want you back</dc:creator><pubDate>Wed, 28 Sep 2011 14:12:55 -0000</pubDate></item><item><title>Re: How to Write Django Template Tags</title><link>http://codespatter.com/2009/01/22/how-to-write-django-template-tags/#comment-304664351</link><description>&lt;p&gt;Thanks man, I wish you were still with us :(&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gourneau</dc:creator><pubDate>Wed, 07 Sep 2011 21:36:19 -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-293830675</link><description>&lt;p&gt;If the log_deleted exist and are all &amp;lt;&amp;gt; 0 for a given task_id, you are likely to miss the tasks rows for that particular task_id.&lt;br&gt;As BrianHartin mentioned, the condition log_deleted=0 has to be put in the LEFT JOIN after a AND. Otherwise the WHERE will cut the rows in that particular case, after the LEFT JOIN was computed by MySQL.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ring Zero</dc:creator><pubDate>Tue, 23 Aug 2011 13:47:30 -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-280416608</link><description>&lt;p&gt;Quick word on this, I recently started working on an application using the mysql extension, and one of my first required steps was to change to mysqli, not having multiple queries possible is a huge problem, and clearly the mysql extension has quite a few other major flaws one should not attempt to live with. (and god bless postgresql, for it has only one extension, which works perfectly fine)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">L.</dc:creator><pubDate>Mon, 08 Aug 2011 10:01:52 -0000</pubDate></item><item><title>Re: How to Write Django Template Tags</title><link>http://codespatter.com/2009/01/22/how-to-write-django-template-tags/#comment-263543440</link><description>&lt;p&gt;I am looking for something similar to implement on my blog. Thanks for sharing! &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Best Sewing Machines</dc:creator><pubDate>Mon, 25 Jul 2011 12:38:10 -0000</pubDate></item><item><title>Re: How to Display Realtime Traffic Analytics</title><link>http://codespatter.com/2009/09/02/how-to-display-realtime-traffic-analytics/#comment-262717440</link><description>&lt;p&gt;A nice informative tutorial .&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stock Assault</dc:creator><pubDate>Sun, 24 Jul 2011 06:49:53 -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-243744839</link><description>&lt;p&gt;I have wrote a post about LEFT JOIN: in what conditions should I put the conditions in the ON clause.&lt;br&gt;See &lt;br&gt;&lt;a href="http://www.mysqldiary.com/mysql-left-join/" rel="nofollow"&gt;http://www.mysqldiary.com/mysq...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ilan</dc:creator><pubDate>Wed, 06 Jul 2011 06:08:10 -0000</pubDate></item><item><title>Re: Django Settings Site Domain example.com</title><link>http://codespatter.com/2009/01/05/django-settings-site-domain-examplecom/#comment-240367812</link><description>&lt;p&gt;Many thanks from Arlington Va. That fixed it. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bill E.</dc:creator><pubDate>Fri, 01 Jul 2011 21:35:51 -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-235569078</link><description>&lt;p&gt;if you are using webfaction how are you setting the far future expiration when webfaction controls nginx and will not let you edit the config file? Or are you setting up your own nginx?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DZ</dc:creator><pubDate>Mon, 27 Jun 2011 00:54:06 -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-234766868</link><description>&lt;p&gt;It is possible to use Checksum MySQL  &lt;a href="http://adm-it.net/checksum-mysql" rel="nofollow"&gt;http://adm-it.net/checksum-mys...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Denis Pujdak</dc:creator><pubDate>Sat, 25 Jun 2011 12:54:04 -0000</pubDate></item><item><title>Re: How to Add Locations to Python Path for Reusable Django Apps</title><link>http://codespatter.com/2009/04/10/how-to-add-locations-to-python-path-for-reusable-django-apps/#comment-232034341</link><description>&lt;p&gt;Edit: I still needed to modify &lt;a href="http://settings.py" rel="nofollow"&gt;settings.py&lt;/a&gt; after all, to allow &lt;a href="http://manage.py" rel="nofollow"&gt;manage.py&lt;/a&gt; syncdb and &lt;a href="http://manage.py" rel="nofollow"&gt;manage.py&lt;/a&gt; runserver to know that the apps folder should be added. Works like a charm, thanks again for this post!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jdawg</dc:creator><pubDate>Wed, 22 Jun 2011 13:18:15 -0000</pubDate></item><item><title>Re: How to Add Locations to Python Path for Reusable Django Apps</title><link>http://codespatter.com/2009/04/10/how-to-add-locations-to-python-path-for-reusable-django-apps/#comment-232027342</link><description>&lt;p&gt;Great post. Under mod_wsgi was able to do this without editing &lt;a href="http://settings.py" rel="nofollow"&gt;settings.py&lt;/a&gt; at all, just my .wsgi file, which looks like:&lt;/p&gt;

&lt;p&gt;import os&lt;br&gt;import sys&lt;/p&gt;

&lt;p&gt;#Calculate the path based on the location of the WSGI script.&lt;br&gt;apache_configuration= os.path.dirname(__file__)&lt;/p&gt;

&lt;p&gt;project = os.path.dirname(apache_configuration)&lt;br&gt;if project not in sys.path:&lt;br&gt;    sys.path.append(project)&lt;/p&gt;

&lt;p&gt;# Add re-usable apps directory to path&lt;br&gt;apps    = project + "/apps"&lt;br&gt;sys.path.append(apps)&lt;/p&gt;

&lt;p&gt;os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'&lt;/p&gt;

&lt;p&gt;import django.core.handlers.wsgi&lt;br&gt;application = django.core.handlers.wsgi.WSGIHandler()&lt;/p&gt;

&lt;p&gt;# To Debug path issues&lt;br&gt;#print &amp;gt;&amp;gt; sys.stderr, sys.path&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jdawg</dc:creator><pubDate>Wed, 22 Jun 2011 13:12:16 -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-222718427</link><description>&lt;p&gt;This is indeed a very nice example on how to build a conditional left join. I've been searching for a solution a very long time and accidentally stumbled upon this one.&lt;br&gt;truly helpful!&lt;br&gt;cheers,&lt;br&gt;jahan&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jahan</dc:creator><pubDate>Thu, 09 Jun 2011 17:35:22 -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-189903037</link><description>&lt;p&gt;sudo /etc/init.d/memcached restart&lt;br&gt;sudo: /etc/init.d/memcached: command not found&lt;br&gt;???&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Владислав Максимов</dc:creator><pubDate>Fri, 22 Apr 2011 03:58:33 -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-176189001</link><description>&lt;p&gt;As a bit of a follow up....  I guess the way that it is currently set up it would insert two times into the history_clients table if your UPDATE contained a change to the first AND last name.  Maybe there is a reason for doing this, but I would think that reflecting BOTH changes in one row in the history_clients table would be the way to go.  That is why I am wondering if we could somehow combine them.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rick</dc:creator><pubDate>Fri, 01 Apr 2011 10:56:22 -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-176182125</link><description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I am wondering if there is a way to combine the 2 if statements in the MySQL trigger.  Instead of having one to check and see if there has been a change to the first name and a SEPARATE check to see if there has been a change to the last name would it be possible to combine them?&lt;/p&gt;

&lt;p&gt;I guess what I am asking is if MySQL can support a structure such as IF( A != B || C != D){...  If "a" or "b" is the following...  or even an IF (A != B &amp;amp;&amp;amp; C != D){...  If "a" and "b" do the following.&lt;/p&gt;

&lt;p&gt;Thanks in advance,&lt;br&gt;Rick&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rick</dc:creator><pubDate>Fri, 01 Apr 2011 10:40:06 -0000</pubDate></item><item><title>Re: How to Write Django Template Tags</title><link>http://codespatter.com/2009/01/22/how-to-write-django-template-tags/#comment-172281435</link><description>&lt;p&gt;That is interesting. I will give it a try.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lottery Black Book</dc:creator><pubDate>Sat, 26 Mar 2011 12:03:31 -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-166090983</link><description>&lt;p&gt;worked like a charm for me,thanks a lot :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Djd4rce</dc:creator><pubDate>Tue, 15 Mar 2011 09:41:16 -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-139341515</link><description>&lt;p&gt;Thanks for sharing your mind with us.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">how to get pregnant fast</dc:creator><pubDate>Thu, 03 Feb 2011 01:40:29 -0000</pubDate></item></channel></rss>
