<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Endlessly Curious</title>
	
	<link>http://www.endlesslycurious.com</link>
	<description>Programming, Productivity &amp; Software Development.</description>
	<lastBuildDate>Sun, 14 Apr 2013 10:46:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/EndlesslyCurious" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="endlesslycurious" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Wear sunscreen..</title>
		<link>http://www.endlesslycurious.com/2013/02/25/wear-sunscreen/</link>
		<comments>http://www.endlesslycurious.com/2013/02/25/wear-sunscreen/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 09:50:35 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[productivity]]></category>

		<guid isPermaLink="false">http://www.endlesslycurious.com/?p=3321</guid>
		<description><![CDATA[One of the instructors at the spin classes at the gym likes to play this song/advice by Baz Luhrmann at the end of sessions, so its now wedged in my brain. It seems like pretty good advice though!]]></description>
				<content:encoded><![CDATA[<p>One of the instructors at the spin classes at the gym likes to play this song/advice by Baz Luhrmann at the end of sessions, so its now wedged in my brain.  </p>
<p><object width="480" height="360"><param name="movie" value="http://www.youtube.com/v/sTJ7AzBIJoI?hl=en_GB&amp;version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/sTJ7AzBIJoI?hl=en_GB&amp;version=3" type="application/x-shockwave-flash" width="480" height="360" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>It seems like pretty good advice though!</p>
<img src="http://feeds.feedburner.com/~r/EndlesslyCurious/~4/QZC9_q7VaPU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.endlesslycurious.com/2013/02/25/wear-sunscreen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting Lightroom GPS coordinates for Google Maps</title>
		<link>http://www.endlesslycurious.com/2013/01/29/converting-lightroom-gps-coordinates-for-google-maps/</link>
		<comments>http://www.endlesslycurious.com/2013/01/29/converting-lightroom-gps-coordinates-for-google-maps/#comments</comments>
		<pubDate>Tue, 29 Jan 2013 15:21:24 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.endlesslycurious.com/?p=3308</guid>
		<description><![CDATA[I have wanted to add a map of the locations of the photographs on my photo blog SeeStockholm.se for a while now.  I have the coordinates in Lightroom for the images in the degrees, minutes, seconds (DMS) format e.g. 59°16&#8217;31&#8243; N 18°19&#8217;8&#8243;. However Google Maps uses the decimal degrees (DD) format e.g. 59.2753 N 18.3189 [...]]]></description>
				<content:encoded><![CDATA[<p>I have wanted to add a map of the locations of the photographs on my photo blog <a href="http://www.seestockholm.se/">SeeStockholm.se</a> for a while now.  I have the coordinates in Lightroom for the images in the degrees, minutes, seconds (DMS) format e.g. 59°16&#8217;31&#8243; N 18°19&#8217;8&#8243;.  However Google Maps uses the decimal degrees (DD) format e.g. 59.2753 N 18.3189 E.  </p>
<p>I needed a way to convert the coordinates from one representation to the other.  After a bit of googling and some experiementation I wrote the following Javascript functions to convert from DMS format to DD format and create a google maps <a href="https://developers.google.com/maps/documentation/javascript/reference#LatLng">google.maps.LatLng</a> object.</p>
<pre class="brush: jscript; title: ; notranslate">
    function ConvertDMSToDD(days, minutes, seconds, direction) 
    {
        var dd = parseFloat(days) + parseFloat(minutes/60) + parseFloat(seconds/(60*60));
        if (direction == &quot;S&quot; || direction == &quot;W&quot;) {
            dd = dd * -1;
        } // Don't do anything for N or E
        return dd;
    }

    function ParseDMS(input) 
    {
        var parts = input.split(/[^\d\w]+/);
        var lat = ConvertDMSToDD(parts[0], parts[1], parts[2], parts[3]);
        var lng = ConvertDMSToDD(parts[4], parts[5], parts[6], parts[7]);
        return new google.maps.LatLng( lat, lng );
    }
</pre>
<p>This makes the conversion process simply a case of calling ParseDMS with a DMS format coordinate in string form and it will return a LatLng object ready for use in Google Maps.  These conversion functions allowed me to easily implement the <a href="http://www.seestockholm.se/map/">map</a> feature for my photo blog.</p>
<img src="http://feeds.feedburner.com/~r/EndlesslyCurious/~4/_ZzlHg9j6-A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.endlesslycurious.com/2013/01/29/converting-lightroom-gps-coordinates-for-google-maps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving WordPress between Domains</title>
		<link>http://www.endlesslycurious.com/2012/12/27/moving-wordpress-between-domains/</link>
		<comments>http://www.endlesslycurious.com/2012/12/27/moving-wordpress-between-domains/#comments</comments>
		<pubDate>Thu, 27 Dec 2012 13:40:28 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.endlesslycurious.com/?p=3289</guid>
		<description><![CDATA[I recently moved my photo blog to a new domain and this is how I got all the wordpress data and files transfered and setup.  This guide is based off the official Moving WordPress guide on the WordPress Codex with the extra steps I need as I was moving an existing site to a new site that was created [...]]]></description>
				<content:encoded><![CDATA[<p>I recently moved my photo blog to a new domain and this is how I got all the wordpress data and files transfered and setup.  This guide is based off the official <a title="Wordpress Codex" href="http://codex.wordpress.org/Moving_WordPress">Moving WordPress</a> guide on the WordPress Codex with the extra steps I need as I was moving an existing site to a new site that was created using my ISP one click installer.</p>
<ol>
<li><strong>Backup</strong> the original site:
<ol>
<li>Use an FTP client to download copies of all the file from your old wordpress installation and also any files in your file upload location if you are using a custom location (you can check this in Settings &gt; Media).</li>
<li>Use phpMyAdmin to download a copy of the database.</li>
<li>Store these copies in a folder clearly named something like &#8216;original files&#8217;.</li>
</ol>
</li>
<li><strong>Change</strong> Domain:
<ol>
<li>Log into your blog&#8217;s administrator account.</li>
<li>Go to the administration &gt; Settings &gt; General panel.</li>
<li>Change the WordPress address (URI) and Site Address (URL) box to the new URL which should match.</li>
<li>Click save changes but do not try to view your blog now!</li>
<li>Using an FTP client download copies of all the file from your old wordpress installation and also any files in your file upload location if you are using a custom location (you can check this in Settings &gt; Media).</li>
<li>Use phpMyAdmin to download a copy of the database.</li>
<li>Store these new files in another folder named something like &#8216;modified files&#8217;.</li>
</ol>
</li>
<li><strong>Restore</strong> your old site back to its original state by uploading the original files using an FTP client and restoring the original database using phpMyAdmin.  It should be safe to goto the site again and it should work.</li>
<li><strong>Download</strong> the wp-config.php file created by your ISP&#8217;s one click installer this has the configuration details we need to run the old site on the new installation.</li>
<li><strong>Copy</strong> the key database settings from the new configuration file into the configuration file in the modified files directory, this will allow the old site to run in the new installation.  I copied the following settings from the new file into the modified file:
<ol>
<li>DB_NAME</li>
<li>DB_USER</li>
<li>DB_PASSWORD</li>
<li>DB_HOST</li>
<li>DB_CHARSET</li>
<li>DB_COLLATE</li>
</ol>
</li>
<li><strong>Drop</strong> the wordpress tables in the new database created by your ISP&#8217;s installer, they will be prefixed by whatever table_prefix is set to in the new config file.</li>
<li><strong>Rename</strong> the tables in the database backup, search for table_prefix from the old configuration file and replace it with the prefix specified in the new configuration file.  This isn&#8217;t essential but I like things to be tidy.</li>
<li><strong>Upload</strong> the modified files using an FTP client to the new server and the tables in the modified database using phpMyAdmin to the empty new database.</li>
<li><strong>Replace</strong> the links to the old site in the posts table in phpMyAdmin using the replace function in a MySQL query, you only need to search the post_content field: replace the old URL with the new URL.</li>
</ol>
<p>Your old site should now be running on the new domain with working links and correctly named database tables.  This guide is meant as a rough guide for those wishing to move a domain without relying on automated scripts and is a record of how I moved my WordPress 3.5 site between domains.</p>
<p>Follow this guide at your own risk!</p>
<img src="http://feeds.feedburner.com/~r/EndlesslyCurious/~4/Ovb_S5OJrfI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.endlesslycurious.com/2012/12/27/moving-wordpress-between-domains/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kindle Paperwhite</title>
		<link>http://www.endlesslycurious.com/2012/11/05/kindle-paperwhite/</link>
		<comments>http://www.endlesslycurious.com/2012/11/05/kindle-paperwhite/#comments</comments>
		<pubDate>Mon, 05 Nov 2012 12:50:46 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[kindle]]></category>
		<category><![CDATA[review]]></category>

		<guid isPermaLink="false">http://www.endlesslycurious.com/?p=3269</guid>
		<description><![CDATA[Amazon have just released the Kindle I have been waiting for: one with a backlight integrated into the unit, touchscreen and smart cover!  The new model is called the Paperwhite and its features include: Evenly backlight display. Touch screen with multi-touch. 62% more pixels for sharper text. 25% more contrast. More hand tuned fonts. Excellant [...]]]></description>
				<content:encoded><![CDATA[<p>Amazon have just released the Kindle I have been waiting for: one with a backlight integrated into the unit, touchscreen and smart cover!  The new model is called the <a title="Kindle Paperwhite on Amazon.com" href="http://www.amazon.com/dp/B007OZNZG0">Paperwhite</a> and its features include:</p>
<ul>
<li>Evenly backlight display.</li>
<li>Touch screen with multi-touch.</li>
<li>62% more pixels for sharper text.</li>
<li>25% more contrast.</li>
<li>More hand tuned fonts.</li>
<li>Excellant battery life.</li>
<li>Smart cover with auto wake/sleep.</li>
</ul>
<p>I was particularly excited by this new model as I have a trip to Antarctica at the end of the month that will involve an epic amount of flights!  So I had a friend bring me one back from the states as the Paperwhite is not yet available in Sweden.</p>
<p><a href="http://www.endlesslycurious.com/2012/11/05/kindle-paperwhite/kindle-paperwhite/" rel="attachment wp-att-3271"><img class="size-medium wp-image-3271 alignright" alt="The new Amazon Kindle Paperwhite" src="http://www.endlesslycurious.com/wp-content/uploads/2012/12/kindle-paperwhite-249x300.jpeg" width="249" height="300" /></a>The screen is amazing the combination of even backlighting, more resolution and increased contrast really improves the reading experience and make the device easy to read in all lighting conditions I have encountered so far.</p>
<p>Going from the older third generation Kindle with Keyboard to the Paperwhite has been a bit of a revolution as the touch screen interface feels significantly more responsive than the old physical keyboard.  The device itself is smaller and more streamlined with the removal of the headphone jack and volume bottoms which I never used.</p>
<p>The smart cover is a case that complete enclosed the device when closed leaving only the power botton and charging socket exposed.  The cover has a magnet in it just like the iPad smart cover so opening the cover will wake up the device and closing puts the device to sleep which is a nice touch.</p>
<p>The only gripe I have is there is no way to see the books cover art without losing the bottom third of the screen to Amazon&#8217;s shop highlights which is annoying as I paid extra for the advertising free model.</p>
<p>This Kindle is a real upgrade compared to the previous generations: highly recommended!</p>
<img src="http://feeds.feedburner.com/~r/EndlesslyCurious/~4/2IZDiyR752k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.endlesslycurious.com/2012/11/05/kindle-paperwhite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ditching the iPad</title>
		<link>http://www.endlesslycurious.com/2012/10/07/ditching-the-ipad/</link>
		<comments>http://www.endlesslycurious.com/2012/10/07/ditching-the-ipad/#comments</comments>
		<pubDate>Sun, 07 Oct 2012 10:59:16 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[iPad]]></category>

		<guid isPermaLink="false">http://www.endlesslycurious.com/?p=3296</guid>
		<description><![CDATA[I finally bought an iPad in April after wanting one for quite some time for showing my photographs on but six months later I find myself thinking about selling my iPad2.  So what happened? Its another device to manage, I only have a single computer at home as I can&#8217;t be bothered to keep multiple computers configured, [...]]]></description>
				<content:encoded><![CDATA[<p>I finally bought an iPad in April after wanting one for quite some time for showing my photographs on but six months later I find myself thinking about selling my iPad2.  So what happened?</p>
<p>Its another device to manage, I only have a single computer at home as I can&#8217;t be bothered to keep multiple computers configured, synced and updated.  Same thing turns out to be true with mobile devices, I simply can&#8217;t be bothered to manage an iPad and an iPhone!</p>
<p>The size of the iPad even in a slim case is about the same size as my Laptop without a case, while this is small for a computers its big for a mobile device.  Especially when I have an iPhone that almost always carry that can run 99% of the same apps but is a fraction of the size..</p>
<p>One of my original main reasons for wanting an iPad was for showing my photographs on it and it is fantastic for this but I find that as I&#8217;m not carrying it with me its not really getting used much for sharing as I am making do with the iPhone.</p>
<p>While I will miss the big screen browsing experience on the iPad and the iPad optimised versions of the apps I frequently use.  I have found that as I am not taking the iPad with me much any more and its been relegated to weekend couch browsing duties which my laptop can do better.</p>
<p>Maybe a Kindle sized iPad would be the sweet spot for me size wise..</p>
<img src="http://feeds.feedburner.com/~r/EndlesslyCurious/~4/gVkWwI4I1II" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.endlesslycurious.com/2012/10/07/ditching-the-ipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing up Lightroom to Dropbox</title>
		<link>http://www.endlesslycurious.com/2012/09/14/backing-up-lightroom-to-dropbox/</link>
		<comments>http://www.endlesslycurious.com/2012/09/14/backing-up-lightroom-to-dropbox/#comments</comments>
		<pubDate>Fri, 14 Sep 2012 12:13:58 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Productivity]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[lightroom]]></category>

		<guid isPermaLink="false">http://www.endlesslycurious.com/?p=3245</guid>
		<description><![CDATA[I use Dropbox as an offsite backup to complement my Time Machine backups that I have on a pair of external hard drives, however backing up my entire Lightroom catalogue contents to dropbox is impractical due to its sheer size.  So after a bit of searching I figured out how to backup only the good pictures in [...]]]></description>
				<content:encoded><![CDATA[<p>I use Dropbox as an offsite backup to complement my Time Machine backups that I have on a pair of external hard drives, however backing up my entire Lightroom catalogue contents to dropbox is impractical due to its sheer size.  So after a bit of searching I figured out how to backup only the good pictures in a structured folder hierarchy of Year/Month/Day in JPEG format to dropbox:</p>
<ol>
<li><strong>Install</strong> the DateExport Lightroom plugin, you can find it <a title="Date Export on GitHub" href="https://github.com/Clam-/DateExport">here</a> on GitHub.</li>
<li><strong>Filter</strong> the photographs you want to backup in Lightroom.  I use the star rating system built into Lightroom so its as easy as selecting the entire catalogue and filtering out all un-starred images.</li>
<li><strong>Export</strong> the photographs you&#8217;ve just filtered using the DateExport plugin, I have highlighted the two important options in the export dialogue.<br />
<a href="http://www.endlesslycurious.com/2012/09/14/backing-up-lightroom-to-dropbox/screen-shot-2012-12-29-at-12-47-48/" rel="attachment wp-att-3246"><img class="alignnone size-full wp-image-3246" alt="DateExport Dialogue" src="http://www.endlesslycurious.com/wp-content/uploads/2012/12/Screen-Shot-2012-12-29-at-12.47.48.jpg" width="650" height="555" /><br />
</a>The First important option is to use the DateExport plugin for the export and the second controls how the files are exported in this case into a folder hierarchy of Year/Month/Day into my Dropbox.</li>
</ol>
<p>Backup up Lightroom in a structured manner like this becomes very simple with the DateExport plugin, so I&#8217;d recommend using it.  You can export using all the normal options with this plguing e.g. DNG, RAW, sharpening etc but for me right now having an extra backup of the JPEG files is enough as I have a double backup of the RAW files else where.</p>
<img src="http://feeds.feedburner.com/~r/EndlesslyCurious/~4/M8ezAfhigBc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.endlesslycurious.com/2012/09/14/backing-up-lightroom-to-dropbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An Invocation For Beginnings</title>
		<link>http://www.endlesslycurious.com/2012/08/16/an-invocation-for-beginnings/</link>
		<comments>http://www.endlesslycurious.com/2012/08/16/an-invocation-for-beginnings/#comments</comments>
		<pubDate>Thu, 16 Aug 2012 06:29:40 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[productivity]]></category>

		<guid isPermaLink="false">http://www.endlesslycurious.com/?p=3227</guid>
		<description><![CDATA[Inspiring video about getting started by the comedian zeFrank. I watch this every few weeks as a pep talk to myself as he makes some excellent points about getting started and letting go of the fear of starting which can be closely tied to the fear of failing. An Invocation For Beginnings from ze frank [...]]]></description>
				<content:encoded><![CDATA[<p>Inspiring video about getting started by the comedian <a href="http://ashow.zefrank.com/">zeFrank</a>.  I watch this every few weeks as a pep talk to myself as he makes some excellent points about getting started and letting go of the fear of starting which can be closely tied to the fear of failing.<br />
<iframe src="http://player.vimeo.com/video/40029641" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<p><a href="http://vimeo.com/40029641">An Invocation For Beginnings</a> from <a href="http://vimeo.com/user421260">ze frank</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>I think too often we hold ourselves to a higher standard than we hold other people to and pretend this is a virtue.  I think that instead of this being a virtue it can turn into a handicap as it makes us too scared to fail, so scared that we don&#8217;t even start.  Failure is a natural part of creative iterative process without it we will stale and not progress, I know I need regular reminding of this.</p>
<img src="http://feeds.feedburner.com/~r/EndlesslyCurious/~4/423EuKbyY4w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.endlesslycurious.com/2012/08/16/an-invocation-for-beginnings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exceeding the forty hour work week</title>
		<link>http://www.endlesslycurious.com/2012/07/23/exceeding-the-forty-hour-work-week/</link>
		<comments>http://www.endlesslycurious.com/2012/07/23/exceeding-the-forty-hour-work-week/#comments</comments>
		<pubDate>Mon, 23 Jul 2012 11:29:28 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[WorkLifeBalence]]></category>

		<guid isPermaLink="false">http://www.endlesslycurious.com/?p=3202</guid>
		<description><![CDATA[To follow on from &#8216;How to Make work-life balence work&#8216; video Alison Morris from Online MBA has a pretty interesting inforgraphic regarding the effect of the current trend in America to work more than forty hours a week: it is pretty sobering stuff! While Europe tends to better at work-life balance than North America there is still [...]]]></description>
				<content:encoded><![CDATA[<p>To follow on from &#8216;<a href="http://www.endlesslycurious.com/2011/02/11/nigel-marsh-how-to-make-work-life-balance-work/">How to Make work-life balence work</a>&#8216; video Alison Morris from <a title="Online MBA" href="http://www.onlinemba.com/">Online MBA</a> has a pretty interesting inforgraphic regarding the effect of the current trend in America to work more than forty hours a week: it is pretty sobering stuff!</p>
<p style="text-align: center;"><a href="http://www.onlinemba.com/blog/40-hour-work-week/"><img class="wp-image-3206 aligncenter" title="Forty Hour Work Week" src="http://www.endlesslycurious.com/wp-content/uploads/2012/07/FortyHourWorkWeekFinal.gif" alt="" width="500" /></a></p>
<p style="text-align: left;">While Europe tends to better at work-life balance than North America there is still room for improvement on both sides of the Atlantic.  I believe it is in an employers best interests to not over work their staff if they want to get the best quality of work.</p>
<img src="http://feeds.feedburner.com/~r/EndlesslyCurious/~4/ghUfBrPEJbw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.endlesslycurious.com/2012/07/23/exceeding-the-forty-hour-work-week/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Scraping PDF with Python</title>
		<link>http://www.endlesslycurious.com/2012/06/13/scraping-pdf-with-python/</link>
		<comments>http://www.endlesslycurious.com/2012/06/13/scraping-pdf-with-python/#comments</comments>
		<pubDate>Wed, 13 Jun 2012 07:00:00 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.endlesslycurious.com/?p=3190</guid>
		<description><![CDATA[There are several PDF modules available for python, so far I&#8217;ve found Slate to be the simplest to use and PDFMiner to be potentially the most powerful but also the most complicated to use.  For the problem I needed to solve: extracting text with whitespace characters intact I found the following fragment of PDFMiner code [...]]]></description>
				<content:encoded><![CDATA[<p>There are several PDF modules available for python, so far I&#8217;ve found <a title="Slate on GitHub" href="https://github.com/timClicks/slate">Slate</a> to be the simplest to use and <a title="PDFMiner on GitHub" href="https://github.com/euske/pdfminer/">PDFMiner</a> to be potentially the most powerful but also the most complicated to use.  For the problem I needed to solve: extracting text with whitespace characters intact I found the following fragment of PDFMiner code on <a title="Stack Overflow" href="http://stackoverflow.com/a/8325135/39040">StackOverflow</a> to be only solution:</p>
<pre class="brush: python; title: ; notranslate">
&quot;&quot;&quot;Extract text from PDF file using PDFMiner with whitespace inatact.&quot;&quot;&quot;

from pdfminer.pdfparser import PDFDocument, PDFParser
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter, process_pdf
from pdfminer.pdfdevice import PDFDevice, TagExtractor
from pdfminer.converter import XMLConverter, HTMLConverter, TextConverter
from pdfminer.cmapdb import CMapDB
from pdfminer.layout import LAParams
from cStringIO import StringIO

def scrap_pdf(path):
    &quot;&quot;&quot;From http://stackoverflow.com/a/8325135/39040.&quot;&quot;&quot;
    rsrcmgr = PDFResourceManager()
    retstr = StringIO()
    codec = 'utf-8'
    laparams = LAParams()
    device = TextConverter(rsrcmgr, retstr, codec=codec, laparams=laparams)
    fp = file(path, 'rb')
    process_pdf(rsrcmgr, device, fp)
    fp.close()
    device.close()
    str = retstr.getvalue()
    retstr.close()
    return str
</pre>
<p>If you don&#8217;t need whitespace to be left intact I&#8217;d strongly recommend Slate over PDfMiner as its significantly easier to work with, although it does offer a smaller feature set.</p>
<img src="http://feeds.feedburner.com/~r/EndlesslyCurious/~4/HG-UNeuvyoE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.endlesslycurious.com/2012/06/13/scraping-pdf-with-python/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Introducing See Stockholm!</title>
		<link>http://www.endlesslycurious.com/2012/05/13/introducing-shoot-stockholm/</link>
		<comments>http://www.endlesslycurious.com/2012/05/13/introducing-shoot-stockholm/#comments</comments>
		<pubDate>Sun, 13 May 2012 20:30:18 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.endlesslycurious.com/?p=3084</guid>
		<description><![CDATA[I&#8217;d like to introduce my latest personal project &#8211; See Stockholm.  This is a photo blog of my  life here in Stockholm, Sweden and is a photography project I&#8217;ve wanted to do for a while now. The idea for this site was inspired by my  friend’s David duChemin and Dave Delnea&#8216;s mantra of &#8216;create things &#38; share [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.endlesslycurious.com/wp-content/uploads/2012/05/Shoot-Stockholm.png"><img class="alignleft size-medium wp-image-3085" title="Shoot Stockholm" alt="See Stockholm a photo blog." src="http://www.endlesslycurious.com/wp-content/uploads/2012/05/Shoot-Stockholm-187x300.png" width="187" height="300" /></a>I&#8217;d like to introduce my latest personal project &#8211; <a title="Shoot Stockholm" href="http://www.seestockholm.se/">See Stockholm</a>.  This is a photo blog of my  life here in Stockholm, Sweden and is a photography project I&#8217;ve wanted to do for a while now.</p>
<p>The idea for this site was inspired by my  friend’s <a title="David duChemin" href="http://www.pixelatedimage.com/blog/">David duChemin</a> and <a title="Dave Delnea" href="http://blog.davedelnea.com/">Dave Delnea</a>&#8216;s mantra of &#8216;create things &amp; share it&#8217;.  Dave Powell’s <a title="Shoot Tokyo" href="http://shoottokyo.com/">photo blog</a> has also been an inspiration to share my photographs more publicly.</p>
<p>Now that I&#8217;m settled in Stockholm, I&#8217;m  hoping to be able to also start posting to Endlessly Curious again.  And I&#8217;ll be posting my photographs to Shoot Stockholm on a regular basis.</p>
<img src="http://feeds.feedburner.com/~r/EndlesslyCurious/~4/UPsVrQdmmLY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.endlesslycurious.com/2012/05/13/introducing-shoot-stockholm/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss><!-- Dynamic page generated in 0.295 seconds. --><!-- Cached page generated by WP-Super-Cache on 2013-05-15 15:07:50 --><!-- Compression = gzip -->
