<?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>Faking Fantastic</title>
	<atom:link href="http://www.fakingfantastic.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fakingfantastic.com</link>
	<description>Confessions of a Web Developing Phony</description>
	<lastBuildDate>Tue, 26 Feb 2013 18:41:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Audio / Slides / Code Posted from my Drupal Camp NJ talk</title>
		<link>http://www.fakingfantastic.com/2013/02/26/audio-slides-code-posted-from-my-drupal-camp-nj-talk/</link>
		<comments>http://www.fakingfantastic.com/2013/02/26/audio-slides-code-posted-from-my-drupal-camp-nj-talk/#comments</comments>
		<pubDate>Tue, 26 Feb 2013 18:41:50 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Lecture]]></category>

		<guid isPermaLink="false">http://www.fakingfantastic.com/?p=552</guid>
		<description><![CDATA[I recently gave a talk at the Drupal Camp NJ on Drupal Coding Patterns. You can listen to the entire talk, and view the slides and the code: http://www.drupalcampnj.org/content/drupal-coding-patterns.
]]></description>
		<wfw:commentRss>http://www.fakingfantastic.com/2013/02/26/audio-slides-code-posted-from-my-drupal-camp-nj-talk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal Camp NJ 2013</title>
		<link>http://www.fakingfantastic.com/2013/02/06/drupal-camp-nj-2013/</link>
		<comments>http://www.fakingfantastic.com/2013/02/06/drupal-camp-nj-2013/#comments</comments>
		<pubDate>Wed, 06 Feb 2013 21:23:33 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.fakingfantastic.com/?p=550</guid>
		<description><![CDATA[Thanks to everyone who came out to my talk at Drupal Camp NJ, &#8220;Drupal Coding Patterns.&#8221; Got a lot of really nice feedback, and met a lot of really great people in the community. Slides and code have been posted on the official Drupal Camp NJ website: http://www.drupalcampnj.org/content/drupal-coding-patterns
]]></description>
		<wfw:commentRss>http://www.fakingfantastic.com/2013/02/06/drupal-camp-nj-2013/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get the page node in hook_page_alter in Drupal 7</title>
		<link>http://www.fakingfantastic.com/2011/09/20/get-the-page-node-in-hook_page_alter-in-drupal-7/</link>
		<comments>http://www.fakingfantastic.com/2011/09/20/get-the-page-node-in-hook_page_alter-in-drupal-7/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 16:00:38 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[drupal 7]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.fakingfantastic.com/?p=535</guid>
		<description><![CDATA[Many times, you need to access the node in hook_page_alter(). Traversing gets ugly, so I moved it out into this little helper.
123function _get_page_node&#40;$page&#41; &#123;
&#160;return &#40;isset&#40;$page&#91;'content'&#93;&#91;'system_main'&#93;&#91;'nodes'&#93;&#41;&#41; ? &#160;$page&#91;'content'&#93;&#91;'system_main'&#93;&#91;'nodes'&#93;&#91;array_shift&#40;array_keys&#40;$page&#91;'content'&#93;&#91;'system_main'&#93;&#91;'nodes'&#93;&#41;&#41;&#93;&#91;&#34;#node&#34;&#93; : false; 
&#125;
Drop this is template.php, and now you can do something like
123456function YOURTHEME_page_alter&#40;&#38;$page&#41; &#123;
&#160; $node = _get_page_node&#40;$page&#41;;
&#160; if&#40;$node &#38;&#38; $node-&#62;type == &#34;article&#34;&#41; &#123;
&#160; &#160; // ... edit [...]]]></description>
		<wfw:commentRss>http://www.fakingfantastic.com/2011/09/20/get-the-page-node-in-hook_page_alter-in-drupal-7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to contribute to Drupal</title>
		<link>http://www.fakingfantastic.com/2011/08/24/how-to-contribute-to-drupal/</link>
		<comments>http://www.fakingfantastic.com/2011/08/24/how-to-contribute-to-drupal/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 12:47:44 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Information]]></category>

		<guid isPermaLink="false">http://www.fakingfantastic.com/?p=529</guid>
		<description><![CDATA[While up in Connecticut last weekend speaking at DrupalCampCT, I had the opputunity to speak with Ben Melancon (mlncn) about what we can do to make contributing more accessible to Drupal users of all skill levels. We all love that Drupal is very much a &#8220;plug-and-play&#8221; CMS, but getting those plugs made requires a lot [...]]]></description>
		<wfw:commentRss>http://www.fakingfantastic.com/2011/08/24/how-to-contribute-to-drupal/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using Hash Bangs in your URLs</title>
		<link>http://www.fakingfantastic.com/2011/02/09/using-hash-bangs-in-your-urls/</link>
		<comments>http://www.fakingfantastic.com/2011/02/09/using-hash-bangs-in-your-urls/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 14:30:14 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[ajax]]></category>

		<guid isPermaLink="false">http://www.fakingfantastic.com/?p=509</guid>
		<description><![CDATA[Ever since the emergence of AJAX into web commonplace, we have been looking for feasible ways to may the content crawl-able by spiders. Recently, you may have noticed a handful of websites with strange looking URLs, something like this:
http://www.example.com/#!some/unique/identifier

Why would anyone do such a thing? The answer should be obvious, Google. In a guide released [...]]]></description>
		<wfw:commentRss>http://www.fakingfantastic.com/2011/02/09/using-hash-bangs-in-your-urls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure Test::Unit and Capybara</title>
		<link>http://www.fakingfantastic.com/2011/01/10/configure-testunit-and-capybara/</link>
		<comments>http://www.fakingfantastic.com/2011/01/10/configure-testunit-and-capybara/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 01:37:43 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.fakingfantastic.com/?p=505</guid>
		<description><![CDATA[While trying to set up Capybara with Test::Unit, I ran into trouble finding documentation on how to do it. Ultimately, I found the answer in the gem&#8217;s README, but for those who just want to google-and-go, I figured I&#8217;d post this for you.
Simply, throw this in your Gemfile
123group :test do
&#160; gem 'capybara'
end
and run `bundle`
Now, open [...]]]></description>
		<wfw:commentRss>http://www.fakingfantastic.com/2011/01/10/configure-testunit-and-capybara/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Fixing the &#8220;You have to install development tools first&#8221; error with Nokogiri.</title>
		<link>http://www.fakingfantastic.com/2010/11/26/fixing-the-you-have-to-install-development-tools-first-error-with-nokogiri/</link>
		<comments>http://www.fakingfantastic.com/2010/11/26/fixing-the-you-have-to-install-development-tools-first-error-with-nokogiri/#comments</comments>
		<pubDate>Fri, 26 Nov 2010 19:17:23 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[nokogiri]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.fakingfantastic.com/?p=498</guid>
		<description><![CDATA[After wracking my brains around a strange issue installing Nokogiri, wmoxam in #rubyonrails and I figured out how to get it to install.
Problem: You go to install nokogiri, either with bundler or with a straight &#8220;gem install nokogiri&#8221;, and you get an error like the following:

In your wisdom, you decide to jump over to Aaron [...]]]></description>
		<wfw:commentRss>http://www.fakingfantastic.com/2010/11/26/fixing-the-you-have-to-install-development-tools-first-error-with-nokogiri/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>ReadOnly needs to be set to true or false, not :true or :false</title>
		<link>http://www.fakingfantastic.com/2010/11/18/readonly-needs-to-be-set-to-true-or-false-not-true-or-false/</link>
		<comments>http://www.fakingfantastic.com/2010/11/18/readonly-needs-to-be-set-to-true-or-false-not-true-or-false/#comments</comments>
		<pubDate>Thu, 18 Nov 2010 17:18:40 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[gotcha]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.fakingfantastic.com/?p=495</guid>
		<description><![CDATA[Just taking some time to let you in on another gotcha. Hopefully, this saves people some aggravation some day.
While working on Kludge, we took a RESTful approach and built our controller like so:
12345class ProjectsController &#60; ApplicationController
&#160; def update
&#160; &#160; @project = Project.find&#40;params&#91;:id&#93;&#41;.update_attributes&#40;params&#91;:project&#93;&#41;
&#160; end
end
While this works, it doesn&#8217;t offer you any protection that evil users may [...]]]></description>
		<wfw:commentRss>http://www.fakingfantastic.com/2010/11/18/readonly-needs-to-be-set-to-true-or-false-not-true-or-false/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Before Type Cast</title>
		<link>http://www.fakingfantastic.com/2010/11/13/before-type-cast/</link>
		<comments>http://www.fakingfantastic.com/2010/11/13/before-type-cast/#comments</comments>
		<pubDate>Sat, 13 Nov 2010 19:26:30 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gotcha]]></category>

		<guid isPermaLink="false">http://www.fakingfantastic.com/?p=486</guid>
		<description><![CDATA[While working on Kludge, I ran into a bit of a gotcha that I thought I&#8217;d share with everyone.
In our invoicing system, we have a Invoice model that has many LineItems. These line items, have a quantity attribute, and a quantity_type. This way, your line item can say &#8220;10 hours&#8221;, or &#8220;5 products&#8221;. When storing [...]]]></description>
		<wfw:commentRss>http://www.fakingfantastic.com/2010/11/13/before-type-cast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Concerning Yourself with ActiveSupport::Concern</title>
		<link>http://www.fakingfantastic.com/2010/09/20/concerning-yourself-with-active-support-concern/</link>
		<comments>http://www.fakingfantastic.com/2010/09/20/concerning-yourself-with-active-support-concern/#comments</comments>
		<pubDate>Mon, 20 Sep 2010 17:11:03 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.fakingfantastic.com/?p=449</guid>
		<description><![CDATA[Picking up on our last talk about working with the Rails core, I wanted to take some time to introduce you to the internals of Rails 3, in hopes to break down any fears about hacking around in Rails. We are going to talk today about ActiveSupport::Concern.
Preface
For those of you new to ActiveSupport, let&#8217;s take [...]]]></description>
		<wfw:commentRss>http://www.fakingfantastic.com/2010/09/20/concerning-yourself-with-active-support-concern/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
