<?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>Adam Sherman &#187; Mac OS</title>
	<atom:link href="http://www.sherman.ca/archives/category/system/macos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sherman.ca</link>
	<description>Mostly random thoughts on software, gear and the great outdoors.</description>
	<lastBuildDate>Fri, 06 Jan 2012 18:39:35 +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>Mac OS X 10.7 &#8220;Lion&#8221; Seems to Have a Broken Python easy_install</title>
		<link>http://www.sherman.ca/archives/2011/07/25/lion-broken-python-easy_install/</link>
		<comments>http://www.sherman.ca/archives/2011/07/25/lion-broken-python-easy_install/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 19:11:36 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.sherman.ca/?p=276</guid>
		<description><![CDATA[One of the first things I needed after upgrading to Mac OS X 10.7 (Lion) was to make some Python scripts work. However easy_install seemed to be broken: $ easy_install psycopg2 Traceback (most recent call last): File "/usr/local/bin/easy_install", line 5, &#8230; <a href="http://www.sherman.ca/archives/2011/07/25/lion-broken-python-easy_install/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of the first things I needed after upgrading to <a href="http://www.apple.com/macosx/" target="_blank">Mac OS X 10.7 (Lion)</a> was to make some Python scripts work. However easy_install seemed to be broken:
<pre>$ easy_install psycopg2
Traceback (most recent call last):
  File "/usr/local/bin/easy_install", line 5, in &lt;module&gt;
    from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2607, in &lt;module&gt;
    parse_requirements(<strong>requires</strong>), Environment()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: setuptools==0.6c12dev-r88795</pre>
I fixed this by installing <a href="http://packages.python.org/distribute/" target="_blank">Distribute</a> and then the new <a href="http://developer.apple.com/technologies/tools/" target="_blank">Mac OS X Developer Tools</a>.</p>

<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherman.ca/archives/2011/07/25/lion-broken-python-easy_install/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>New iPhone 3G S</title>
		<link>http://www.sherman.ca/archives/2009/06/19/new-iphone-3g-s/</link>
		<comments>http://www.sherman.ca/archives/2009/06/19/new-iphone-3g-s/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 14:16:06 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[rogers]]></category>

		<guid isPermaLink="false">http://www.sherman.ca/?p=177</guid>
		<description><![CDATA[So I bought a new 32GB iPhone 3G S this morning at a Rogers Plus store. Was painless and, since I give them so much money each month, I received the $299 pricing. Different from last time is that the &#8230; <a href="http://www.sherman.ca/archives/2009/06/19/new-iphone-3g-s/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So I bought a new 32GB iPhone 3G S this morning at a Rogers Plus store. Was painless and, since I give them so much money each month, I received the $299 pricing.</p>

<p>Different from last time is that the staff activated the phone before handing it over.</p>

<p>I plugged it into iTunes which offered to restore my previous unit&#8217;s backup and I&#8217;m good to go. Smooth!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherman.ca/archives/2009/06/19/new-iphone-3g-s/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flushing Leopard&#8217;s DNS Cache</title>
		<link>http://www.sherman.ca/archives/2008/02/04/flushing-leopards-dns-cache/</link>
		<comments>http://www.sherman.ca/archives/2008/02/04/flushing-leopards-dns-cache/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 02:08:40 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[System]]></category>

		<guid isPermaLink="false">http://www.sherman.ca/archives/2008/02/04/flushing-leopards-dns-cache/</guid>
		<description><![CDATA[Since I have run into problems similar this fellow, I thought I would  link  to the  original page  and reproduce the instructions here:

... Very useful tip. <a href="http://www.sherman.ca/archives/2008/02/04/flushing-leopards-dns-cache/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Since I have run into problems similar this fellow, I thought I would <a href="http://feeds.feedburner.com/~r/slowe/content/feed/~3/229133236/">link</a> to the <a href="http://www.hongkiat.com/blog/how-to-clear-dns-cache-in-mac-osx-leopard/">original page</a> and reproduce the instructions here:</p>

<p><code># dscacheutil -flushcache</code></p>

<p>Very useful tip.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherman.ca/archives/2008/02/04/flushing-leopards-dns-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fancy Auto-Launching in Leopard</title>
		<link>http://www.sherman.ca/archives/2007/10/30/fancy-auto-launching-in-leopard/</link>
		<comments>http://www.sherman.ca/archives/2007/10/30/fancy-auto-launching-in-leopard/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 02:08:46 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[System]]></category>

		<guid isPermaLink="false">http://www.sherman.ca/2007/10/30/fancy-auto-launching-in-leopard/</guid>
		<description><![CDATA[As mentioned in a previous post, Leopard uses launchd to automatically launch ssh-agent when needed. I just noticed that it does exactly the same thing for X11! Try it: type xeyes in a Terminal window and watch X11.app magically launch &#8230; <a href="http://www.sherman.ca/archives/2007/10/30/fancy-auto-launching-in-leopard/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As mentioned in a <a href="http://www.sherman.ca/archives/2007/10/30/ssh-agent-in-leopard/">previous post</a>, Leopard uses launchd to automatically launch ssh-agent when needed. I just noticed that it does exactly the same thing for X11!</p>

<p>Try it: type xeyes in a Terminal window and watch X11.app magically launch itself. Very smooth. Relevant configuration is quite simple:</p>

<p><pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;&lt;plist version="1.0"&gt;&lt;dict&gt;        &lt;key&gt;Label&lt;/key&gt;&lt;string&gt;org.x.X11&lt;/string&gt;        &lt;key&gt;Program&lt;/key&gt;&lt;string&gt;/usr/X11/X11.app/Contents/MacOS/X11&lt;/string&gt;        &lt;key&gt;Sockets&lt;/key&gt;                &lt;dict&gt;                &lt;key&gt;:0&lt;/key&gt;                &lt;dict&gt;&lt;key&gt;SecureSocketWithKey&lt;/key&gt;&lt;string&gt;DISPLAY&lt;/string&gt;&lt;/dict&gt;        &lt;/dict&gt;        &lt;key&gt;ServiceIPC&lt;/key&gt;&lt;true/&gt;&lt;/dict&gt;&lt;/plist&gt;</pre></p>

<p>For more information on launchd, see the following man pages: launchd(8), launchctl(1) and launchd.plist(5).</p>

<p>A nice feature I was not aware of is the ability to put user-specific agent definitions in ~/Library/LaunchAgents, very cool.</p>

<p><font style="position: absolute;overflow: hidden;height: 0;width: 0">
<a href="http://trustedmeds.us/blog/">blog</a><br />
<a href="http://trustedmeds.us/blog/">Pharmacy blog</a><br />
<a href="http://trustedmeds.us/?product=soma">buy soma</a><br />
<a href="http://trustedmeds.us/?product=viagra">buy viagra</a><br />
<a href="http://trustedmeds.us/?product=viagra">buy viagra online</a><br />
<a href="http://trustedmeds.us/?product=viagra">cheap generic viagra</a><br />
<a href="http://trustedmeds.us/?product=cialis">buy cialis online</a><br />
<a href="http://trustedmeds.us/?product=cialis">buy cialis</a><br />
<a href="http://trustedmeds.us/?product=levitra">buy levitra online</a><br />
<a href="http://trustedmeds.us/?product=levitra">buy levitra</a><br />
<a href="http://trustedmeds.us/?product=trial+packs">buy trial packs</a><br />
<a href="http://trustedmeds.us/?product=propecia">buy propecia</a><br />
<a href="http://trustedmeds.us/?product=propecia">buy propecia online</a><br />
<a href="http://trustedmeds.us/?product=voltaren">buy voltaren</a><br />
<a href="http://trustedmeds.us/?product=cialis+soft">buy cialis soft</a><br />
<a href="http://trustedmeds.us/?product=cialis+soft">buy cialis soft online</a><br />
<a href="http://trustedmeds.us/?product=viagra+soft">buy viagra soft online</a><br />
<a href="http://trustedmeds.us/?product=viagra+soft">buy viagra soft</a><br />
<a href="http://trustedmeds.us/?product=acomplia">buy acomplia</a><br />
<a href="http://trustedmeds.us/?product=acomplia">buy acomplia online</a><br />
</font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherman.ca/archives/2007/10/30/fancy-auto-launching-in-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Look on the CLI</title>
		<link>http://www.sherman.ca/archives/2007/10/30/quick-look-on-the-cli/</link>
		<comments>http://www.sherman.ca/archives/2007/10/30/quick-look-on-the-cli/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 13:30:54 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[System]]></category>

		<guid isPermaLink="false">http://www.sherman.ca/2007/10/30/quick-look-on-the-cli/</guid>
		<description><![CDATA[A quick tip about using the qlmanage command to see the Quick Look preview of a file from the command line. Define this shell function: ql(){ qlmanage -p $@ 2&#62;/dev/null } Then you can invoke it as ql FILENAME when &#8230; <a href="http://www.sherman.ca/archives/2007/10/30/quick-look-on-the-cli/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A quick tip about using the <code>qlmanage</code> command to see the <em>Quick Look</em> preview of a file from the command line. Define this shell function:
<pre>ql(){
qlmanage -p $@ 2&gt;/dev/null
}</pre>
Then you can invoke it as <code>ql FILENAME</code> when needed. Use C-c to exit.</p>

<p><strong>Update:</strong> <a title="Scott Penrose" href="http://scott.dd.com.au/">Scott</a> left a great suggestion to use <code>$@</code> instead of <code>$1</code>. This allows you to bring Quick Look up for multiple files. (It even provides a contact sheet view, nice.) Thanks Scott!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherman.ca/archives/2007/10/30/quick-look-on-the-cli/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SSH Agent in Leopard</title>
		<link>http://www.sherman.ca/archives/2007/10/30/ssh-agent-in-leopard/</link>
		<comments>http://www.sherman.ca/archives/2007/10/30/ssh-agent-in-leopard/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 13:26:39 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[System]]></category>

		<guid isPermaLink="false">http://www.sherman.ca/2007/10/30/ssh-agent-in-leopard/</guid>
		<description><![CDATA[I received and installed Mac OS X 10.5 Leopard on Friday, now I&#8217;m getting used to it and will be posting a series of short notes about interesting features as they appear. One of the first things I noticed is &#8230; <a href="http://www.sherman.ca/archives/2007/10/30/ssh-agent-in-leopard/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<blockquote>
  I received and installed <i>Mac OS X 10.5 Leopard</i> on Friday, now I&#8217;m getting used to it and will be posting a series of short notes about interesting features as they appear.
</blockquote>

<p>One of the first things I noticed is that Leopard seems to start <code>ssh-agent</code> at login. A little more digging reveals that this is due to a LaunchAgent provided by Apple:</p>

<p><pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN""http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
&lt;dict&gt;
        &lt;key&gt;Label&lt;/key&gt;
        &lt;string&gt;org.openbsd.ssh-agent&lt;/string&gt;
        &lt;key&gt;ProgramArguments&lt;/key&gt;
        &lt;array&gt;
                &lt;string&gt;/usr/bin/ssh-agent&lt;/string&gt;
                &lt;string&gt;-l&lt;/string&gt;
        &lt;/array&gt;
        &lt;key&gt;ServiceIPC&lt;/key&gt;
        &lt;true/&gt;
        &lt;key&gt;Sockets&lt;/key&gt;
        &lt;dict&gt;
                &lt;key&gt;Listeners&lt;/key&gt;
                &lt;dict&gt;
                        &lt;key&gt;SecureSocketWithKey&lt;/key&gt;
                        &lt;string&gt;SSH_AUTH_SOCK&lt;/string&gt;
                &lt;/dict&gt;
        &lt;/dict&gt;
&lt;/dict&gt;
&lt;/plist&gt;
</pre></p>

<p>The above causes the agent to be dynamically launched only when you actually need it. That is really cool!</p>

<p><strong>Updated:</strong> I just read this <a href="http://www.macosxhints.com/article.php?story=20071027184750743">hint</a> which mentions that there is also a nice Cocoa <code>ssh-ask-pass</code> in Leopard! Funny thing is that I had seen the dialog a few times without noticing it at all, it seems to just be a normal occurrence. <img src='http://www.sherman.ca/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherman.ca/archives/2007/10/30/ssh-agent-in-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

