<?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>Pass By Value</title>
	<atom:link href="http://passbyvalue.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://passbyvalue.com</link>
	<description>... or is it pass by reference?</description>
	<lastBuildDate>Thu, 26 Jan 2012 03:09:41 +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>Goodbye you good egg!</title>
		<link>http://passbyvalue.com/2012/01/goodbye-you-good-egg/</link>
		<comments>http://passbyvalue.com/2012/01/goodbye-you-good-egg/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 03:09:41 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Leadership]]></category>

		<guid isPermaLink="false">http://passbyvalue.com/?p=233</guid>
		<description><![CDATA[(I starting writing this entry on the train trip home yesterday from North Sydney to Newcastle) Today is my last day at MLC (NAB). After nearly 9 years with the company I am pulling up stumps as my family and I make the sea change to Newcastle. I am incredibly excited about the move to [...]]]></description>
			<content:encoded><![CDATA[<p>(I starting writing this entry on the train trip home yesterday from North Sydney to Newcastle)</p>
<p>Today is my last day at MLC (NAB).  After nearly 9 years with the company I am pulling up stumps as my family and I make the sea change to Newcastle.</p>
<p>I am incredibly excited about the move to Newcastle and starting with my new company on Monday.  Having said that, there has been plenty to reflect upon over the past couple of weeks.  The event of leaving a company has only happened once before in my professional career.  It feels profound, not so much for the legacy that I am leaving behind but more because I won&#8217;t be interacting on a regular basis with the people that I spent so much time growing and learning with over an extended period.  I won&#8217;t be sharing experiences any more, working together, getting through challenges, making improvements, experimenting, laughing!</p>
<p>In more recent times, I was fortunate to be part of a great team led by a brilliant manager who taught me much about what it means to really lead.  We implemented a step-change in the way our team operated, pushed the boundaries, shook things up, got ourselves into a bit strife every now and then, learnt heaps and came out the other side with a fantastic outcome&#8230;  Hopefully a sustainable approach to doing things better.</p>
<p>It is also the place that I met my wife, subsequently got married, and had children &#8211; all significant life events!  The same place where I got myself fit again, gained a taste (and need) for coffee and lost most of the hair on top of my head (&#8230; the kids may have a bit to do with that)!</p>
<p>So this is a formal goodbye, but I know we&#8217;ll stay in touch!</p>
]]></content:encoded>
			<wfw:commentRss>http://passbyvalue.com/2012/01/goodbye-you-good-egg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting started with Heroku and Rails 3.1</title>
		<link>http://passbyvalue.com/2011/11/getting-started-with-heroku-and-rails-3-1/</link>
		<comments>http://passbyvalue.com/2011/11/getting-started-with-heroku-and-rails-3-1/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 10:31:42 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[IT Strategy]]></category>
		<category><![CDATA[Software development]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[heroku]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://passbyvalue.com/?p=221</guid>
		<description><![CDATA[Pre-requesites: RVM on your local machine with Ruby 1.9.2 Heroku account Switch to the 1.9.2 version of Ruby, install the rails and heroku gems, create your rails 3.1 application Terminal $ rvm 1.9.2 $ gem install rails $ gem install heroku $ rails new tickets $ cd tickets Add in the nifty-generators gem: /Gemfile gem &#34;nifty-generators&#34;, [...]]]></description>
			<content:encoded><![CDATA[<p>Pre-requesites:</p>
<ul>
<li><a href="http://beginrescueend.com/">RVM</a> on your local machine with Ruby 1.9.2</li>
<li><a href="http://www.heroku.com/">Heroku</a> account</li>
</ul>
<p>Switch to the 1.9.2 version of Ruby, install the rails and heroku gems, create your rails 3.1 application</p>
<div class="codeheader">Terminal</div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ rvm 1.9.2<br />
$ gem <span style="color: #c20cb9; font-weight: bold;">install</span> rails<br />
$ gem <span style="color: #c20cb9; font-weight: bold;">install</span> heroku<br />
$ rails new tickets<br />
$ <span style="color: #7a0874; font-weight: bold;">cd</span> tickets</div></div>
<p>Add in the <a href="https://github.com/ryanb/nifty-generators">nifty-generators</a> gem:</p>
<div class="codeheader">/Gemfile</div>
<div class="codecolorer-container ruby railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gem <span style="color:#996600;">&quot;nifty-generators&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:group</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:development</span></div></div>
<div class="codeheader">Terminal</div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span>bundle <span style="color: #c20cb9; font-weight: bold;">install</span></div></div>
<p>Generate the layout</p>
<div class="codeheader">Terminal</div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span>rails generate nifty:layout</div></div>
<p>Now make compatible with Rails 3.1 asset pipeline (assuming this is only temporary until gem is updated for Rails 3.1)</p>
<p>Rename /public/stylesheets/application.css to nifty.css and move to the /app/assets/stylesheets dir<br />
Delete /public/stylesheets<br />
Update javascript to use &#8220;application&#8221; instead of :defaults</p>
<div class="codeheader">/app/views/layouts/application.html.erb</div>
<div class="codecolorer-container ruby railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color:#006600; font-weight:bold;">&lt;%</span>= javascript_include_tag <span style="color:#996600;">&quot;application&quot;</span> <span style="color:#006600; font-weight:bold;">%&gt;</span></div></div>
<p>Generate the scaffold for a ticket, migrate the schema, and start the server to test locally at http://localhost:3000</p>
<div class="codeheader">Terminal</div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ rails generate nifty:scaffold ticket name:string description:text<br />
$ bundle <span style="color: #7a0874; font-weight: bold;">exec</span> rake db:migrate<br />
$ rails server</div></div>
<p>Point to our tickets controller as default<br />
Remove public/index.html<br />
Update root route in routes.rb</p>
<div class="codeheader">/config/routes.rb</div>
<div class="codecolorer-container ruby railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">root <span style="color:#ff3333; font-weight:bold;">:to</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">'tickets#index'</span></div></div>
<p>Initialise the git repository and perform first commit</p>
<div class="codeheader">Terminal</div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">git init</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">git add</span> .<br />
$ <span style="color: #c20cb9; font-weight: bold;">git commit</span> <span style="color: #660033;">-m</span> <span style="color: #ff0000;">&quot;Initial commit&quot;</span></div></div>
<p>Create the app on heroku using the cedar stack (its the only stack that currently supports Rails 3.1)</p>
<div class="codeheader">Terminal</div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ gem <span style="color: #c20cb9; font-weight: bold;">install</span> heroku<br />
$ heroku create <span style="color: #660033;">--stack</span> cedar</div></div>
<p>Notice that there is now a new remote on our git repo</p>
<div class="codeheader">Terminal</div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">git remote</span> <span style="color: #660033;">-v</span></div></div>
<p>Heroku uses postgresql by default, update gems</p>
<div class="codeheader">/Gemfile</div>
<div class="codecolorer-container ruby railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gem <span style="color:#996600;">'sqlite3'</span>, <span style="color:#ff3333; font-weight:bold;">:group</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:development</span><br />
gem <span style="color:#996600;">'pg'</span>, <span style="color:#ff3333; font-weight:bold;">:group</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:production</span></div></div>
<div class="codeheader">Terminal</div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span>bundle <span style="color: #c20cb9; font-weight: bold;">install</span></div></div>
<p>Commit changes</p>
<div class="codeheader">Terminal</div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">git add</span> .<br />
$ <span style="color: #c20cb9; font-weight: bold;">git commit</span> <span style="color: #660033;">-m</span> <span style="color: #ff0000;">&quot;Updated database gems to cater for postgresql on Heroku&quot;</span></div></div>
<p>Push app to heroku, migrate the schema on the server, and open a browser to see it running</p>
<div class="codeheader">Terminal</div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">git push</span> heroku master<br />
$ heroku run rake db:migrate<br />
$ heroku open</div></div>
<h2>Installing the custom domain Add-on</h2>
<p>Notice that it has a unique subdomain, lets give it our own sub-domain name through the Custom Domain add-on</p>
<div class="codeheader">Terminal</div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">heroku add custom_domain<br />
heroku domains:add tickets.passbyvalue.com</div></div>
<p>Add a CNAME record on the DNS for the preferred subdomain (note that top level domain DNS rules are different) that we want to use and now try it out!</p>
<p>http://tickets.passbyvalue.com</p>
<p>Tutorial: <a href="http://devcenter.heroku.com/articles/custom-domains">http://devcenter.heroku.com/articles/custom-domains</a></p>
<p>Jump into the console and see under the covers</p>
<div class="codeheader">Terminal</div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span>heroku run console</div></div>
<p>Wow!  How cool is that!  My goal now is to give up my own VPS for hosting my Rails apps.  I&#8217;m thinking that it come out cheaper using Heroku.  </p>
<p><strong>Note:</strong> there are some limitations that you need to be aware of.  For example you have limited write access to the file system so if you want your users to upload images then you need to incorporate different cloud offerings for this to work, like Amazon S3.  The paperclip gem has support for this.  This gives an insight in how your thinking has to change when you start to leverage cloud services and augment them together.  Something to discuss further another time&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://passbyvalue.com/2011/11/getting-started-with-heroku-and-rails-3-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Shopify &#8211; such a compelling offering</title>
		<link>http://passbyvalue.com/2011/10/shopify-compelling-offering/</link>
		<comments>http://passbyvalue.com/2011/10/shopify-compelling-offering/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 11:55:18 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Software development]]></category>
		<category><![CDATA[shopify]]></category>

		<guid isPermaLink="false">http://passbyvalue.com/?p=191</guid>
		<description><![CDATA[Been thinking about the cloud of late. In particular after using Shopify which is a great example of a SaaS (software as a service) offering.  I was blown away by just how easy it is to use the Shopify offering.  The main reasons being: It is already fully integrated to other services, in particular a [...]]]></description>
			<content:encoded><![CDATA[<p>Been thinking about the <a href="http://en.wikipedia.org/wiki/Cloud_computing">cloud</a> of late. In particular after using <a href="http://www.shopify.com/">Shopify</a> which is a great example of a SaaS (software as a service) offering.  I was blown away by just how easy it is to use the Shopify offering.  The main reasons being:</p>
<ol>
<li>It is already fully integrated to other services, in particular a plethora of payment gateways.</li>
<li>It is extremely reliable and fast &#8211; a CDN for delivering assets &#8211; nice!</li>
<li>It has all the features that an administrator and a developer could ever want (love the TextMate integration for developing themes).</li>
<li>It is very cost effective &#8211; seriously, $29 a month to run an e-commerce store that is fully supported and highly available, that is incredibly great value.  The amount of time and money that I would spend trying to support an open source offering on my own virtual private server is not justifiable, plus its a not a good outcome for the client.</li>
<li>Scalable (I said it was in the cloud right?)</li>
<li>Secure (I&#8217;m assuming &#8211; but its their liability)</li>
<li>Always running the latest version of their software</li>
<li>Backwards compatible &#8211; Open source projects tend to struggle in this department, but due to the point above, they truly have to backwards compatible.</li>
<li>Agnostic &#8211; although it&#8217;s written in Ruby on Rails, the liquid tempting language is simple and non-language/platform specific</li>
<li>Extendable &#8211; A growing app library that users can plug into their store.  This is platform software which is building an ecosystem around it &#8211; to me it says that it is going to be around for a long time too!</li>
<li>Intregatable (is there such a word?) &#8211; Full REST API via JSON or XML.</li>
</ol>
<p>I know that this must sound like an ad for Shopify, but it certainly has had a profound effect on me.  It&#8217;s a very polished product that has got me excited about cloud SaaS offerings in general.</p>
<p>Now I&#8217;m looking into <a href="http://heroku.com">Heroku</a> as a PaaS (Platform as a Service) &#8211; so far so good!</p>
]]></content:encoded>
			<wfw:commentRss>http://passbyvalue.com/2011/10/shopify-compelling-offering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passenger (mod_rails) updates</title>
		<link>http://passbyvalue.com/2010/08/passenger-mod_rails-updates/</link>
		<comments>http://passbyvalue.com/2010/08/passenger-mod_rails-updates/#comments</comments>
		<pubDate>Sun, 15 Aug 2010 12:48:46 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Software development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://passbyvalue.com/?p=182</guid>
		<description><![CDATA[When updating Passenger: sudo gem update passenger passenger-install-apache2-module The second command is important as it compiles the apache 2 module (caught me out for a whiles, hence this post). Ensure that the module is properly added to your config file. (e.g. /etc/apache2/apache2.conf) by confirming its pointing to the new directory for the updated version of [...]]]></description>
			<content:encoded><![CDATA[<p>When updating <a href="http://www.modrails.com/">Passenger</a>:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem update passenger<br />
passenger-install-apache2-module</div></div>
<p>The second command is important as it compiles the apache 2 module (caught me out for a whiles, hence this post). Ensure that the module is properly added to your config file. (e.g. <code class="codecolorer text railscasts"><span class="text">/etc/apache2/apache2.conf</span></code>) by confirming its pointing to the new directory for the updated version of the gem! An example is given in the blurb one the apache2 module is compiled:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">LoadModule passenger_module <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>passenger-2.2.15<span style="color: #000000; font-weight: bold;">/</span>ext<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>mod_passenger.so<br />
PassengerRoot <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>passenger-2.2.15<br />
PassengerRuby <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby1.8</div></div>
]]></content:encoded>
			<wfw:commentRss>http://passbyvalue.com/2010/08/passenger-mod_rails-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Version controlling WordPress themes on simple hosts</title>
		<link>http://passbyvalue.com/2010/07/version-controlling-wordpress-themes-on-simple-hosts/</link>
		<comments>http://passbyvalue.com/2010/07/version-controlling-wordpress-themes-on-simple-hosts/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 12:12:07 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Software development]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://passbyvalue.com/?p=177</guid>
		<description><![CDATA[Here&#8217;s a quick tip if your WordPress host is quite simple and only provides FTP access and no version control tools (svn, git) or specific syncing tools (rsync) Use version control for the theme on your local machine (where you run your dev WordPress environment), then use syncing capability of FTP tool (Cyberduck for MacOSX [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick tip if your WordPress host is quite simple and only provides FTP access and no version control tools (svn, git) or specific syncing tools (rsync)</p>
<p>Use version control for the theme on your local machine (where you run your dev WordPress environment), then use syncing capability of FTP tool (<a href="http://cyberduck.ch/">Cyberduck</a> for MacOSX has this feature) to promote the changes to your host.</p>
<p>Remember, version control is the only way to sensibly manage changes to your theme &#8211; editing through the WordPress theme editor on your host is a really bad way to manage it!</p>
]]></content:encoded>
			<wfw:commentRss>http://passbyvalue.com/2010/07/version-controlling-wordpress-themes-on-simple-hosts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It&#8217;s the people, stupid!</title>
		<link>http://passbyvalue.com/2010/05/its-the-people-stupid/</link>
		<comments>http://passbyvalue.com/2010/05/its-the-people-stupid/#comments</comments>
		<pubDate>Tue, 11 May 2010 12:17:58 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[IT Strategy]]></category>
		<category><![CDATA[Leadership]]></category>
		<category><![CDATA[Project management]]></category>
		<category><![CDATA[Software development]]></category>
		<category><![CDATA[agile]]></category>

		<guid isPermaLink="false">http://passbyvalue.com/?p=164</guid>
		<description><![CDATA[Bill Clinton summed it up beautifully when he used the line, &#8220;It&#8217;s the economy, stupid.&#8221; It has just become frustratingly obvious to me of late that when it comes to organisations maximising their investment in technology, a lot of their energy is misguided. In the spirit of Bill: It&#8217;s the people, stupid! Focus on the [...]]]></description>
			<content:encoded><![CDATA[<p>Bill Clinton summed it up beautifully when he used the line, &#8220;<a href="http://en.wikipedia.org/wiki/It's_the_economy,_stupid">It&#8217;s the economy, stupid</a>.&#8221;</p>
<p>It has just become frustratingly obvious to me of late that when it comes to organisations maximising their investment in technology, a lot of their energy is misguided.  In the spirit of Bill:</p>
<p><em>It&#8217;s the people, stupid!</em></p>
<p>Focus on the people first and foremost and everything else will stem from that.  However, when I say focus on the people, I don&#8217;t mean make hierarchical command and control structures where everyone clearly has a place and protocol rules over productivity.   Rather the approach of flat structures where the emphasis is on self-organising teams, getting things done and self-improvement.</p>
<p>Of course, I&#8217;m not the first person to think of this, the whole <a href="http://agilemanifesto.org/">Agile</a> movement is driven on this organisational approach.</p>
<p>Organisations seem to believe that the way to solve problems is based on preferencing technology first, then process, then lastly the people will fall into line.  And big technology product vendors go a long way to supporting this type of thinking.  Many times they&#8217;ll pitch to executives with how they can make their technical people work smarter by using their products and tools.  But this often results in forcing technology upon talented technical people which will always be met with resistance and frustration.  The products may make the execs feel better in the short term but will usually demoralise the people and make them feel powerless.</p>
<p>Reverse this approach around; focus on the people first, and STOP!  Empowering people by encouraging them to collaborate and self organise has proven to raise engagement they have with the organisation.  It starts to build up one of the most valuable assets that a organisation could hope for, social contracts.  People will start to work out what are the most appropriate ways that they can work together.  They&#8217;ll remove bottlenecks that stop them from getting things done.  They&#8217;ll work out what technologies are best for the problem at hand.</p>
<p>People will be as stupid as you force them to be and as creative as you&#8217;ll let them be.  </p>
<p> So why the rant?  Well, its time for me to put my money where my mouth is.  I&#8217;ve banged on long enough about the benefits of adopting a more Agile approach to maximising an organisation&#8217;s investment in technology.  At Agile&#8217;s core is focusing on empowering people.   The outcome should lead to what organisations really want &#8211; true and sustainable competitive advantage!  </p>
<p>As of tomorrow, I&#8217;m going to step away from my technical career path and move into a more people focused direction.  Time for me to really prove what I believe in, not just for myself but for the people that I work with.  I want the win-win situation, the organisation wins and the people win!  Here goes&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://passbyvalue.com/2010/05/its-the-people-stupid/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Git repositories with Slicehost</title>
		<link>http://passbyvalue.com/2009/12/git-repositories-with-slicehost/</link>
		<comments>http://passbyvalue.com/2009/12/git-repositories-with-slicehost/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 11:31:09 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Software development]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[scm]]></category>
		<category><![CDATA[slicehost]]></category>

		<guid isPermaLink="false">http://passbyvalue.com/?p=157</guid>
		<description><![CDATA[No doubt I am really happy with my Slicehost VPS, it has been so hassle free!  The best part about Slicehost is all the amazing articles they provide to help you get going with your slice. I&#8217;ve setup my slice to host my private git repositories, particularly since I wanted to use them with Rails [...]]]></description>
			<content:encoded><![CDATA[<p>No doubt I am really happy with my <a href="http://www.slicehost.com">Slicehost</a> VPS, it has been so hassle free!  The best part about Slicehost is all the amazing articles they provide to help you get going with your slice.</p>
<p>I&#8217;ve setup my slice to host my private git repositories, particularly since I wanted to use them with Rails and Capistrano.  This article provide to be just what I needed:</p>
<p><a href="http://articles.slicehost.com/2009/5/13/capistrano-series-setting-up-git">http://articles.slicehost.com/2009/5/13/capistrano-series-setting-up-git</a></p>
<p>The article even shows you how to secure the shell that the git user has to avoid anyone SSHing into your box with their ID.  However, it doesn&#8217;t tell you what to do when you want to create another repository as you cannot switch to the git user while ever it is using the git-shell as opposed to a normal shell.  The trick is you need to switch with the root user as only they are allowed to provide an alternative shell.  Here are the commands once you have logged into your slice with a user that is able to sudo:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">--shell</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span> <span style="color: #c20cb9; font-weight: bold;">git</span><br />
$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">git</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> project2<br />
$ <span style="color: #7a0874; font-weight: bold;">cd</span> project2<br />
$ <span style="color: #c20cb9; font-weight: bold;">git</span> <span style="color: #660033;">--bare</span> init<br />
$ <span style="color: #7a0874; font-weight: bold;">exit</span></div></div>
<p>Now your repository is good to go and you can follow the steps from &#8220;Making your first commit&#8221; section.</p>
]]></content:encoded>
			<wfw:commentRss>http://passbyvalue.com/2009/12/git-repositories-with-slicehost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing MySQL, Apache2, PHP, and WordPress with MacPorts</title>
		<link>http://passbyvalue.com/2009/11/installing-mysql-apache2-php-and-wordpress-with-macports/</link>
		<comments>http://passbyvalue.com/2009/11/installing-mysql-apache2-php-and-wordpress-with-macports/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 11:14:41 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Software development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[macport]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://passbyvalue.com/?p=113</guid>
		<description><![CDATA[I&#8217;ve recently started working on a website project using WordPress.  I&#8217;ve got a production environment where I run this blog on my ubuntu server (VPS) hosted by slicehost.  But because I&#8217;m going to muck around with themes and plugins I decided that I&#8217;m better off doing that locally on my Mac.  So this is the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently started working on a website project using WordPress.  I&#8217;ve got a production environment where I run this blog on my ubuntu server (VPS) hosted by<a href="http://www.slicehost.com"> slicehost</a>.  But because I&#8217;m going to muck around with themes and plugins I decided that I&#8217;m better off doing that locally on my Mac.  So this is the first of a series of blog posts for getting WordPress up and running on my local machine.</p>
<p>I have <a href="http://www.macports.org/">macports</a> already installed and I prefer its packages over the packages shipped with OSX.  Mostly because they are more up to date and there is more variety.  Plus it feels more native to working with my VPS.  Before we get started, lets ensure that our MacPorts is up to date:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> port selfupdate<br />
---<span style="color: #000000; font-weight: bold;">&gt;</span> &nbsp;Updating the ports <span style="color: #c20cb9; font-weight: bold;">tree</span><br />
---<span style="color: #000000; font-weight: bold;">&gt;</span> &nbsp;Updating MacPorts base sources using rsync<br />
MacPorts base version 1.8.1 installed,<br />
MacPorts base version 1.8.1 downloaded.<br />
---<span style="color: #000000; font-weight: bold;">&gt;</span> &nbsp;MacPorts base is already the latest version</div></div>
<p>There will be four parts to this series:</p>
<ol>
<li>Installing MySQL</li>
<li>Installing Apache2</li>
<li>Installing PHP along with MySQL support</li>
<li>Installing WordPress</li>
</ol>
<p>I like to chunk these up rather than merge them all into one article as the temptation is to mix information together and then its harder to see where one step stops and the next one starts.  Also it means that you can look at the entries in isolation and they should still make sense.</p>
<h2>Installing MySQL</h2>
<p>I had a binary distribution of MySQL on machine which I needed to remove before installing the macports distro, this thread was useful as it isn&#8217;t particularly clear what to do:</p>
<p><a href="http://forums.mysql.com/read.php?11,75256,255851#msg-255851">http://forums.mysql.com/read.php?11,75256,255851#msg-255851</a></p>
<p>The following article was my main source of inspiration, I&#8217;ve pretty much followed these steps:</p>
<p><a href="http://2tbsp.com/content/install_and_configure_mysql_5_macports">http://2tbsp.com/content/install_and_configure_mysql_5_macports</a></p>
<p>Install the port and setup the mysql system database</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> mysql5-server<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-u</span> mysql mysql_install_db5</div></div>
<p>Setup some handy aliases in your shell</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span>mate ~<span style="color: #000000; font-weight: bold;">/</span>.profile</div></div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">mysqlstart</span>=<span style="color: #ff0000;">'sudo /opt/local/bin/mysqld_safe5 &amp;'</span><br />
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">mysqlstop</span>=<span style="color: #ff0000;">'/opt/local/bin/mysqladmin5 -u root -p shutdown'</span></div></div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #7a0874; font-weight: bold;">source</span> ~<span style="color: #000000; font-weight: bold;">/</span>.profile</div></div>
<p>Start the server and set the root password</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ mysqlstart<br />
$ <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mysql5<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysqladmin <span style="color: #660033;">-u</span> root password <span style="color: #ff0000;">'root'</span><br />
$ <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mysql5<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysqladmin <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span> <span style="color: #660033;">-h</span> localhost password <span style="color: #ff0000;">'root'</span></div></div>
<p>(Not sure what this second step is for!)</p>
<p>Now we can use the</p>
<div class="codecolorer-container text railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysqlstop</div></div>
<p>alias because the password has been set.</p>
<p>And we&#8217;re all done!</p>
<h2>Installing Apache2</h2>
<p>Source of inspiration for this entry is from here:</p>
<p><a href="http://2tbsp.com/content/install_apache_2_and_php_5_macports">http://2tbsp.com/content/install_apache_2_and_php_5_macports</a></p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> apache2</div></div>
<p>Enabled virtual hosts in main config</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">sudo</span> mate <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>loca<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>httpd.conf</div></div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># Virtual hosts</span><br />
Include conf<span style="color: #000000; font-weight: bold;">/</span>extra<span style="color: #000000; font-weight: bold;">/</span>httpd-vhosts.conf</div></div>
<p>Updated virtual hosts config</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">sudo</span> mate <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>extra<span style="color: #000000; font-weight: bold;">/</span>httpd-vhosts.conf</div></div>
<p>The directory part is important as Apache 2.2 directories are by default not browsable so ensure that you enable them!</p>
<div class="codecolorer-container xml railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;VirtualHost</span> *:80<span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; ServerAdmin webmaster@myapp.local<br />
&nbsp; &nbsp; DocumentRoot &quot;/Users/tgmcclen/workspace/myapp/htdocs/site&quot;<br />
&nbsp; &nbsp; ServerName myapp.local<br />
&nbsp; &nbsp; ServerAlias www.myapp.local<br />
&nbsp; &nbsp; ErrorLog &quot;/Users/tgmcclen/workspace/myapp/logs/error_log&quot;<br />
&nbsp; &nbsp; CustomLog &quot;/Users/tgmcclen/workspace/myapp/logs/access_log&quot; common<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Directory</span> <span style="color: #ff0000;">&quot;/Users/tgmcclen/workspace/myapp/htdocs/site&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; Options Indexes FollowSymLinks<br />
&nbsp; &nbsp; &nbsp; &nbsp; AllowOverride None<br />
&nbsp; &nbsp; &nbsp; &nbsp; Order allow,deny<br />
&nbsp; &nbsp; &nbsp; &nbsp; Allow from all<br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Directory<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> &nbsp; &nbsp;<br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/VirtualHost<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>Setup an alias for controlling apache and start</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span>mate ~<span style="color: #000000; font-weight: bold;">/</span>.profile</div></div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">apache2ctl</span>=<span style="color: #ff0000;">'sudo /opt/local/apache2/bin/apachectl'</span></div></div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #7a0874; font-weight: bold;">source</span> ~<span style="color: #000000; font-weight: bold;">/</span>.profile<br />
$ <span style="color: #c20cb9; font-weight: bold;">apache2ctl start</span></div></div>
<p>Add an entry in the hosts file for the virtual host</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span>mate <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hosts</div></div>
<div class="codecolorer-container text railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">127.0.0.1 myapp.local</div></div>
<p>Now place files in the</p>
<div class="codecolorer-container text railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">htdocs</div></div>
<p>directory and browse to them in a browser:</p>
<p>http://myapp.local/hello.html</p>
<h2>Installing PHP along with MySQL support</h2>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> php5 +apache2 +pear<br />
...<br />
Note: php5 installs files outside the common directory structure.<br />
---<span style="color: #000000; font-weight: bold;">&gt;</span> &nbsp;Installing php5 <span style="color: #000000; font-weight: bold;">@</span>5.3.0_3+apache2+darwin_10+macosx+mysql5+pear+sqlite<br />
---<span style="color: #000000; font-weight: bold;">&gt;</span> &nbsp;Activating php5 <span style="color: #000000; font-weight: bold;">@</span>5.3.0_3+apache2+darwin_10+macosx+mysql5+pear+sqlite<br />
To customize php, copy<br />
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>php.ini-development <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">if</span> this is a development server<span style="color: #7a0874; font-weight: bold;">&#41;</span> or<br />
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>php.ini-production <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">if</span> this is a production server<span style="color: #7a0874; font-weight: bold;">&#41;</span> to<br />
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>php.ini and <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #c20cb9; font-weight: bold;">make</span> changes.<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>php.ini-development <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>php.ini</div></div>
<p>Now enable PHP module with apache2</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>modules<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">apxs</span> <span style="color: #660033;">-a</span> <span style="color: #660033;">-e</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;php5&quot;</span> libphp5.so</div></div>
<p>and add directives for</p>
<div class="codecolorer-container text railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mime_module</div></div>
<p>and</p>
<div class="codecolorer-container text railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">dir_module</div></div>
<p>in the virtual host entry:</p>
<div class="codecolorer-container xml railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;VirtualHost</span> *:80<span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; ServerAdmin webmaster@myapp.local<br />
&nbsp; &nbsp; DocumentRoot &quot;/Users/tgmcclen/workspace/myapp/htdocs&quot;<br />
&nbsp; &nbsp; ServerName myapp.local<br />
&nbsp; &nbsp; ServerAlias www.myapp.local<br />
&nbsp; &nbsp; ErrorLog &quot;/Users/tgmcclen/workspace/myapp/logs/error_log&quot;<br />
&nbsp; &nbsp; CustomLog &quot;/Users/tgmcclen/workspace/myapp/logs/access_log&quot; common<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Directory</span> <span style="color: #ff0000;">&quot;/Users/tgmcclen/workspace/myapp/htdocs&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; Options Indexes FollowSymLinks<br />
&nbsp; &nbsp; &nbsp; &nbsp; AllowOverride None<br />
&nbsp; &nbsp; &nbsp; &nbsp; Order allow,deny<br />
&nbsp; &nbsp; &nbsp; &nbsp; Allow from all<br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Directory<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;IfModule</span> mime_module<span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; AddType application/x-httpd-php .php<br />
&nbsp; &nbsp; &nbsp; AddType application/x-httpd-php-source .phps<br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/IfModule<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;IfModule</span> dir_module<span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; DirectoryIndex index.html index.php<br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/IfModule<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/VirtualHost<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>And then restart Apache to get going&#8230;</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">apache2ctl restart</span></div></div>
<p><strong>Installing MySQL support for PHP</strong></p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> php5-mysql<br />
---<span style="color: #000000; font-weight: bold;">&gt;</span> &nbsp;Computing dependencies <span style="color: #000000; font-weight: bold;">for</span> php5-mysql<br />
---<span style="color: #000000; font-weight: bold;">&gt;</span> &nbsp;Fetching php5-mysql<br />
---<span style="color: #000000; font-weight: bold;">&gt;</span> &nbsp;Verifying checksum<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">for</span> php5-mysql<br />
---<span style="color: #000000; font-weight: bold;">&gt;</span> &nbsp;Extracting php5-mysql<br />
---<span style="color: #000000; font-weight: bold;">&gt;</span> &nbsp;Configuring php5-mysql<br />
---<span style="color: #000000; font-weight: bold;">&gt;</span> &nbsp;Building php5-mysql<br />
---<span style="color: #000000; font-weight: bold;">&gt;</span> &nbsp;Staging php5-mysql into destroot<br />
---<span style="color: #000000; font-weight: bold;">&gt;</span> &nbsp;Installing php5-mysql <span style="color: #000000; font-weight: bold;">@</span>5.3.0_0+mysqlnd<br />
To use mysqlnd with a <span style="color: #7a0874; font-weight: bold;">local</span> MySQL server, edit <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>php.ini and <span style="color: #000000; font-weight: bold;">set</span><br />
mysql.default_socket, mysqli.default_socket and pdo_mysql.default_socket<br />
to <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>mysql5<span style="color: #000000; font-weight: bold;">/</span>mysqld.sock<br />
---<span style="color: #000000; font-weight: bold;">&gt;</span> &nbsp;Activating php5-mysql <span style="color: #000000; font-weight: bold;">@</span>5.3.0_0+mysqlnd<br />
---<span style="color: #000000; font-weight: bold;">&gt;</span> &nbsp;Cleaning php5-mysql<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> mate <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>php.ini</div></div>
<div class="codecolorer-container ini railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">; Default socket name for local MySQL connects. &nbsp;If empty, uses the built-in</span><br />
<span style="color: #666666; font-style: italic;">; MySQL defaults.</span><br />
<span style="color: #666666; font-style: italic;">; http://php.net/pdo_mysql.default-socket</span><br />
pdo_mysql.default_socket<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">/opt/local/var/run/mysql5/mysqld.sock</span><br />
<br />
<span style="color: #666666; font-style: italic;">; Default socket name for local MySQL connects. &nbsp;If empty, uses the built-in</span><br />
<span style="color: #666666; font-style: italic;">; MySQL defaults.</span><br />
<span style="color: #666666; font-style: italic;">; http://php.net/mysql.default-socket</span><br />
mysql.default_socket <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> /opt/local/var/run/mysql5/mysqld.sock</span><br />
<br />
<span style="color: #666666; font-style: italic;">; Default socket name for local MySQL connects. &nbsp;If empty, uses the built-in</span><br />
<span style="color: #666666; font-style: italic;">; MySQL defaults.</span><br />
<span style="color: #666666; font-style: italic;">; http://php.net/mysqli.default-socket</span><br />
mysqli.default_socket <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> /opt/local/var/run/mysql5/mysqld.sock</span></div></div>
<h2>Installing WordPress</h2>
<p>Inspiration for instructions from here:</p>
<p><a href="http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion">http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion</a><br />
<a href="http://codex.wordpress.org/Installing_WordPress">http://codex.wordpress.org/Installing_WordPress</a></p>
<p>Inside your</p>
<div class="codecolorer-container text railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">htdocs</div></div>
<p>directory:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">svn co</span> http:<span style="color: #000000; font-weight: bold;">//</span>core.svn.wordpress.org<span style="color: #000000; font-weight: bold;">/</span>tags<span style="color: #000000; font-weight: bold;">/</span>2.8.6 .</div></div>
<p>(Latest tag will in URL on page, otherwise just browse to tags dir in folder to determine)</p>
<p>Create the database in MySQL</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysql5 <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span><br />
Enter password:<br />
Welcome to the MySQL monitor. &nbsp;Commands end with ; or \g.<br />
Your MySQL connection <span style="color: #c20cb9; font-weight: bold;">id</span> is <span style="color: #000000;">1</span><br />
Server version: 5.1.40 Source distribution<br />
<br />
Type <span style="color: #ff0000;">'help;'</span> or <span style="color: #ff0000;">'\h'</span> <span style="color: #000000; font-weight: bold;">for</span> help. Type <span style="color: #ff0000;">'\c'</span> to <span style="color: #c20cb9; font-weight: bold;">clear</span> the current input statement.<br />
<br />
mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt; CREATE DATABASE mydb;<br />
Query OK, <span style="color: #000000;">1</span> row affected <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.05</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<br />
mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt; GRANT ALL PRIVILEGES ON myname.<span style="color: #000000; font-weight: bold;">*</span> TO <span style="color: #ff0000;">&quot;mydb&quot;</span><span style="color: #000000; font-weight: bold;">@</span><span style="color: #ff0000;">&quot;localhost&quot;</span> IDENTIFIED BY <span style="color: #ff0000;">&quot;mypassword&quot;</span>;<br />
Query OK, <span style="color: #000000;">0</span> rows affected <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.58</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<br />
mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt; FLUSH PRIVILEGES;<br />
Query OK, <span style="color: #000000;">0</span> rows affected <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<br />
mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt; EXIT<br />
Bye</div></div>
<p>Now setup configuration</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">cp</span> wp-config-sample.php wp-config.php</div></div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">//</span> <span style="color: #000000; font-weight: bold;">**</span> MySQL settings - You can get this info from your web host <span style="color: #000000; font-weight: bold;">**</span> <span style="color: #000000; font-weight: bold;">//</span><br />
<span style="color: #000000; font-weight: bold;">/**</span> The name of the database <span style="color: #000000; font-weight: bold;">for</span> WordPress <span style="color: #000000; font-weight: bold;">*/</span><br />
define<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'DB_NAME'</span>, <span style="color: #ff0000;">'mydb'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;<br />
<br />
<span style="color: #000000; font-weight: bold;">/**</span> MySQL database username <span style="color: #000000; font-weight: bold;">*/</span><br />
define<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'DB_USER'</span>, <span style="color: #ff0000;">'myname'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;<br />
<br />
<span style="color: #000000; font-weight: bold;">/**</span> MySQL database password <span style="color: #000000; font-weight: bold;">*/</span><br />
define<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'DB_PASSWORD'</span>, <span style="color: #ff0000;">'mypassword'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;<br />
<br />
<span style="color: #000000; font-weight: bold;">/**</span> MySQL <span style="color: #c20cb9; font-weight: bold;">hostname</span> <span style="color: #000000; font-weight: bold;">*/</span><br />
define<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'DB_HOST'</span>, <span style="color: #ff0000;">'localhost'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;<br />
<br />
<span style="color: #000000; font-weight: bold;">/**</span> Database Charset to use <span style="color: #000000; font-weight: bold;">in</span> creating database tables. <span style="color: #000000; font-weight: bold;">*/</span><br />
define<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'DB_CHARSET'</span>, <span style="color: #ff0000;">'utf8'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;<br />
<br />
<span style="color: #000000; font-weight: bold;">/**</span> The Database Collate type. Don<span style="color: #ff0000;">'t change this if in doubt. */<br />
define('</span>DB_COLLATE<span style="color: #ff0000;">', '</span><span style="color: #ff0000;">');</span></div></div>
<p>Open a browser and continue the install:</p>
<p>http://myapp.local/wp-admin/install.php</p>
<p>You&#8217;ll most likely notice that you&#8217;re getting lots of errors and warnings on the pages, these can be turned off:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">sudo</span> mate <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>php.ini</div></div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">; Default Value: On<br />
; Development Value: On<br />
; Production Value: Off<br />
; http:<span style="color: #000000; font-weight: bold;">//</span>php.net<span style="color: #000000; font-weight: bold;">/</span>display-errors<br />
display_errors = Off</div></div>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">apache2ctl restart</span></div></div>
<p>Now you&#8217;re good to WordPress away!</p>
]]></content:encoded>
			<wfw:commentRss>http://passbyvalue.com/2009/11/installing-mysql-apache2-php-and-wordpress-with-macports/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Making your Rails app work on Java</title>
		<link>http://passbyvalue.com/2009/09/making-your-rails-app-work-on-java/</link>
		<comments>http://passbyvalue.com/2009/09/making-your-rails-app-work-on-java/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 12:07:12 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Software development]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://passbyvalue.com/?p=99</guid>
		<description><![CDATA[So you&#8217;ve written a Rails app and you want to show it off to your boss at work because you know that it will impress them. Problem is that your company only uses Java and won&#8217;t consider it for their production environment if it can&#8217;t be deployed under a JVM. Let&#8217;s go: Install JRuby http://jruby.org [...]]]></description>
			<content:encoded><![CDATA[<p>So you&#8217;ve written a Rails app and you want to show it off to your boss at work because you know that it will impress them.  Problem is that your company only uses Java and won&#8217;t consider it for their production environment if it can&#8217;t be deployed under a JVM.  Let&#8217;s go:</p>
<ol>
<li>Install JRuby <a href="http://jruby.org">http://jruby.org</a></li>
<li>Install the required gems for Ruby on Rails to work with JRuby</li>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">jgem <span style="color: #c20cb9; font-weight: bold;">install</span> mongrel activerecord-jdbcsqlite3-adapter rails</div></div>
<li>Install the gems particular to your application</li>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">jruby <span style="color: #660033;">-S</span> rake gems:install</div></div>
<li>Update your <code class="codecolorer text railscasts"><span class="text">database.xml</span></code> file, prefixing your adapter with <strong>jdbc</strong></li>
<div class="codecolorer-container ruby railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">development:<br />
&nbsp; adapter: jdbcsqlite3<br />
&nbsp; database: db<span style="color:#006600; font-weight:bold;">/</span>development.<span style="color:#9900CC;">sqlite3</span><br />
&nbsp; pool: <span style="color:#006666;">5</span><br />
&nbsp; timeout: <span style="color:#006666;">5000</span></div></div>
<li>Start your JVM</li>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">jruby script<span style="color: #000000; font-weight: bold;">/</span>server</div></div>
<li>Demonstrate</li>
<li>Sit back and wait for promotion</li>
</ol>
<p>Some notes on whats going on above:</p>
<ul>
<li>Detailed installation instructions for JRuby can be found on their wiki: <a href="http://kenai.com/projects/jruby/pages/GettingStarted">http://kenai.com/projects/jruby/pages/GettingStarted</a></li>
<li>The <code class="codecolorer bash railscasts"><span class="bash">jruby <span style="color: #660033;">-S</span> rake</span></code> command is very important as the <code class="codecolorer bash railscasts"><span class="bash"><span style="color: #660033;">-S</span></span></code> switch ensures that the <code class="codecolorer bash railscasts"><span class="bash">rake</span></code> command is sourced from the JRuby home, not the system path which would contain a native Ruby install</li>
<li>ActiveRecord-JDBC can handle most any database you can think of in a corporate environment.  Check it out here: <a href="http://kenai.com/projects/activerecord-jdbc/">http://kenai.com/projects/activerecord-jdbc/</a></li>
<li>If you wish to use another database, there are some gems already pre-packaged, more details on the github page: <a href="http://github.com/nicksieger/activerecord-jdbc-adapter">http://github.com/nicksieger/activerecord-jdbc-adapter</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://passbyvalue.com/2009/09/making-your-rails-app-work-on-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Oracle XE to work with SpringFramework JDBC Template</title>
		<link>http://passbyvalue.com/2009/07/getting-oracle-xe-to-work-with-springframework-jdbc-template/</link>
		<comments>http://passbyvalue.com/2009/07/getting-oracle-xe-to-work-with-springframework-jdbc-template/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 00:03:48 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Software development]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[springframework]]></category>

		<guid isPermaLink="false">http://blog.passbyvalue.com/?p=23</guid>
		<description><![CDATA[Ever get this error when using Oracle XE with SpringFramework JDBC Template? SORA-12519, TNS:no appropriate service handler found You can get around it by executing the following commands: ALTER SYSTEM SET PROCESSES=150 SCOPE=SPFILE; ALTER SYSTEM SET SESSIONS=100 SCOPE=SPFILE; Then stop and start database (Oracle XE service) and you&#8217;re good to go! Remember: needs to be [...]]]></description>
			<content:encoded><![CDATA[<p>Ever get this error when using Oracle XE with SpringFramework JDBC Template?</p>
<pre>SORA-12519, TNS:no appropriate service handler found</pre>
<p>You can get around it by executing the following commands:</p>
<div class="codecolorer-container sql railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold;">ALTER</span> SYSTEM <span style="color: #993333; font-weight: bold;">SET</span> PROCESSES<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">150</span> SCOPE<span style="color: #66cc66;">=</span>SPFILE;<br />
<span style="color: #993333; font-weight: bold;">ALTER</span> SYSTEM <span style="color: #993333; font-weight: bold;">SET</span> SESSIONS<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">100</span> SCOPE<span style="color: #66cc66;">=</span>SPFILE;</div></div>
<p>Then stop and start database (Oracle XE service) and you&#8217;re good to go!</p>
<p>Remember:</p>
<ul>
<li>needs to be capitals,</li>
<li>needs to have both entries</li>
<li>stop and start the database (oracle XE service)</li>
</ul>
<p>Got this from the following two resources:</p>
<p><a href="http://en.newinstance.it/2007/06/01/ora-12519-tnsno-appropriate-service-handler-found/">http://en.newinstance.it/2007/06/01/ora-12519-tnsno-appropriate-service-handler-found/</a><br />
<a href="http://forum.springsource.org/showthread.php?p=133267"> http://forum.springsource.org/showthread.php?p=133267</a></p>
]]></content:encoded>
			<wfw:commentRss>http://passbyvalue.com/2009/07/getting-oracle-xe-to-work-with-springframework-jdbc-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

