<?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>let x=x &#187; macintosh</title>
	<atom:link href="http://www.crazymcphee.net/x/tag/macintosh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.crazymcphee.net/x</link>
	<description>programming idiom and methodology</description>
	<lastBuildDate>Fri, 27 Jan 2012 09:36:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Apple Mail.app replacement &#8211; Postbox 3</title>
		<link>http://www.crazymcphee.net/x/2011/12/22/apple-mail-app-replacement-postbox-3/</link>
		<comments>http://www.crazymcphee.net/x/2011/12/22/apple-mail-app-replacement-postbox-3/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 14:08:02 +0000</pubDate>
		<dc:creator>Scot Mcphee</dc:creator>
				<category><![CDATA[apps]]></category>
		<category><![CDATA[reviews]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[elm]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google mail]]></category>
		<category><![CDATA[icloud]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[lion]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mac software]]></category>
		<category><![CDATA[macintosh]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mail.app]]></category>
		<category><![CDATA[mailplane]]></category>
		<category><![CDATA[mutt]]></category>
		<category><![CDATA[thunderbird]]></category>

		<guid isPermaLink="false">http://www.crazymcphee.net/x/?p=711</guid>
		<description><![CDATA[My regular readers (all two of you) will know that I frequently thrash about looking for an Apple Mail.app replacement. I am a regular and long-term Gmail user. Its search is amazing, the filters powerful (although lacking a filter-power-user feature to help manage the dozens of filters I have actively running) and I quite like [...]]]></description>
			<content:encoded><![CDATA[<p>My regular readers (all two of you) will know that I frequently thrash about <a href="http://www.crazymcphee.net/x/?s=Mail.app">looking</a> for an Apple Mail.app replacement. I am a regular and long-term Gmail user. Its search is amazing, the filters powerful (although lacking a filter-power-user feature to help manage the dozens of filters I have actively running) and I quite like the approach with message labels rather than &#8220;folders&#8221;. In the past I used for quite some time the program <a href="http://www.crazymcphee.net/x/2009/08/15/mail-app-alternatives-mailplane-ftw/">Mailplane</a> which is essentially a thin wrapper about the Gmail interface (which my work uses as well me personally). I used to love the Gmail interface, but <a href="http://www.crazymcphee.net/x/2011/11/02/gmail-redesigned-app-coming-to-the-iphone/">recently</a> I&#8217;ve found it starting to feel cluttered with functions and not suitable for long time use. Also, on <a href="http://www.crazymcphee.net/x/2011/10/16/on-upgrading-to-mac-osx-10-7-lion/">upgrading to OSX 10.7 Lion</a> I wanted to take advantage of iCloud calendar and contacts functionality to get &#8220;live sync&#8221; of this data to my iPhone and iPad. I switched back to Apple&#8217;s <a href="http://www.crazymcphee.net/x/2011/11/16/mac-mail-app-and-its-local-cache-of-messages/">Mail.app</a>.</p>
<p>I was, and remain, an email power user (I know that this actually shows my age nowadays). In fact, for many years, I used to use <a href="http://en.wikipedia.org/wiki/Elm_(email_client)">elm</a>, and then <a href="http://en.wikipedia.org/wiki/Mutt_(email_client)">mutt</a> in the Unix shell &mdash; it was only really once I got the invite to the Gmail beta that made me finally switch from mutt! I was never a <a href="http://en.wikipedia.org/wiki/Pine_(email_client)">pine</a> user although I know a lot of people used to use that, and I never really super-loved any of the Mozilla clients like <a href="http://en.wikipedia.org/wiki/Mozilla_Thunderbird">Thunderbird</a> &mdash; its calendar integration is shit. Obviously Outlook, Entourage, and other Microsoft email software is purely for defectively-thinking droolers who hate the internet, send pictures to their friends pasted into Word or Powerpoint attachments, and have an Exchange server stuck up their bum so that doesn&#8217;t even enter into the equation. So, I love the keyboard with my mail program, I love seeing a threaded view of email conversations. I mostly love plain text email too (although this is not such a hard-core requirement for me nowadays). And I need it to work with Apple&#8217;s iCal and Address Book because I like those programs and I want to get this information onto my iOS devices over the wireless.</p>
<p>However, while Mail.app is probably a reasonable proposition for the average consumer-grade user and does many of these things pretty well, I never really <em>loved</em> it. I suffered with it these past few months. Its search (i.e. spotlight) is OK for email but no patch on Gmail. It doesn&#8217;t really play nice with Gmail&#8217;s labels and takes a &#8220;folder&#8221; approach. It has a thread view now but I don&#8217;t think it&#8217;s spectacular. It sometimes seems to forget that I&#8217;ve got a message selected and it should make it as &#8220;read&#8221;. However, I could live with it, I thought.</p>
<p>But, last night, I found <a href="http://www.postbox-inc.com/">Postbox 3</a> via a <a href="https://www.mupromo.com/">MacUpdate bundle</a>. I decided to give it a burl. It&#8217;s actually quite awesome, despite the lead engineer being an ex-Mozilla guy (bearing in my mind my comments about Thunderbird above)! It plays nice with my Mac, and iCal and Address Book. Its integration with Gmail&#8217;s labels is also pretty smooth and I haven&#8217;t found and issues with it. It even supports Gmail&#8217;s keyboard shortcuts which is heaven for me. You can even configure it to connect to Facebook, LinkedIn, and Twitter in such a way that if you don&#8217;t have a picture in your address book for an email contact, but have a connection to them in any of those services, it will use the picture from the service. That&#8217;s a very nice feature. It has a way to get at all the various configuration parameters and fiddle with them (haven&#8217;t really explored that too much other than to look at it).</p>
<p>It&#8217;s not without rough edges though. For example, choosing an alert sound for new email; you can choose either to use the &#8220;System Alert&#8221; sound, or pick and choose any relevant sound file on your hard disk. What you can&#8217;t do is select from a drop down list of the available Mac System Sounds. You have to locate the relevant AIFF file in the System Library. And if you do choose &#8220;System Alert&#8221; you get get a horrible !plink! sound and not the actual System Alert sound from the Sound system prefs. And the &#8216;whoosh&#8217; sound it uses for sent mail is not configurable other than on or off. It needs to know how to open a message in a new window, not just a new tab. You also cannot select a message&#8217;s colour (background or foreground), either manually or through filters (in Mail.app, I used this to highlight in a background colour the messages from people in my Address Book where I was an explicit recipient). It also needs a Unix &#8220;<a href="http://en.wikipedia.org/wiki/Biff">biff</a>&#8221; style plugin for the menu-bar. It does integrate well with <a href="http://en.wikipedia.org/wiki/Growl_(software)">Growl</a> but I don&#8217;t really like that for email notification. But that&#8217;s all pretty minor stuff. The major stuff, like Gmail integration, it does really well.</p>
<p>But, a really nice feature and a pleasant surprise is that when you reply to a long-running thread, it has a really nice way to summarise the emails from the various participants (see crappy screenshot below).</p>
<p>Overall I rate this program 8/10. Definitely sticking with it. Recommended.</p>
<p><img src="http://inlustre.net/wp-content/uploads/2011/12/PostBox3-screenshot.png" alt="Postbox 3 thread reply format" title="PostBox3-screenshot.png" border="0" width="558" height="600" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazymcphee.net/x/2011/12/22/apple-mail-app-replacement-postbox-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac Mail.app and its local cache of messages</title>
		<link>http://www.crazymcphee.net/x/2011/11/16/mac-mail-app-and-its-local-cache-of-messages/</link>
		<comments>http://www.crazymcphee.net/x/2011/11/16/mac-mail-app-and-its-local-cache-of-messages/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 21:53:45 +0000</pubDate>
		<dc:creator>Scot Mcphee</dc:creator>
				<category><![CDATA[apps]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mac software]]></category>
		<category><![CDATA[macintosh]]></category>

		<guid isPermaLink="false">http://www.crazymcphee.net/x/?p=699</guid>
		<description><![CDATA[Why is it that yesterday Mail.app decided it did not have a local cache of my imap mail boxes anymore and it must refetch every one? Maybe I should switch back to Mailplane.]]></description>
			<content:encoded><![CDATA[<p>Why is it that yesterday Mail.app decided it did not have a local cache of my imap mail boxes anymore  and it must refetch every one? Maybe I should switch back to Mailplane.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazymcphee.net/x/2011/11/16/mac-mail-app-and-its-local-cache-of-messages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Busted-arse Apple Mobile Me Calendar forced onto me.com users</title>
		<link>http://www.crazymcphee.net/x/2011/03/16/busted-arse-apple-mobile-me-calendar-forced-onto-me-com-users/</link>
		<comments>http://www.crazymcphee.net/x/2011/03/16/busted-arse-apple-mobile-me-calendar-forced-onto-me-com-users/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 03:40:29 +0000</pubDate>
		<dc:creator>Scot Mcphee</dc:creator>
				<category><![CDATA[professional practice]]></category>
		<category><![CDATA[rants]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[macintosh]]></category>
		<category><![CDATA[me.com]]></category>

		<guid isPermaLink="false">http://www.crazymcphee.net/x/?p=615</guid>
		<description><![CDATA[Got this email from Apple&#8217;s Me.com service today; from MobileMe &#60;MobileMe@insideapple.apple.com&#62; date Wed, Mar 16, 2011 at 13:02 subject Upgrade to the new MobileMe Calendar by May 5, 2011 Upgrade to the new MobileMe Calendar by May 5, 2011 Dear MobileMe member: On May 5, 2011, MobileMe will transition completely to the new Calendar service [...]]]></description>
			<content:encoded><![CDATA[<p>Got this email from Apple&#8217;s Me.com service today;</p>
<blockquote><p>from<span style="white-space: pre;"> </span>MobileMe &lt;MobileMe@insideapple.apple.com&gt;<br />
date<span style="white-space: pre;"> </span>Wed, Mar 16, 2011 at 13:02<br />
subject<span style="white-space: pre;"> </span>Upgrade to the new MobileMe Calendar by May 5, 2011</p>
<p>Upgrade to the new MobileMe Calendar by May 5, 2011</p>
<p>Dear MobileMe member:</p>
<p>On May 5, 2011, MobileMe will transition completely to the new Calendar service that we launched in October. The new MobileMe Calendar includes calendar sharing, invitations, and a new Calendar web application. To maintain calendar syncing between your devices and to continue accessing your calendar at me.com, you must upgrade to the new Calendar by May 5, 2011. Please follow these instructions to complete the upgrade &#8230;</p></blockquote>
<div>
<p>This is a total deal breaker for me.</p>
<p>I &#8220;upgraded&#8221; to the new calendar when I got my iPhone 4 because it promised me over-the-air calendar syncing from my iPhone. A useful feature. But then I <a href="http://groups.google.com/group/spanningsync/browse_thread/thread/f742ff0beb8b09b1/9183f7f9483a41a2?lnk=gst&amp;q=the+selected+ical+calendar+is+not+writeable#9183f7f9483a41a2" target="_blank">discovered my Google calendars were no longer being synced to my Mac (and thence to my iPhone) via Spanning Sync</a>. I use <a href="http://www.spanningsync.com/" target="_blank">Spanning Sync</a> on my Mac to sync from my iCal on the Mac to Google calendars. From iCal it gets to and from the iPhone via iTunes sync. We use Gmail at work too, so I can share my work calendar to my personal Google account and vice-versa. Thus on my Mac, my iPhone and both my Google accounts, I&#8217;ve got a completely unified view of my calendaring world. If that appointment ain&#8217;t in my calendar, it doesn&#8217;t exist as far as I&#8217;m concerned.</p>
<p>And along comes Apple with their &#8220;upgraded&#8221; me.com service:</p>
<blockquote><p><strong><a href="http://support.apple.com/kb/HT4038" target="_blank">Third-party calendar plug-ins, calendar clients, and non-Apple  devices are not supported</a>.</strong></p></blockquote>
<p>The iCal/me.com &#8220;upgrade&#8221; made the calendars on iCal unwriteable by Spanning Sync (or any other program on the Mac). In effect, calendar changes I was making on Google &#8211; and as that&#8217;s where my email goes to, that&#8217;s the calendar I use most &#8211; weren&#8217;t appearing locally or on my iPhone. The Spanning Sync developer confirmed this is due to the Apple Sync Services locking them out of writing Calendar events into the &#8220;upgraded&#8221; iCal. Google may eventually supporting importing the calendar from me.com into Google but I don&#8217;t see how that cures the problem of <em><span style="text-decoration: underline;">writing</span></em> calendar entries from Google (i.e. accepting and creating appointments in Gmail).</p>
<p>My solution was simple. I downgraded my me.com to use the old format, re-hooked everything back up in Spanning Sync, and everything is back to hunky-dory. The only downside of going back to the old calendar format is that I had to go back to performing a sync with iTunes from my iPhone in order to get updates to and from the phone, rather than it being able to work &#8220;over the air&#8221;.</p>
<p>As far as I am concerned the &#8220;new&#8221; me.com/iCal calendar system so broken, that I will discontinue the Me.com service rather than use it. Basically, if Apple force me to choose Gmail or me.com &#8212; Google wins. I think Apple are increasingly being blinded by their little blinkers of <em>everyone-works-with-our-complete-stack</em> way of thinking their are in danger of becoming Microsoft.</p>
</div>
<p>So Fuck You Too, Me.com.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazymcphee.net/x/2011/03/16/busted-arse-apple-mobile-me-calendar-forced-onto-me-com-users/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Evernote.com as a tool for scholarly research</title>
		<link>http://www.crazymcphee.net/x/2010/06/27/evernote-com-as-a-tool-for-scholarly-research/</link>
		<comments>http://www.crazymcphee.net/x/2010/06/27/evernote-com-as-a-tool-for-scholarly-research/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 12:25:00 +0000</pubDate>
		<dc:creator>Scot Mcphee</dc:creator>
				<category><![CDATA[apps]]></category>
		<category><![CDATA[reviews]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[endnote]]></category>
		<category><![CDATA[evernote]]></category>
		<category><![CDATA[macintosh]]></category>
		<category><![CDATA[research tools]]></category>
		<category><![CDATA[scholarly research]]></category>

		<guid isPermaLink="false">http://www.crazymcphee.net/x/?p=566</guid>
		<description><![CDATA[I&#8217;ve recently started to use the software Evernote to help organise the morass of notes I&#8217;m wading around in while doing my M.A. thesis (I am not doing a Master&#8217;s degree in any comp.sci related area &#8211; it&#8217;s a Masters of Arts in Ancient History, and my thesis is on an aspect of the Roman [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently started to use the software <a href="http://www.evernote.com/">Evernote</a> to help organise the morass of notes I&#8217;m wading around in while doing my M.A. thesis (I am not doing a Master&#8217;s degree in any <em>comp.sci</em> related area &#8211; it&#8217;s a Masters of Arts in Ancient History, and my thesis is on an aspect of the Roman historian Livy&#8217;s writing). Evernote actually uploads the information placed in the Mac client to the web site (this afternoon I purchased an upgraded account to get more upload capacity). It has clients for Mac, Windows, iPhone/iPad, etc. However apart from backup, this is not really a feature I need for my thesis, although it might be useful to organise my life as a professional programmer.</p>
<p>This is used in conjunction with <a href="http://www.endnote.com/">Endnote</a> (my university supplies me a free licence) to manage my references and bibliography in the actual chapters I write (so far, one down, two to go!). Endnote must be used to manage the referencing and bibliography separately: most of the databases export the relevant reference import data for Endnote. You can also search the Library of Congress to get complete information for books that you need in your bibliography. Better than typing it all in by hand! Endnote will also handle reformatting the referencing method used (if you find the guidelines are different) and its creates a bibliography automatically out of everything you reference.</p>
<p>Back in Evernote, I drag all the PDFs of journal articles that I download from the various scholarly databases I search into Evernote, then I tag them with relevant information.  This gives me s searchable database of relevant articles. Then for each article, and for each book or other non-PDF source, I write up a set of notes into my word processor, and export that note as a PDF file. These finished notes are then imported into Evernote and I tag them with relevant information which helps me find related ideas among notes.</p>
<p>There are a few features that I think Evernote needs to have to be a fully successful scholarly research tool. I&#8217;d love to be able to directly cross-reference two notes directly, rather than indirectly via tags. Maybe even an ability to attach a note to the cross-reference, that would be super-cool, that way I could describe the nature of the linkage of ideas.  Fully notated cross-referencing is necessary for me because scholarly research doesn&#8217;t occur in a flat, one or two dimensional &#8216;tagged&#8217; space. Tagging only gets you so far.</p>
<p>Speaking of tags, its tagging needs to be properly hierarchical. You can give tags sub-tags, true enough. However if you add the leaf tag to an article, the parent tag is not automatically also available. So you might have a tag Rome, which has a sub-tag, Republic, but if you add a note to the Republic tag, it doesn&#8217;t appear when you select the Rome tag. Which is a bit silly.</p>
<p>Another great feature would be an ability to do the tasks of Endnote. Failing that (it is pretty specialised), a way for it to co-operate with Endnote, e.g by linking notes in Evernote to bibliography entries in Endnote, would be totally awesome, but quite unexpected.</p>
<p>Also there is a small bug which means while reading a PDF in Evernote it doesn&#8217;t seem to obey the page up / page down or arrow keys which is a little annoying &#8211; you have to use the mouse, or double click to open the PDF in Apple Preview.</p>
<p>But overall a relatively satisfying experience so far.</p>
<blockquote><p><strong>UPDATE 28 June 2010</strong>: Via Google Buzz, my friend <a href="http://www.google.com/profiles/aliasfreq">Shannon O&#8217;Neill</a> put me onto the Mac program <strong><em>Papers</em></strong> &#8211; <a href="http://mekentosj.com/papers/">http://mekentosj.com/papers/</a> &#8230; I just had a quick look at it tonight. it certainly has some potential. With a bit of coaxing I had it authenticate against my university&#8217;s EZproxy and thence searching and downloading journal articles straight from JSTOR (online database).</p>
<p>There is no way to make synthetic notes that link different journal papers, though, which is a pity. Also the notes window is a little cramped, which is a pity.</p>
<p>I also imported my Endnote database and it could then retrieve at least some of the article PDFs so-referenced from JSTOR and other sources. However it did think that the couple of anthology articles I had in Endnote were in &#8216;journals&#8217; but worse than that it also lists the anthology editor(s) as one of the paper&#8217;s editors. Oops. But all in all it turns out it might be useful tip. Anything to keep me from <em>writing</em> &#8211; I can now spend days if not weeks fiddling with bibliographic databases instead!</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.crazymcphee.net/x/2010/06/27/evernote-com-as-a-tool-for-scholarly-research/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Running Oracle XE on Mac OSX using virtualised JeOS</title>
		<link>http://www.crazymcphee.net/x/2009/08/27/oracle-xe-on-mac-osx/</link>
		<comments>http://www.crazymcphee.net/x/2009/08/27/oracle-xe-on-mac-osx/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 06:30:20 +0000</pubDate>
		<dc:creator>Scot Mcphee</dc:creator>
				<category><![CDATA[infrastructure and frameworks]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[tools and techniques]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[macintosh]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[oracle-xe]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[virtualisation]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.crazymcphee.net/x/?p=462</guid>
		<description><![CDATA[So Oracle in its wisdom doesn&#8217;t have Mac OSX version of its free database. This is of course really annoying to Mac users who need to develop systems that use Oracle databases &#8211; Oracle XE is a great little database especially for development environments. Recently I found myself in a situation where I would be [...]]]></description>
			<content:encoded><![CDATA[<p>So Oracle in its wisdom doesn&#8217;t have Mac OSX version of its free database. This is of course really annoying to Mac users who need to develop systems that use Oracle databases &#8211; Oracle XE is a great little database especially for development environments. Recently I found myself in a situation where I would be needing to bind a Hibernate object to a PL/SQL function in the target Oracle database rather than a table or view per se. As the function call is database specific, when developing the application I needed to use an Oracle database and could use e.g. HSQL or MySql as a substitute Oracle DB for development purposes. Oracle XE is a great way out here because it fully supports PL/SQL packages and functions and procedures.</p>
<p>I was off the client site so I couldn&#8217;t rely on a fast connection to their development databases. I just wrote a dummy function that was called the same as the real function with the same input and output parameters and instead of the complex function body it just wrapped a simple mock table of test data. Problem solved, Oracle XE to the rescue. But first you have get Oracle XE running on your Mac, this is what the rest of this article is about, because you can&#8217;t just download an Oracle XE edition for the Macintosh.</p>
<h3>Virtualisation is great &#8211; use a Linux VM</h3>
<p>However modern Virtualisation is your saviour. Put simply, you can use a virtualisation tool like Parallels, or my choice, VMWare Fusion, to run a virtualised version of Linux that contains the Oracle XE instance.</p>
<p>Because VMs can waste a bit of your local resources, luckily there is a specialised version of Ubuntu designed for running as a virtualised machine of this type. Its called JeOS (pron. <em>Juice</em>, apparently). It doesn&#8217;t have an X-window environment, just the shell, so it&#8217;s pretty lightweight and can run, with Oracle XE, in less than 512MB of memory. Perfect for getting a copy of Oracle XE onto your Macbook Pro.</p>
<p>It will however, eat up a couple of gigabytes of disk space, up to the maximum limit you choose for your disk size in the VMWare configuration. However it will only use the current amount of disk needed, as VMWare will expand the size of the image as needed (I&#8217;ll just assume that Parallels does something similar).</p>
<h3>Setting it up &#8211; basic instructions</h3>
<p><a href="http://tedwise.com/2008/10/03/running-oracle-for-development-on-the-mac/">This page here</a> &#8211; has a great set of instructions for getting JeOS installed and configured with Oracle XE on it. Follow the instructions there <em>exactly</em> &#8211; but only to the point where you install and configure Oracle XE &#8211; don&#8217;t go further than that.</p>
<p>Make sure you configure plenty of swap space as outlined in the instructions.</p>
<blockquote>
<h3>Setting it up on standard Ubuntu/Debian</h3>
<p>If you are running a full Ubuntu or other Debian based instance, the instructions are somewhat simpler. Install it as per normal in your VM. But make sure your swap space is twice the memory you have assigned to the VM! Oracle XE demands things to be like that.</p>
<p>Add</p>
<pre>deb http://oss.oracle.com/debian unstable main non-free</pre>
<p>to /etc/apt/sources.list and then:</p>
<pre>$ wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle  -O- | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install oracle-xe</pre>
<p>These instructions were cribbed from <a href="http://www.oracle.com/technology/tech/linux/install/xe-on-kubuntu.html">here</a>.</p></blockquote>
<h3>After installing and configuring Oracle XE</h3>
<p>After you run the XE configuration (&#8216;$&#8217; represents the Unix shell prompt and should not be typed);</p>
<pre>$ sudo /etc/init.d/oracle-xe configure</pre>
<p>If you&#8217;re running on JeOS don&#8217;t yet make the machine &#8220;headless&#8221;! Or you might find there are issues with the &#8220;Apex&#8221; application. The problem is that the Apex application, which is a useful web-based administration program for Oracle XE (especially for developers who don&#8217;t want to be forced to use sqlplus for all their database administration), will only allow connections from localhost &#8211; and you don&#8217;t have X-window, or a browser, to access it (I don&#8217;t know if lynx will work with Apex and I wasn&#8217;t going to try).</p>
<h3>Get SSH installed</h3>
<p>First get SSH installed in JeOS so you can get to the command prompt remotely:</p>
<pre>$ sudo apt-get install ssh</pre>
<h3>Find out the VM&#8217;s IP address</h3>
<p>Now, if you type <em>ifconfig</em> (<em>/sbin/ifconfig</em> if that&#8217;s not found on your path) you will be able to determine the IP address of your VM running on your Macintosh. At this point you can connect to the VM using ssh from a Macintosh terminal window:</p>
<pre>$ ssh username@ip_address</pre>
<p>Actually, at this point you can go ahead and make the machine headless, if you want. I would recommend not to do that until you&#8217;re sure of everything you&#8217;ve configured.</p>
<h3>Configure environment to run sqlplus</h3>
<p>After you&#8217;ve logged back into the running Linux VM using ssh from the Mac Terminal, the next thing is you&#8217;ve got to get sqlplus access working to the XE instance you installed. Funnily enough, although the .deb file that is installed off the Oracle site creates an oracle user, it doesn&#8217;t in any way set that user up so you can use the command line tools. SO you can&#8217;t just su &#8211; oracle and get a functional environment.</p>
<p>Anyway, you will need to do two things to your environment; add the <em>ORACLE_HOME</em> environment variable and set up your <em>PATH</em> so it can find <em>sqlplus</em>.</p>
<pre>$ export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
$ export PATH=${PATH}:${ORACLE_HOME}/bin</pre>
<p>You should add these two lines to your <em>.profile</em> or <em>.bash_profile</em> file &#8211; probably best for the &#8216;oracle&#8217; user that the installation will have created. But you can actually set this up for any regular user that you configure in this VM. You can also just type them at the command line to get them in your current environment, if you have to.</p>
<h3>Configure Apex to accept non-localhost connections</h3>
<p>The web-based administration software for XE, called &#8220;APEX&#8221;, only binds to <em>localhost</em>. This is a big hassle if your VM copy of Linux (like JeOS) doesn&#8217;t have a GUI, because you don&#8217;t have a browser (lynx/links excluded, I did not try those!).  However, you can make Apex bind to the &#8220;external&#8221; IP address for your VM, but you&#8217;ll need to use <em>sqlplus</em>.</p>
<p>To run <em>sqlplus</em>, do the following:</p>
<pre>$ sqlplus system@XE
  Enter password:</pre>
<p>Enter the password you specified at the &#8216;oracle-xe configure&#8217; step above.</p>
<p>At the SQL prompt, enter the following command:</p>
<pre>SQL&gt; EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);</pre>
<p>Now you&#8217;ll have to stop and start Oracle to make the configuration active:</p>
<pre>$ sudo /etc/init.d/oracle-xe restart</pre>
<p>After which, if you type</p>
<pre>$ netstat -tna</pre>
<p>You should find a line</p>
<pre>tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN</pre>
<p>This indicates a process is listening to the port 8080 on all IP addresses for connections coming from any other IP address. Assuming you specified port 8080 at the &#8216;oracle-xe configure&#8217; step. Sometimes I use 8888 especially if I have a Tomcat instance in the same VM, as Tomcat will also like to run on 8080 and I&#8217;d prefer it if it did.</p>
<h3>Test and use Apex</h3>
<p>Test this connection in your browser, in my case, the address was 10.1.2.17, but you will have to substitute your own VM&#8217;s IP address &#8211; <em>http://10.1.2.17:8080/apex</em>. I like to make an /etc/hosts entry that points to this address as &#8216;oracleXE&#8217;. That way I can use a symbolic name in my jdbc connection strings and actually switch which instance of XE I am using depending which VM I&#8217;ve fired up without editing the jdbc configuration of the application under development &#8211; I just change the /etc/hosts entry instead.</p>
<p>Anyway once you connect to apex you can login using the user name and password you set up during your XE install and configuration process (same as you used for <em>sqlplus</em>). The users will be sys and system, you can use them to create new users to contain your databases for development.</p>
<p>The same IP address as above will be used to connect to your Oracle database from the programs you are developing. The default port should be 1521 and the SID should be XE.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazymcphee.net/x/2009/08/27/oracle-xe-on-mac-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mozilla Thunderbird as alternative to Mac Mail.app</title>
		<link>http://www.crazymcphee.net/x/2009/08/13/mozilla-thunderbird-as-alternative-to-mac-mail-app-road-test/</link>
		<comments>http://www.crazymcphee.net/x/2009/08/13/mozilla-thunderbird-as-alternative-to-mac-mail-app-road-test/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 02:03:07 +0000</pubDate>
		<dc:creator>Scot Mcphee</dc:creator>
				<category><![CDATA[rants]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[mac software]]></category>
		<category><![CDATA[macintosh]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mail.app]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[thunderbird]]></category>

		<guid isPermaLink="false">http://www.crazymcphee.net/x/?p=434</guid>
		<description><![CDATA[This morning my Mac&#8217;s Mail.app actually ate two emails I wrote and didn&#8217;t send them or save them in my &#8216;Drafts&#8217; folder. Data loss is unacceptable, so I searched for an alternative. It seems the best alternative on offer is Thunderbird, which I used to use in my Windows and Linux days. Thunderbird 2 doesn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>This morning my Mac&#8217;s Mail.app actually ate two emails I wrote and didn&#8217;t send them or save them in my &#8216;Drafts&#8217; folder. Data loss is unacceptable, so I searched for an alternative. It seems the best alternative on offer is Thunderbird, which I used to use in my Windows and Linux days.</p>
<p>Thunderbird 2 doesn&#8217;t integrate with the Macintosh Address Book, so that rules it out straight away, had to go straight to Thunderbird 3 beta. I got the latest, beta 3, released in July.</p>
<p>After about 5 minutes with Thunderbird 3 beta I was telling it to <em>go fsck itself</em>. Here&#8217;s why:</p>
<ol>
<li>Installing Thunderbird 3 &#8211; what&#8217;s with the &#8220;@googlemail.com&#8217; for Gmail? I use &#8216;@gmail.com&#8217; and always have and always will. That&#8217;s the option I want. Oh sweet lord, it will force me to use @googlemail.com &#8211; that&#8217;s a <em>disaster</em> right there. Can be edited later, however, I discover. But still.</li>
<li>Thunderbird 3  &#8220;integrates&#8221; with the Mac address book, which is to say it will pull addresses from it, but it does this through it&#8217;s own horrible, horrible, interface. Bad Mozilla! I want to use &#8211; at all times &#8211; the Apple &#8216;Calendar.app&#8217; and &#8216;Address Book.app&#8217;, OK? Their user interfaces. Not yours.</li>
<li>I got some mail with pictures in it. I can view the pictures by selecting &#8220;view external content&#8221; button for this one email. If I select the &#8220;always view external content for xxxx&#8221; it wants to add the sender to the address book (it&#8217;s internal address book). <em>No Mozilla</em>, that&#8217;s not what I&#8217;m asking for. I just want the graphics for that newsletter I get sent to be shown without me pressing extra buttons every time I get this newsletter. I don&#8217;t <em>want</em> their address in my address book!</li>
<li><em>Arrrrgh! My eyes!</em> Jesus it&#8217;s ugly. And clunky. It feels like Windows all over again. Good lord. I can&#8217;t find any way to change the list display fonts. It&#8217;s probably in there somewhere, I will admit, but I can&#8217;t find it.</li>
<li>Every single folder, I have to individually select &#8220;view by thread&#8221;, as far as I can tell.</li>
<li>Search is an entirely separate window/dialogue. I can&#8217;t search more than one account at once. &#8220;Search Subfolders&#8221; at the top level includes Spam folder. There doesn&#8217;t seem to be a way to add a criteria that &#8220;Message is not spam&#8221;.</li>
<li>The terrible search function is the only basis for &#8220;Smart Folders&#8221; that I can find so far, therefore it won&#8217;t work for what I need. In Mail.app, I use three smart folders:
<ol>
<li> All unread mail in <em>any</em> account or sub-folder thereof</li>
<li>All mail in the <em>Inbox</em> of any of my three &#8220;personal&#8221; accounts, that is, mail directly addressed to me personally.</li>
<li>All mail in the <em>Inbox</em> of my work mail account.</li>
</ol>
</li>
<li>On the plus side, it does have good support for keyboard commands. I&#8217;m an old <em>mutt</em> user (before that, <em>elm</em>) so I love keyboard commands in my mail program. Mail.app has rubbish support for this.</li>
<li>Also on the plus side, Thunderbird&#8217;s threading display is a little clearer. Mail.app just puts all messages in a thread under the one hierarchy, you don&#8217;t get any sense of what message is a reply to which.</li>
</ol>
<p>OK  Apple Mail.app lost some sent mail  <em>once</em> in the middle of a godawful crash (but a crash nonetheless), and I&#8217;ve always hated its horrible keyboard support. However maybe I am willing to take those risks and annoyances  if <em>this</em> is the alternative experience. I know that Mozilla is open source, and full of all that open sorcery goodness, but I live and die via my email program, right after my IDE, and I want a pretty nice experience with it. Thus, I&#8217;m now in a bind &#8211; use a program that just proved to me its data integrity is not 100%, or use a program that that just gives me a truly horrible user experience and wants to screw with my choice of Calendar and Address Book?</p>
<p>Mac email program suggestions in the comments if you like (and no, don&#8217;t suggest <em>Entourage</em>, it&#8217;s completely off the menu).</p>
<p><em>UPDATE</em>: I should mention that, for me, the deal killers are points 2, 6, and 7.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazymcphee.net/x/2009/08/13/mozilla-thunderbird-as-alternative-to-mac-mail-app-road-test/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Upgrading to Maven 2.1.0 on Macintosh OS X</title>
		<link>http://www.crazymcphee.net/x/2009/03/23/upgrading-to-maven-210-on-macintosh-os-x/</link>
		<comments>http://www.crazymcphee.net/x/2009/03/23/upgrading-to-maven-210-on-macintosh-os-x/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 02:43:30 +0000</pubDate>
		<dc:creator>Scot Mcphee</dc:creator>
				<category><![CDATA[technical]]></category>
		<category><![CDATA[tools and techniques]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[macintosh]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.crazymcphee.net/x/?p=265</guid>
		<description><![CDATA[Recently I found a Maven plugin that wouldn&#8217;t run under Maven version 2.0.6, and I had to upgrade it on my Macintosh. I quickly discovered the usual *nix upgrade (unpack, then update ${PATH}) didn&#8217;t seem to work, as the Macintosh OS X 10.5 comes with Maven pre-installed in /usr/share/ directory. Tip &#8211; I found where [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I found a Maven plugin that wouldn&#8217;t run under Maven version 2.0.6, and I had to upgrade it on my Macintosh. I quickly discovered the usual *nix upgrade (unpack, then update ${PATH}) didn&#8217;t seem to work, as the Macintosh OS X 10.5 comes with Maven pre-installed in /usr/share/ directory.</p>
<blockquote><p><strong><em>Tip</em></strong> &#8211; I found where it was installed with this simple series of *nix commands that should work on most Unix variants such as Linux, for anything on your ${PATH}, using the &#8216;which&#8217; command:</p>
<pre>CrazyMcphee:systems smcphee$ which mvn
/usr/bin/mvn
CrazyMcphee:systems smcphee$ ls -lrta /usr/bin/mvn
lrwxr-xr-x  1 root  wheel  24  9 Mar 22:50 /usr/bin/mvn -&gt; \
  /usr/share/maven/bin/mvn</pre>
</blockquote>
<p>Following the information on <a href="http://www.gridshore.nl/2008/01/28/upgrading-maven-on-the-mac/">this page</a> as a template, here&#8217;s the procedure I used to upgrade to the latest version at time of writing, Maven 2.1.0:</p>
<pre>CrazyMcphee:~ smcphee$ sudo su -
Password:
CrazyMcphee:~ root# cd /usr/share/
CrazyMcphee:share root# mv maven maven-2.0.6
CrazyMcphee:share root# cp -R \
/Users/smcphee/Development/systems/apache-maven-2.1.0/ \
maven-2.1.0
CrazyMcphee:share root# ln -s maven-2.1.0/ maven
CrazyMcphee:share root# exit
logout
CrazyMcphee:~ smcphee$ mvn -version
Apache Maven 2.1.0 (r755702; 2009-03-19 05:10:27+1000)
Java version: 1.5.0_16
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
Default locale: en_AU, platform encoding: MacRoman
OS name: "mac os x" version: "10.5.6" arch: "i386" Family: "unix"</pre>
<p>You&#8217;ll note I used a symlink for the &#8216;maven&#8217; directory to the &#8216;maven-2.1.0&#8242; directory (the command &#8216;ln -s maven-2.1.0/ maven&#8217; &#8230;). This is to allow me to quickly switch back to version 2.0.6 if I find any incompatibilities in my old POM files with the new version of Maven, by simply changing which directory the symlink points to.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazymcphee.net/x/2009/03/23/upgrading-to-maven-210-on-macintosh-os-x/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Apple iPhoto 09 Flickr integration is bad, very bad</title>
		<link>http://www.crazymcphee.net/x/2009/02/27/apple-iphoto-09-flickr-integration-is-bad-very-bad/</link>
		<comments>http://www.crazymcphee.net/x/2009/02/27/apple-iphoto-09-flickr-integration-is-bad-very-bad/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 12:46:02 +0000</pubDate>
		<dc:creator>Scot Mcphee</dc:creator>
				<category><![CDATA[rants]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[macintosh]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://www.crazymcphee.net/x/?p=205</guid>
		<description><![CDATA[I am very, very pissed off with Apple&#8217;s iPhoto to Flickr integration. It&#8217;s seriously broken software. Here are just some of the reasons why &#8211; interface and interaction designers please take note: Uploading photos in bulk does not preserve the order (any order) in the Flickr stream. So your photostream gets whack out of order. [...]]]></description>
			<content:encoded><![CDATA[<p>I am very, very pissed off with Apple&#8217;s iPhoto to Flickr integration. It&#8217;s seriously broken software. Here are just some of the reasons why &#8211; interface and interaction designers please take note:</p>
<ul>
<li>Uploading photos in bulk does not preserve the order (any order) in the Flickr stream. So your photostream gets whack out of order.</li>
<li>When you upload photos it assumes that whatever event, album, or smart album you&#8217;re currently viewing the photos in should be created as a Set on Flickr. Oh and if the event, album or smart album contains any &#8216;special&#8217; character that Flickr won&#8217;t like in a set name, it won&#8217;t do the upload and doesn&#8217;t tell you why not.</li>
<li>Deleting the spuriously created Flickr Album in iPhoto means the photos are removed from Flickr. After iPhoto tells you it won&#8217;t actually delete any photos! (it means from iPhoto, not Flickr).</li>
<li>I tried moving the photos to another Set using Flickr&#8217;s interface, and removing the now-empty spurious set. IPhoto then asked me if this remotely-removed set should be removed, when I answered yes, somehow iPhoto still managed to delete the previously-moved photos from Flickr.</li>
<li>Did I mention that iPhoto flakes the photostream order?</li>
</ul>
<p>Most of this will also probably apply to the Facebook plugin integration too. This is seriously poor software from Apple. It effectively lies to you about what it&#8217;s doing. Yet again proving that Apple doesn&#8217;t like to play nice with others. <em>Do not use the Apple-provided iPhoto to Flickr integration</em>. It&#8217;s stuffed.</p>
<p><em>[<strong>UPDATE</strong>. More information from a iPhoto-Flickr plugin author  here: <a href="http://speirs.org/2009/01/30/on-the-flickr-support-in-iphoto-09/">http://speirs.org/2009/01/30/on-the-flickr-support-in-iphoto-09/</a> ... ]</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.crazymcphee.net/x/2009/02/27/apple-iphoto-09-flickr-integration-is-bad-very-bad/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

