<?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; javascript</title>
	<atom:link href="http://stereonaut.net/tag/javascript/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>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>
		<item>
		<title>Job offering</title>
		<link>http://stereonaut.net/job-offering/</link>
		<comments>http://stereonaut.net/job-offering/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 00:16:24 +0000</pubDate>
		<dc:creator>David Moreno</dc:creator>
				<category><![CDATA[jobs]]></category>
		<category><![CDATA[planeta linux]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[lisp]]></category>
		<category><![CDATA[lytix]]></category>
		<category><![CDATA[offer]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://log.damog.net/?p=931</guid>
		<description><![CDATA[A friend of mine is asking me to publish his company&#039;s job offering to the wild. I&#039;ve seen the offer, what they are doing and it&#039;s a very, very nice project/opportunity, I wouldn&#039;t announce it here on my blog if it wasn&#039;t something worthwhile: Lytix is seeking an experienced software developer with proven ability to [...]]]></description>
			<content:encoded><![CDATA[<p>A friend of mine is asking me to publish his company&#039;s job offering to the wild. I&#039;ve seen the offer, what they are doing and it&#039;s a very, very nice project/opportunity, I wouldn&#039;t announce it here on my blog if it wasn&#039;t something worthwhile:</p>
<blockquote><p><a href="http://lytix.com">Lytix</a> is seeking an experienced software developer with proven ability<br />
to produce, understand and critique code in C, Java and JavaScript;<br />
Perl and LISP are a plus.  He or she should have broad experience<br />
working with heterogeneous environments and multiple platforms,<br />
including BSD Unix/Linux, LAMP and other relevant F/OSS platforms.<br />
Work will initially be project-based, but could evolve quickly into a<br />
full-time position.  The candidate will be based in Mexico City.</p></blockquote>
<p>I&#039;d also add: fluent English, both written and spoken is a must. If you are interested, please drop him a line, <a href="mailto:diego.villarreal@lytix.com">Diego Villarreal</a>, and avoid putting me in between. <img src='http://stereonaut.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://stereonaut.net/job-offering/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
