<?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 NicJ.net</title>
	<atom:link href="http://nicj.net/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://nicj.net</link>
	<description>Home to Nic Jansma</description>
	<lastBuildDate>Fri, 23 Jul 2010 21:01:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on The Economist, and, The Kindle: Take 2 by Gerardo</title>
		<link>http://nicj.net/2010/01/03/the-economist-and-the-kindle-take-2/comment-page-1#comment-4640</link>
		<dc:creator>Gerardo</dc:creator>
		<pubDate>Fri, 23 Jul 2010 21:01:25 +0000</pubDate>
		<guid isPermaLink="false">http://nicj.net/?p=716#comment-4640</guid>
		<description>Does the newest script work with Windows and/or Kindlegen? If so, how?</description>
		<content:encoded><![CDATA[<p>Does the newest script work with Windows and/or Kindlegen? If so, how?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Economist, and, The Kindle: Take 2 by Nic</title>
		<link>http://nicj.net/2010/01/03/the-economist-and-the-kindle-take-2/comment-page-1#comment-4636</link>
		<dc:creator>Nic</dc:creator>
		<pubDate>Fri, 23 Jul 2010 03:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://nicj.net/?p=716#comment-4636</guid>
		<description>Great changes slifox and crosscode!  I&#039;ll link to crosscode&#039;s latest version from the main article so everyone can get the latest version.</description>
		<content:encoded><![CDATA[<p>Great changes slifox and crosscode!  I&#8217;ll link to crosscode&#8217;s latest version from the main article so everyone can get the latest version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Economist, and, The Kindle: Take 2 by Gerardo</title>
		<link>http://nicj.net/2010/01/03/the-economist-and-the-kindle-take-2/comment-page-1#comment-4619</link>
		<dc:creator>Gerardo</dc:creator>
		<pubDate>Fri, 16 Jul 2010 13:57:48 +0000</pubDate>
		<guid isPermaLink="false">http://nicj.net/?p=716#comment-4619</guid>
		<description>Rather, I changed the information to use kindlegen in a random Win directory, but even though my Economist login information is correct, the program still returns the login failed error message -- did they update something?</description>
		<content:encoded><![CDATA[<p>Rather, I changed the information to use kindlegen in a random Win directory, but even though my Economist login information is correct, the program still returns the login failed error message &#8212; did they update something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Economist, and, The Kindle: Take 2 by Gerardo</title>
		<link>http://nicj.net/2010/01/03/the-economist-and-the-kindle-take-2/comment-page-1#comment-4618</link>
		<dc:creator>Gerardo</dc:creator>
		<pubDate>Fri, 16 Jul 2010 13:42:13 +0000</pubDate>
		<guid isPermaLink="false">http://nicj.net/?p=716#comment-4618</guid>
		<description>Thank you so much for this script!! But does anyone know how to get this working with Windows 7/Kindlegen?</description>
		<content:encoded><![CDATA[<p>Thank you so much for this script!! But does anyone know how to get this working with Windows 7/Kindlegen?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Economist, and, The Kindle: Take 2 by crosscode</title>
		<link>http://nicj.net/2010/01/03/the-economist-and-the-kindle-take-2/comment-page-1#comment-4593</link>
		<dc:creator>crosscode</dc:creator>
		<pubDate>Sun, 04 Jul 2010 18:02:25 +0000</pubDate>
		<guid isPermaLink="false">http://nicj.net/?p=716#comment-4593</guid>
		<description>Here&#039;s my modifications of the script, based on the changes slifox made.

Changes
* better handling of images (afaik it doesn&#039;t miss any)
* it&#039;ll optionally read its configuration from economist_to_kindle.config.php
* print the name of the articles as it downloads them (mostly for debugging)
* optionally tell the kindle to treat the article as a magazine (since not all the kindle magazine features are supported thanks to a complete lack of documentation, some people may not like this option much)
* downloads the issue cover (although it can be quite difficult to get the kindle to show it to you, and it&#039;s VERY low resolution)
* verified to work with back issues, although issues before June of 2010 use special compatibility code :( (not a problem for using the script, just a problem when editing it)

Known Bugs
* any kindle menu with &quot;section&quot; in the name (fex. &quot;Go to Section...&quot;) will cause the kindle to close the book with an errork. There&#039;s no permanent damage from this.
* I&#039;ve only tested this with kindlegen 1.1 on linux and kindle software v2.5.2. YMMV.

Download:
http://www.crosscode.org/public/economist_to_kindle.phps

Sample economist_to_kindle.config.php:

</description>
		<content:encoded><![CDATA[<p>Here&#8217;s my modifications of the script, based on the changes slifox made.</p>
<p>Changes<br />
* better handling of images (afaik it doesn&#8217;t miss any)<br />
* it&#8217;ll optionally read its configuration from economist_to_kindle.config.php<br />
* print the name of the articles as it downloads them (mostly for debugging)<br />
* optionally tell the kindle to treat the article as a magazine (since not all the kindle magazine features are supported thanks to a complete lack of documentation, some people may not like this option much)<br />
* downloads the issue cover (although it can be quite difficult to get the kindle to show it to you, and it&#8217;s VERY low resolution)<br />
* verified to work with back issues, although issues before June of 2010 use special compatibility code <img src='http://nicj.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  (not a problem for using the script, just a problem when editing it)</p>
<p>Known Bugs<br />
* any kindle menu with &#8220;section&#8221; in the name (fex. &#8220;Go to Section&#8230;&#8221;) will cause the kindle to close the book with an errork. There&#8217;s no permanent damage from this.<br />
* I&#8217;ve only tested this with kindlegen 1.1 on linux and kindle software v2.5.2. YMMV.</p>
<p>Download:<br />
<a href="http://www.crosscode.org/public/economist_to_kindle.phps" rel="nofollow">http://www.crosscode.org/public/economist_to_kindle.phps</a></p>
<p>Sample economist_to_kindle.config.php:</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Economist, and, The Kindle: Take 2 by slifox</title>
		<link>http://nicj.net/2010/01/03/the-economist-and-the-kindle-take-2/comment-page-1#comment-4575</link>
		<dc:creator>slifox</dc:creator>
		<pubDate>Mon, 28 Jun 2010 00:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://nicj.net/?p=716#comment-4575</guid>
		<description>Hi all,

It looks like The Economist website has changed again. I&#039;ve made some modifications to the script so it works with the latest print issue from the website.

This is the first time I&#039;m using this script, so I didn&#039;t have the old HTML files for comparison. I also don&#039;t have access to the online-only subscription, and haven&#039;t tested any back-issues. Therefore you might have problems using my modified script for these things -- however it works fine for the latest print issue available from the website.

I changed the login to use HTTPS instead of HTTP, so your password is sent encrypted (hopefully -- I didn&#039;t veryify this). I also added a few more options, including an option to disable Email sending, and an option to enable creating a link to the latest issue. The link creation allows you to have a single URL on your webserver which will always provide you the latest issue (which you can then download using your Kindle webbrowser).

Here is the script:
  https://www.revlogic.net/public/economist_to_kindle.phps
    (hit &quot;Accept&quot; / &quot;Allow&quot; / &quot;Add Exception&quot; / etc.. if you get a warning about SSL certificates while downloading the script)

You&#039;ll also need mobigen_linux, which can be downloaded from here:
  http://nicj.net/files/mobigen_linux.tar.gz
Or alternatively you can use kindlegen instead of mobigen_linux (though I haven&#039;t tried):
  http://www.amazon.com/gp/feature.html?ie=UTF8&amp;docId=1000234621

Feel free to send me any comments or provide fixes for any broken features that I didn&#039;t test.

-slifox</description>
		<content:encoded><![CDATA[<p>Hi all,</p>
<p>It looks like The Economist website has changed again. I&#8217;ve made some modifications to the script so it works with the latest print issue from the website.</p>
<p>This is the first time I&#8217;m using this script, so I didn&#8217;t have the old HTML files for comparison. I also don&#8217;t have access to the online-only subscription, and haven&#8217;t tested any back-issues. Therefore you might have problems using my modified script for these things &#8212; however it works fine for the latest print issue available from the website.</p>
<p>I changed the login to use HTTPS instead of HTTP, so your password is sent encrypted (hopefully &#8212; I didn&#8217;t veryify this). I also added a few more options, including an option to disable Email sending, and an option to enable creating a link to the latest issue. The link creation allows you to have a single URL on your webserver which will always provide you the latest issue (which you can then download using your Kindle webbrowser).</p>
<p>Here is the script:<br />
  <a href="https://www.revlogic.net/public/economist_to_kindle.phps" rel="nofollow">https://www.revlogic.net/public/economist_to_kindle.phps</a><br />
    (hit &#8220;Accept&#8221; / &#8220;Allow&#8221; / &#8220;Add Exception&#8221; / etc.. if you get a warning about SSL certificates while downloading the script)</p>
<p>You&#8217;ll also need mobigen_linux, which can be downloaded from here:<br />
  <a href="http://nicj.net/files/mobigen_linux.tar.gz" rel="nofollow">http://nicj.net/files/mobigen_linux.tar.gz</a><br />
Or alternatively you can use kindlegen instead of mobigen_linux (though I haven&#8217;t tried):<br />
  <a href="http://www.amazon.com/gp/feature.html?ie=UTF8&amp;docId=1000234621" rel="nofollow">http://www.amazon.com/gp/feature.html?ie=UTF8&amp;docId=1000234621</a></p>
<p>Feel free to send me any comments or provide fixes for any broken features that I didn&#8217;t test.</p>
<p>-slifox</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Economist, and, The Kindle: Take 2 by Peter</title>
		<link>http://nicj.net/2010/01/03/the-economist-and-the-kindle-take-2/comment-page-1#comment-4549</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Mon, 14 Jun 2010 21:42:24 +0000</pubDate>
		<guid isPermaLink="false">http://nicj.net/?p=716#comment-4549</guid>
		<description>Hi Nic,
Looks like the Economist has changed the URL structure, now using ./node/SID where SID is the &#039;story ID&#039;.  Is something up with curl, that&#039;s not following through correctly?   I&#039;m on a new system, so maybe this whole thing is a config issue on my end, but it seems the script has suddenly stopped working in the last week or so.
Thanks, -Peter</description>
		<content:encoded><![CDATA[<p>Hi Nic,<br />
Looks like the Economist has changed the URL structure, now using ./node/SID where SID is the &#8217;story ID&#8217;.  Is something up with curl, that&#8217;s not following through correctly?   I&#8217;m on a new system, so maybe this whole thing is a config issue on my end, but it seems the script has suddenly stopped working in the last week or so.<br />
Thanks, -Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Economist, and, The Kindle: Take 2 by Nic</title>
		<link>http://nicj.net/2010/01/03/the-economist-and-the-kindle-take-2/comment-page-1#comment-4332</link>
		<dc:creator>Nic</dc:creator>
		<pubDate>Thu, 08 Apr 2010 04:54:30 +0000</pubDate>
		<guid isPermaLink="false">http://nicj.net/?p=716#comment-4332</guid>
		<description>Thanks Josh!  If you don&#039;t mind, I&#039;ve added your update to the script on this site so others will have the fix.</description>
		<content:encoded><![CDATA[<p>Thanks Josh!  If you don&#8217;t mind, I&#8217;ve added your update to the script on this site so others will have the fix.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Economist, and, The Kindle: Take 2 by Josh</title>
		<link>http://nicj.net/2010/01/03/the-economist-and-the-kindle-take-2/comment-page-1#comment-4326</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Sun, 04 Apr 2010 14:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://nicj.net/?p=716#comment-4326</guid>
		<description>Got it working.  Style must be different for online only subscribers for back issues.  I just had to update where it found the end of the body.  Patch contents are:

397c397
             $endPos   = getArticleEnd($article);
414c414
             $endPos = getArticleEnd($article);
520c520
 function getArticleEnd($article)
539,543d538
&lt;     $end4 = strpos($article, &#039;&lt;script&#039;, $startPos);
&lt;     if ($end4) {
&lt;        $ends[] = $end4;
&lt;     }
&lt;</description>
		<content:encoded><![CDATA[<p>Got it working.  Style must be different for online only subscribers for back issues.  I just had to update where it found the end of the body.  Patch contents are:</p>
<p>397c397<br />
             $endPos   = getArticleEnd($article);<br />
414c414<br />
             $endPos = getArticleEnd($article);<br />
520c520<br />
 function getArticleEnd($article)<br />
539,543d538<br />
&lt;     $end4 = strpos($article, &#039;&lt;script&#039;, $startPos);<br />
&lt;     if ($end4) {<br />
&lt;        $ends[] = $end4;<br />
&lt;     }<br />
&lt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Economist, and, The Kindle: Take 2 by Josh</title>
		<link>http://nicj.net/2010/01/03/the-economist-and-the-kindle-take-2/comment-page-1#comment-4291</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Sat, 27 Mar 2010 18:46:57 +0000</pubDate>
		<guid isPermaLink="false">http://nicj.net/?p=716#comment-4291</guid>
		<description>Just letting others know since I had to get libcurl working on debian (should work for ubuntu as well)   sudo apt-get install php5-curl
then it started working for me.  

Unfortunately, I&#039;m having trouble with back articles.  Parser seems thrown by the article subscription links (I&#039;m an online only subscriber).  Seems like it would be easy to fix, but the php is throwing me.  Halfway tempted to rewrite in ruby, but I&#039;m sure that it&#039;s not worth it, since the script works great for current artciles.</description>
		<content:encoded><![CDATA[<p>Just letting others know since I had to get libcurl working on debian (should work for ubuntu as well)   sudo apt-get install php5-curl<br />
then it started working for me.  </p>
<p>Unfortunately, I&#8217;m having trouble with back articles.  Parser seems thrown by the article subscription links (I&#8217;m an online only subscriber).  Seems like it would be easy to fix, but the php is throwing me.  Halfway tempted to rewrite in ruby, but I&#8217;m sure that it&#8217;s not worth it, since the script works great for current artciles.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
