<?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>Sentia &#124; Sydney IT Consultancy, Software Development, Ruby on Rails, Web Application Development, Rails Development, Test Driven Development, Microsoft.Net, Asp.Net , Agile, Continuous Integration Training, iPhone development &#187; macosx</title>
	<atom:link href="http://www.sentia.com.au/tag/macosx/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sentia.com.au</link>
	<description>Sentia company website and blog about all things development, Ruby on Rails, Microsoft .Net, ASP.Net, C#.Net, Agile web development, Test Driven Development</description>
	<lastBuildDate>Fri, 27 Aug 2010 05:10:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using passenger to run your rails applications when developing</title>
		<link>http://www.sentia.com.au/2009/09/using-passenger-to-run-your-rails-applications-when-developing/</link>
		<comments>http://www.sentia.com.au/2009/09/using-passenger-to-run-your-rails-applications-when-developing/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 07:21:04 +0000</pubDate>
		<dc:creator>Michael Cindric</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[mac osx]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://sentia.com.au/?p=494</guid>
		<description><![CDATA[If your like me and sick of having to run ./script/server every time you want to start your rails app using passenger locally is for you then. First thing is to install passenger like so

sudo gem install passenger

Then you need to install the apache module for passenger.

sudo passenger-install-apache2-module

Now once you do this you will be [...]]]></description>
			<content:encoded><![CDATA[<p>If your like me and sick of having to run ./script/server every time you want to start your rails app using passenger locally is for you then. First thing is to install passenger like so</p>
<pre class="brush: ruby;">
sudo gem install passenger
</pre>
<p>Then you need to install the apache module for passenger.</p>
<pre class="brush: ruby;">
sudo passenger-install-apache2-module
</pre>
<p>Now once you do this you will be told to all the following lines to your httpd.conf file in apache. Now you can just add these lines no problems but l like to have it in its own conf file and since apache will also load all conf files in /etc/apache2/other/ directory just create a  passenger.conf file and add those lines in. Now these lines are different depending on how you installed ruby. I installed it in user/local keeping the orginal ruby version that ships with mac clean so mine looks like so</p>
<pre class="brush: ruby;">
LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5
PassengerRuby /usr/local/bin/ruby
</pre>
<p>To create the new passenger.conf file just run the below command assuming you have textmate installed.</p>
<pre class="brush: ruby;">
mate /etc/apache2/other/passenger.conf
</pre>
<p>Once you have cut and pasted those lines in save it and close the file. You then need to download the <a href=" http://www.fngtps.com/passenger-preference-pane">passenger preference pane</a>. Here is a link to the latest build <a href="http://www.fngtps.com/files/2/2009/09/PassengerPane-1.3.tgz">passenger-preference-pane1.3</a>. Download and install then fire it up.</p>
<p><img src="http://sentia.com.au/wp-content/uploads/2009/09/passenger_preference_pane.png" alt="Passenger preference pane"  height="382px" width="500px" title="Using passenger to run your rails applications when developing" /></p>
<p>Now unlock it if need be and click on the + button to add a new site. A window will pop up and now just select the root of your rails app and click &#8220;open&#8221;. You can now change the address if need be but just defaults to (rails_app_name).local. Hit apply and your good to go.</p>
<p>So go back to your browser and type in that address and it will fire up and your up and running. Now you wont see the log like you are used to since your not running webrick etc but all you have to do is tail the development log by going to the root dir of your application in terminal and typing the following</p>
<pre class="brush: ruby;">
 tail -f log/development.log
</pre>
<p>And that&#8217;s it. You will need to restart passenger if you change the environment.rb file but thats simple enough via the preference pane. So no more ./script/server yay</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sentia.com.au/2009/09/using-passenger-to-run-your-rails-applications-when-developing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cool colours and GitHub branch in Terminal</title>
		<link>http://www.sentia.com.au/2009/06/cool-colours-and-github-branch-in-terminal/</link>
		<comments>http://www.sentia.com.au/2009/06/cool-colours-and-github-branch-in-terminal/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 01:17:18 +0000</pubDate>
		<dc:creator>Michael Cindric</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[mac osx]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://sentia.com.au/?p=285</guid>
		<description><![CDATA[There are many posts out there about making terminal have nice colours and getting it to display your projects GitHub branch. So l thought l would post mine
Here is what my terminal looks like.

Yes l am using Ryan Bates railscasts as my sample project (Thanks Ryan). As you can see it has the username@machine and [...]]]></description>
			<content:encoded><![CDATA[<p>There are many posts out there about making terminal have nice colours and getting it to display your projects GitHub branch. So l thought l would post mine</p>
<p>Here is what my terminal looks like.</p>
<p><img src="http://sentia.com.au/wp-content/uploads/2009/06/picture-4.png" alt="my terminal" title="my terminal" width="438" height="73" class="alignnone size-full wp-image-286" /></p>
<p>Yes l am using Ryan Bates railscasts as my sample project (Thanks Ryan). As you can see it has the username@machine and then if you are in a project running git is also has the branch.</p>
<p>All you need to do it add the following to either your bash_login or bash_profile depending on what you are using. So first you run</p>
<pre class="brush: ruby;">
   mate ~/.bash_login
</pre>
<p>I am using textmate to edit this file. Once there simple add the following</p>
<pre class="brush: ruby;">
export CLICOLOR=1
export TERM=xterm-color
export LSCOLORS=gxfxcxdxbxegedabagacad  # cyan directories
export PS1=&quot;\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ \`ruby -e \&quot;print (%x{git branch 2&gt; /dev/null}.grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1) ')\&quot;\`\[\033[37m\]$\[\033[00m\] &quot;
</pre>
<p>Save the file and reload your bash like so and you are good to go enjoy.</p>
<pre class="brush: ruby;">
  . ~/.bash_login
</pre>
<p>Of course you can change the colour of the font but ill leave that to you</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sentia.com.au/2009/06/cool-colours-and-github-branch-in-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
