<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.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>Brian Corrales</title>
	<link>http://corralesonline.com</link>
	<description>corralesonline.com</description>
	<pubDate>Sat, 02 Aug 2008 15:04:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
	<language>en</language>
			<item>
		<title>News Update</title>
		<link>http://corralesonline.com/news-update/2008/08/02/</link>
		<comments>http://corralesonline.com/news-update/2008/08/02/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 15:04:36 +0000</pubDate>
		<dc:creator>brian.corrales</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://corralesonline.com/news-update/2008/08/02/</guid>
		<description><![CDATA[I haven&#8217;t written a post on here for quite a while.  Things have been pretty crazy with my work at DeseretBook.com.  We&#8217;ve launched the new retail site as beta and it should be replacing the old system within the next couple of weeks.  That project has been really long, but very fulfilling.  There&#8217;s quite a [...]]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t written a post on here for quite a while.  Things have been pretty crazy with my work at DeseretBook.com.  We&#8217;ve launched the new retail site as <a href="http://beta.deseretbook.com">beta </a>and it should be replacing the old system within the next couple of weeks.  That project has been really long, but very fulfilling.  There&#8217;s quite a few updated and new features on the site along with a killer new design.  Feel free to <a href="http://beta.deseretbook.com">check it out</a>.</p>
<p>Besides that, I&#8217;ve been preparing myself for Ko Dan Ja Shim Sa, which is an 8 day test to become a 4th dan in Soo Bahk Do.  I&#8217;m also testing for my Sa Bom which denotes a &#8220;master-level instructor&#8221;.  The dates are set for August 14-22 which is in less than two weeks!</p>
<p>So those two items have made blogging really hard to do lately.  My wife on the other hand has started her own blog about our family.  She&#8217;s done a really nice job.  I hope everyone will check it out and make a few comments (she loves comments).  <a href="http://familiacorrales.blogspot.com">http://familiacorrales.blogspot.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://corralesonline.com/news-update/2008/08/02/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Rails Conference 2008</title>
		<link>http://corralesonline.com/rails-conference-2008/2008/06/02/</link>
		<comments>http://corralesonline.com/rails-conference-2008/2008/06/02/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 19:38:46 +0000</pubDate>
		<dc:creator>brian.corrales</dc:creator>
		
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://corralesonline.com/rails-conference-2008/2008/06/02/</guid>
		<description><![CDATA[This past weekend I was in Portland, Oregon attending Rails Conference 2008.  It was a great event and I learned a lot.  The event lasted from Thursday to Sunday and I was able to attend quite a few tutorials, sessions, and presentations.  There were nearly 2000 rails developers in attendance!   I was impressed with the [...]]]></description>
			<content:encoded><![CDATA[<p>This past weekend I was in Portland, Oregon attending <a href="http://en.oreilly.com/rails2008">Rails Conference 2008</a>.  It was a great event and I learned a lot.  The event lasted from Thursday to Sunday and I was able to attend quite a few tutorials, sessions, and presentations.  There were nearly 2000 rails developers in attendance!   I was impressed with the Conference Center and the catered meals that were provided.  I thought the event was very organized.</p>
<p>What really stood out for me was the presentation on Rails 2.1 which was made available over the weekend.  Rails 2.1 has a lot of great new features including better caching, gem dependencies, and time zone support.  One new addition that really struck my attention was versioned migrations.  A time stamp will now be at the beginning of the migration filename.  Having version control to my migrations will save me a lot of headaches.</p>
<p>Now you can do this:</p>
<pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }">script/generate migration one<tt>
</tt>      create  db/migrate/20080402122512_one.rb</pre>
<p>The number at the end is a time stamp.  You can then retrack your steps by typing:</p>
<pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }">rake db:migrate:up VERSION=20080402122512</pre>
<p>One other cool addition is the modification to ActiveRecord.  Say you wanted to find all your blog posts.  The command would be Post.find(:all).  With Rails 2.1, we&#8217;ll be able to simply write Post.all and Post.first.  Seems pretty intuitive.</p>
<p>I know it&#8217;ll probably take a little bit of work to upgrade my applications, but you gotta hand it to the Rails Team.  Version 2.1 is awesome!</p>
<pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }"></pre>
]]></content:encoded>
			<wfw:commentRss>http://corralesonline.com/rails-conference-2008/2008/06/02/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Jury Duty SCAM!</title>
		<link>http://corralesonline.com/jury-duty-scam/2008/03/14/</link>
		<comments>http://corralesonline.com/jury-duty-scam/2008/03/14/#comments</comments>
		<pubDate>Fri, 14 Mar 2008 15:42:28 +0000</pubDate>
		<dc:creator>brian.corrales</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://corralesonline.com/jury-duty-scam/2008/03/14/</guid>
		<description><![CDATA[A new type of scam is running through the U.S. and people are actually falling for it.  Read below:
Ricki Brown
Control Specialist
Willingboro PDC
Ext. 2045
JURY DUTY SCAM:
This has been verified by the FBI (their link is also included below).
Please pass this on to everyone in your email address book.
It is spreading fast so be prepared should you [...]]]></description>
			<content:encoded><![CDATA[<p>A new type of scam is running through the U.S. and people are actually falling for it.  Read below:</p>
<blockquote><p>Ricki Brown<br />
Control Specialist<br />
Willingboro PDC<br />
Ext. 2045<br />
JURY DUTY SCAM:</p>
<p>This has been verified by the FBI (their link is also included below).</p>
<p>Please pass this on to everyone in your email address book.</p>
<p>It is spreading fast so be prepared should you get this call. Most of us take those summons for jury duty seriously a new and ominous kind of fraud has surfaced.<br />
The caller claims to be a jury coordinator. If you protest that you never received a summons for jury duty, the scammer asks you for your Social Security number and date of birth so he or she can verify the information and cancel the arrest warrant.</p>
<p>Give out any of this information and bingo, your identity was just stolen.<br />
The fraud has been reported so far in 11 states, including New York , Oklahoma , Florida , Illinois , Texas and Colorado .</p>
<p>This (swindle) is particularly insidious because they use intimidation over the phone to try to bully people into giving information by pretending they are with the court system.<br />
The FBI and the Federal Court System have issued nationwide alerts on their web sites, warning consumers about the fraud.</p>
<p>Snopes site: says this is real fraud.</p>
<p><a href="http://www.snopes.com/crime/fraud/juryduty.asp" set="yes" linkindex="29" target="_blank">http://www.snopes.com/crime/fraud/juryduty.asp</a>&lt;http://www.snopes.com/crime/fraud/juryduty.asp&gt;;</p>
<p>FBI site: warns about the fraud.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://corralesonline.com/jury-duty-scam/2008/03/14/feed/</wfw:commentRss>
		</item>
		<item>
		<title>RAILS 2.0 Sessions</title>
		<link>http://corralesonline.com/rails-20-sessions/2008/02/13/</link>
		<comments>http://corralesonline.com/rails-20-sessions/2008/02/13/#comments</comments>
		<pubDate>Wed, 13 Feb 2008 19:13:12 +0000</pubDate>
		<dc:creator>brian.corrales</dc:creator>
		
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://corralesonline.com/rails-20-sessions/2008/02/13/</guid>
		<description><![CDATA[So I just updated a project to RAILS 2.0.  There&#8217;s been a few stumbles on the way, but the main issue I came across was Sessions.  It seems that the RAILS team has decided to move away from file-system sessions to cookie sessions.  Cookies seem to be much faster than the old [...]]]></description>
			<content:encoded><![CDATA[<p>So I just updated a project to RAILS 2.0.  There&#8217;s been a few stumbles on the way, but the main issue I came across was Sessions.  It seems that the RAILS team has decided to move away from file-system sessions to cookie sessions.  Cookies seem to be much faster than the old file system.  The only draw back is that it forces you to utilize session variables as intended&#8230;sparingly.  Cookies are generally limited to only 4K.  There really isn&#8217;t any need for you to ever store more than this in your session anyway.  It&#8217;s just not considered best-practices.</p>
<p>So if you are upgrading to Rails 2.0 and you get some errors, such as a 500 Error, be sure to check how you are handling sessions.  Regardless, you&#8217;ll need to add the following code into your environments.rb file (don&#8217;t forget to restart your server):</p>
<blockquote>
<pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }">config.action_controller.session = { <tt>
</tt>  <span class="sy">:session_key</span> =&gt; <span class="s"><span class="dl">&#8216;</span><span class="k">_my_app_session</span><span class="dl">&#8216;</span></span>, <tt>
</tt>  <span class="sy">:secret</span>      =&gt; <span class="s"><span class="dl">&#8216;</span><span class="k">hashed_key_of_at_least_30_characters</span><span class="dl">&#8216;</span></span> <tt>
</tt>}</pre>
<pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }"></pre>
</blockquote>
<p>If you want to read the documentation, here&#8217;s the link:  <a href="http://caboo.se/doc/classes/CGI/Session/CookieStore.html">http://caboo.se/doc/classes/CGI/Session/CookieStore.html</a> .</p>
<p>For a really good discussion on Sessions and RAILS, go <a href="http://errtheblog.com/posts/22-sessions-n-such">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://corralesonline.com/rails-20-sessions/2008/02/13/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ordering Eager-loaded Data</title>
		<link>http://corralesonline.com/ordering-eager-loaded-data/2008/02/01/</link>
		<comments>http://corralesonline.com/ordering-eager-loaded-data/2008/02/01/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 16:49:30 +0000</pubDate>
		<dc:creator>brian.corrales</dc:creator>
		
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://corralesonline.com/ordering-eager-loaded-data/2008/02/01/</guid>
		<description><![CDATA[If you are using Active Record with Ruby on Rails, I&#8217;m sure you&#8217;re familiar with the :include symbol for the find method.  Here&#8217;s an example where we have a category structure of Categories -&#62; SubCategories:
@category = Category.find(params[:id], :include =&#62; [:sub_categories])
This will find the category with id = params[:id] and will eager load all of [...]]]></description>
			<content:encoded><![CDATA[<p style="margin-bottom: 0in">If you are using Active Record with Ruby on Rails, I&#8217;m sure you&#8217;re familiar with the :include symbol for the find method.  Here&#8217;s an example where we have a category structure of Categories -&gt; SubCategories:</p>
<p style="margin-bottom: 0in">@category = Category.find(params[:id], :include =&gt; [:sub_categories])</p>
<p style="margin-bottom: 0in">This will find the category with id = params[:id] and will eager load all of the related sub categories.  This way we only need to run one query, rather than two.  We could also do this</p>
<p style="margin-bottom: 0in">@category = Category.find(params[:id], :include =&gt; [:sub_categories, {:sub_categories =&gt; :products }])</p>
<p style="margin-bottom: 0in">Now we are going down another level and retrieving all products related to each sub_category.  Unfortunately, there is no way to go travel further into  your data model with the :includes symbol.  If anyone has a good approach, I&#8217;m all ears.</p>
<p style="margin-bottom: 0in">The problem I&#8217;ve run into is that my Category model has  has_many :sub_categories, :order =&gt; &#8216;rank asc&#8217;.  When I include :sub_categories, Active Record does not recognize my ordering.  This caused me quite a few headaches until I came across this in the docs:</p>
<p style="margin-bottom: 0in">&#8221; Since the eager loading pulls from multiple tables, you‘ll have to disambiguate any column references in both conditions and orders. So :order =&gt; &#8220;posts.id DESC&#8221; will work while :order =&gt; &#8220;id DESC&#8221; will not. Because eager loading generates the SELECT statement too, the :select option is ignored.&#8221;  Here&#8217;s the <a href="http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#M000530" target="_blank">link</a>:</p>
<p style="margin-bottom: 0in">So the best approach would be @category = Category.find(params[:id], :include =&gt; [:sub_categories, {:sub_categories =&gt; :products}], :order =&gt; &#8220;categories.rank, sub_categories.rank&#8221;)</p>
<p style="margin-bottom: 0in">This will order your categories and sub categories.  Hopefully someone finds this useful.  If you have come up with a better approach, please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://corralesonline.com/ordering-eager-loaded-data/2008/02/01/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New Blog</title>
		<link>http://corralesonline.com/new-blog/2008/01/26/</link>
		<comments>http://corralesonline.com/new-blog/2008/01/26/#comments</comments>
		<pubDate>Sun, 27 Jan 2008 04:23:31 +0000</pubDate>
		<dc:creator>brian.corrales</dc:creator>
		
		<category><![CDATA[Martial Arts]]></category>

		<guid isPermaLink="false">http://corralesonline.com/new-blog/2008/01/26/</guid>
		<description><![CDATA[I&#8217;ve finally decided that my blog is too disjointed.  If you are interested in my martial arts related posts, please go to http://blog.wasatchmartialarts.com.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally decided that my blog is too disjointed.  If you are interested in my martial arts related posts, please go to <a href="http://blog.wasatchmartialarts.com">http://blog.wasatchmartialarts.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://corralesonline.com/new-blog/2008/01/26/feed/</wfw:commentRss>
		</item>
		<item>
		<title>RMagick Errors with Windows</title>
		<link>http://corralesonline.com/rmagick-errors-with-windows/2007/12/24/</link>
		<comments>http://corralesonline.com/rmagick-errors-with-windows/2007/12/24/#comments</comments>
		<pubDate>Mon, 24 Dec 2007 18:50:20 +0000</pubDate>
		<dc:creator>brian.corrales</dc:creator>
		
		<category><![CDATA[Ruby on Rails]]></category>

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

		<guid isPermaLink="false">http://corralesonline.com/rmagick-errors-with-windows/2007/12/24/</guid>
		<description><![CDATA[If you are experiencing an unusual ruby error after installing RMagick, before digging too deep, try not only rebooting your web server, but Windows itself.  That fixes a ton of possible errors that could result from a RMagick installation. The error I had was RMagick.so not found.
]]></description>
			<content:encoded><![CDATA[<p>If you are experiencing an unusual ruby error after installing RMagick, before digging too deep, try not only rebooting your web server, but Windows itself.  That fixes a ton of possible errors that could result from a RMagick installation. The error I had was RMagick.so not found.</p>
]]></content:encoded>
			<wfw:commentRss>http://corralesonline.com/rmagick-errors-with-windows/2007/12/24/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Star Wars Rocket Launch</title>
		<link>http://corralesonline.com/star-wars-rocket-launch/2007/12/12/</link>
		<comments>http://corralesonline.com/star-wars-rocket-launch/2007/12/12/#comments</comments>
		<pubDate>Wed, 12 Dec 2007 17:05:49 +0000</pubDate>
		<dc:creator>brian.corrales</dc:creator>
		
		<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://corralesonline.com/star-wars-rocket-launch/2007/12/12/</guid>
		<description><![CDATA[Check this out.  A real X-Wing Fighter straight out of Star Wars has been built.  Pretty cool launch.  Not sure if I&#8217;d spend $5000 on it though&#8230;
 
]]></description>
			<content:encoded><![CDATA[<p>Check this out.  A real X-Wing Fighter straight out of Star Wars has been built.  Pretty cool launch.  Not sure if I&#8217;d spend $5000 on it though&#8230;</p>
<p><!-- start insertion by YouTube Brackets, robertbuzink.nl --><span class="youtube"><object width="425" height="350" type="application/x-shockwave-flash" data="http://www.youtube.com/v/CGvMVn38Eu8"> <param name="movie" value="http://www.youtube.com/v/CGvMVn38Eu8" /><param name="wmode" value="transparent" /></object></span><!-- end Youtube Brackets insertion --></p>
]]></content:encoded>
			<wfw:commentRss>http://corralesonline.com/star-wars-rocket-launch/2007/12/12/feed/</wfw:commentRss>
		</item>
		<item>
		<title>NEW Tiger Tots Class</title>
		<link>http://corralesonline.com/new-tiger-tots-class/2007/11/27/</link>
		<comments>http://corralesonline.com/new-tiger-tots-class/2007/11/27/#comments</comments>
		<pubDate>Wed, 28 Nov 2007 00:17:41 +0000</pubDate>
		<dc:creator>brian.corrales</dc:creator>
		
		<category><![CDATA[Martial Arts]]></category>

		<guid isPermaLink="false">http://corralesonline.com/new-tiger-tots-class/2007/11/27/</guid>
		<description><![CDATA[Finally, Wasatch Martial Arts will have a Tiger Tots class designed specifically for kids ages 4 to 6.  It&#8217;s a fun program designed to teach young kids discipline, respect, coordination, and self confidence.  The class will prepare them to enter the older kids class later on.  If you would like to register [...]]]></description>
			<content:encoded><![CDATA[<p>Finally, Wasatch Martial Arts will have a Tiger Tots class designed specifically for kids ages 4 to 6.  It&#8217;s a fun program designed to teach young kids discipline, respect, coordination, and self confidence.  The class will prepare them to enter the older kids class later on.  If you would like to register your child click <a href="http://wasatchmartialarts.com/students/register">here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://corralesonline.com/new-tiger-tots-class/2007/11/27/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hu Ri - Soo Bahk Do&#8217;s Unique Use of Hip</title>
		<link>http://corralesonline.com/hu-ri-soo-bahk-dos-unique-use-of-hip/2007/11/17/</link>
		<comments>http://corralesonline.com/hu-ri-soo-bahk-dos-unique-use-of-hip/2007/11/17/#comments</comments>
		<pubDate>Sun, 18 Nov 2007 02:30:37 +0000</pubDate>
		<dc:creator>brian.corrales</dc:creator>
		
		<category><![CDATA[Martial Arts]]></category>

		<guid isPermaLink="false">http://corralesonline.com/hu-ri-soo-bahk-dos-unique-use-of-hip/2007/11/17/</guid>
		<description><![CDATA[I am often asked what makes Soo Bahk Do unique from other martial arts systems.  Though there are many facets of Soo Bahk Do that differentiate it from other systems, possibly the characteristic that has had more impact on the martial arts community is our unique method of hip twisting and thrusting.  Here is a [...]]]></description>
			<content:encoded><![CDATA[<p>I am often asked what makes Soo Bahk Do unique from other martial arts systems.  Though there are many facets of Soo Bahk Do that differentiate it from other systems, possibly the characteristic that has had more impact on the martial arts community is our unique method of hip twisting and thrusting.  Here is a small video clip of the successor of the Moo Duk Kwan founder, Hyun Chul Hwang Kwan Jang Nim as he explains the physics behind our unique use of hip:</p>
<p><a href="http://video.google.com/videoplay?docid=574642664069729022"><img width="128" height="96" alt="Use of Hip" id="image68" src="http://corralesonline.com/wp-content/uploads/2007/11/physics_sbd.thumbnail.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://corralesonline.com/hu-ri-soo-bahk-dos-unique-use-of-hip/2007/11/17/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
