<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Friends of LarcenIII</title><link>http://disqus.com/by/LarcenIII/</link><description></description><atom:link href="http://disqus.com/LarcenIII/friends.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 17 Sep 2010 10:34:54 -0000</lastBuildDate><item><title>Re: PHP jQuery AJAX Javascript Long Polling</title><link>(u'http://www.perplexedlabs.com/2009/05/04/php-jquery-ajax-javascript-long-polling/',%209407206L)#comment-9407206</link><description>&lt;p&gt;John,&lt;/p&gt;&lt;p&gt;Are you having trouble tailoring the example code I provided to your domain?  What are you trying to accomplish?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Sat, 16 May 2009 09:47:51 -0000</pubDate></item><item><title>Re: Be Language Agnostic - Solve the Problem!</title><link>(u'http://www.perplexedlabs.com/2009/06/01/be-language-agnostic-solve-the-problem/',%2010358440L)#comment-10358440</link><description>&lt;p&gt;Orestis,&lt;/p&gt;&lt;p&gt;I would be interested in reading more about that if you can find a link.&lt;/p&gt;&lt;p&gt;Truth be told it was the first time I had heard about it.  I can't speak much for its validity with respect to human language but, I agree, it makes a lot of sense in the realm of computer programming languages.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;-Matt&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Mon, 01 Jun 2009 14:48:50 -0000</pubDate></item><item><title>Re: PHP jQuery AJAX Javascript Long Polling</title><link>(u'http://www.perplexedlabs.com/2009/05/04/php-jquery-ajax-javascript-long-polling/',%2010358669L)#comment-10358669</link><description>&lt;p&gt;Way,&lt;/p&gt;&lt;p&gt;I believe this has to do with PHP Sessions using the default "files" save_handler.  In order to prevent race conditions with data inside the $_SESSION variable PHP locks the file its storing the data in.  A second request that tries to initiate a session tries to access this same file and waits for it to become available.&lt;/p&gt;&lt;p&gt;If you use a custom session save_handler (like memcache or your database) and implement variable level locking (instead of session level locking) you can circumvent this problem.&lt;/p&gt;&lt;p&gt;Perhaps this is a good blog post, I'll write something up.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;-Matt&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Mon, 01 Jun 2009 14:55:47 -0000</pubDate></item><item><title>Re: Be Language Agnostic - Solve the Problem!</title><link>(u'http://www.perplexedlabs.com/2009/06/01/be-language-agnostic-solve-the-problem/',%2010611804L)#comment-10611804</link><description>&lt;p&gt;Olivier,&lt;/p&gt;&lt;p&gt;I'm confused as to what exactly you disagree with.  You're making the same points as the post... ie use the language with the features/performance/etc. required for the job.&lt;/p&gt;&lt;p&gt;Am I missing something?&lt;/p&gt;&lt;p&gt;-Matt&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Mon, 08 Jun 2009 09:13:11 -0000</pubDate></item><item><title>Re: Be Language Agnostic - Solve the Problem!</title><link>(u'http://www.perplexedlabs.com/2009/06/01/be-language-agnostic-solve-the-problem/',%2010649980L)#comment-10649980</link><description>&lt;p&gt;Thanks for your feedback.  I agree with your points with regards to the line you quoted.  In hindsight it doesn't jive with the rest of the points I'm making in that paragraph.&lt;/p&gt;&lt;p&gt;With respect to Sapir-whorf.  My understanding is that what it suggests is fundamentally different than the point you're making.  It supposes that a language affects how you think.&lt;/p&gt;&lt;p&gt;This does make sense to me.  Take Python - you think "pythonic".  A functional programming language would encourage you to think functionally.  C encourages you to think procedurally.  Etc.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Tue, 09 Jun 2009 09:41:31 -0000</pubDate></item><item><title>Re: PHP jQuery AJAX Javascript Long Polling</title><link>(u'http://www.perplexedlabs.com/2009/05/04/php-jquery-ajax-javascript-long-polling/',%2010654881L)#comment-10654881</link><description>&lt;p&gt;Dave,&lt;/p&gt;&lt;p&gt;No, using FastCGI as an interface for PHP and Apache wouldn't help.  It's Apache itself thats the problem.  It isn't a web server meant for a high-volume of simultaneously open connections.&lt;/p&gt;&lt;p&gt;It isn't that difficult to get up and running with lighttpd on a cPanel box.&lt;/p&gt;&lt;p&gt;-Matt&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Tue, 09 Jun 2009 12:09:20 -0000</pubDate></item><item><title>Re: PHP jQuery AJAX Javascript Long Polling</title><link>(u'http://www.perplexedlabs.com/2009/05/04/php-jquery-ajax-javascript-long-polling/',%2010673411L)#comment-10673411</link><description>&lt;p&gt;Dave,&lt;/p&gt;&lt;p&gt;I think you're thinking about this wrong.  You don't need FastCGI in order to scale an app that uses this technique.  FastCGI just happens to be a common interface of servers that are able to scale with an app using this technique.&lt;/p&gt;&lt;p&gt;Lighttpd would be my suggested choice given that it's easy to get PHP up and running on it and is fairly easy to install.&lt;/p&gt;&lt;p&gt;-Matt&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Tue, 09 Jun 2009 19:16:40 -0000</pubDate></item><item><title>Re: Adventures in Django and Python &amp;#8211; Part III</title><link>(u'http://blog.perplexedlabs.com/2009/08/13/adventures-in-django-and-python-part-iii/',%2014784030L)#comment-14784030</link><description>&lt;p&gt;Thanks for pointing that out, I'll update the post.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Thu, 13 Aug 2009 11:17:26 -0000</pubDate></item><item><title>Re: Adventures in Django and Python &amp;#8211; Part III</title><link>(u'http://blog.perplexedlabs.com/2009/08/13/adventures-in-django-and-python-part-iii/',%2014784184L)#comment-14784184</link><description>&lt;p&gt;Thanks Jake.  As usually is the case it's fantastic for a large number of scenarios but, as you dig deeper and need to finely tune things, you begin to identify potential areas for improvement.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Thu, 13 Aug 2009 11:20:04 -0000</pubDate></item><item><title>Re: Adventures in Django and Python &amp;#8211; Part III</title><link>(u'http://blog.perplexedlabs.com/2009/08/13/adventures-in-django-and-python-part-iii/',%2014786036L)#comment-14786036</link><description>&lt;p&gt;Interesting, thanks.&lt;/p&gt;&lt;p&gt;I suppose using the 2nd method you proposed, count(), would be ideal for performance/memory reasons because you're not transferring the result-set from the database.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Thu, 13 Aug 2009 11:57:29 -0000</pubDate></item><item><title>Re: Adventures in Django and Python &amp;#8211; Part III</title><link>(u'http://blog.perplexedlabs.com/2009/08/13/adventures-in-django-and-python-part-iii/',%2014792903L)#comment-14792903</link><description>&lt;p&gt;John, this is exactly in line with what I'd like to be able to accomplish.  I like where you're going with this.&lt;/p&gt;&lt;p&gt;Perhaps splitting on something other than a space?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Thu, 13 Aug 2009 14:20:07 -0000</pubDate></item><item><title>Re: Adventures in Django and Python &amp;#8211; Part III</title><link>(u'http://blog.perplexedlabs.com/2009/08/13/adventures-in-django-and-python-part-iii/',%2014792968L)#comment-14792968</link><description>&lt;p&gt;I looked up the 'attrs' documentation, which is sparse.  I don't think it's the responsibility of the view or the Form definition to define template related attributes like style, size, etc.  I think these attributes should elegantly be modified within the template.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Thu, 13 Aug 2009 14:21:17 -0000</pubDate></item><item><title>Re: Adventures in Django and Python &amp;#8211; Part III</title><link>(u'http://blog.perplexedlabs.com/2009/08/13/adventures-in-django-and-python-part-iii/',%2014794914L)#comment-14794914</link><description>&lt;p&gt;DISQUS supports some html, apparently not PRE :(&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Thu, 13 Aug 2009 15:06:13 -0000</pubDate></item><item><title>Re: Adventures in Django and Python &amp;#8211; Part III</title><link>(u'http://blog.perplexedlabs.com/2009/08/13/adventures-in-django-and-python-part-iii/',%2014832089L)#comment-14832089</link><description>&lt;p&gt;You have to define those attributes somewhere.  It makes more sense (to me) to do that within the template than in your form definition or in your view.&lt;/p&gt;&lt;p&gt;Even if you ultimately style the attributes using CSS you have to specify that class somewhere.  I'd like to able to easily do that from within the template.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Fri, 14 Aug 2009 09:46:40 -0000</pubDate></item><item><title>Re: Getting Started with Django and Python &amp;#8211; First Impressions</title><link>(u'http://blog.perplexedlabs.com/2009/02/08/getting-started-with-django-and-python-first-impressions/',%2014961881L)#comment-14961881</link><description>&lt;p&gt;Joe,&lt;/p&gt;&lt;p&gt;Thanks for your comment.&lt;/p&gt;&lt;p&gt;&lt;a href="http://views.py" rel="nofollow noopener" target="_blank" title="views.py"&gt;views.py&lt;/a&gt; can go in your project root (if you have project specific views) and it can go in any apps directory (where &lt;a href="http://__init__.py" rel="nofollow noopener" target="_blank" title="__init__.py"&gt;__init__.py&lt;/a&gt; is) that you have in your installed apps setting.&lt;/p&gt;&lt;p&gt;Check your apache error_log to see why Django is crashing when you have Debug = false.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Mon, 17 Aug 2009 12:04:01 -0000</pubDate></item><item><title>Re: PHP jQuery AJAX Javascript Long Polling</title><link>(u'http://www.perplexedlabs.com/2009/05/04/php-jquery-ajax-javascript-long-polling/',%2016429926L)#comment-16429926</link><description>&lt;p&gt;have you tried enabling script debugging to see what line of code is causing the problem?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Fri, 11 Sep 2009 13:11:55 -0000</pubDate></item><item><title>Re: PHP jQuery AJAX Javascript Long Polling</title><link>(u'http://www.perplexedlabs.com/2009/05/04/php-jquery-ajax-javascript-long-polling/',%2016506310L)#comment-16506310</link><description>&lt;p&gt;A couple things.&lt;/p&gt;&lt;p&gt;You should move your memcache connection line outside the while loop - you don't want to reconnect every iteration.&lt;/p&gt;&lt;p&gt;$data, the way you have it written, can never be empty so the loop will always only run one iteration.&lt;/p&gt;&lt;p&gt;If there are no script errors being reported, is an empty alert box being displayed?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Sat, 12 Sep 2009 14:26:01 -0000</pubDate></item><item><title>Re: Database Read/Write Splitting in Frameworks/ORMs</title><link>(u'https://eric.lubow.org/2010/database-readwrite-splitting-in-frameworksorms/',%2037663920L)#comment-37663920</link><description>&lt;p&gt;While I see the point you're raising I think it's interesting to keep in mind the ol' 80/20 rule.  A web framework is trying to solve 80% of the problems for you.&lt;/p&gt;&lt;p&gt;They get you *most* of the way there, quickly.  When you're hitting scalability issues it might be time to break out of the confines of an ORM anyway, whether or not you've encountered this particular issue.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Tue, 02 Mar 2010 17:14:57 -0000</pubDate></item><item><title>Re: PHP Forking to Concurrency with pcntl_fork()</title><link>(u'http://blog.perplexedlabs.com/2010/03/02/php-forking-to-concurrency/',%2037709636L)#comment-37709636</link><description>&lt;p&gt;Basically, you want the child to exit without cleaning up.&lt;/p&gt;&lt;p&gt;Thanks for the comment!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Tue, 02 Mar 2010 20:10:11 -0000</pubDate></item><item><title>Re: Python libwkhtmltox module &amp;#8211; wrapping a C library using Cython &amp;#8211; convert HTML to PDF</title><link>(u'http://blog.perplexedlabs.com/?p=483',%2076913718L)#comment-76913718</link><description>&lt;p&gt;thanks!  it's definitely powerful to be able to have the option (without changing markup, css, or even javascript powered views) to produce a high-quality PDF or image.&lt;br&gt;&lt;br&gt;was really happy that Cython was so easy to work with.&lt;br&gt;&lt;br&gt;let me know if you find any issues...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Sat, 11 Sep 2010 10:56:21 -0000</pubDate></item><item><title>Re: Convert HTML to PDF in PHP (libwkhtmltox extension)</title><link>(u'http://blog.perplexedlabs.com/2010/09/15/convert-html-to-pdf-in-php-libwkhtmltox-extension/',%2077789321L)#comment-77789321</link><description>&lt;p&gt;I guess it would be possible to provide a binary distribution for common platforms and, depending on the version of PHP you're running (ie &amp;lt; 5.3) you could use the dl() function to dynamically introduce the extension.  The shared hosting environment might have disabled that too, though.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Wed, 15 Sep 2010 10:52:13 -0000</pubDate></item><item><title>Re: Convert HTML to PDF in PHP (libwkhtmltox extension)</title><link>(u'http://blog.perplexedlabs.com/2010/09/15/convert-html-to-pdf-in-php-libwkhtmltox-extension/',%2078119377L)#comment-78119377</link><description>&lt;p&gt;James, have you run ldconfig?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Thu, 16 Sep 2010 09:09:49 -0000</pubDate></item><item><title>Re: Convert HTML to PDF in PHP (libwkhtmltox extension)</title><link>(u'http://blog.perplexedlabs.com/2010/09/15/convert-html-to-pdf-in-php-libwkhtmltox-extension/',%2078137787L)#comment-78137787</link><description>&lt;p&gt;Sure you have the libs for the right architecture you're trying to build the extension for?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Thu, 16 Sep 2010 10:33:53 -0000</pubDate></item><item><title>Re: Convert HTML to PDF in PHP (libwkhtmltox extension)</title><link>(u'http://blog.perplexedlabs.com/2010/09/15/convert-html-to-pdf-in-php-libwkhtmltox-extension/',%2078315569L)#comment-78315569</link><description>&lt;p&gt;Hey James I've updated the config.m4 file that phpize uses to generate the configure script.  Can you:&lt;/p&gt;&lt;p&gt;$ git pull origin master&lt;br&gt;$ phpize --clean&lt;br&gt;$ phpize&lt;br&gt;$ ./configure&lt;/p&gt;&lt;p&gt;And if it isn't working paste the entire output of the configure script?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Thu, 16 Sep 2010 17:06:53 -0000</pubDate></item><item><title>Re: Convert HTML to PDF in PHP (libwkhtmltox extension)</title><link>(u'http://blog.perplexedlabs.com/2010/09/15/convert-html-to-pdf-in-php-libwkhtmltox-extension/',%2078536655L)#comment-78536655</link><description>&lt;p&gt;and how about the full output of:&lt;/p&gt;&lt;p&gt;$ ldconfig -v&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Reiferson</dc:creator><pubDate>Fri, 17 Sep 2010 10:34:54 -0000</pubDate></item></channel></rss>