<?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>LuckyDonkey &#187; Beep My Stuff</title>
	<atom:link href="http://www.luckydonkey.com/category/beep-my-stuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.luckydonkey.com</link>
	<description>Never knowingly knowing narwhals</description>
	<lastBuildDate>Wed, 17 Mar 2010 01:05:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Beep My Stuff enters public Beta</title>
		<link>http://www.luckydonkey.com/2009/04/02/beep-my-stuff-enters-public-beta/</link>
		<comments>http://www.luckydonkey.com/2009/04/02/beep-my-stuff-enters-public-beta/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 23:00:23 +0000</pubDate>
		<dc:creator>dazza</dc:creator>
				<category><![CDATA[Beep My Stuff]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[SQLAlchemy]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[TurboGears]]></category>

		<guid isPermaLink="false">http://www.luckydonkey.com/?p=226</guid>
		<description><![CDATA[After a rather long period in closed beta I've opened Beep My Stuff to a public beta. Beep My Stuff is a web site that makes it FREE and easy to create an online library of your Books, Movies, Video Games and Music. Check it out, all feedback is much appreciated. It's built with Turbogears, [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_232" class="wp-caption aligncenter" style="width: 310px"><img src="http://www.luckydonkey.com/wp-content/uploads/2009/04/bms_logo-300x147.jpg" alt="Beep My Stuff" title="bms_logo" width="300" height="147" class="size-medium wp-image-232" /><p class="wp-caption-text">Beep My Stuff</p></div><br />
After a rather long period in closed beta I've opened <a href="http://www.beepmystuff.com/">Beep My Stuff</a> to a public beta.</p>
<p><a href="http://www.beepmystuff.com/">Beep My Stuff</a> is a web site that makes it FREE and easy to create an online library of your Books, Movies, Video Games and Music. Check it out, all feedback is much appreciated.</p>
<p>It's built with <a href="http://www.turbogears.org/">Turbogears</a>, <a href="http://www.sqlalchemy.org/">SQLAlchemy</a>, <a href="http://genshi.edgewall.org/">Genshi</a> and countless other python modules. It's all sitting on <a href="http://www.python.org/">Python</a>, <a href="http://www.freebsd.org/">FreeBSD</a> and <a href="http://www.postgresql.org/">PostgreSQL</a>.</p>
<p>Just wanted to say thanks to all the pythonista's out there that helped me get this far <img src='http://www.luckydonkey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><map name='google_ad_map_226_afea9fcd39d8b84a'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/226?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_226_afea9fcd39d8b84a' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=226&amp;url= http%3A%2F%2Fwww.luckydonkey.com%2F2009%2F04%2F02%2Fbeep-my-stuff-enters-public-beta%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.luckydonkey.com/2009/04/02/beep-my-stuff-enters-public-beta/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mutlipart file upload in Turbogears 1.0.x</title>
		<link>http://www.luckydonkey.com/2009/03/16/mutlipart-file-upload-in-turbogears-10x/</link>
		<comments>http://www.luckydonkey.com/2009/03/16/mutlipart-file-upload-in-turbogears-10x/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 15:27:58 +0000</pubDate>
		<dc:creator>dazza</dc:creator>
				<category><![CDATA[Beep My Stuff]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[TurboGears]]></category>

		<guid isPermaLink="false">http://www.luckydonkey.com/2009/03/16/mutlipart-file-upload-in-turbogears-10x/</guid>
		<description><![CDATA[When uploading files to Beep My Stuff using SWFUpload I was getting this error: data = self._sock.recv&#40;self._rbufsize&#41; timeout: timed out Uploading files to a TG1.0.x app is easy unless you want to do something nice like use SWFUpload to allow multiple files to be selected for upload. The reason for this is that Flash has [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-9998980871049158";
//468x60, created 11/22/07
google_ad_slot = "6052810016";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>When uploading files to <a href='http://www.beepmystuff.com'>Beep My Stuff</a> using <a href="http://swfupload.org/">SWFUpload</a> I was getting this error:</p>
<pre class="python">data = <span style="color: #008000;">self</span>._sock.<span style="color: black;">recv</span><span style="color: black;">&#40;</span><span style="color: #008000;">self</span>._rbufsize<span style="color: black;">&#41;</span>
timeout: timed out</pre>
<p>Uploading files to a TG1.0.x app is easy unless you want to do something nice like use <a href="http://swfupload.org/">SWFUpload</a> to allow multiple files to be selected for upload.</p>
<p>The reason for this is that Flash has interpreted <a href="http://www.ietf.org/rfc/rfc2046.txt">RFC 2046</a> one way and they python libraries/CherryPy interpret it another. Fortunately this is fixed in Turbogears 1.1+ but I am using 1.08 at the moment for <a href='http://www.beepmystuff.com'>Beep My Stuff</a> so I needed a fix.</p>
<p>There is a <a href="http://www.cherrypy.org/attachment/ticket/648/flash8.patch">patch</a> in CherryPy that can be used to fix the problem and Chris Arndt has created a patch for TG1.1. You can easily apply the same code to your TG1.0x app to fix this problem as well.</p>
<p>Visit <a href="http://trac.turbogears.org/attachment/ticket/1953/safemultipart-filter.diff">here</a> and copy the contents of safemutlipart.py into a file in your project. Then you need to install the filter when <a href="http://www.turbogears.org/">Turbogears</a> is starting up. Something like this will do the trick:</p>
<pre class="python"><span style="color: #808080; font-style: italic;">#force the multipart filter to be installed.</span>
<span style="color: #ff7700;font-weight:bold;">def</span> install_safemutlipartfilter<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">from</span> cherrypy <span style="color: #ff7700;font-weight:bold;">import</span> root
    root._cp_filters.<span style="color: black;">extend</span><span style="color: black;">&#40;</span><span style="color: black;">&#91;</span>SafeMultipartFilter<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> install_multipart_filter<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">from</span> turbogears.<span style="color: black;">startup</span> <span style="color: #ff7700;font-weight:bold;">import</span> call_on_startup
    log.<span style="color: black;">info</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;Installing multipart filter&quot;</span><span style="color: black;">&#41;</span>
    call_on_startup.<span style="color: black;">append</span><span style="color: black;">&#40;</span>install_safemutlipartfilter<span style="color: black;">&#41;</span></pre>
<p>Note that the code in SafeMultiPartFilter needs a config change to turn it on so add</p>
<pre>safempfilter.on = True</pre>
<p>to your app.cfg</p>
<p>hope that helps <img src='http://www.luckydonkey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><map name='google_ad_map_215_afea9fcd39d8b84a'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/215?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_215_afea9fcd39d8b84a' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=215&amp;url= http%3A%2F%2Fwww.luckydonkey.com%2F2009%2F03%2F16%2Fmutlipart-file-upload-in-turbogears-10x%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.luckydonkey.com/2009/03/16/mutlipart-file-upload-in-turbogears-10x/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
