<?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>Damek.&#187; Technology</title>
	<atom:link href="http://damek.org/category/tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://damek.org</link>
	<description>Adam, the universe, and things between, from the ground up.</description>
	<lastBuildDate>Tue, 15 May 2012 17:00:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Savage Minds blog Calibre news-fetching recipe</title>
		<link>http://damek.org/2012/03/20/savage-minds-blog-calibre-recipe/</link>
		<comments>http://damek.org/2012/03/20/savage-minds-blog-calibre-recipe/#comments</comments>
		<pubDate>Tue, 20 Mar 2012 17:55:00 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[calibre]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[ebook]]></category>
		<category><![CDATA[kindle]]></category>
		<category><![CDATA[recipe]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://damek.org/?p=1854</guid>
		<description><![CDATA[Following on from the previous post about Calibre, here&#8217;s a recipe I cooked up for Calibre to fetch posts from the Savage Minds blog. To make it work for you, you would &#8220;Add a custom news source&#8221; in Calibre, then &#8230; <a class="more-link" href="http://damek.org/2012/03/20/savage-minds-blog-calibre-recipe/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Following on from the <a href="http://damek.org/2012/03/19/how-to-fix-the-date-on-news-sent-by-email-from-calibre-to-kindle/">previous post about Calibre</a>, here&#8217;s a recipe I cooked up for Calibre to fetch posts from the <a href="http://savageminds.org">Savage Minds</a> blog. To make it work for you, you would &#8220;Add a custom news source&#8221; in Calibre, then &#8220;Switch to Advanced mode,&#8221; paste the following code in the box, and click &#8220;Add/Update recipe.&#8221; Voil&agrave;, you have a custom recipe you can schedule in the regular Fetch news interface.</p>
<p>Comments in the code below should give hints as to what the parts are doing. I relied on the <a href="http://manual.calibre-ebook.com/news.html">Calibre manual news page</a>, its <a href="http://manual.calibre-ebook.com/news_recipe.html">API documentation</a>, and hunting around the <a href="http://www.mobileread.com/forums/forumdisplay.php?f=228">Recipes forum at Mobileread</a> to figure this out.</p>
<p><span id="more-1854"></span></p>
<pre class="brush: python; gutter: true; first-line: 1; highlight: []; html-script: false">from calibre.web.feeds.news import BasicNewsRecipe

class Savage_Minds(BasicNewsRecipe):
    title = u&#039;Savage Minds&#039;
    description = &#039;Notes and Queries in Anthropology - A Group Blog&#039;
    oldest_article = 7
    max_articles_per_feed = 100

    #&quot;cover_url&quot; specifies a special cover image to use so it&#039;s pretty.
    cover_url = &#039;http://savageminds.org/wp-content/themes/SM2009Test/images/sidebar/sidebox.jpg&#039;

    #&quot;use_embedded_content&quot; forces Calibre to ignore any content in the RSS
    #feed and to go get content from the articles linked in the feed.
    use_embedded_content = False

    #The next two items keep Calibre from cleaning the HTML or using
    #the blog&#039;s own stylesheets. Seems to work for me.
    auto_cleanup = False
    no_stylesheets = True

    feeds = [(u&#039;Savage Minds Entries&#039;, u&#039;http://savageminds.org/feed/&#039;)]

    &quot;&quot;&quot;
    Next, &quot;keep_only_tags&quot; makes sure we&#039;re just grabbing the part of the
    blog page that contains the post and its comments.
    &quot;remote_tags&quot; cleans out some superfluous HTML that makes no sense in
    a kindle-ready ebook. This is all operating on the CSS in the website.
    I used the Firebug extension in Firefox to determine the appropriate
    element classes and ids to eliminate.
    &quot;&quot;&quot;
    keep_only_tags    = [dict(name=&#039;div&#039;, attrs={&#039;id&#039;:&#039;content&#039;})]
    remove_tags = [dict(name=&#039;div&#039;, attrs={&#039;class&#039;:&#039;meta clear&#039;}),
        dict(name=&#039;div&#039;, attrs={&#039;class&#039;:&#039;snap_nopreview sharing robots-nocontent&#039;}),
        dict(name=&#039;div&#039;, attrs={&#039;id&#039;:&#039;respond&#039;}),
        dict(name=&#039;div&#039;, attrs={&#039;class&#039;:&#039;c-grav&#039;}),
        dict(name=&#039;span&#039;, attrs={&#039;class&#039;:&#039;c-permalink&#039;})
        ]
</pre>
]]></content:encoded>
			<wfw:commentRss>http://damek.org/2012/03/20/savage-minds-blog-calibre-recipe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fix the date on news sent by email from Calibre to Kindle</title>
		<link>http://damek.org/2012/03/19/how-to-fix-the-date-on-news-sent-by-email-from-calibre-to-kindle/</link>
		<comments>http://damek.org/2012/03/19/how-to-fix-the-date-on-news-sent-by-email-from-calibre-to-kindle/#comments</comments>
		<pubDate>Mon, 19 Mar 2012 15:34:45 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[calibre]]></category>
		<category><![CDATA[ebook]]></category>
		<category><![CDATA[kindle]]></category>
		<category><![CDATA[metadata]]></category>
		<category><![CDATA[plugboard]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://damek.org/?p=1841</guid>
		<description><![CDATA[Around New Years, K. got a Kindle Touch, and seeing her use it convinced me to get one. What really sold me was Calibre, which is like iTunes for books (except even better because it&#8217;s open source and not tied &#8230; <a class="more-link" href="http://damek.org/2012/03/19/how-to-fix-the-date-on-news-sent-by-email-from-calibre-to-kindle/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Around New Years, K. got a Kindle Touch, and seeing her use it convinced me to get one. What really sold me was <a href="http://calibre-ebook.com/">Calibre</a>, which is like iTunes for books (except even better because it&#8217;s open source and not tied to a particular media store, but I digress).</p>
<p>One thing Calibre can do is &#8220;fetch news&#8221;&#8212;download content from blogs and other sources and format it for your ereader. You can do this manually, or Calibre can automatically fetch it on a schedule and even automatically email it to your device. So I set it up to get a couple of blogs and news sites every day and email it to my kindle&#8217;s address so I&#8217;d have news to peruse each morning.</p>
<p>But there was one &#8220;first world problem.&#8221; Sure, if you use a USB cable to connect your device and then put the news on it that way, the items show their date, which is convenient for dated content. But if you have the news items automatically emailed to your Kindle, which is more convenient, the items lose the date and simply say &#8220;calibre,&#8221; which is their &#8220;author.&#8221; It&#8217;s a problem of metadata.</p>
<p>Then I discovered &#8220;metadata plugboards&#8221; in Calibre and figured out how to fix it so any news emailed to my Kindle shows its date, while everything else emailed shows its author. Here&#8217;s what I did:<br />
<span id="more-1841"></span></p>
<ol>
<li>click Preferences</li>
<li>click Metadata plugboards under import/export</li>
<li>next to &#8220;Add new plugboard&#8221;</li>
<ol>
<li>select &#8220;any format&#8221; under Format</li>
<li>select &#8220;email&#8221; under Device</li>
<li>copy the following code and paste it into the &#8220;source template&#8221; box:
<pre class="brush: python; gutter: false; first-line: 1; highlight: []; html-script: false">{tags:&#039;contains($, &#039;News&#039;, field(&#039;date&#039;), field(&#039;authors&#039;))&#039;}</pre>
</li>
<li>select &#8220;authors&#8221; under Destination field</li>
</ol>
<li>click Save plugboard</li>
<li>click Close on the Preferences window</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://damek.org/2012/03/19/how-to-fix-the-date-on-news-sent-by-email-from-calibre-to-kindle/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>From Avvisos to Asimov</title>
		<link>http://damek.org/2010/07/28/from-avvisos-to-asimov/</link>
		<comments>http://damek.org/2010/07/28/from-avvisos-to-asimov/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 13:50:30 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Art]]></category>
		<category><![CDATA[Society]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://damek.org/?p=1603</guid>
		<description><![CDATA[My previous meandering post comes from disorganized thoughts on mass production and modernity, really. Learning more about the history of art, it&#8217;s interesting how much it demonstrates how everytyhing people do is symptomatic of context &#8212; of the always contingent &#8230; <a class="more-link" href="http://damek.org/2010/07/28/from-avvisos-to-asimov/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My previous meandering post comes from disorganized thoughts on mass production and modernity, really. Learning more about the history of art, it&#8217;s interesting how much it demonstrates how everytyhing people do is symptomatic of context &#8212; of the always contingent emerging human world &#8212; and difficult to fully comprehend after the fact in the changed world.</p>
<p>For example:</p>
<p>I was thinking recently about serial fiction. The BBC has done an updated adaptation of Arthur Conan Doyle&#8217;s Sherlock Holmes, with cell phones and twitter. The creators&#8217; contention is that Sherlock isn&#8217;t defined by 19th Century ephemera like frock coats and gas lamps, but by things like the unique characterization of a detective who solves mysteries by deductive reasoning, and explains his methods and reasoning.</p>
<p>I also learned that <a href="http://en.wikipedia.org/wiki/House_%28TV_series%29#References_to_Sherlock_Holmes"><em>House, MD</em> is loosely based on Holmes</a>. Certainly Holmes was a popular precursor to many other popular and recurring characters in detective fiction like Agatha Christie&#8217;s Poirot.</p>
<p>I found myself thinking of novels and serial fiction as such modern phenomena: television shows, characters like Poirot, science fiction &#8220;universes,&#8221; and all these things leading to the peculiar phenomenon of &#8220;fans&#8221; who follow specific characters or universes. But on reflection, people have always liked to revisit favorite characters and worlds. From Greek gods and heroes to Native American legends and stories, &#8220;experiencing a very real social connection to imaginary beings and telling story after story about them&#8221; seems, on reflection, to be a human universal.</p>
<p>But where does the Western mass media version originate? The creation of so much serial fiction that we can view it as a phenomenon &#8212; and product! &#8212; unto itself, with fan clubs (Hercules spawned roman cults, so I guess that&#8217;s not necessarily new&#8230;) &#8212; where does it come from?</p>
<p>Let&#8217;s work it backwards: authors can make a living writing serials and reusing characters and worlds because owners of presses (magazines, newspapers, TV networks) will happily pay them. There is an audience. Where does the audience come from? Increased literacy and spending power, perhaps. Maybe also Marxist alienation! But let&#8217;s get more material. Where did magazines et al. come from in the first place? Because Wikipedia suggests that serial fiction has been around almost as long as magazines.</p>
<p>It looks like magazines appeared out of the newspaper and gazette subscriptions in the 17th and 18th centuries. But where did they come from? It turns out the earliest regularly-published, standard-format publications were <a href="http://en.wikipedia.org/wiki/History_of_newspapers_and_magazines#Sixteenth_century_.28avvisi.2C_gazettes.29">handwritten newsletters in Italy and Germany in the 16th century</a>. Merchants and politicos were willing to pay for information to get an edge. And, I guess it&#8217;s not surprising that enterprising publishers inventing subscription busines models and the like saw a benefit to adding entertainment and art into the mix. The first magazines begain in the mid 1700s, and the first serial fiction was being published soon after.</p>
<p>Oh, and those early handwritten newsletters were handwritten because printing presses were too slow at the time! Oh, hello, Internet!</p>
]]></content:encoded>
			<wfw:commentRss>http://damek.org/2010/07/28/from-avvisos-to-asimov/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Processed Foods vs Good Eats</title>
		<link>http://damek.org/2010/04/06/processed-foods-vs-good-eats/</link>
		<comments>http://damek.org/2010/04/06/processed-foods-vs-good-eats/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 21:52:49 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Cuisine]]></category>
		<category><![CDATA[Society]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://damek.org/?p=1556</guid>
		<description><![CDATA[There are many things wrong with our food system, not least of which the way my MacBook wants to &#8220;click&#8221; when I&#8217;m just leaning on the edge of the keyboard&#8230; ok, a little venting there&#8230;. anyway.. One problem is the &#8230; <a class="more-link" href="http://damek.org/2010/04/06/processed-foods-vs-good-eats/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There are many things <a href="http://www.isreview.org/issues/70/feat-food.shtml">wrong with our food system</a>, not least of which the way my MacBook wants to &#8220;click&#8221; when I&#8217;m just leaning on the edge of the keyboard&#8230; ok, a little venting there&#8230;.</p>
<p>anyway..</p>
<p>One problem is the disconnect between food science and reality.</p>
<p>For example, at this enticing <a href="http://noblepig.com/2009/10/17/broccoli-and-gruyere-gratin.aspx">recipe for broccoli and gruyere gratin at noble pig</a>, a commenter references a similar recipe with &#8220;half and half.&#8221;</p>
<p>There&#8217;s not necessarily anything wrong with this, but, as a geek, I can&#8217;t help thinking in terms of longevity and translatability of information. If I&#8217;m not living in 20th/21st century Earth, what does half &#038; half mean to me? It&#8217;s a chemically unique solution to a very specific set of circumstances.</p>
<p>OK, arguably, &#8220;chicken&#8221; is a very unique solution to a specific set of circumstances, and there are a lot of different kinds of chicken (let alone chicken parts!), but, if I say &#8220;chicken&#8221; you have a sense of what I mean that relates to an animal, a growth pattern, a biological reality. If I say &#8220;half &#038; half&#8221; you only know about a packaging representation in your grocery store. How do you make a chicken? How do you make half &#038; half? Which one is easier to grasp?</p>
<p>I think it&#8217;s worth thinking about. I&#8217;d rather a recipe that references milk &#038; cheese in various quantities than half &#038; half.</p>
]]></content:encoded>
			<wfw:commentRss>http://damek.org/2010/04/06/processed-foods-vs-good-eats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Batch Category and Tag Editing for WordPress</title>
		<link>http://damek.org/2010/03/19/batch-category-and-tag-editing-for-wordpress/</link>
		<comments>http://damek.org/2010/03/19/batch-category-and-tag-editing-for-wordpress/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 05:37:12 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://damek.org/?p=1469</guid>
		<description><![CDATA[After six years of this blog, I&#8217;ve decided to redesign and reorganize. I don&#8217;t want to start over, but as I and WordPress have changed over the years, this site has developed category and tag entropy! WordPress provides a rudimentary &#8230; <a class="more-link" href="http://damek.org/2010/03/19/batch-category-and-tag-editing-for-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After six years of this blog, I&#8217;ve decided to redesign and reorganize. I don&#8217;t want to start over, but as I and WordPress have changed over the years, this site has developed category and tag entropy!</p>
<p>WordPress provides a rudimentary feature to turn individual categories into tags. Entropy and mess in tags is ok, as they provide emergent information, &#8220;wisdom of the clouds.&#8221; But categories are not tags, and I have plans for them, so I want to pare them down, and <em>not</em> post-by-post.</p>
<p>Thank goodness for <a href="http://robm.me.uk/projects/plugins/wordpress/batch-categories">Batch Categories</a>, a miraculous plugin that lets you filter by categories, tags or even keywords, and update, remove, or replace categories and tags across whole groups of posts. I&#8217;m not done yet, but it&#8217;s making this mountain climbable.</p>
]]></content:encoded>
			<wfw:commentRss>http://damek.org/2010/03/19/batch-category-and-tag-editing-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

