<?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>9thport &#187; Apple</title>
	<atom:link href="http://9thport.net/archives/category/apple/feed" rel="self" type="application/rss+xml" />
	<link>http://9thport.net</link>
	<description>organization, programming, photography, technical news I find interesting</description>
	<lastBuildDate>Wed, 25 Aug 2010 23:43:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Using TextMate to process text lines</title>
		<link>http://9thport.net/archives/945</link>
		<comments>http://9thport.net/archives/945#comments</comments>
		<pubDate>Wed, 25 Aug 2010 23:43:43 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://9thport.net/?p=945</guid>
		<description><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/>Recently I have been using one my favorite text editors on my mac to process some text lines. Below is a list of some commands I found useful: Lowercase every character: tr [:upper:] [:lower:] Sort the lines: sort Show only unique lines: uniq]]></description>
			<content:encoded><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/><p>Recently I have been using one my favorite text editors on my mac to process some text lines. Below is a list of some commands I found useful:</p>
<p>Lowercase every character: tr [:upper:] [:lower:]<br />
Sort the lines: sort<br />
Show only unique lines: uniq</p>
]]></content:encoded>
			<wfw:commentRss>http://9thport.net/archives/945/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using VLC to Convert WMA to MP3 for free</title>
		<link>http://9thport.net/archives/937</link>
		<comments>http://9thport.net/archives/937#comments</comments>
		<pubDate>Thu, 29 Jul 2010 05:39:38 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://9thport.net/?p=937</guid>
		<description><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/>I rarely need to convert files on my Mac, but when I do, I seem to think I have to find some type of weird audio program to help. My usual pattern to solve this problem was to go onto google.com and put in "convert wma to mp3" and hope for the best. But tonight [...]]]></description>
			<content:encoded><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/><p>I rarely need to convert files on my Mac, but when I do, I seem to think I have to find some type of weird audio program to help. My usual pattern to solve this problem was to go onto google.com and put in "convert wma to mp3" and hope for the best. But tonight was different. While playing around with the program VLC, I noticed a menu item that I have never used before: "Streaming/Exporting Wizard". This option allows for doing just as it suggests, but after playing around with some options, I found out that VLC can convert WMA files to MP3 files!</p>
<p>Here are the steps:</p>
<ol>
<li>Open the WMA file(s) in VLC</li>
<li>Goto File -&gt; Streaming/Export Wizard</li>
<li>Choose "Transcode/Save to file" and click Next</li>
<li>Choose "Existing playlist item" and highlight the items you want converted and click Next</li>
<li>Because I was converting audio, I used the "Transcode audio" option</li>
<li>Set the codec to "MP3" and choose your bitrate (I went with default of 192) and click Next</li>
<li>Set your encapsulation to "RAW" and click Next</li>
<li>Set your destination directory and click Next and it should start converting!</li>
</ol>
<p>Afterwards I used Automator to rename my files from "Song Title.wma.raw" to "Song Title.mp3" by:</p>
<ol>
<li>Dragging the audio files onto Automator</li>
<li>Adding "Rename Finder Items"</li>
<li>Set the operation of the "Rename Finder Items" to "Replace Text"</li>
<li>Find = .wma.raw</li>
<li>Replace = .mp3</li>
<li>Click Run!</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://9thport.net/archives/937/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPad + Velcro</title>
		<link>http://9thport.net/archives/889</link>
		<comments>http://9thport.net/archives/889#comments</comments>
		<pubDate>Thu, 27 May 2010 12:00:09 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Food]]></category>
		<category><![CDATA[Innovation]]></category>
		<category><![CDATA[Organization]]></category>

		<guid isPermaLink="false">http://9thport.net/?p=889</guid>
		<description><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/>iPad + Velcro from Jesse Rosten on Vimeo.]]></description>
			<content:encoded><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/><p><object width="400" height="225"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=11886557&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=11886557&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object>
