<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.kunxi.org/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.kunxi.org/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Comments for Refactor the Life</title>
	
	<link>http://www.kunxi.org</link>
	<description>Yet another code monkey blog.</description>
	<pubDate>Fri, 04 Jul 2008 11:39:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.kunxi.org/rtl/comments" type="application/rss+xml" /><feedburner:browserFriendly></feedburner:browserFriendly><item>
		<title>Comment on PyAWS 0.3.0 released by bookstack</title>
		<link>http://www.kunxi.org/archives/2008/05/pyaws-030-released/#comment-45772</link>
		<dc:creator>bookstack</dc:creator>
		<pubDate>Thu, 03 Jul 2008 05:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.kunxi.org/?p=258#comment-45772</guid>
		<description>Well, the behavior of PyAWS 0.3 has been changed, -- ItemSearch would return an enumerator/generator. So you may not check the length, this is due to the bug of AWS, the returned items are not strictly paged by 10 which incurs incorrect random access. 
A typical usage for ItemSearch would be like:
&lt;code lang="Python"&gt;
for item in  ecs.ItemSearch('python', SearchIndex='Books'):
   # manipulate item
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Well, the behavior of PyAWS 0.3 has been changed, &#8212; ItemSearch would return an enumerator/generator. So you may not check the length, this is due to the bug of AWS, the returned items are not strictly paged by 10 which incurs incorrect random access.<br />
A typical usage for ItemSearch would be like:</p>
<div class="codesnip-container" >
<div class="codesnip"><span class="kw1">for</span> item <span class="kw1">in</span>&nbsp; ecs.<span class="me1">ItemSearch</span><span class="br0">&#40;</span><span class="st0">&#8216;python&#8217;</span>, SearchIndex=<span class="st0">&#8216;Books&#8217;</span><span class="br0">&#41;</span>:<br />
&nbsp; &nbsp;<span class="co1"># manipulate item </span><br />
&nbsp;</div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Enhance Facebook Notes with Greasemonkey by Facebook Notes</title>
		<link>http://www.kunxi.org/archives/2008/04/enhance-facebook-notes-with-greasemonkey/#comment-45568</link>
		<dc:creator>Facebook Notes</dc:creator>
		<pubDate>Tue, 01 Jul 2008 12:49:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.kunxi.org/?p=254#comment-45568</guid>
		<description>Hey!  This is a cool script to add bold face, underlines, links and bold text to your Facebook Notes.

I'm going to install it and tell my highschool friends.  

