<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2" -->
<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/"
	>

<channel>
	<title>become</title>
	<link>http://wpdavenport.com</link>
	<description>...leaving who I was...becoming who I am</description>
	<pubDate>Mon, 26 Jul 2010 16:51:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>
	<language>en</language>
			<item>
		<title>Bite sized development</title>
		<link>http://wpdavenport.com/?p=19</link>
		<comments>http://wpdavenport.com/?p=19#comments</comments>
		<pubDate>Mon, 26 Jul 2010 16:51:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://wpdavenport.com/?p=19</guid>
		<description><![CDATA[http://www.pomodorotechnique.com/Dev time broken into chucks of time &#8212; 25 min  with 5 min breaks.  And every 4th break is  longer. Task Oriented Development.
]]></description>
			<content:encoded><![CDATA[<p>http://www.pomodorotechnique.com/Dev time broken into chucks of time &#8212; 25 min  with 5 min breaks.  And every 4th break is  longer. Task Oriented Development.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpdavenport.com/?feed=rss2&amp;p=19</wfw:commentRss>
		</item>
		<item>
		<title>Keep up to date with the NoSQL happenings</title>
		<link>http://wpdavenport.com/?p=18</link>
		<comments>http://wpdavenport.com/?p=18#comments</comments>
		<pubDate>Wed, 31 Mar 2010 15:07:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://wpdavenport.com/?p=18</guid>
		<description><![CDATA[http://nosql.mypopescu.com/
&#8220;Featuring the best daily NoSQL news, articles and links covering all major NoSQL projects and following closely all things related to NoSQL ecosystem. Everything you need and want to know about NoSQL.&#8221;
]]></description>
			<content:encoded><![CDATA[<p><a href="http://nosql.mypopescu.com/" target="_blank">http://nosql.mypopescu.com/</a><br />
<blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-width: initial; border-color: initial; border-style: none; padding: 0px">&#8220;<span style="font-family: Georgia, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 14px; color: #333333" class="Apple-style-span">Featuring the best daily NoSQL news, articles and links covering all major NoSQL projects and following closely all things related to NoSQL ecosystem. Everything you need and want to know about NoSQL.&#8221;</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wpdavenport.com/?feed=rss2&amp;p=18</wfw:commentRss>
		</item>
		<item>
		<title>Tokyo Cabinet install for OS X Snow Leopard</title>
		<link>http://wpdavenport.com/?p=17</link>
		<comments>http://wpdavenport.com/?p=17#comments</comments>
		<pubDate>Mon, 29 Mar 2010 18:54:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Ruby on Rails]]></category>

		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://wpdavenport.com/?p=17</guid>
		<description><![CDATA[Based on:http://railsillustrated.com/getting-started-with-tokyo-on-osx.html
There is one tweak for the Ruby binding:ARCHFLAGS=&#8221;-arch x86_64&#8243;
I hope this helps someone, I know it has me.
]]></description>
			<content:encoded><![CDATA[<blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-width: initial; border-color: initial; border-style: none; padding: 0px"><p>Based on:<a href="http://railsillustrated.com/getting-started-with-tokyo-on-osx.html" title="Rails Illustrated" target="_blank">http://railsillustrated.com/getting-started-with-tokyo-on-osx.html</a></p></blockquote>
<blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-width: initial; border-color: initial; border-style: none; padding: 0px"><p>There is one tweak for the Ruby binding:ARCHFLAGS=&#8221;-arch x86_64&#8243;</p></blockquote>
<blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-width: initial; border-color: initial; border-style: none; padding: 0px"><p>I hope this helps someone, I know it has me.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wpdavenport.com/?feed=rss2&amp;p=17</wfw:commentRss>
		</item>
		<item>
		<title>Voice Lessons</title>
		<link>http://wpdavenport.com/?p=15</link>
		<comments>http://wpdavenport.com/?p=15#comments</comments>
		<pubDate>Fri, 15 Jan 2010 18:32:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://wpdavenport.com/?p=15</guid>
		<description><![CDATA[I started taking voice lessons.  For christmas I got a course called Brett Manning&#8217;s Singing Success.  I&#8217;m hoping that it will improve my range and voice quality.  Once I get brave enough I&#8217;ll document my progression with some audio clips.  I am recording my progress so at some point I should be able to hear the [...]]]></description>
			<content:encoded><![CDATA[<p>I started taking voice lessons.  For christmas I got a course called <a href="http://www.google.com/url?q=http://www.singingsuccess.com/&amp;ei=_nhQS8GCGZPWM8y_6JgJ&amp;sa=X&amp;oi=spellmeleon_result&amp;resnum=1&amp;ct=result&amp;ved=0CAsQhgIwAA&amp;usg=AFQjCNEbPDq0F_fcAsATk7iiuHw4rlLmKQ">Brett Manning&#8217;s Singing Success</a>.  I&#8217;m hoping that it will improve my range and voice quality.  Once I get brave enough I&#8217;ll document my progression with some audio clips.  I am recording my progress so at some point I should be able to hear the difference.For now, I can sing comfortably between F below C4 and an C5-A flat or on a it&#8217;s guitar F on the low string to an A flat on the high E string. Right now, my vocal warm up&#8217;s consist:<span class="Apple-tab-span" style="white-space: pre">	</span></p>
<ul>
<li>Warm up with humming high to low</li>
<li>Lip roll scales</li>
<li>Pitch exercises - this is where I play a note on the piano and match the pitch and hold for 10 sec</li>
<li><span class="Apple-tab-span" style="white-space: pre"></span>Nay, nay, nay  scales<span class="Apple-tab-span" style="white-space: pre">	</span></li>
<li><span class="Apple-tab-span" style="white-space: pre"></span>Warm down the same as warming up</li>
</ul>
<p><span class="Apple-tab-span" style="white-space: pre"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://wpdavenport.com/?feed=rss2&amp;p=15</wfw:commentRss>
		</item>
		<item>
		<title>Create Remote Branche with git</title>
		<link>http://wpdavenport.com/?p=14</link>
		<comments>http://wpdavenport.com/?p=14#comments</comments>
		<pubDate>Fri, 22 May 2009 15:09:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://wpdavenport.com/?p=14</guid>
		<description><![CDATA[I was lead down some interesting paths figuring out this simple flow.  So I thought I&#8217;d post it to save some time&#8230;and hopefully someone else&#8217;s.
Also, here&#8217;s a nice cheetsheet: http://cheat.errtheblog.com/s/git 
# Sets up a local branch
git branch my_test
# Creates the remote branch
git push origin my_test
# Deletes a remote branch
git push origin :my_test
# Delete branch locally
git [...]]]></description>
			<content:encoded><![CDATA[<p>I was lead down some interesting paths figuring out this simple flow.  So I thought I&#8217;d post it to save some time&#8230;and hopefully someone else&#8217;s.</p>
<p>Also, here&#8217;s a nice cheetsheet: <a href="http://cheat.errtheblog.com/s/git">http://cheat.errtheblog.com/s/git </a></p>
<p># Sets up a local branch<br />
git branch my_test</p>
<p># Creates the remote branch<br />
git push origin my_test</p>
<p># Deletes a remote branch<br />
git push origin :my_test</p>
<p># Delete branch locally<br />
git branch -d my_test</p>
<p>UPDATE: (5/27/2009)<br />
Get a remote branch that exists on the server but not locally (tracking is set by default)</p>
<p>git checkout -b my_test_prod origin/my_test_prod</p>
]]></content:encoded>
			<wfw:commentRss>http://wpdavenport.com/?feed=rss2&amp;p=14</wfw:commentRss>
		</item>
		<item>
		<title>PostgreSql on Mac</title>
		<link>http://wpdavenport.com/?p=13</link>
		<comments>http://wpdavenport.com/?p=13#comments</comments>
		<pubDate>Thu, 04 Dec 2008 18:24:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://wpdavenport.com/?p=13</guid>
		<description><![CDATA[Great packaged installer for Postgres.   http://www.postgresqlformac.com/	
ALSO

Edit Global Bash ProfileYou need to edit the global bash profile as follows:

Open the Terminal application.
Type sudo pico /etc/profile
You will be prompted to enter your password.
Add the following text to the end of the file:
export PATH=/Library/PostgreSQL8/bin:$PATHexport PGDATA=/Library/PostgreSQL8/dataPostgreSQL8 in the above text might be something different depending on the version you installed. Check on your [...]]]></description>
			<content:encoded><![CDATA[<p>Great packaged installer for Postgres.   http://www.postgresqlformac.com/<span class="Apple-tab-span" style="white-space: pre">	</span><br />
<blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-width: initial; border-color: initial; border-style: none; padding: 0px">ALSO</p></blockquote>
<blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-width: initial; border-color: initial; border-style: none; padding: 0px"></blockquote>
<blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-width: initial; border-color: initial; border-style: none; padding: 0px"><p><span class="Apple-style-span" style="font-family: 'lucida grande', geneva, helvetica, arial, sans-serif; font-size: 19px; font-weight: bold">Edit Global Bash Profile</span>You need to edit the global bash profile as follows:</p></blockquote>
<ol>
<li style="padding-bottom: 10px">Open the <span class="nav" style="font-family: 'lucida grande', geneva, helvetica, arial, sans-serif; font-weight: bold; font-size: 9pt; color: black">Terminal</span> application.</li>
<li style="padding-bottom: 10px">Type <kbd style="font-family: 'lucida grande', geneva, helvetica, arial, sans-serif; font-size: 9pt; text-decoration: underline; color: black">sudo pico /etc/profile</kbd></li>
<li style="padding-bottom: 10px">You will be prompted to enter your password.</li>
<li style="padding-bottom: 10px">Add the following text to the end of the file:
<p class="code" style="font-family: 'courier new', courier, monaco, monospace; font-size: 9pt; color: black; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #f5f5f5; padding-top: 2px; padding-right: 5px; padding-bottom: 2px; padding-left: 5px; border-width: 1px; border-color: silver; border-style: solid">export PATH=/Library/PostgreSQL8/bin:$PATHexport PGDATA=/Library/PostgreSQL8/data<span class="file" style="font-family: 'courier new', courier, monaco, monospace; font-size: 10pt; color: blue">PostgreSQL8</span> in the above text might be something different depending on the version you installed. Check on your computer in the <span class="file" style="font-family: 'courier new', courier, monaco, monospace; font-size: 10pt; color: blue">HardDrive/Library/</span> folder to verify the name of your installed <span class="file" style="font-family: 'courier new', courier, monaco, monospace; font-size: 10pt; color: blue">PostgreSQL</span> folder.</p>
</li>
<li style="padding-bottom: 10px">Press <kbd style="font-family: 'lucida grande', geneva, helvetica, arial, sans-serif; font-size: 9pt; text-decoration: underline; color: black">Ctrl+x</kbd> to Exit. Press <kbd style="font-family: 'lucida grande', geneva, helvetica, arial, sans-serif; font-size: 9pt; text-decoration: underline; color: black">y</kbd> to save the changes. Press the <kbd style="font-family: 'lucida grande', geneva, helvetica, arial, sans-serif; font-size: 9pt; text-decoration: underline; color: black">Return</kbd> key to save the file.</li>
</ol>
<p>Copied from: http://www.studiotips.net/docs/tips_sql/postgresql/installingpostgresqlonmac.html</p>
]]></content:encoded>
			<wfw:commentRss>http://wpdavenport.com/?feed=rss2&amp;p=13</wfw:commentRss>
		</item>
		<item>
		<title>Rails: Role and Permission creating &#8212; acts as role</title>
		<link>http://wpdavenport.com/?p=11</link>
		<comments>http://wpdavenport.com/?p=11#comments</comments>
		<pubDate>Mon, 17 Nov 2008 14:28:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://wpdavenport.com/?p=11</guid>
		<description><![CDATA[A while ago (Nov. 2006) was looking for a solution to Roles and Permissions for Ruby on Rails.  One idea on the RoR site is to create an Access Control List (ACL), create a before filter and allow certain roles to certain actions.   This seemed like a lot of extra work.  Especially if you have to do [...]]]></description>
			<content:encoded><![CDATA[<p style="font-size: 16px; line-height: 20.8px">A while ago (Nov. 2006) was looking for a solution to Roles and Permissions for Ruby on Rails.  One idea on the <a href="http://wiki.rubyonrails.com/rails/pages/ACLController">RoR site</a> is to create an Access Control List (ACL), create a before filter and allow certain roles to certain actions.   This seemed like a lot of extra work.  Especially if you have to do this to each controller.  Plus you have to maintain it!  I wanted something more dynamic&#8211;cooler.  Plus, it places an unnecessary dependency between me and my code.  I want to solve problems, not add/remove permissions.</p>
<p style="font-size: 16px; line-height: 20.8px">Enter acts as role.  Written with my friend <a href="http://github.com/jmorton">Jon Morton</a>, AAR allows for role/permission simplicity through-out a Rails application.   We followed these guidelines when writing AAR - Had to:<br style="font-size: 16px; line-height: 20.8px" /></p>
<ul>
<li><a href="http://swik.net/modelsecurity">have model based security</a></li>
<li>protect Controller actions</li>
<li>simple to code in the View</li>
<li>hide items easily in the View</li>
<li>database driven, have no ACL list in the code</li>
<li>allow multiple roles</li>
<li>and handle permission conflict intelligently</li>
</ul>
<p style="font-size: 16px; line-height: 20.8px">Understanding Users/Roles/Permissions<br style="font-size: 16px; line-height: 20.8px" /> AAR&#8217;s basic principle is that you should not give special permissions directly to the User.  All permissions are given to a Role.  If there is a snowflake** who needs X permission then I copy an existing Role and add the permission.  This way if (or when) that user is gone the permissions and are preserved.</p>
<p style="font-size: 16px; line-height: 20.8px"><span class="Apple-style-span" style="text-decoration: line-through">Installation can be a simple as downloading the app, putting it in your vender/plugins directory and adding &#8220;include ActsAsRole&#8221; at the top of your controllers/application.rb.   </span> Correction.  There are models and relationships that need to be set up that I have not explained.  I&#8217;ll work on updating the README to include this. And add some rake tasks to the plugin to create the models.  See the DB Schema PDF to see the model associations.</p>
<p style="font-size: 16px; line-height: 20.8px">EXAMPLE of using AAR:</p>
<p style="font-size: 16px; line-height: 20.8px">if has_access?(users_path)do something&#8230;end
<p style="font-size: 16px; line-height: 20.8px">OR</p>
<p style="font-size: 16px; line-height: 20.8px">if has_access?(:controller =&gt; &#8216;users&#8217;, :action =&gt; &#8216;index&#8217;)do something&#8230;end
<p style="font-size: 16px; line-height: 20.8px">In Part 2, I&#8217;ll have a screencast and a test app. <br style="font-size: 16px; line-height: 20.8px" /></p>
<p style="font-size: 16px; line-height: 20.8px">Links:<br style="font-size: 16px; line-height: 20.8px" /> <a href="http://github.com/wpdavenport/acts_as_role/tree/master" style="font-size: 16px; line-height: 20.8px" title="acts_as_role on git">git AAR</a><br style="font-size: 16px; line-height: 20.8px" /><a href="http://www.geocities.com/beforum/aar/acts_as_role_diagram.pdf" style="font-size: 16px; line-height: 20.8px">model schema diagram pdf</a></p>
<p style="font-size: 16px; line-height: 20.8px">** Jon Bartels, fellow programmer who coined the edge cases as &#8220;snowflakes&#8221;&#8230;because everyone wants to be special and unique.<br style="font-size: 16px; line-height: 20.8px" /></p>
]]></content:encoded>
			<wfw:commentRss>http://wpdavenport.com/?feed=rss2&amp;p=11</wfw:commentRss>
		</item>
		<item>
		<title>Rails: Capture RoutingError</title>
		<link>http://wpdavenport.com/?p=12</link>
		<comments>http://wpdavenport.com/?p=12#comments</comments>
		<pubDate>Mon, 10 Nov 2008 15:36:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://wpdavenport.com/?p=12</guid>
		<description><![CDATA[Another small issue I came across this weekend is when I type in a bogus URL in my rails app.  i.e. http://localhost:3000/asdf
routes.rb maps routes for a Rails app and they are checked in order.  So if we add a route at the end of that list it will assume that the route didn&#8217;t match any [...]]]></description>
			<content:encoded><![CDATA[<p>Another small issue I came across this weekend is when I type in a bogus URL in my rails app.  i.e. http://localhost:3000/asdf</p>
<p>routes.rb maps routes for a Rails app and they are checked in order.  So if we add a route at the end of that list it will assume that the route didn&#8217;t match any previous route. Here&#8217;s a sample:</p>
<p>map.connect &#8216;*some_attribute&#8217;, :controller =&gt; application</p>
<p>Any route that hits this will be sent to the application/index. Here is  simple fix for the index method:</p>
<p>def index<br />
logger.error exception.backtrace.join(&#8221;\n&#8221;)<br />
render :template =&gt; &#8220;my_error_page&#8221;, :status =&gt; :not_found<br />
end</p>
]]></content:encoded>
			<wfw:commentRss>http://wpdavenport.com/?feed=rss2&amp;p=12</wfw:commentRss>
		</item>
		<item>
		<title>rescue_from</title>
		<link>http://wpdavenport.com/?p=10</link>
		<comments>http://wpdavenport.com/?p=10#comments</comments>
		<pubDate>Thu, 06 Nov 2008 16:57:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://wpdavenport.com/?p=10</guid>
		<description><![CDATA[When building a Rails invariably I have some conditions that needs to be handled that fall outside of  &#8220;normal&#8221; behavior.  I also want to display something nice to the user, log the error and respond to the browser with the correct HTTP response code.  This can be used per controller or system wide in the [...]]]></description>
			<content:encoded><![CDATA[<p>When building a Rails invariably I have some conditions that needs to be handled that fall outside of  &#8220;normal&#8221; behavior.  I also want to display something nice to the user, log the error and respond to the browser with the correct HTTP response code.  This can be used per controller or system wide in the application controller.<br />
<blockquote>rescue_from ActiveRecord::RecordNotFound do |exception|  logger.error exception.backtrace.join(&#8221;\n&#8221;)  render :template =&gt; &#8220;record_not_found&#8221;, :status =&gt; :not_foundend</p></blockquote>
<p>API Reference: <a href="http://api.rubyonrails.org/classes/ActionController/Rescue/ClassMethods.html#M000251">rescue_from</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wpdavenport.com/?feed=rss2&amp;p=10</wfw:commentRss>
		</item>
	</channel>
</rss>
