<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>A Glass Pool</title>
	<atom:link href="http://aglasspool.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://aglasspool.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 22 Nov 2010 14:51:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='aglasspool.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>A Glass Pool</title>
		<link>http://aglasspool.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://aglasspool.wordpress.com/osd.xml" title="A Glass Pool" />
	<atom:link rel='hub' href='http://aglasspool.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Swimming Sets You Free</title>
		<link>http://aglasspool.wordpress.com/2010/11/22/swimming-sets-you-free/</link>
		<comments>http://aglasspool.wordpress.com/2010/11/22/swimming-sets-you-free/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 14:18:09 +0000</pubDate>
		<dc:creator>aglasspool</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aglasspool.wordpress.com/?p=246</guid>
		<description><![CDATA[This page is an attempt to promote rational debate on the question of whether the above concrete construction at Auschwitz concentration camp was a fire-brigade reservoir, as confirmed by the official story: Or whether the fire-brigade reservoir story is just a cover-up and it was in fact a swimming pool for inmates as according to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=246&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://aglasspool.files.wordpress.com/2010/11/auschwitzpool-front.jpg"><img class="aligncenter size-full wp-image-249" title="AuschwitzPool front" src="http://aglasspool.files.wordpress.com/2010/11/auschwitzpool-front.jpg?w=489&#038;h=327" alt="" width="489" height="327" /></a></p>
<p>This page is an attempt to promote rational debate on the question of whether the above concrete construction at Auschwitz concentration camp was a fire-brigade reservoir, as confirmed by the official story:<a href="http://aglasspool.files.wordpress.com/2010/11/poolsign.jpg"><img class="aligncenter size-full wp-image-250" title="poolsign" src="http://aglasspool.files.wordpress.com/2010/11/poolsign.jpg?w=320&#038;h=240" alt="" width="320" height="240" /></a></p>
<p>Or whether the fire-brigade reservoir story is just a cover-up and it was in fact a swimming pool for inmates as according to this video:</p>
<span style="text-align:center; display: block;"><a href="http://aglasspool.wordpress.com/2010/11/22/swimming-sets-you-free/"><img src="http://img.youtube.com/vi/DCrhoXBQCeY/2.jpg" alt="" /></a></span>
<p>Now, the only facts we have so far are the photo of the pool and a photo of the plaque.</p>
<p>In order to enter into a rational debate on whether or not it was a swimming pool we would first need some facts disproving that it was indeed a reservoir.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aglasspool.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aglasspool.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aglasspool.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aglasspool.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aglasspool.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aglasspool.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aglasspool.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aglasspool.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aglasspool.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aglasspool.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aglasspool.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aglasspool.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aglasspool.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aglasspool.wordpress.com/246/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=246&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aglasspool.wordpress.com/2010/11/22/swimming-sets-you-free/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db9cd94b67668e3d0cc745ef293759ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aglasspool</media:title>
		</media:content>

		<media:content url="http://aglasspool.files.wordpress.com/2010/11/auschwitzpool-front.jpg" medium="image">
			<media:title type="html">AuschwitzPool front</media:title>
		</media:content>

		<media:content url="http://aglasspool.files.wordpress.com/2010/11/poolsign.jpg" medium="image">
			<media:title type="html">poolsign</media:title>
		</media:content>
	</item>
		<item>
		<title>Vim + Autocompletion</title>
		<link>http://aglasspool.wordpress.com/2010/04/19/vim-autocompletion/</link>
		<comments>http://aglasspool.wordpress.com/2010/04/19/vim-autocompletion/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 19:14:59 +0000</pubDate>
		<dc:creator>aglasspool</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aglasspool.wordpress.com/?p=187</guid>
		<description><![CDATA[The following pasted into your vimrc file will auto-complete on pressing tab. It will offer you suggestions based on your current text first, then on dictionary entries. I also had to enter this in my buffer: :set complete-=k complete+=k put this in vimrc: &#8220;Use TAB to complete when typing words, else inserts TABs as usual. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=187&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The following pasted into your vimrc file will auto-complete on pressing tab.<br />
It will offer you suggestions based on your current text first, then on dictionary entries.<br />
I also had to enter this in my buffer:</p>
<pre>:set complete-=k complete+=k

put this in vimrc:
</pre>
<p>&#8220;Use TAB to complete when typing words, else inserts TABs as usual.<br />
&#8220;&#8221;Uses dictionary and source files to find matching words to complete.</p>
<p>&#8220;See help completion for source,<br />
&#8220;Note: usual completion is on &lt;C-n&gt; but more trouble to press all the time.<br />
&#8220;Never type the same word twice and maybe learn a new spellings!<br />
&#8220;&#8221;Use the Linux dictionary when spelling is in doubt.<br />
&#8220;Window users can copy the file to their machine.<br />
function! Tab_Or_Complete()<br />
if col(&#8216;.&#8217;)&gt;1 &amp;&amp; strpart( getline(&#8216;.&#8217;), col(&#8216;.&#8217;)-2, 3 ) =~ &#8216;^\w&#8217;<br />
return &#8220;\&lt;C-N&gt;&#8221;<br />
else<br />
return &#8220;\&lt;Tab&gt;&#8221;<br />
endif<br />
endfunction<br />
:inoremap &lt;Tab&gt; &lt;C-R&gt;=Tab_Or_Complete()&lt;CR&gt;<br />
set dictionary+=/usr/share/dict/words</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aglasspool.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aglasspool.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aglasspool.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aglasspool.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aglasspool.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aglasspool.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aglasspool.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aglasspool.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aglasspool.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aglasspool.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aglasspool.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aglasspool.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aglasspool.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aglasspool.wordpress.com/187/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=187&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aglasspool.wordpress.com/2010/04/19/vim-autocompletion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db9cd94b67668e3d0cc745ef293759ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aglasspool</media:title>
		</media:content>
	</item>
		<item>
		<title>Arduino + Electrisave/Cent-a-meter</title>
		<link>http://aglasspool.wordpress.com/2010/03/29/arduino-electrisavecent-a-meter/</link>
		<comments>http://aglasspool.wordpress.com/2010/03/29/arduino-electrisavecent-a-meter/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 17:00:27 +0000</pubDate>
		<dc:creator>aglasspool</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aglasspool.wordpress.com/?p=150</guid>
		<description><![CDATA[Trying to get Arduino to talk to an Electrisave energy consumption meter. With an AC clamp, it is possible to measure the current traveling through a wire without physically touching it. Basically it is a simple transformer where the wire of interest acts as the primary coil and the AC clamp is the secondary coil. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=150&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Trying to get Arduino to talk to an Electrisave energy consumption meter.</p>
<p><img src="http://www.picobay.com/projects/uploaded_images/ac_clamp-770916.jpg" alt="" /></p>
<p>With an AC clamp, it is possible to measure the current traveling through a wire without physically touching it. Basically it is a simple transformer where the wire of interest acts as the primary coil and the AC clamp is the secondary coil. Most AC clamps are integrated into a multi-meter. It outputs 10mV per ampere and is intended to be connected to a multi-meter. All you do is multiply the voltage reading by 100 to get the current in the wire. This one is made by Steren, model MUL-285.</p>
<p>Here is a sample of the readings:</p>
<p><!--   		BODY,DIV,TABLE,THEAD,TBODY,TFOOT,TR,TH,TD,P { font-family:"Liberation Sans"; font-size:x-small } --></p>
<table border="0" cellspacing="0" rules="NONE">
<col width="86"></col>
<tbody>
<tr>
<td width="86" height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">31</td>
</tr>
<tr>
<td height="17" align="RIGHT">29</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">3</td>
</tr>
<tr>
<td height="17" align="RIGHT">34</td>
</tr>
<tr>
<td height="17" align="RIGHT">21</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">13</td>
</tr>
<tr>
<td height="17" align="RIGHT">42</td>
</tr>
<tr>
<td height="17" align="RIGHT">1</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">23</td>
</tr>
<tr>
<td height="17" align="RIGHT">37</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">34</td>
</tr>
<tr>
<td height="17" align="RIGHT">28</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">4</td>
</tr>
<tr>
<td height="17" align="RIGHT">34</td>
</tr>
<tr>
<td height="17" align="RIGHT">20</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">0</td>
</tr>
<tr>
<td height="17" align="RIGHT">1</td>
</tr>
</tbody>
</table>
<p>First question: Are these mv? Is it pumping out 10mv per ampere?</p>
<p>If so, all we need to do is times these by 100 to get the current.</p>
<p>But they are not consistent:</p>
<p>The readings come in groups of two or three positive integers surrounded by zeros. If we sum these groups of positive values we can see a pattern; the groups of integers which are preceded by four zeros are consistently higher than those preceded by only three zeros.</p>
<p>Okay, here is the code to convert the raw data into approximate MW consumption, and then post it to my <a title="http://www.sinatrarb.com/" href="http://www.sinatrarb.com">Sinatra app</a> hosted by <a title="Heroku" href="http://heroku.com">heroku.com</a>:</p>
<p><a href="http://gist.github.com/547873">http://gist.github.com/547873</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aglasspool.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aglasspool.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aglasspool.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aglasspool.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aglasspool.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aglasspool.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aglasspool.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aglasspool.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aglasspool.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aglasspool.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aglasspool.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aglasspool.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aglasspool.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aglasspool.wordpress.com/150/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=150&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aglasspool.wordpress.com/2010/03/29/arduino-electrisavecent-a-meter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db9cd94b67668e3d0cc745ef293759ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aglasspool</media:title>
		</media:content>

		<media:content url="http://www.picobay.com/projects/uploaded_images/ac_clamp-770916.jpg" medium="image" />
	</item>
		<item>
		<title>Arduino + Heatmiser via RS485</title>
		<link>http://aglasspool.wordpress.com/2010/03/23/arduino-heatmiser-via-rs485/</link>
		<comments>http://aglasspool.wordpress.com/2010/03/23/arduino-heatmiser-via-rs485/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 14:16:45 +0000</pubDate>
		<dc:creator>aglasspool</dc:creator>
				<category><![CDATA[Arduino]]></category>

		<guid isPermaLink="false">http://aglasspool.wordpress.com/?p=102</guid>
		<description><![CDATA[I am trying to get my Arduino to talk to some Heatmiser Thermostats via rs485 and the Heatmiser Protocol. I have got as far as purchasing a MAX485 rs485&#62;rs232 converter and wiring it up as follows: N.B.  The Heatmiser Thermostat is powered by an external 12v DC power source. It comes with a blue cable [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=102&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://aglasspool.files.wordpress.com/2010/03/imgp1962.jpg"><img class="aligncenter size-medium wp-image-136" title="IMGP1962" src="http://aglasspool.files.wordpress.com/2010/03/imgp1962.jpg?w=300&#038;h=225" alt="" width="300" height="225" /></a></p>
<p>I am trying to get my Arduino to talk to some Heatmiser Thermostats via rs485 and the <a href="http://www.jmwhooper.f2s.com/protocol_1_issue1.pdf">Heatmiser Protocol</a>.</p>
<p>I have got as far as purchasing a MAX485 rs485&gt;rs232 converter and wiring it up as follows:</p>
<p><a href="http://aglasspool.files.wordpress.com/2010/03/diagram1rev3.jpeg"><img class="aligncenter size-medium wp-image-129" title="Diagram1Rev3" src="http://aglasspool.files.wordpress.com/2010/03/diagram1rev3.jpeg?w=300&#038;h=168" alt="" width="300" height="168" /></a></p>
<p style="text-align:center;">N.B.  The Heatmiser Thermostat is powered by an external 12v DC power source.</p>
<p>It comes with a blue cable and a yellow cable; these are the two data comms cables that we wire into the MAX485&#8242;s A &amp; B pins.</p>
<p style="text-align:center;">
<p style="text-align:center;"><a href="http://aglasspool.files.wordpress.com/2010/03/max485pins.png"><img class="size-medium wp-image-105 aligncenter" title="max485pins" src="http://aglasspool.files.wordpress.com/2010/03/max485pins.png?w=300&#038;h=89" alt="" width="300" height="89" /></a></p>
<p>The MAX485 has 8 pins:</p>
<ol>
<li>RO &#8211; Receiver out &#8211; Connected to Arduino Serial RX pin 0</li>
<li>RE &#8211; Receiver enable (enabled when this pin is LOW) &#8211; Connected to Arduino Pin 7</li>
<li>DE &#8211; Driver enable (enabled when this pin is HIGH) &#8211; Connected to Arduino Pin 7</li>
<li>DI &#8211; Driver in (the transmitter pin) &#8211; Connected to Arduino Serial TX Pin 1</li>
<li>GND &#8211; Connect to Arduino GND pin</li>
<li>A &#8211; Connect to Yellow wire of the Thermostat</li>
<li>B &#8211; Connect to Blue Wire of the Thermostat</li>
<li>Vcc &#8211; Power, Connect to Arduino 5v pin</li>
</ol>
<p>Now for the sketch:</p>
<pre class="brush: plain;">
// Arduino's Pin 7 Connected to Pins 2 &amp; 3 (RE/DE) on MAX485
int switchPin = 7;
// Our Serial RX pin connected to RO- Receiver Output Pin on Max485- we receive on
#define rxPin 0
// Our Serial TX pin connected to DI- Driver Output Pin on Max485 - we send on
#define txPin 1

// here we insert the paramaters of our read request
byte req[]= {0x02, 0x04, 0x00, 0x06};

// for incoming serial data
byte incomingByte = 0;

void setup() {

  // opens serial port, sets data rate to 4800 bps(Heatmiser baud rate)
  Serial.begin(4800);
  //sets our Arduino's serial TX pin to send data
  pinMode(txPin, OUTPUT);
  //sets our Arduino's serial RX pin to receive data
  pinMode(rxPin, INPUT);

  // set the MAX485 to 'Driver Output Enable' by switching its pin 3 to HIGH
  digitalWrite(switchPin, HIGH);
  // send command string that requests the reading from the Heatmiser Thermostat
  Serial.write(req, 4);

  // set the MAX485 to 'Receiver Output Enable' by switching its pin 2 to LOW
  digitalWrite(switchPin, LOW);

}

void loop() {
	// kick in only when we receive data:
	if (Serial.available() &gt; 0) {
		// read the incoming byte:
		incomingByte = Serial.read();

		// say what we got:
		Serial.println(incomingByte);
	}
}
</pre>
<p>According to the <a href="http://www.jmwhooper.f2s.com/protocol_1_issue1.pdf">Heatmiser Protocol</a> I need to initiate communications by sending a command string from the Master (Arduino) to the slave (Thermostat) before it will respond with the data I want to read from it.</p>
<p>Now all I need to do is figure out how to formulate this command string?</p>
<p>The <a href="http://www.jmwhooper.f2s.com/protocol_1_issue1.pdf">Heatmiser Protocol</a> instructions show an example for sending a command string as follows:</p>
<p><strong>To query no.2 thermostat:</strong></p>
<p><strong>Send(Hex): 02H, 04H, 00H, 06H</strong></p>
<p>The first unit(02H) is the address of the thermostat, the second(04H) is the request code asking the thermostat for its stats. I don&#8217;t know what the third one is so we will leave it as it is in the example. Finally, the last unit(06H) is the checksum of all the preceding units.</p>
<p>I have set my thermostat to use the Comms address 02 as in the example and am going to use the following code to send the command string listed in the example<strong>(</strong><strong>02H, 04H, 00H, 06H)</strong> from the arduino to the thermostat:</p>
<p><strong>byte req[]= {0&#215;02, 0&#215;04, 0&#215;00, 0&#215;06};</strong></p>
<p><strong>Serial.write(req, 4);</strong></p>
<p>Alas, there is no reply from the thermostat. All i see on the serial monitor is this: ﻿﻿[][][][]</p>
<p>Am I sending the correct values in the command string request?</p>
<p>The Heatmiser Thermostats are the vesion 2 protocol but the <a href="http://www.jmwhooper.f2s.com/protocol_1_issue1.pdf">documentation</a> for version 2 is sparse, and very different from the documentation for the version 3 protocol&#8230;</p>
<p>There is an example <a href="http://www.comfortforums.com/view_topic.php?id=918&amp;forum_id=47&amp;jump_to=7056">here</a> on how to poll a version 3 thermostat for its readings:</p>
<p><strong>The command to read back all the data from a PRT-N V3 set to address 01 is:- 01 0A 81 00 00 00 FF FF 2C 09</strong></p>
<p>This is very different from the format specified in the example for the V. 2 protocol: <strong>02H 04H 00H 06H</strong></p>
<p>Confusing..</p>
<p>Am I sending these bytes correctly?</p>
<p>I have contacted Heatmiser to see if they could offer me any more documentation on the heatmiser protocol, but they haven&#8217;t been very helpful.</p>
<p>Damian suggested that I get my hands on an oscilloscope, and that you really need one of these in order to be able to debug RS485 comms. So I am looking out on ebay to see if I can pick one up cheapish..</p>
<p><strong><span style="text-decoration:underline;">Update 13th July 2010:</span></strong> I have decided to try and look for an alternative to Heatmiser. They have been unhelpful and their protocol is clearly not open. If anyone knows of a programmable thermostat that can be made to talk to an Arduino please let me know..</p>
<div><strong><br />
</strong></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aglasspool.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aglasspool.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aglasspool.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aglasspool.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aglasspool.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aglasspool.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aglasspool.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aglasspool.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aglasspool.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aglasspool.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aglasspool.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aglasspool.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aglasspool.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aglasspool.wordpress.com/102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=102&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aglasspool.wordpress.com/2010/03/23/arduino-heatmiser-via-rs485/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db9cd94b67668e3d0cc745ef293759ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aglasspool</media:title>
		</media:content>

		<media:content url="http://aglasspool.files.wordpress.com/2010/03/imgp1962.jpg?w=300" medium="image">
			<media:title type="html">IMGP1962</media:title>
		</media:content>

		<media:content url="http://aglasspool.files.wordpress.com/2010/03/diagram1rev3.jpeg?w=300" medium="image">
			<media:title type="html">Diagram1Rev3</media:title>
		</media:content>

		<media:content url="http://aglasspool.files.wordpress.com/2010/03/max485pins.png?w=300" medium="image">
			<media:title type="html">max485pins</media:title>
		</media:content>
	</item>
		<item>
		<title>Pulseaudio Problems</title>
		<link>http://aglasspool.wordpress.com/2010/02/26/pulseaudio-problems/</link>
		<comments>http://aglasspool.wordpress.com/2010/02/26/pulseaudio-problems/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 17:04:51 +0000</pubDate>
		<dc:creator>aglasspool</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aglasspool.wordpress.com/?p=100</guid>
		<description><![CDATA[The first Steps of the following page got my audio working again after having upgraded to Karmic: https://wiki.ubuntu.com/PulseAudio Along with having added my username to the group. Then open up: sudo vim /etc/default/pulseaudio and change the first option to 1 so that it runs as a system process<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=100&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The first Steps of the following page got my audio working again after having upgraded to Karmic:</p>
<p>https://wiki.ubuntu.com/PulseAudio</p>
<p>Along with having added my username to the group.</p>
<p>Then open up:</p>
<p>sudo vim /etc/default/pulseaudio</p>
<p>and change the first option to 1 so that it runs as a system process</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aglasspool.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aglasspool.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aglasspool.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aglasspool.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aglasspool.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aglasspool.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aglasspool.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aglasspool.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aglasspool.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aglasspool.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aglasspool.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aglasspool.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aglasspool.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aglasspool.wordpress.com/100/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=100&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aglasspool.wordpress.com/2010/02/26/pulseaudio-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db9cd94b67668e3d0cc745ef293759ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aglasspool</media:title>
		</media:content>
	</item>
		<item>
		<title>Install wmii on Ubuntu Jaunty 9.04</title>
		<link>http://aglasspool.wordpress.com/2010/01/26/install-wmii-on-ubuntu-jaunty-9-04/</link>
		<comments>http://aglasspool.wordpress.com/2010/01/26/install-wmii-on-ubuntu-jaunty-9-04/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 14:03:59 +0000</pubDate>
		<dc:creator>aglasspool</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aglasspool.wordpress.com/?p=94</guid>
		<description><![CDATA[1. Add the latest sources for the wmii development package from here: https://launchpad.net/~maglione-k/+archive/ppa sudo apt-get update sudo apt-get install wmii 2. install rumai: http://snk.tuxfamily.org/lib/rumai/ 3. install sunaku&#8217;s wmiirc: http://github.com/sunaku/wmiirc 4. create file &#8220;.xinitrc&#8221; in home folder: #!/usr/bin/env bash terminator &#38; exec wmii 5. logout, start bare terminal with Ctrl+Alt+F1, then kill gdm and startx with: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=94&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. Add the latest sources for the wmii development package from here:</p>
<p><a href="https://launchpad.net/~maglione-k/+archive/ppa">https://launchpad.net/~maglione-k/+archive/ppa</a></p>
<p>sudo apt-get update</p>
<p>sudo apt-get install wmii</p>
<p>2. install rumai:</p>
<p><a href="http://snk.tuxfamily.org/lib/rumai/">http://snk.tuxfamily.org/lib/rumai/</a></p>
<p>3. install sunaku&#8217;s wmiirc:</p>
<p><a href="http://github.com/sunaku/wmiirc">http://github.com/sunaku/wmiirc</a></p>
<div id="_mcePaste">4. create file &#8220;.xinitrc&#8221; in home folder:</div>
<div>#!/usr/bin/env bash</div>
<div id="_mcePaste">terminator &amp;</div>
<div id="_mcePaste">exec wmii</div>
<div>5. logout, start bare terminal with Ctrl+Alt+F1, then kill gdm and startx with:</div>
<div>sudo /etc/init.d/gdm stop</div>
<div>sudo startx</div>
<div></div>
<div>6. You might need to change the permissions of users that are allowed to start x sessions with:</div>
<p>sudo dpkg-reconfigure x11-common</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aglasspool.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aglasspool.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aglasspool.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aglasspool.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aglasspool.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aglasspool.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aglasspool.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aglasspool.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aglasspool.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aglasspool.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aglasspool.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aglasspool.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aglasspool.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aglasspool.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=94&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aglasspool.wordpress.com/2010/01/26/install-wmii-on-ubuntu-jaunty-9-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db9cd94b67668e3d0cc745ef293759ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aglasspool</media:title>
		</media:content>
	</item>
		<item>
		<title>Configuring Wpa</title>
		<link>http://aglasspool.wordpress.com/2010/01/20/configuring-wpa/</link>
		<comments>http://aglasspool.wordpress.com/2010/01/20/configuring-wpa/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 22:32:27 +0000</pubDate>
		<dc:creator>aglasspool</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aglasspool.wordpress.com/?p=91</guid>
		<description><![CDATA[Using Wicd-curses Download the latest deb package from: http://downloads.wicd.net/pkgs/latest/ or with the command line: create the file: #/etc/wpa_supplicant.conf ctrl_interface=/var/run/wpa_supplicant network={ ssid="MyAP" #psk="secretpassword" psk=27af0232e2382d3e01a14110642d974277d64eb6585fbcd1e5c2bed7b5b2887f } then in this order: sudo wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf sudo dhclient wlan0<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=91&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Using Wicd-curses<br />
Download the latest deb package from:</p>
<p>http://downloads.wicd.net/pkgs/latest/</p>
<p>or with the command line:<br />
create the file:<br />
<code><br />
#/etc/wpa_supplicant.conf<br />
ctrl_interface=/var/run/wpa_supplicant<br />
network={<br />
        ssid="MyAP"<br />
             #psk="secretpassword"<br />
              psk=27af0232e2382d3e01a14110642d974277d64eb6585fbcd1e5c2bed7b5b2887f<br />
       }<br />
</code><br />
then in this order:<br />
sudo wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf<br />
sudo dhclient wlan0</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aglasspool.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aglasspool.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aglasspool.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aglasspool.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aglasspool.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aglasspool.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aglasspool.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aglasspool.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aglasspool.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aglasspool.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aglasspool.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aglasspool.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aglasspool.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aglasspool.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=91&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aglasspool.wordpress.com/2010/01/20/configuring-wpa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db9cd94b67668e3d0cc745ef293759ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aglasspool</media:title>
		</media:content>
	</item>
		<item>
		<title>Orange sms script</title>
		<link>http://aglasspool.wordpress.com/2010/01/14/orange-sms-script-2/</link>
		<comments>http://aglasspool.wordpress.com/2010/01/14/orange-sms-script-2/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 12:43:09 +0000</pubDate>
		<dc:creator>aglasspool</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aglasspool.wordpress.com/?p=88</guid>
		<description><![CDATA[This ruby script uses the mechanize gem to log in to Orange.co.uk&#8217;s website and send an sms message. You will need ruby and the mechanize gem installed on your machine, and also an orange mobile phone account with associated registered login details for www.orange.co.uk. To send a message using the script you will need to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=88&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This ruby script uses the mechanize gem to log in to Orange.co.uk&#8217;s website and send an sms message.</p>
<p>You will need ruby and the mechanize gem installed on your machine, and also an orange mobile phone account with associated registered login details for www.orange.co.uk.</p>
<p>To send a message using the script you will need to do the following from a terminal:</p>
<p><strong>ruby path/to/orange.rb 07886999999 This is a test message</strong></p>
<p>Where 07886999999 is the mobile number we are sending a message to, and whatever comes after that is the body of the message we are sending.</p>
<p><code>#orange.rb<br />
#!/usr/bin/ruby<br />
require 'rubygems'<br />
require 'mechanize'</p>
<p>username = '07967123456'<br />
password = 'mypassword'<br />
number = ARGV.shift<br />
message = ARGV * " "</p>
<p>if message.length &gt; 120 || message.length &lt; 1<br />
$stderr.puts "Message too long or too short.."<br />
exit 1<br />
end</p>
<p>agent = WWW::Mechanize.new<br />
agent.keep_alive = false<br />
page = agent.get("https://services.orange.co.uk/sms/send")</p>
<p>form = agent.page.forms.last<br />
form.userid = username<br />
form.password = password<br />
b = form.buttons.last<br />
b.x = "12"<br />
b.y = "20"<br />
form.submit</p>
<p>puts agent.page.uri<br />
#https://services.orange.co.uk/sam/templates/web/sign_in.htm<br />
form = agent.page.forms.last<br />
form.txtMSISDN = username<br />
form.txtPassword = password<br />
b = form.buttons.last<br />
b.x = "33"<br />
b.y = "44"<br />
form.submit</p>
<p>puts agent.page.uri<br />
#https://services.orange.co.uk/wps/portal/kcxml/04_Sj9SPykssy0xPLmnMz0vM0q_wyu_PZnmvSfDUbACQIYPZ<br />
form = agent.page.forms.last<br />
form.userid = username<br />
form.password = password<br />
b = form.buttons.last<br />
b.x = "12"<br />
b.y = "20"<br />
form.submit</p>
<p>puts agent.page.uri</p>
<p>form = agent.page.forms.last<br />
form.sendSmsMessageToNumber = number<br />
form.sendSmsMessage = message<br />
b = form.buttons.last<br />
b.x = "12"<br />
b.y = "20"<br />
form.submit</p>
<p>puts agent.page.uri</p>
<p>form = agent.page.forms.last<br />
form.request = "send"<br />
b = form.buttons.last<br />
b.x = "27"<br />
b.y = "16"<br />
form.submit</p>
<p>puts agent.page.uri<br />
puts "message sent successfully"<br />
</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aglasspool.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aglasspool.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aglasspool.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aglasspool.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aglasspool.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aglasspool.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aglasspool.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aglasspool.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aglasspool.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aglasspool.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aglasspool.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aglasspool.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aglasspool.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aglasspool.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=88&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aglasspool.wordpress.com/2010/01/14/orange-sms-script-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db9cd94b67668e3d0cc745ef293759ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aglasspool</media:title>
		</media:content>
	</item>
		<item>
		<title>Pyrit on Ubuntu Jaunty</title>
		<link>http://aglasspool.wordpress.com/2009/12/06/pyrit-on-ubuntu-jaunty/</link>
		<comments>http://aglasspool.wordpress.com/2009/12/06/pyrit-on-ubuntu-jaunty/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 15:43:53 +0000</pubDate>
		<dc:creator>aglasspool</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aglasspool.wordpress.com/?p=64</guid>
		<description><![CDATA[Enable proprietary Nvidia drivers (version 180) Add the following under Section &#8220;Device&#8221; BusID       &#8220;PCI:1:0:0&#8243; add this to /etc/apt/sources.list deb http://ppa.launchpad.net/festor/hack-tools/ubuntu/ jaunty main add public key: sudo apt-key adv &#8211;recv-keys &#8211;keyserver keyserver.ubuntu.com 619BA177 So I went here &#62;&#62; nvidia.com/object/cuda_get.html &#60;&#60; grabbed the 32bit version for ubuntu 8.10. Logged out of x, then ran root@bt:/home# sh cudadriver_2.2_linux_32_185.18.08-beta.run [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=64&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Enable proprietary Nvidia drivers (version 180)</p>
<p>Add the following under Section &#8220;Device&#8221;<br />
BusID       &#8220;PCI:1:0:0&#8243;</p>
<p>add this to /etc/apt/sources.list</p>
<p>deb http://ppa.launchpad.net/festor/hack-tools/ubuntu/ jaunty main</p>
<p>add public key:</p>
<p>sudo apt-key adv &#8211;recv-keys &#8211;keyserver keyserver.ubuntu.com 619BA177</p>
<p>So I went here &gt;&gt; nvidia.com/object/cuda_get.html &lt;&lt; grabbed the 32bit version for ubuntu 8.10. Logged out of x, then ran</p>
<p>root@bt:/home# sh cudadriver_2.2_linux_32_185.18.08-beta.run</p>
<p><span style="text-decoration:underline;"><strong>WPA aircrack-ng resume problem solved:</strong></span></p>
<p>$&gt;john &#8211;wordlist=wpalist2.txt &#8211;rules &#8211;stdout | aircrack-ng -b 00:24:B2:73:1C:14 -w &#8211; augusto_house.cap</p>
<p>$&gt;john &#8211;resume | aircrack-ng -b 00:24:B2:73:1C:14 -w &#8211; augusto_house.cap</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aglasspool.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aglasspool.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aglasspool.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aglasspool.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aglasspool.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aglasspool.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aglasspool.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aglasspool.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aglasspool.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aglasspool.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aglasspool.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aglasspool.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aglasspool.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aglasspool.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=64&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aglasspool.wordpress.com/2009/12/06/pyrit-on-ubuntu-jaunty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db9cd94b67668e3d0cc745ef293759ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aglasspool</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Gmail with mutt, the minimal way (IMAP update)</title>
		<link>http://aglasspool.wordpress.com/2009/10/18/using-gmail-with-mutt-the-minimal-way-imap-update/</link>
		<comments>http://aglasspool.wordpress.com/2009/10/18/using-gmail-with-mutt-the-minimal-way-imap-update/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 20:58:32 +0000</pubDate>
		<dc:creator>aglasspool</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aglasspool.wordpress.com/?p=52</guid>
		<description><![CDATA[As Gmail has IMAP access, it is fairly trivial to get it working with mutt. First, if you’re on Ubuntu/Debian, run sudo apt-get install openssl mutt to get mutt if you don’t already have it. Then, just put the following lines into your ~/.muttrc: set imap_user = "username@gmail.com" set imap_pass = "password" set smtp_url = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=52&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As Gmail has IMAP access, it is fairly trivial to get it working with mutt. First, if you’re on Ubuntu/Debian, run <code>sudo apt-get install openssl mutt</code> to get mutt if you don’t already have it. Then, just put the following lines into your <tt>~/.muttrc</tt>:</p>
<pre>set imap_user = "username@gmail.com"
set imap_pass = "password"

set smtp_url = "smtp://username@smtp.gmail.com:587/"
set smtp_pass = "password"
set from = "username@gmail.com"
set realname = "Your Real Name"

set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set postponed="+[Gmail]/Drafts"

set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.mutt/certificates

set move = no</pre>
<p>Make sure your <tt>~/.muttrc</tt> isn’t world-readable; it contains your password. (Alternatively, you can leave them out and mutt will prompt you for the password each time.) Also, if you copy-paste from the above, make sure that you have only “normal” quotes, not “smart quotes” which WordPress might have inserted here into this post.</p>
<p>[Other things I have:</p>
<pre>set sort = 'threads'
set sort_aux = 'last-date-received'
set imap_check_subscribed

ignore "Authentication-Results:"
ignore "DomainKey-Signature:"
ignore "DKIM-Signature:"
hdr_order Date From To Cc
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aglasspool.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aglasspool.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aglasspool.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aglasspool.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aglasspool.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aglasspool.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aglasspool.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aglasspool.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aglasspool.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aglasspool.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aglasspool.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aglasspool.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aglasspool.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aglasspool.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aglasspool.wordpress.com&amp;blog=8636963&amp;post=52&amp;subd=aglasspool&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aglasspool.wordpress.com/2009/10/18/using-gmail-with-mutt-the-minimal-way-imap-update/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db9cd94b67668e3d0cc745ef293759ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aglasspool</media:title>
		</media:content>
	</item>
	</channel>
</rss>
