<?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>compbrain.net &#187; Hacking</title>
	<atom:link href="http://compbrain.net/archives/tag/hacking/feed" rel="self" type="application/rss+xml" />
	<link>http://compbrain.net</link>
	<description>A collection of occasional thoughts</description>
	<lastBuildDate>Sun, 14 Mar 2010 02:27:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fireplace Temperature Sensing</title>
		<link>http://compbrain.net/archives/78</link>
		<comments>http://compbrain.net/archives/78#comments</comments>
		<pubDate>Sat, 09 Jan 2010 19:47:35 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[onewire]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://compbrain.net/?p=78</guid>
		<description><![CDATA[Currently it is quite cold in New England, Google says about 28F in my home town. Our house has a wood burning stove in the basement that we like to keep burning so the room is about 70F. With the help of some python from Mikal Still, and some left over one-wire serial experiments, I [...]]]></description>
			<content:encoded><![CDATA[<p>Currently it is quite cold in New England, Google says about 28F in my home town. Our house has a wood burning stove in the basement that we like to keep burning so the room is about 70F. With the help of some python from <a href="http://www.stillhq.com/arduino/000004.html">Mikal Still</a>, and some left over one-wire serial experiments, I have a working prototype to keep an eye on the fireplace performance.</p>
<p><!--img src="http://fetchthat.appspot.com/tempgraph/" alt="Google Charts Temperature Graph" /--></p>
<p>A bit of Python polls <a href="http://owfs.org/index.php?page=owserver">owserver</a> using a SWIG module and  commits the read temperature value to a MySQL database. I munged some of Mikal&#8217;s <a href="http://www.stillhq.com/svn/trunk/homeautomation/server.py">graph server code</a> to simply post the chartserver URL to appengine so it could be hosted for the world to see. </p>
]]></content:encoded>
			<wfw:commentRss>http://compbrain.net/archives/78/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UPDATE: Cups class physical destination</title>
		<link>http://compbrain.net/archives/72</link>
		<comments>http://compbrain.net/archives/72#comments</comments>
		<pubDate>Sun, 06 Dec 2009 02:55:12 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[cups]]></category>

		<guid isPermaLink="false">http://compbrain.net/?p=72</guid>
		<description><![CDATA[Not that long ago I was searching for a way to find the printer a job sent to a CUPS class printed to. After poking around on the cups.org forums, Michael Sweet responded with information about the &#8220;job-actual-printer-uri&#8221; IPP attribute. 
The code is something like:

self.cups = cups.Connection()
def getActualPrinter(self, jobid):
  job_attributes = self.cups.getJobAttributes(jobid)
  return [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/archives/49">Not that long ago</a> I was searching for a way to find the printer a job sent to a CUPS class printed to. After poking around on the cups.org forums, Michael Sweet <a href="http://cups.org/newsgroups.php?s1+gcups.general+v17+T0+Qdestination">responded</a> with information about the &#8220;job-actual-printer-uri&#8221; IPP attribute. </p>
<p>The code is something like:<br />
<code><br />
self.cups = cups.Connection()</p>
<p>def getActualPrinter(self, jobid):<br />
  job_attributes = self.cups.getJobAttributes(jobid)<br />
  return job_attributes['job-actual-printer-uri']<br />
</code></p>
<p>Now with the added code, I&#8217;ve added physical destination to the CCIS print queue viewer. We have several queues that all point to the same printer (name-simplex, name-duplex, etc all point to name). The same code for identifying destination on print classes also works for these cases. </p>
<div id="attachment_74" class="wp-caption aligncenter" style="width: 310px"><a href="http://compbrain.net/wp-content/uploads/2009/12/Screenshot1.png"><img src="http://compbrain.net/wp-content/uploads/2009/12/Screenshot1-300x62.png" alt="Print Queue Viewer" title="Queue Viewer" width="300" height="62" class="size-medium wp-image-74" /></a><p class="wp-caption-text">CCIS Print Queue Viewer</p></div>
]]></content:encoded>
			<wfw:commentRss>http://compbrain.net/archives/72/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
