<?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>Fri, 25 Jun 2010 01:07:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<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 geshi" 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>
		<item>
		<title>Disable your touchpad in Ubuntu/Gnome</title>
		<link>http://www.henaredegan.com/blog/2010/06/09/disable-your-touchpad-in-ubuntugnome/</link>
		<comments>http://www.henaredegan.com/blog/2010/06/09/disable-your-touchpad-in-ubuntugnome/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 00:40:57 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[thinkpad]]></category>
		<category><![CDATA[touchpad]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=265</guid>
		<description><![CDATA[If you&#8217;re like me and love your nipple, you might prefer to disable the touchpad on your ThinkPad. In openSUSE this is a trivial affair of opening up the Gnome mouse preferences and unchecking the Enable Touchpad option. When I went searching for this option in Ubuntu 10.04 I couldn&#8217;t find it, so I searched [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re like me and <a href="http://xkcd.com/243/">love your nipple</a>, you might prefer to disable the touchpad on your ThinkPad.</p>
<p>In openSUSE this is a trivial affair of opening up the Gnome mouse preferences and unchecking the <em>Enable Touchpad</em> option. When I went searching for this option in Ubuntu 10.04 I couldn&#8217;t find it, so I searched the Ubuntu Software Centre for &#8220;touchpad&#8221; and installed GSynaptics, which looked very similar to openSUSE&#8217;s tool.</p>
<p>GSynaptics disabled the touchpad just fine &#8211; until the machine transitioned power state, such as suspend/resume or a reboot. I&#8217;ve found that the reliable way of disabling the touchpad in Gnome is to fire up <em>gconf-editor</em> and locate a setting similar to the following and disable it:</p>
<p style="text-align: center;"><a href="http://www.henaredegan.com/blog/wp-content/uploads/2010/06/gnome_disable_touchpad.png"><img class="aligncenter size-full wp-image-266" title="gnome_disable_touchpad" src="http://www.henaredegan.com/blog/wp-content/uploads/2010/06/gnome_disable_touchpad.png" alt="" width="561" height="378" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2010/06/09/disable-your-touchpad-in-ubuntugnome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List the number of members in all Mailman lists</title>
		<link>http://www.henaredegan.com/blog/2010/05/21/list-the-number-of-members-in-all-mailman-lists/</link>
		<comments>http://www.henaredegan.com/blog/2010/05/21/list-the-number-of-members-in-all-mailman-lists/#comments</comments>
		<pubDate>Fri, 21 May 2010 02:34:48 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[mailman]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=257</guid>
		<description><![CDATA[Here&#8217;s a little bash script to display the name of all lists in your mailman site and the number of subscribers for each list, just run it in the same directory as your mailman binaries (/usr/lib/mailman/bin on Debian): 123456#!/bin/bash LISTS=$&#40;&#40;`./list_lists &#124; wc -l` - 1&#41;&#41; LISTS=`./list_lists &#124; tail -n$LISTS &#124; awk '{ print $1 }'` [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a little bash script to display the name of all lists in your mailman site and the number of subscribers for each list, just run it in the same directory as your mailman binaries (<code class="codecolorer text geshi"><span class="text">/usr/lib/mailman/bin</span></code> on Debian):</p>
<div class="codecolorer-container bash geshi" 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: #666666; font-style: italic;">#!/bin/bash</span><br />
<span style="color: #007800;">LISTS</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">`</span>.<span style="color: #000000; font-weight: bold;">/</span>list_lists <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">wc</span> -l<span style="color: #000000; font-weight: bold;">`</span> - <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #007800;">LISTS</span>=<span style="color: #000000; font-weight: bold;">`</span>.<span style="color: #000000; font-weight: bold;">/</span>list_lists <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tail</span> -n<span style="color: #007800;">$LISTS</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ print $1 }'</span><span style="color: #000000; font-weight: bold;">`</span><br />
<span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$LISTS</span>; <span style="color: #000000; font-weight: bold;">do</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$i</span> <span style="color: #000000; font-weight: bold;">`</span>.<span style="color: #000000; font-weight: bold;">/</span>list_members <span style="color: #007800;">$i</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">wc</span> -l<span style="color: #000000; font-weight: bold;">`</span><br />
<span style="color: #000000; font-weight: bold;">done</span></div></td></tr></tbody></table></div>
<p>Protip: you can also just copy and paste the lines into your terminal so you don&#8217;t have to save it as a script.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2010/05/21/list-the-number-of-members-in-all-mailman-lists/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Subscribing to Apple iCal Server feeds from Mozilla Sunbird</title>
		<link>http://www.henaredegan.com/blog/2010/04/12/subscribing-to-apple-ical-server-feeds-from-mozilla-sunbird/</link>
		<comments>http://www.henaredegan.com/blog/2010/04/12/subscribing-to-apple-ical-server-feeds-from-mozilla-sunbird/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 04:06:49 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[caldav]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[ical]]></category>
		<category><![CDATA[icalserver]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[sunbird]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=207</guid>
		<description><![CDATA[Subscribing to feeds from Apple&#8217;s iCal Server with OS X&#8217;s iCal may be a relatively straight-forward affair but working out what CalDAV address to use with Mozilla Sunbird is another story completely. It took me ages to work out where these magic feed addresses were but once you know, it&#8217;s trivial. In iCal, just select [...]]]></description>
			<content:encoded><![CDATA[<p>Subscribing to feeds from <a href="http://www.apple.com/server/macosx/features/ical-server.html">Apple&#8217;s iCal Server</a> with OS X&#8217;s iCal may be a relatively straight-forward affair but working out what CalDAV address to use with <a href="http://www.mozilla.org/projects/calendar/sunbird/">Mozilla Sunbird</a> is another story completely.</p>
<p>It took me ages to work out where these magic feed addresses were but once you know, it&#8217;s trivial. In iCal, just select the calendar you want to subscribe and select File, Get Info:</p>
<p><a href="http://www.henaredegan.com/blog/wp-content/uploads/2010/04/ical_moreinfo.png"><img class="size-medium wp-image-210 alignnone" title="ical_moreinfo" src="http://www.henaredegan.com/blog/wp-content/uploads/2010/04/ical_moreinfo-300x175.png" alt="" width="300" height="175" /></a></p>
<p>Enter your server address and port, eg. <code class="codecolorer text geshi"><span class="text">http://yourserversaddress:8008/</span></code>, then put the CalDAV URL in the image above into the Sunbird CalDAV subscription wizard and you&#8217;re good to go:</p>
<p><a href="http://www.henaredegan.com/blog/wp-content/uploads/2010/04/sunbird_newcalendar.png"><img class="size-medium wp-image-211 alignnone" title="sunbird_newcalendar" src="http://www.henaredegan.com/blog/wp-content/uploads/2010/04/sunbird_newcalendar-300x240.png" alt="" width="300" height="240" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2010/04/12/subscribing-to-apple-ical-server-feeds-from-mozilla-sunbird/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitor Apache 2.2 with Zenoss on Debian</title>
		<link>http://www.henaredegan.com/blog/2010/03/12/monitor-apache-2-2-with-zenoss-on-debian/</link>
		<comments>http://www.henaredegan.com/blog/2010/03/12/monitor-apache-2-2-with-zenoss-on-debian/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 05:32:41 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[zenoss]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=157</guid>
		<description><![CDATA[The packaged Zenoss for Debain will monitor httpd out of the box but does not look for the apache2 process. To monitor Apache 2.2, you need to add a similar Processes class as httpd has. Navigate to Processes>Apache and then select Add process. Type apache2 as an ID (it&#8217;s just a unique identifier) and select [...]]]></description>
			<content:encoded><![CDATA[<p>The packaged Zenoss for Debain will monitor httpd out of the box but does not look for the apache2 process.</p>
<p>To monitor Apache 2.2, you need to add a similar Processes class as httpd has. Navigate to <em>Processes>Apache</em> and then select <em>Add process</em>. Type <code class="codecolorer text geshi"><span class="text">apache2</span></code> as an ID (it&#8217;s just a unique identifier) and select OK.</p>
<p>Under the Edit tab, type <code class="codecolorer text geshi"><span class="text">apache2</span></code> for the Name and <code class="codecolorer text geshi"><span class="text">^.*\/*apache2</span></code> as the RegEx. That should be all you need.</p>
<p>To start monitoring a device, just remodel it manually or wait for a day or so for remodelling to happen on all your devices for Apache 2.2 to start to be monitored.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2010/03/12/monitor-apache-2-2-with-zenoss-on-debian/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Java and SSL on FreeBSD</title>
		<link>http://www.henaredegan.com/blog/2010/02/28/java-and-ssl-on-freebsd/</link>
		<comments>http://www.henaredegan.com/blog/2010/02/28/java-and-ssl-on-freebsd/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 23:44:15 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google apps]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jira]]></category>
		<category><![CDATA[pop]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=150</guid>
		<description><![CDATA[Running Jira on FreeBSD, I wanted to be able to pick up email from a Google Apps account and feed it in as tickets. This is normally a straight-forward process but I was getting these errors in the Jira logs: 1javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested [...]]]></description>
			<content:encoded><![CDATA[<p>Running Jira on FreeBSD, I wanted to be able to pick up email from a Google Apps account and feed it in as tickets. This is normally a straight-forward process but I was getting these errors in the Jira logs:</p>
<div class="codecolorer-container text geshi" 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="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</div></td></tr></tbody></table></div>
<p>So it seemed like the Gmail SSL certificate for IMAP or POP wasn&#8217;t validating. That&#8217;s weird as it would be a major problem if it didn&#8217;t and they&#8217;re certainly not using a self-signed certificate.</p>
<p>I checked the keystore and it appeared empty so it looks like FreeBSD&#8217;s Java doesn&#8217;t ship with the normal list of CAs. To fix this I did:</p>
<div class="codecolorer-container bash geshi" 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 /></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: #7a0874; font-weight: bold;">&#91;</span>henare<span style="color: #000000; font-weight: bold;">@</span>freebsd ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">/</span>usr.local<span style="color: #000000; font-weight: bold;">/</span>diablo-jdk1.6.0<span style="color: #000000; font-weight: bold;">/</span>jre<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>security<span style="color: #000000; font-weight: bold;">/</span>cacerts<br />
<span style="color: #660033;">-rw-r--r--</span> &nbsp;<span style="color: #000000;">1</span> root &nbsp;wheel &nbsp;<span style="color: #000000;">942</span> &nbsp; &nbsp;Aug &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">2007</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>java<span style="color: #000000; font-weight: bold;">/</span>jdk16<span style="color: #000000; font-weight: bold;">/</span>files<span style="color: #000000; font-weight: bold;">/</span>cacerts<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>henare<span style="color: #000000; font-weight: bold;">@</span>freebsd ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #666666; font-style: italic;">#wow, that file's really small (this directory was in our JAVA_HOME - don't ask me about the usr.local thing)</span><br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>henare<span style="color: #000000; font-weight: bold;">@</span>freebsd ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #666666; font-style: italic;">#first, backup this file</span><br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>henare<span style="color: #000000; font-weight: bold;">@</span>freebsd ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>diablo-jdk1.6.0<span style="color: #000000; font-weight: bold;">/</span>jre<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>security<span style="color: #000000; font-weight: bold;">/</span>cacerts<span style="color: #7a0874; font-weight: bold;">&#123;</span>,_backup<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>Y<span style="color: #000000; font-weight: bold;">%</span>m<span style="color: #000000; font-weight: bold;">%</span>d<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>henare<span style="color: #000000; font-weight: bold;">@</span>freebsd ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #666666; font-style: italic;">#now, copy over the file from ports</span><br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>henare<span style="color: #000000; font-weight: bold;">@</span>freebsd ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>java<span style="color: #000000; font-weight: bold;">/</span>jdk16<span style="color: #000000; font-weight: bold;">/</span>files<span style="color: #000000; font-weight: bold;">/</span>cacerts <span style="color: #000000; font-weight: bold;">/</span>usr.local<span style="color: #000000; font-weight: bold;">/</span>diablo-jdk1.6.0<span style="color: #000000; font-weight: bold;">/</span>jre<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>security<span style="color: #000000; font-weight: bold;">/</span>cacerts<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>henare<span style="color: #000000; font-weight: bold;">@</span>freebsd ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">/</span>usr.local<span style="color: #000000; font-weight: bold;">/</span>diablo-jdk1.6.0<span style="color: #000000; font-weight: bold;">/</span>jre<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>security<span style="color: #000000; font-weight: bold;">/</span>cacerts<br />
<span style="color: #660033;">-rw-r--r--</span> &nbsp;<span style="color: #000000;">1</span> root &nbsp;wheel &nbsp;<span style="color: #000000;">40624</span> Aug &nbsp;<span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">2007</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>java<span style="color: #000000; font-weight: bold;">/</span>jdk16<span style="color: #000000; font-weight: bold;">/</span>files<span style="color: #000000; font-weight: bold;">/</span>cacerts<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>henare<span style="color: #000000; font-weight: bold;">@</span>freebsd ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #666666; font-style: italic;">#that looks better</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2010/02/28/java-and-ssl-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating an ASP site to a static Apache site</title>
		<link>http://www.henaredegan.com/blog/2009/11/23/migrating-an-asp-site-to-a-static-apache-site/</link>
		<comments>http://www.henaredegan.com/blog/2009/11/23/migrating-an-asp-site-to-a-static-apache-site/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 04:57:12 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=131</guid>
		<description><![CDATA[I recently needed to move a very simple ASP site to Apache for archival purposes. There was nothing of importance that the dynamic ASP was doing and as it was just for an archive, it made the most sense to turn it into simple HTML (as the whole site probably should have been in the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently needed to move a very simple ASP site to Apache for archival purposes. There was nothing of importance that the dynamic ASP was doing and as it was just for an archive, it made the most sense to turn it into simple HTML (as the whole site probably should have been in the first place). All of this was easy enough with wget -m, etc. but I came across one major stumbling block.</p>
<p>The files mirrored from the original site had a question mark in the file name due to them being queries and the fact that Unix supports question marks in file names. This wasn&#8217;t a problem for most modern browsers as they encode the question mark before doing the request and Apache happily serves up the file. After doing a test migration of the site I noticed heaps of 404s coming from visitors to the site via search engines.</p>
<p>I got around this with some painful mod_rewrite hacking:</p>
<div class="codecolorer-container apache geshi" 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="apache codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #00007f;">RewriteEngine</span> <span style="color: #0000ff;">On</span><br />
<span style="color: #00007f;">RewriteCond</span> %{QUERY_STRING} .<br />
<span style="color: #00007f;">RewriteCond</span> %{REQUEST_FILENAME} \.asp$<br />
<span style="color: #00007f;">RewriteRule</span> ^(.*)$ http://example.com$<span style="color: #ff0000;">1</span>\%3F%{QUERY_STRING}? [NE]</div></td></tr></tbody></table></div>
<p>In semi-human-speak:</p>
<ul>
<li>Turn the mod_rewrite engine on</li>
<li>Look for queries that have a query string (i.e. a ? and anything after it)</li>
<li>And where the filename requested is a .asp file</li>
<li>Rewrite the whole request to http://example.com
<ul>
<li>Then the original request (sans query string)</li>
<li>Then %3F (question mark encoded)</li>
<li>Then the query string and make sure there&#8217;s no other query string appended (the ? at the end)</li>
<li>Also, don&#8217;t encode the stuff we&#8217;re throwing back to the client (the [NE])</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2009/11/23/migrating-an-asp-site-to-a-static-apache-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert TIFF to JPEG on Linux</title>
		<link>http://www.henaredegan.com/blog/2009/11/16/convert-tiff-to-jpeg-on-linux/</link>
		<comments>http://www.henaredegan.com/blog/2009/11/16/convert-tiff-to-jpeg-on-linux/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 01:29:26 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[jpeg]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[tiff]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=128</guid>
		<description><![CDATA[I wanted to convert some high resolution TIFFs that Lisa took of Bill&#8217;s paintings recently and came up with this quick and dirty conversion into JPEG: 1for i in *.tif; do tifftopnm &#34;$i&#34; &#124; pnmtojpeg &#62; &#34;${i%.tif}.jpeg&#34;; done That&#8217;ll convert all .tif files in a directory to JPEG (using default processing setting). I didn&#8217;t have [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to convert some high resolution TIFFs that Lisa took of Bill&#8217;s paintings recently and came up with this quick and dirty conversion into JPEG:</p>
<div class="codecolorer-container bash geshi" 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: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">*</span>.tif; <span style="color: #000000; font-weight: bold;">do</span> tifftopnm <span style="color: #ff0000;">&quot;<span style="color: #007800;">$i</span>&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> pnmtojpeg <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${i%.tif}</span>.jpeg&quot;</span>; <span style="color: #000000; font-weight: bold;">done</span></div></td></tr></tbody></table></div>
<p>That&#8217;ll convert all .tif files in a directory to JPEG (using default processing setting).</p>
<p>I didn&#8217;t have <code class="codecolorer text geshi"><span class="text">exiftool</span></code> installed, and no internerd or media to install it from, otherwise I would&#8217;ve looked at doing the metadata too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2009/11/16/convert-tiff-to-jpeg-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Evolution Hangs on Startup</title>
		<link>http://www.henaredegan.com/blog/2009/10/28/evolution-hangs-on-startup/</link>
		<comments>http://www.henaredegan.com/blog/2009/10/28/evolution-hangs-on-startup/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 23:36:26 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[evolution]]></category>
		<category><![CDATA[hang]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=125</guid>
		<description><![CDATA[I&#8217;ve had Evolution hang on start up a few times lately, I keep forgetting what I&#8217;ve done to fix it so I&#8217;m noting it here. All I&#8217;ve needed to do is to kill evolution-data-server and try to start Evolution again, so to fix this issue: 1killall evolution-data-server-2.28]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had <a href="http://projects.gnome.org/evolution/">Evolution</a> hang on start up a few times lately, I keep forgetting what I&#8217;ve done to fix it so I&#8217;m noting it here. All I&#8217;ve needed to do is to kill evolution-data-server and try to start Evolution again, so to fix this issue:</p>
<div class="codecolorer-container bash geshi" 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: #c20cb9; font-weight: bold;">killall</span> evolution-data-server-<span style="color: #000000;">2.28</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2009/10/28/evolution-hangs-on-startup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
