<?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>henaredegan.com &#187; Geekery</title>
	<atom:link href="http://www.henaredegan.com/blog/category/geekery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.henaredegan.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 23 Nov 2011 02:49:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>What I&#8217;ve been up to around the web</title>
		<link>http://www.henaredegan.com/blog/2011/09/18/what-ive-been-up-to-around-the-web/</link>
		<comments>http://www.henaredegan.com/blog/2011/09/18/what-ive-been-up-to-around-the-web/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 01:51:25 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[OpenAustralia]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[planningalerts]]></category>
		<category><![CDATA[posts]]></category>
		<category><![CDATA[scraperwiki]]></category>
		<category><![CDATA[scraping]]></category>
		<category><![CDATA[talks]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=431</guid>
		<description><![CDATA[It&#8217;s been too long since I&#8217;ve written a post here but I blame it on writing posts for everyone else! I wrote a little post about creating a PlanningAlerts scraper for the Northern Territory for my mum. We ran an OpenAustralia hackfest last weekend and I wrote a blog post that was cross posted on [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been too long since I&#8217;ve written a post here but I blame it on writing posts for everyone else!</p>
<p>I wrote a little post about <a href="http://www.openaustraliafoundation.org.au/2011/09/09/planningalerts-for-my-mum-and-the-northern-territory/">creating a PlanningAlerts scraper for the Northern Territory for my mum</a>.</p>
<p>We ran an OpenAustralia <a href="http://www.openaustraliafoundation.org.au/2011/08/30/openaustralia-hackfest-what-are-you-up-to-next-weekend-edition/">hackfest last weekend</a> and <a href="http://www.openaustraliafoundation.org.au/2011/09/15/little-openaustralia-hackfest-big-results/">I wrote a blog post</a> that was <a href="http://google-au.blogspot.com/2011/09/little-openaustralia-hackfest-big.html">cross posted on the Official Google Australia Blog</a>.</p>
<p>I wrote a <a href="http://blog.scraperwiki.com/2011/09/16/driving-the-digger-down-under/">guest post for ScraperWiki about our hackfest</a>.</p>
<p>And I gave a talk at the hackfest:</p>
<p><object width="500" height="281"><param name="movie" value="http://www.youtube.com/v/XPsJBoYc_MU?version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/XPsJBoYc_MU?version=3" type="application/x-shockwave-flash" width="500" height="281" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>and wrapped up the hackfest:</p>
<p><object width="500" height="281"><param name="movie" value="http://www.youtube.com/v/af2PQhc5fg0?version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/af2PQhc5fg0?version=3" type="application/x-shockwave-flash" width="500" height="281" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>ScraperWiki also featured my ACMA scraper a while back (I must get back to that project):</p>
<p><a href="http://www.henaredegan.com/blog/wp-content/uploads/2011/09/acma_scraper.png"><img class="aligncenter size-large wp-image-433" title="ACMA Scraper featured on ScraperWiki.com" src="http://www.henaredegan.com/blog/wp-content/uploads/2011/09/acma_scraper-497x1024.png" alt="" width="497" height="1024" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2011/09/18/what-ive-been-up-to-around-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating from phpWebSite to WordPress</title>
		<link>http://www.henaredegan.com/blog/2011/07/06/migrating-from-phpwebsite-to-wordpress/</link>
		<comments>http://www.henaredegan.com/blog/2011/07/06/migrating-from-phpwebsite-to-wordpress/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 03:51:57 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[calc]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[libreoffice]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[phpwebsite]]></category>
		<category><![CDATA[phpws]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=423</guid>
		<description><![CDATA[About seven years ago I bet on the wrong horse. I chose phpWebSite as the CMS to run a site for a community group I&#8217;m a part of. Why the wrong horse? Well seven years ago WordPress wasn&#8217;t in the game but I do remember evaluating Drupal and whilst it has a vibrant, active community [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.henaredegan.com/blog/wp-content/uploads/2011/07/wordpress-logo.png"><img src="http://www.henaredegan.com/blog/wp-content/uploads/2011/07/wordpress-logo.png" alt="" title="Wordpress logo" width="150" height="150" class="alignright size-full wp-image-426" /></a>About seven years ago I bet on the wrong horse. I chose <a href="http://phpwebsite.appstate.edu/">phpWebSite</a> as the CMS to run a site for a community group I&#8217;m a part of.</p>
<p>Why the wrong horse? Well seven years ago <a href="http://wordpress.org/">WordPress</a> wasn&#8217;t in the game but I do remember evaluating <a href="http://drupal.org/">Drupal</a> and whilst it has a vibrant, active community the same cannot be said for phpWebSite.</p>
<p>I wanted to give our site a visual refresh, make it easier for people to contribute and to move to a more secure platform than the out of date version of phpWebSite we were running on. The obvious choice was WordPress.</p>
<p>I&#8217;ve looked before for tools to migrate from phpWebSite to WordPress but never found anything so I decided to write a tool myself. As I was getting started writing a tool, the friend I was working on the migration with discovered a <a href="https://wordpress.org/extend/plugins/csv-importer/">CSV importer plugin</a> already written for WordPress so we decided to see how hard it would be to export data from phpWebSite as CSV that this plugin could understand.</p>
<p>As we didn&#8217;t have huge amounts of content it turned out to be much easier to export the Announcement posts as CSV using <a href="http://www.phpmyadmin.net/">phpMyAdmin</a> and manually recreate everything else (just a handful of comments and some image galleries).</p>
<p>The trick with exporting the Announcement posts was to use the <em>CSV for MS Excel</em> option of phpMyAdmin and then manipulate the data using <a href="http://www.libreoffice.org/features/calc/">LibreOffice Calc</a> into the format expected by the CSV Importer plugin.</p>
<p>Since we only had a handful of comments I simply recreated these using the standard WordPress UI and manually set the dates to match phpWebSite. Photos are stored under <code class="codecolorer text geshi"><span class="text">images/&lt;module name&gt;/</span></code> so I just copied the <code class="codecolorer text geshi"><span class="text">images/photoalbum</span></code> directory and uploaded all the images in each gallery using the usual WordPress uploader.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2011/07/06/migrating-from-phpwebsite-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Crank up your online security to eleven in three easy steps</title>
		<link>http://www.henaredegan.com/blog/2011/03/04/crank-up-your-online-security-to-eleven-in-three-easy-steps/</link>
		<comments>http://www.henaredegan.com/blog/2011/03/04/crank-up-your-online-security-to-eleven-in-three-easy-steps/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 02:55:12 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[keepass]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[passwords]]></category>
		<category><![CDATA[pwgen]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=389</guid>
		<description><![CDATA[I&#8217;ve been meaning to write this blog post for a long time and hearing in Jonathan Holmes&#8217; recent article on The Drum that he doesn&#8217;t have a complex password and reuses that password over and over again tipped me over the edge. I hear this time and time again and it doesn&#8217;t need to be [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been meaning to write this blog post for a long time and hearing in <a href="http://www.abc.net.au/profiles/content/s2761689.htm?site=thedrum">Jonathan Holmes&#8217;</a> recent article on The Drum that <a href="http://www.abc.net.au/news/stories/2011/03/03/3153329.htm">he doesn&#8217;t have a complex password and reuses that password over and over again</a> tipped me over the edge. I hear this <strong>time and time again and it doesn&#8217;t need to be this way</strong>.</p>
<p>Here&#8217;s <strong>three simple steps</strong> that will massively increase your online security. It won&#8217;t make you bullet-proof and you should still do all those other things security people have been telling you for years but these are really easy to do, <strong>anyone can do them</strong> and they plug the biggest security hole that people have these days &#8211; insecure and reused passwords.</p>
<h2>Step 1. Create a complex password</h2>
<p><strong>Wait!</strong> Don&#8217;t stop reading because you think it&#8217;s going to be hard to remember &#8211; complex passwords can be <strong>easy to remember</strong>.</p>
<p>A software tool called <a href="http://linux.die.net/man/1/pwgen">pwgen</a> can generate complex passwords that are pronounceable and therefore easier for us humans to remember.</p>
<p>There&#8217;s an <a href="http://8-p.info/pwgen/">online version you can use to generate these</a>. Go off and <strong>generate one now</strong> and use it for your most important online tool, such as your Gmail account.</p>
<h2>Step 2. Start using a password manager</h2>
<p>If you&#8217;re reading this, chances are you have heaps of username and password combinations for all of the online services you use. To manage these <strong>you need to be using a password manager</strong>.</p>
<p>Password managers generate complex passwords for services that you don&#8217;t need to remember. When you open your password file you just enter one master password and it unlocks all of your other varied, complex passwords.</p>
<p>I use <a href="http://keepass.info/">KeePass</a> because it is open source and works on the different platforms I use (Linux and Android). I also use <a href="http://www.getdropbox.com/">Dropbox</a> to ensure it&#8217;s synchronised between all my computers and is always available for download over the Internet.</p>
<p>Go and <strong>download it now</strong> and use the password you generated in the last step as your master password.</p>
<h2>Step 3. Move all of your passwords into your password manager</h2>
<p>This sounds hard but the trick is not to go around laboriously changing all of your passwords up front. Whenever you touch a service (e.g. login to Twitter, upload photos to Flickr, etc.), just go to your settings page and use your password manager to generate a new password. <strong>It&#8217;ll take you 30 seconds</strong>.</p>
<p>Off you go &#8211; <strong>go and change a few now</strong>. You&#8217;ll feel more secure right away.</p>
<h4>Update:</h4>
<p>Jonathan Holmes <a href="https://twitter.com/#!/jonaholmesMW/status/43848965946486784">responds</a>, &#8220;<em>easy! You don&#8217;t understand how freaked out people like me get when confronted by something like KeePass</em>&#8220;. That&#8217;s a fair point and I feel embarrassed I&#8217;ve done the stereotypical geek thing and assumed something easy for me wouldn&#8217;t be difficult for a non-geek.</p>
<p>I&#8217;m off to eat some humble pie :) In the mean time, hopefully these instructions at least inspire some geeks to fix up their own online security and, in finest nerdy tradition, show their friends and family.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2011/03/04/crank-up-your-online-security-to-eleven-in-three-easy-steps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to type special characters in Gnome and Ubuntu</title>
		<link>http://www.henaredegan.com/blog/2010/11/17/how-to-type-special-characters-in-gnome-and-ubuntu/</link>
		<comments>http://www.henaredegan.com/blog/2010/11/17/how-to-type-special-characters-in-gnome-and-ubuntu/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 01:45:33 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[n00b]]></category>
		<category><![CDATA[special characters]]></category>
		<category><![CDATA[symbols]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=370</guid>
		<description><![CDATA[Despite using Gnome for ages, I&#8217;ve never bothered to work out how to type special characters, like ™ or ©. I&#8217;ve normally just opened the Character Map application and copied from there &#8211; obviously this is a bit of a round about process. I finally decided to look it up and it&#8217;s as simple as: [...]]]></description>
			<content:encoded><![CDATA[<p>Despite using <a href="http://www.gnome.org/">Gnome</a> for ages, I&#8217;ve never bothered to work out how to type special characters, like ™ or ©. I&#8217;ve normally just opened the Character Map application and copied from there &#8211; obviously this is a bit of a round about process.</p>
<p>I finally decided to look it up and it&#8217;s as simple as: <strong>Ctrl-Shift and the character code</strong> from Gnome&#8217;s Character Map application.</p>
<p>So to type ™, go to <em>Applications</em> > <em>Accessories</em> > <em>Character Map</em>. Then note the character code:</p>
<p><img src="http://www.henaredegan.com/blog/wp-content/uploads/2010/11/character_map.png" alt="" title="character_map" width="498" height="437" class="aligncenter size-full wp-image-371" /></p>
<p>Hold down <strong>Ctrl</strong> + <strong>Shift</strong> and type <em>u2122</em>. Simple.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2010/11/17/how-to-type-special-characters-in-gnome-and-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to encrypt a disk partition in Linux</title>
		<link>http://www.henaredegan.com/blog/2010/11/05/how-to-encrypt-a-disk-partition-in-linux/</link>
		<comments>http://www.henaredegan.com/blog/2010/11/05/how-to-encrypt-a-disk-partition-in-linux/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 22:59:12 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[cryptsetup]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[luks]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=360</guid>
		<description><![CDATA[LUKS is the standard for Linux hard disk encryption. The following few commands are all you need to encrypt your next external hard disk or USB key on a Debian-based distribution like Ubuntu. Installation Install the required software and load the module into the running kernel without restarting: 12sudo aptitude install cryptsetup sudo modprobe dm_crypt [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-361" title="luks-logo-cropped" src="http://www.henaredegan.com/blog/wp-content/uploads/2010/11/luks-logo-cropped.png" alt="" width="330" height="112" /><br />
<a href="https://code.google.com/p/cryptsetup/">LUKS</a> is the standard for Linux hard disk encryption. The following few commands are all you need to encrypt your next external hard disk or USB key on a Debian-based distribution like Ubuntu.</p>
<h2>Installation</h2>
<p>Install the required software and load the module into the running kernel without restarting:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> cryptsetup<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> modprobe dm_crypt</div></td></tr></tbody></table></div>
<h2>Drive creation</h2>
<p>Set up encryption on the disk and mount it:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> cryptsetup luksFormat <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb1<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> cryptsetup luksOpen <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb1 external<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> mkfs.ext4 <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>external<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>external <span style="color: #000000; font-weight: bold;">/</span>mnt</div></td></tr></tbody></table></div>
<h2>Mounting</h2>
<p>How to mount the drive:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> cryptsetup luksOpen <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb1 external<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>external <span style="color: #000000; font-weight: bold;">/</span>mnt</div></td></tr></tbody></table></div>
<h2>Unmounting</h2>
<p>How to unmount the drive:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> cryptsetup luksClose external</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2010/11/05/how-to-encrypt-a-disk-partition-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TrackPoint scrolling in Ubuntu 10.10</title>
		<link>http://www.henaredegan.com/blog/2010/10/11/trackpoint-scrolling-in-ubuntu-10-10/</link>
		<comments>http://www.henaredegan.com/blog/2010/10/11/trackpoint-scrolling-in-ubuntu-10-10/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 02:10:51 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[10.10]]></category>
		<category><![CDATA[gpointing]]></category>
		<category><![CDATA[scrolling]]></category>
		<category><![CDATA[thinkpad]]></category>
		<category><![CDATA[trackpoint]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=344</guid>
		<description><![CDATA[I just upgraded to Ubuntu 10.10 on my ThinkPad and the only issue so far is that TrackPoint scrolling had stopped working. To re-enable it I used GPointingDeviceSettings and set the following settings: The important change was to set the wheel emulation&#8217;s button to 2, not 4 as it appeared to have been set to. [...]]]></description>
			<content:encoded><![CDATA[<p>I just upgraded to <a href="https://wiki.ubuntu.com/MaverickMeerkat/ReleaseNotes">Ubuntu 10.10</a> on my <a href="http://www.thinkwiki.org/wiki/Category:T400">ThinkPad</a> and the only issue so far is that TrackPoint scrolling had stopped working. To re-enable it I used <a href="http://live.gnome.org/GPointingDeviceSettings">GPointingDeviceSettings</a> and set the following settings:</p>
<p><img src="http://www.henaredegan.com/blog/wp-content/uploads/2010/10/ubuntu_1010_trackpoint_scroll.png" alt="" title="ubuntu_1010_trackpoint_scroll" width="631" height="534" class="aligncenter size-full wp-image-351" /></p>
<p>The important change was to set the wheel emulation&#8217;s button to <strong>2</strong>, not <strong>4</strong> as it appeared to have been set to. If you don&#8217;t have GPointingDeviceSettings installed:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> gpointing-device-settings</div></div>
<h3>Update:</h3>
<p>This original method <a href="http://www.henaredegan.com/blog/2010/10/11/trackpoint-scrolling-in-ubuntu-10-10/comment-page-1/#comment-218">didn&#8217;t survive a power-cycle</a> but I found adding this file to <code class="codecolorer text geshi"><span class="text">/usr/share/X11/xorg.conf.d/20-thinkpad.conf</span></code> will work:</p>
<div class="codecolorer-container xorg_conf railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="xorg_conf codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">Section</span> <span style="color: #0000ff;">&quot;InputClass&quot;</span><br />
&nbsp; &nbsp; <span style="color: #990000;">Identifier</span> <span style="color: #0000ff;">&quot;Trackpoint Wheel Emulation&quot;</span><br />
&nbsp; &nbsp; MatchProduct <span style="color: #0000ff;">&quot;TrackPoint&quot;</span><br />
&nbsp; &nbsp; MatchDevicePath <span style="color: #0000ff;">&quot;/dev/input/event*&quot;</span><br />
&nbsp; &nbsp; <span style="color: #990000;">Driver</span> <span style="color: #0000ff;">&quot;evdev&quot;</span><br />
&nbsp; &nbsp; <span style="color: #990000;">Option</span> <span style="color: #0000ff;">&quot;EmulateWheel&quot;</span> <span style="color: #0000ff;">&quot;true&quot;</span><br />
&nbsp; &nbsp; <span style="color: #990000;">Option</span> <span style="color: #0000ff;">&quot;EmulateWheelButton&quot;</span> <span style="color: #0000ff;">&quot;2&quot;</span><br />
&nbsp; &nbsp; <span style="color: #990000;">Option</span> <span style="color: #0000ff;">&quot;Emulate3Buttons&quot;</span> <span style="color: #0000ff;">&quot;false&quot;</span><br />
&nbsp; &nbsp; <span style="color: #990000;">Option</span> <span style="color: #0000ff;">&quot;XAxisMapping&quot;</span> <span style="color: #0000ff;">&quot;6 7&quot;</span><br />
&nbsp; &nbsp; <span style="color: #990000;">Option</span> <span style="color: #0000ff;">&quot;YAxisMapping&quot;</span> <span style="color: #0000ff;">&quot;4 5&quot;</span><br />
<span style="color: #b1b100;">EndSection</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2010/10/11/trackpoint-scrolling-in-ubuntu-10-10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Build an SMS to email gateway in under ten minutes</title>
		<link>http://www.henaredegan.com/blog/2010/09/06/build-an-sms-to-email-gateway-in-under-ten-minutes/</link>
		<comments>http://www.henaredegan.com/blog/2010/09/06/build-an-sms-to-email-gateway-in-under-ten-minutes/#comments</comments>
		<pubDate>Sun, 05 Sep 2010 23:42:14 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[gammu]]></category>
		<category><![CDATA[mutt]]></category>
		<category><![CDATA[sms]]></category>
		<category><![CDATA[sms to email]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=329</guid>
		<description><![CDATA[If you use an SMS gateway, such as Clickatell, to send SMS from your website or computer, you might want to set up your own simple return path for people to reply to those SMS and have them emailed to you. With an always-on Ubuntu 10.04 machine, an old mobile phone and a cheap pre-paid [...]]]></description>
			<content:encoded><![CDATA[<p>If you use an SMS gateway, such as <a href="http://www.clickatell.com/">Clickatell</a>, to send SMS from your website or computer, you might want to set up your own simple return path for people to reply to those SMS and have them emailed to you.</p>
<p>With an always-on <strong>Ubuntu 10.04 machine</strong>, an <strong>old mobile</strong> phone and a cheap <strong>pre-paid SIM</strong>, you can have this setup in under 10 minutes.</p>
<p>First, install the required software; the <a href="http://wammu.eu/smsd/">Gammu SMS daemon</a> for getting the SMS off the mobile and <a href="http://www.mutt.org/">Mutt</a> for sending our emails.</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> gammu-smsd mutt</div></td></tr></tbody></table></div>
<p>Put this little shell script somewhere like <code class="codecolorer text geshi"><span class="text">/var/spool/gammu/mail_wrapper.sh</span></code>, customising the email addresses. It will be used to send the email when an SMS is received:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">EMAIL</span>=<span style="color: #ff0000;">&quot;SMS Daemon &lt;sms@example.com&gt;&quot;</span><br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000; font-weight: bold;">|</span> mutt you<span style="color: #000000; font-weight: bold;">@</span>example.com <span style="color: #660033;">-i</span> <span style="color: #ff0000;">&quot;/var/spool/gammu/inbox/$1&quot;</span> <span style="color: #660033;">-a</span> <span style="color: #ff0000;">&quot;/var/spool/gammu/inbox/$1&quot;</span> <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot;SMS Received&quot;</span></div></td></tr></tbody></table></div>
<p>Attach your phone to your computer (mine was USB) and select &#8220;Phone mode&#8221; or similar on the mobile (as opposed to mass storage mode or photo mode, for example). Follow your system log to see what port your mobile shows up on, you should see output similar to this:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">tail</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>syslog<br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:00:<span style="color: #000000;">22</span> smsgateway kernel: <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">105224.650743</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> usb <span style="color: #000000;">1</span>-<span style="color: #000000;">4</span>: new high speed USB device using ehci_hcd and address <span style="color: #000000;">6</span><br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:00:<span style="color: #000000;">22</span> smsgateway kernel: <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">105224.991701</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> usb <span style="color: #000000;">1</span>-<span style="color: #000000;">4</span>: configuration <span style="color: #666666; font-style: italic;">#3 chosen from 1 choice</span><br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:00:<span style="color: #000000;">22</span> smsgateway kernel: <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">105224.995894</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> cdc_acm <span style="color: #000000;">1</span>-<span style="color: #000000;">4</span>:<span style="color: #000000;">3.1</span>: ttyACM0: USB ACM device<br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:00:<span style="color: #000000;">22</span> smsgateway kernel: <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">105224.997427</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> cdc_acm <span style="color: #000000;">1</span>-<span style="color: #000000;">4</span>:<span style="color: #000000;">3.3</span>: ttyACM1: USB ACM device<br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:00:<span style="color: #000000;">22</span> smsgateway kernel: <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">105225.000013</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> cdc_wdm <span style="color: #000000;">1</span>-<span style="color: #000000;">4</span>:<span style="color: #000000;">3.7</span>: cdc-wdm0: USB WDM device</div></td></tr></tbody></table></div>
<p>The logs above show my mobile exposing two USB modem ports, <code class="codecolorer text geshi"><span class="text">/dev/ttyACM0</span></code> and <code class="codecolorer text geshi"><span class="text">/dev/ttyACM1</span></code>. Trial and error lead me to discover that <code class="codecolorer text geshi"><span class="text">/dev/ttyACM1</span></code> was the port I was looking for.</p>
<p>Now configure this port in your <code class="codecolorer text geshi"><span class="text">/etc/gammu-smsdrc</span></code> file with the line <code class="codecolorer text geshi"><span class="text">port = /dev/ttyACM1</span></code> and add the line <code class="codecolorer text geshi"><span class="text">runonreceive = /var/spool/gammu/mail_wrapper.sh</span></code> so that the script we created earlier is executed when an SMS is received. The complete <code class="codecolorer text geshi"><span class="text">/etc/gammu-smsdrc</span></code> file should look similar to this:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># Configuration file for Gammu SMS Daemon</span><br />
<br />
<span style="color: #666666; font-style: italic;"># Gammu library configuration, see gammurc(5)</span><br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>gammu<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
<span style="color: #666666; font-style: italic;"># Please configure this!</span><br />
port = <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>ttyACM1<br />
connection = at<br />
<span style="color: #666666; font-style: italic;"># Debugging</span><br />
<span style="color: #666666; font-style: italic;">#logformat = textall</span><br />
<br />
<span style="color: #666666; font-style: italic;"># SMSD configuration, see gammu-smsdrc(5)</span><br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>smsd<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
service = files<br />
logfile = syslog<br />
<span style="color: #666666; font-style: italic;"># Increase for debugging information</span><br />
debuglevel = <span style="color: #000000;">0</span><br />
<br />
<span style="color: #666666; font-style: italic;"># Paths where messages are stored</span><br />
inboxpath = <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>spool<span style="color: #000000; font-weight: bold;">/</span>gammu<span style="color: #000000; font-weight: bold;">/</span>inbox<span style="color: #000000; font-weight: bold;">/</span><br />
outboxpath = <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>spool<span style="color: #000000; font-weight: bold;">/</span>gammu<span style="color: #000000; font-weight: bold;">/</span>outbox<span style="color: #000000; font-weight: bold;">/</span><br />
sentsmspath = <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>spool<span style="color: #000000; font-weight: bold;">/</span>gammu<span style="color: #000000; font-weight: bold;">/</span>sent<span style="color: #000000; font-weight: bold;">/</span><br />
errorsmspath = <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>spool<span style="color: #000000; font-weight: bold;">/</span>gammu<span style="color: #000000; font-weight: bold;">/</span>error<span style="color: #000000; font-weight: bold;">/</span><br />
<br />
runonreceive = <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>spool<span style="color: #000000; font-weight: bold;">/</span>gammu<span style="color: #000000; font-weight: bold;">/</span>mail_wrapper.sh</div></td></tr></tbody></table></div>
<p>Now start Gammu&#8217;s smsd and, with the configuration above, Gammu will log activity to syslog so you can send an SMS and see the fruits of your labour:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> service gammu-smsd start<br />
&nbsp;<span style="color: #000000; font-weight: bold;">*</span> Starting Gammu SMS Daemon gammu-smsd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">&#91;</span> OK <span style="color: #7a0874; font-weight: bold;">&#93;</span> <br />
$ <span style="color: #c20cb9; font-weight: bold;">tail</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>syslog<br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:09:00 smsgateway gammu-smsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">11229</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Configuring Gammu SMSD...<br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:09:00 smsgateway gammu-smsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">11229</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: SHM token: 0xffffffff<br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:09:00 smsgateway gammu-smsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">11229</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Warning: No PIN code <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>gammu-smsdrc <span style="color: #c20cb9; font-weight: bold;">file</span><br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:09:00 smsgateway gammu-smsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">11229</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #007800;">commtimeout</span>=<span style="color: #000000;">30</span>, <span style="color: #007800;">sendtimeout</span>=<span style="color: #000000;">30</span>, <span style="color: #007800;">receivefrequency</span>=<span style="color: #000000;">0</span>, <span style="color: #007800;">resetfrequency</span>=<span style="color: #000000;">0</span><br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:09:00 smsgateway gammu-smsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">11229</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: checks: <span style="color: #007800;">security</span>=<span style="color: #000000;">1</span>, <span style="color: #007800;">battery</span>=<span style="color: #000000;">1</span>, <span style="color: #007800;">signal</span>=<span style="color: #000000;">1</span><br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:09:00 smsgateway gammu-smsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">11229</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: deliveryreport = no<br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:09:00 smsgateway gammu-smsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">11229</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: phoneid =<br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:09:00 smsgateway gammu-smsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">11229</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Inbox is <span style="color: #ff0000;">&quot;/var/spool/gammu/inbox/&quot;</span> with format <span style="color: #ff0000;">&quot;standard&quot;</span><br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:09:00 smsgateway gammu-smsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">11229</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Outbox is <span style="color: #ff0000;">&quot;/var/spool/gammu/outbox/&quot;</span> with transmission format <span style="color: #ff0000;">&quot;7bit&quot;</span><br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:09:00 smsgateway gammu-smsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">11229</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Sent SMS moved to <span style="color: #ff0000;">&quot;/var/spool/gammu/sent/&quot;</span><br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:09:00 smsgateway gammu-smsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">11229</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: SMS with errors moved to <span style="color: #ff0000;">&quot;/var/spool/gammu/error/&quot;</span><br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:09:00 smsgateway gammu-smsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">11232</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Using FILES service<br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:09:00 smsgateway gammu-smsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">11232</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Starting phone communication...<br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:09:<span style="color: #000000;">13</span> smsgateway gammu-smsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">11232</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Received message from +<span style="color: #000000;">61412345678</span><br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:09:<span style="color: #000000;">13</span> smsgateway gammu-smsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">11232</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Received IN20100902_165719_00_+<span style="color: #000000;">61412345678</span>_00.txt<br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:09:<span style="color: #000000;">13</span> smsgateway gammu-smsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">11258</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Starting run on receive: <span style="color: #ff0000;">&quot;/var/spool/gammu/mail_wrapper.sh&quot;</span> IN20100902_165719_00_+<span style="color: #000000;">61412345678</span>_00.txt<br />
Sep &nbsp;<span style="color: #000000;">6</span> 09:09:<span style="color: #000000;">13</span> smsgateway gammu-smsd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">11232</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: Process finished successfully</div></td></tr></tbody></table></div>
<p>If you run into any problems or need some help, please leave a comment below.</p>
<p><em>Note that there are more sophisticated ways of setting this up and many gateway providers have a much easier method to achieve the same result without you having to set up anything.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2010/09/06/build-an-sms-to-email-gateway-in-under-ten-minutes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GNU gettext find and replace</title>
		<link>http://www.henaredegan.com/blog/2010/08/13/gnu-gettext-find-and-replace/</link>
		<comments>http://www.henaredegan.com/blog/2010/08/13/gnu-gettext-find-and-replace/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 05:51:44 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[find and replace]]></category>
		<category><![CDATA[gettext]]></category>
		<category><![CDATA[gnu]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=322</guid>
		<description><![CDATA[GNU gettext is used by many open source projects for translation support. If you need to just do a find and replace in gettext source files, try this out to do a whole directory at once: 12345for i in *.po; do &#160; echo &#34;Processing $i&#34; &#160; msgfilter --no-wrap sed -e &#34;s/OLD_TEXT/NEW_TEXT/g&#34; &#60; $i &#62; /tmp/gettext [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.gnu.org/software/gettext/"><img src="http://www.henaredegan.com/blog/wp-content/uploads/2010/08/gnu-head-sm.jpg" alt="" title="gnu-head-sm" width="129" height="122" class="alignright size-full wp-image-323" /></a><a href="http://www.gnu.org/software/gettext/">GNU gettext</a> is used by many open source projects for translation support.</p>
<p>If you need to just do a find and replace in gettext source files, try this out to do a whole directory at once:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">*</span>.po; <span style="color: #000000; font-weight: bold;">do</span><br />
&nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Processing <span style="color: #007800;">$i</span>&quot;</span><br />
&nbsp; msgfilter <span style="color: #660033;">--no-wrap</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;s/OLD_TEXT/NEW_TEXT/g&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #007800;">$i</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">gettext</span><br />
&nbsp; <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">gettext</span> <span style="color: #007800;">$i</span><br />
<span style="color: #000000; font-weight: bold;">done</span></div></td></tr></tbody></table></div>
<p>I couldn&#8217;t find a way to do the edit in place (a la <code class="codecolorer bash geshi"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-i</span></span></code>), if you know of a way please let me know in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2010/08/13/gnu-gettext-find-and-replace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing the Wireshark network analyser on Ubuntu 10.04</title>
		<link>http://www.henaredegan.com/blog/2010/06/24/installing-the-wireshark-network-analyser-on-ubuntu-10-04/</link>
		<comments>http://www.henaredegan.com/blog/2010/06/24/installing-the-wireshark-network-analyser-on-ubuntu-10-04/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 01:56:42 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[packet sniffing]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wireshark]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=288</guid>
		<description><![CDATA[Wireshark is a network protocol analyser, or packet sniffer, available for Ubuntu 10.04 via a simple sudo apt-get install wireshark. However to use it correctly, we need to change some permissions to ensure we&#8217;re not running the whole application as root. The following commands will let the adm group run Wireshark without elevated privileges &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wireshark.org/">Wireshark</a> is a network protocol analyser, or packet sniffer, available for Ubuntu 10.04 via a simple <tt>sudo apt-get install wireshark</tt>. However to use it correctly, we need to change some permissions to ensure we&#8217;re not running the whole application as root.</p>
<p>The following commands will let the <tt>adm</tt> group run Wireshark without elevated privileges &#8211; the <tt>adm</tt> group is the group that allows you to read log files, etc., I always add myself to it anyway.</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chgrp</span> adm <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>dumpcap<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">750</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>dumpcap<br />
$ <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-alF</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>dumpcap<br />
<span style="color: #660033;">-rwxr-x---</span> <span style="color: #000000;">1</span> root adm <span style="color: #000000;">63520</span> <span style="color: #000000;">2010</span>-04-<span style="color: #000000;">13</span> 01:<span style="color: #000000;">17</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>dumpcap<span style="color: #000000; font-weight: bold;">*</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> setcap cap_net_raw,<span style="color: #007800;">cap_net_admin</span>=eip <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>dumpcap<br />
$ getcap <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>dumpcap<br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>dumpcap = cap_net_admin,cap_net_raw+eip<br />
$</div></td></tr></tbody></table></div>
<p>That&#8217;s all pretty self explanatory &#8211; the <tt>setcap</tt> command allows that binary to use special capabilities, namely to control NICs (to set promiscuous mode for Wireshark) and capture raw traffic from NICs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2010/06/24/installing-the-wireshark-network-analyser-on-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting an RSS feed of The Drum articles by a specific author using Yahoo! Pipes</title>
		<link>http://www.henaredegan.com/blog/2010/06/11/getting-an-rss-feed-of-the-drum-articles-by-a-specific-author-using-yahoo-pipes/</link>
		<comments>http://www.henaredegan.com/blog/2010/06/11/getting-an-rss-feed-of-the-drum-articles-by-a-specific-author-using-yahoo-pipes/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 04:13:53 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[abc]]></category>
		<category><![CDATA[media watch]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[the drum]]></category>
		<category><![CDATA[yahoo pipes]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=277</guid>
		<description><![CDATA[ABC&#8217;s The Drum is the ABC&#8217;s analysis and opinion site. It has a diverse range of contributors and I&#8217;ve found the RSS feed a little too active for my liking. That said, I love the latest presenter of Media Watch, Jonathan Holmes, and I wanted to read just his articles posted on The Drum. I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.abc.net.au/thedrum/">ABC&#8217;s The Drum</a> is the ABC&#8217;s analysis and opinion site. It has a <a href="http://www.abc.net.au/unleashed/contributors/">diverse range of contributors</a> and I&#8217;ve found <a href="http://www.abc.net.au/news/lists/opinion-top/rss.xml">the RSS feed</a> a little too active for my liking.</p>
<p>That said, I love the latest presenter of <a href="http://www.abc.net.au/mediawatch/">Media Watch</a>, <a href="http://www.abc.net.au/profiles/content/s2761689.htm?site=thedrum">Jonathan Holmes</a>, and I wanted to read just his articles posted on The Drum. <a href="https://twitter.com/henaredegan/status/12204838276">I asked</a> if it was possible to get an RSS feed for specific authors but <a href="https://twitter.com/abcthedrum/status/12254890502">I didn&#8217;t get far</a> so I decided to fire up the ever-useful <a href="http://pipes.yahoo.com/">Yahoo! Pipes</a> to do the job:</p>
<p style="text-align: center;"><a href="http://pipes.yahoo.com/pipes/pipe.info?_id=5b1c96bb38b8c70bfbeed17b48771801"><img class="aligncenter size-full wp-image-278" title="abcthedrum_pipe" src="http://www.henaredegan.com/blog/wp-content/uploads/2010/06/abcthedrum_pipe.png" alt="" width="641" height="343" /></a></p>
<p>You can <a href="http://pipes.yahoo.com/pipes/pipe.info?_id=5b1c96bb38b8c70bfbeed17b48771801">filter by any Author&#8217;s name from The Drum</a> (just copy and paste the name from the by-line) and then select <em>Run Pipe</em> then <em>Get as RSS</em> to add it to your feed reader of choice. If you find this useful or have other suggestions for how this could be used, please don&#8217;t hesitate to leave a comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2010/06/11/getting-an-rss-feed-of-the-drum-articles-by-a-specific-author-using-yahoo-pipes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

