<?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>davidb dives in &#187; Macintoshia</title>
	<atom:link href="http://blacka.com/david/category/macintoshia/feed/" rel="self" type="application/rss+xml" />
	<link>http://blacka.com/david</link>
	<description>various musings and babblings.</description>
	<lastBuildDate>Tue, 19 Jan 2010 23:37:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Switching to Cocoa Emacs</title>
		<link>http://blacka.com/david/2010/01/17/switching-to-cocoa-emacs/</link>
		<comments>http://blacka.com/david/2010/01/17/switching-to-cocoa-emacs/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 19:05:45 +0000</pubDate>
		<dc:creator>davidb</dc:creator>
				<category><![CDATA[Macintoshia]]></category>

		<guid isPermaLink="false">http://blacka.com/david/?p=100</guid>
		<description><![CDATA[&#8230; from Carbon Emacs, that is.  I pretty much assume that if you aren&#8217;t already a dedicated emacs user you will just stick with TextMate or TextWrangler, or whatever.

Anyway, did you even know that Cocoa Emacs existed?   You may have hard of Carbon Emacs or Aquamacs, but WTH is Cocoa Emacs?  [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230; from <a href="http://homepage.mac.com/zenitani/emacs-e.html">Carbon Emacs</a>, that is.  I pretty much assume that if you aren&#8217;t already a dedicated emacs user you will just stick with <a href="http://macromates.com/">TextMate</a> or <a href="http://www.barebones.com/products/TextWrangler/">TextWrangler</a>, or <a href="http://support.apple.com/kb/HT2523">whatever</a>.</p>

<p>Anyway, did you even know that Cocoa Emacs existed?   You may have hard of Carbon Emacs or <a href="http://aquamacs.org/">Aquamacs</a>, but WTH is Cocoa Emacs?  It turns out that with the final stable release of Emacs 23.1, it came with a Cocoa native build option.  Thus, Cocoa Emacs is now the standard, no-nonsense build of emacs for OS X.</p>

<p>So, how does Cocoa Emacs compare to Carbon Emacs?  It acts and feels mostly the same, although I think it looks a bit crisper and feels a bit faster (which is probably an illusion).  It is smaller on disk (95 MB vs 157 MB), and, of course, it is based on a newer version of emacs itself.  It is The Future!</p>

<p>There are two things that irritated me with Cocoa Emacs when I switched:</p>

<ol>
    <li>Meta is, by default, mapped to the option key.  However, this is easily fixed.</li>
    <li>Carbon Emacs came with a built-in version of aspell.  With Cocoa Emacs you need to get aspell separately.  This is less easily fixed, but it isn&#8217;t too bad.</li>
</ol>

<p><br />
You can get a pre-built stable version of Cocoa Emacs from <a href="https://cocoa-emacs.s3.amazonaws.com/Cocoa%20Emacs%2023.1.dmg">here</a>, or nightly builds from <a href="http://atomized.org/wp-content/cocoa-emacs-nightly/">here</a>.</p>

<p><strong>Step 1</strong>:  Switch the meta key back to the command key, where it is meant to be.  This can either be done via Customize, or you can do it manually with elisp.  Manually, add:</p>

<p><code>(setq ns-command-modifier 'meta)</code></p>

<p>to .emacs.  This same thing can be done simply via Customize: </p>

<ol>
    <li><code>M-x customize</code>,</li>
    <li>go to Environment->NS,</li>
    <li>and change the &#8220;Ns Command Modifier&#8221; option to &#8220;meta&#8221;.</li>
</ol>

<p>You can map option to something else, keep it is &#8220;meta&#8221;, or unset it altogether (which is how it behaves in Carbon Emacs, and probably what you want).</p>

<p><strong>Step 2</strong>: getting <a href="http://aspell.net/">aspell</a>.  If you never ask emacs to spell check anything, you can ignore this.  There are three ways that I&#8217;ve thought of to get aspell:</p>

<p><ol>
    <li>Copy it from Carbon Emacs.  I haven&#8217;t actually tried this, but it should be possible to copy it from the Carbon Emacs bundle into the Cocoa Emacs bundle.  You will probably need <code>Contents/Mac OS/bin/aspell</code> and <code>aspell-import</code>, and <code>Contents/Resources/lib</code>, and <code>Contents/Resources/site-lisp/site-start.d/builtin-aspell.el</code>.  Good Luck.</li>
    <li>Install aspell via <a href="http://www.macports.org/">macports</a>.  If you already have macports, this is probably the way to go.  To do it this way:<ul>
    <li><code>% sudo port install aspell</code></li>
    <li><code>% sudo port install apsell-dict-en</code> (or some other language dictionaries)</li>
    <li>In emacs: <code>M-x customize-option</code>, <code>ispell-program-name</code>, and set the value to <code>/opt/local/bin/aspell</code>.</li></ul></li>
    <li>Get it by installing <a href="http://cocoaspell.leuski.net/">cocoaAspell</a>.  This is what I&#8217;ve done currently.</li>
</ol><br /></p>

<p>CocoaAspell both delivers a version of aspell (to <code>/usr/local/bin</code>) and also delivers a preference pane for getting it configured.  Nifty, but I had to manually fix the aspell configuration to point it to the dictionaries, and you also need to modify the <code>ispell-program-name</code> variable (which can be done via Configure, as well).</p>

<p>To fix the aspell configuration, I edited <code>/usr/local/etc/aspell.conf</code>, changing:</p>

<p><code>dict-dir /usr/local/lib/aspell-0.60</code></p>

<p>to</p>

<p><code>dict-dir /Library/Application\ Support/cocoAspell/aspell6-en-6.0-0</code></p>

<p>Or, I suppose, you could copy the dictionaries back to <code>/usr/local/lib/aspell-0.6.0</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blacka.com/david/2010/01/17/switching-to-cocoa-emacs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to install DBD::Oracle on Mac OS X</title>
		<link>http://blacka.com/david/2008/11/12/how-to-install-dbdoracle-on-mac-os-x/</link>
		<comments>http://blacka.com/david/2008/11/12/how-to-install-dbdoracle-on-mac-os-x/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 03:03:20 +0000</pubDate>
		<dc:creator>davidb</dc:creator>
				<category><![CDATA[Mac Stuff]]></category>
		<category><![CDATA[Macintoshia]]></category>

		<guid isPermaLink="false">http://blacka.com/david/?p=78</guid>
		<description><![CDATA[Today, I figured out how to get DBD::Oracle to work on Mac OS X Leopard (intel).  Since it isn&#8217;t (yet) entirely straightforward, I thought I&#8217;d describe the process here:


Install instantclient.  You will need the basic and sdk modules.  I suggest also getting the sqlplus module while you are at it. I put [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I figured out how to get <a href="http://search.cpan.org/dist/DBD-Oracle/">DBD::Oracle</a> to work on Mac OS X Leopard (intel).  Since it isn&#8217;t (yet) entirely straightforward, I thought I&#8217;d describe the process here:</p>

<ol>
<li><p>Install <a href="http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/intel_macsoft.html">instantclient</a>.  You will need the basic and sdk modules.  I suggest also getting the sqlplus module while you are at it. I put this in <strong>/usr/local/instantclient_10_2</strong>.</p></li>
<li><p>Modify your .bashrc (or whatever) to set <strong>ORACLE_HOME</strong> and <strong>DYLIB_LIBRARY_PATH</strong> to /usr/local/instanclient_10_2.</p></li>
<li><p>Get <a href="http://search.cpan.org/dist/DBD-Oracle/">DBD::Oracle</a> from <a href="http://www.cpan.org">CPAN</a>.  (I got 1.22). Here is where it gets tricky:
In Terminal:</p></li>
</ol>

<p style="text-indent:20pt;"><code>% perl Makefile.PL</code></p>

<p>This generates <em>Makefile</em>.</p>

<ol>
<li><p>Edit <em>Makefile</em>, <a href="http://osdir.com/ml/lang.perl.macosx/2005-04/msg00079.html">changing</a>: <em>NMEDIT=nmedit</em> to <em>NMEDIT=echo</em></p></li>
<li><p>Edit <em>dbimp.c</em>, removing all code that references <strong>dump_env_to_trace()</strong>.  I found a patch at <a href="http://www.macosxhints.com/article.php?story=20061021211559813">macosxhints.com</a>, but this is tied to a particular release of DBD::Oracle.  I decided to use my mad programming skillz to logically do what was needed.  Hopefully this will be fixed in some future version of DBD::Oracle.</p></li>
<li><p>Again, in Terminal:</p></li>
</ol>

<p style="text-indent:20pt;"><code>% make &#38;&#38; sudo make install</code></p>

<p>And that should do it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blacka.com/david/2008/11/12/how-to-install-dbdoracle-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Red Sweater Software Spam Filtering Lets Me Down; Red Sweater Tries Real Hard</title>
		<link>http://blacka.com/david/2007/05/01/red-sweater-software-lets-me-down/</link>
		<comments>http://blacka.com/david/2007/05/01/red-sweater-software-lets-me-down/#comments</comments>
		<pubDate>Wed, 02 May 2007 02:48:01 +0000</pubDate>
		<dc:creator>davidb</dc:creator>
				<category><![CDATA[Macintoshia]]></category>

		<guid isPermaLink="false">http://blacka.com/david/archives/2007/05/red-sweater-software-lets-me-down/</guid>
		<description><![CDATA[Step&#8230;
Discover Black Ink.  It has a 30-day trial periodTry for 30 days.  Like in the beginning, like at the end.Buy it.  I go the the online store and pay via paypal.Wait for 3 days.  See credit card charge go through.During this time, fail to check the spam traps.Wait for 4 more [...]]]></description>
			<content:encoded><![CDATA[<p>Step&#8230;
<ol><li>Discover <a href="http://www.red-sweater.com/blackink/">Black Ink</a>.  It has a 30-day trial period</li><li>Try for 30 days.  Like in the beginning, like at the end.</li><li>Buy it.  I go the the <a href="http://www.red-sweater.com/store/">online store</a> and pay via paypal.</li><li>Wait for 3 days.  See credit card charge go through.</li><li><em>During this time, fail to check the spam traps</em>.</li><li>Wait for 4 more days.  Nothing from Red Sweater Software.</li><li>Send email to support@red-sweater.com asking for actual registration code.</li><li>Wait 3 more days.  Silence.</li><li><em>Discover that somehow, searching for &#8220;red-sweater&#8221; in Mail.app doesn&#8217;t find mail in the spam folders</em>.</li><li><em>Eventually find 3 emails from Daniel Jalkut with your registration code</em>.</li></ol>Hmm.. The online store page says &#8220;&#8230;usually within a few minutes&#8221;.  Is two weeks to wait long enough?  I guess after that I&#8217;ll be reversing the charges.  Or something.</p>

<p><strong>Update</strong>: All fixed now.  I am somewhat amazed that posting to my blog was an effective means of communication.  I&#8217;m guessing this reflects more on Red Sweater Software&#8217;s customer service diligence than anything else.</p>

<p><strong>Update[2]</strong>:  So my friend Sean summed this whole event up as: &#8220;You posted to your blog, Daniel Jalkut read it, said &#8216;check your spam box, dumbass&#8217;, and now you look like an idiot.&#8221; Yep.</p>
]]></content:encoded>
			<wfw:commentRss>http://blacka.com/david/2007/05/01/red-sweater-software-lets-me-down/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Black Ink == Cheating</title>
		<link>http://blacka.com/david/2007/03/28/black-ink-cheating/</link>
		<comments>http://blacka.com/david/2007/03/28/black-ink-cheating/#comments</comments>
		<pubDate>Thu, 29 Mar 2007 00:47:41 +0000</pubDate>
		<dc:creator>davidb</dc:creator>
				<category><![CDATA[Macintoshia]]></category>

		<guid isPermaLink="false">http://blacka.com/david/archives/2007/03/black-ink-cheating/</guid>
		<description><![CDATA[That is, if you consider looking up crossword puzzle clues on oneacross.com to be cheating.  Or even if you think that looking up stuff in imdb and wikipedia is cheating.

I haven&#8217;t spend a whole lot of time on crossword puzzles before, mostly because I sort of suck  at them.  But a few [...]]]></description>
			<content:encoded><![CDATA[<p>That is, if you consider looking up crossword puzzle clues on <a href="http://oneacross.com">oneacross.com</a> to be cheating.  Or even if you think that looking up stuff in <a href="http://imdb.com">imdb</a> and <a href="http://en.wikipedia.org">wikipedia</a> is cheating.</p>

<p>I haven&#8217;t spend a whole lot of time on crossword puzzles before, mostly because I sort of suck  at them.  But a few days ago, I discovered <a href="http://www.red-sweater.com/blackink/">Black Ink</a>.  I never tried the previous (java-based) version, but this version is pretty good.  But it makes looking up stuff in oneacross (which I didn&#8217;t even know about before) ridiculously easy.  And you are one command-tab stroke away from your browser and the crosswordy goodness of wikipedia, <a href="http://google.com" title="Duh">google</a>, and imdb.</p>

<p>I haven&#8217;t laid down the cash-money for this application yet, but if I keep going I&#8217;m going to have to.</p>
]]></content:encoded>
			<wfw:commentRss>http://blacka.com/david/2007/03/28/black-ink-cheating/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emacs keybindings for FireFox on OS X</title>
		<link>http://blacka.com/david/2006/04/27/emacs-keybindings-for-firefox-on-os-x/</link>
		<comments>http://blacka.com/david/2006/04/27/emacs-keybindings-for-firefox-on-os-x/#comments</comments>
		<pubDate>Thu, 27 Apr 2006 20:30:00 +0000</pubDate>
		<dc:creator>davidb</dc:creator>
				<category><![CDATA[Macintoshia]]></category>

		<guid isPermaLink="false">http://blacka.com/david/archives/2006/04/emacs-keybindings-for-firefox-on-os-x/</guid>
		<description><![CDATA[If you are like me and have been made retarded by Emacs, you might miss the standard Emacs bindings in FireFox and/or Thunderbird.  Well, never fear, there is a way to fix it.  While it is pretty easy to fix on Linux, it is a wee bit of a pain-in-the-ass on OS X. [...]]]></description>
			<content:encoded><![CDATA[<p>If you are like me and <a href="http://www.tgr.com/weblog/archives/000344.html">have been made retarded by Emacs</a>, you might miss the standard Emacs bindings in <a href="http://www.mozilla.com/firefox/">FireFox</a> and/or <a href="http://www.mozilla.com/thunderbird/">Thunderbird</a>.  Well, never fear, there is a way to <a href="http://kb.mozillazine.org/Emacs_Keybindings_(Firefox)">fix it</a>.  While it is pretty easy to fix on Linux, it is a wee bit of a pain-in-the-ass on OS X.  So, to save some of you some time, here is the<a href="http://blacka.com/files/emacs-keybindings-ffox-toolkit.jar"> modified toolkit.jar for Firefox 1.5.0.2</a>.</p>

<p>Here is how you use it:</p>

<ol>
    <li>Get into your FireFox.app bundle &#8212; I find this easiest to do via Terminal: cd /Applications/FireFox.app/Contents/MacOS/chrome</li>
    <li>Make a copy of your original toolkit.jar file: cp toolkit.jar toolkit.jar.original</li>
    <li>Replace  toolkit.jar with the one you just downloaded from me: mv ~/Desktop/emacs-keybindings-ffox-toolkit.jar toolkit.jar</li>
    <li>Restart FireFox.</li>
    <li>Enjoy the soothing balm of having Emacs keybindings work in yet another application.</li>
</ol>

<p>I wouldn&#8217;t use this jar file with other versions of FireFox, by the way.</p>

<p><strong>Update</strong>: <a href="http://toscano.org/~pete/blog/">Pete</a> has created the equivalent t<a href="http://toscano.org/~pete/blog/wp-content/toolkit.jar">oolkit.jar file for Firefox 1.5.0.3</a>, although it looks like nothing in toolkit.jar actually changed between 1.5.0.2 and 1.5.0.3, so mine might actually still work.  Nonetheless, I suspect that keeping up with weekly bugfix releases is going to be quite tedious.  Which is probably why the MozillaZone folks aren&#8217;t doing it&#8230;</p>

<p><strong>Update to the Update</strong>: <a href="http://toscano.org/~pete/blog">Pete</a>, at <a href="http://toscano.org/%7Epete/blog/archives/105">my instigation</a>, has just <a href="http://toscano.org/~pete/blog/wp-content/addemacsbindings.py">scripted</a> this, so we don&#8217;t have to manually fix Firefox/Thunderbird/etc.  Hooray!</p>
]]></content:encoded>
			<wfw:commentRss>http://blacka.com/david/2006/04/27/emacs-keybindings-for-firefox-on-os-x/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My experience with Delicious Library</title>
		<link>http://blacka.com/david/2005/10/30/my-experience-with-delicious-library/</link>
		<comments>http://blacka.com/david/2005/10/30/my-experience-with-delicious-library/#comments</comments>
		<pubDate>Sun, 30 Oct 2005 19:09:56 +0000</pubDate>
		<dc:creator>davidb</dc:creator>
				<category><![CDATA[Macintoshia]]></category>

		<guid isPermaLink="false">http://blacka.com/david/?p=37</guid>
		<description><![CDATA[Last weekend, I got an iSight.  I didn&#8217;t actually need one for anything, but I was curious and I had a little spot bonus money to burn.

So, while I have yet to use it for its main purpose, video chatting, I have tried it for a different purpose: Delicious Library.  This app has [...]]]></description>
			<content:encoded><![CDATA[<p>Last weekend, I got an <a href="http://www.apple.com/isight/">iSight</a>.  I didn&#8217;t actually need one for anything, but I was curious and I had a little spot bonus money to burn.</p>

<p>So, while I have yet to use it for its main purpose, video chatting, I have tried it for a different purpose: <a href="http://www.delicious-monster.com/">Delicious Library</a>.  This app has a neat trick of turning your iSight (or other webcam, really) into a barcode reader.  This was so fascinating to me, that I bought Delicious Library just to play with this feature.  That and tracking my books, CDs, video games, and DVDs seemed like a decent idea anyway.</p>

<p>Never mind that I only own about 200 books and can pretty much remember what and where they all are.  Never mind that I only have a about 150 CDs (pathetically low!), and my video game and DVD collections are even smaller.  Also pay no attention to the fact that I rarely lend any of these materials to anyone (or, at least, I do so infrequently enough that I can generally remember what I&#8217;ve lent).</p>

<p>So, while my use of Delicious Library is essentially and advanced form of procrastination, I did want to check it out to see if my parents would get any use out of it.  See, they, at least, have quite a lot of books, and a certain subset of them are frequently lent.  And I&#8217;m always looking for news ways for them to get use out of their Macs.</p>

<p>First, getting the barcode reading to work: this requires (unsurprisingly) adequate ambient light.  And it requires a bit of fiddling with the item to be scanned.  Sometimes, scanning works right away, sometimes it is a maddeningly tricky.</p>

<p>Second, scanning DVDs and games was generally pretty successful.  One game I had (Halo 2, limited edition) had no barcode, and one game didn&#8217;t come up (Katamari Damacy).</p>

<p>However, scanning books was a different story.  Most of my cookbooks scanned and loaded successfully, but when I moved to the bulk of my collection, paperback fiction, the success rate dropped dramatically.   I think maybe 3 of 160 books scanned and were recognized.  Of course, Delicious Library allows you to enter books by <a href="http://en.wikipedia.org/wiki/Isbn">ISBN</a>, which is much more reliable.</p>

<p>Delicious Library is using amazon.com&#8217;s web services to do all of its searching, and I find it curious how brittle an identifier the UPC is, as compared to ISBN.  My unresearched theory is that UPCs tend to identify a particular printing of a book, where the ISBN refers to a book in all of its forms.  (This may be a reflection on how amazon uses these numbers rather than what the standards themselves say).  So, if your book isn&#8217;t very recent, or is an edition not sold by amazon, then the UPC is unlikely to work.</p>

<p>I still like Delicious Library (even if its use to me isn&#8217;t that profound), but I would recommend that if you are primarily going to index books, you might not want to bother with the barcode reading.</p>

<p>Update: The barcode reading works <em>perfectly</em> with books that you just got from Amazon.  I was looking at my parent&#8217;s book collection noticing that a number of them are old enough to not have ISBN numbers (or any real identifier beyond title and author), so I expect that those will be fun to enter into Delicious Library.</p>

<p>Update to the Update: The barcode reading isn&#8217;t perfect, even with books you just got from Amazon. I had just bought 4 books, and the 4th book came later.  When I scanned this book, Delicious Library first came up with nothing, then, on a subsequent try, came up with a <em>different</em> book!</p>
]]></content:encoded>
			<wfw:commentRss>http://blacka.com/david/2005/10/30/my-experience-with-delicious-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New life for an old scanner</title>
		<link>http://blacka.com/david/2005/09/06/new-life-for-an-old-scanner/</link>
		<comments>http://blacka.com/david/2005/09/06/new-life-for-an-old-scanner/#comments</comments>
		<pubDate>Tue, 06 Sep 2005 18:16:13 +0000</pubDate>
		<dc:creator>davidb</dc:creator>
				<category><![CDATA[Macintoshia]]></category>

		<guid isPermaLink="false">http://blacka.com/david/?p=32</guid>
		<description><![CDATA[About 3 or 4 years ago, I bought my mother a scanner for her iMac (G3).  Now, my mother isn&#8217;t a photographer or particularly interested in scanning pictures or old photos.  What she uses a scanner for is OCR.  At the time, she was assembling a report for her church, and folks [...]]]></description>
			<content:encoded><![CDATA[<p>About 3 or 4 years ago, I bought my mother a scanner for her iMac (G3).  Now, my mother isn&#8217;t a photographer or particularly interested in scanning pictures or old photos.  What she uses a scanner for is OCR.  At the time, she was assembling a report for her church, and folks frequently gave her hard copies of things rather than emailing her the documents.  This wasn&#8217;t the absolute best solution, since the OCR software frequently introduced a fair number of errors, but it beat typing everything in.</p>

<p>This scanner (which replaced an older, SCSI scanner that we couldn&#8217;t get to work with the new iMac) was a well-recommened (for the Mac, anyway) Canon scanner.  I forget the model number, but it is essentially a LiDE 30.  At the time, my mother was either running OS 9, or at least still largely relying on Classic to get stuff done.  The scanner came with an OEM version of OmniPage SE for OS 9.  It worked, but it was largely unintuitive to use.</p>

<p>It was then that I learned that scanners were the black-hole of usability on the Macintosh.  Where the Mac had made many things very easy that had once been hard, scanner support was still largely left up to the vendors, who were only marginally interested in making their stuff work on the Mac.  In short, it sucked.</p>

<p>Fast forward a few years: after one hard disk meltdown, one iMac replacement (to a new 17&#8243; iMac G5), and Tiger, Classic is gone, and with it, any ability to even <em>use</em> the scanner to do <em>anything</em>, let alone OCR.  Fortunately, the burning need for this functionality had lessened, so it wasn&#8217;t that big of a deal.</p>

<p>I would occasionally look for ways to get that scanner back in business.  What was frustrating is that it looked like the cheapest thing to do was to buy a new scanner!  The only OCR software that I knew about was OmniPage Pro, which was $400.  The scanner was only $150 new.</p>

<p>Enter <a href="http://ww.hamrick.com">VueScan</a>.  This weekend, I convinced my mother to download it (ok, actually I just downloaded it for her) and try it out.  For the first time on the Mac, scanning was easy!  It was straightforward.  OCR worked.  The scanner is back in business.</p>

<p>Only time will tell if this $90 package is ultimately worth it, but I was impressed.</p>
]]></content:encoded>
			<wfw:commentRss>http://blacka.com/david/2005/09/06/new-life-for-an-old-scanner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The new mactel hegemony</title>
		<link>http://blacka.com/david/2005/06/06/the-new-mactel-hegemony/</link>
		<comments>http://blacka.com/david/2005/06/06/the-new-mactel-hegemony/#comments</comments>
		<pubDate>Mon, 06 Jun 2005 20:48:18 +0000</pubDate>
		<dc:creator>davidb</dc:creator>
				<category><![CDATA[Macintoshia]]></category>

		<guid isPermaLink="false">http://blacka.com/david/?p=29</guid>
		<description><![CDATA[Well, because grumpy suggested it, I thought I would post some digested thought  about this new Mac-on-Intel thing.  I don&#8217;t claim that I&#8217;m really the original thinker here by a long shot, but here goes:

What is really driving Apple to Intel is not the long awaited 3.0 GHz G5 chip.  What is [...]]]></description>
			<content:encoded><![CDATA[<p>Well, because <a href="http://hxr.us/blojsom/blog/grumpops/">grumpy</a> suggested it, I thought I would post some digested thought  about this new <a href="http://www.apple.com/pr/library/2005/jun/06intel.html">Mac-on-Intel</a> thing.  I don&#8217;t claim that I&#8217;m really the original thinker here by a long shot, but here goes:</p>

<p>What is really driving Apple to Intel is not the long awaited 3.0 GHz G5 chip.  What is driving this is the Pentium M.  More than half of Apple&#8217;s computer  sales are laptops, and, apparently, IBM doesn&#8217;t have a very promising roadmap for laptop-friendly chips.  Intel is the leader here with the Pentium M series.  While Apple&#8217;s high-end server line gets press and attention, moving to Intel isn&#8217;t that big of a win for that platform.  Not that it will hurt, either&#8211;Intel does have some fast parts.  But, it seems to me, what Apple really needs is a fast (and growable) line of laptop processors that it can get in volume.  Intel fits that bill.</p>

<p>Don&#8217;t feel bad for IBM &#8212; every new gaming console will apparently use IBM processors of some sort.  That should account for a little volume.</p>

<p>[UPDATE]: Now that I&#8217;ve actually watched the <a href="http://stream.apple.akadns.net/">Stevenote</a>, my observations are even more obvious.  Steve and Paul Otenelli both <em>said</em>, right out, that it was all about processing power per watt.  Of course, that doesn&#8217;t directly mean that this deal was all about the laptop &#8212; liquid cooling in the high-end G5 PowerMacs is a little disturbing, too.</p>

<p>Now the thing to see if whether or not Apple essentially abandons their 64 bit mantra.  They don&#8217;t have to, Intel has x86-64 stuff too, but the development platform appears to be a straight-up P4.</p>
]]></content:encoded>
			<wfw:commentRss>http://blacka.com/david/2005/06/06/the-new-mactel-hegemony/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCPlugin and Spotlight</title>
		<link>http://blacka.com/david/2005/06/04/scplugin-and-spotlight/</link>
		<comments>http://blacka.com/david/2005/06/04/scplugin-and-spotlight/#comments</comments>
		<pubDate>Sat, 04 Jun 2005 18:19:59 +0000</pubDate>
		<dc:creator>davidb</dc:creator>
				<category><![CDATA[Macintoshia]]></category>

		<guid isPermaLink="false">http://blacka.com/david/?p=28</guid>
		<description><![CDATA[
A mystery was solved today!  The current build of SCPlugin (v.269) causes the search field of the System Preferences application to not work under Mac OS X 10.4 (Tiger).  Specifically, the preference pane for SCPlugin, not the actual extension.

SCPlugin add a contextual menu to Finder for Subversion.  It also is able to [...]]]></description>
			<content:encoded><![CDATA[<p>
A mystery was solved today!  The current build of <a href="http://scplugin.tigris.org">SCPlugin</a> (v.269) causes the search field of the System Preferences application to not work under Mac OS X 10.4 (Tiger).  Specifically, the preference pane for SCPlugin, not the actual extension.
</p><p>
SCPlugin add a contextual menu to Finder for <a href="http://subversion.tigris.org">Subversion</a>.  It also is able to &#8220;badge&#8221; files in the Finder to show their subversion status.  It is a nice tool, but hardly required.  In any case, if you want your searches to work again, just remove the preference pane for it from <tt>/Library/PreferencePanes</tt>.  SCPlugin will still work, but you won&#8217;t be able to change the location of the subversion binary or disable the plugin easily without restoring the preference pane.
</p>
]]></content:encoded>
			<wfw:commentRss>http://blacka.com/david/2005/06/04/scplugin-and-spotlight/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>OS X, Emacs, and gnuserv</title>
		<link>http://blacka.com/david/2005/06/03/os-x-emacs-and-gnuserv/</link>
		<comments>http://blacka.com/david/2005/06/03/os-x-emacs-and-gnuserv/#comments</comments>
		<pubDate>Fri, 03 Jun 2005 19:58:45 +0000</pubDate>
		<dc:creator>davidb</dc:creator>
				<category><![CDATA[Macintoshia]]></category>

		<guid isPermaLink="false">http://blacka.com/david/?p=27</guid>
		<description><![CDATA[As part of my final migration to all things Macintosh, I needed to get my text editing situation under control.  After developing on various X windows based platforms for the vast bulk of my career, I&#8217;m very comfortable with using the command line to navigate around a programming project.  My work pattern is [...]]]></description>
			<content:encoded><![CDATA[<p>As part of my final <a href="http://blacka.com/david/archives/2005/06/the-leap-to-mac/">migration</a> to all things Macintosh, I needed to get my text editing situation under control.  After developing on various X windows based platforms for the vast bulk of my career, I&#8217;m very comfortable with using the command line to navigate around a programming project.  My work pattern is typically to move around on the command line until I need to edit a file.  Then I have a command line tool that will bring that file up in my chosen editor.</p>

<p>Users of <a href="http://www.barebones.com/products/bbedit/index.shtml">BBEdit</a> on Mac OS X might be familiar with this, as BBEdit includes a nice command line utility that you can use for this.  If push came to shove, I could probably live with using BBEdit as my main editor.  However, for many years, I&#8217;ve been using a shell script wrapper around &#8220;gnuclient&#8221;, which would bring up an (X)Emacs frame with my file.  Very very convenient.  This was a practice started in the distant past when I used both XEmacs instead of (GNU) Emacs, and it took <em>forever</em> to launch a new instance of XEmacs (as well as each instance sucking up a lot of memory).</p>

<p>In any case, I wanted to stick with Emacs because 15 years of using it has so deeply ingrained the key combinations that I try and turn on emacs-like key bindings wherever I go.  Not the BBEdit is a bad editor, but when you&#8217;ve invested in Emacs as much as I have, you tend to want to stick with it for most things.  (I do find BBEdit to be a much better option when dealing with HTML and CSS, however).</p>

<p>So, first off was to get a build of <a href="http://home.att.ne.jp/alpha/z123/emacs-mac-e.html">Carbon Emacs</a>.  I had played with <a href="http://www.wordtech-software.com/aquamacs.html">Aquamacs</a>, which is essentially a different build of Carbon Emacs, but it want&#8217;s to use ESC as meta by default, and that doesn&#8217;t work for me.  I had originally tried Aquamacs because my original copy of Carbon Emacs was locked into a particular, weird install location.  The current version of Carbon Emacs doesn&#8217;t seem to have that restriction, and seems to be quite nice, actually.</p>

<p>Next, was to get gnuserv/gnuclient working.  Interestingly enough, OS X 10.4 (and possibly earlier?  I haven&#8217;t checked) comes with gnuserv and gnuclient already installed, presumably for use with the terminal-based emacs that it ships with (and it works!).  Getting it to work with Carbon Emacs was just the trick I was looking for.</p>

<p>Based on previous work, I had downloaded an external <a href="http://meltin.net/hacks/emacs/src/gnuserv-3.12.7.tar.gz">gnuserv implementation</a>.  Version 3.12.6 didn&#8217;t compile cleanly on 10.4, but 3.12.7 did.  I don&#8217;t think that you need to do this at all, however.  Mostly what you need is to give Carbon Emacs access to three elisp files from that gnuserv distribution &#8212; which are already in your Tiger system in /usr/share/emacs/21.2/lisp directory.  The three files are <span style="font-family: monospace; font-size: 9pt">gnuserv.el</span>, <span style="font-family: monospace; font-size: 9pt">gnuserv-compat.e</span>l, and <span style="font-family: monospace; font-size: 9pt">devices.el</span>.  You could probably just throw them into your Carbon Emacs&#8217;s internal lisp directory, or you can do what I did&#8211;put them somewhere in your home directory and get .emacs to point to them.  Something like:</p>

<blockquote><span style="font-family: monospace; font-size: 9pt">(setq load-path (cons (expand-file-name &#8220;~/.fsfemacs/pkg/gnuserv&#8221;)
load-path ))
</span></blockquote>

<p>which assumes that you put them into the ~/.fsfemacs/pkg/gnuserv directory.  Modify that to match wherever you put them.  Next, put</p>

<blockquote>(gnuserv-start)</blockquote>

<p>somewhere in you .emacs.  This will actually cause your Carbon Emacs to run gnuserv in a sub-process.  One potential problem remains, however.  If you have DISPLAY set in the environment that Carbon Emacs in running it (like I do), using gnuclient will generate an error message, rather than actually work.  What is going on is that Carbon Emacs cannot actually connect to an X display (not actually being an X application).  There are probably a number of different ways to fix this.  How I did it was to patch devices.el:</p>

<pre>--- devices.el  2000-01-31 18:12:32.000000000 -0500
+++ devices.el.davidb   2005-06-03 11:09:03.000000000 -0400
@@ -69,7 +69,8 @@
have no effect."
(cond
((and (eq type 'x) connection)
-    (make-frame-on-display connection props))
+    ; (make-frame-on-display connection props))
+    (make-frame props))
((eq type 'x)
(make-frame props))
((eq type 'tty)</pre>

<p>Oh, and a helpful hint for any folks (like me) who traditionally defined a lot of binding to function keys: in Carbon Emacs, option+function key seems to register as the function key, and bypasses any OS-level bindings.</p>

<p><strong>Update</strong>: for convenience, I&#8217;ve put up local copies of the <a href="http://blacka.com/files/gnuserv-3.12.7.tar.gz">gnuserv-3.12.7</a> package (unpatched), the <a href="http://blacka.com/files/dtemacs">dtemacs</a> script, and my <a href="http://blacka.com/files/gc">gc</a> script.</p>
]]></content:encoded>
			<wfw:commentRss>http://blacka.com/david/2005/06/03/os-x-emacs-and-gnuserv/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The Leap to Mac!</title>
		<link>http://blacka.com/david/2005/06/02/the-leap-to-mac/</link>
		<comments>http://blacka.com/david/2005/06/02/the-leap-to-mac/#comments</comments>
		<pubDate>Thu, 02 Jun 2005 13:23:56 +0000</pubDate>
		<dc:creator>davidb</dc:creator>
				<category><![CDATA[Macintoshia]]></category>

		<guid isPermaLink="false">http://blacka.com/david/?p=26</guid>
		<description><![CDATA[This week, I took the plunge.  While I&#8217;ve been using macs for years now, all this time my main work environment was Linux.  I was very used to developing on Linux, and it was hard to justify changing.  This week, I finally switched to full-time mac use (a feat that Grumpy accomplished [...]]]></description>
			<content:encoded><![CDATA[<p>This week, I took the plunge.  While I&#8217;ve been using macs for years now, all this time my main work environment was Linux.  I was very used to developing on Linux, and it was hard to justify changing.  This week, I finally switched to full-time mac use (a feat that <a href="http://hxr.us/blojsom/blog/grumpops/">Grumpy</a> accomplished some time ago).</p>

<p>I&#8217;ve been exclusively traveling with my personal powerbook for a while, so I was probably 80% here already.   I&#8217;ve been browsing, reading email, blogging, etc. on the mac for years.  What I hadn&#8217;t been doing was developing (not necessarily <em>for</em> the mac, just <em>on</em> the mac).  My main Java development environment has become <a href="http://eclipse.org">eclipse</a>, which runs on OS X, so not much of a problem there.  My main perl/python/C/etc. development environment is emacs, however, and I needed to tweak that a bit (more on that later).</p>

<p>I had three factors that encouraged me to jump:</p>

<ol><li>I was becoming increasingly annoyed with the disconnect of browsing and IM&#8217;ing on two different machines, and</li><li>a work powerbook became available when <a href="http://zak.ecotroph.net/blojsom/blog/knitbot/">knitbot</a> left for greener pastures, and</li><li>I was starting to feel a little claustrophobic in my office being surrounded by screens and machines.  Consolidation was in order.</li></ol>
]]></content:encoded>
			<wfw:commentRss>http://blacka.com/david/2005/06/02/the-leap-to-mac/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Macintosh Flamewar in a Nutshell</title>
		<link>http://blacka.com/david/2005/02/02/macintosh-flamewar-in-a-nutshell/</link>
		<comments>http://blacka.com/david/2005/02/02/macintosh-flamewar-in-a-nutshell/#comments</comments>
		<pubDate>Wed, 02 Feb 2005 16:19:37 +0000</pubDate>
		<dc:creator>davidb</dc:creator>
				<category><![CDATA[Macintoshia]]></category>

		<guid isPermaLink="false">http://blacka.com/david/archives/2005/02/macintosh-flamewar-in-a-nutshell/</guid>
		<description><![CDATA[Grumpy points me to a glowing, happy Salon article, Hallelujah, the Mac is back.  This is an interesting article that raises a number of interesting points.  More entertaining, however, are the reactions to that article, as selected by Salon.

These letters read like a summary of every Mac vs. PC flamewar ever, distilled down [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://hxr.us/blojsom/blog/grumpops/">Grumpy</a> points me to a glowing, happy Salon article, <a href="http://www.salon.com/tech/feature/2005/01/31/mac_is_the_future/" title="Hallelujah, the Mac is back">Hallelujah, the Mac is back</a>.  This is an interesting article that raises a number of interesting points.  More entertaining, however, are the <a href="http://www.salon.com/tech/letters/2005/02/01/mac/index.html"><em>reactions</em></a> to that article, as selected by Salon.</p>

<p>These letters read like a summary of every Mac vs. PC flamewar ever, distilled down to the essence, and without the profanity.  I love it.  You can tell if you are a Mac <a href="http://www.gizmodo.com/gadgets/images/iProduct.gif">lover</a> or a <a href="http://www.gizmodo.com/gadgets/images/AppleHaters.gif">hater</a> just by reading the two pages (so far, anyway) of letters.</p>

<p>This article does repeat the <em>Mac-is-inherently-safer</em> meme, which one of the haters takes issue with.  I like to think that he <a href="http://daringfireball.net/2004/06/broken_windows">missed the point</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blacka.com/david/2005/02/02/macintosh-flamewar-in-a-nutshell/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kirkville &#8211; The Mac OS X Drawer: A Badly Designed User Interface Element</title>
		<link>http://blacka.com/david/2004/11/20/kirkville-the-mac-os-x-drawer-a-badly-designed-user-interface-element/</link>
		<comments>http://blacka.com/david/2004/11/20/kirkville-the-mac-os-x-drawer-a-badly-designed-user-interface-element/#comments</comments>
		<pubDate>Sun, 21 Nov 2004 02:00:38 +0000</pubDate>
		<dc:creator>davidb</dc:creator>
				<category><![CDATA[Macintoshia]]></category>

		<guid isPermaLink="false">http://blacka.com/david/archives/2004/11/kirkville-the-mac-os-x-drawer-a-badly-designed-user-interface-element/</guid>
		<description><![CDATA[Kirkville &#8211; The Mac OS X Drawer: A Badly Designed User Interface Element: &#8220;&#8221;

The bit that really drives me batty is the behavior where the drawer opens on whichever side has the most room.  My solution for preventing this is to never close the drawer, which largely defeats the purpose of the drawer.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mcelhearn.com/article.php?story=20041116135640496">Kirkville &#8211; The Mac OS X Drawer: A Badly Designed User Interface Element</a>: &#8220;&#8221;</p>

<p>The bit that really drives me batty is the behavior where the drawer opens on whichever side has the most room.  My solution for preventing this is to <em>never close the drawer</em>, which largely defeats the purpose of the drawer.</p>
]]></content:encoded>
			<wfw:commentRss>http://blacka.com/david/2004/11/20/kirkville-the-mac-os-x-drawer-a-badly-designed-user-interface-element/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion, Subclipse, Mac OS X, and Linux</title>
		<link>http://blacka.com/david/2004/10/22/subversion-subclipse-mac-os-x-and-linux/</link>
		<comments>http://blacka.com/david/2004/10/22/subversion-subclipse-mac-os-x-and-linux/#comments</comments>
		<pubDate>Fri, 22 Oct 2004 17:21:27 +0000</pubDate>
		<dc:creator>davidb</dc:creator>
				<category><![CDATA[Macintoshia]]></category>
		<category><![CDATA[Software Development]]></category>

		<guid isPermaLink="false">http://blacka.com/david/archives/2004/10/subversion-subclipse-mac-os-x-and-linux/</guid>
		<description><![CDATA[I&#8217;ve been moving my small work group from CVS to Subversion.  Not that we make huge demands on our CM system, but Subversion is an obvious step up.  

Server Problems

My first real attempt (beyond just skimming the subversion book and installing an internal test system that I only let live for a few [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been moving my small work group from CVS to <a href="http://subversion.tigris.org">Subversion</a>.  Not that we make huge demands on our CM system, but Subversion is an obvious step up.  </p>

<h3>Server Problems</h3>

<p>My first real attempt (beyond just skimming the subversion book and installing an internal test system that I only let live for a few days) was to install version 1.0.8 on our group&#8217;s web server box, running <a href="http://fedora.redhat.com">Fedora Core 2</a>.  This was a pretty easy install as FC2 comes with an rpm for subversion 1.0.8.  It is practically done for you.  You just need to decide on a repository strategy and a backup plan.  It all went swimmingly well until we started to tentatively <em>use</em> it.  At that point, I discovered that the <a href="http://www.sleepycat.com/products/db.shtml">Berkeley DB</a> database it was using got corrupted at the drop of a hat. This was bizarre, and I still don&#8217;t know what the issue was.  We spent about a day searching the Internet for others experiencing the same problem.  Nothing.  Not being willing to seriously debug this issue, I backed off for a bit.  A few weeks ago, I tried again, this time with version 1.1.0-rc4 and the <a href="http://svn.collab.net/repos/svn/trunk/notes/fsfs">FSFS</a> filesystem, instead of BDB.  A few <a href="http://cvs2svn.tigris.org/">cvs2svn</a> runs later, I was comfortable that this install of subversion was stable and fine.</p>

<h3>Enter Subclipse</h3>

<p>I&#8217;ve been using the <a href="http://eclipse.org">Eclipse IDE</a> for my Java development for a few months now, and I had gotten somewhat used to using it for some of the CVS management of my projects.  (This after 10 years or so of using the command line for all CVS work).  Of course, there exists a plugin for Eclipse for working with subversion, <a href="http://subclipse.tigris.org/">Subclipse</a>.</p>

<p>And, of course, once I got the latest version of this plugin (0.9.22 or 21), I couldn&#8217;t get it to work.  Not on linux (my normal development platform), nor Mac OS X, my teammates main platform (and probably my future development platform).</p>

<p>The problem was, essentially, that Subclipse uses <tt>javahl</tt>, a JNI interface to the C subversion client libraries, and it was missing or mismatched on both platforms.</p>

<h4>Linux</h4>

<p>On my Linux workstation, the first problem was that javahl wasn&#8217;t built or installed with the subversion RPMs. I had already been hacking an existing subversion RPM to be a 1.1.0 RPM, and just had to modify it further to actually build the javahl stuff, and then put it in a separate RPM.  That took a few hours.  Then I had to come to the slow realization that the patches from my original RPM were causing the javahl stuff to not link correctly.  Then I had to realize that my eclipse installation wasn&#8217;t finding the shared library (I solved that by creating a shell script to put <code>/usr/lib</code> in <code>LD_LIBRARY_PATH</code> before launching Eclipse).</p>

<p>Note that on Linux, before I got the <code>javahl</code> stuff to work, it would use the subversion command line tools, but this produced irritating error dialogs all the time.  It just wasn&#8217;t the smoothest solution out there.</p>

<h4>Mac OS X</h4>

<p>(I&#8217;ve been using the subversion package from <a href="http://metissian.com/projects/macosx/subversion/">metissian.com</a> for Mac OS X.  I like fink, but this was so much easier)</p>

<p>When I first tried Subclipse on Mac OS X, it just caused the JVM to die.  Later, after the latest Java 1.4.2 update, it just didn&#8217;t work.  This was a similar issue: console would spew forth error messages that I could tell immediately were because there was a mismatch between the installed <code>javahl</code> stuff and Subclipse (no problems loading the shared lib on this platform, the metissian package puts the shared lib in a valid spot).   After struggling with this for a day, just updating to the 1.1.0 version of the package solved everything.</p>

<h4>The Future</h4>

<p>In the future, I&#8217;m hoping that Subclipse <a href="http://subclipse.tigris.org/servlets/ReadMsg?list=users&#38;msgNo=1391">switches</a> to a <a href="http://tmate.org/svn/">native Java subversion library</a>, which will hopefully make Subclipse always work right out of the box.</p>
]]></content:encoded>
			<wfw:commentRss>http://blacka.com/david/2004/10/22/subversion-subclipse-mac-os-x-and-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
