<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	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:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Bits By The Pound</title>
	<atom:link href="http://www.bitsbythepound.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bitsbythepound.com</link>
	<description>Spewing Forth Tech Stuff</description>
	<lastBuildDate>Thu, 26 Jan 2012 17:30:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Reinstall Grub2 after installing Windows by asdi</title>
		<link>http://www.bitsbythepound.com/reinstall-grub2-after-installing-windows-334.html/comment-page-1#comment-211</link>
		<dc:creator>asdi</dc:creator>
		<pubDate>Thu, 26 Jan 2012 17:30:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitsbythepound.com/?p=334#comment-211</guid>
		<description>&quot;sudo update-grub&quot; cannot discover Windows if on different disk.</description>
		<content:encoded><![CDATA[<p>&#8220;sudo update-grub&#8221; cannot discover Windows if on different disk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installing CouchApp on Ubuntu 10.04 by jpfiset</title>
		<link>http://www.bitsbythepound.com/installing-couchapp-on-ubuntu-10-04-357.html/comment-page-1#comment-204</link>
		<dc:creator>jpfiset</dc:creator>
		<pubDate>Tue, 08 Nov 2011 20:39:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitsbythepound.com/?p=357#comment-204</guid>
		<description>I received the same error, today. This error is caused by missing dependencies as a result of an update that was pushed via the PPA. To get it working again, I had to perform the following:
&gt; sudo apt-get install python-pip
&gt; pip install http-parser
&gt; sudo pip install watchdog

Note that I experienced those errors and fix them in Ubuntu 11.04.</description>
		<content:encoded><![CDATA[<p>I received the same error, today. This error is caused by missing dependencies as a result of an update that was pushed via the PPA. To get it working again, I had to perform the following:<br />
> sudo apt-get install python-pip<br />
> pip install http-parser<br />
> sudo pip install watchdog</p>
<p>Note that I experienced those errors and fix them in Ubuntu 11.04.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installing CouchApp on Ubuntu 10.04 by Snowguy</title>
		<link>http://www.bitsbythepound.com/installing-couchapp-on-ubuntu-10-04-357.html/comment-page-1#comment-203</link>
		<dc:creator>Snowguy</dc:creator>
		<pubDate>Tue, 08 Nov 2011 14:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitsbythepound.com/?p=357#comment-203</guid>
		<description>i did this and got the error ImportError: http-parser isn&#039;t installed.</description>
		<content:encoded><![CDATA[<p>i did this and got the error ImportError: http-parser isn&#8217;t installed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Remove document duplicates from CouchDb view query using a list function by jpfiset</title>
		<link>http://www.bitsbythepound.com/remove-document-duplicates-from-couchdb-view-query-using-a-list-function-366.html/comment-page-1#comment-198</link>
		<dc:creator>jpfiset</dc:creator>
		<pubDate>Mon, 08 Aug 2011 02:02:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitsbythepound.com/?p=366#comment-198</guid>
		<description>I fixed the indentation. Thanks for your comment.</description>
		<content:encoded><![CDATA[<p>I fixed the indentation. Thanks for your comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Remove document duplicates from CouchDb view query using a list function by Nate</title>
		<link>http://www.bitsbythepound.com/remove-document-duplicates-from-couchdb-view-query-using-a-list-function-366.html/comment-page-1#comment-197</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Tue, 02 Aug 2011 23:53:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitsbythepound.com/?p=366#comment-197</guid>
		<description>Apologies for the terrible indentation in my example above. Apparently wordpress doesn&#039;t like tabs in comments :)</description>
		<content:encoded><![CDATA[<p>Apologies for the terrible indentation in my example above. Apparently wordpress doesn&#8217;t like tabs in comments <img src='http://www.bitsbythepound.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Remove document duplicates from CouchDb view query using a list function by Nate</title>
		<link>http://www.bitsbythepound.com/remove-document-duplicates-from-couchdb-view-query-using-a-list-function-366.html/comment-page-1#comment-196</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Tue, 02 Aug 2011 23:52:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitsbythepound.com/?p=366#comment-196</guid>
		<description>So I know this post is a bit old, but I&#039;ve been trying to figure out this issue for a while, and I feel like you&#039;re on to something, but there are some issues.

First of all, I rewrote your function to be a bit cleaner, and offload all the string manipulation stuff to the toJSON function:

&lt;code lang=&quot;javascript&quot;&gt;
function( head, req ){
	var ids = [];
	var result = {
		total_rows: head.total_rows,
		offset: head.offset,
		rows: []
	};
	while( row = getRow() ){
		if( ids.indexOf( row.id ) === -1 ){
			result.rows.push( row );
			ids.push( row.id );
		}
	}
	send( toJSON( result ) );
}
&lt;/code&gt;
Second, there&#039;s a fundamental flaw with this approach: You may set a limit, but that limit is handled before the duplicate removal process. Because of this, if you have any duplicates, then your final result will be less than the limit passed in on the URL. You won&#039;t be able to reliably page through your results because of this discrepancy.

Again, I like your thinking here, but there has to be a better way to do this.</description>
		<content:encoded><![CDATA[<p>So I know this post is a bit old, but I&#8217;ve been trying to figure out this issue for a while, and I feel like you&#8217;re on to something, but there are some issues.</p>
<p>First of all, I rewrote your function to be a bit cleaner, and offload all the string manipulation stuff to the toJSON function:</p>
<div class="codecolorer-container javascript vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span> head<span style="color: #339933;">,</span> req <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> ids <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> result <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; total_rows<span style="color: #339933;">:</span> head.<span style="color: #660066;">total_rows</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; offset<span style="color: #339933;">:</span> head.<span style="color: #660066;">offset</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; rows<span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">while</span><span style="color: #009900;">&#40;</span> row <span style="color: #339933;">=</span> getRow<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> ids.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span> row.<span style="color: #660066;">id</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">===</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result.<span style="color: #660066;">rows</span>.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span> row <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ids.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span> row.<span style="color: #660066;">id</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; send<span style="color: #009900;">&#40;</span> toJSON<span style="color: #009900;">&#40;</span> result <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></div>
<p>Second, there&#8217;s a fundamental flaw with this approach: You may set a limit, but that limit is handled before the duplicate removal process. Because of this, if you have any duplicates, then your final result will be less than the limit passed in on the URL. You won&#8217;t be able to reliably page through your results because of this discrepancy.</p>
<p>Again, I like your thinking here, but there has to be a better way to do this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Tethering iPhone on Ubuntu 11.04 by Matt</title>
		<link>http://www.bitsbythepound.com/tethering-iphone-on-ubuntu-11-04-397.html/comment-page-1#comment-189</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 29 Jun 2011 01:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitsbythepound.com/?p=397#comment-189</guid>
		<description>May require a restart of the autoeth and/or firefox.  Just throwing it out there for those that may not immediately think of these things.</description>
		<content:encoded><![CDATA[<p>May require a restart of the autoeth and/or firefox.  Just throwing it out there for those that may not immediately think of these things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on GWT apps using Maven and Eclipse by Gannoju</title>
		<link>http://www.bitsbythepound.com/gwt-apps-using-maven-and-eclipse-309.html/comment-page-1#comment-186</link>
		<dc:creator>Gannoju</dc:creator>
		<pubDate>Thu, 23 Jun 2011 07:09:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitsbythepound.com/?p=309#comment-186</guid>
		<description>[WARN] No startup URLs supplied and no plausible ones found -- use -startupUrl while run GWT web application from eclipse helios java 1.6 and GWT 2.3.. any ideas</description>
		<content:encoded><![CDATA[<p>[WARN] No startup URLs supplied and no plausible ones found &#8212; use -startupUrl while run GWT web application from eclipse helios java 1.6 and GWT 2.3.. any ideas</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Uploading a Maven generated application on Google AppEngine by Bati</title>
		<link>http://www.bitsbythepound.com/uploading-a-maven-generated-application-on-google-appengine-285.html/comment-page-1#comment-180</link>
		<dc:creator>Bati</dc:creator>
		<pubDate>Tue, 07 Jun 2011 10:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitsbythepound.com/?p=285#comment-180</guid>
		<description>I checked your code on my machine and the build.xml doesn&quot;t seem overriding the appcfg properties.... though I create the build.properties file.

When I run &quot;ant update&quot;, I&#039;ve this error : 
[java] 25% Initiating update.
     [java] Your authentication credentials can&#039;t be found and may have expired.
     [java] Please run appcfg directly from the command line to re-establish your credentials.

I assume it means  that appcfg takes its configuration in the cookies of java...

Do you know why it happens?</description>
		<content:encoded><![CDATA[<p>I checked your code on my machine and the build.xml doesn&#8221;t seem overriding the appcfg properties&#8230;. though I create the build.properties file.</p>
<p>When I run &#8220;ant update&#8221;, I&#8217;ve this error :<br />
[java] 25% Initiating update.<br />
     [java] Your authentication credentials can&#8217;t be found and may have expired.<br />
     [java] Please run appcfg directly from the command line to re-establish your credentials.</p>
<p>I assume it means  that appcfg takes its configuration in the cookies of java&#8230;</p>
<p>Do you know why it happens?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to force 32-bit installation via WUBI by Mars</title>
		<link>http://www.bitsbythepound.com/how-to-force-32-bit-installation-via-wubi-327.html/comment-page-1#comment-160</link>
		<dc:creator>Mars</dc:creator>
		<pubDate>Wed, 20 Apr 2011 06:26:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.bitsbythepound.com/?p=327#comment-160</guid>
		<description>This can be done also by just creating a shortcut to Wubi and adding –32bit to the Target in properties</description>
		<content:encoded><![CDATA[<p>This can be done also by just creating a shortcut to Wubi and adding –32bit to the Target in properties</p>
]]></content:encoded>
	</item>
</channel>
</rss>

