
<?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>Able Technology</title>
	<atom:link href="http://www.abletech.co.nz/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.abletech.co.nz</link>
	<description>Web Application Programmers and Consultants</description>
	<lastBuildDate>Wed, 10 Mar 2010 02:50:51 +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>Able Technology Sign</title>
		<link>http://www.abletech.co.nz/2010/03/able-technology-sign/</link>
		<comments>http://www.abletech.co.nz/2010/03/able-technology-sign/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 02:50:26 +0000</pubDate>
		<dc:creator>nigel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=502</guid>
		<description><![CDATA[   

Make your own sign here
]]></description>
			<content:encoded><![CDATA[<p>
   <a href="http://www.abletech.co.nz/wp-content/uploads/2010/03/at.png"><img src="http://www.abletech.co.nz/wp-content/uploads/2010/03/at.png" alt="Able Tech" title="Able Tech" width="616" height="295" class="alignleft size-full wp-image-501" /></a>
</p>
<p>Make your own sign <a href="http://wellywood.skullandbones.co.nz/">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2010/03/able-technology-sign/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Country and Currency Code Mappings</title>
		<link>http://www.abletech.co.nz/2010/02/country-and-currency-code-mappings/</link>
		<comments>http://www.abletech.co.nz/2010/02/country-and-currency-code-mappings/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 21:13:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=497</guid>
		<description><![CDATA[I have had a to load a list of valid country and currency mappings for sharesight. It proved difficult to find a current correct list with the mapping between currency and country on the internet that is easily extractable.
wikipedia has a good source of current and obsolete codes &#8211; currency codes ISO 4217, country codes [...]]]></description>
			<content:encoded><![CDATA[<p>I have had a to load a list of valid country and currency mappings for <a href="http://www.sharesight.com.au">sharesight</a>. It proved difficult to find a current correct list with the mapping between currency and country on the internet that is easily extractable.</p>
<p>wikipedia has a good source of current and obsolete codes &#8211; currency codes <a href="http://en.wikipedia.org/wiki/ISO_4217">ISO 4217</a>, country codes ISO 3166.</p>
<p>Here is what we came up with. If anyone knows of a reliable up to date source then please comment.</p>
<p><script src="http://gist.github.com/304261.js?file=Country+Currency+Code+Mappings"></script></p>
<p>And to load into your rails app</p>
<p><script src="http://gist.github.com/304261.js?file=load+in+currency+and+countries"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2010/02/country-and-currency-code-mappings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recurring billing of expired credit cards</title>
		<link>http://www.abletech.co.nz/2010/01/recurring-billing-of-expired-credit-cards/</link>
		<comments>http://www.abletech.co.nz/2010/01/recurring-billing-of-expired-credit-cards/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 02:11:03 +0000</pubDate>
		<dc:creator>nigel</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=485</guid>
		<description><![CDATA[At Sharesight [www.sharesight.co.nz] we operate an online, subscription based portfolio management for DIY share market investors. For convenience, most of our customers choose to pay by credit card, and we bill them on a recurring basis, either monthly or annually. When customers subscribe, we make it clear to them that we will bill their card [...]]]></description>
			<content:encoded><![CDATA[<p>At <a href="http://www.sharesight.co.nz/">Sharesight</a> [www.sharesight.co.nz] we operate an online, subscription based portfolio management for DIY share market investors. For convenience, most of our customers choose to pay by credit card, and we bill them on a recurring basis, either monthly or annually. When customers subscribe, we make it clear to them that we will bill their card on a recurring basis (and, most importantly, we also make it easy for customers to cancel their subscription whenever they want).</p>
<p>We use the ActiveMerchant plugin (Ruby on Rails) to connect to the DPS Payment Express payment gateway. DPS connects to our BNZ Buyline merchant account which allows us to bill customers in both NZD and AUD. When we pass through a customer’s card details to DPS they return a billing token, and when we need to bill the card in the future, we simply send through the appropriate billing token to DPS along with the amount to be billed (this amount may change if customers upgrade or downgrade their accounts). This saves us from having to store our customers’ credit card details, and worry about the security issues that this entails.</p>
<h4>Expired Credit Cards</h4>
<p>Until now, the only real issue that we faced was the problem of expiring credit cards. Credit cards generally expire every two years (sometimes more frequently), primarily due to the fact that this is the life expectancy of the magnetic strip on the back of the card. When a customer’s credit card expired, they needed to provide us with the updated card details, otherwise when we tried to charge their card, we would receive a ‘card expired’ error back from DPS. Clearly this somewhat limits the convenience factor for our customers, in fact many customers told us so, pointing out that their card number hadn’t changed.</p>
<p>The solution, as it turns out, is a little known feature called the recurring billing flag. Essentially when a payment is sent through to the bank with the recurring billing flag set, they will (generally) ignore the expiry date when processing the transaction. I came across this feature via <a href="http://itmanagement.earthweb.com/columns/executive_tech/article.php/3607996/Credit-Card-Expiration-Dates-Are-Obsolete.htm">this blog post</a>, but could not find it documented anywhere in the technical documentation provided by either the bank or DPS. A quick call to a knowledgeable staff member at DPS, confirmed that they could in fact set this flag for us provided that we obtained written permission from the bank. Luckily we had no problem in obtaining prompt approval from the BNZ, and we were able to have the recurring billing flag enabled on our transactions within a couple of days.</p>
<p>I hope this knowledge is useful for other SaaS vendors who bill customers on a recurring basis. From what I understand, the banks may have different policies on allowing the recurring flag to be set.</p>
<p>Please let us know your experiences.</p>
<p><strong>Special guest post by <a href="http://www.sharesight.co.nz/about_us/#scott">Scott Ryburn</a>.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2010/01/recurring-billing-of-expired-credit-cards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oauth presentation</title>
		<link>http://www.abletech.co.nz/2009/12/oauth-presentation/</link>
		<comments>http://www.abletech.co.nz/2009/12/oauth-presentation/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 08:25:08 +0000</pubDate>
		<dc:creator>nigel</dc:creator>
				<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=477</guid>
		<description><![CDATA[He is a copy of my Oauth presentation [806 kB] from tonight's WellRailed group. I discussed Oauth from both a client and a server perspective. Plenty of examples from Sharesight, where we are building an API. 

Here is the example test.rb 'http://localhost:3000')
@request_token = @consumer.get_request_token

puts "Authorise url: #{@request_token.authorize_url}"
`open #{@request_token.authorize_url}`

puts "Enter OAuth verifier:"
@oauth_verifier = gets.strip

@access_token = @request_token.get_access_token(:oauth_verifier [...]]]></description>
			<content:encoded><![CDATA[<p>He is a copy of my <a href="/wp-content/uploads/2009/12/oauth.pdf">Oauth presentation</a> [806 kB] from tonight's <a href="http://groups.google.co.nz/group/WellRailed">WellRailed group</a>. I discussed Oauth from both a client and a server perspective. Plenty of examples from <a href="http://www.sharesight.co.nz">Sharesight</a>, where we are building an API. </p>

<p>Here is the example <code>test.rb</code file from the presentation:</p>

<textarea name="code" class="ruby" cols="90 rows="20">
#!/usr/bin/ruby
#

require 'rubygems'
require 'oauth'
require 'pp'

###################
# Authorisation
###################
@consumer = OAuth::Consumer.new("FDcyJ3ZrVlJhEuI4mOtC", "ytjnPDxT8QGi2f7YHlswJLoCWsQ3SGubmwVojJlx", :site => 'http://localhost:3000')
@request_token = @consumer.get_request_token

puts "Authorise url: #{@request_token.authorize_url}"
`open #{@request_token.authorize_url}`

puts "Enter OAuth verifier:"
@oauth_verifier = gets.strip

@access_token = @request_token.get_access_token(:oauth_verifier => @oauth_verifier)

###################
# Use
###################
@response = @access_token.get '/api/trades.xml'
pp @response.body
</textarea>

<p>I also discussed <a href="http://loadstorm.com">LoadStorm.com</a>, which has a free plan that allows up to 50 simultaneous users. I recommend you check them out. </p>]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2009/12/oauth-presentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Korimako (Bellbird) iPhone ringtone</title>
		<link>http://www.abletech.co.nz/2009/11/korimako-bellbird-iphone-ringtone/</link>
		<comments>http://www.abletech.co.nz/2009/11/korimako-bellbird-iphone-ringtone/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 07:49:02 +0000</pubDate>
		<dc:creator>nigel</dc:creator>
				<category><![CDATA[apple]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=471</guid>
		<description><![CDATA[I&#8217;ve been enjoying listening to New Zealand native birds as ringtones on my iPhone. Here is one of my favourites &#8211; the Korimako, or Bellbird [164 kB]. 
You are welcome to share this with your friends and redistribute &#8211; as long as you retain the copyright information contained within the file. 
To add it to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.abletech.co.nz/wp-content/uploads/2009/11/bellbird.jpg"><img src="http://www.abletech.co.nz/wp-content/uploads/2009/11/bellbird.jpg" alt="bellbird" title="bellbird" width="540" height="367" style="float:right;margin:1em" /></a><br />
I&#8217;ve been enjoying listening to New Zealand native birds as ringtones on my iPhone. Here is one of my favourites &#8211; the <a href="/wp-content/uploads/2009/11/Korimako-Bellbird.m4r">Korimako, or Bellbird</a> [164 kB]. </p>
<p>You are welcome to share this with your friends and redistribute &#8211; as long as you retain the copyright information contained within the file. </p>
<p>To add it to your iPhone, just download the file and then double click it. It should open iTunes and import itself. It will be copied to your iPhone next time to connect it to your computer. </p>
<p>Let me know in the comments if you like it, and I&#8217;ll create some more. Any requests?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2009/11/korimako-bellbird-iphone-ringtone/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Recession Busting Free Offer</title>
		<link>http://www.abletech.co.nz/2009/10/recession-busting-free-offer/</link>
		<comments>http://www.abletech.co.nz/2009/10/recession-busting-free-offer/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 22:01:39 +0000</pubDate>
		<dc:creator>nigel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=444</guid>
		<description><![CDATA[  
  There&#8217;s a recession on at the moment, and we&#8217;re doing our bit to help ease the pain.

Able Technology is offering a free half-day session with one of our technical consultants. You can use us for any of our usual services during this time. 
We have up to four slots available &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>
  <img src="/wp-content/uploads/2009/10/special-offer.png" alt="special-offer" title="special-offer" width="299" height="218" style="float:right" /><br />
  There&#8217;s a recession on at the moment, and we&#8217;re doing our bit to help ease the pain.
</p>
<p>Able Technology is offering a <b>free half-day session</b> with one of our <a href="/about-us/">technical consultants</a>. You can use us for any of our <a href="/what-we-do/">usual services</a> during this time. </p>
<p>We have up to <em>four slots</em> available &#8211; one for each week in October. The weeks are:</p>
<ul>
<li><strike>5 October</strike> &#8211; taken</li>
<li><strike>12 October</strike> &#8211; taken</li>
<li>19 October</li>
<li>26 October</li>
</ul>
<p>To apply, <a href="/contact-us/">speak to Nigel</a> on 0800 14-ABLE (0800 142-253). </p>
<h4>Small print</h4>
<ul>
<li>First-come, first-served</li>
<li>No strings attached</li>
<li>For new customers only</li>
<li>Not available to our competitors</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2009/10/recession-busting-free-offer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Macbook Pro Speed Test</title>
		<link>http://www.abletech.co.nz/2009/09/macbook-pro-speed-test/</link>
		<comments>http://www.abletech.co.nz/2009/09/macbook-pro-speed-test/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 08:24:46 +0000</pubDate>
		<dc:creator>marcus</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=392</guid>
		<description><![CDATA[With the Sharesight test suite (ruby/rails/mysql &#038;&#038; rake test), i tested the performance of my the new MBP on Snow Leopard. 
I save 16 seconds per run &#8211; its going to take a while to pay for itself&#8230;.  But about 22% faster, which is not too bad.
Macbook Pro (March 06) 1.83GHz 2G Ram
real  [...]]]></description>
			<content:encoded><![CDATA[<p>With the <a href="http://www.sharesight.co.nz/">Sharesight</a> test suite (ruby/rails/mysql &#038;&#038; rake test), i tested the performance of my the new MBP on Snow Leopard. </p>
<p>I save 16 seconds per run &#8211; its going to take a while to pay for itself&#8230;.  But about 22% faster, which is not too bad.</p>
<p>Macbook Pro (March 06) 1.83GHz 2G Ram<br />
real    1m29.464s<br />
user    0m50.348s<br />
sys    0m5.812s</p>
<p>Macbook Pro (Sep 09) 2.53 GHz 4G Ram<br />
real 1m13.450s<br />
user 0m43.662s<br />
sys 0m3.280s</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2009/09/macbook-pro-speed-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Centos on VMWare Fusion</title>
		<link>http://www.abletech.co.nz/2009/08/installing-centos-on-vmware-fusion/</link>
		<comments>http://www.abletech.co.nz/2009/08/installing-centos-on-vmware-fusion/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 08:06:03 +0000</pubDate>
		<dc:creator>nigel</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=378</guid>
		<description><![CDATA[I recently created a couple of Centos virtual machines, and took notes of all the steps. You can use these notes for both installing another VM, or for building a production server. ]]></description>
			<content:encoded><![CDATA[<p>I recently created a couple of Centos virtual machines, and took notes of all the steps. You can use these notes for both installing another VM, or for building a production server. </p>
<p>We used these VMs for running staging and production instances of a Ruby on Rails deployment.</p>
<p>Install Centos 5.3 64 bit</p>
<h4>VM configuration settings</h4>
<p>- Redhat Linux Enterprise 5 64 bit<br />
- 30 GB drive<br />
- 2 CPU<br />
- 1 GB memory<br />
- Network: bridged</p>
<h4>Server install settings:</h4>
<p>- use default settings for drive partitions<br />
- set network address to: IP_ADDRESS_GOES_HERE IP version 4<br />
- hostname: HOSTNAME<br />
- gateway: GATEWAY<br />
- primary dns: DNS1<br />
- disable IP version 6<br />
- net mask: 255.255.255.0<br />
- timezone: Pacific/Auckland<br />
- System clock uses UTC: tick<br />
- set root password to PASSWORD_YEAH_RIGHT<br />
- Additional tasks: none</p>
<h4>SETUP TASKS</h4>
<p>- yum update<br />
- yum install sudo<br />
- adduser nigeluser<br />
- passwd nigeluser<br />
- adduser marcususer<br />
- passwd marcususer</p>
<h4>visudo</h4>
<p>- add lines at bottom of file:<br />
  nigeluser ALL=(ALL) ALL<br />
  marcususer ALL=(ALL) ALL</p>
<h4>PACKAGES</h4>
<p>- sudo yum install ruby<br />
- wget http://rubyforge.org/frs/download.php/58677/ruby-enterprise-1.8.6-20090610.tar.gz<br />
- tar xvfz ruby-enterprise-1.8.6-20090610.tar.gz<br />
- sudo yum install httpd<br />
- sudo yum install gcc-c++<br />
- sudo yum install zlib-devel<br />
- sudo yum install openssl-devel<br />
- sudo yum install readline-devel<br />
- sudo ./installer (ruby tar directory)<br />
- sudo ln -s /opt/ruby-enterprise/bin/cap /usr/bin/cap<br />
- sudo ln -s /opt/ruby-enterprise/bin/capify /usr/bin/capify<br />
- sudo ln -s /opt/ruby-enterprise/bin/erb /usr/bin/erb<br />
- sudo ln -s /opt/ruby-enterprise/bin/gem /usr/bin/gem<br />
- sudo ln -s /opt/ruby-enterprise/bin/integrity /usr/bin/integrity<br />
- sudo ln -s /opt/ruby-enterprise/bin/irb /usr/bin/irb<br />
- sudo ln -s /opt/ruby-enterprise/bin/rails /usr/bin/rails<br />
- sudo ln -s /opt/ruby-enterprise/bin/rake /usr/bin/rake<br />
- sudo ln -s /opt/ruby-enterprise/bin/rdoc /usr/bin/rdoc<br />
- sudo ln -s /opt/ruby-enterprise/bin/ruby /usr/bin/ruby<br />
- sudo yum remove ruby<br />
- sudo yum install httpd-devel apr-devel<br />
- sudo yum install mysql-devel<br />
- sudo /opt/ruby-enterprise/bin/passenger-install-apache2-module<br />
- sudo yum install mysql-server<br />
- sudo /sbin/chkconfig httpd on<br />
- sudo /sbin/chkconfig mysqld on<br />
- sudo yum install ncurses-devel<br />
- wget http://downloads.sourceforge.net/sourceforge/htop/htop-0.8.3.tar.gz?use_mirror=transact<br />
- tar xcfz htop-0.8.3.tar.gz<br />
- cd htop-0.8.3<br />
- ./configure<br />
- make<br />
- sudo make install<br />
- wget http://kernel.org/pub/software/scm/git/git-1.6.3.3.tar.bz2<br />
- bunzip2 files/git-1.6.3.3.tar.bz2<br />
- tar xvf files/git-1.6.3.3.tar<br />
- ./configure<br />
- make<br />
- sudo make install<br />
- sudo gem install mysql &#8211;no-rdoc &#8211;no-ri &#8212; &#8211;with-mysql-config=/usr/bin/mysql_config</p>
<h4>START APPS</h4>
<p>- copy /system/mysql/my.cnf to /etc/my.cnf<br />
- sudo /sbin/service mysqld start<br />
- /usr/bin/mysqladmin -u root password &#8216;PASSWORD_GOES_HERE&#8217;<br />
- sudo /sbin/service httpd start</p>
<h4>CAPISTRANO</h4>
<p>- cap staging deploy:setup<br />
- cap staging deploy:cold<br />
- cap staging deploy</p>
<h4>CONFIGURE</h4>
<p>- sudo /usr/sbin/adduser deploy<br />
- sudo passwd deploy</p>
<h4>VMWARE TOOLS</h4>
<p>- Login as root<br />
- Select from VMware Workstation: go to VM> Install VMware Tools<br />
- mkdir /root/mn<br />
- From the VM: mount the virtual cd drive , this should be done with the guest OS (CentOS ) command line:<br />
  mount /dev/cdrom /root/mn<br />
- From the CDROM extract VMware Tools into /tmp/ directory<br />
  tar -C /tmp -zxvf /root/mn/VMwareTools-5.5.3-34685.tar.gz<br />
- Running VMware Tools installation/setup script<br />
  cd /tmp/vmware-tools-distrib<br />
  ./vmware-install.pl<br />
- This is VMware Tools installation/setup script, it will ask for confirmation to begin the installation<br />
  answer the defaults for each question<br />
- when done, restart the VM (shutdown -r now)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2009/08/installing-centos-on-vmware-fusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>using git submodules for plugins</title>
		<link>http://www.abletech.co.nz/2009/07/using-git-submodules-for-plugins/</link>
		<comments>http://www.abletech.co.nz/2009/07/using-git-submodules-for-plugins/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 02:23:58 +0000</pubDate>
		<dc:creator>marcus</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[git rails]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=363</guid>
		<description><![CDATA[# first remove your copy and paste plugin&#8230;.

git rm -r vendor/plugins/xxxxxx
git commit

now you are ready to add the submodule

git submodule add git://your_git_repo/xxxxx.git vendor/plugins/xxxxx
git commit

To load the submodule, you need to 

git submodule init
git submodule update

To deploy submodules using capistrano, capistrano needs to also do the submodule init and update. 

# in deploy.rb
set :git_enable_submodules,1

if you want [...]]]></description>
			<content:encoded><![CDATA[<p># first remove your copy and paste plugin&#8230;.</p>
<pre>
git rm -r vendor/plugins/xxxxxx
git commit
</pre>
<p>now you are ready to add the submodule</p>
<pre>
git submodule add git://your_git_repo/xxxxx.git vendor/plugins/xxxxx
git commit
</pre>
<p>To load the submodule, you need to </p>
<pre>
git submodule init
git submodule update
</pre>
<p>To deploy submodules using capistrano, capistrano needs to also do the submodule init and update. </p>
<pre>
# in deploy.rb
set :git_enable_submodules,1
</pre>
<p>if you want to update the version of the submodule &#8211; or the branch<br />
cd into the plugin, git pull or git checkout branch<br />
then cd back to the containing project and git commit</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2009/07/using-git-submodules-for-plugins/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>serving php from a rails app with passenger</title>
		<link>http://www.abletech.co.nz/2009/06/serving-php-from-a-rails-app-with-passenger/</link>
		<comments>http://www.abletech.co.nz/2009/06/serving-php-from-a-rails-app-with-passenger/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 09:24:48 +0000</pubDate>
		<dc:creator>marcus</dc:creator>
				<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=346</guid>
		<description><![CDATA[We have a situation where we want one domain which serves a rails app at root and also has a wordpress blog served within the main site.

yours.com/  --> served by rails
yours.com/blog --> served by php


To configure this in apache, 
  

    Options FollowSymLinks
    AllowOverride None
   [...]]]></description>
			<content:encoded><![CDATA[We have a situation where we want one domain which serves a rails app at root and also has a wordpress blog served within the main site.
<pre>
yours.com/  --> served by rails
yours.com/blog --> served by php
</pre>

To configure this in apache, 
<textarea name="code" class="ruby" cols="90 rows="20">  
<Directory /var/www/apps/railsapp/current/public>
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
	  ExpiresActive On
	  ExpiresDefault &#8220;access plus 1 year&#8221;
  </Directory>
  Alias /blog /var/www/apps/blog
  <Location /blog>
    PassengerEnabled off
  </Location>
</textarea>

The key is the <a href="http://www.modrails.com/documentation/Users%20guide.html#_passengerenabled_lt_on_off_gt">PassengerEnabled</a> &#8211; else passenger will try and serve the php content. ]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2009/06/serving-php-from-a-rails-app-with-passenger/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
