<?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>Gary Boone, PhD &#187; Mac</title>
	<atom:link href="http://garyboone.com/category/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://garyboone.com</link>
	<description>Clippings, code snippets, and other searchable web notes</description>
	<lastBuildDate>Mon, 21 Jun 2010 20:42:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Understanding Mac environment variables</title>
		<link>http://garyboone.com/2009/06/understanding-mac-environment-variables/</link>
		<comments>http://garyboone.com/2009/06/understanding-mac-environment-variables/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 20:07:06 +0000</pubDate>
		<dc:creator>gary</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://garyboone.com/2009/06/understanding-mac-environment-variables/</guid>
		<description><![CDATA[When working with Java and Scala, you might have to set environment variables. For example, compiling the excellent Configgy for Scala requires Java 1.6. How do you set the environment variables so that Scala programs compile with Java 1.6? It&#8217;s easy, but there are some gotchas.
Currently (June 2009), the Mac OS (10.5.7) defaults to Java [...]]]></description>
			<content:encoded><![CDATA[<p style="clear: both">When working with Java and Scala, you might have to set environment variables. For example, compiling the excellent Configgy for Scala requires Java 1.6. How do you set the environment variables so that Scala programs compile with Java 1.6? It&#8217;s easy, but there are some gotchas.</p>
<p style="clear: both">Currently (June 2009), the Mac OS (10.5.7) defaults to Java 1.5. You can change this setting using the Java Preferences program in /Applications/Utilities. Drag 1.6 to the top of the list. Run &#8220;java -version&#8221; from a command line to see which version the system will use. You should go ahead and switch it to use the latest Java, but you&#8217;re not done yet. </p>
<p style="clear: both">The Java Preferences panel affects which version of Java is run, but not which JDK is used. For development, you need the correct Java JDK. Set it via JAVA_HOME.</p>
<p style="clear: both">A simple and oft-recommended way to set JAVA_HOME on the Mac is to point it to &#8220;/Library/Java/Home/&#8221;. However, this location is for the system&#8217;s default, which is currently 1.5.</p>
<p style="clear: both">You want to use 1.6, so point to it directly at </p>
<blockquote style="clear: both"><p>/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home</p>
</blockquote>
<p style="clear: both">If you follow that path, you&#8217;ll see that there&#8217;s also a 1.6.0 directory. But selecting 1.6 means that it will point to the latest 1.6.x version. Use 1.6.0 if you need to specify 1.6.0 specifically.</p>
<p style="clear: both">Now, where to set that variable&#8230; Common advice is to set it using a shell export such as </p>
<blockquote style="clear: both"><p>export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home</p>
</blockquote>
<p style="clear: both">Add that line to your ~/.profile or your ~/.bashrc and you&#8217;re done. That will certainly work for any terminal compiling that you do. But it won&#8217;t work for programs installed in your /Applications folder that you don&#8217;t run from the command line. </p>
<p style="clear: both"><a href="http://garyboone.com/wp-content/uploads/2009/06/rcenvironment.gif" class="image-link"><img class="linked-to-original" src="http://garyboone.com/wp-content/uploads/2009/06/rcenvironment-thumb.gif" height="54" align="left" width="54" style=" display: inline; float: left; margin: 0 10px 10px 0;" /></a><br style="clear: both" />To get those applications to &#8217;see&#8217; the environment variable, use the Doug McClure&#8217;s free program <a href="http://www.rubicode.com/Software/RCEnvironment/">RCEnvironment</a>. It&#8217;s a System Preferences pane that will edit ~/.MacOSX/environment.plist for you. You could just edit the file, but it&#8217;s XML, so let RCEnvironment balance the tags for you.</p>
<p style="clear: both">Finally, if you&#8217;re using an ant-based build, you can easily see which sdk is being used in the build process by running</p>
<blockquote style="clear: both"><p>$ ant -diagnostics</p>
</blockquote>
<p style="clear: both">&#8230;and reading the through the output.</p>
<p style="clear: both">
<p><br class="final-break" style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://garyboone.com/2009/06/understanding-mac-environment-variables/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mac Wizarding: Easy Maintenance</title>
		<link>http://garyboone.com/2009/06/mac-wizarding-easy-maintenance/</link>
		<comments>http://garyboone.com/2009/06/mac-wizarding-easy-maintenance/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 22:48:08 +0000</pubDate>
		<dc:creator>gary</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[AppFresh]]></category>
		<category><![CDATA[Updating]]></category>

		<guid isPermaLink="false">http://garyboone.com/2009/06/mac-wizarding-easy-maintenance/</guid>
		<description><![CDATA[Keeping your software up to date can be a pain. On the Mac, most software includes a menu item to &#8220;Check for Updates&#8230;&#8221; and a preference to check automatically. The problem with this approach is that your effort to get something done is interrupted by &#8220;New version available. Would you like to install?&#8221; The problem [...]]]></description>
			<content:encoded><![CDATA[<p style="clear: both">Keeping your software up to date can be a pain. On the Mac, most software includes a menu item to &#8220;Check for Updates&#8230;&#8221; and a preference to check automatically. The problem with this approach is that your effort to get something done is interrupted by &#8220;New version available. Would you like to install?&#8221; The problem is exacerbated with software you run infrequently: just when you need it, there&#8217;s an update ready to distract you. A better dialog would read, &#8220;New Version Available. After we install it, I&#8217;ll remind you what you were trying to do originally. Promise.&#8221;</p>
<p style="clear: both">You could click &#8220;Do it later,&#8221; but that just kicks the problem down the road. Worse, it violates the DIO principle which says that you should strive to encounter new information only once: Do It Once. Handle it, delete it, change it into something else for later, or break into smaller tasks, but whatever you do, Do It Once. The DIO approach prevents the buildup of a half-done, to-do-later, on-the-list, undone, no-progress landfill that&#8217;s too big to attack and too disorganized to improve.</p>
<p style="clear: both">With respect to software maintenance, what if you could scan and update all of your installed software automatically? Well you can&#8217;t so forget it.</p>
<p style="clear: both">
<div>
<p style="clear: both">What you can do is use <a href="http://metaquark.de/appfresh/">AppFresh</a> smartly. It&#8217;s an application that tries to automate the software update process. What it does do is bring the task of updating many programs together in one interface. You can decide to deal with upgrades when you want, then be done with them. DIO.</p>
</div>
<p style="clear: both"><a href="http://garyboone.com/wp-content/uploads/2009/06/image7.png" class="image-link"><img class="linked-to-original" src="http://garyboone.com/wp-content/uploads/2009/06/image7-thumb.png" height="128" width="128" style=" text-align: center; display: block; margin: 0 auto 10px;" /></a>What makes the automation of updating hard is that every software maker is free to use their own versioning notation and semantics. And while software installation on the Mac is considerably simpler than on Windows, there is no standardized way that also provides hooks for Automation Managers. So AppFresh&#8217;s challenge is to detect and facilitate software updating. Viewed this way, it&#8217;s a terrific program.</p>
<p style="clear: both">So the way to use it is to open it to the &#8220;Update Available&#8221; panel. Right click on the columns in the main view and make sure &#8220;Installed Version&#8221; and &#8220;Latest Version&#8221; are showing. Then:</p>
<p>1. See what version you have for any item in the &#8220;Installed&#8221; column. Click an item, then click the &#8220;Release&#8221; tab on the right sidebar to see the release notes for the latest update. Decide to update or not. If not, right click on the item and choose &#8220;Skip Update&#8221;. You can wait for the next one.</p>
<p>2. We&#8217;re going to update a program. Was the program easy to install? These are the ones you just unzipped or double-clicked the .dmg file, then dragged to the application folder. If so, click the down-arrow &#8220;Update&#8221; button. Watch the progress. If it doesn&#8217;t disappear from the update list, then click on the &#8220;Updating&#8221; item on the left sidebar and find the program. If there&#8217;s an error, try again. If it says, &#8220;Installer run needed&#8221;, then go find the installer package for the new version in your downloads folder and double click it.</p>
<p style="clear: both">3. If it&#8217;s a big-installation package like Microsoft Office, or you know it has its own updater like Adobe Updater, then update it outside of AppFresh. For example, Microsoft AutoUpdate is buried somewhere; I find it by typing &#8216;auto&#8217; into <a href="http://www.blacktree.com/">Quicksilver</a> or <a href="http://www.google.com/quicksearchbox/">Google Quick Search Box</a>.</p>
<p style="clear: both">4. If AppFresh continues to list a program under &#8220;Update Available&#8221; when you&#8217;ve already updated it, then right click on the item and choose &#8220;Skip Update&#8221;. Or you may see that the &#8220;Installed&#8221; column still shows the old version, even though you&#8217;ve updated it. This means that the software lists only its main version, even though we, and AppFresh, know there&#8217;s a newer version with a subversion number. It&#8217;s ok. Just choose &#8220;Skip Update&#8221;.</p>
<p style="clear: both">5. If there&#8217;s a program you don&#8217;t use often or don&#8217;t want to mess with (say a system program), then right click on it an choose &#8220;Exclude&#8221;. To see what you&#8217;ve exclude, and maybe unexclude a program you want to check on or update, look in the &#8220;Exclude&#8221; panel in the preferences. You&#8217;ll still be reminded about updates when you run the program later, assuming you have its &#8220;Check for Updates&#8221; enabled. So you won&#8217;t miss any updates.</p>
<p style="clear: both">It may look like a lot, but its easy to race through the list once you&#8217;ve done it a few times. Then your machine is updated, you won&#8217;t be interrupted while you&#8217;re working, and you&#8217;ve dealt with software maintenance simply and Done It Once.</p>
<p style="clear: both">
<p><br class="final-break" style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://garyboone.com/2009/06/mac-wizarding-easy-maintenance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to be a whiz on the Mac: QuickSilver/QSB</title>
		<link>http://garyboone.com/2009/06/how-to-be-a-whiz-on-the-mac-quicksilverqsb/</link>
		<comments>http://garyboone.com/2009/06/how-to-be-a-whiz-on-the-mac-quicksilverqsb/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 05:10:23 +0000</pubDate>
		<dc:creator>gary</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://garyboone.com/2009/06/how-to-be-a-whiz-on-the-mac-quicksilverqsb/</guid>
		<description><![CDATA[If you want to be a Mac Whiz, you need the power tools that make your fingers work like ten mice. There has really only been one to consider: QuickSilver. It has the property of great software that it&#8217;s easy to get into, and gradually rewards experience and exploration with more power. Fortunately, there are [...]]]></description>
			<content:encoded><![CDATA[<p style="clear: both"><a href="http://theappleblog.com/quicksilver-the-guide/" class="image-link"><img src="http://s1.wordpress.com/wp-content/themes/vip/gigapple/images/btn-quicksilverguide.gif" height="107" align="left" width="332" style=" display: inline; float: left; margin: 0 10px 10px 0;" /></a>If you want to be a Mac Whiz, you need the power tools that make your fingers work like ten mice. There has really only been one to consider: <a href="http://www.blacktree.com/">QuickSilver</a>. It has the property of great software that it&#8217;s easy to get into, and gradually rewards experience and exploration with more power. Fortunately, there are several guides out there, including the <a href="http://theappleblog.com/quicksilver-the-guide/">AppleBlog&#8217;s QuickSilver Guide</a>. </p>
<p>It turns out that the developer of QuickSilver has joined Google and yesterday released a sequel called the <a href="http://www.google.com/quicksearchbox">Google Quick Search Box</a>. <a href="http://www.manu-j.com/blog/google-quick-search-box-guide/329/">Reviews</a> say that it&#8217;s not quite powerful enough to replace QuickSilver yet. But some may prefer its simplicity and appealing interface. It can integrate with Spotlight, if activated via a preference panel.</p>
<p>What makes these tools so powerful is their predictive typing and noun/verb metaphor. With just a few keystrokes, you can select an album, then start it playing. Or you can pick a contact, then open a new email already addressed. The possibilities grow as you get better at it&#8230;</p>
<p style="clear: both"><img src="http://garyboone.com/wp-content/uploads/2009/06/moz-screenshot-1.jpg" height="219" align="left" alt="" width="222" style=" display: inline; float: left; margin: 0 10px 10px 0;" /></p>
<p><br class="final-break" style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://garyboone.com/2009/06/how-to-be-a-whiz-on-the-mac-quicksilverqsb/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>myWeblog</title>
		<link>http://garyboone.com/2009/06/myweblog/</link>
		<comments>http://garyboone.com/2009/06/myweblog/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 16:22:57 +0000</pubDate>
		<dc:creator>gary</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://garyboone.com/2009/06/myweblog/</guid>
		<description><![CDATA[Mac blog posting software: myWeblog

]]></description>
			<content:encoded><![CDATA[<p style="clear: both"><a href="http://garyboone.com/wp-content/uploads/2009/06/image2.png" class="image-link"><img class="linked-to-original" src="http://garyboone.com/wp-content/uploads/2009/06/image-thumb1.png" height="128" align="left" width="128" style=" display: inline; float: left; margin: 0 10px 10px 0;" /></a>Mac blog posting software: <a href="http://myownapp.com/site/moapp3.0/applications_leo/tools/myweblog/myweblog.html" class="broken_link" >myWeblog</a></p>
<p><br class="final-break" style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://garyboone.com/2009/06/myweblog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
