<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Stereonaut! &#187; planeta linux</title>
	<atom:link href="http://stereonaut.net/category/planeta-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://stereonaut.net</link>
	<description>A weblog by David Moreno.</description>
	<lastBuildDate>Mon, 23 Aug 2010 00:45:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Apache2::Archive 0.2</title>
		<link>http://stereonaut.net/apache2archive-0-2/</link>
		<comments>http://stereonaut.net/apache2archive-0-2/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 00:45:00 +0000</pubDate>
		<dc:creator>David Moreno</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[planeta linux]]></category>

		<guid isPermaLink="false">http://stereonaut.net/?p=1193</guid>
		<description><![CDATA[Apache2::Archive is a mod_perl 2 extension that allows the Apache HTTP server to expose tar and tar.gz archives on the fly. When a client requests such an archive file, the server will return a page displaying information about the file that allows the user to view or download individual files from within the archive. I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://search.cpan.org/dist/Apache2-Archive">Apache2::Archive</a> is a mod_perl 2 extension that allows the Apache HTTP server to expose tar and tar.gz archives on the fly. When a client requests such an archive file, the server will return a page displaying information about the file that allows the user to view or download individual files from within the archive.</p>
<p>I just uploaded version <strong>0.2</strong> to <a href="http://search.cpan.org/~damog">CPAN</a> and <a href="http://github.com/damog/apache2-archive/tree/0.2">GitHub</a> correcting a few automatic build issues presented with dependencies. Grab it now with <tt><a href="http://search.cpan.org/dist/App-CPAN-Fresh/">cpanf</a></tt>!</p>
]]></content:encoded>
			<wfw:commentRss>http://stereonaut.net/apache2archive-0-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solicito desarrollador Ruby on Rails</title>
		<link>http://stereonaut.net/solicito-desarrollador-ruby-on-rails/</link>
		<comments>http://stereonaut.net/solicito-desarrollador-ruby-on-rails/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 14:19:12 +0000</pubDate>
		<dc:creator>David Moreno</dc:creator>
				<category><![CDATA[planeta linux]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[méxico]]></category>
		<category><![CDATA[nabbr]]></category>
		<category><![CDATA[selectable media]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://stereonaut.net/?p=1182</guid>
		<description><![CDATA[Estoy en busca de un desarrollador Ruby y Ruby on Rails para unirse a la empresa en la cual estoy trabajando en Nueva York. La posición es para trabajar permanentemente desde la Ciudad de México en la Col. Roma con muy buenas facilidades, ambiente y un salario altamente competitivo. A continuación la descripción de la [...]]]></description>
			<content:encoded><![CDATA[<p>Estoy en busca de un desarrollador Ruby y Ruby on Rails para unirse a la empresa en la cual estoy trabajando en Nueva York. La posición es para trabajar permanentemente desde la Ciudad de México en la Col. Roma con muy buenas facilidades, ambiente y un salario altamente competitivo.</p>
<p>A continuación la descripción de la oferta:</p>
<blockquote><p><strong>Selectable Media</strong> is looking for a talented engineer to be a major contributor to the development of its new social video platform. You should be a technical generalist who is eager to conquer our most challenging problems and is excited to learn new skills.</p>
<p><strong>Selectable Media</strong> is the leading video distribution network targeted at the Gen Y audience. We make video advertising fun as we provide advertisers with an efficient and effective way to reach the younger demographic. You will be part of a rapidly growing startup as we look to expand our distribution network across social networking and mobile platforms.</p>
<p>Requirements:</p>
<ul>
<li>Strong communication and team working skills</li>
<li>Demonstrated self starter</li>
<li>Ruby &amp; Ruby on Rails backend development</li>
<li>Experience designing software and APIs</li>
<li>Deep understanding of web applications, REST, and HTTP</li>
<li>Knowledge of Nginx and Mongrel</li>
</ul>
<p>Plusses:</p>
<ul>
<li>Proficient with Javascript, JS libraries (ExtJS, jQuery, prototype)</li>
<li>Experience with Git version control</li>
<li>Familiarity with the popular Rails Plugins/Gems</li>
<li>Use and contribute to open source software projects</li>
<li>Knowledge of MongoDB &amp; PHP/mySQL</li>
</ul>
<p>Candidates should reply with a resume and links to any projects they have contributed to.</p></blockquote>
<p>Si estás interesado o sabes de alguien que lo puda estar, por favor enviar resume (en inglés, desde luego) a david@nabbr.com. No me queda más que decir que en realidad es una gran oportunidad y el trabajo es altamente flexible y divertido.</p>
]]></content:encoded>
			<wfw:commentRss>http://stereonaut.net/solicito-desarrollador-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx talk on FLISOL at UIA</title>
		<link>http://stereonaut.net/nginx-talk-on-flisol-at-uia/</link>
		<comments>http://stereonaut.net/nginx-talk-on-flisol-at-uia/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 15:30:21 +0000</pubDate>
		<dc:creator>David Moreno</dc:creator>
				<category><![CDATA[nginx]]></category>
		<category><![CDATA[planeta linux]]></category>
		<category><![CDATA[flisol]]></category>

		<guid isPermaLink="false">http://stereonaut.net/?p=1167</guid>
		<description><![CDATA[Friends, I&#039;ll be attending the FLISOL (Latin American Free Software Install Fest) conference in Universidad Iberoamericana, this Friday, where I&#039;ll be talking about how marvelous nginx is and why you should use it. If you are near, you should stop by! Tell of your co-workers and friends, it&#039;ll be fun.]]></description>
			<content:encoded><![CDATA[<p>Friends, I&#039;ll be attending the <a href="http://installfest.info">FLISOL</a> (<em>Latin American Free Software Install Fest</em>) <a href="http://flisol.info/FLISOL2010/Mexico">conference</a> in Universidad Iberoamericana, this Friday, where I&#039;ll be talking about how marvelous <a href="http://nginx.org">nginx</a> is and why you should use it. If you are near, you should stop by! Tell of your co-workers and friends, it&#039;ll be fun.</p>
<p style="text-align: center;"><a href="http://stereonaut.net/wp-content/uploads/2010/04/Screen-shot-2010-04-21-at-10.28.34-AM.png"><img class="aligncenter size-medium wp-image-1168" title="Screen shot 2010-04-21 at 10.28.34 AM" src="http://stereonaut.net/wp-content/uploads/2010/04/Screen-shot-2010-04-21-at-10.28.34-AM-200x300.png" alt="" width="200" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://stereonaut.net/nginx-talk-on-flisol-at-uia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TechCrunch top-stories news feed</title>
		<link>http://stereonaut.net/techcrunch-top-stories-news-feed/</link>
		<comments>http://stereonaut.net/techcrunch-top-stories-news-feed/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 23:54:33 +0000</pubDate>
		<dc:creator>David Moreno</dc:creator>
				<category><![CDATA[geek]]></category>
		<category><![CDATA[planeta linux]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[techcrunch]]></category>
		<category><![CDATA[top stories]]></category>

		<guid isPermaLink="false">http://stereonaut.net/?p=1163</guid>
		<description><![CDATA[Being surrounded by the Web 2.0, I have to keep myself informed. TechCrunch is the most natural source of information. However, they write a lot of news stories every single day. A lot. Enough to make me feel stressed just to have so many shit to read on my feed reader. Well, since I still [...]]]></description>
			<content:encoded><![CDATA[<p>Being surrounded by the Web 2.0, I have to keep myself informed. <a href="http://techcrunch.com">TechCrunch</a> is the most natural source of information. However, they write a lot of news stories every single day. A lot. Enough to make me feel stressed just to have so many shit to read on my feed reader.</p>
<p>Well, since I still wanted to read the top stories, but they don&#039;t provide such a feed, like <a href="http://lifehacker.com/">Lifehacker</a> (<a href="http://lifehacker.com/tag/top/index.xml">kind of</a>) does, I hacked a feed:</p>
<p style="text-align: center;"><a href="http://topstories.axiombox.com/techcrunch.rss">http://topstories.axiombox.com/techcrunch.rss</a></p>
<p>This will grab the usual TechCrunch feed but it will test every single entry against the retweets registered on TweetMeme for each post. If the number of RTs is at least 500, the story gets pushed onto this feed. This filters out a lot of their stuff and leaves a manageable storyline of about 3 to 6 stories a day, coming from a 20 or 30+ stories a day on the regular feed.</p>
<p>Feel free to grab the feed and use it. Maybe in the future I&#039;ll add a configurable threshold parameter for the number of RTs for posts to be filtered. In the meantime, this what I got.</p>
]]></content:encoded>
			<wfw:commentRss>http://stereonaut.net/techcrunch-top-stories-news-feed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Feedbag 0.6</title>
		<link>http://stereonaut.net/feedbag-06/</link>
		<comments>http://stereonaut.net/feedbag-06/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 01:36:59 +0000</pubDate>
		<dc:creator>David Moreno</dc:creator>
				<category><![CDATA[planeta linux]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[feedbag]]></category>
		<category><![CDATA[gemcutter]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[rubygems]]></category>

		<guid isPermaLink="false">http://stereonaut.net/?p=1158</guid>
		<description><![CDATA[I just uploaded Feedbag 0.6 to Gemcutter and GitHub. Just a couple of small nice additions to this version: The undocumented args[:narrow] option has been disabled until further notice. A nice little commit from one of Feedbag&#039;s forks, by Patrick Reagan. Added an executable to find feed URLs directly: Sometimes you need to find the [...]]]></description>
			<content:encoded><![CDATA[<p>I just uploaded <a href="http://axiombox.com/feedbag">Feedbag</a> 0.6 to <a href="http://rubygems.org/gems/feedbag/versions/0.6">Gemcutter</a> and <a href="http://github.com/damog/feedbag">GitHub</a>.</p>
<p>Just a couple of small nice additions to this version:</p>
<ul>
<li>The undocumented <tt>args[:narrow]</tt> option has been disabled until further notice.</li>
<li>A nice little commit from <a href="http://github.com/damog/feedbag/commit/ad7fdaf671b039cac5550b89d20de511b9a2bb14">one</a> of Feedbag&#039;s forks, by Patrick Reagan.</li>
<li>Added an executable to find feed URLs directly:</li>
</ul>
<p>Sometimes you need to find the feed for a URL quickly, not from a script. What I do, and what someone else showed me too, is this:</p>
<pre class="brush: bash">
~ $ irb
-- require &quot;rubygems&quot;
= true
-- require &quot;feedbag&quot;
= true
-- Feedbag.find &quot;http://stereonaut.net&quot;
= [&quot;http://stereonaut.net/feed&quot;, &quot;http://stereonaut.net/tag/feed/&quot;, &quot;http://stereonaut.net/comments/feed/&quot;]
--
</pre>
<p>But now you can simply do:</p>
<pre class="brush: bash">
~ $ feedbag cnn.com http://twitter.com/compupaisa
== cnn.com:
 - http://rss.cnn.com/rss/cnn_topstories.rss
 - http://rss.cnn.com/rss/cnn_latest.rss
== http://twitter.com/compupaisa:
 - http://twitter.com/statuses/user_timeline/119479806.rss
 - http://twitter.com/favorites/119479806.rss
~ $
</pre>
<p>Enjoy the <tt>feedbag</tt> executable on your <tt>$PATH</tt> now!</p>
]]></content:encoded>
			<wfw:commentRss>http://stereonaut.net/feedbag-06/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian fails</title>
		<link>http://stereonaut.net/debian-fails/</link>
		<comments>http://stereonaut.net/debian-fails/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 21:06:19 +0000</pubDate>
		<dc:creator>David Moreno</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[planet-debian]]></category>
		<category><![CDATA[planeta linux]]></category>
		<category><![CDATA[bullshit]]></category>
		<category><![CDATA[fail]]></category>

		<guid isPermaLink="false">http://stereonaut.net/?p=1151</guid>
		<description><![CDATA[Generalizations are fun, they always are because they tend to offend people and offended people by stupid shit is usually lots of fun. Here Debian, as a whole, fails; it sucks. Here Debian blows ass, the entire project is whack. My good friend Chris Lee sent me this: If you can&#039;t see the above iframe, [...]]]></description>
			<content:encoded><![CDATA[<p>Generalizations are fun, they always are because they tend to offend people and offended people by stupid shit is usually lots of fun.</p>
<p>Here <a href="http://debian.org">Debian</a>, as a whole, fails; it sucks. Here Debian <strong>blows ass</strong>, the entire project is whack.</p>
<p>My good friend <a href="http://twitter.com/account/profile_image/akachrislee?hreflang=en">Chris Lee</a> sent me this:</p>
<p><iframe style="border:2px solid #000000" height="500" width="100%" src="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=380731" title="Debian fails"></iframe></p>
<p>If you can&#039;t see the above iframe, go <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=380731">here</a>.</p>
<p>Debian, full of fail. Wasn&#039;t this generalization fun?</p>
<p>Let the non-sense bullshit horses be released.</p>
]]></content:encoded>
			<wfw:commentRss>http://stereonaut.net/debian-fails/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Dancer::Template::Haml now available</title>
		<link>http://stereonaut.net/dancer-template-haml/</link>
		<comments>http://stereonaut.net/dancer-template-haml/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 21:43:53 +0000</pubDate>
		<dc:creator>David Moreno</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[planeta linux]]></category>
		<category><![CDATA[dancer]]></category>
		<category><![CDATA[haml]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://stereonaut.net/?p=1145</guid>
		<description><![CDATA[I put together a quick template engine for Dancer using Haml via Text::Haml. You know Haml, right? Now you can do neat shit like this: set template =&#62; &#039;haml&#039;; get &#039;/bazinga&#039;, sub { template &#039;bazinga&#039; =&#62; { title =&#62; &#039;Bazinga!&#039;, content =&#62; &#039;Bazinga?&#039;, }; }; Using: !!! %html{ : xmlns =&#62; &#34;http://www.w3.org/1999/xhtml&#34;, :lang =&#62; &#34;en&#34;, [...]]]></description>
			<content:encoded><![CDATA[<p>I put together a quick template engine for <a href="http://dancer.sukria.net/">Dancer</a> using <a href="http://haml-lang.com">Haml</a> via <a href="http://search.cpan.org/dist/Text-Haml/">Text::Haml</a>. You know Haml, right?</p>
<p>Now you can do neat shit like this:</p>
<pre class="brush: perl">
 set template =&gt; &#039;haml&#039;;

 get &#039;/bazinga&#039;, sub {
        template &#039;bazinga&#039; =&gt; {
                title =&gt; &#039;Bazinga!&#039;,
                content =&gt; &#039;Bazinga?&#039;,
        };
 };
</pre>
<p>Using:</p>
<pre class="brush: ruby">
 !!!
 %html{ : xmlns =&gt; &quot;http://www.w3.org/1999/xhtml&quot;, :lang =&gt; &quot;en&quot;, &quot;xml:lang&quot; =&gt; &quot;en&quot;}
   %head
     %title= title
   %body
     #content
       %strong= content
</pre>
<p>The dope thing about Text::Haml is that things like the Ruby interpolation will keep working.</p>
<p>Hurray! <a href="http://search.cpan.org/dist/Dancer-Template-Haml/">Go get it now</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://stereonaut.net/dancer-template-haml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New features on Dancer 1.130</title>
		<link>http://stereonaut.net/features-on-dancer-1-130/</link>
		<comments>http://stereonaut.net/features-on-dancer-1-130/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 03:36:50 +0000</pubDate>
		<dc:creator>David Moreno</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[planeta linux]]></category>
		<category><![CDATA[dancer]]></category>

		<guid isPermaLink="false">http://stereonaut.net/?p=1136</guid>
		<description><![CDATA[Last week, or the one before that one, Alexis released Dancer 1.130 which represents a big refactoring of the Dancer core code, taking all optional modules away from it: Logging, session and template engines were splited into their respective non-core modules, etc. Additionally, two keyword features were added, header and prefix. I will showcase both [...]]]></description>
			<content:encoded><![CDATA[<p>Last week, or the one before that one, <a href="http://www.sukria.net/">Alexis</a> released <a href="http://dancer.sukria.net">Dancer</a> <a href="http://search.cpan.org/~sukria/Dancer-1.130/lib/Dancer.pm">1.130</a> which represents a big refactoring of the Dancer core code, taking all optional modules away from it: Logging, session and template engines were splited into their respective non-core modules, etc. Additionally, two keyword features were added, header and prefix. I will showcase both in case you haven&#039;t heard the good word from them <img src='http://stereonaut.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3>header</h3>
<p>The <tt>header</tt> keyword allows you to modify or alter the response headers by hand. That was a nice little feature that still hadn&#039;t been implemented. With <tt>header</tt> you can do nice little things like this:</p>
<pre class="brush: perl">
get &#039;/set/header&#039; =&gt; sub {
  header &#039;X-Foo&#039; =&gt; &#039;bar&#039;;
  &quot;I&#039;m a happy string.&quot; . &quot;\n&quot;;
}
</pre>
<p>And this is what that very same code does:</p>
<pre class="brush: bash">
~ $ curl -i http://0.0.0.0:3000/set/header
HTTP/1.0 200 OK
X-Foo: bar
Content-Type: text/html
X-Powered-By: Perl Dancer 1.130

I&#039;m a happy string.
</pre>
<p>Also, <tt>header</tt> has a method synonym, <tt>headers</tt>, and you can use both indistinctly:</p>
<pre class="brush: perl">
get &#039;/some/crap&#039;, sub {
  headers &#039;X-Foo&#039; =&gt; &#039;Bar&#039;,
    &#039;X-Bar&#039; =&gt; &#039;Foo&#039;;
}</pre>
<p>And it will produce the result that you are expecting.</p>
<h3>prefix</h3>
<p><tt>prefix</tt> is also interesting. It will indicate that the following route handlers&#039; path patters defined for Dancer will be prepended with such prefix. So:</p>
<pre class="brush: perl">
prefix &#039;/user&#039;;
get &#039;/home&#039;, sub { template &#039;user_home&#039; };
get &#039;/logout&#039;, sub { &quot;bye!&quot; };
</pre>
<p>So here we are instructing Dancer two route handlers that happen to be really pointing to &#034;/user/home&#034; and &#034;/user/logout&#034;. In order to stop prefixing the route handlers&#039; paths you just do:</p>
<pre class="brush: perl">prefix undef;</pre>
<p>And continue with your un-prepended paths.</p>
]]></content:encoded>
			<wfw:commentRss>http://stereonaut.net/features-on-dancer-1-130/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Feed moved</title>
		<link>http://stereonaut.net/feed-moved/</link>
		<comments>http://stereonaut.net/feed-moved/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 00:31:37 +0000</pubDate>
		<dc:creator>David Moreno</dc:creator>
				<category><![CDATA[planeta linux]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[beer]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[feedburner]]></category>
		<category><![CDATA[feeds]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://stereonaut.net/?p=1129</guid>
		<description><![CDATA[I have always been against FeedBurner. I don&#039;t like it at all. I&#039;ve never liked it, as a matter of fact, I have no actual idea why I&#039;ve been using it on my blog. I do know why I used it on the country feeds on Planeta Linux, and that is because it was very [...]]]></description>
			<content:encoded><![CDATA[<p>I have always been <em>against</em> <a href="http://feedburner.com/">FeedBurner</a>. I don&#039;t like it at all. I&#039;ve never liked it, as a matter of fact, I have no actual idea why I&#039;ve been using it on my blog. I do know why I used it on the country feeds on <a href="http://planetalinux.org">Planeta Linux</a>, and that is because it was very easy to mask all of our URL changes with some level of stability on the subscribers (in times where me being technically competent was a bad joke for myself). Plus, we could plug AdSense into it (that later on I removed because I like to earn actual dollars, not pennies, <em>you cheap clickers</em>!). Or maybe I&#039;m just so against it because of pure jealousy: A few RSS feed geeks, <em>like myself</em>, sold a <strong>sub-par</strong>product to Google in a <strong>hundred million dollars</strong>. At the very end, I&#039;ve never had a good reason to use FeedBurner or to stick with it, so hereby I&#039;m dropping it entirely from my own personal blog.</p>
<p>It&#039;s obvious that some people who subscribed to my feed using that FeedBurner URL aren&#039;t reading this very blog post. It&#039;s alright, I&#039;ve lost reigns before, I will get over it and conquer their hearts again. But you, dear blog reader, planet subscriber, or eventual visitor, have the power to change things, to help workaround the evils of FeedBurner and make me be myself again. Please, help me myself again! And that is, from now on, use this feed URL and only this feed URL, I promise I will support as long as nice good looking HTTP servers (such as <a href="http://nginx.org">nginx</a> or <a href="http://twitter.com/webserver">Cherokee</a>) exist:</p>
<h3 style="text-align: center;"><a href="http://stereonaut.net/feed">http://stereonaut.net/feed/</a></h3>
<p>That said, <strong>I will get you a beer</strong> next time we meet each other and you, dear reader, mention this blog post and mention that you changed to this new feed URL of mine. <strong>I&#039;m not kidding</strong>. Just go ahead and tell me <img src='http://stereonaut.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Thank you.</p>
]]></content:encoded>
			<wfw:commentRss>http://stereonaut.net/feed-moved/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Large PHP scripts truncated on nginx</title>
		<link>http://stereonaut.net/large-php-truncated-on-nginx/</link>
		<comments>http://stereonaut.net/large-php-truncated-on-nginx/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 16:35:14 +0000</pubDate>
		<dc:creator>David Moreno</dc:creator>
				<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[planeta linux]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tinymce]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://stereonaut.net/?p=1112</guid>
		<description><![CDATA[I spent a couple of hours yesterday trying to debug an issue that made me hit my head against the wall while it lasted. I run multiple instances of WordPress, and with it, comes a nice little editor bundled called TinyMCE. But on my main WordPress installation (this very blog, dear reader, where you are [...]]]></description>
			<content:encoded><![CDATA[<p>I spent a couple of <em>hours</em> yesterday trying to debug an issue that made me hit my head against the wall while it lasted.</p>
<p>I run multiple instances of <a href="http://wordpress.org">WordPress</a>, and with it, comes a nice little editor bundled called <a href="http://tinymce.moxiecode.com/">TinyMCE</a>. But on my main WordPress installation (<a href="http://stereonaut.net">this</a> very blog, dear reader, where you are reading this from), TinyMCE wouldn&#039;t come up, it wouldn&#039;t render properly on the browser, it didn&#039;t matter if it was my main browser, Chrome, or Firefox, Safari, cached, uncached, it was just broken. Since I hadn&#039;t have the time to go through this issue before, I was using a different editor installed as a plugin. <em>LAME</em>. And coward.</p>
<p><img class="alignright size-full wp-image-1113" title="nginx" src="http://stereonaut.net/wp-content/uploads/2010/02/nginx.gif" alt="" width="121" height="32" />Anyway, I found out that one of the scripts <a href="http://phpxref.ftwr.co.uk/wordpress/nav.html?wp-includes/js/tinymce/wp-tinymce.php.html"><tt>wp-tinymce.php</tt></a> was being returned truncated. Because of that, <a href="http://getfirebug.com/">Firebug</a> would report that some TinyMCE bullshit wasn&#039;t defined (JavaScript, oh I&#039;m not very fond of you). Oh, well. I tested calling that script under <a href="http://curl.haxx.se/">curl</a> separately and in fact, it was only returning a fraction of the script, 44K out of the actual 200+K. I also found out that even though my <a href="http://nginx.org/">nginx</a> installation had gzip compression enabled and the PHP had zlib as well, the script wouldn&#039;t process the <tt>tinymce.js.gz</tt> but it was returning directly <tt>tinymce.js</tt>. It&#039;s alright, I just wanted it to work, no matter if it wouldn&#039;t go through gzip, that&#039;d be a matter of some other day.</p>
<p>After a lot of googling I ended up reading <a href="http://www.republicavirtual.com.br/blog/2009/11/03/nginx-truncate-php/">this blog post</a> (in Portuguese), suggesting to make sure the file permissions for both the <tt>client_body_temp</tt> and <tt>fastcgi_temp</tt> directories allowed the user running nginx (<tt>www-data</tt> in my case) to write in them. Apparently large scripts would start writing to disk on them temporarily while processing the shit. Of course, you wouldn&#039;t have this issue if you are running an nginx from your operating system package manager (like <a href="http://packages.debian.org/search?keywords=nginx">Debian</a>&#039;s), but this might very well happen when you are running a custom nginx with separate modules and all sorts of crap on top of it:</p>
<pre class="brush: bash">chown www-data:www-data -R /usr/local/nginx/fastcgi_temp/;
chmod -R 777 /usr/local/nginx/fastcgi_temp/;
chown www-data:www-data -R /usr/local/nginx/client_body_temp/;
chmod -R 777 /usr/local/nginx/client_body_temp/;</pre>
<p>Obrigado, <a href="http://www.republicavirtual.com.br/blog/">republicavirtual.com.br</a> <img src='http://stereonaut.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://stereonaut.net/large-php-truncated-on-nginx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
