<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for andrew.io/weblog</title>
	<atom:link href="http://andrew.io/weblog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://andrew.io/weblog</link>
	<description>andrew watts&#039; weblog</description>
	<lastBuildDate>Sat, 14 Apr 2012 09:41:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on Finding Anagrams with Python by orestes</title>
		<link>http://andrew.io/weblog/2010/03/finding-anagrams-with-python/comment-page-1/#comment-324</link>
		<dc:creator>orestes</dc:creator>
		<pubDate>Sat, 14 Apr 2012 09:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://andrew.io/weblog/?p=212#comment-324</guid>
		<description>&lt;p&gt;Your site has been hijacked and it redirects to a russian malware page.
Please delete my comment. Thank you.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Your site has been hijacked and it redirects to a russian malware page.
Please delete my comment. Thank you.</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Close Button for jQuery UI Tabs by ssss</title>
		<link>http://andrew.io/weblog/2010/01/a-close-button-for-jquery-ui-tabs/comment-page-1/#comment-323</link>
		<dc:creator>ssss</dc:creator>
		<pubDate>Wed, 04 Apr 2012 12:06:33 +0000</pubDate>
		<guid isPermaLink="false">http://andrew.io/weblog/?p=69#comment-323</guid>
		<description>&lt;p&gt;text&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>text</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Django, Piston and Handling CSRF Tokens by Rohan Jain</title>
		<link>http://andrew.io/weblog/2010/01/django-piston-and-handling-csrf-tokens/comment-page-1/#comment-313</link>
		<dc:creator>Rohan Jain</dc:creator>
		<pubDate>Sat, 04 Feb 2012 04:05:39 +0000</pubDate>
		<guid isPermaLink="false">http://andrew.io/weblog/?p=115#comment-313</guid>
		<description>&lt;p&gt;Ref: Solution 1&lt;/p&gt;

&lt;p&gt;Instead of extending the resource class, this also seems to work for me:&lt;/p&gt;

&lt;p&gt;File: urls.py&lt;/p&gt;

&lt;p&gt;from django.contrib.csrf.middleware import csrf_exempt&lt;/p&gt;

&lt;p&gt;from piston.resource import Resource&lt;/p&gt;

&lt;p&gt;from app.handlers import AppHandler&lt;/p&gt;

&lt;p&gt;app_handler = csrf_exempt(Resource(AppHandler))&lt;/p&gt;