<p><a href="http://vimeo.com/11886557">iPad + Velcro</a> from <a href="http://vimeo.com/user478713">Jesse Rosten</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://9thport.net/archives/889/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>organizing mail faster with keyboard shortcuts in snow leopard os x 10.6</title>
		<link>http://9thport.net/archives/604</link>
		<comments>http://9thport.net/archives/604#comments</comments>
		<pubDate>Mon, 02 Nov 2009 19:57:34 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Organization]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://9thport.net/?p=604</guid>
		<description><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/>I have been recently reading the book called Upgrade Your Life: The Lifehacker Guide to Working Smarter, Faster, Better, by Gina Trapini. In the book there are tons of suggestions on how to save time and headaches in your life. For myself, I have found the hacks to very rewarding! Somethings in my life are [...]]]></description>
			<content:encoded><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/><p>I have been recently reading the book called <a href="http://www.amazon.com/Upgrade-Your-Life-Lifehacker-Working/dp/0470238364/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1257190931&amp;sr=8-1"><span id="btAsinTitle">Upgrade Your Life: The Lifehacker Guide to Working Smarter, Faster, Better</span></a>, by Gina Trapini. In the book there are tons of suggestions on how to save time and headaches in your life. For myself, I have found the hacks to very rewarding! Somethings in my life are very tedious and need to be streamlined. Recently, I found that my email system needed a nice ironing. So, I did some quick google searches and did not find much help on how to move message really easy via the keyboard. Thus, I set out to find my own solution. That solution is keyboard shortcuts for os x mail. This helps in saving time, and here is how to implement it for one folder:</p>
<p>To make a short cut for moving a message to a folder:</p>
<ol>
<li>open system preferences</li>
<li>select "keyboard" module</li>
<li>select "keyboard shortcuts"</li>
<li>select "application shortcuts" on the left side</li>
<li>add a new entry for the "Mail" application</li>
<li>make the menu title to be the <span style="text-decoration: underline;"><em><strong>exact</strong></em></span> spelling and capitolization as the folder you want to move messages to</li>
<li>choose a keyboard shortcut (tip: use cmd+alt+ctrl+(letter) to avoid overlap)</li>
<li>relaunch mail to recognize the shortcut(s)</li>
</ol>
<p><strong>update</strong>: I have noticed that sometimes, mail does not recognize the keyboard shortcut until after you have used the menu item. This is very upsetting.</p>
<p>Choose a message and hit your keyboard shortcut. Volia! I hope you saw your message dissapear. If not, I suggest you try picking a new keyboard shortcut and relaunching mail or making sure the shortcut is recognized. To verify if your shortcut is being recognized, try the following:</p>
<ol>
<li>open your mail application</li>
<li>select the "Message" menu</li>
<li>select "Move To" menu</li>
<li>find the folder you are targeting with your shortcut</li>
<li>check to make sure your menu has your shortcut next to it (refer to the screenshot below for an example)</li>
</ol>
<p><a href="http://9thport.net/wp-content/uploads/2009/11/menu-screenshot.png"><img class="size-full wp-image-605  alignleft" title="menu-screenshot" src="http://9thport.net/wp-content/uploads/2009/11/menu-screenshot.png" alt="menu-screenshot" width="270" height="130" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://9thport.net/archives/604/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My favorite iPhone games</title>
		<link>http://9thport.net/archives/588</link>
		<comments>http://9thport.net/archives/588#comments</comments>
		<pubDate>Wed, 30 Sep 2009 05:42:45 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://9thport.net/?p=588</guid>
		<description><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/>I have found some nice games that have captured my attention while looking to keep myself occupied in various moments of life: newtonica orbital tangram pro lemonade flightcontrol trace]]></description>
			<content:encoded><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/><p>I have found some nice games that have captured my attention while looking to keep myself occupied in various moments of life:</p>
