<?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>Neil Cowburn — Freelance iPhone &#38; iPad Developer &#187; Mac</title>
	<atom:link href="http://neilcowburn.com/category/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://neilcowburn.com</link>
	<description></description>
	<lastBuildDate>Fri, 29 Jan 2010 09:25:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Got my CurrentCost cable!</title>
		<link>http://www.neilcowburn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fneilcowburn.com%2F2008%2F12%2F02%2Fgot-my-currentcost-cable%2F&amp;seed_title=Got+my+CurrentCost+cable%21&amp;utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss&amp;utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=got-my-currentcost-cable</link>
		<comments>http://www.neilcowburn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fneilcowburn.com%2F2008%2F12%2F02%2Fgot-my-currentcost-cable%2F&amp;seed_title=Got+my+CurrentCost+cable%21#comments</comments>
		<pubDate>Tue, 02 Dec 2008 14:11:18 +0000</pubDate>
		<dc:creator>Neil</dc:creator>
				<category><![CDATA[Eco]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.neilcowburn.com/blog/?p=111</guid>
		<description><![CDATA[I finally got the data cable for my CurrentCost monitor today. I immediately hooked it up to my Mac and set about pulling the data in via Terminal. How cool is that?! Next up: designing and implementing a couple of project ideas I&#8217;ve been mulling for the past 6 months. Should be interesting. For the [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got the data cable for my <a href="http://www.currentcost.com/">CurrentCost</a> monitor today. I immediately hooked it up to my Mac and set about pulling the data in via Terminal.
<p align="center"><a href="http://www.flickr.com/photos/neilc/3077443000/" title="CurrentCost Monitor by Neil Cowburn, on Flickr"><img src="http://farm4.static.flickr.com/3012/3077443000_1d52968920.jpg" width="500" height="357" alt="CurrentCost Monitor" /></a></p>
<p>How cool is that?! Next up: designing and implementing a couple of project ideas I&#8217;ve been mulling for the past 6 months. Should be interesting.</p>
<p>For the intrigued geek, this is how I got to see the data:</p>
<p>Using a USB-Serial converter dongle, I connected the cable to the Mac and opened terminal. Next, I needed to grab the name of the USB device so I could open it. I did that by using the following command:
<pre>ls -l /dev | grep cu.usbserial | grep -v grep</pre>
<p>When I had the name, I could then use the <a href="http://www.manpagez.com/man/1/screen/">screen</a> command to open the serial port at 2400 baud:</p>
<pre>screen /dev/cu.usbserial-0000201A 2400</pre>
<p>The baud rate will depend on the actual version of monitor you have. Newer versions operate at 9600 baud. To terminate the screen command, hit <b>Ctrl-a, Ctrl-\, y</b>.</p>
<p>I ended up putting all this together as a Bash script (below) so that I can quickly call it up at will.</p>
<pre>#!/bin/bash

export cmd=`ls -l /dev | grep cu.usbserial | grep -v grep | awk {'print "/dev/"$10'}`
screen $cmd 2400
clear</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.neilcowburn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fneilcowburn.com%2F2008%2F12%2F02%2Fgot-my-currentcost-cable%2F&amp;seed_title=Got+my+CurrentCost+cable%21/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running emacs under Mac OS X 10.5 after upgrading from 10.4</title>
		<link>http://www.neilcowburn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fneilcowburn.com%2F2007%2F11%2F13%2Frunning-emacs-under-mac-os-x-105-after-upgrading-from-104%2F&amp;seed_title=Running+emacs+under+Mac+OS+X+10.5+after+upgrading+from+10.4&amp;utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss&amp;utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=running-emacs-under-mac-os-x-105-after-upgrading-from-104</link>
		<comments>http://www.neilcowburn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fneilcowburn.com%2F2007%2F11%2F13%2Frunning-emacs-under-mac-os-x-105-after-upgrading-from-104%2F&amp;seed_title=Running+emacs+under+Mac+OS+X+10.5+after+upgrading+from+10.4#comments</comments>
		<pubDate>Tue, 13 Nov 2007 20:30:42 +0000</pubDate>
		<dc:creator>Neil</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://74.54.160.202/blog/?p=39</guid>
		<description><![CDATA[I&#8217;ve just tried to user Emacs under Leopard for the first time since I upgraded my Tiger installation. I did the usual: opened up Terminal, typed &#8216;emacs&#8217; and hit enter only to be presented with the following obscure error msg: Fatal malloc_jumpstart() error If you get this error, check the version of emacs you are [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just tried to user Emacs under Leopard for the first time since I upgraded my Tiger installation. I did the usual: opened up Terminal, typed &#8216;emacs&#8217; and hit enter only to be presented with the following obscure error msg:</p>
<p style="display: table; border: 1px solid #4d4d4d; padding: 10px; background-color: #e6e6e6;">Fatal malloc_jumpstart() error</p>
<p>If you get this error, check the version of emacs you are using by issuing the following command:</p>
<p style="display: table; border: 1px solid #4d4d4d; padding: 10px; background-color: #e6e6e6;">emacs &#8211;version</p>
<p>On my machine, this was <b>21.2.1</b>. The version of emacs that ships with Leopard is <b>22.1.1</b>. To fix this error and make sure the Leopard is using the correct version, you first have to blast the emacs-i386 folder under /usr/bin. My advise is that you back it up:</p>
<p style="display: table; border: 1px solid #4d4d4d; padding: 10px; background-color: #e6e6e6;">sudo mv /usr/bin/emacs-i386 /usr/bin/emacs-i386.bak</p>
<p>Next, you have to rebuild the emacs-i386 by issuing the following command:</p>
<p style="display: table; border: 1px solid #4d4d4d; padding: 10px; background-color: #e6e6e6;">sudo /usr/libexec/dumpemacs -d</p>
<p>You will see a lot of text scroll back fairly quickly. After the command has completed, check the version of emacs again. This time around it should be 22.1.1 and you&#8217;re good to go!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neilcowburn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fneilcowburn.com%2F2007%2F11%2F13%2Frunning-emacs-under-mac-os-x-105-after-upgrading-from-104%2F&amp;seed_title=Running+emacs+under+Mac+OS+X+10.5+after+upgrading+from+10.4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
