<?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>An Esurient Trollop</title>
	<atom:link href="http://www.trollop.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.trollop.org</link>
	<description>~ Tea &#38; Strumpets</description>
	<lastBuildDate>Wed, 29 Feb 2012 02:40:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>OS X 10.7 Lion, Time Machine &amp; Netatalk 2.2</title>
		<link>http://www.trollop.org/2011/07/23/os-x-10-7-lion-time-machine-netatalk-2-2/</link>
		<comments>http://www.trollop.org/2011/07/23/os-x-10-7-lion-time-machine-netatalk-2-2/#comments</comments>
		<pubDate>Sat, 23 Jul 2011 08:11:09 +0000</pubDate>
		<dc:creator>Steffen L. Norgren</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[afp]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netatalk]]></category>
		<category><![CDATA[os x 10.7 lion]]></category>
		<category><![CDATA[os x lion]]></category>

		<guid isPermaLink="false">http://www.trollop.org/?p=135</guid>
		<description><![CDATA[With the release of Apple&#8217;s Mac OS X 10.7 Lion, many people will notice that Time Machine fails to play nicely with their current Netatalk servers. There is a relatively simple solution for those of us who run Netatalk servers on Linux servers and NAS devices. However, if you&#8217;re relying on a NAS-vendor such as ]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" style="margin-left: 10px; margin-right: 10px; margin-top: 5px; margin-bottom: 5px;" title="Time Machine" src="http://www.coffeecoffeeandmorecoffee.com/archives/time%20machine%201.jpg" alt="Time Machine from the 1960 Movie" width="336" height="187" />With the release of Apple&#8217;s Mac OS X 10.7 Lion, many people will notice that Time Machine fails to play nicely with their current Netatalk servers. There is a relatively simple solution for those of us who run Netatalk servers on Linux servers and NAS devices. However, if you&#8217;re relying on a NAS-vendor such as FreeNSD, you may need to <a title="About OS X Lion NAS Time Machine compatibility, Netatalk &amp; GPL violations" href="http://trick77.com/2011/07/15/about-os-x-lion-nas-time-machine-compatibility-netatalk-gpl-violations/">wait for them to offer an update</a> to ensure compatibility with Mac OS X 10.7. Apparently the major reason for this break in compatibility is a lack of a &#8220;replay cache&#8221;, which was introduced in AFP 3.3.</p>
<p>Anyhow, below I&#8217;ve created a simple guide on how to setup Netatalk 2.2 from source on most any Linux system. I am using <a title="Gentoo Linux" href="http://gentoo.org">Gentoo</a> in this guide, but the basics should be the same on any other system. Currently Gentoo has not merged Netatalk 2.2 into portage, so we&#8217;ll have to <a title="Netatalk" href="http://netatalk.sourceforge.net/">download the source</a> from Netatalk itself.</p>
<p>Download Netatalk 2.2 (Unstable):&nbsp;<a href="http://netatalk.sourceforge.net/">http://netatalk.sourceforge.net</a></p>
<p>Extract the contents of the file and cd to the directory:</p>
<pre># tar xvf ./netatalk-2.2-beta4.tar.bz2
# cd netatalk-2.2-beta4/</pre>
<p>To build the binaries, first run the program ./configure in the source directory. This should automatically configure Netatalk for your operating system. If you have unusual needs, then you may wish to run:</p>
<pre># ./configure --help</pre>
<p>to see what special options you can enable. The most used configure options are:<br />
The most used configure options are:</p>
<ul>
<li>&#8211;enable-[redhat/suse/cobalt/netbsd/fhs]<br />
This option helps netatalk to determine where to install the start scripts.</li>
<li>&#8211;with-bdb=/path/to/bdb/installation/<br />
In case you installed Berkeley DB in a non-standard location, you will have to give the install location to netatalk, using this switch.</li>
</ul>
<p>Now run configure with any options you need. For Gentoo we&#8217;ll use the following configure options:</p>
<pre>#&nbsp;./configure&nbsp;--enable-gentoo&nbsp;--enable-zeroconf</pre>
<p><span id="more-135"></span></p>
<p>The configure summary should look something like this:</p>
<pre>Configure summary:
    Install style:
         gentoo
    AFP:
         AFP 3.x calls activated:
         Extended Attributes: ad | sys
    CNID:
         backends:  dbd last tdb
    UAMS:
         DHX     (PAM SHADOW)
         DHX2    (PAM SHADOW)
         RANDNUM (PAM SHADOW)
         passwd  (PAM SHADOW)
         guest
    Options:
         DDP (AppleTalk) support: no
         CUPS support:            no
         SLP support:             no
         Zeroconf support:        yes
         tcp wrapper support:     yes
         quota support:           yes
         admin group support:     yes
         valid shell check:       yes
         cracklib support:        no
         dropbox kludge:          no
         force volume uid/gid:    no
         Apple 2 boot support:    no
         ACL support:             yes</pre>
<p>Now we couple and install Netatalk 2.2:</p>
<pre># make
# sudo make install</pre>
<p>Edit the file to look something like my setup, but make sure to change YOUR_USERNAME to the name of the user on your system. The ~/.TimeMachine directory can be whatever you chose for your backup directory. It is important to add &#8220;tm&#8221; to the options section on &nbsp;your Time Machine share, otherwise it will not work.</p>
<pre># vi /usr/local/etc/netatalk/AppleVolumes.default

# The line below sets some DEFAULT, starting with Netatalk 2.1.
&#58;DEFAULT: options:upriv,usedots

# The "~" below indicates that Home directories are visible by default.
# If you do not wish to have people accessing their Home directories,
# please put a pound sign in front of the tilde or delete it.
~/ "$u" allow:YOUR_USERNAME&nbsp;cnidscheme:dbd options:usedots,upriv
~/.TimeMachine "$u Backup" allow:YOUR_USERNAME&nbsp;cnidscheme:dbd options:usedots,upriv,tm

# End of File</pre>
<p>Now edit the general AFP service config file to look like this:</p>
<pre># vi /usr/local/etc/netatalk/afpd.conf

# default:
- -udp -noddp -uamlist uams_randnum.so,uams_dhx.so,uams_dhx2.so -nosavepassword</pre>
<p>Finally, edit the general Netatalk config file to look like this:</p>
<pre># vi /usr/local/etc/netatalk/netatalk.conf
# Netatalk configuration

#########################################################################
# Global configuration
#########################################################################

#### machine's AFPserver/AppleTalk name.
ATALK_NAME=`echo ${HOSTNAME}|cut -d. -f1`

#### server (unix) and legacy client (&lt;= Mac OS 9) charsets
ATALK_UNIX_CHARSET='LOCALE'
ATALK_MAC_CHARSET='MAC_ROMAN'

#### Don't Edit. export the charsets, read form ENV by apps
export ATALK_UNIX_CHARSET
export ATALK_MAC_CHARSET

#########################################################################
# AFP specific configuration
#########################################################################

#### Set which daemons to run.
#### If you use AFP file server, run both cnid_metad and afpd.
CNID_METAD_RUN=yes
AFPD_RUN=yes

#### maximum number of clients that can connect:
AFPD_MAX_CLIENTS=20

#### UAMs (User Authentication Modules)
#### available options: uams_dhx.so, uams_dhx2.so, uams_guest.so,
####                    uams_clrtxt.so(legacy), uams_randnum.so(legacy)
AFPD_UAMLIST="-U uams_dhx.so,uams_dhx2.so"

#### Set the id of the guest user when using uams_guest.so
AFPD_GUEST=nobody

#### config for cnid_metad. Default log config:
CNID_CONFIG="-l log_note"

#########################################################################
# AppleTalk specific configuration (legacy)
#########################################################################

#### Set which legacy daemons to run.
#### If you need AppleTalk, run atalkd.
#### papd, timelord and a2boot are dependent upon atalkd.
ATALKD_RUN=no
PAPD_RUN=no
TIMELORD_RUN=no
A2BOOT_RUN=no

#### Control whether the daemons are started in the background.
#### If it is dissatisfied that legacy atalkd starts slowly, set "yes".
ATALK_BGROUND=no

#### Set the AppleTalk Zone name.
#### NOTE: if your zone has spaces in it, you're better off specifying
####       it in afpd.conf
ATALK_ZONE=@AFP</pre>
<p>Now you should be able to get Netatalk up and running and start your backup (note: init.d may be rc.d on some systems).</p>
<pre># /etc/init.d/netatalk start</pre>
<p>Also, on Gentoo systems, we will want to have this service start automatically at startup.</p>
<pre># rc-update add netatalk default</pre>
<p>Now your formerly incompatible Netatalk installation should work with OS X 10.7 Lion&#8217;s Time Machine backup. However, if you&#8217;ve never setup your system for using Netatalk as a Time Machine backup server, you may want to follow these additional instructions.</p>
<p><strong>OPTIONAL:</strong> If you have not setup a sparse disk image for time machine backups, follow these instructions.</p>
<p>On your OS X 10.7 machine, mount the Time Machine Share. It should show up in the &#8220;Shared&#8221; section of the sidebar in Finder. However, if it does not show up, you can manually mount the share by pressing COMMAND+K in the finder and entering your server details as follows:</p>
<p><a href="http://www.trollop.org/wp-content/uploads/2011/07/Connect_To_Server.png"><img class="aligncenter size-medium wp-image-138" title="Connect_To_Server" src="http://www.trollop.org/wp-content/uploads/2011/07/Connect_To_Server-300x170.png" alt="" width="300" height="170" /></a></p>
<p><a href="http://www.trollop.org/wp-content/uploads/2011/07/Password.png"><img class="aligncenter size-medium wp-image-139" title="Password" src="http://www.trollop.org/wp-content/uploads/2011/07/Password-300x170.png" alt="" width="300" height="170" /></a></p>
<p><a href="http://www.trollop.org/wp-content/uploads/2011/07/Volumes.png"><img class="aligncenter size-medium wp-image-140" title="Volumes" src="http://www.trollop.org/wp-content/uploads/2011/07/Volumes-300x170.png" alt="" width="300" height="170" /></a></p>
<p>Now open up Terminal.app and cd to the newly mounted volume.</p>
<pre># cd /Volumes/myBackup/</pre>
<p>Now we&#8217;ll create a new sparse disk image for the Time Machine backup and enable support for network volumes in Time Machine. All of complicated stuff after &#8220;Time Machine&#8221; is just a script to automatically extract your machine&#8217;s local host name and ethernet MAC address.</p>
<pre>#&nbsp;hdiutil create -size 512g -fs HFS+J -volname "Time Machine" `grep -A1 LocalHostName /Library/Preferences/SystemConfiguration/preferences.plist | tail -n1 | awk 'BEGIN { FS = "|" } ; { print $2 }'`_`ifconfig en0 | grep ether | awk 'BEGIN { FS = ":" } ; {print $1$2$3$4$5$6}' | awk {'print $2'}`.sparsebundle

#&nbsp;defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1</pre>
<p>Now configure Time Machine to use the mounted volume for backup and everything should work beautifully!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trollop.org/2011/07/23/os-x-10-7-lion-time-machine-netatalk-2-2/feed/</wfw:commentRss>
		<slash:comments>53</slash:comments>
		</item>
		<item>
		<title>Algorithm for Optimal Scaling on a Chart Axis</title>
		<link>http://www.trollop.org/2011/03/15/algorithm-for-optimal-scaling-on-a-chart-axis/</link>
		<comments>http://www.trollop.org/2011/03/15/algorithm-for-optimal-scaling-on-a-chart-axis/#comments</comments>
		<pubDate>Tue, 15 Mar 2011 17:59:00 +0000</pubDate>
		<dc:creator>Steffen L. Norgren</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[algorithm]]></category>
		<category><![CDATA[chart]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[pseudo-code]]></category>

		<guid isPermaLink="false">http://www.trollop.org/?p=99</guid>
		<description><![CDATA[UPDATE: Seems the fellow (Han Solo? hehe) over at Harmonic Code developed some nice examples of this algorithm in action. I&#8217;ve been working on an Android charting application for an assignment and ran into a bit of an issue when it came to presenting the chart in a nicely scaled format. I spent a some ]]></description>
			<content:encoded><![CDATA[<p>UPDATE: Seems the fellow (Han Solo? hehe) over at <a href="http://harmoniccode.blogspot.com/">Harmonic Code</a> developed some nice <a href="http://harmoniccode.blogspot.com/2011/05/steelseries-39.html">examples of this algorithm in action</a>.</p>
<p>I&#8217;ve been working on an Android charting application for an assignment and ran into a bit of an issue when it came to presenting the chart in a nicely scaled format. I spent a some time trying to create this algorithm on my own and came awfully close, but in the end I found a pseudo-code example in a book called &#8220;<a title="Graphics Gems, Volume 1, by Andrew S. Glassner" href="http://books.google.com/books?id=fvA7zLEFWZgC&amp;printsec=frontcover#v=onepage&amp;q&amp;f=false"><em>Graphics Gems, Volume 1</em></a>&#8221; by Andrew S. Glassner. An excellent description of the problem is given in the chapter on &#8220;<a title="Nice Numbers for Graph Labels" href="http://books.google.com/books?id=fvA7zLEFWZgC&amp;pg=PA61&amp;lpg=PA61#v=onepage&amp;q&amp;f=false">Nice Numbers for Graph Labels</a>&#8220;:</p>
<blockquote><p>When creating a graph by computer, it is desirable to label the <em>x</em> and <em>y</em> axes with &#8220;nice&#8221; numbers: simple decimal numbers. For example, if the data range is 105 to 543, we&#8217;d probably want to plot the range from 100 to 600 and put tick marks every 100 units. Or if the data range is 2.04 to 2.16, we&#8217;d probably plot a range from 2.00 to 2.20 with a tick spacing of 0.05. Humans are good at choosing such &#8220;nice&#8221; numbers, but simplistic algorithms are not. The naïve label-selection algorithm takes the data range and divides it into n equal intervals, but this usually results in ugly tick labels. We here describe a simple method for generating nice graph labels.</p>
<p>The primary observation is that the &#8220;nicest&#8221; numbers in decimal are 1, 2, and 5, and all power-of-ten multiples of these numbers. We will use only such numbers for the tick spacing, and place tick marks at multiples of the tick spacing&#8230;</p></blockquote>
<p><span id="more-99"></span>I used the pseudo-code example in this book to create the following class in Java:</p>
<pre class="brush: java; title: ; notranslate">
public class NiceScale {

	private double minPoint;
	private double maxPoint;
	private double maxTicks = 10;
	private double tickSpacing;
	private double range;
	private double niceMin;
	private double niceMax;

	/**
	 * Instantiates a new instance of the NiceScale class.
	 *
	 * @param min the minimum data point on the axis
	 * @param max the maximum data point on the axis
	 */
	public NiceScale(double min, double max) {
		this.minPoint = min;
		this.maxPoint = max;
		calculate();
	}

	/**
	 * Calculate and update values for tick spacing and nice
	 * minimum and maximum data points on the axis.
	 */
	private void calculate() {
		this.range = niceNum(maxPoint - minPoint, false);
		this.tickSpacing = niceNum(range / (maxTicks - 1), true);
		this.niceMin =
			Math.floor(minPoint / tickSpacing) * tickSpacing;
		this.niceMax =
			Math.ceil(maxPoint / tickSpacing) * tickSpacing;
	}

	/**
	 * Returns a &quot;nice&quot; number approximately equal to range Rounds
	 * the number if round = true Takes the ceiling if round = false.
	 *
	 * @param range the data range
	 * @param round whether to round the result
	 * @return a &quot;nice&quot; number to be used for the data range
	 */
	private double niceNum(double range, boolean round) {
		double exponent; /** exponent of range */
		double fraction; /** fractional part of range */
		double niceFraction; /** nice, rounded fraction */

		exponent = Math.floor(Math.log10(range));
		fraction = range / Math.pow(10, exponent);

		if (round) {
				if (fraction &lt; 1.5)
					niceFraction = 1;
				else if (fraction &lt; 3)
					niceFraction = 2;
				else if (fraction &lt; 7)
					niceFraction = 5;
				else
					niceFraction = 10;
		} else {
				if (fraction &lt;= 1)
					niceFraction = 1;
				else if (fraction &lt;= 2)
					niceFraction = 2;
				else if (fraction &lt;= 5)
					niceFraction = 5;
				else
					niceFraction = 10;
		}

		return niceFraction * Math.pow(10, exponent);
	}

	/**
	 * Sets the minimum and maximum data points for the axis.
	 *
	 * @param minPoint the minimum data point on the axis
	 * @param maxPoint the maximum data point on the axis
	 */
	public void setMinMaxPoints(double minPoint, double maxPoint) {
		this.minPoint = minPoint;
		this.maxPoint = maxPoint;
		calculate();
	}

	/**
	 * Sets maximum number of tick marks we're comfortable with
	 *
	 * @param maxTicks the maximum number of tick marks for the axis
	 */
	public void setMaxTicks(double maxTicks) {
		this.maxTicks = maxTicks;
		calculate();
	}

	/**
	 * Gets the tick spacing.
	 *
	 * @return the tick spacing
	 */
	public double getTickSpacing() {
		return tickSpacing;
	}

	/**
	 * Gets the &quot;nice&quot; minimum data point.
	 *
	 * @return the new minimum data point for the axis scale
	 */
	public double getNiceMin() {
		return niceMin;
	}

	/**
	 * Gets the &quot;nice&quot; maximum data point.
	 *
	 * @return the new maximum data point for the axis scale
	 */
	public double getNiceMax() {
		return niceMax;
	}
}
</pre>
<p>We can then make use of the above code like this:</p>
<pre class="brush: java; title: ; notranslate">
NiceScale numScale = new NiceScale(-0.085, 0.173);

System.out.println(&quot;Tick Spacing:\t&quot; + numScale.getTickSpacing());
System.out.println(&quot;Nice Minimum:\t&quot; + numScale.getNiceMin());
System.out.println(&quot;Nice Maximum:\t&quot; + numScale.getNiceMax());
</pre>
<p>Which will then output nicely formatted numbers for use in whatever application for which you need to create pretty scales. =D</p>
<blockquote><p>
Tick Spacing:	0.05<br />
Nice Minimum:	-0.1<br />
Nice Maximum:	0.2
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.trollop.org/2011/03/15/algorithm-for-optimal-scaling-on-a-chart-axis/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Safari 5.1 in OS X 10.7 Lion &amp; Self-Signed Certificates</title>
		<link>http://www.trollop.org/2011/03/06/safari-5-1-in-os-x-10-7-lion-self-signed-certificates/</link>
		<comments>http://www.trollop.org/2011/03/06/safari-5-1-in-os-x-10-7-lion-self-signed-certificates/#comments</comments>
		<pubDate>Sun, 06 Mar 2011 09:54:34 +0000</pubDate>
		<dc:creator>Steffen L. Norgren</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[Mac OS X 10.5]]></category>
		<category><![CDATA[os x 10.7 lion]]></category>
		<category><![CDATA[os x lion]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[self-signed certificate]]></category>
		<category><![CDATA[webkit2]]></category>

		<guid isPermaLink="false">http://www.trollop.org/?p=48</guid>
		<description><![CDATA[I recently installed the developer preview of Mac OS X 10.7 Lion and have been quite pleased with the update. However, apart from the AFP issue, which was quickly fixed, and the Time Machine issue, which remains unsolved, it appears that Safari 5.1 does not like self-signed certificates! Fortunately, there is a way to force ]]></description>
			<content:encoded><![CDATA[<p>I recently installed the developer preview of <a title="Mac OS X 10.7 Lion" href="http://www.apple.com/macosx/lion/">Mac OS X 10.7 Lion</a> and have been quite pleased with the update. However, apart from the <a title="Netatalk AFP &amp; Mac OS X 10.7 Lion" href="http://www.trollop.org/2011/03/06/netatalk-afp-mac-os-x-10-7-lion/">AFP issue</a>, which was quickly fixed, and the Time Machine issue, which remains unsolved, it appears that Safari 5.1 does not like self-signed certificates!</p>
<div id="attachment_72" class="wp-caption aligncenter" style="width: 510px"><a href="http://www.trollop.org/wp-content/uploads/2011/03/Safari-5.1-Error.png"><img class="size-full wp-image-72" title="Safari 5.1 Error" src="http://www.trollop.org/wp-content/uploads/2011/03/Safari-5.1-Error.png" alt="Safari can’t open the page. Safari can’t open the page “https://example.org/”. The error is: “The certificate for this server is invalid. You might be connecting to a server that is pretending to be “example.org” which could put your confidential information at risk.” (NSURLErrorDomain:-1202) Please choose Safari &gt; Report Bugs to Apple, note the error number, and describe what you did before you saw this message." width="500" height="251" /></a><p class="wp-caption-text">The certificate for this server is invalid. (NSURLErrorDomain:-1202)</p></div>
<p>Fortunately, there is a way to force Safari 5.1 to accept self-signed certificates. Now I know one could dump the certificate via openssl and the command line, but this method did not work for me since I am accessing my sites on an internal network and it would always dump the certificate for my default Apache virtual host. As such, the instructions below use a sort of round about method to import these certificates, but it works.</p>
<p>Basically these instructions show you how to use Firefox to export a self-signed SSL certificate and import it into Keychain Access. Hopefully it helps a few people out.</p>
<p><span id="more-48"></span></p>
<ol>
<li>Open <a title="Mozilla Firefox" href="http://www.mozilla.com/en-US/firefox/">Firefox</a> and navigate to the offending site. You will be greeted with the following error unless you&#8217;ve already added an exception in Firefox. If you have already added an exception, go into your settings and remove the exception for now.
<p><a href="http://www.trollop.org/wp-content/uploads/2011/03/Firefox-Error.png"><img class="alignnone size-medium wp-image-74" title="Firefox Error" src="http://www.trollop.org/wp-content/uploads/2011/03/Firefox-Error-300x252.png" alt="Firefox Untrusted Certificate Error" width="300" height="252" /></a></li>
<li>Click on &#8220;Add Exception&#8221; and you&#8217;ll be greeted with the following dialog.
<p><a href="http://www.trollop.org/wp-content/uploads/2011/03/Firefox-Add-Exception.png"><img class="alignnone size-medium wp-image-66" title="Firefox Add Exception" src="http://www.trollop.org/wp-content/uploads/2011/03/Firefox-Add-Exception-300x259.png" alt="Firefox Add Exception Dialogue" width="300" height="259" /></a></li>
<li>Click on &#8220;View&#8230;&#8221; and then the &#8220;Details&#8221; tab in order to view the details of the certificate.
<p><a href="http://www.trollop.org/wp-content/uploads/2011/03/Firefox-View-Certificate.png"><img class="alignnone size-medium wp-image-69" title="Firefox View Certificate" src="http://www.trollop.org/wp-content/uploads/2011/03/Firefox-View-Certificate-286x300.png" alt="" width="286" height="300" /></a></li>
<li>Click on &#8220;Export&#8230;&#8221; and save the certificate to somewhere convenient. Make sure to add &#8220;.crt&#8221; to the end of the file name in order to allow for easy import.
<p><a href="http://www.trollop.org/wp-content/uploads/2011/03/Firefox-Export-Certificate.png"><img class="alignnone size-medium wp-image-68" title="Firefox Export Certificate" src="http://www.trollop.org/wp-content/uploads/2011/03/Firefox-Export-Certificate-300x142.png" alt="Firefox Export Certificate Dialogue" width="300" height="142" /></a></li>
<li>Open the file and it&#8217;ll bring up Keychain Access. Select &#8220;Aways Trust&#8221;, but I don&#8217;t think it really matters since you&#8217;ll need to modify the trust settings later anyhow.
<p><a href="http://www.trollop.org/wp-content/uploads/2011/03/Keychain-Access-Import.png"><img class="alignnone size-medium wp-image-70" title="Keychain Access Import" src="http://www.trollop.org/wp-content/uploads/2011/03/Keychain-Access-Import-300x185.png" alt="Keychain Access Import Certificate" width="300" height="185" /></a></li>
<li>Double-click on the newly imported certificate and expand the &#8220;trust&#8221; section. From the &#8220;When using this certificate&#8221; drop down list, select &#8220;Always Trust&#8221;.
<p><a href="http://www.trollop.org/wp-content/uploads/2011/03/Keychain-Access-Trust.png"><img class="alignnone size-medium wp-image-71" title="Keychain Access Trust" src="http://www.trollop.org/wp-content/uploads/2011/03/Keychain-Access-Trust-300x252.png" alt="Keychain Access Trust Certificate" width="300" height="252" /></a></li>
</ol>
<p>And voilà! You should now be able to access the site that uses a self-signed certificate. It should be noted that Mac OS X 10.7 Lion is still in beta and this annoyance may simply be a relic from their switchover from <a title="WebKit" href="http://www.webkit.org/">WebKit</a> to <a title="WebKit2" href="http://trac.webkit.org/wiki/WebKit2">WebKit2</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trollop.org/2011/03/06/safari-5-1-in-os-x-10-7-lion-self-signed-certificates/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Netatalk AFP &amp; Mac OS X 10.7 Lion</title>
		<link>http://www.trollop.org/2011/03/06/netatalk-afp-mac-os-x-10-7-lion/</link>
		<comments>http://www.trollop.org/2011/03/06/netatalk-afp-mac-os-x-10-7-lion/#comments</comments>
		<pubDate>Sun, 06 Mar 2011 08:42:55 +0000</pubDate>
		<dc:creator>Steffen L. Norgren</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[afp]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netatalk]]></category>
		<category><![CDATA[os x 10.7 lion]]></category>
		<category><![CDATA[os x lion]]></category>

		<guid isPermaLink="false">http://www.trollop.org/?p=53</guid>
		<description><![CDATA[Upon installing Mac OS X 10.7 Lion I discovered one niggling issue. I was unable to connect to my Gentoo Netatalk AFP server. Any connection attempts would result in the following error: After some Googling, I discovered a quick fix to the problem. Basically, if you haven&#8217;t updated your Netatalk config file for some time, ]]></description>
			<content:encoded><![CDATA[<p>Upon installing <a title="Apple Mac OS X 10.7 Lion" href="http://www.apple.com/macosx/lion/">Mac OS X 10.7 Lion</a> I discovered one niggling issue. I was unable to connect to my <a title="Gentoo Linux" href="http://gentoo.org">Gentoo</a> <a title="Netatalk" href="http://netatalk.sourceforge.net/">Netatalk</a> AFP server. Any connection attempts would result in the following error:</p>
<p><a href="http://www.trollop.org/wp-content/uploads/2011/03/AFP-Error.png"><img class="aligncenter size-full wp-image-55" title="AFP Error" src="http://www.trollop.org/wp-content/uploads/2011/03/AFP-Error.png" alt="AFP error when connecting to a Netatalk AFP server on Gentoo Linux" width="432" height="260" /></a></p>
<p>After some <a title="AFP Out Of Date In OS X Lion" href="http://www.readynas.com/forum/viewtopic.php?f=28&amp;t=51033">Googling</a>, I discovered a quick fix to the problem. Basically, if you haven&#8217;t updated your Netatalk config file for some time, you wouldn&#8217;t have UAMS DHX2 enabled by default. To enable UAMS DHX2 support, do the following:</p>
<p>Edit afpd.conf:</p>
<blockquote><p># vi /etc/netatalk/afpd.conf</p></blockquote>
<p>Make sure &#8220;uams_dhx2.so&#8221; is in the &#8220;-uamlist&#8221; options at the end of the file. For instance, mine looks like this:</p>
<blockquote><p>- -noddp -transall -uamlist uams_randnum.so,uams_dhx.so,uams_dhx2.so -nosavepassword -advertise_ssh -udp</p></blockquote>
<p>Then restart the Netatalk server. Please note that the init script may be different depending on your distribution.</p>
<blockquote><p># /etc/init.d/atalk restart</p></blockquote>
<p>Now you should be able to connect your OS X 10.7 Lion installation to a Linux AFP server. It should be noted, however, that despite AFP working in this setup, I have been unable to get Time Machine to work with these settings. If you&#8217;ve managed to get Time Machine to work with Netatalk, post a comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trollop.org/2011/03/06/netatalk-afp-mac-os-x-10-7-lion/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Uhhh…no?</title>
		<link>http://www.trollop.org/2008/10/19/uhhh%e2%80%a6no/</link>
		<comments>http://www.trollop.org/2008/10/19/uhhh%e2%80%a6no/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 22:59:42 +0000</pubDate>
		<dc:creator>Steffen L. Norgren</dc:creator>
				<category><![CDATA[Law]]></category>
		<category><![CDATA[Society & People]]></category>
		<category><![CDATA[!guilty]]></category>
		<category><![CDATA[execution]]></category>
		<category><![CDATA[innocent]]></category>

		<guid isPermaLink="false">http://www.trollop.org/?p=30</guid>
		<description><![CDATA[And this tidily sums up the court system in the U.S. (Via Criggo.)]]></description>
			<content:encoded><![CDATA[<p>And this tidily sums up the court system in the U.S.</p>
<p style="text-align:center;"><a href="http://criggo.files.wordpress.com/2008/10/executed.jpg"><img class="aligncenter size-full wp-image-249" style="border:1px solid black;" title="executed" src="http://criggo.files.wordpress.com/2008/10/executed.jpg?w=324h=149" alt="" width="324" height="149" /></a></p>
<p>(Via <a href="http://criggo.wordpress.com">Criggo</a>.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trollop.org/2008/10/19/uhhh%e2%80%a6no/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conformity is Good!</title>
		<link>http://www.trollop.org/2008/10/18/conformity-is-good/</link>
		<comments>http://www.trollop.org/2008/10/18/conformity-is-good/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 04:24:21 +0000</pubDate>
		<dc:creator>Steffen L. Norgren</dc:creator>
				<category><![CDATA[Society & People]]></category>
		<category><![CDATA[!education]]></category>
		<category><![CDATA[chomsky]]></category>
		<category><![CDATA[conformity]]></category>
		<category><![CDATA[lunacy]]></category>

		<guid isPermaLink="false">http://www.trollop.org/?p=24</guid>
		<description><![CDATA[I was going through my old screen-shots and discovered this gem from a social studies 11 quiz I took ages ago. I also sent this to Noam Chomsky and he responded with &#8220;Stalin would have loved it.&#]]></description>
			<content:encoded><![CDATA[<p>I was going through my old screen-shots and discovered this gem from a social studies 11 quiz I took ages ago.</p>
<div class="wp-caption alignnone" style="width: 394px"><a href="http://farm1.static.flickr.com/38/122388152_7ea685d7b7_o.jpg"><img class=" " title="Conformity is Good!" src="http://farm1.static.flickr.com/38/122388152_7ea685d7b7_o.jpg" alt="Conformity is Good! =D" width="384" height="288" /></a><p class="wp-caption-text">Conformity is Good! =D</p></div>
<p>I also sent this to Noam Chomsky and he responded with &#8220;Stalin would have loved it.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trollop.org/2008/10/18/conformity-is-good/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Printer Sharing With Mac OS X 10.5, Leopard</title>
		<link>http://www.trollop.org/2007/10/31/linux-printer-sharing-with-mac-os-x-105-leopard/</link>
		<comments>http://www.trollop.org/2007/10/31/linux-printer-sharing-with-mac-os-x-105-leopard/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 08:29:55 +0000</pubDate>
		<dc:creator>Steffen L. Norgren</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[CUPS]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Mac OS X 10.5]]></category>
		<category><![CDATA[printing]]></category>

		<guid isPermaLink="false">http://www.trollop.org/articles/2007/10/31/linux-printer-sharing-with-mac-os-x-105-leopard/</guid>
		<description><![CDATA[After upgrading to Apple&#8217;s Mac OS X 10.5, I found that my printers no longer existed. So I went to http://localhost:631 and tried adding my Gentoo CUPS printer share like I did before, but it refused to show up in the printers list. After some searching on the net, it seems that Apple has somewhat ]]></description>
			<content:encoded><![CDATA[<p>After upgrading to Apple&#8217;s Mac OS X 10.5, I found that my printers no longer existed. So I went to http://localhost:631 and tried adding my <a href="http://www.gentoo.org">Gentoo</a> <a href="http://www.cups.org">CUPS</a> printer share like I did before, but it refused to show up in the printers list. <img src='http://www.trollop.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>After some searching on the net, it seems that Apple has somewhat broken the way that it deals with Linux CUPS shares. Apparently it only searches for printers via Bounjour. In any case, I found a fix that works perfectly. <a href="http://discussions.apple.com/profile.jspa?userID=72028">Alessandro Dellavedova</a> posted <a href="http://discussions.apple.com/message.jspa?messageID=5681184">a fix</a> for the problem over on the Apple support forums. Below is a slightly more detailed version of what he did.</p>
<p><strong>WARNING:</strong> You will need administrator privileges to proceed with this fix.</p>
<ol>
<li>Open System Preferences.</li>
<li>Open Print &amp; Fax.</li>
<li>Right-click in the printer&#8217;s pane and select &#8220;Reset printing system&#8230;&#8221;</li>
<li>Open Terminal and type the following:sudo nano /etc/cups/cupsd.conf</li>
<li>Modify the first few lines such that they look similar to the following:Browsing On<br />
BrowseOrder allow,deny<br />
BrowseAllow all<br />
BrowseProtocols all<br />
BrowseRemoteProtocols all<br />
BrowsePoll <em>&lt;Your CUPS Server domain or IP&gt;</em>:631<br />
BrowsePort 631</li>
<li>Save the file</li>
<li>Restart the printing subsystem by typing in the following:sudo killall -HUP cupsd</li>
</ol>
<p>Now you should be able to see and add the printers on your Linux share.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trollop.org/2007/10/31/linux-printer-sharing-with-mac-os-x-105-leopard/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Flagship Posts Ventrilo Update for OS X 10.5&#8230; Sorta</title>
		<link>http://www.trollop.org/2007/10/28/flagship-posts-ventrilo-update-for-os-x-105-sorta/</link>
		<comments>http://www.trollop.org/2007/10/28/flagship-posts-ventrilo-update-for-os-x-105-sorta/#comments</comments>
		<pubDate>Mon, 29 Oct 2007 06:30:17 +0000</pubDate>
		<dc:creator>Steffen L. Norgren</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[flagship]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[OS X 10.5]]></category>
		<category><![CDATA[ventrilo]]></category>

		<guid isPermaLink="false">http://www.trollop.org/articles/2007/10/28/flagship-posts-ventrilo-update-for-os-x-105-sorta/</guid>
		<description><![CDATA[It seems that the developers at Flagship Industries have finally posted a fix to their Ventrilo client for Mac OS X 10.5, Leopard. You know, the bug fix that takes all of 5-minutes to correct. However, they only fixed the problem in the main window and nowhere else. Here&#8217;s what they had to say: It ]]></description>
			<content:encoded><![CDATA[<p>It seems that the developers at Flagship Industries have finally posted a fix to their Ventrilo client for Mac OS X 10.5, Leopard. You know, the bug fix that takes all of 5-minutes to correct. However, they only fixed the problem in the main window and nowhere else.</p>
<p>Here&#8217;s what <a href="http://www.ventrilo.com/forums/showthread.php?t=22989" title="Bitter Ventrilo bug fix announcement.">they had to say</a>:</p>
<blockquote><p>It is intended to solve the user list window being empty after connecting when running OSX 10.5. This is the only change. The same problem also occurred in a few other windows as well.</p>
<p>If you are not running OSX 10.5 then<strong><em> don&#8217;t waste your time</em> </strong>downloading it as there is no advantage.</p>
<p>This is an interim update until we release the next major upgrade here soon.</p>
<p>FYI,<br />
Flag</p>
<p>__________________<br />
Flagship Industries, Inc.<br />
<a href="http://www.ventrilo.com/" target="_blank">www.ventrilo.com</a></p></blockquote>
<p>Certainly doesn&#8217;t sound like he was very happy about making this fix. In any case, if you would like to download their new version, you can find it <a href="http://download1.ventrilo.com/dl.php?client_darwin_universal32&amp;2349776465" title="Somewhat patched version of Ventrilo">here</a>.</p>
<p>Otherwise, if you want the fully patched version, you can still access it from <a href="http://www.trollop.org/articles/2007/10/26/patched-ventrilo-for-mac-os-x-10-5-leopard/" title="Fully patched version of Ventrilo for Apple's Mac OS X 10.5, Leopard">my site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trollop.org/2007/10/28/flagship-posts-ventrilo-update-for-os-x-105-sorta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrated from Typo back to WordPress</title>
		<link>http://www.trollop.org/2007/10/26/migrated-from-typo-back-to-wordpress/</link>
		<comments>http://www.trollop.org/2007/10/26/migrated-from-typo-back-to-wordpress/#comments</comments>
		<pubDate>Sat, 27 Oct 2007 03:52:01 +0000</pubDate>
		<dc:creator>Steffen L. Norgren</dc:creator>
				<category><![CDATA[Society & People]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[boring]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[typo]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.trollop.org/articles/2007/10/26/migrated-from-typo-back-to-wordpress/</guid>
		<description><![CDATA[Well, after many years of using Typo as my main blogging engine, I have switched back to WordPress. I had initially started using Typo because it was the only Rails-based blogging engine out there. Unfortunately, the quality of their project seems to have declined over the years. After Typo decided to explode at me after ]]></description>
			<content:encoded><![CDATA[<p>Well, after many years of using <a href="http://typosphere.org/" target="_blank" title="Typo">Typo </a>as my main blogging engine, I have switched back to <a href="http://wordpress.org/" title="WordPress" target="_blank">WordPress</a>. I had initially started using Typo because it was the only Rails-based blogging engine out there. Unfortunately, the quality of their project seems to have declined over the years.</p>
<p>After Typo decided to explode at me after using a quotation mark in tag for a new post, I decided I would go back to WordPress, my first blogging engine. WordPress has a long and well supported history and I will likely have fewer headaches for a blog that I barely touch in the first place. <img src='http://www.trollop.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Unfortunately, since there are no up-to-date utilities to migrate the database from Typo to WordPress, I ended up having to copy/paste all of the articles that I felt were worth saving. The problem was that I couldn&#8217;t copy over any of the comments made to any of my posts.</p>
<p>I apologize to anyone who left helpful/supportive comments over the years, but I couldn&#8217;t save you all!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trollop.org/2007/10/26/migrated-from-typo-back-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ventrilo Bows to Pressure</title>
		<link>http://www.trollop.org/2007/10/26/ventrilo-bows-to-pressure/</link>
		<comments>http://www.trollop.org/2007/10/26/ventrilo-bows-to-pressure/#comments</comments>
		<pubDate>Sat, 27 Oct 2007 03:34:53 +0000</pubDate>
		<dc:creator>Steffen L. Norgren</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[caved in]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[OS X 10.5]]></category>
		<category><![CDATA[ventrilo]]></category>

		<guid isPermaLink="false">http://www.trollop.org/articles/2007/10/26/ventrilo-bows-to-pressure/</guid>
		<description><![CDATA[Anyhow, it seems that Ventrilo has decided to bow to the pressure of people from the Mac community, such as myself. I suppose they got tired of deleting all mine and related thread on how to fix this problem in 10 fricking minutes!Ventrilo had this to say: There is a known issue with the Ventrilo ]]></description>
			<content:encoded><![CDATA[<p>Anyhow, it seems that Ventrilo has decided to bow to the pressure of people from the Mac community, such as myself. I suppose they got tired of deleting all mine and related thread on how to fix this problem in 10 fricking minutes!Ventrilo had <a href="http://ventrilo.com/forums/showthread.php?t=22966" title="Ventrilo Bows to Pressure" target="_blank">this to say</a>:</p>
<blockquote><p>There is a known issue with the Ventrilo Mac client 2.3.2.Prototype.15 that prevents the main user list window from displaying the channels and connected users.</p>
<p>While we have this fixed in our soon to be released major upgrade we did not perform the changes to the 2.3 series of programs only because we had hoped to release the major upgrade before Apple was able to release 10.5. Sadly this did not happen due to a few problems found during the beta testing.</p>
<p>While the delay would only have been a few weeks this seems to be a problem for some people. *sigh*</p>
<p>I will see about producing an proto.16 that fixes this problem, but not until I have an official copy of 10.5 in my hands to test with. Assuming BestBuy has it on their shelves tonight.</p>
<p>Any and all (or should I say more) hateful and mean spirited posts from the Mac community on this subject will be promptly deleted. If you can&#8217;t control your temper then don&#8217;t even bother posting.</p></blockquote>
<p>Now I wonder how many years it&#8217;ll take them to get this build out. &gt;:D</p>
<p><strong>UPDATE:</strong> It seems that the developer at Ventrilo decided that this post sounded just a tad too bitter and decided to delete it. Luckily I quoted him for posterity!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trollop.org/2007/10/26/ventrilo-bows-to-pressure/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