&lt;p&gt;urlpatterns = patterns(&#039;main.views&#039;,&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;&lt;code&gt;url(r&#039;^$&#039;, app_handler),
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;Any reason we shouldn&#039;t do this?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ref: Solution 1</p>

<p>Instead of extending the resource class, this also seems to work for me:</p>

<p>File: urls.py</p>

<p>from django.contrib.csrf.middleware import csrf_exempt</p>

<p>from piston.resource import Resource</p>

<p>from app.handlers import AppHandler</p>

<p>app_handler = csrf_exempt(Resource(AppHandler))</p>

<p>urlpatterns = patterns(&#039;main.views&#039;,</p>

<p><pre><code>url(r&#039;^$&#039;, app_handler),
</code></pre></p>

<p>)</p>

<p>Any reason we shouldn&#039;t do this?</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installing Python 2.6, virtualenv, and virtualenvwrapper on Dreamhost by Install python 2.7 on Red Hat /CentOS 5 &#124; 世界是平的</title>
		<link>http://andrew.io/weblog/2010/02/installing-python-2-6-virtualenv-and-virtualenvwrapper-on-dreamhost/comment-page-1/#comment-312</link>
		<dc:creator>Install python 2.7 on Red Hat /CentOS 5 &#124; 世界是平的</dc:creator>
		<pubDate>Sat, 28 Jan 2012 18:46:55 +0000</pubDate>
		<guid isPermaLink="false">http://andrew.io/weblog/?p=165#comment-312</guid>
		<description>&lt;p&gt;[...] be done with it. If you want all the modules that you can get, you are in for some extra building. This post does a good job of explaining the installation of Python 2.6; mine is based on it. Let’s put the [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] be done with it. If you want all the modules that you can get, you are in for some extra building. This post does a good job of explaining the installation of Python 2.6; mine is based on it. Let’s put the [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Close Button for jQuery UI Tabs by Ismail JH</title>
		<link>http://andrew.io/weblog/2010/01/a-close-button-for-jquery-ui-tabs/comment-page-1/#comment-310</link>
		<dc:creator>Ismail JH</dc:creator>
		<pubDate>Tue, 27 Dec 2011 10:36:34 +0000</pubDate>
		<guid isPermaLink="false">http://andrew.io/weblog/?p=69#comment-310</guid>
		<description>&lt;p&gt;Thanks, 
to prevent close button to appear in some tabs edit ui.tabs.closable.js, line 30 and add the following code: 
if($(this).index() &lt; 2) return; 
              this mean skip the first two tabs {0 &amp; 1} or 
if($(this).index() = 3) return;&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;&lt;code&gt;          to skip the 4th tab for example 
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;https://github.com/andrewwatts/ui.tabs.closable/blob/master/ui.tabs.closable.js&lt;/p&gt;

&lt;p&gt;the function unclosable_lis.each(function() will be like : 
            unclosable_lis.each(function() { 
                if($(this).index() &lt; 2) return; 
                $(this) 
                    .append(&#039;&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;&#039;) 
                    .find(&#039;a:last&#039;) 
                        .hover( 
                            function() { 
                                $(this).css(&#039;cursor&#039;, &#039;pointer&#039;); 
                            }, 
                            function() { 
                                $(this).css(&#039;cursor&#039;, &#039;default&#039;); 
                            } 
                        ) 
                        .click(function() { 
                            var index = self.lis.index($(this).parent()); 
                            if (index &gt; -1) { 
                                // call _trigger to see if remove is allowed 
                                if (false === self._trigger(&quot;closableClick&quot;, null, self._ui( $(self.lis[index]).find( &quot;a&quot; )[ 0 ], self.panels[index] ))) return;&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;&lt;code&gt;                            // remove this tab 
                            self.remove(index) 
                        }&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;&lt;code&gt;                    // don&#039;t follow the link 
                    return false; 
                }) 
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks, 
to prevent close button to appear in some tabs edit ui.tabs.closable.js, line 30 and add the following code: 
if($(this).index() &lt; 2) return; 
              this mean skip the first two tabs {0 &amp; 1} or 
if($(this).index() = 3) return;</p>

<p><pre><code>          to skip the 4th tab for example 
</code></pre></p>

<p><a href="https://github.com/andrewwatts/ui.tabs.closable/blob/master/ui.tabs.closable.js" rel="nofollow">https://github.com/andrewwatts/ui.tabs.closable/blob/master/ui.tabs.closable.js</a></p>

<p>the function unclosable_lis.each(function() will be like : 
            unclosable_lis.each(function() { 
                if($(this).index() &lt; 2) return; 
                $(this) 
                    .append(&#8216;<a href="#" rel="nofollow"></a>&#8216;) 
                    .find(&#8216;a:last&#8217;) 
                        .hover( 
                            function() { 
                                $(this).css(&#8216;cursor&#8217;, &#8216;pointer&#8217;); 
                            }, 
                            function() { 
                                $(this).css(&#8216;cursor&#8217;, &#8216;default&#8217;); 
                            } 
                        ) 
                        .click(function() { 
                            var index = self.lis.index($(this).parent()); 
                            if (index &gt; -1) { 
                                // call _trigger to see if remove is allowed 
                                if (false === self._trigger(&#8220;closableClick&#8221;, null, self._ui( $(self.lis[index]).find( &#8220;a&#8221; )[ 0 ], self.panels[index] ))) return;</p>

<p><pre><code>                            // remove this tab 
                            self.remove(index) 
                        }</code></pre></p>

<p><pre><code>                    // don't follow the link 
                    return false; 
                }) 
</code></pre></p>

<p></p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Close Button for jQuery UI Tabs by lucian</title>
		<link>http://andrew.io/weblog/2010/01/a-close-button-for-jquery-ui-tabs/comment-page-1/#comment-309</link>
		<dc:creator>lucian</dc:creator>
		<pubDate>Thu, 22 Dec 2011 17:36:22 +0000</pubDate>
		<guid isPermaLink="false">http://andrew.io/weblog/?p=69#comment-309</guid>
		<description>&lt;p&gt;this was so great!!!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>this was so great!!!</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installing Django With virtualenv on Dreamhost by Fazendo o deploy de uma aplicação Django no Dreamhost &#124; Elyézer Rezende</title>
		<link>http://andrew.io/weblog/2010/02/installing-django-with-virtualenv-on-dreamhost/comment-page-1/#comment-308</link>
		<dc:creator>Fazendo o deploy de uma aplicação Django no Dreamhost &#124; Elyézer Rezende</dc:creator>
		<pubDate>Thu, 22 Dec 2011 15:07:24 +0000</pubDate>
		<guid isPermaLink="false">http://andrew.io/weblog/?p=171#comment-308</guid>
		<description>&lt;p&gt;[...] a URL http://projeto.com.br/admin.ReferênciasDjango (Dreamhost Wiki)Passenger WSGI (Dreamhost Wiki)Installing Django With virtualenv on DreamhostCompartilhe:EmailPrint This entry was posted in Desenvolvimento and tagged deploy, django, [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] a URL <a href="http://projeto.com.br/admin.ReferênciasDjango" rel="nofollow">http://projeto.com.br/admin.ReferênciasDjango</a> (Dreamhost Wiki)Passenger WSGI (Dreamhost Wiki)Installing Django With virtualenv on DreamhostCompartilhe:EmailPrint This entry was posted in Desenvolvimento and tagged deploy, django, [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Close Button for jQuery UI Tabs by DBee</title>
		<link>http://andrew.io/weblog/2010/01/a-close-button-for-jquery-ui-tabs/comment-page-1/#comment-305</link>
		<dc:creator>DBee</dc:creator>
		<pubDate>Fri, 16 Dec 2011 16:55:57 +0000</pubDate>
		<guid isPermaLink="false">http://andrew.io/weblog/?p=69#comment-305</guid>
		<description>&lt;p&gt;Look at the un-minified code and you will see &quot;//append the close button and associated events&quot; comment line.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Look at the un-minified code and you will see &quot;//append the close button and associated events&quot; comment line.</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Close Button for jQuery UI Tabs by Daniel Wozniak</title>
		<link>http://andrew.io/weblog/2010/01/a-close-button-for-jquery-ui-tabs/comment-page-1/#comment-303</link>
		<dc:creator>Daniel Wozniak</dc:creator>
		<pubDate>Fri, 16 Dec 2011 03:10:15 +0000</pubDate>
		<guid isPermaLink="false">http://andrew.io/weblog/?p=69#comment-303</guid>
		<description>&lt;p&gt;Very nice little helper. I&#039;m gonna get some use out of it. Thanks.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Very nice little helper. I&#039;m gonna get some use out of it. Thanks.</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installing Django With virtualenv on Dreamhost by Setting Up Django on Dreamhost &#124; Notes</title>
		<link>http://andrew.io/weblog/2010/02/installing-django-with-virtualenv-on-dreamhost/comment-page-1/#comment-302</link>
		<dc:creator>Setting Up Django on Dreamhost &#124; Notes</dc:creator>
		<pubDate>Thu, 15 Dec 2011 08:28:52 +0000</pubDate>
		<guid isPermaLink="false">http://andrew.io/weblog/?p=171#comment-302</guid>
		<description>&lt;p&gt;[...] This process was stolen primarily from Installing Django With virtualenv on Dreamhost. [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] This process was stolen primarily from Installing Django With virtualenv on Dreamhost. [...]</p>]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