Lots of people do Facebook Notes all the time!</description>
		<content:encoded><![CDATA[<p>Hey!  This is a cool script to add bold face, underlines, links and bold text to your Facebook Notes.</p>
<p>I&#8217;m going to install it and tell my highschool friends.  </p>
<p>Lots of people do Facebook Notes all the time!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PyAWS 0.3.0 released by Michael Trythall</title>
		<link>http://www.kunxi.org/archives/2008/05/pyaws-030-released/#comment-45487</link>
		<dc:creator>Michael Trythall</dc:creator>
		<pubDate>Mon, 30 Jun 2008 17:53:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.kunxi.org/?p=258#comment-45487</guid>
		<description>After some more poking around, it seems that ItemSearch by itself is indeed broken, but added .cache() to the end of the line works:

ecs.ItemSearch('python', SearchIndex='Books').cache()

This returns 10 results. I'm still investing the bug, but it's a small priority for me now that I have some sort of solution for the time being.</description>
		<content:encoded><![CDATA[<p>After some more poking around, it seems that ItemSearch by itself is indeed broken, but added .cache() to the end of the line works:</p>
<p>ecs.ItemSearch(&#8217;python&#8217;, SearchIndex=&#8217;Books&#8217;).cache()</p>
<p>This returns 10 results. I&#8217;m still investing the bug, but it&#8217;s a small priority for me now that I have some sort of solution for the time being.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PyAWS 0.3.0 released by bookstack</title>
		<link>http://www.kunxi.org/archives/2008/05/pyaws-030-released/#comment-44013</link>
		<dc:creator>bookstack</dc:creator>
		<pubDate>Mon, 16 Jun 2008 05:59:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.kunxi.org/?p=258#comment-44013</guid>
		<description>There is a looong period between 0.2 and 0.3 because the refactory is too big. 

Maybe try 0.3 release? In 0.3 ItemSearch returns a generator, that is suppose to resolve this problem, if you still have the problem, just drop me a message.</description>
		<content:encoded><![CDATA[<p>There is a looong period between 0.2 and 0.3 because the refactory is too big. </p>
<p>Maybe try 0.3 release? In 0.3 ItemSearch returns a generator, that is suppose to resolve this problem, if you still have the problem, just drop me a message.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PyAWS 0.3.0 released by Michael Trythall</title>
		<link>http://www.kunxi.org/archives/2008/05/pyaws-030-released/#comment-43977</link>
		<dc:creator>Michael Trythall</dc:creator>
		<pubDate>Sun, 15 Jun 2008 21:54:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.kunxi.org/?p=258#comment-43977</guid>
		<description>Is PyAWS still in development? Is anyone else using it? I'm getting errors whenever I perform an ItemSearch, and I can't seem to find anything on it.

&gt;&gt;&gt; books = ecs.ItemSearch('math', SearchIndex='Books', ResponseGroup='Medium')
&gt;&gt;&gt; len(books)
0

Version 0.2 returned *too* many results.

If anyone knows why this happens, please shoot me an e-mail at mtrythall [at] gmail.com</description>
		<content:encoded><![CDATA[<p>Is PyAWS still in development? Is anyone else using it? I&#8217;m getting errors whenever I perform an ItemSearch, and I can&#8217;t seem to find anything on it.</p>
<p>&gt;&gt;&gt; books = ecs.ItemSearch(&#8217;math&#8217;, SearchIndex=&#8217;Books&#8217;, ResponseGroup=&#8217;Medium&#8217;)<br />
&gt;&gt;&gt; len(books)<br />
0</p>
<p>Version 0.2 returned *too* many results.</p>
<p>If anyone knows why this happens, please shoot me an e-mail at mtrythall [at] gmail.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on When RegEx meets WordML by bookstack</title>
		<link>http://www.kunxi.org/archives/2008/05/when-regex-meets-wordml/#comment-43250</link>
		<dc:creator>bookstack</dc:creator>
		<pubDate>Sun, 25 May 2008 05:27:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.kunxi.org/?p=261#comment-43250</guid>
		<description>Oh, we won't go that further. 

No intent to mess up with .xlsx file format ,csv is preferred here is it can be easily tracked by version control system, parsed by csv module of Python and edited by Microsoft Office Excel.</description>
		<content:encoded><![CDATA[<p>Oh, we won&#8217;t go that further. </p>
<p>No intent to mess up with .xlsx file format ,csv is preferred here is it can be easily tracked by version control system, parsed by csv module of Python and edited by Microsoft Office Excel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on When RegEx meets WordML by Shawn Wheatley</title>
		<link>http://www.kunxi.org/archives/2008/05/when-regex-meets-wordml/#comment-43235</link>
		<dc:creator>Shawn Wheatley</dc:creator>
		<pubDate>Fri, 23 May 2008 20:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.kunxi.org/?p=261#comment-43235</guid>
		<description>Sounds interesting. We tackle this sort of thing a lot at work, but mostly outputting SpreadsheetML (Office 2003.) Are you doing the Excel filtering via COM/.NET interop or will you be filtering outside of Excel in a similar manner? Any chance you'll be able to put together some sample files and the script (or a script using the same concepts?)</description>
		<content:encoded><![CDATA[<p>Sounds interesting. We tackle this sort of thing a lot at work, but mostly outputting SpreadsheetML (Office 2003.) Are you doing the Excel filtering via COM/.NET interop or will you be filtering outside of Excel in a similar manner? Any chance you&#8217;ll be able to put together some sample files and the script (or a script using the same concepts?)</p>
]]></content:encoded>
	</item>
</channel>
</rss><!-- Dynamic Page Served (once) in 0.439 seconds -->