<ul>
<li><a title="newtonica iphone game" href="http://newtonica.net/">newtonica</a></li>
<li><a href="http://www.orbital-game.com/">orbital</a></li>
<li>tangram pro</li>
<li>lemonade</li>
<li>flightcontrol</li>
<li>trace</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://9thport.net/archives/588/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>zipping files with a password in os x leopard</title>
		<link>http://9thport.net/archives/459</link>
		<comments>http://9thport.net/archives/459#comments</comments>
		<pubDate>Fri, 27 Mar 2009 16:42:11 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://9thport.net/archives/459</guid>
		<description><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/>This is not going to be some long post about the reasons why I am zipping up files with passwords. Also, opening these zip files with the Finder will yield an error. So, this is all work for the terminal command line. If you do not like that, then I am guessing that you have [...]]]></description>
			<content:encoded><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/><p>This is not going to be some long post about the reasons why I am zipping up files with passwords. Also, opening these zip files with the Finder will yield an error. So, this is all work for the terminal command line. If you do not like that, then I am guessing that you have or need some type of program that will handle this all for you.</p>
<p><span style="font-family: terminal,monaco;">zip -e filename.zip path/filepattern.*</span></p>
<p>to unzip the file</p>
<p><span style="font-family: terminal,monaco;">unzip filename.zip</span></p>
]]></content:encoded>
			<wfw:commentRss>http://9thport.net/archives/459/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Searching mail with dates, keywords, and from with os x leopard Mail.app</title>
		<link>http://9thport.net/archives/434</link>
		<comments>http://9thport.net/archives/434#comments</comments>
		<pubDate>Tue, 10 Mar 2009 21:29:59 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Organization]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://9thport.net/?p=434</guid>
		<description><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/>I have always wondered how to search for stuff in my mailboxes, and now, after reading the help pages, I have found out how to do that with some good precision! Lets say I need an email with the keyword of "motor", from my contact named "amy", and sent after Jan 01 2009. This is [...]]]></description>
			<content:encoded><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/><p>I have always wondered how to search for stuff in my mailboxes, and now, after reading the help pages, I have found out how to do that with some good precision!</p>
<p>Lets say I need an email with the keyword of "motor", from my contact named "amy", and sent after Jan 01 2009. This is what you would use in the search field for narrowing your scope of message selection:</p>
<p><span style="font-family: terminal,monaco;">motor from:amy date:&gt;=01/01/09</span></p>
]]></content:encoded>
			<wfw:commentRss>http://9thport.net/archives/434/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>using the tab button to access graphical user interface buttons (or gui) to make navigation faster</title>
		<link>http://9thport.net/archives/401</link>
		<comments>http://9thport.net/archives/401#comments</comments>
		<pubDate>Thu, 19 Feb 2009 20:24:19 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Organization]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[the_seasoned_mac]]></category>

		<guid isPermaLink="false">http://9thport.net/archives/401</guid>
		<description><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/>In Mac OS X some dialog boxes or web pages that have buttons or fields are presented at many times throughout the entire use of the system. I myself use OS X all day and in most cases, all night. Moving between these items with the TAB button has improved my productivity because the TAB [...]]]></description>
			<content:encoded><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/><p>In Mac OS X some dialog boxes or web pages that have buttons or fields are presented at many times throughout the entire use of the system. I myself use OS X all day and in most cases, all night.</p>
<p>Moving between these items with the TAB button has improved my productivity because the TAB button is so much closer than the mouse.</p>
<p>But, this feature is not turned on by default. You might think, "It is turned on and I use it all the time! I don't think you know what your talking about". Well, if that's is how you feel, but are still curious, check out the pic I shot from the Keyboard Preferences:</p>
<div id="attachment_400" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-400" title="keyboard-preferences" src="http://9thport.net/wp-content/uploads/2009/02/keyboard-preferences-300x273.png" alt="os x 10.5 keyboard preference pane" width="300" height="273" /><p class="wp-caption-text">os x 10.5 keyboard preference pane</p></div>
<p>Take notice towards the bottom of the window where the following text of "Full keyboard access:" and the option of "All controls" is selected.</p>
<p>This allows you to TAB around just about everything that is clickable by the mouse! I absolutely love this option and always forget about turning it on.</p>
]]></content:encoded>
			<wfw:commentRss>http://9thport.net/archives/401/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making use of prefrences in applescripts with the Griffin PowerMate and email</title>
		<link>http://9thport.net/archives/365</link>
		<comments>http://9thport.net/archives/365#comments</comments>
		<pubDate>Sat, 31 Jan 2009 04:39:49 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://9thport.net/?p=365</guid>
		<description><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/>Okay, I own a PowerMate gadget that I have not used in a very very long time. So this afternoon I deiced to play with it and make a couple of scripts that help me at work. My first task was to make the thing pulse when I have unread email in my inbox. After [...]]]></description>
			<content:encoded><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/><p>Okay, I own a PowerMate gadget that I have not used in a very very long time. So this afternoon I deiced to play with it and make a couple of scripts that help me at work.</p>
