<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>John Plummer . com</title>
	
	<link>http://www.johnplummer.com</link>
	<description>Stuff I want to remember</description>
	<lastBuildDate>Tue, 31 Jan 2012 13:07:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/JohnPlummer" /><feedburner:info uri="johnplummer" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Optional Parameters in View Partials</title>
		<link>http://feedproxy.google.com/~r/JohnPlummer/~3/C6k9pkM-HnY/optional-parameters-view-partials.html</link>
		<comments>http://www.johnplummer.com/rails/optional-parameters-view-partials.html#comments</comments>
		<pubDate>Tue, 31 Jan 2012 12:37:20 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Ruby and Rails]]></category>
		<category><![CDATA[Default Values]]></category>
		<category><![CDATA[defined?]]></category>
		<category><![CDATA[has_key?]]></category>
		<category><![CDATA[Locals]]></category>
		<category><![CDATA[Optional Parameters]]></category>
		<category><![CDATA[Partial]]></category>
		<category><![CDATA[Variables]]></category>

		<guid isPermaLink="false">http://www.johnplummer.com/?p=350</guid>
		<description>It&amp;#8217;s generally good practise to pass variables to view partials using locals rather than littering your code with @variables. This allows better reuse of the partial. To make the locals optional, provide default values if they are nil or undefined. I have seen many recommendations to do this with a test for defined? According to [...]&lt;img src="http://feeds.feedburner.com/~r/JohnPlummer/~4/C6k9pkM-HnY" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.johnplummer.com/rails/optional-parameters-view-partials.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.johnplummer.com/rails/optional-parameters-view-partials.html</feedburner:origLink></item>
		<item>
		<title>Rails 3.1 on Heroku, TLDR Version</title>
		<link>http://feedproxy.google.com/~r/JohnPlummer/~3/nkjZZGHljCg/rails-31-heroku-tldr-version.html</link>
		<comments>http://www.johnplummer.com/rails/rails-31-heroku-tldr-version.html#comments</comments>
		<pubDate>Tue, 13 Dec 2011 15:44:28 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Ruby and Rails]]></category>
		<category><![CDATA[Foreman]]></category>
		<category><![CDATA[Gemfile]]></category>
		<category><![CDATA[Heroku]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[rvmrc]]></category>
		<category><![CDATA[Stack]]></category>
		<category><![CDATA[Thin]]></category>

		<guid isPermaLink="false">http://www.johnplummer.com/?p=341</guid>
		<description>Create the app If not installed, install PostgreSQL rails new app_name -T -d=postgresql cd app_name/ rvm --create --rvmrc 1.9.2@app_name rvm rvmrc trust Edit .Gemfile bundle install createuser -P -S -R -d app_name (no to &amp;#8216;Superuser&amp;#8217; and &amp;#8216;Create roles&amp;#8217;, yes to &amp;#8216;Create databases&amp;#8217;) rake db:create Create procfile in app root. foreman start and check http://0.0.0.0:5000/ Push [...]&lt;img src="http://feeds.feedburner.com/~r/JohnPlummer/~4/nkjZZGHljCg" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.johnplummer.com/rails/rails-31-heroku-tldr-version.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.johnplummer.com/rails/rails-31-heroku-tldr-version.html</feedburner:origLink></item>
		<item>
		<title>Does Email Obfuscation Work?</title>
		<link>http://feedproxy.google.com/~r/JohnPlummer/~3/wHX_RKbNZ88/email-obfuscation.html</link>
		<comments>http://www.johnplummer.com/js-html-and-css/email-obfuscation.html#comments</comments>
		<pubDate>Wed, 07 Dec 2011 21:01:10 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[JS, HTML and CSS]]></category>
		<category><![CDATA[Clickable Link]]></category>
		<category><![CDATA[Crawlers]]></category>
		<category><![CDATA[Email Address]]></category>
		<category><![CDATA[Obfuscation]]></category>
		<category><![CDATA[Rerun]]></category>
		<category><![CDATA[Test]]></category>

		<guid isPermaLink="false">http://www.johnplummer.com/?p=328</guid>
		<description>  It seems to be common wisdom that if you put your email address on the web in plain text you will get spammed (more). There are various ways to try and hide an email address from various crawlers whist still displaying it to visitors, most involving javascript and relying  on the crawlers not having [...]&lt;img src="http://feeds.feedburner.com/~r/JohnPlummer/~4/wHX_RKbNZ88" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.johnplummer.com/js-html-and-css/email-obfuscation.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.johnplummer.com/js-html-and-css/email-obfuscation.html</feedburner:origLink></item>
		<item>
		<title>Installing Postgresql and pgAdmin</title>
		<link>http://feedproxy.google.com/~r/JohnPlummer/~3/H7AYseAFx1E/installing-postgresql-pgadmin.html</link>
		<comments>http://www.johnplummer.com/rails/installing-postgresql-pgadmin.html#comments</comments>
		<pubDate>Tue, 06 Dec 2011 13:10:39 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Ruby and Rails]]></category>
		<category><![CDATA[Heroku]]></category>
		<category><![CDATA[pgAdmin]]></category>
		<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://www.johnplummer.com/?p=292</guid>
		<description>  The default database for Heroku is PostgreSQL and, while you could use SQLite for development and Postgres for production, there are some inconsistencies between the two. Ideally you would use the same version of the database server but currently Heroku uses version 9 for dedicated databases and 8.3 for shared databases and seem to [...]&lt;img src="http://feeds.feedburner.com/~r/JohnPlummer/~4/H7AYseAFx1E" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.johnplummer.com/rails/installing-postgresql-pgadmin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.johnplummer.com/rails/installing-postgresql-pgadmin.html</feedburner:origLink></item>
		<item>
		<title>Setting up Rails on a Clean Install of Mac OS X Lion</title>
		<link>http://feedproxy.google.com/~r/JohnPlummer/~3/9Lt4hWnYRe4/setting-rails-clean-install-mac-os-lion.html</link>
		<comments>http://www.johnplummer.com/rails/setting-rails-clean-install-mac-os-lion.html#comments</comments>
		<pubDate>Tue, 25 Oct 2011 10:03:33 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Ruby and Rails]]></category>
		<category><![CDATA[Config Files]]></category>
		<category><![CDATA[Gems]]></category>
		<category><![CDATA[Home Folder]]></category>
		<category><![CDATA[Homebrew]]></category>
		<category><![CDATA[Lion]]></category>
		<category><![CDATA[Mac Apps]]></category>
		<category><![CDATA[Os X]]></category>
		<category><![CDATA[Rubies]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.johnplummer.com/?p=273</guid>
		<description>I realise that OSX does not have a registry to clog up but I have just reinstalled Lion on my Macbook Air; probably a hang up from Windows. This is a checklist for installing Homebrew &amp;#62;&amp;#62; Rails. Install XCode 4.1 (There are issues with the 4.2 compiler and certain rubies and gems) Install Homebrew https://github.com/mxcl/homebrew/wiki/installation [...]&lt;img src="http://feeds.feedburner.com/~r/JohnPlummer/~4/9Lt4hWnYRe4" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.johnplummer.com/rails/setting-rails-clean-install-mac-os-lion.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.johnplummer.com/rails/setting-rails-clean-install-mac-os-lion.html</feedburner:origLink></item>
		<item>
		<title>Changing Three Finger Swipe to Back in Lion</title>
		<link>http://feedproxy.google.com/~r/JohnPlummer/~3/mCavgiQlZfI/changing-three-finger-swipe-to-back-in-lion.html</link>
		<comments>http://www.johnplummer.com/mac/changing-three-finger-swipe-to-back-in-lion.html#comments</comments>
		<pubDate>Tue, 18 Oct 2011 11:43:54 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Gestures]]></category>
		<category><![CDATA[Lion]]></category>
		<category><![CDATA[Swipe]]></category>
		<category><![CDATA[System Preferences]]></category>

		<guid isPermaLink="false">http://www.johnplummer.com/?p=271</guid>
		<description>Lion introduces some new gestures which unfortunately breaks some gestures I am used to such as a three finger swipe to move back in Chrome. Easily fixed by opening System Preferences &amp;#62; Trackpad &amp;#62; More Gestures and changing swipe between full screen apps to use four fingers and swipe between pages to use three.&lt;img src="http://feeds.feedburner.com/~r/JohnPlummer/~4/mCavgiQlZfI" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.johnplummer.com/mac/changing-three-finger-swipe-to-back-in-lion.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.johnplummer.com/mac/changing-three-finger-swipe-to-back-in-lion.html</feedburner:origLink></item>
		<item>
		<title>Rails default scripts and jquery-rails</title>
		<link>http://feedproxy.google.com/~r/JohnPlummer/~3/cgFCML3MIhQ/rails-default-scripts-jqueryrails.html</link>
		<comments>http://www.johnplummer.com/rails/rails-default-scripts-jqueryrails.html#comments</comments>
		<pubDate>Thu, 09 Jun 2011 20:49:00 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Ruby and Rails]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Javascripts]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[jquery-rails]]></category>
		<category><![CDATA[Loaded]]></category>
		<category><![CDATA[Script Files]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://www.johnplummer.com/?p=262</guid>
		<description>I recently had an issue in a (3.0.7) rails app where link_to some_path, :method =&amp;#62; :post was calling the action associated with GET, this was caused by not having a link to jquery_ujs.js (I&amp;#8217;m using jquery so don&amp;#8217;t want rails.js) in my html output. Googling turns up a number of suggestions to add jquery_ujs.js and [...]&lt;img src="http://feeds.feedburner.com/~r/JohnPlummer/~4/cgFCML3MIhQ" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.johnplummer.com/rails/rails-default-scripts-jqueryrails.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.johnplummer.com/rails/rails-default-scripts-jqueryrails.html</feedburner:origLink></item>
		<item>
		<title>Rails Autoload and Ruby Require</title>
		<link>http://feedproxy.google.com/~r/JohnPlummer/~3/d_HGX4fEbxk/rails-autoload-ruby-require.html</link>
		<comments>http://www.johnplummer.com/rails/rails-autoload-ruby-require.html#comments</comments>
		<pubDate>Tue, 07 Jun 2011 12:51:19 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Ruby and Rails]]></category>
		<category><![CDATA[Autoload]]></category>
		<category><![CDATA[Development Mode]]></category>
		<category><![CDATA[Directories]]></category>
		<category><![CDATA[Extend]]></category>
		<category><![CDATA[Gems]]></category>
		<category><![CDATA[Include]]></category>
		<category><![CDATA[irb]]></category>
		<category><![CDATA[Lib Directory]]></category>
		<category><![CDATA[Loading Files]]></category>
		<category><![CDATA[Path]]></category>
		<category><![CDATA[Require]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.johnplummer.com/?p=258</guid>
		<description>Rails methods of locating and loading files is mostly based on convention but is built on top of Ruby&amp;#8217;s methods. Ruby The basic way to tell a ruby to load a file is to require it, e.g. require some_file will load some_file.rb if the file has not already been loaded. load some_file.rb will load the [...]&lt;img src="http://feeds.feedburner.com/~r/JohnPlummer/~4/d_HGX4fEbxk" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.johnplummer.com/rails/rails-autoload-ruby-require.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.johnplummer.com/rails/rails-autoload-ruby-require.html</feedburner:origLink></item>
		<item>
		<title>Launching irb from vim</title>
		<link>http://feedproxy.google.com/~r/JohnPlummer/~3/dMKTS5GBDQI/launching-irb-from-vim.html</link>
		<comments>http://www.johnplummer.com/rails/launching-irb-from-vim.html#comments</comments>
		<pubDate>Thu, 19 May 2011 18:30:48 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Ruby and Rails]]></category>
		<category><![CDATA[.vimrc.local]]></category>
		<category><![CDATA[irb]]></category>
		<category><![CDATA[irbtools]]></category>
		<category><![CDATA[Load Path]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://www.johnplummer.com/?p=253</guid>
		<description>You can run irb from vim with the command !irb. Running !irb -r % should run the current file in irb then leave irb open. Unfortunately ruby 1.9.2 removed the current directory from the load path which causes this to fail. You could construct a path but it is easier to add the current directory [...]&lt;img src="http://feeds.feedburner.com/~r/JohnPlummer/~4/dMKTS5GBDQI" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.johnplummer.com/rails/launching-irb-from-vim.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.johnplummer.com/rails/launching-irb-from-vim.html</feedburner:origLink></item>
		<item>
		<title>Recovering from ‘the application finder can’t be opened’</title>
		<link>http://feedproxy.google.com/~r/JohnPlummer/~3/WC1d8B5NKnM/recovering-the-application-finder-opened.html</link>
		<comments>http://www.johnplummer.com/mac/recovering-the-application-finder-opened.html#comments</comments>
		<pubDate>Thu, 19 May 2011 16:06:30 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Alias]]></category>
		<category><![CDATA[Amp]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Finder]]></category>
		<category><![CDATA[Fix]]></category>
		<category><![CDATA[Map]]></category>
		<category><![CDATA[System Library]]></category>
		<category><![CDATA[Terminal System]]></category>

		<guid isPermaLink="false">http://www.johnplummer.com/?p=249</guid>
		<description>Every now and again I get an error when opening finder: &amp;#8216;the application finder can&amp;#8217;t be opened&amp;#8217; Whilst I am sure a restart would fix it, I normally don&amp;#8217;t want to restart as I am in the middle of something. The solution is to run the following in terminal: /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder &amp;#38; (don&amp;#8217;t forget the &amp;#38;) [...]&lt;img src="http://feeds.feedburner.com/~r/JohnPlummer/~4/WC1d8B5NKnM" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.johnplummer.com/mac/recovering-the-application-finder-opened.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.johnplummer.com/mac/recovering-the-application-finder-opened.html</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic Page Served (once) in 0.394 seconds -->

