<?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>Masterzen's Blog &#187; C</title>
	<atom:link href="http://www.masterzen.fr/category/programming/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.masterzen.fr</link>
	<description>Journey in a software world...</description>
	<lastBuildDate>Sat, 31 Jul 2010 15:48:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Nginx upload progress module v0.8!</title>
		<link>http://www.masterzen.fr/2009/12/19/nginx-upload-progress-module-v08/</link>
		<comments>http://www.masterzen.fr/2009/12/19/nginx-upload-progress-module-v08/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 19:46:42 +0000</pubDate>
		<dc:creator>masterzen</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[nginx module]]></category>
		<category><![CDATA[nginx upload progress]]></category>

		<guid isPermaLink="false">http://www.masterzen.fr/?p=145</guid>
		<description><![CDATA[Yes, I know&#8230; I released v0.7 less than a month ago. But this release was crippled by a crash that could happen at start or reload.
Changes
Bonus in this new version, brought to you by Tizoc:

JSONP support
Long awaited fix for X-Progress-ID to be the last parameter in the request parameter

If you wonder what JSONP is (as [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, I know&#8230; I <a href="http://www.masterzen.fr/2009/11/22/nginx-upload-progress-module-v07/" >released v0.7 less than a month ago</a>. But this release was <a href="http://github.com/masterzen/nginx-upload-progress-module/issues/closed/#issue/2" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');">crippled by a crash</a> that could happen at start or reload.</p>
<h2>Changes</h2>
<p>Bonus in this new version, brought to you by <a href="http://github.com/tizoc" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');">Tizoc</a>:</p>
<ul>
<li>JSONP support</li>
<li>Long awaited fix for X-Progress-ID to be the last parameter in the request parameter</li>
</ul>
<p>If you wonder what JSONP is (as I did when I got the merge request), you can check <a href="http://bob.pythonmac.org/archives/2005/12/05/remote-json-jsonp/" onclick="javascript:pageTracker._trackPageview('/outbound/article/bob.pythonmac.org');">the original blog post that lead to it</a>.</p>
<p>To activate JSONP you need:</p>
<ol>
<li>to use the upload_progress_jsonp_output in the progress probe location</li>
<li>declare the JSONP parameter with the upload_progress_jsonp_parameter</li>
</ol>
<p>This version has been tested with 0.7.64 and 0.8.30.</p>
<h2>How do you get it?</h2>
<p>Easy, download the tarball from the <a onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');" href="http://github.com/masterzen/nginx-upload-progress-module/downloads" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');">nginx upload progress module github repository download section</a>.</p>
<p>If you want to report a bug, please use the <a href="http://github.com/masterzen/nginx-upload-progress-module/issues" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');">Github issue section</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masterzen.fr/2009/12/19/nginx-upload-progress-module-v08/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx upload progress module v0.7!</title>
		<link>http://www.masterzen.fr/2009/11/22/nginx-upload-progress-module-v07/</link>
		<comments>http://www.masterzen.fr/2009/11/22/nginx-upload-progress-module-v07/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 11:24:50 +0000</pubDate>
		<dc:creator>masterzen</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[nginx module]]></category>
		<category><![CDATA[nginx upload progress]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://www.masterzen.fr/?p=138</guid>
		<description><![CDATA[I&#8217;m proud to announce the release of Nginx Upload Progress module v0.7
This version sees a crash fix and various new features implemented by Valery Kholodkov (the author of the famous Nginx Upload Module).
This version has been tested with Nginx 0.7.64.
Changes

fixed segfault when uploads are aborted (thanks to Markus  Doppelbauer for his bug report)
session ID [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m proud to announce the release of <a href="http://github.com/masterzen/nginx-upload-progress-module" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');">Nginx Upload Progress</a> module v0.7</p>
<p>This version sees a crash fix and various new features implemented by Valery Kholodkov (the author of the famous <a href="http://www.grid.net.ru/nginx/upload.en.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.grid.net.ru');">Nginx Upload Module</a>).</p>
<p>This version has been tested with Nginx 0.7.64.</p>
<h2>Changes</h2>
<ul>
<li>fixed segfault when uploads are aborted (thanks to Markus  Doppelbauer for his bug report)</li>
<li>session ID header name is now configurable (thanks to Valery Kholodkov)</li>
<li>Added directive to format output as pure json (thanks to Valery  Kholodkov)</li>
<li>Added directive to format output with configurable template (thanks  to Valery Kholodkov)</li>
<li>Added directive to set a probe response content-type (thanks to  Valery Kholodkov)</li>
<li>Added upload status variables (needs a status patch) (thanks to  Valery Kholodkov)</li>
</ul>
<h2>What&#8217;s now cool!</h2>
<p>What is cool is that now with only one directive (upload_progress_json_output) the responses are sent in pure Json and not in javascript mix as it was before.</p>
<p>Another cool feature is the possibility to use templates to send progress information. That means with a simple configuration change nginx can now return XML:</p>
<pre class="syntax-highlight:sh">
upload_progress_content_type &#039;text/xml&#039;;
upload_progress_template starting &#039;&lt;upload&gt;&lt;state&gt;starting&lt;/state&gt;&lt;/upload&gt;&#039;;
upload_progress_template uploading &#039;&lt;upload&gt;&lt;state&gt;uploading&lt;/state&gt;&lt;size&gt;$uploadprogress_length&lt;/size&gt;&lt;uploaded&gt;$uploadprogress_received&lt;/uploaded&gt;&lt;/upload&gt;&#039;;
upload_progress_template done &#039;&lt;upload&gt;&lt;state&gt;done&lt;/state&gt;&lt;/upload&gt;&#039;;
upload_progress_template error &#039;&lt;upload&gt;&lt;state&gt;error&lt;/state&gt;&lt;code&gt;$uploadprogress_status&lt;/code&gt;&lt;/upload&gt;&#039;;
</pre>
<p>Refer to the README in the distribution for more information.</p>
<h2>How do you get it?</h2>
<p>Easy, download the tarball from the <a href="http://github.com/masterzen/nginx-upload-progress-module/downloads" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');">nginx upload progress module github repository download section</a>.</p>
<h2>How can I use it?</h2>
<p>Normally you have to use your own client code to display the progress bar and contact nginx to get the progress information.</p>
<p>But some nice people have created various javascript libraries doing this for you:</p>
<ul>
<li><a href="http://github.com/drogus/jquery-upload-progress" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');">JQuery upload progress module</a></li>
</ul>
<ul>
<li><a href="http://github.com/edgarjs/prototype-nginx-upload-progress" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');">Protoype upload progress module</a></li>
</ul>
<p>Happy uploads!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masterzen.fr/2009/11/22/nginx-upload-progress-module-v07/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.122 seconds -->