<p>My first task was to make the thing pulse when I have unread email in my inbox. After some simple searching I found a nice entry at macosxhints.com about the script. I also found some smart posts that contained some very effcient apple scripts. One them had a nice idea of using the "say" command to make the mac speak some text! I found this to be very entertaining and started to think how I could use this when I wanted to.</p>
<p>Just a little side note: I have decided to stop checking my email ever 10 seconds and move that to 10 minutes. I find that checking email or seeing that I have unread email ever 10 seconds or so is very distruptive in the moment of my thoughts and projects. So I have decided to increment my email checking to 10 minutes for now. I might even increase this to 20 minutes. Not sure yet.</p>
<p>Back to the script. I liked the idea of a script telling me when it was checking my email but I wanted to have the ability to toggle this on and off with a prefrences setting. After a little searching, I found a great idea and put it to good use. It was so good that I had to write it down because I know I will be trying to implement this in future scripts.</p>
<h3>Iteration 1</h3>
<p>I came up with this design:</p>
<p><span style="font-family: terminal,monaco;"><span style="font-family: andale mono,times;">set mac_speak to (do shell script "defaults read com.AaronsAppleScripts.pref 'macSpeak'")</span></span></p>
<p><span style="font-family: andale mono,times;">if mac_speak is "true" then<br />
say "Processing email"<br />
end if</span></p>
<p><span style="font-family: andale mono,times;">try<br />
tell application "System Events" to if (exists process "Mail") is false then<br />
set theCount to 0<br />
else<br />
tell application "Mail" to set theCount to unread count of inbox<br />
end if</span></p>
<p><span style="font-family: andale mono,times;">if theCount &gt; 0 then<br />
tell application "PowerMateDaemon" to set pulse always to true<br />
else<br />
tell application "PowerMateDaemon"<br />
set pulse always to false<br />
set brightness to 0<br />
end tell<br />
end if<br />
end try</span></p>
<p><span style="font-family: andale mono,times;">if mac_speak is "true" then<br />
say "Finished"<br />
end if</span></p>
<h3><span style="font-family: andale mono,times;"><span style="font-family: arial,helvetica,sans-serif;">Explanation of the preferences</span></span></h3>
<p>To use the preferences here are the following examples of commands to type in your terminal:</p>
<p>set the value to true:</p>
<p><code><span style="font-family: andale mono,times;"><strong>defaults write com.AaronsAppleScripts.pref 'macSpeak' 'true'</strong></span></code></p>
<p>set the value to false:</p>
<p><span style="font-family: andale mono,times;"><code><strong>defaults write com.AaronsAppleScripts.pref 'macSpeak' 'false'</strong></code></span></p>
<p>read the preference:</p>
<p><strong><code><span style="font-family: andale mono,times;">defaults read com.AaronsAppleScripts.pref 'macSpeak'</span></code></strong></p>
<p>use preferences inside apple scripts:</p>
<p><strong></strong></p>
<p><span style="font-family: andale mono,times;"><strong><code>do shell script "defaults read com.AaronsAppleScripts.pref 'macSpeak'"</code></strong></span></p>
]]></content:encoded>
			<wfw:commentRss>http://9thport.net/archives/365/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>building passenger with macports in os x leopard and hosting with apache and create an alias with railsbaseuri</title>
		<link>http://9thport.net/archives/340</link>
		<comments>http://9thport.net/archives/340#comments</comments>
		<pubDate>Sun, 11 Jan 2009 07:17:33 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://9thport.net/archives/340</guid>
		<description><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/>Installing Passenger should be very easy. Please try following my steps below and you should get some good success. I built and used the following configuration with Mac OSX 10.6. But I am sure changes in the OS/Passenger/Ruby will change in the future. You will need to have the following for this article: MacPorts installed [...]]]></description>
			<content:encoded><![CDATA[<img src="http://9thport.net/wp-content/uploads/apple.png" width="57" height="57" alt="" title="Apple" /><br/><p><span style="font-size: small;">Installing Passenger should be very easy. Please try following my steps below and you should get some good success. I built and used the following configuration with Mac OSX 10.6. But I am sure changes in the OS/Passenger/Ruby will change in the future. You will need to have the following for this article:</span></p>
<ol>
<li><span style="font-weight: normal;"><span style="font-size: small;">MacPorts installed</span></span></li>
<li><span style="font-weight: normal;"><span style="font-size: small;">No fear of using the terminal</span></span></li>
</ol>
<p><span style="font-weight: normal;"><span style="font-size: small;">Below are the steps necessary to do everything, after that is a list of commands I used that follow the steps:</span></span></p>
<ol>
<li><span style="font-size: small;">Install the Passenger gem</span></li>
<li><span style="font-size: small;">Install the Apache2 with MacPorts</span></li>
<li><span style="font-size: small;">Set variable APXS for building passenger module</span></li>
<li><span style="font-size: small;">Run build and install for Passenger module for Apache 2</span></li>
<li><span style="font-size: small;">Edit Apache Conf file</span></li>
</ol>
<p><span style="font-size: small;">Here is what I typed in (I have also attached <a href="http://9thport.net/wp-content/uploads/2009/01/passenger_apache_railsbaseuri.txt">Instructions on how to install Passenger and host Ruby on Rails with either Virtualhost or RailsBaseURI</a> for downloading):</span></p>
<ol>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">gem install passenger</span></span></li>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">port install apache2</span></span></li>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">export APXS=/opt/local/apache2/bin/apxs</span></span></li>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">passenger-install-apache2-module</span></span></li>
<li><strong><span style="font-size: small;">edit your apache conf file to add the following lines</span></strong>
<ol>
<li><strong><span style="font-weight: normal; line-height: 18px; white-space: pre;"><span style="font-size: small;">LoadModule passenger_module /opt/local/lib/ruby/gems/1.8/gems/passenger-2.0.6/ext/apache2/mod_passenger.so</span></span></strong></li>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">PassengerRoot /opt/local/lib/ruby/gems/1.8/gems/passenger-2.0.6</span></span></li>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">PassengerRuby /opt/local/bin/ruby</span></span></li>
</ol>
</li>
<li><strong><span style="font-size: small;">host your rails app with either a virtual host or RailsBaseURI /path/to/app/dir</span></strong>
<ol>
<li><strong><span style="font-size: small;">virtual host</span></strong>
<ol>
<li><strong><span style="font-size: small;">text to put in your apache conf</span></strong>
<ol>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">&lt;VirtualHost *:80&gt;</span></span></li>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">ServerName www.yourhost.com</span></span></li>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">DocumentRoot /somewhere/public</span></span></li>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">&lt;/VirtualHost&gt;</span></span></li>
</ol>
</li>
</ol>
</li>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">alias with railsbaseuri</span></span>
<ol>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">cd /somewhere/already</span></span></li>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">ln -s /rails_app/public /new_app</span></span></li>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">text to put in your apache conf</span></span>
<ol>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">&lt;VirtualHost *:80&gt;</span></span></li>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">ServerName www.yourhost.com</span></span></li>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">DocumentRoot /somewhere/already</span></span></li>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">RailsBaseURI /new_app</span></span></li>
<li><span style="line-height: 18px; white-space: pre;"><span style="font-size: small;">&lt;/VirtualHost&gt;</span></span></li>
</ol>
</li>
</ol>
</li>
</ol>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://9thport.net/archives/340/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
