<?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>Kenneth's Blog &#187; geeking out</title>
	<atom:link href="http://www.kenneth.himschoot.com/blog/tag/geeking-out/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kenneth.himschoot.com/blog</link>
	<description>The tales of Kay's travels</description>
	<lastBuildDate>Mon, 01 Mar 2010 11:47:43 +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>My own microprinter</title>
		<link>http://www.kenneth.himschoot.com/blog/2009/03/02/my-own-microprinter/</link>
		<comments>http://www.kenneth.himschoot.com/blog/2009/03/02/my-own-microprinter/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 13:05:36 +0000</pubDate>
		<dc:creator>Kenneth Himschoot</dc:creator>
				<category><![CDATA[Journal]]></category>
		<category><![CDATA[geeking out]]></category>

		<guid isPermaLink="false">http://www.kenneth.himschoot.com/blog/?p=98</guid>
		<description><![CDATA[Inspired by Jeremy Keith&#8217;s post about PaperCamp, I though I&#8217;d build my own little microprinter.
Easy enough: my girlfriend owns a shop that has a lot of old junk in the attic.  So do I.  These are times where that comes in handy.  Her old Epson TM 88 receipt printer was only a [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.kenneth.himschoot.com/blog/wp-content/uploads/2009/03/884_whitejpg-150x150.jpg" alt="epson microprinter" title="epson microprinter" width="150" height="150" class="alignright size-thumbnail wp-image-111" />Inspired by Jeremy Keith&#8217;s <a href="http://adactio.com/journal/1546/">post about PaperCamp</a>, I though I&#8217;d build my own little microprinter.<br />
Easy enough: my girlfriend owns a shop that has a lot of <em>old junk</em> in the attic.  So do I.  These are times where that comes in handy.  Her old Epson TM 88 receipt printer was only a phone call away.  She&#8217;s switched to a more modern USB-based printer and this serial port one is of no use to her.</p>
<p>My attic sports a whole selection of boxes with random cables, adapters and gadgets.  A targus serial-to-usb convertor was in one of them.<br />
I connected both on my macbook pro and sure enough, the printer was immediately recognised and some legacy Epson 9-pin printer drivers (roughly) do the job.  This wasn&#8217;t good enough though.  Since working at XS4ALL in the mid-90s, I learned to ban any printer directly connected to a computer.  5 minutes later, I couldn&#8217;t help but smiling when the second test print rolled out the Epson, which was now connected to my Airport Extreme / Time Capsule base station (still through the serial-to-usb convertor, which was now connected to a &#8211; i again refer to my attic &#8211; usb hub, to still allow an extra external harddrive to be connected).<br />
Some 20 minutes later, I had a rough &#8220;good morning&#8221; generator, including the weather (through the <a href="http://www.weather.com/services/xmloap.html">weather.com API</a>) and the latest tweets (through the <a href="http://apiwiki.twitter.com/">twitter API</a>).</p>
<p>The code is quick and dirty, I&#8217;ll have to clean it up one day (the same day I&#8217;ll clear out the attic), but it works:<br />
<code>function get_forecasts($location) {<br />
$url = "http://xoap.weather.com/weather/local/".$location."?cc=*&#038;dayf=5&#038;link=xoap&#038;prod=xoap&#038;par=1100278982&#038;key=[mykey]";<br />
$xml = simplexml_load_file($url);<br />
$forecasts = $xml->dayf[0];<br />
$firstday = $forecasts->day[0];<br />
echo $firstday->attributes()->t;;<br />
echo $firstday->part[0]->t[0];<br />
echo round(f2c($firstday->hi[0]));<br />
echo round(f2c($firstday->low[0]));<br />
echo "&nbsp;&nbsp;sun: ".$firstday->sunr[0];<br />
echo $firstday->suns[0];<br />
}<br />
get_forecasts("BEXX0008");//ghent, Belgium</code></p>
<p>All that&#8217;s left for me to do is to set up the new fileserver (I&#8217;ve been preparing one for the last month or so, to replace the 4-year old &#8220;riogrande&#8221; server, also in the attic) to print this &#8220;good morning&#8221; greeting every day at &#8211; say &#8211; 7am.  I&#8217;d like to combine it with my daily schedule (iCal) and todo list (through TaskPaper, easily done).<br />
Thanks for the tip, Jeremy!  I haven&#8217;t spent a dime and I&#8217;m one great gadget richer!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kenneth.himschoot.com/blog/2009/03/02/my-own-microprinter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
