<?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>Jordan Brock &#187; Development</title>
	<atom:link href="http://jordanbrock.com/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://jordanbrock.com</link>
	<description>Pith</description>
	<lastBuildDate>Thu, 23 Jun 2011 08:12:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Selenium &#8220;ElementNotDisplayedError&#8221;</title>
		<link>http://jordanbrock.com/2011/06/23/selenium-elementnotdisplayederror/</link>
		<comments>http://jordanbrock.com/2011/06/23/selenium-elementnotdisplayederror/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 08:12:02 +0000</pubDate>
		<dc:creator>Jordan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby On Rails]]></category>

		<guid isPermaLink="false">http://jordanbrock.com/?p=505</guid>
		<description><![CDATA[If you do integration/request testing of an AJAXified web application using Rspec, Capybara and Selenium there is a pretty good chance that you might have run into this error: Selenium::WebDriver::Error::ElementNotDisplayedError: Element is not currently visible and so may not be interacted with After spending way too long to try and solve this problem (&#8220;THE ELEMENT [...]]]></description>
			<content:encoded><![CDATA[<p>If you do integration/request testing of an AJAXified web application using Rspec, Capybara and Selenium there is a pretty good chance that you might have run into this error:</p>
<p><code>Selenium::WebDriver::Error::ElementNotDisplayedError:</code><br />
<code>Element is not currently visible and so may not be interacted with</code></p>
<p>After spending way too long to try and solve this problem (&#8220;THE ELEMENT <strong>IS</strong> VISIBLE DAMN YOU!!!!&#8221;) I found a few little tweaks to my setup that help remove and/or mitigate the error.</p>
<p>The key to this error is that Capybara is trying to find and/or interact with an element and it&#8217;s not quite ready on the page yet because some JavaScript hasn&#8217;t executed yet, or there&#8217;s a delay with the test web server.</p>
<h3>jQuery Effects</h3>
<p>If you&#8217;re running tests, there&#8217;s a pretty good chance you don&#8217;t care about any jQuery effects. You&#8217;re just interested in the result. If that&#8217;s the case, then add this line to your page layout:</p>
<p><code>= javascript_tag '$.fx.off = true;' if Rails.env.test?</code></p>
<p>That will turn jQuery effects off in the Rails test environment.</p>
<h3>Capybara &#8220;wait_for&#8221;</h3>
<p>This is a particularly helpful method that, like its name implies, causes Capybara to take a chill pill, and wait for a particular condition to be met. Call it like this:<br />
<code><br />
wait_for (15) {page.should have_content "Some text."}</code><br />
<code>wait_for(30) {page.should have_button "Button Text"}<br />
</code></p>
<p>This just gives the page a little time to catch up before Capybara blows up on you.</p>
<h3>capybara-webkit</h3>
<p>A new Selenium driver from the fine folks at <a href="http://robots.thoughtbot.com/post/4583605733/capybara-webkit">Thoughtbot</a>, this is a headless (this just means it doesn&#8217;t open a visible window) browser that Capybara can interact with. Ideally it should be faster than opening up a browser window for each test. I managed to get it working, mostly. It&#8217;s still kind of new, so there are a few things missing, but it might be a good idea to watch the <a href="https://github.com/thoughtbot/capybara-webkit">github project</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jordanbrock.com/2011/06/23/selenium-elementnotdisplayederror/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CoffeeScript, bistro_car, homebrew, and passenger gotcha</title>
		<link>http://jordanbrock.com/2010/04/08/coffeescript-bistro_car-homebrew-and-passenger-gotcha/</link>
		<comments>http://jordanbrock.com/2010/04/08/coffeescript-bistro_car-homebrew-and-passenger-gotcha/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 09:15:38 +0000</pubDate>
		<dc:creator>Jordan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby On Rails]]></category>

		<guid isPermaLink="false">http://jordanbrock.com/?p=495</guid>
		<description><![CDATA[File under &#8220;Things for me to remember when reinstalling stuff&#8221; For me, one of the best things about using Ruby/Rails/Sinatra for web development is HAML/SASS, which allow me to quickly write and maintain HTML/CSS without having to worry about all the pointless stuff, like brackets etc. A by-product of using HAML/SASS is that when you [...]]]></description>
			<content:encoded><![CDATA[<p>File under &#8220;Things for me to remember when reinstalling stuff&#8221;</p>
<p>For me, one of the best things about using Ruby/Rails/Sinatra for web development is HAML/SASS, which allow me to quickly write and maintain HTML/CSS without having to worry about all the pointless stuff, like brackets etc. A by-product of using HAML/SASS is that when you have to write in something else, it causes me grief. JavaScript is a case in point.</p>
<p>Coffeescript (and to a lesser extent) bistro_car solve this. It brings the beauty of a ruby-like language to writing JavaScript, so that once again you don&#8217;t have to worry about all the crap that goes along with it.</p>
<p>However, I ran into a slight problem when following <a href="http://drnicwilliams.com/2010/03/15/using-coffeescript-in-rails-and-even-on-heroku/">Dr Nic&#8217;s setup tutorial</a> today. <a href="http://jashkenas.github.com/coffee-script/">CoffeeScript</a> worked, <a href="http://github.com/jnicklas/bistro_car">bistro_car</a> worked within the console, but it didn&#8217;t work when accessing the page through the browser. But some path re-working, and a kind word or two from <a href="http://twitter.com/sutto">@sutto</a>, and we&#8217;re good to go. </p>
<p>For future reference, here&#8217;s what I did. I&#8217;m using the <a href="http://github.com/mxcl/homebrew">homebrew package manager</a>. Mainly because it&#8217;s awesome, and I use MacOS X, which is also awesome.</p>
<p>So, I installed node.js, coffeescript and bistro_car like so:</p>
<p><code>brew install node</code><br />
<code>brew install coffee-script</code><br />
<code>gem install bistro_car</code></p>
<p>Then, add the following to your environment.rb file:</p>
<p><code>config.gem 'bistro_car'</code></p>
<p>Create an &#8216;app/scripts&#8217; directory in your Rails app, which is where you can store all your .coffee files (application.coffee etc).</p>
<p>You then get bistro_car to include those script files by putting this in your layout/template/page/whatever:</p>
<p><code>coffee_script_bundle</code></p>
<p>Then, you load the page, and bistro_car automagically uses coffee-script to convert your .coffee files to javascript. Except, of course, when it doesn&#8217;t work because something is screwed somewhere.</p>
<p>As with almost every problem on a *nix computer, the problem is a path one, and thankfully solved with some simple symlinks. It seems <a href="http://www.modrails.com/">passenger</a> operates in it&#8217;s own little world when it comes to paths, and it just didn&#8217;t want to play nice with my environment. So, I tricked it as follows:</p>
<p><code>sudo ln -s /usr/local/bin/coffee /usr/bin/coffee</code><br />
<code>sudo ln -s /usr/local/bin/node /usr/bin/node</code></p>
<p>And that, my friend, is how you skin the unix path cat. </p>
]]></content:encoded>
			<wfw:commentRss>http://jordanbrock.com/2010/04/08/coffeescript-bistro_car-homebrew-and-passenger-gotcha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up AutoTest on Mac OS  X</title>
		<link>http://jordanbrock.com/2009/08/08/setting-up-autotest-on-mac-os-x/</link>
		<comments>http://jordanbrock.com/2009/08/08/setting-up-autotest-on-mac-os-x/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 05:24:05 +0000</pubDate>
		<dc:creator>Jordan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby On Rails]]></category>

		<guid isPermaLink="false">http://jordanbrock.com/?p=468</guid>
		<description><![CDATA[Another in the series of &#8220;Oh, I&#8217;d better write this down here so I don&#8217;t forget it in the future&#8221; posts. This time, the gems needed to setup AutoTest for a rails app on Leopard Then you need to create a &#8220;.autotest&#8221; file with the following: Then it&#8217;s just a case of typing &#8220;autotest&#8221; in [...]]]></description>
			<content:encoded><![CDATA[<p>Another in the series of &#8220;Oh, I&#8217;d better write this down here so I don&#8217;t forget it in the future&#8221; posts. This time, the gems needed to setup AutoTest for a rails app on Leopard</p>
<script src="http://gist.github.com/164307.js"></script><noscript><code class="gist"><pre><br />
sudo gem install ZenTest   </p>
<p>sudo gem install autotest-fsevent </p>
<p>sudo gem install autotest-rails  </p>
<p>sudo gem install redgreen<br />
</pre></code></noscript>
<p>Then you need to create a &#8220;.autotest&#8221; file with the following:</p>
<script src="http://gist.github.com/164310.js"></script><noscript><code class="gist"><pre><br />
require &#8216;autotest/fsevent&#8217;<br />
require &#8216;redgreen/autotest&#8217;<br />
</pre></code></noscript>
<p>Then it&#8217;s just a case of typing &#8220;autotest&#8221; in RAILS_ROOT.</p>
<p>Simple.</p>
]]></content:encoded>
			<wfw:commentRss>http://jordanbrock.com/2009/08/08/setting-up-autotest-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using git to sync configurations between two computers</title>
		<link>http://jordanbrock.com/2009/04/13/using-git-to-sync-configurations-between-two-computers/</link>
		<comments>http://jordanbrock.com/2009/04/13/using-git-to-sync-configurations-between-two-computers/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 14:14:53 +0000</pubDate>
		<dc:creator>Jordan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[source control]]></category>
		<category><![CDATA[zsh]]></category>

		<guid isPermaLink="false">http://jordanbrock.com/?p=359</guid>
		<description><![CDATA[I have two machines that I use for my development work: a 24" iMac and a MacBook Air (It is so choice. If you have the means, I highly recommend picking one up. _Bonus points for quote identification_). Naturally, doing any work spread over two machines leads to all sorts of problems: Inconsistencies in development platform, files, data, code and just the general configuration of the machine. Thankfully, there exists a number of solutions to these problems.]]></description>
			<content:encoded><![CDATA[<p>I have two machines that I use for my development work: a 24&#8243; iMac and a MacBook Air (It is so choice. If you have the means, I highly recommend picking one up. _Bonus points for quote identification_). Naturally, doing any work spread over two machines leads to all sorts of problems: Inconsistencies in development platform, files, data, code and just the general configuration of the machine. Thankfully, there exists a number of solutions to these problems.</p>
<h3><a href="http://www.getdropbox.com">DropBox</a></h3>
<p>DropBox is simply file synchronisation done right. You install it, drag the files you want to have synced between two computers into the Dropbox folder, and BOOM, it copies everything up to their server, and when you set it up on the second computer, copies everything back down again. After the initial sync, which can take quite a while if you&#8217;ve got lots of stuff, it&#8217;s pretty much seamless. Create, or make a change to, a file on one computer, and before you know it, it&#8217;s available on the other computer.</p>
<p>Need access to those files from another computer, or even from your phone? No problem, they have a web interface that give you full access to all of your &#8220;synced&#8221; files. Simple.</p>
<p>To add a lovely cherry to the ice cream sundae that is DropBox, they also have versioning. That means if you make a series of dunderhead changes to a document, you can just rollback to the last good copy. Awesome.</p>
<h3><a href="http://git-scm.com/">Git</a> and <a href="http://www.github.com/">GitHub</a></h3>
<p>For the longest time (mostly while I was still working on Windows) &#8220;Source Control&#8221; was some mystical mumbo jumbo that only people in large companies needed to worry about. Of course, that was mainly because at the time the options for Visual Studio only included Microsoft SourceSafe, which is perhaps some of the crappiest, most unusable software ever foisted on the unsuspecting public by a company with a long history of foisting crap on the unsuspecting public.</p>
<p>Once I switched to MacOSX and started working with Rails, it became clear that all source control systems weren&#8217;t created equally. Subversion seemed to be the choice of the community, so I loaded everything up onto my own SVN server. A world was opened up to me, and I could code with wild abandon, safe in the knowledge that I could rollback with no danger. Of course, that was the ideal world, but the basic approach worked. I created branches, tagged releases and deployed sites from SVN.</p>
<p>As with most things, people started grumbling about SVN and some of it&#8217;s shortcomings: difficulties in merging different code branches, no distributed repositories and some general discontent. Git was the solution, and the rails community just jumped ships in the middle of the night. Before you knew it, everyone was using Git, and also GitHub. I won&#8217;t go into the specifics of why this combo is so good, except to say that if you&#8217;re not using git, well, good day to you sir.</p>
<h3>git and <a href="http://github.com/jferris/config_files/tree/master">config_files</a></h3>
<p>In addition to using git to store your development work, you can also use it to manage system configuration files. I found the wonderful <a href="http://github.com/jferris/config_files/tree/master">config_files</a>. It&#8217;s a collection of shell, git, vim and irb configuration files. So? How does that help?</p>
<p>A great feature of git, and github in particular, is that you can &#8220;fork&#8221; a repository. You effectively copy someone else&#8217;s repository, and you can then make all the changes to it you want, without affecting the original. If you want to let other people know about your changes, you can send the original developer a &#8220;pull request&#8221;, and they can grab your changes, and incorporate them, or not.</p>
<p>So, fork the config_files repository, and then clone it to your own system. Run the &#8220;install.sh&#8221; script, which basically just sets up a series of symlinks in your user directory. These symlinks point to the files in the git repository. You make any changes you want to the repository and commit them up to github. Then do the same on your other computer, and bingo, you&#8217;re synchronising your configuration between machines.</p>
<p>And why would you want config_files? Well, you get some great all round system setup tidbits, but my favourite bit is how it prints the current git branch as part of your prompt, saving you the need to try and work out what you&#8217;re in the middle of doing.</p>
<p>Tasty.</p>
]]></content:encoded>
			<wfw:commentRss>http://jordanbrock.com/2009/04/13/using-git-to-sync-configurations-between-two-computers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Online backups: How much should you back up?</title>
		<link>http://jordanbrock.com/2009/03/03/online-backups-how-much-should-you-back-up/</link>
		<comments>http://jordanbrock.com/2009/03/03/online-backups-how-much-should-you-back-up/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 00:20:00 +0000</pubDate>
		<dc:creator>Jordan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[onlinestorage]]></category>

		<guid isPermaLink="false">http:///2009/03/03/online-backups-how-much-should-you-back-up</guid>
		<description><![CDATA[Over the past few months, I have been slowly putting together a backup system that uses both local and online storage systems to provide a level of security and peace of mind. Backup Overview Using a combination of Super Duper, a couple of backup external HDD&#8217;s, Dropbox, Jungle Disk and Amazon S3 I have built [...]]]></description>
			<content:encoded><![CDATA[<p>Over the past few months, I have been slowly putting together a backup system that uses both local and online storage systems to provide a level of security and peace of mind.</p>
<h2>Backup Overview</h2>
<p>Using a combination of <a href="http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html">Super Duper</a>, a couple of backup external <span class="caps">HDD</span>&#8217;s, <a href="https://www.getdropbox.com/">Dropbox</a>, <a href="http://www.jungledisk.com/">Jungle Disk</a> and <a href="http://aws.amazon.com/s3/">Amazon S3</a> I have built up what I think is a relatively comprehensive and reliable backup system.</p>
<h3>Local Backups</h3>
<p>SuperDuper is a wonderful program that creates bootable mirrors of a hard drive. Effectively what this means is that if a hard drive fails, you can just replace it with the backup copy. You can schedule the backups to run as often as you want, which ensures that your backup copy is fresh and useable in case of a disaster.</p>
<p>And what am I backing up? I have two main drives that I use: The system disk (the built in drive in my iMac which contains all of my work files, personal documents, applications and the Operating System), and an external FireWire800 drive that stores photographs, videos, movies and TV shows.</p>
<h3>Amazon S3</h3>
<p>Amazon S3 is basically an online storage system that can be accessed via an <span class="caps">API</span> to upload, manage and retrieve data. Amazon charges for both the uploading of data (US$0.10 per Gb), and then for the actual storage of that data. The uploading charge is a one off cost, and the storage costs are charged monthly (US$0.15 per Gb per month).</p>
<h3>Jungle Disk</h3>
<p>One downfall of S3 is that it&#8217;s not actually setup to be used without additional software to manage the mechanics of the backups. Step up Jungle Disk. It&#8217;s pretty simple software: you give it your S3 account details, tell it what to backup, when to back it up and it will go ahead and take care of it for you. Simple. And then you get your monthly bill from S3. Nothing else to do.</p>
<p>One big downside of the whole online backup setup is the time it takes to actually backup any large amount of data, and that&#8217;s a limitation of my internet connection more than anything else. When you&#8217;re uploading 100+Gb, be prepared for a bit of a wait <img src='http://jordanbrock.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>The cost of Amazon S3</h2>
<p>While the monthly cost of the Amazon S3 service makes it a perfect online backup solution for data that you would class as priceless (photos, videos of the kids, work files, personal documents), when it comes to backing up stuff that can be easily replaced at a relatively low cost, such as iTunes TV shows and Movies, there soon comes a point where it&#8217;s not actually economically feasible to use online storage.</p>
<h3>iTunes TV Shows</h3>
<p>The average 1 hour (42 minutes of network TV) HD episode of a TV show on iTunes is about 1.4Gb. In addition to this, you also get an iPod/iPhone compatible SD version which is generally 600Mb. So, a single TV show is effectively 2Gb of data that needs to be backed up.</p>
<p>What is the cost of backing this file(s) up? Well, there&#8217;s a US$0.20 charge for uploading it to Amazon S3 initially, and then a US$0.30 charge per month. At that rate, it only takes 10 months of storing the data online until you&#8217;ve actually paid for the file twice. This means that if you lost the original file 12 months after you first bought it, you&#8217;d actually be better off buying the file again.</p>
<p>This effectively renders online backups for iTunes TV Shows pointless, considering how often you&#8217;re actually likely to watch a TV show, and also how cheap the cost of having a local <span class="caps">HDD</span> mirror is.</p>
<h3>iTunes Movies</h3>
<p>Currently iTunes Movies are only available in SD (boo to the movie studios and Apple for this one) so the files aren&#8217;t as large as they could be, but they&#8217;re still pretty sizable, weighing in at 1.67Gb for the recent &#8220;The Dark Knight&#8221;, which cost US$14.99. And how long until it&#8217;s not feasible to store this on Amazon S3?</p>
<p>At the purchase price, it would take 4.99 years until you&#8217;ve paid twice. However, Apple drops the price of new release films to $9.99 after about 4-6 months, so the replacement cost is greatly reduced. At this price the cut-off becomes 3.33 years. Obviously this timeframe requires a judgement call as to whether or not it&#8217;s worth it. Personally, I&#8217;d rather just trust my local <span class="caps">HDD</span> backups.</p>
<h3>iTunes/Amazon Music</h3>
<p>Music files are obviously considerably smaller than video files, and as such are going to incur a greatly reduced monthly fee for storage. Your average iTunes album costs approximately US$9.99 and is generally around 110Mb. This small size means that it will actually take about 49.95 years until it&#8217;s been paid for twice, buy which point you&#8217;ll either be A) dead, or B) listening to music on your personal bone implant that plays whatever music you want that&#8217;s being broadcast by SkyNet.</p>
<p>So, music is one area where it&#8217;s probably economical to maintain an online backup of your files, particularly considering how annoying it would be to go and re-purchase the 800+ albums you&#8217;ve got in your library in the first place.</p>
<h2>Other possible solutions and problems.</h2>
<p>Whenever you&#8217;re talking about local <span class="caps">HDD</span> backups, it&#8217;s always worth considering a <a href="http://www.drobo.com/">Drobo</a>, which is a redundant array of <span class="caps">HDD</span>&#8217;s that theoretically keeps your data happy and safe. I don&#8217;t have a Drobo, but I know that users who have one swear by them.</p>
<p>The one problem with local backups is that, of course, they are susceptible to local threats, e.g. fire and theft. There&#8217;s no point in having duplicate hard drives that slavishly mirror each other if some reprobate comes along and pilfers them both. Which means you need a third mirror, that you store off-site. Which in turn means you need a fourth drive that you store off-site in rotation with the third one. An endless cycle.</p>
]]></content:encoded>
			<wfw:commentRss>http://jordanbrock.com/2009/03/03/online-backups-how-much-should-you-back-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2nd Gen Accelerators, Rails and attachment_fu</title>
		<link>http://jordanbrock.com/2008/10/17/2nd-gen-accelerators-rails-and-attachment-fu/</link>
		<comments>http://jordanbrock.com/2008/10/17/2nd-gen-accelerators-rails-and-attachment-fu/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 18:38:00 +0000</pubDate>
		<dc:creator>Jordan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[accelerator]]></category>
		<category><![CDATA[joyent]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rubyonrails]]></category>

		<guid isPermaLink="false">http:///2008/10/17/2nd-gen-accelerators-rails-and-attachment-fu</guid>
		<description><![CDATA[File this one under WTF. I&#8217;ve been working on an updated version of the Soil Quality website for a little while now, and recently needed to deploy the site to a staging server for testing. I ordered up a 1/4Gb Accelerator from Joyent, configured it, and deployed the app, just like I&#8217;ve done with 20+ [...]]]></description>
			<content:encoded><![CDATA[<p>File this one under <span class="caps">WTF</span>.</p>
<p>I&#8217;ve been working on an updated version of the <a href="http://www.soilquality.org.au">Soil Quality</a> website for a little while now, and recently needed to deploy the site to a staging server for testing. I ordered up a <a href="http://www.joyent.com/accelerator/">1/4Gb Accelerator</a> from <a href="http://www.joyent.com">Joyent</a>, configured it, and <a href="http://wiki.joyent.com/accelerators:deploying_rails_apps">deployed</a> the app, just like I&#8217;ve done with 20+ other sites, and <span class="caps">BOOM</span>, straight into a brick wall.</p>
<p>I opened up the log files and saw this error:</p>
<pre>
** Daemonized, any open files are closed.  Look at /tmp/soilquality-mongrel.8200.pid and log/mongrel.8200.log for info.
** Starting Mongrel listening at 127.0.0.1:8200
** Define INLINEDIR or HOME in your environment and try again
</pre>
<p>Wonderfully descriptive I know, but something I&#8217;d never run into before. So, fire the the google and it turns out it&#8217;s a common error, with a common fix: just put</p>
<p><code>ENV['INLINEDIR'] = RAILS_ROOT + "/tmp"</code></p>
<p>into your config/environment.rb file, make sure the directory exists and that it&#8217;s writeable by the mongrel, restart, and away you go.</p>
<p>But of course, that didn&#8217;t fix it, did it.</p>
<p>Much hair pulling ensued. I finally enlisted the help of <a href="http://blog.ninjahideout.com/">Darcy Laycock</a> and together we managed to track the problem down to the <a href="http://github.com/technoweenie/attachment_fu/tree/master">attachment_fu plugin</a>, which was causing the problem as the mongrel process booted. OK, so now we knew where the problem lay, but what was causing it.</p>
<p>It turned out to be the ImageScience image processor, or more specifically the way the attachment_fu plugin and ImageScience work together <strong><span class="caps">ON A 2ND GENERATION JOYENT ACCELERATOR</span></strong> &#8211; eg the ones that use pkgsrc. Didn&#8217;t seem to cause the problem on an ubuntu machine, nor on one of the older BlastWave based Accelerators. I&#8217;m not sure why as of yet, as I was more worried about getting some sleep last night when we managed to fix the problem.</p>
<p>And the fix? Basically, strip ImageScience out of attachment_fu. Remove</p>
<pre>vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/image_science_processor.rb</pre>
<p>and remove &#8220;ImageScience&#8221; from this line</p>
<pre>@@default_processors = %w(ImageScience Rmagick MiniMagick Gd2 CoreImage)</pre>
<p>in this file</p>
<pre>vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/attachment_fu.rb</pre>
<p>Like I said, I have no real idea why this is happening at the moment, but I&#8217;ll try and work it out and update this post if I get anywhere.</p>
<p>Once again, thanks to Darcy for A) being a sounding board, B) helping fix the problem and C) being up and available when I needed him <img src='http://jordanbrock.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://jordanbrock.com/2008/10/17/2nd-gen-accelerators-rails-and-attachment-fu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Edge of the Web: Ben Buchanan</title>
		<link>http://jordanbrock.com/2008/10/12/edge-of-the-web-ben-buchanan/</link>
		<comments>http://jordanbrock.com/2008/10/12/edge-of-the-web-ben-buchanan/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 05:51:00 +0000</pubDate>
		<dc:creator>Jordan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[awia]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[edgeoftheweb]]></category>

		<guid isPermaLink="false">http:///2008/10/12/edge-of-the-web-ben-buchanan</guid>
		<description><![CDATA[Although it only seems like yesterday that I got back from Sydney and the wonderful Web Directions South, things are rapidly heating up for Perth&#8217;s own Web Conference: Edge of the Web, taking place at the UWA Club on November 6 and 7, 2008 &#8211; tickets available now!. There is a huge list of international [...]]]></description>
			<content:encoded><![CDATA[<p>Although it only seems like yesterday that I got back from Sydney and the wonderful <a href="http://south08.webdirections.org/">Web Directions South</a>, things are rapidly heating up for Perth&#8217;s own Web Conference: <a href="http://www.edgeoftheweb.org.au">Edge of the Web</a>, taking place at the <a href="http://www.edgeoftheweb.org.au/venue/"><span class="caps">UWA</span> Club</a> on November 6 and 7, 2008 &#8211; <a href="http://www.edgeoftheweb.org.au/registration/">tickets available now!</a>.</p>
<p>There is a <a href="http://www.edgeoftheweb.org.au/program/">huge list of international and national speakers on the program</a>, one of whom is <a href="http://weblog.200ok.com.au">Ben Buchanan</a>. I recently conducted a short email interview with Ben, talking about some of the subjects that he&#8217;ll touch upon in his talk <a href="http://www.edgeoftheweb.org.au/program">Hacking Humans: Advocating for a better web</a></p>
<div class="block">
<p><strong>Q: Is there a disconnect between how our clients see what we do, and how we actually work?</strong></p>
<p>A: I think there is. For example I think as a group web developers are diverse, interesting and definitely creative thinkers; but many clients are dismissive of developers.</p>
<p>Professionally, we use lateral thinking and creative problem solving on a daily basis. Building a system also requires a solid understanding of the business it supports – so developers often have a well informed and fresh perspective about a business. The potential benefits can easily go beyond the boundaries of web systems.</p>
<p>But the view of web developers as boring functionaries means many bosses or clients don&#8217;t really listen to their web geeks, and their business suffers as a result. In projects, geeks should be involved from strategy onwards and not just brought in at the end to grind out some code.</p>
<p><strong>Q: What can we do to help bridge that divide?</strong></p>
<p>A: Well I think the problem does stem from a grain of truth – and geeks can be pretty dismissive of people who are less technically competent, which isn&#8217;t helpful. We need to take a look at the way we present our achievements and ideas; and what role we step up to play in our professional dealings. Are we coming across as roadblocks or problem solvers? If we can adjust that then it might open up better working relationships.</p>
<p><strong>Q: Do you think that the way that web professionals can approach the &#8220;process&#8221; can dehumanise the people we&#8217;re building the site for &#8211; the end users?</strong></p>
<p>A: There&#8217;s a danger of letting technical or resourcing issues distract from the humans who need to use the final product. We can be a bit too clinical and detached from the real, live people and what they&#8217;re trying to do.</p>
<p>People don&#8217;t go looking for a school location database, they go looking for a great school for their kids. They don&#8217;t look for an online store, they look for a cool gift their partner will love. We should think and build accordingly.</p>
<p>I think it shows when a system was built for the human stuff, as opposed to sites and systems built because “we have to have a website”.</p>
<p><strong>Q: Managing expectations is obviously an important part of the job. Have you got any advice for new players?</strong></p>
<p>A: This is a bit of a “depends” question, because it&#8217;s driven by the culture and people you&#8217;re dealing with. But when people ask if something can be done, I am a believer in speaking the truth and explaining the options available. Because ultimately anything is “possible”, it&#8217;s just a matter of having enough time, people and money!</p>
<p>What people really need to know is what&#8217;s possible in the current scenario and what they can do to achieve their goals. That might mean guiding them through a prioritisation process – if they&#8217;re asking for fifty things, they probably don&#8217;t need fifty things, at least to start with.</p>
<p>It&#8217;s not about being negative, it&#8217;s about being realistic and focussed.</p>
</div>
<p>Ben is just one of a range of awesome speakers who are going to be presenting at Edge of the Web on the 6th November. On the following day, there are <a href="http://www.edgeoftheweb.org.au/program/workshops/">4 half-day workshops</a> on a diverse range of topics.</p>
<p>And then, to cap the two days off in style, Friday night sees the <a href="http://www.wawebawards.com.au">WA Web Awards</a>, where, in a burst of glorious self congratulation, the best of the WA Web industry are recognised for their efforts. <a href="http://www.wawebawards.com.au/tickets/">Get your tickets here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jordanbrock.com/2008/10/12/edge-of-the-web-ben-buchanan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Directions South 08</title>
		<link>http://jordanbrock.com/2008/10/02/web-directions-south-08/</link>
		<comments>http://jordanbrock.com/2008/10/02/web-directions-south-08/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 00:38:00 +0000</pubDate>
		<dc:creator>Jordan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Travel]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[trips]]></category>
		<category><![CDATA[webdirections]]></category>

		<guid isPermaLink="false">http:///2008/10/02/web-directions-south-08</guid>
		<description><![CDATA[So, thanks to the fine people at 5 Senses Coffee, I trundled over to Sydney for Web Directions South 08. Thursday, 25th September 2008 Opening Keynote &#8211; Lynne Johnson Boo. So mismatched to the audience it wasn&#8217;t amusing in the slightest. If we were a bunch of magazine publishers from 2003, then it might have [...]]]></description>
			<content:encoded><![CDATA[<p>So, thanks to the fine people at <a href="http://www.fivesensescoffee.com.au">5 Senses Coffee</a>, I trundled over to Sydney for <a href="http://south08.webdirections.org">Web Directions South 08</a>.</p>
<h3>Thursday, 25th September 2008</h3>
<h4>Opening Keynote &#8211; Lynne Johnson</h4>
<p>Boo. So mismatched to the audience it wasn&#8217;t amusing in the slightest. If we were a bunch of magazine publishers from 2003, then it might have been interesting, but we weren&#8217;t, and so it wasn&#8217;t.</p>
<h4>Derek Featherstone</h4>
<p>Nubbins. Yay!!</p>
<p>I&#8217;ll just pretend that the opening keynote didn&#8217;t happen, and that this was the start. It&#8217;s always good to see someone who A) has command of their field and B) is a great presenter. Totally comfortable on stage, and thoroughly knowledgeable about his topic, which he managed to make seem almost exciting, which is pretty hard for what is essentially a dry topic.</p>
<h4>iPhone Development</h4>
<p><a href="http://toolmantim.com">Tim Lucas</a> and Pete Ottery worked on the <a href="http://iphone.news.com.au">iPhone Site</a> and did a good presentation on some of their experiences. Perhaps because I had already started on the iPhone site for 5 Senses and I had already encountered most of those problems, I didn&#8217;t really come away with much. But that&#8217;s cool, because it was an intro level talk, not for an iPhone Dev Conference or anything.</p>
<h4>JavaScript Libraries/Frameworks</h4>
<p>Yeah, good times, much laughter, fun, and frivolity, and then when <a href="http://themaninblue.com/">Cameron</a> rolled out the Drum Machine &#8211; <span class="caps">FUCKING BRILLIANT</span>.</p>
<p>I&#8217;m not sure if I actually learned anything, except that just about everyone is using jQuery, and those of us still on Prototype are mocked mercilessly.</p>
<h4>August de la Rejos</h4>
<p>Hmmm, ok, but hold the ads.</p>
<p>An interesting talk about the progress of user interaction with computers, as well as the psychology behind it, that had some wonderful videos outlining potential future developments, but was undermined by the fact that they were MicroSoft corporate videos. Oh well.</p>
<h4>WebJam8</h4>
<p>Bucketloads of awesome, mixed in with tasty beverages, fine companies that sponsored the tasty beverages, fine talks, and conversation. Mad times. Cannot wait until <a href="http://www.edgeoftheweb.org.au/webjam-9-will-be-at-the-edge/">WebJam 9</a> as part of <a href="http://www.edgeoftheweb.org.au/">Edge of the Web</a></p>
<h3>Friday, 26th September 2008</h3>
<h4>Jeffrey Veen</h4>
<p>Hot. Wired.</p>
<p>Awesome talk about visualising data, and what good design can achieve. Memorable, and featuring the entirely wonderful <a href="http://graphs.gapminder.org/world/">Gapminder World</a></p>
<h4>Gina Bolton</h4>
<p>No. Not good. I don&#8217;t know if Gina has a ninja like mastery of <span class="caps">CSS</span> (I&#8217;m guessing she does since she consults/designs for companies like Apple and has written a book), but statements like &#8220;from what I&#8217;ve heard when talking to developers, computers start counting at 0&#8221; doesn&#8217;t make code-monkey happy.</p>
<p>A thorough understanding of your topic, and avoiding statements like &#8220;I haven&#8217;t checked the blogs for a month or so, so I don&#8217;t know if the <span class="caps">CSS3</span> Working Recommendation has been ratified or not.&#8221; Seriously!</p>
<h4>Michael&#8482; Smith</h4>
<p>Not too bad. Bit of a laundry list. Of course, any recitation of the trials and tribulations of <span class="caps">HTML 5</span> isn&#8217;t really going to be anything but dry. Still, good to hear for the most part. However, the take away from this, Gina&#8217;s and Douglas Crockford&#8217;s talk is that it&#8217;s been 10 years since any successful revision to <span class="caps">HTML</span>, CSS or ECMAScript, which just instills wonderful amounts of trust and faith in committees.</p>
<p>And really? Michael&#8482; What is this &#8211; Burning Man?</p>
<h4>Myles Eftos.</h4>
<p>Huzzah! The <a href="http://madpilot.com.au">madpilot</a> flew like a crazy bastard over the top of the dangerous territories of OpenID and OAuth. And if that isn&#8217;t enough, he launched incursions into <span class="caps">HTTP 1</span>.1 as well as <span class="caps">REST</span> and <span class="caps">SOAP</span>. Lucky for all he came back unharmed.</p>
<h4>Douglas Crockford</h4>
<p>Good. Real code. Real ideas.</p>
<p>And scary. (We are so totally screwed if even half of what he was saying comes to fruition.)</p>
<h4>Mark Pesce</h4>
<p>Oversold. A fishing basket full of &#8220;ok, but meh&#8221;. One of the apparent pitfalls of giving what, from all accounts, was an amazing presentation at <span class="caps">WDS07</span> that inspired everyone who went, is that the next year expectations are particularly high. When those expectations aren&#8217;t met (probably through no fault of Marks) it leaves people underwhelmed. I didn&#8217;t necessarily agree with the central theme of the presentation (that twitter and the like are going to transform society and its&#8217; institutions), so that didn&#8217;t help.</p>
<p>One thing I will say is that if you need to make a point that you <em>aren&#8217;t going to do next year&#8217;s closing keynote</em>, you probably shouldn&#8217;t be doing this years.</p>
<p>A slight down to end on.</p>
<h4><span class="caps">DRINKS</span>!!!!!</h4>
<p>Wheee! All that needs to be said can be summed up in these two tweets that I, um, twitted.</p>
<p>Salad is what food eats<br/><br />
<em>09:19 PM September 26, 2008 from twitterrific</em></p>
<p>Has teh drunk on. Hi meat lady!<br/><br />
<em>12:18 AM September 27, 2008 from twitterrific</em></p>
<h4>Would I go again?</h4>
<p>Totally. As <a href="http://edgeoftheweb.com.au">we are no doubt about to find out</a>, running a conference is a tricky thing. Getting a mix of the right speakers, hoping they are all in top form, and cultivating the vibe is no doubt a difficult thing. I had a great time in Sydney: I met some great people, learned lots, felt inadequate (I mean, you&#8217;re talking to Douglas Crockford over a beer &#8230; what do you say?), and saw a Europe video on a large screen.</p>
]]></content:encoded>
			<wfw:commentRss>http://jordanbrock.com/2008/10/02/web-directions-south-08/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Slow Decline of Internet Explorer and Slower Rise of Firefox</title>
		<link>http://jordanbrock.com/2008/09/11/the-slow-decline-of-internet-explorer-and-slower-rise-of-firefox/</link>
		<comments>http://jordanbrock.com/2008/09/11/the-slow-decline-of-internet-explorer-and-slower-rise-of-firefox/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 23:36:00 +0000</pubDate>
		<dc:creator>Jordan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http:///2008/09/11/the-slow-decline-of-internet-explorer-and-slower-rise-of-firefox</guid>
		<description><![CDATA[For the past 8 years or so, 5 Senses Coffee has been both a client of mine, and for the last 15 months, my employer. The public face of that work is the main website, which sells coffee, teas and other wonderful items. I&#8217;d like to think that the visitors to the website are a [...]]]></description>
			<content:encoded><![CDATA[<p>For the past 8 years or so, <a href="http://www.fivesensescoffee.com.au/">5 Senses Coffee</a> has been both a client of <a href="http://spintech.com.au">mine</a>, and for the last 15 months, my employer. The public face of that work is the main website, which sells coffee, teas and other <a href="http://www.fivesensescoffee.com.au/shop/equipment/isomac-la-mondiale">wonderful items</a>. I&#8217;d like to think that the visitors to the website are a pretty good spread of the general population of the internet, not necessarily too technical/web based, and not too &#8220;Hey, what&#8217;s this internet thing all about?&#8221;</p>
<p>Every now and then a story will appear in my feed reader about the use of one browser being higher than another, and more often than not, that site has a skewed audience, which means that it&#8217;s users are more likely to have the latest and greatest than other, less browser obsessed users.</p>
<p>So, bearing in mind that this probably has no relationship to the wider world than any other site, here is the browser share of visitors to the 5 Senses Website over the past 21 months.</p>
<p><img src="http://jordanbrock.com/assets/2008/9/11/browser_share.jpg" alt="" /></p>
<table width="545" cellpadding="5" cellspacing="0" border="0" class="data">
<tr class="header">
<th></th>
<th><span class="caps">Q1 2007</span></th>
<th><span class="caps">Q2 2007</span></th>
<th><span class="caps">Q3 2007</span></th>
<th><span class="caps">Q4 2007</span></th>
<th><span class="caps">Q1 2008</span></th>
<th><span class="caps">Q2 2008</span></th>
<th><span class="caps">Q3 2008</span></th>
</tr>
<tr>
<td class="header"> Internet Explorer </td>
<td> 77.16 </td>
<td> 67.15 </td>
<td> 64.63 </td>
<td> 64.76 </td>
<td> 65.26 </td>
<td> 60.81 </td>
<td> 59.72 </td>
</tr>
<tr class="alternate">
<td class="header"> Firefox </td>
<td> 16.93 </td>
<td> 25.33 </td>
<td> 28.25 </td>
<td> 25.98 </td>
<td> 25.62 </td>
<td> 29.29 </td>
<td> 29.79 </td>
</tr>
<tr>
<td class="header"> Safari </td>
<td> 4.36 </td>
<td> 5.63 </td>
<td> 5.87 </td>
<td> 7.9 </td>
<td> 7.46 </td>
<td> 8.35 </td>
<td> 9.05 </td>
</tr>
<tr class="alternate">
<td class="header"> Opera </td>
<td> 0.74 </td>
<td> 0.82 </td>
<td> 0.58 </td>
<td> 0.74 </td>
<td> 0.98 </td>
<td> 0.89 </td>
<td> 0.94 </td>
</tr>
<tr>
<td class="header"> Other </td>
<td> 0.81 </td>
<td> 1.07 </td>
<td> 0.67 </td>
<td> 0.61 </td>
<td> 0.67 </td>
<td> 0.66 </td>
<td> 0.50 </td>
</tr>
</table>
<div class="table_caption">
Browser share as a per centage for visitors to www.fivesensescoffee.com.au
</div>
<p>And the breakdowns for the various versions of Internet Explorer, where &#8220;IE x&#8221; is all versions other than <span class="caps">IE 6</span> and <span class="caps">IE 7</span>.</p>
<p><img src="http://jordanbrock.com/assets/2008/9/11/IE_stats.jpg" alt="" /></p>
<table width="545" cellpadding="2" cellspacing="0" border="0" class="data">
<tr class="header">
<th></th>
<th> Q1 2007 </th>
<th> Q2 2007 </th>
<th> Q3 2007 </th>
<th> Q4 2007 </th>
<th> Q1 2008 </th>
<th> Q2 2008 </th>
<th> Q3 2008 </th>
</tr>
<tr>
<td class="header"> IE 6.x </td>
<td> 72.85 </td>
<td> 56.87 </td>
<td> 53.43 </td>
<td> 50.93 </td>
<td> 40.88 </td>
<td> 32.79 </td>
<td> 31.08 </td>
</tr>
<tr class="alternate">
<td class="header"> IE 7.x </td>
<td> 26.4 </td>
<td> 42.5 </td>
<td> 46.2 </td>
<td> 48.83 </td>
<td> 58.93 </td>
<td> 67.02 </td>
<td> 68.82 </td>
</tr>
<tr>
<td class="header"> IE x </td>
<td> 0.75 </td>
<td> 0.62 </td>
<td> 0.37 </td>
<td> 0.24 </td>
<td> 0.18 </td>
<td> 0.18 </td>
<td> 0.10 </td>
</tr>
</table>
<div class="table_caption">
Versions of Internet Explorer as a per centage for visitors to www.fivesensescoffee.com.au
</div>
<p>and FireFox.</p>
<p><img src="http://jordanbrock.com/assets/2008/9/11/FF_stats.jpg" alt="" /></p>
<table width="545" cellpadding="2" cellspacing="0" border="0" class="data">
<tr class="header">
<th></th>
<th> Q1 2007 </th>
<th> Q2 2007 </th>
<th> Q3 2007 </th>
<th> Q4 2007 </th>
<th> Q1 2008 </th>
<th> Q2 2008 </th>
<th> Q3 2008 </th>
</tr>
<tr>
<td class="header"> FF 1.x </td>
<td> 6.38 </td>
<td> 3.96 </td>
<td> 3.49 </td>
<td> 2.33 </td>
<td> 1.61 </td>
<td> 1.19 </td>
<td> 1.18 </td>
</tr>
<tr class="alternate">
<td class="header"> FF 1.5.x </td>
<td> 34.37 </td>
<td> 4.95 </td>
<td> 4.95 </td>
<td> 3.04 </td>
<td> 2.49 </td>
<td> 1.21 </td>
<td> 0.79 </td>
</tr>
<tr>
<td class="header"> FF 2.x </td>
<td> 59.25 </td>
<td> 91.56 </td>
<td> 91.56 </td>
<td> 94.52 </td>
<td> 94.73 </td>
<td> 89.47 </td>
<td> 51.28 </td>
</tr>
<tr class="alternate">
<td class="header"> FF 3.x </td>
<td> 0 </td>
<td> 0 </td>
<td> 0 </td>
<td> 0.11 </td>
<td> 1.17 </td>
<td> 8.13 </td>
<td> 46.75 </td>
</tr>
</table>
<div class="table_caption">
Versions of Firefox as a per centage for visitors to www.fivesensescoffee.com.au
</div>
<p>What is evident from these numbers is that while IE is still the dominant browser, with almost 2/3rds of market share, Firefox has been slowly and steadily increasing. But not necessarily at the same rate that IE is losing share. Firefox seems to be losing a bit of ground to other browsers, namely Safari.</p>
<p>The interesting number is that Safari has doubled over the sample period. True, it&#8217;s still third by more than a few lengths, but it seems to be taking some of those gains from IE.  I&#8217;m guessing this is mainly due to the increased market share of Apple in general, and not some massive use of Safari on MS Windows.</p>
<p>Other, possibly unrelated points that can be extracted is that FireFox users are more likely to upgrade their browser than IE users. This can be seen by the almost complete drop off in <span class="caps">FF 1</span>.5x users at the beginning of the timeframe, and the rapid rise of <span class="caps">FF 3</span>.x in the last 3 months, to the point that it almost equals <span class="caps">FF 2</span>.x. That said, there certainly appears to be some die-hard holdouts for <span class="caps">FF 1</span>.x, who are disappearing at a slower rate than those still using <span class="caps">FF 1</span>.5.x</p>
<p>So, not a scientific sample and/or analysis by any stretch, but still interesting. The surprising item here is the doubling in share of Safari (which, in the authors less than humble opinion is the best browser there is.) True, it didn&#8217;t have far to go to double that share, but it still had to be done.</p>
<p>The upshot of all of this is that, unfortunately, there is still a large portion of the internet population still using <span class="caps">IE 6</span> (approximately 20% of all visitors it seems), so it still needs to be supported, or those people need to be encouraged to migrate upwards. How do we do that? Well, your guess is as good as mine.</p>
]]></content:encoded>
			<wfw:commentRss>http://jordanbrock.com/2008/09/11/the-slow-decline-of-internet-explorer-and-slower-rise-of-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Freezing Rails with Git</title>
		<link>http://jordanbrock.com/2008/06/12/freezing-rails-with-git/</link>
		<comments>http://jordanbrock.com/2008/06/12/freezing-rails-with-git/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 03:46:00 +0000</pubDate>
		<dc:creator>Jordan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rubyonrails]]></category>

		<guid isPermaLink="false">http:///2008/06/12/freezing-rails-with-git</guid>
		<description><![CDATA[Now that the Ruby On Rails team has moved the codebase over to github, some of the standard rake tasks aren&#8217;t working the way that they used to. When it was on SVN, it was possible to type rake rails:freeze:edge TAG=rel_2-0-1 and the appropriate version would be copied into your vendor/rails directory. Now if you [...]]]></description>
			<content:encoded><![CDATA[<p>Now that the Ruby On Rails team has moved the codebase over to <a href="http://github.com">github</a>, some of the standard rake tasks aren&#8217;t working the way that they used to. When it was on <span class="caps">SVN</span>, it was possible to type</p>
<p><code>rake rails:freeze:edge TAG=rel_2-0-1</code></p>
<p>and the appropriate version would be copied into your vendor/rails directory.</p>
<p>Now if you do that, rake downloads a zip of the edge release. Which is fine and all, but sometimes you don&#8217;t want to be on edge &#8230; like in any production site.</p>
<p>So, I found a <a href="http://smartic.us/2008/5/15/freezing-rails-with-git">screencast</a> that goes through the process, but I thought I&#8217;d actually put the text into a post, mainly for my own reference more than anything else.</p>
<pre>
$ rails path_to_app</p>
<p>$ cd path_to_app</p>
<p>$ git init</p>
<p>$ git submodule add git://github.com/rails/rails.git vendor/rails
</pre >
<p>At this point, git will effectively clone the repository, so that you can then choose one of the branches to &#8220;freeze&#8221; to. Type &#8220;git tag&#8221; to get a list of all the available tagged branches. Choose the one you want and type</p>
<p><code>$ git checkout v2.1.0</code></p>
<p>And that&#8217;s it. Slightly more involved than the old way, but still none too shabby.</p>
]]></content:encoded>
			<wfw:commentRss>http://jordanbrock.com/2008/06/12/freezing-rails-with-git/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

