<?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>ursecta.com &#187; Mac</title>
	<atom:link href="http://ursecta.com/wp/category/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://ursecta.com/wp</link>
	<description>J. Martin Wehlou on Security, Software Development, and Medicine</description>
	<lastBuildDate>Wed, 25 Jan 2012 10:49:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>A platform too many</title>
		<link>http://ursecta.com/wp/2012/01/a-platform-too-many/</link>
		<comments>http://ursecta.com/wp/2012/01/a-platform-too-many/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 10:49:15 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[iPad]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://ursecta.com/wp/?p=1258</guid>
		<description><![CDATA[With the new iBooks and iTunes U app, I&#8217;m missing a piece of the puzzle. Just as truckloads of schools have given the kids MacBooks, Apple rolls out the new textbooks to iPads only. Are we supposed to switch over the schoolkids to iPads now, and lose the OSX apps they use? It would seem [...]]]></description>
			<content:encoded><![CDATA[<p>With the new iBooks and iTunes U app, I&#8217;m missing a piece of the puzzle. Just as truckloads of schools have given the kids MacBooks, Apple rolls out the new textbooks to iPads only. Are we supposed to switch over the schoolkids to iPads now, and lose the OSX apps they use?</p>
<p>It would seem logical that iBooks and iTunes U would be available in versions for OSX as well, but there&#8217;s no sign of that. Or is Apple planning on running iOS apps on OSX in something like the iOS simulator? What&#8217;s going on here? As it stands now, it makes no sense.</p>
]]></content:encoded>
			<wfw:commentRss>http://ursecta.com/wp/2012/01/a-platform-too-many/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Netbooting on OSX SL Server</title>
		<link>http://ursecta.com/wp/2011/01/netbooting-on-osx-sl-server/</link>
		<comments>http://ursecta.com/wp/2011/01/netbooting-on-osx-sl-server/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 14:12:22 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Networks]]></category>

		<guid isPermaLink="false">http://ursecta.com/wp/?p=1213</guid>
		<description><![CDATA[Once I got tftp working on IPv4, I still couldn&#8217;t get the Macbook client to download the boot or image files. Wireshark showed that the client didn&#8217;t get any file when it sent &#8220;acknowledge data block 0&#8243;. Nothing. So I installed tftp-hpa from Macports, hoping that would solve my problem, which it didn&#8217;t. But a [...]]]></description>
			<content:encoded><![CDATA[<p>Once <a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/2011/01/osx-sl-tftp-doesnt-work/" title="(106 hits)">I got tftp working on IPv4</a>, I still couldn&#8217;t get the Macbook client to download the boot or image files. Wireshark showed that the client didn&#8217;t get any file when it sent &#8220;acknowledge data block 0&#8243;. Nothing. So I installed tftp-hpa from Macports, hoping that would solve my problem, which it didn&#8217;t. But a few tips on that:</p>
<p>Install tftp-hpa using the &#8220;server&#8221; variant like so:</p>
<pre>sudo port install tftp-hpa +server</pre>
<p>Then go into the preference file (which isn&#8217;t in the same place as most plist files):</p>
<pre>sudo pico /Library/LaunchDaemons/org.macports.tftpd.plist</pre>
<p>&#8230;and remove the &#8220;-s&#8221; command line parameter, while changing the path to &#8220;/private/tftpboot/&#8221;. The &#8220;-s&#8221; parameter forced a chroot which won&#8217;t allow tftp to follow symlinks outside the given path, making netbooting impossible.</p>
<p>Then, and this is the crucial step, change the block size to max 512 by adding the &#8220;-B&#8221; option with the value &#8220;512&#8243;. What seemed to be happening in my installation is that the client requested a block size of 8192, the server approved it, and things just stopped working. Probably something to do with the switches I have, but crimping it to 512 fixed the problem. Of course, if you&#8217;re doing netbooting on a regular basis, or run diskless workstations, 512 may be intolerably slow, so then it could be worth experimenting with higher values.</p>
<p>I ended up with a plist file for tftp-hpa looking like this:</p>
<pre>
&lt;?xml version=&#x27;1.0&#x27; encoding=&#x27;UTF-8&#x27;?&gt;
&lt;!DOCTYPE plist PUBLIC &quot;-//Apple Computer//DTD PLIST 1.0//EN&quot;
&quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot; &gt;
&lt;plist version=&#x27;1.0&#x27;&gt;
&lt;dict&gt;
&lt;key&gt;Label&lt;/key&gt;&lt;string&gt;org.macports.tftpd&lt;/string&gt;
&lt;key&gt;ProgramArguments&lt;/key&gt;
&lt;array&gt;
        &lt;string&gt;/opt/local/bin/daemondo&lt;/string&gt;
        &lt;string&gt;--label=tftpd&lt;/string&gt;
        &lt;string&gt;--start-cmd&lt;/string&gt;
        &lt;string&gt;/opt/local/sbin/tftpd&lt;/string&gt;
        <b>&lt;string&gt;-B&lt;/string&gt;
        &lt;string&gt;512&lt;/string&gt;</b>
        &lt;string&gt;-L&lt;/string&gt;
        &lt;string&gt;<b>/private/tftpboot/</b>&lt;/string&gt;
        &lt;string&gt;;&lt;/string&gt;
        &lt;string&gt;--pid=exec&lt;/string&gt;
&lt;/array&gt;
&lt;key&gt;Debug&lt;/key&gt;&lt;false/&gt;
&lt;key&gt;Disabled&lt;/key&gt;&lt;true/&gt;
&lt;key&gt;OnDemand&lt;/key&gt;&lt;false/&gt;
&lt;/dict&gt;
&lt;/plist&gt;
</pre>
<p>After modifying the file, stop and restart tftp-hpa by:</p>
<pre>sudo launchctl unload /Library/LaunchDaemons/org.macports.tftpd.plist
sudo launchctl load -F /Library/LaunchDaemons/org.macports.tftpd.plist</pre>
<p>It&#8217;s entirely possible I never needed to switch tftp servers from the default to tftp-hpa, but now I did, I don&#8217;t know if I&#8217;ve got the courage to switch back to try the original. Checking the man pages for the original tftpd server, I can find no setting for max block-size, so maybe tftp-hpa is necessary after all, just to be able to crimp the blocks enough.</p>
]]></content:encoded>
			<wfw:commentRss>http://ursecta.com/wp/2011/01/netbooting-on-osx-sl-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The first thing you should do on a new Mac</title>
		<link>http://ursecta.com/wp/2010/12/the-first-thing-you-should-do-on-a-new-mac/</link>
		<comments>http://ursecta.com/wp/2010/12/the-first-thing-you-should-do-on-a-new-mac/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 14:21:46 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://ursecta.com/wp/?p=1127</guid>
		<description><![CDATA[The very first thing you should always do on your new Mac is to make sure you run as non-admin. This protects you against most malware out on the net, since it makes it very difficult to install anything without you knowing about it. It doesn&#8217;t exclude it entirely, but it makes a major difference. [...]]]></description>
			<content:encoded><![CDATA[<p>The very first thing you should always do on your new Mac is to make sure you run as non-admin. This protects you against most malware out on the net, since it makes it very difficult to install anything without you knowing about it. It doesn&#8217;t exclude it entirely, but it makes a major difference.</p>
<p><span id="more-1127"></span></p>
<p>First, open System Preferences&#8230;:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/12/2341.png" title="(43 hits)"><img class="aligncenter size-full wp-image-1164" title="234" src="http://ursecta.com/wp/wp-content/uploads/2010/12/2341.png" alt="" width="242" height="341" /></a></p>
<p>Then, select &#8220;Accounts&#8221;:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/12/235.png" title="(41 hits)"><img class="aligncenter size-medium wp-image-1134" title="235" src="http://ursecta.com/wp/wp-content/uploads/2010/12/235-273x300.png" alt="" width="273" height="300" /></a></p>
<p>Once in the accounts panel, you&#8217;ll see your accounts to the left. Chances are you&#8217;ll only have one, while I have a bunch on this system. The one you have will probably have the subtitle &#8220;Admin&#8221;:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/12/2361.png" title="(43 hits)"><img class="aligncenter size-full wp-image-1137" title="236" src="http://ursecta.com/wp/wp-content/uploads/2010/12/2361.png" alt="" width="378" height="546" /></a></p>
<p>You&#8217;ll see a checkbox to the right that says &#8220;Allow user to administer this computer&#8221;, but you can&#8217;t unselect this unless there is at least one other account that is set to &#8220;administer this computer&#8221;, so we need to create another account with that ability first.</p>
<p>So, click the &#8220;+&#8221; down to the left, and what you&#8217;ll see then is this:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/12/237.png" title="(40 hits)"><img class="aligncenter size-medium wp-image-1138" title="237" src="http://ursecta.com/wp/wp-content/uploads/2010/12/237-300x240.png" alt="" width="300" height="240" /></a></p>
<p><a href="http://ursecta.com/wp/wp-content/uploads/2010/12/237.png"></a>See to it that the dropbox at the top says &#8220;Administrator&#8221;, then fill in the rest as you wish. You can use the same password for this account as for your regular account, but see to it that it is a strong password (long and complex). I see no reason why you should necessarily choose another password here. It could look like this, when you&#8217;re done:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/12/238.png" title="(44 hits)"><img class="aligncenter size-full wp-image-1139" title="238" src="http://ursecta.com/wp/wp-content/uploads/2010/12/238.png" alt="" width="477" height="381" /></a></p>
<p>Click &#8220;Create Account&#8221; and this is what you should see in the &#8220;Accounts&#8221; pane:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/12/239.png" title="(41 hits)"><img class="aligncenter size-full wp-image-1141" title="239" src="http://ursecta.com/wp/wp-content/uploads/2010/12/239.png" alt="" width="378" height="546" /></a></p>
<p><a href="http://ursecta.com/wp/wp-content/uploads/2010/12/239.png"></a>Now you can select your original account and deselect &#8220;Allow user to administer this computer&#8221;:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/12/240.png" title="(42 hits)"><img class="aligncenter size-full wp-image-1142" title="240" src="http://ursecta.com/wp/wp-content/uploads/2010/12/240.png" alt="" width="378" height="546" /></a></p>
<p>You&#8217;ll probably be asked to reboot at this point, at least if you were logged in as &#8220;Noobie Json&#8221; as in this example (which I wasn&#8217;t). Once you start up again, log in as &#8220;Noobie Json&#8221; or whatever your account is called, <em>not </em>as &#8220;NoobieAdmin&#8221;. You should probably <em>never</em> log in as &#8220;NoobieAdmin&#8221;, ever.</p>
<p>From now on, whenever you need to do something that requires admin level rights, the system will ask you to provide an admin username and password in a dialogbox. For example, if I try to delete an application from &#8220;Applications&#8221;, the system pops up a dialog box and I have to provide the &#8220;NoobieAdmin&#8221; credentials:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/12/241.png" title="(46 hits)"><img class="aligncenter size-full wp-image-1143" title="241" src="http://ursecta.com/wp/wp-content/uploads/2010/12/241.png" alt="" width="468" height="271" /></a></p>
<p>Now, this never happens without me knowing exactly why it happened, so don&#8217;t <em>ever</em> go input your admin credentials unless you know why you should. If you have any doubt, click on the &#8220;Details&#8221; and it will tell you a little bit more:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/12/243.png" title="(44 hits)"><img class="aligncenter size-full wp-image-1145" title="243" src="http://ursecta.com/wp/wp-content/uploads/2010/12/243.png" alt="" width="468" height="351" /></a></p>
<p>In this particular case, &#8220;Details&#8221; didn&#8217;t tell me much I didn&#8217;t already know, but when in doubt, in may often tell you exactly what you want to know. If some malware is requesting admin credentials, the app that issued the request will be clearly shown.</p>
<p>If you&#8217;re really paranoid, click the double arrow to the right and you&#8217;ll see the entire folder hierarchy leading to the app that requested the credentials. Just in case some malware called itself &#8220;Finder&#8221; for instance. In this case we&#8217;ll see that &#8220;Finder&#8221; is part of &#8220;Core Services&#8221; which in turn is in the System/Library. Totally kosher, in other words:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/12/2441.png" title="(42 hits)"><img class="aligncenter size-full wp-image-1154" title="244" src="http://ursecta.com/wp/wp-content/uploads/2010/12/2441.png" alt="" width="468" height="395" /></a></p>
<p>OSX very rarely asks for admin rights, so there is very little risk of you getting into a habit of just entering your credentials without thinking. Yes, the first day you use your new Mac, you will do this a number of times until it is all set up, but after that, it becomes a rarity.</p>
]]></content:encoded>
			<wfw:commentRss>http://ursecta.com/wp/2010/12/the-first-thing-you-should-do-on-a-new-mac/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Macport and mono</title>
		<link>http://ursecta.com/wp/2010/12/macport-and-mono/</link>
		<comments>http://ursecta.com/wp/2010/12/macport-and-mono/#comments</comments>
		<pubDate>Sun, 19 Dec 2010 19:15:58 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://ursecta.com/wp/?p=1125</guid>
		<description><![CDATA[Just a heads-up: Macport quit working on my machine. Link errors, missing architecture in sqllite3 dynamic libs or something. After much agonizing, I began to suspect mono, especially since the sqllite3 library port wanted to link against was in the mono path. There&#8217;s a shell script in mono called uninstallMono.sh that does a fine job [...]]]></description>
			<content:encoded><![CDATA[<p>Just a heads-up: Macport quit working on my machine. Link errors, missing architecture in sqllite3 dynamic libs or something. After much agonizing, I began to suspect mono, especially since the sqllite3 library port wanted to link against was in the mono path. There&#8217;s a shell script in mono called uninstallMono.sh that does a fine job of getting rid of it. Run that, and things work fine again.</p>
<p>I&#8217;m guessing the mono libraries are simply put in too early in paths, which may cause the problem, but since I&#8217;ve got actual work to do, I&#8217;ll just roll my eyes and get on with life.</p>
<p><em>Update:</em> the above did solve most of my problems, but not all. After perusing more forums than I&#8217;d like to peruse, I hit on a remark from one of the Macport developers that you should always reinstall the entire Macport system after every major OSX upgrade. In other words, I installed my Macport under Leopard, then upgraded to Snow Leopard, so it got unhinged. The solution is to entirely remove the /opt/local directory contents, then reinstall Macport from source. Personally, I find it a little bit scary (like, is Macport <em>really</em> the only system using opt/local?) so I tarballed the directory first, just in case. But I don&#8217;t think that is necessary, but time will tell.</p>
<p>Anyway, after reinstalling Macport this way, the rest seems to have straightened itself out.</p>
]]></content:encoded>
			<wfw:commentRss>http://ursecta.com/wp/2010/12/macport-and-mono/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>If all else fails, try Preview</title>
		<link>http://ursecta.com/wp/2010/11/if-all-else-fails-try-preview/</link>
		<comments>http://ursecta.com/wp/2010/11/if-all-else-fails-try-preview/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 13:02:29 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[canon]]></category>
		<category><![CDATA[lide 60]]></category>
		<category><![CDATA[osx drivers]]></category>
		<category><![CDATA[preview]]></category>
		<category><![CDATA[twain]]></category>

		<guid isPermaLink="false">http://ursecta.com/wp/?p=1102</guid>
		<description><![CDATA[I&#8217;m totally amazed at all the things Preview does in OSX Snow Leopard. I already use it for knocking out backgrounds, using the &#8220;Instant Alpha&#8221; tool in the &#8220;Select&#8221; dropdown. But what happened today is more interesting. To my everlasting regret I got me a Canon Lide 60 scanner a couple of years ago. Canon&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m totally amazed at all the things Preview does in OSX Snow Leopard. I already use it for knocking out backgrounds, using the &#8220;Instant Alpha&#8221; tool in the &#8220;Select&#8221; dropdown. But what happened today is more interesting.</p>
<p>To my everlasting regret I got me a Canon Lide 60 scanner a couple of years ago. Canon&#8217;s hardware is pretty nice, but their driver support stinks, especially for OSX. This scanner costs me on average much more work than it should to keep going. Same for my Pixma 5200 Canon printer, by the way. Awful.</p>
<p>Anyway, I needed to scan a page from a mag to show on a slide. Hooked up the scanner, tried Canon Toolbox, and sure enough &#8220;Failed to open driver&#8221;. Internet next, user groups, downloads, complicated shit about uninstalling, reinstalling, rebooting the Mac Pro ten times. No joy. After a few hours (!) of this, I got an inspiration: hey, since I saw &#8220;Twain&#8221; mentioned, maybe Acrobat Pro 9 (CS4) could import it, instead of using Canon Toolbox? Sure enough, Acrobat found the scanner, looked it over, and promptly crashed.</p>
<p>And then I got my second inspiration: check out OSX Preview. And yes, that one worked. Not only that, but it automatically calibrated the scanner, proceeded to analyze the page, divided it into sections, scanned it, and served it up already partitioned into useful chunks. See the screenshots below. All the time I was just sitting there watching, doing nothing. The only thing I had to do was select the image and hit cmd-R twice to turn it the right way up. </p>
<p>Jeez, that innocent looking little Preview app is becoming mighty useful for any number of things.</p>
<p>I probably should mention that the driver I installed came in a file called &#8220;lide60osx11131en.dmg&#8221; to be found, somehow, on Canon&#8217;s support site. It installs both the drivers and the toolbox, but the toolbox doesn&#8217;t work.</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/11/083.png" title="(90 hits)"><img src="http://ursecta.com/wp/wp-content/uploads/2010/11/083-279x300.png" alt="" title="083" width="279" height="300" class="aligncenter size-medium wp-image-1104" /></a></p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/11/084.png" title="(87 hits)"><img src="http://ursecta.com/wp/wp-content/uploads/2010/11/084-300x246.png" alt="" title="084" width="300" height="246" class="aligncenter size-medium wp-image-1106" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ursecta.com/wp/2010/11/if-all-else-fails-try-preview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OSX Mail and IMAP tamed</title>
		<link>http://ursecta.com/wp/2010/05/osx-mail-and-imap-tamed/</link>
		<comments>http://ursecta.com/wp/2010/05/osx-mail-and-imap-tamed/#comments</comments>
		<pubDate>Thu, 06 May 2010 12:03:05 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[OSX Mail Macmail IMAP Folders]]></category>

		<guid isPermaLink="false">http://ursecta.com/wp/?p=689</guid>
		<description><![CDATA[Oh, boy, this wasn&#8217;t easy. I&#8217;ve been trying for years to get my email life organized. The problem is this: I&#8217;ve got almost ten different email accounts I subscribe to tens of mailing lists I want mailing lists to be automatically moved to dedicated folders I want the same folder setup on different machines I [...]]]></description>
			<content:encoded><![CDATA[<p>Oh, boy, this wasn&#8217;t easy. I&#8217;ve been trying for years to get my email life organized. The problem is this:</p>
<ul>
<li>I&#8217;ve got almost ten different email accounts</li>
<li>I subscribe to tens of mailing lists</li>
<li>I want mailing lists to be automatically moved to dedicated folders</li>
<li>I want the same folder setup on different machines</li>
<li>I want messages read on one machine to be marked read on all the others</li>
<li>I used three different Macs to read mail on</li>
<li>I want to be able to get at both inboxes and discussion list folders even through webmail</li>
<li>I want all mail to be available offline as well</li>
<li>I don&#8217;t want to depend on my web host to not lose my saved mail</li>
<li>My regular inbox should only contain stuff I need to act on, everything else is either deleted or moved to a single (or possibly a few) archive folder</li>
<li>That archive folder must automatically be available and updated on all my machines and webmail client</li>
<li>Oh, I almost forgot: everything should be available on the iPhone as well, of course</li>
</ul>
<p>Hey, that&#8217;s not too much to ask, is it? But until now, there was always something screwing it up. Now I think I&#8217;ve got it beat. Since I didn&#8217;t find all that much on the &#8216;net about this, but I did find little scraps here and there, I figured I ought to collect my notes here for posterity. <em>Everything that follows was done on Snow Leopard, both client and server side.</em></p>
<h3>Step 1 &#8211; Make it all IMAP</h3>
<p>First things first. Change all your accounts in OSX Mail to IMAP. There&#8217;s no way to do this with POP3 access. I&#8217;m not going to describe how to do this, since it&#8217;s not rocket science and no secret tricks are involved. Take care so you don&#8217;t lose messages, though. (Not that I know why you should, but I felt I didn&#8217;t want to take responsibility if you found a way to screw up the only storage you had of those priceless emails.)</p>
<h3>Step 2 &#8211; Get yourself an OSX Server</h3>
<p>Not as bad as you might imagine. The Apple Mini OSX Server is pretty cheap. Set it up as safe as possible, using mirrored drives. If you have a NAS with RAID, you could set up iSCSI to that. I&#8217;m not going into this here either, it&#8217;s a separate subject, but I will assume you have an OSX Server at least. Most of what I&#8217;m telling you below can also be done on a webhost, but I didn&#8217;t want to have maybe gigabytes of mail storage entrusted to some cheapo webhost out there. But you decide, of course.</p>
<h3>Step 3 &#8211; Enable webmail on your OSX Server</h3>
<p>Since OSX Mail doesn&#8217;t seem to allow folder management under IMAP, that is, there is no way I can see that allows you to add new IMAP folders server-side, you need to do that using webmail. You only need it when adding or removing folders, not a daily thing.</p>
<p>Assuming you have your user account on your OSX Server, that your DNS is set up right and that you can access your email account on the OSX server over IMAP, you now have to enable webmail on that server. That isn&#8217;t in the most obvious place, so I took a screenshot to help you find it (click image for full size):</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/05/019.png" title="(68 hits)"><img class="aligncenter size-medium wp-image-694" title="019" src="http://ursecta.com/wp/wp-content/uploads/2010/05/019-300x203.png" alt="Server Admin screenshot for setting web services" width="300" height="203" /></a></p>
<p>You have to check the &#8220;Mail&#8221; checkbox. Actually, I didn&#8217;t do that here, I selected the &#8220;default&#8221; on port 443 (upper pane) and checked it there, so that webmail is only available over HTTPS, not plain HTTP:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/05/023.png" title="(64 hits)"><img class="aligncenter size-medium wp-image-717" title="023" src="http://ursecta.com/wp/wp-content/uploads/2010/05/023-300x199.png" alt="" width="300" height="199" /></a></p>
<h3>Step 4 &#8211; Create your folders</h3>
<p>Via a browser, log in to your webmail account on the OSX Server. It does come with SquirrelMail already installed and running (if you did step 3 at least). Once in SquirrelMail, click the &#8220;Folders&#8221; link and you get the following screen:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/05/0212.png" title="(55 hits)"><img class="aligncenter size-medium wp-image-700" title="021" src="http://ursecta.com/wp/wp-content/uploads/2010/05/0212-300x285.png" alt="" width="300" height="285" /></a></p>
<p>The first field lets you create a folder. Leave the &#8220;as a subfolder of&#8221; set to &#8220;INBOX&#8221;, that&#8217;s a pretty good choice. It may not seem all that intuitive, but the OSX Mail client will not show these contents as part of the regular collection &#8220;Inbox&#8221; even though it&#8217;s a subfolder, so leave it set that way. As you create subfolders, you see them in the left listbox down below.</p>
<p>When you return to the main screen in SquirrelMail and refresh the folders (click &#8220;check mail&#8221;), you&#8217;ll see this:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/05/020.png" title="(56 hits)"><img class="aligncenter size-medium wp-image-701" title="020" src="http://ursecta.com/wp/wp-content/uploads/2010/05/020-300x124.png" alt="" width="300" height="124" /></a></p>
<p>&#8230;which doesn&#8217;t seem right. It looks as if your new folders are children under &#8220;Sent Messages&#8221;, but that&#8217;s just an interface bug in SquirrelMail. Don&#8217;t worry about it.</p>
<h3>Step 5 &#8211; Back to OSX Mail</h3>
<p>Just quit OSX Mail and restart it, it&#8217;ll find the new folders. Now, if it doesn&#8217;t, check the IMAP Path Prefix field, which you can find if you go to preferences, accounts, select the account, then go to the &#8220;Advanced&#8221; tab:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/05/022.png" title="(62 hits)"><img class="aligncenter size-medium wp-image-704" title="022" src="http://ursecta.com/wp/wp-content/uploads/2010/05/022-300x263.png" alt="" width="300" height="263" /></a></p>
<p>If it says &#8220;INBOX&#8221; in that field, just empty it and try saving, quitting and restarting OSX Mail. I&#8217;m not sure if it should or should not have the &#8220;INBOX&#8221; set there, but try either way if you have a problem.</p>
<h3>Step 6 &#8211; Rules</h3>
<p>Now comes the fun part. You can set up mail rules in the OSX Mail client that move messages into one of the new subfolders you created, even though the original mail came in on another mail account. Think about this for a while until it sinks in. The rules let you move messages <em>from one IMAP server to another</em>, not just between folders on the same server or you client machine.</p>
<p>So, I&#8217;ve got mail rules that sorts mail coming in on several different IMAP accounts. As they match different rules, these messages are effectively moved from the original IMAP server somewhere in the USA to my own IMAP server in the backroom, and all those sorted messages are now available in real time from all my Macs and my iPhone (and iPad once I have one). I do have public IPs, so my OSX server is available to me from anywhere, which helps, of course.</p>
<p>You can still easily see where the messages originated, since the &#8220;To:&#8221; field does not change when you move the messages. If you open a message in the common archive and click &#8220;Reply&#8221;, OSX Mail client will automatically select to reply from the account the message was originally sent to, not from the account that your archive is in. Exactly as I&#8217;d want it to.</p>
<h3>Oh, wait, there&#8217;s more</h3>
<p>I can easily add another IMAP account that is shared with coworkers, and move or copy messages there, manually or automatically, say for support or some mailinglist I want to share with them all. Think about that for a sec.</p>
<p>It becomes even neater if you have MobileMe and you have set mail accounts and mail rules to synch across your machines. I don&#8217;t even need to set up the rules as they change. I change them on any one of the machines, and the other machines update the rules. I may, occasionally, have to enable the rules (I don&#8217;t know why), but their content is updated.</p>
<p><em>This is so cool.</em></p>
<p><em><strong>Update: </strong>You can actually create the IMAP folders just as easily from inside OSX Mail. Just go to the right IMAP account in the side panel, then click the &#8220;+&#8221; down on the left, select &#8220;New Mailbox&#8221; and if you scroll far enough, you&#8217;ll find your IMAP accounts if one is not already selected. Select one of those and you can create a folder on the IMAP server. It was too obvious for me, I guess.<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://ursecta.com/wp/2010/05/osx-mail-and-imap-tamed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3.3.1 with a twist</title>
		<link>http://ursecta.com/wp/2010/04/3-3-1-with-a-twist/</link>
		<comments>http://ursecta.com/wp/2010/04/3-3-1-with-a-twist/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 15:52:23 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[OSX Dev]]></category>

		<guid isPermaLink="false">http://ursecta.com/wp/?p=567</guid>
		<description><![CDATA[The by now famous paragraph 3.3.1 in the iPhone Developer Program License Agreement for iPhone OS 4.0 says that &#8220;Applications that link to Documented APIs through an intermediary translation or compatibility layer or tool are prohibited&#8221;. Which, of course, ruins the day for Adobe and Flash CS5. The idea was to have Flash scripts run [...]]]></description>
			<content:encoded><![CDATA[<p>The by now famous paragraph 3.3.1 in the iPhone Developer Program License Agreement for iPhone OS 4.0 says that &#8220;Applications that link to Documented APIs through an intermediary translation or compatibility layer or tool are prohibited&#8221;. Which, of course, ruins the day for Adobe and Flash CS5. The idea was to have Flash scripts run on the iPhone on just such a compatibility layer.</p>
<p>The theories as to the reason why are, generally speaking: f*ck Adobe, preserve performance on the iPhone and iPad, and/or make multiprocessing efficient on these devices. With regard to that last, the theory goes that the OS figures out how the app works and hooks into the app and the app framework, but if there&#8217;s a compatibility layer in between, that becomes very difficult and inefficient. Actually, purely technically, without any fanboyisms, it does make sense to me.</p>
<p>In that case, and reading the 3.3.1 literally, nothing stops me, or Adobe, from implementing a translation from our own specific languages using a precompiler, as long as you end up compiling actual Objective-C code using XCode into the app. That&#8217;s what I would do, and I find it a better solution, anyway.</p>
<p>But the anti-Adobe conspiration theorists may claim Apple doesn&#8217;t want you to do this, either. I don&#8217;t know if they do, but let&#8217;s assume.</p>
<p>Now it gets interesting. There is no way that Apple can detect from the runtime code, or even the source code, that the code has been produced by a precompiler, if that precompiler does a decent job. If they want to stop that from happening, they&#8217;ll have to monitor the user&#8217;s machine for precompilers and editing tools, like World of Warcraft is monitoring for bots. What a fascinating circus that would be.</p>
]]></content:encoded>
			<wfw:commentRss>http://ursecta.com/wp/2010/04/3-3-1-with-a-twist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome back, GPG Mail!</title>
		<link>http://ursecta.com/wp/2009/12/welcome-back-gpg-mail/</link>
		<comments>http://ursecta.com/wp/2009/12/welcome-back-gpg-mail/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 21:08:17 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://ursecta.com/wp/?p=424</guid>
		<description><![CDATA[A friend just sent me this link to a blog entry that describes the return of GPG Mail to Snow Leopard 10.6.2: http://carlton.oriley.net/blog/?p=20 The link to the download is: http://carlton.oriley.net/blog/wp-content/uploads/2009/12/GPGMail-1.2.1.mailbundle.zip And it works! Go get it.]]></description>
			<content:encoded><![CDATA[<p>A friend just sent me this link to a blog entry that describes the return of GPG Mail to Snow Leopard 10.6.2:</p>
<p>http://carlton.oriley.net/blog/?p=20</p>
<p>The link to the download is:</p>
<p>http://carlton.oriley.net/blog/wp-content/uploads/2009/12/GPGMail-1.2.1.mailbundle.zip</p>
<p>And it works! Go get it.</p>
]]></content:encoded>
			<wfw:commentRss>http://ursecta.com/wp/2009/12/welcome-back-gpg-mail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion server on Snow Leopard server</title>
		<link>http://ursecta.com/wp/2009/11/subversion-server-on-snow-leopard-server/</link>
		<comments>http://ursecta.com/wp/2009/11/subversion-server-on-snow-leopard-server/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 22:19:59 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[OSX Dev]]></category>

		<guid isPermaLink="false">http://ursecta.com/wp/?p=391</guid>
		<description><![CDATA[As I already bragged about, I got me one of those delicious little OSX Mini Snow Leopard Server boxes. So sweet you could kiss it. I just got everything together to make it run a subversion server through Apache, too, and as a way to document that process, I could just as well make a [...]]]></description>
			<content:encoded><![CDATA[<p>As I already bragged about, I got me one of those delicious little OSX Mini Snow Leopard Server boxes. So sweet you could kiss it. I just got everything together to make it run a subversion server through Apache, too, and as a way to document that process, I could just as well make a post out of it. Then I can find it again later for my own needs.</p>
<p>First of all, subversion server is already a part of the OSX Snow Leopard distribution, so there is no need to go get it anywhere. Mine seems to be version 1.6.5, according to svnadmin. Out of the box, however, apache is not enabled to connect to subversion, so that needs to be fixed.</p>
<p>We&#8217;ll start by editing the httpd.conf for apache to load the SVN module. You&#8217;ll find the file at:</p>
<pre>/etc/apache2/httpd.conf</pre>
<p>Uncomment the line:</p>
<pre>#LoadModule dav_svn_module libexec/apache2/mod_dav_svn.so</pre>
<p>Somewhere close to the end of the file, add the following line:</p>
<pre>Include "/private/etc/apache2/extra/httpd-svn.conf"</pre>
<p>Now we need to create that httpd-svn.conf file. If you don&#8217;t have the &#8220;extra&#8221; dir, make it, then open the empty file and add in:</p>
<pre>&lt;Location /svn&gt;
  DAV svn
  SVNParentPath /usr/local/svn
  AuthType Basic
  AuthName "Subversion Repository"
  AuthUserFile /private/etc/apache2/extra/svn-auth-file
  Require valid-user
&lt;/Location&gt;</pre>
<p>Save and exit. Then create the password file and add the first password by:</p>
<pre>sudo htpasswd -c svn-auth-file username</pre>
<p>&#8230;where &#8220;username&#8221; is your username, of course. You&#8217;ll be prompted for the desired password. You can add more passwords with the same command, while dropping the -c switch.</p>
<p>Time to create svn folders and repository. Create /usr/local/svn. Then create your first repository by:</p>
<pre>svnadmin create firstrep</pre>
<p>Since apache is going to access this, the owner should be apache. Do that:</p>
<pre>sudo chown -R www firstrep</pre>
<p>Through Server Admin, stop and restart Web service. Check if no errors appear. Then use your fav SVN client to check if things work. Normally, you&#8217;d be able to adress your subversion repository using:</p>
<pre>http://yourserver/svn/firstrep</pre>
<p>Finally, don&#8217;t forget to use your SVN client to create two folders in the repository, namely &#8220;trunk&#8221; and &#8220;tags&#8221;. Your project should end up under &#8220;trunk&#8221;.</p>
<p>Once up and running, this repository works perfectly with <a href="http://ursecta.com/wp/go.php?http://www.panic.com/coda/" target="_blank" title="(199 hits)">Panic&#8217;s Coda</a>, which is totally able to completely source code control an entire website. If you don&#8217;t know Coda, it&#8217;s a website editor of the text editor kind, not much fancy graphic tools, but it does help with stylesheets and stuff. It&#8217;s for the hands-on developer, you could say. </p>
<p>The way you manage a site in Coda is that you have a local copy of your site, typically a load of PHP files, which are version controlled against the subversion repository, then you upload the files to the production server. Coda keeps track of both the repository server and the production server for each site. The one feature that is missing is a simple way of having staged servers, that is uploading to a test server, and only once in a while copy it all up to the production server. But that can be considered a bit outside of the primary task of the Coda editor, of course.</p>
<p>You could say that if your site isn&#8217;t mission critical, but more of the 200 visitors a month kind, you can work directly against the production server, especially since rolling back and undoing changes is pretty slick using the Coda/subversion combo. But it does require good discipline, good nerves, and a site you don&#8217;t really, truly need for your livelihood. You can break it pretty bad and jumble up your versions, I expect. Plus, don&#8217;t forget, the database structure and contents aren&#8217;t any part of your version control if you don&#8217;t take special steps to accomplish that.</p>
<p>Coda doesn&#8217;t let you access all the functionality of subversion. As far as I can determine, it doesn&#8217;t have provisions for tag and branch, for instance. But it does have comparisons, rollbacks and most of the rest. The easiest way to do tagging would be through the command line. Or possibly by using a GUI SVN client, there are several for OSX. I&#8217;m just in the process of testing the SynchroSVN client. Looks pretty capable, but not all that cheap.</p>
]]></content:encoded>
			<wfw:commentRss>http://ursecta.com/wp/2009/11/subversion-server-on-snow-leopard-server/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>The cutest little muscle machine ever</title>
		<link>http://ursecta.com/wp/2009/11/the-cutest-little-muscle-machine-ever/</link>
		<comments>http://ursecta.com/wp/2009/11/the-cutest-little-muscle-machine-ever/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 17:36:05 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[OSX Dev]]></category>

		<guid isPermaLink="false">http://ursecta.com/wp/?p=382</guid>
		<description><![CDATA[I got me that brand new Apple Mini with Snow Leopard OSX Server unlimited edition included. This is such an adorable machine, you wouldn&#8217;t believe it. It has everything you can wish for in a server, as far as I can make out after just a couple of hours with it. It&#8217;s super easy to [...]]]></description>
			<content:encoded><![CDATA[<p>I got me <a href="http://ursecta.com/wp/go.php?http://www.apple.com/macmini/server/" target="_blank" title="(115 hits)">that brand new Apple Mini with Snow Leopard OSX Server unlimited edition</a> included. This is such an adorable machine, you wouldn&#8217;t believe it. It has everything you can wish for in a server, as far as I can make out after just a couple of hours with it. It&#8217;s super easy to set up and to monitor. It&#8217;s small, it&#8217;s beautiful, it&#8217;s almost totally noiseless, and seems to use hardly any power. When you feel the case, it&#8217;s just barely warmer than the environment and the same goes for the power supply. When I switch off everything else in the room, I can only hear the server running from less than a meter&#8217;s distance. It seems to produce about the same noise level my 13&#8243; white MacBook does when it&#8217;s just started and perfectly cool. In other words, practically inaudible. Still, it&#8217;s running two 500 Gb drives in there, which I&#8217;ve set up as a mirrored (Raid 1) set.</p>
<p>I&#8217;ll probably brag about this system some more once I get to know it better. But meanwhile, it&#8217;s the nicest computer purchasing experience I&#8217;ve ever had. Except for the Mac Pro. And the MacBook. And the iMac, of course. And the iPhone. And Apple TV.</p>
<p><img class="aligncenter size-full wp-image-385" title="server_dimensions_20091020" src="http://ursecta.com/wp/wp-content/uploads/2009/11/server_dimensions_20091020.jpg" alt="server_dimensions_20091020" width="207" height="142" /></p>
]]></content:encoded>
			<wfw:commentRss>http://ursecta.com/wp/2009/11/the-cutest-little-muscle-machine-ever/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

