<?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>maebmij's blog &#187; linux</title>
	<atom:link href="http://maebmij.org/blog/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://maebmij.org/blog</link>
	<description>stuff having to do with James Ballantine</description>
	<lastBuildDate>Tue, 09 Feb 2010 10:42:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Read xkcd titles from the command line</title>
		<link>http://maebmij.org/blog/2009/05/11/read-xkcd-titles-from-the-command-line/</link>
		<comments>http://maebmij.org/blog/2009/05/11/read-xkcd-titles-from-the-command-line/#comments</comments>
		<pubDate>Mon, 11 May 2009 10:43:27 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[computers]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://maebmij.org/blog/?p=171</guid>
		<description><![CDATA[Does your mobile browser have difficulty reading the  &#8216;title&#8217; attribute on xkcd strips? Is this a problem for you? Does your mobile device have command-line access to a unix-like system? If so, you may find the following title-extracting script useful. Call without arguments for the latest strip, or supply the strip number as an [...]]]></description>
			<content:encoded><![CDATA[<p>Does your mobile browser have difficulty reading the  &#8216;title&#8217; attribute on <a href="http://www.xkcd.com/">xkcd</a> strips? Is this a problem for you? Does your mobile device have command-line access to a unix-like system? If so, you may find the following title-extracting script useful. Call without arguments for the latest strip, or supply the strip number as an argument:</p>
<pre>#!/bin/bash

if [ $1 ]; then
    URLPATH=$1/
fi

curl -s http://www.xkcd.com/$URLPATH |grep "img.*title" \
|sed 's/.* title="\([^"]*\).*/\1/'</pre>
]]></content:encoded>
			<wfw:commentRss>http://maebmij.org/blog/2009/05/11/read-xkcd-titles-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
