<?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>Refreshingly Blue &#187; Mac OSX</title>
	<atom:link href="http://www.refreshinglyblue.com/category/mac-osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.refreshinglyblue.com</link>
	<description>Notes by Lee Blue</description>
	<lastBuildDate>Sun, 29 Aug 2010 03:50:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Sending Email With Postfix And MAMP Pro</title>
		<link>http://www.refreshinglyblue.com/2010/08/28/sending-email-with-postfix-and-mamp-pro/</link>
		<comments>http://www.refreshinglyblue.com/2010/08/28/sending-email-with-postfix-and-mamp-pro/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 03:50:13 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=233</guid>
		<description><![CDATA[MAMP Pro makes it very easy to set up a PHP development environment. It even makes configuring your Postfix mail server configured most of the way. If you are using Postfix as a smart host to send mail through your ISP or your business mail server and your mac username (shortname) is not the same [...]]]></description>
			<content:encoded><![CDATA[<p>MAMP Pro makes it very easy to set up a PHP development environment. It even makes configuring your Postfix mail server configured most of the way. If you are using Postfix as a smart host to send mail through your ISP or your business mail server and your mac username (shortname) is not the same as the username part of your email address then you have to set up the correct sender address in your Postfix configuration. Here is how you do it.</p>
<p><span id="more-233"></span></p>
<h2 id="setting_the_correct_sender_address_in_postfix">Setting The Correct Sender Address In Postfix</h2>
<p>My mac (work computer) is set up with usernames in the format of first inital, last name (lblue). We use Rackspace Email for our company email and our email addresses are set up as just FirstName@domain.com (Lee@domain.com). So, the problem with the default Postfix configuration is that it attempts to send mail based on the username on my mac. So when postfix attempts to send mail from lblue@domain.com our Rackspace Email server complains with a &#8220;Sender address rejected&#8221; error message. Fortunately, the solution is pretty easy. </p>
<p>Step 1: Edit your /etc/postfix/main.cf and add following line to your configuration.</p>
<pre><code>sender_canonical_maps = hash:/etc/postfix/sender_canonical</code></pre>
<p>Step 2: Create the sender canonical file /etc/postfix/sender_canonical and set up the username / email address associations</p>
<pre><code>
lblue    Lee@domain.com
</code></pre>
<p>Step 3: Run postmap on your new sender canonical file</p>
<pre><code>sudo postmap /etc/postfix/sender_canonical</code></pre>
<p>Step 4: Reload Postfix</p>
<pre><code>sudo postfix reload</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2010/08/28/sending-email-with-postfix-and-mamp-pro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git Archive Like SVN Export But Better</title>
		<link>http://www.refreshinglyblue.com/2010/03/05/git-archive-like-svn-export-but-better/</link>
		<comments>http://www.refreshinglyblue.com/2010/03/05/git-archive-like-svn-export-but-better/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 16:16:58 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=206</guid>
		<description><![CDATA[If you are switching from Subversion to Git and want to know the best way to export your code similar to svn export then here is a great command to know about.
git archive -o ~/Desktop/project.zip HEAD
That will extract your most recent stuff in your current branch, zip it up, and drop it on your desktop. [...]]]></description>
			<content:encoded><![CDATA[<p>If you are switching from Subversion to Git and want to know the best way to export your code similar to svn export then here is a great command to know about.</p>
<pre>git archive -o ~/Desktop/project.zip HEAD</pre>
<p>That will extract your most recent stuff in your current branch, zip it up, and drop it on your desktop. We do a lot of WordPress plugin development and with this single command we can get our plugin code ready for installation extremely quickly. Here is more information about <a href="http://ftp.sunet.se/pub/Linux/kernel.org/software/scm/git/docs/git-archive.html">git archive</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2010/03/05/git-archive-like-svn-export-but-better/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Share Files Between Linux and Mac</title>
		<link>http://www.refreshinglyblue.com/2009/04/21/share-files-between-linux-and-mac/</link>
		<comments>http://www.refreshinglyblue.com/2009/04/21/share-files-between-linux-and-mac/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 02:32:01 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Everyday Tips]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=131</guid>
		<description><![CDATA[It is EXTREMELY easy to happily share files between your linux system and your mac. I use both Ubuntu and Mac OS X. Simply login into you mac desktop, open up your system settings and turn on Remote Login. This enables incoming SSH connections to your mac. If you want to connect while you are [...]]]></description>
			<content:encoded><![CDATA[<p>It is EXTREMELY easy to happily share files between your linux system and your mac. I use both Ubuntu and Mac OS X. Simply login into you mac desktop, open up your system settings and turn on Remote Login. This enables incoming SSH connections to your mac. If you want to connect while you are away from home, you can set up some sort of dynamic IP service like DynDNS.org. Open up port 22 on your home firewall or router and you can connect to your home mac from anywhere you go with an internet connection.</p>
<p>Once your mac has SSH enabled, log into your Ubuntu machine and click Places &#8211;> Connect To Server. Choose SSH as your Service Type. Enter in the IP address of your mac or whatever name you may have assigned to it in your /etc/hosts file or whatever. Use the username and password you use to log into mac and there you go. You can browse files on your mac with your Ubuntu machine in Nautilus.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2009/04/21/share-files-between-linux-and-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Delete URL Auto-fill In Safari &#8211; One At A Time</title>
		<link>http://www.refreshinglyblue.com/2008/12/12/how-to-delete-url-auto-fill-in-safari-one-at-a-time/</link>
		<comments>http://www.refreshinglyblue.com/2008/12/12/how-to-delete-url-auto-fill-in-safari-one-at-a-time/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 14:50:59 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Everyday Tips]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=93</guid>
		<description><![CDATA[I like using Safari and I&#8217;m a web developer. Sometimes I&#8217;ll be developing a website and then decide to rename a page. The problem is Safari will cache the old pages&#8217; URL and then auto-fill the old URL as I&#8217;m typing. Then I hit enter and shucks, I&#8217;m getting a File Not Found error. In [...]]]></description>
			<content:encoded><![CDATA[<p>I like using Safari and I&#8217;m a web developer. Sometimes I&#8217;ll be developing a website and then decide to rename a page. The problem is Safari will cache the old pages&#8217; URL and then auto-fill the old URL as I&#8217;m typing. Then I hit enter and shucks, I&#8217;m getting a File Not Found error. In FireFox you can just press Shift-Delete to get rid of the outdated URL. In Safari, to delete one, several, or even all of your cached urls used by the auto-fill feature, just delete the offending URLs from your history.</p>
<p>To do this you can go to Bookmarks &ndash;&gt; Show All Bookmarks. Then in the upper right corner of your window you can search for the URL you want to delete. I&#8217;m frequently typing the domain of our development server so I can delete all of the development URLs they may be outdated. Once you see the URLs you want to delete, highlight them and press Delete. This is a little more cumbersome than Firefox&#8217;s Shift-Delete but at least it can be done.</p>
<p><strong>Note:</strong> Both History and Bookmarks are used for the auto-fill feature. So even if you delete all of your history, the URLs from your Bookmarks will still be used for auto-fill. Of course, if you have bookmarked a page that is no longer available you probably want to delete that too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/12/12/how-to-delete-url-auto-fill-in-safari-one-at-a-time/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Multiple Gmail Signatures</title>
		<link>http://www.refreshinglyblue.com/2008/12/10/multiple-gmail-signatures/</link>
		<comments>http://www.refreshinglyblue.com/2008/12/10/multiple-gmail-signatures/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 03:29:40 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Everyday Tips]]></category>
		<category><![CDATA[Mac OSX]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=87</guid>
		<description><![CDATA[I Want Mulitple Gmail Signatures
I love using Gmail and I have several different email address for the various companies I work for. Gmail only lets me have one signature which is a bit of a problem because, depending on which from address I am using, I use different email signatures. There are a couple of [...]]]></description>
			<content:encoded><![CDATA[<h1>I Want Mulitple Gmail Signatures</h1>
<p>I love using Gmail and I have several different email address for the various companies I work for. Gmail only lets me have one signature which is a bit of a problem because, depending on which <em>from</em> address I am using, I use different email signatures. There are a couple of Firefox add-ons that help with the problem but sometime I enjoy using other browsers like Safari. I have finally found the solution using QuickSilver and it&#8217;s <em>Shelf</em> feature.</p>
<h1>QuickSilver And The Shelf</h1>
<p>I&#8217;ve know about the Shelf on QuickSilver for a while now. It&#8217;s like a persistent clipboard. You can save snippets of text and then use that text later &#8211; like copying things to the clipboard but it stays there forever. So this was a good solution for my multiple email signature problem except that it took quite a few key stokes to get the text off the shelf and into my email. I set up triggers to do this but QuickSilver&#8217;s trigger display doesn&#8217;t handle the multi-line signature trigger very well. The name of the trigger spans multiple lines and overlaps the names of my other triggers. I hate that so I avoided using that as a solution. Also, it&#8217;s hard to think of enough unique keyboard shortcuts of each one of my five different signatures that don&#8217;t interfere with other shortcuts. So I created a trigger that just opened the shelf. Once the shelf is open I right-click the signature I want, then select <em>paste</em> from the actions menu. This was a fair solution, but the right-clicking and then hunting for <em>paste</em> in the pop-up actions menu was still a bit cumbersome.</p>
<h1>Command Chains Can Be Stored On The Shelf</h1>
<p>What I didn&#8217;t realize until today, was that you can store more than just text on the shelf. You can store chains of actions. So now my workflow is really nice. I have a keyboard shortcut that pulls up the Shelf then I just double-click on the signature I want and Blamo! my signature is in my email. Since this is a QuickSilver thing, I can use the signature for Mail.app, or Gmail and I can use any browser I want. It&#8217;s very nice. The one last tweak I wish I could figure out is how to get rich text in my signature because it seem that only plain text can be stored in QuickSilver&#8217;s shelf.</p>
<h1>How To Store Command Chains On The Shelf</h1>
<p>The huge realization I had today was that you can type Control-Enter rather than just Enter to make a chain of actions in QuickSilver. So I create the text (type . in the subject panel) for my email signature. Then tab to the action window and type <em>paste</em> the type Control-Enter and type <em>Put on Shelf</em> then click Execute.  Now you can open your shelf, double-click your signature and it is pasted into whatever text area you were just in.</p>
<p>If anybody knows how to get rich text into the signature I would LOVE to know. I know that you can copy from Pages or Word or whatever and the bold, italics, links, etc come with you when you paste into Gmail. So I&#8217;ve thought about writing an AppleScript to open up a Pages document with my signature, copy the content to the clipboard, quitting Pages, then paste the clipboard. But the launching and quitting of pages takes too long and is more trouble than it&#8217;s worth.</p>
<h1>Video Tutorial</h1>
<p>Here is a quick video tutorial showing how to set all this up.</p>
<p><embed src="http://blip.tv/play/Ad_0PwA" type="application/x-shockwave-flash" width="479" height="272" allowscriptaccess="always" allowfullscreen="true"></embed></p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/12/10/multiple-gmail-signatures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google PageRank In Safari &#8211; Or Any Browser</title>
		<link>http://www.refreshinglyblue.com/2008/10/28/google-pagerank-in-safari/</link>
		<comments>http://www.refreshinglyblue.com/2008/10/28/google-pagerank-in-safari/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 18:32:27 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Everyday Tips]]></category>
		<category><![CDATA[Mac OSX]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=68</guid>
		<description><![CDATA[UPDATED 6/10/2009: The checker works again.
I like the option to check Google PageRank easily no matter what browser I am using so I wrote this quick little script to grab the PageRank of whatever page you are looking at and then pop open a little window to display the rank. All you need to do [...]]]></description>
			<content:encoded><![CDATA[<p><b>UPDATED 6/10/2009:</b> The checker works again.</p>
<p>I like the option to check Google PageRank easily no matter what browser I am using so I wrote this quick little script to grab the PageRank of whatever page you are looking at and then pop open a little window to display the rank. All you need to do is drag the link below to your bookmarks bar on your browser.</p>
<p><a href='javascript:void(window.open("http://www.digitalunderware.com/pr.php?url="+escape(location.href),"prwin","width=275,height=200,top=0,left=0,location=0"));'>Check PR</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/10/28/google-pagerank-in-safari/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>PHPDoc &#8211; How To Continue Comments In TextMate</title>
		<link>http://www.refreshinglyblue.com/2008/08/21/phpdoc-how-to-continue-comments-in-textmate/</link>
		<comments>http://www.refreshinglyblue.com/2008/08/21/phpdoc-how-to-continue-comments-in-textmate/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 15:40:01 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=54</guid>
		<description><![CDATA[When using TextMate to code PHP, you may be annoyed by the way TextMate handles hitting the Enter key while in a PHP comment block. I would like the lead * to be continued on the new line. There are two ways to get this to happen.

The Easy Way
Intead of hitting the Return key on [...]]]></description>
			<content:encoded><![CDATA[<p>When using TextMate to code PHP, you may be annoyed by the way TextMate handles hitting the <em>Enter</em> key while in a PHP comment block. I would like the lead * to be continued on the new line. There are two ways to get this to happen.</p>
<p><span id="more-54"></span></p>
<h2>The Easy Way</h2>
<p>Intead of hitting the <em>Return</em> key on your keyboard, hit the <em>Enter</em> key on the number pad. The new line that gets created will have the leading * and you can continue your comment. If you are on a laptop, hit <em>function Return</em> since you may not have a number pad.</p>
<h2>The Slightly Harder Way</h2>
<p>If you don&#8217;t want to fling your hand all the way over to your number pad and would prefer to just hit the normal <em>Return</em> key to continue your comment, you can create a TextMate Snippet to get TextMate to enter the leading * on the new line.</p>
<ul>
<li>Open the Bundle Editor</li>
<li>Create a new Snippet</li>
<li>Name the Snippet something like &#8220;phpdoc newline&#8221;</li>
<li>Clear the default snippet text and enter this regular expression</li>
</ul>
<blockquote>
<pre><code>
${TM_CURRENT_LINE/(.<em>&#42;\/$)|.</em>?(\/&#42;(?!.<em>&#42;\/)).</em>|.<em>/(?1:
:
(?2: )</em> )/}
</code></pre>
</blockquote>
<ul>
<li>Set <strong>Activation</strong>: Key Equivalent</li>
<li>Click in the <strong>Activation text box</strong> and press your <em>Return</em> key</li>
<li>Set <strong>Scope Selector</strong>: source.php comment.block</li>
</ul>
<p>Thank you to <a href="http://www.killersoft.com/randomstrings/2006/06/20/textmate-and-phpdoc-comment-blocks/">Clay Loveless for blogging about this Snippet</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/08/21/phpdoc-how-to-continue-comments-in-textmate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac Mail: Signature With A Link</title>
		<link>http://www.refreshinglyblue.com/2008/07/15/mac-mail-signature-with-a-link/</link>
		<comments>http://www.refreshinglyblue.com/2008/07/15/mac-mail-signature-with-a-link/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 18:43:21 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Everyday Tips]]></category>
		<category><![CDATA[Mac OSX]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/2008/07/15/mac-mail-signature-with-a-link/</guid>
		<description><![CDATA[I&#8217;ve been asked a few times how to make a signature with a link in Mac Mail. I&#8217;m using Leopard and I agree that it&#8217;s not very obvious how to pull this off. The steps are fairly simple as long as you know what to do.

Open a new mail message
Create a link in your mail [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been asked a few times how to make a signature with a link in Mac Mail. I&#8217;m using Leopard and I agree that it&#8217;s not very obvious how to pull this off. The steps are fairly simple as long as you know what to do.</p>
<ul>
<li>Open a new mail message</li>
<li>Create a link in your mail message</li>
<li>Copy your link into your signature</li>
</ul>
<p>Here is a quick <strong>screencast</strong> to show you how to pull this off. Not only does this work with links, but it also works with any other types of formatting in your mail message &#8211; bold, italics, fonts, etc.</p>
<p><span id="more-24"></span></p>
<p><embed src="http://blip.tv/play/AcKyVgA" type="application/x-shockwave-flash" width="510" height="330" allowscriptaccess="always" allowfullscreen="true"></embed></p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/07/15/mac-mail-signature-with-a-link/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
