<?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>On The Mark &#187; Programming</title>
	<atom:link href="http://markmonica.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://markmonica.com</link>
	<description>IT blogging by Mark Monica</description>
	<lastBuildDate>Wed, 25 Apr 2012 15:06:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Code generation for property &#8216;Image&#8217; failed</title>
		<link>http://markmonica.com/2012/04/25/code-generation-for-property-image-failed/</link>
		<comments>http://markmonica.com/2012/04/25/code-generation-for-property-image-failed/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 15:02:05 +0000</pubDate>
		<dc:creator>Mark Monica</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[VB.net]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://markmonica.com/?p=178</guid>
		<description><![CDATA[<p>Posted in <a href="http://markmonica.com/category/programming/" title="Programming">Programming</a><a href="http://markmonica.com/category/software/" title="Software">Software</a><a href="http://markmonica.com/category/programming/vb-net/" title="VB.net">VB.net</a><a href="http://markmonica.com/category/programming/visual-studio/" title="Visual Studio">Visual Studio</a></p>The Problem After finally making the jump from Visual Studio 2008 to Visual Studio 2010, a project using Infragistics NetAdvantage 2008.3 started throwing the &#8220;Code generation for property &#8216;Image&#8217; failed&#8221; error in Visual Studio 2010. The NetAdvantage incompatibility with Visual Studio 2010 appears to be related to Windows Forms and making any changes to the image of [...]]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://markmonica.com/category/programming/" title="Programming">Programming</a><a href="http://markmonica.com/category/software/" title="Software">Software</a><a href="http://markmonica.com/category/programming/vb-net/" title="VB.net">VB.net</a><a href="http://markmonica.com/category/programming/visual-studio/" title="Visual Studio">Visual Studio</a></p><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><h2>The Problem</h2>
<p>After finally making the jump from Visual Studio 2008 to Visual Studio 2010, a project using Infragistics NetAdvantage 2008.3 started throwing the &#8220;Code generation for property &#8216;Image&#8217; failed&#8221; error in Visual Studio 2010.</p>
<p><em><strong>The NetAdvantage incompatibility with Visual Studio 2010 appears to be related to Windows Forms and making any changes to the image of the form.</strong></em></p>
<h2>The Fix</h2>
<p>Infragistics has reported an error in some versions of it&#8217;s product with Visual Studio 2010.  It appears that NetAdvantage 2008 is not fully compatible and no patch has been provided.  Luckily I still had an upgrade for NetAdvantage 2009.1, of which after being patched / updated to the latest build works.  The standard install of Infragistics 2009.1 or 2009.2 does not work and must be patched / updated.  Check with Infragistics or download the patch directly from them from your downloads area.</p>
<h2>Compatibility</h2>
<p>NetAdvantage WinForms compatibility with Visual Studio 2010</p>
<ul>
<li><strong>NetAdvantage 2008.x</strong> and previous versions &#8211; Not fully compatible, see error above</li>
<li><strong>NetAdvantage 2009.1 <span style="text-decoration: underline;">Unpatched</span></strong>  - Not fully compatible, see error above</li>
<li><strong>NetAdvantage 2009.1 <span style="text-decoration: underline;">Patched to 9.1 2094</span></strong>  &#8211; Compatible, fixes above error</li>
<li><strong>NetAdvantage 2009.2 <span style="text-decoration: underline;">Unpatched</span></strong> - Not fully compatible, see error above</li>
<li><strong>NetAdvantage 2009.2 <span style="text-decoration: underline;">Patched to 9.2 2083</span></strong> - Compatible, fixes above error</li>
<li>&gt; <strong>NetAdvantage 2009.2 &#8211; </strong>Compatible</li>
</ul>
<h2>Credits</h2>
<p>Original credit for solving this goes back to an Infragistics employee in their forums:</p>
<p><a href="http://blogs.infragistics.com/forums/t/41560.aspx?PageIndex=2">http://blogs.infragistics.com/forums/t/41560.aspx?PageIndex=2</a></p>
<p>I&#8217;ve tested their solution with my project and reflected the results above.  As always, back up your solution before making changes!</p>
<div class="shr-publisher-178"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://markmonica.com/2012/04/25/code-generation-for-property-image-failed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To: SQL Server Reporting Date Formating</title>
		<link>http://markmonica.com/2010/11/15/how-to-sql-server-reporting-date-formating/</link>
		<comments>http://markmonica.com/2010/11/15/how-to-sql-server-reporting-date-formating/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 19:59:59 +0000</pubDate>
		<dc:creator>Mark Monica</dc:creator>
				<category><![CDATA[Reporting]]></category>

		<guid isPermaLink="false">http://markmonica.com/?p=138</guid>
		<description><![CDATA[<p>Posted in <a href="http://markmonica.com/category/programming/sql/reporting/" title="Reporting">Reporting</a></p>To select a date format, wrap your field value in a format statement = Format(Fields!DateFieldToFormat.Value,&#8221;M/d/yyyy&#8221;) It is as simple as that!]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://markmonica.com/category/programming/sql/reporting/" title="Reporting">Reporting</a></p><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>To select a date format, wrap your field value in a format statement</p>
<p><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; line-height: 18px; font-size: 12px; white-space: pre;">= Format(Fields!DateFieldToFormat.Value,&#8221;M/d/yyyy&#8221;)</span></p>
<p>It is as simple as that!</p>
<div class="shr-publisher-138"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://markmonica.com/2010/11/15/how-to-sql-server-reporting-date-formating/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.NET Framework execution was aborted by escalation policy because of out of memory.</title>
		<link>http://markmonica.com/2010/11/15/net-framework-execution-was-aborted-by-escalation-policy-because-of-out-of-memory/</link>
		<comments>http://markmonica.com/2010/11/15/net-framework-execution-was-aborted-by-escalation-policy-because-of-out-of-memory/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 15:43:51 +0000</pubDate>
		<dc:creator>Mark Monica</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://markmonica.com/?p=118</guid>
		<description><![CDATA[<p>Posted in <a href="http://markmonica.com/category/programming/" title="Programming">Programming</a><a href="http://markmonica.com/category/programming/sql/" title="SQL">SQL</a></p>I recently created a SQL database that has to store files as blobs but before doing so a vb.net CLR function performs an MD5 has on the file to store with it.  Everything runs great typically except for on occassion a very large file (4MB) will come along and blow the following error, &#8220;.NET Framework [...]]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://markmonica.com/category/programming/" title="Programming">Programming</a><a href="http://markmonica.com/category/programming/sql/" title="SQL">SQL</a></p><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I recently created a SQL database that has to store files as blobs but before doing so a vb.net CLR function performs an MD5 has on the file to store with it.  Everything runs great typically except for on occassion a very large file (4MB) will come along and blow the following error, &#8220;<em>.NET Framework execution was aborted by escalation policy because of out of memory</em>&#8220;.</p>
<p>To date I&#8217;ve tried several settings on SQL Server (2005) unsuccessfully so for now the only way I&#8217;ve been able to get around this is to run this SQL command:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">DBCC FREESYSTEMCACHE <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'ALL'</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>Running the above SQL command allowed memory to be cleared so the file could be loaded.</p>
<p>Previous research has shown possible fixes based around <em><strong>MemToLeave</strong></em> setting of SQL Server which appears to be a major undertaking!</p>
<div class="shr-publisher-118"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://markmonica.com/2010/11/15/net-framework-execution-was-aborted-by-escalation-policy-because-of-out-of-memory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Query: Determine view or stored procedures using tables, columns, functions, etc</title>
		<link>http://markmonica.com/2010/09/17/sql-query-determine-all-view-using-tables-columns-functions-etc/</link>
		<comments>http://markmonica.com/2010/09/17/sql-query-determine-all-view-using-tables-columns-functions-etc/#comments</comments>
		<pubDate>Fri, 17 Sep 2010 19:47:46 +0000</pubDate>
		<dc:creator>Mark Monica</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://markmonica.com/?p=107</guid>
		<description><![CDATA[<p>Posted in <a href="http://markmonica.com/category/programming/sql/" title="SQL">SQL</a></p>On occasion it is handy to have a SQL snippet to find SQL views in a database that are using a particular table, column, function, or other SQL.  Fortunately SQL Server offers several information schema views to help out. Using the system view INFORMATION_SCHEMA.VIEWS you can query the views definition (think the SQL you used [...]]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://markmonica.com/category/programming/sql/" title="SQL">SQL</a></p><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>On occasion it is handy to have a SQL snippet to find SQL views in a database that are using a particular table, column, function, or other SQL.  Fortunately SQL Server offers several information schema views to help out.</p>
<p>Using the system view <em><span style="color: #0000ff;">INFORMATION_SCHEMA.VIEWS</span></em> you can query the views definition (think the SQL you used to create the view).  It is as simple as searching the system views <em><span style="color: #0000ff;">VIEW_DEFINITION</span></em> column.  See the example below:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span>     <span style="color: #993333; font-weight: bold;">TABLE_NAME</span>
<span style="color: #993333; font-weight: bold;">FROM</span>         INFORMATION_SCHEMA<span style="color: #66cc66;">.</span>VIEWS
<span style="color: #993333; font-weight: bold;">WHERE</span> VIEW_DEFINITION <span style="color: #993333; font-weight: bold;">LIKE</span> <span style="color: #ff0000;">'%search criteria%'</span></pre></div></div>

<p>Similarly you can search stored procedures using the example below:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span>     ROUTINE_NAME 
<span style="color: #993333; font-weight: bold;">FROM</span>         INFORMATION_SCHEMA<span style="color: #66cc66;">.</span>ROUTINES 
<span style="color: #993333; font-weight: bold;">WHERE</span> ROUTINE_DEFINITION <span style="color: #993333; font-weight: bold;">LIKE</span> <span style="color: #ff0000;">'%search criteria%'</span></pre></div></div>

<p> </p>
<p><em>Applies to: MS SQL Server 2005</em></p>
<div class="shr-publisher-107"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://markmonica.com/2010/09/17/sql-query-determine-all-view-using-tables-columns-functions-etc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Possible VB2008 BUG: My.User.IsInRole (When UAC ON)</title>
		<link>http://markmonica.com/2009/10/29/possible-vb2008-bug-my-user-isinrole-when-uac-on/</link>
		<comments>http://markmonica.com/2009/10/29/possible-vb2008-bug-my-user-isinrole-when-uac-on/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 18:31:25 +0000</pubDate>
		<dc:creator>Mark Monica</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[VB.net]]></category>
		<category><![CDATA[My.User.IsInRole]]></category>
		<category><![CDATA[UAC]]></category>

		<guid isPermaLink="false">http://markmonica.com/2009/10/29/possible-vb2008-bug-my-user-isinrole-when-uac-on/</guid>
		<description><![CDATA[<p>Posted in <a href="http://markmonica.com/category/programming/" title="Programming">Programming</a><a href="http://markmonica.com/category/programming/vb-net/" title="VB.net">VB.net</a></p>Scenario &#160; On machines where Vista/W7 is installed there appears to be an issue when checking to see if a user is in a role.&#160; User Account Control (UAC) must be on to reproduce the issue.&#160; The result is that the value returned is always FALSE even when the user does belong to the group. [...]]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://markmonica.com/category/programming/" title="Programming">Programming</a><a href="http://markmonica.com/category/programming/vb-net/" title="VB.net">VB.net</a></p><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><h3>Scenario</h3>
<p>&#160;</p>
<p>On machines where Vista/W7 is installed there appears to be an issue when checking to see if a user is in a role.&#160; User Account Control (UAC) must be on to reproduce the issue.&#160; The result is that the value returned is always FALSE even when the user does belong to the group.</p>
<p>&#160;</p>
<h3>Sample Code (UAC must be on to produce error)</h3>
<p>&#160;</p>
<p><font size="2" face="Courier New"><strong><em>If My.User.IsInRole(“My Domain\My Group”) Then</em></strong></font></p>
<p><font size="2" face="Courier New"><strong><em>&#160;&#160;&#160;&#160; Return True</em></strong></font></p>
<p><strong><em><font size="2" face="Courier New">Else</font></em></strong></p>
<p><font size="2" face="Courier New"><strong><em>&#160;&#160;&#160;&#160; Return False</em></strong></font></p>
<p><font size="2" face="Courier New"><strong><em>End If</em></strong></font></p>
<p><strong><em><font size="2" face="Courier New"></font></em></strong></p>
<h3>Workaround</h3>
<p>&#160;</p>
<p>To get around this I created a function using other .Net functions.</p>
<p><font size="2" face="Courier New"><em>Public Function IsInUserRole(ByVal RoleToFind As String) As Boolean </em></font></p>
<p><font size="2" face="Courier New"><em>&#160;&#160;&#160; Dim id As WindowsIdentity = WindowsIdentity.GetCurrent       <br />&#160;&#160;&#160; Dim irc As IdentityReferenceCollection </em></font></p>
<p> <font size="2" face="Courier New"><em>&#160;&#160;&#160; &#8216; Gets a SID list of groups the user belongs to </em></font>
<p><font size="2" face="Courier New"><em>&#160;&#160;&#160; irc = id.Groups </em></font></p>
<p><font size="2" face="Courier New"><em>&#160;&#160;&#160; For Each ir As IdentityReference In irc </em></font></p>
<p><font size="2" face="Courier New"><em>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#8216; Need to convert the SID to plain english</em></font></p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:5606f97e-143e-4b45-b368-635a1acae258" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/VB.net" rel="tag">VB.net</a>,<a href="http://technorati.com/tags/My.User.IsInRole" rel="tag">My.User.IsInRole</a>,<a href="http://technorati.com/tags/UAC" rel="tag">UAC</a></div>
<p><font size="2" face="Courier New"><em>       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Dim act As NTAccount = CType(ir.Translate(Type.GetType(&quot;System.Security.Principal.NTAccount&quot;)), NTAccount) </em></font></p>
<p><font size="2" face="Courier New"><em>&#160;&#160;&#160;&#160;&#160;&#160;&#160; If act.Value = RoleToFind Then </em></font></p>
<p><font size="2" face="Courier New"><em>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Return True </em></font></p>
<p><font size="2" face="Courier New"><em>&#160;&#160;&#160;&#160;&#160;&#160;&#160; End If </em></font></p>
<p><font size="2" face="Courier New"><em>&#160;&#160;&#160; Next </em></font></p>
<p><font size="2" face="Courier New"><em>&#160;&#160;&#160; Return False </em></font></p>
<p><font size="2" face="Courier New"><em>End Function </em></font></p>
<div class="shr-publisher-74"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://markmonica.com/2009/10/29/possible-vb2008-bug-my-user-isinrole-when-uac-on/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RailsConf 09 &#8211; A-Z Intro To Rails Tutorial</title>
		<link>http://markmonica.com/2009/04/29/railsconf-09/</link>
		<comments>http://markmonica.com/2009/04/29/railsconf-09/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 12:56:16 +0000</pubDate>
		<dc:creator>Mark Monica</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby On Rails Blogs]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Rails Conf]]></category>
		<category><![CDATA[RailsConf09]]></category>

		<guid isPermaLink="false">http://markmonica.com/?p=66</guid>
		<description><![CDATA[<p>Posted in <a href="http://markmonica.com/category/programming/" title="Programming">Programming</a><a href="http://markmonica.com/category/programming/rorblogs/" title="Ruby On Rails Blogs">Ruby On Rails Blogs</a></p>Next week I&#8217;ll be attending RailsConf 09 in Las Vegas, NV. Since I&#8217;m still pretty new to Rails I&#8217;m taking one of the tutorial classes &#8220;A-Z Intro to Rails Tutorial&#8221; and the presenter has already provided info from his site. Cool!]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://markmonica.com/category/programming/" title="Programming">Programming</a><a href="http://markmonica.com/category/programming/rorblogs/" title="Ruby On Rails Blogs">Ruby On Rails Blogs</a></p><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Next week I&#8217;ll be attending RailsConf 09 in Las Vegas, NV.   Since I&#8217;m still pretty new to Rails I&#8217;m taking one of the tutorial classes &#8220;A-Z Intro to Rails Tutorial&#8221; and the presenter has already provided <a href="http://blog.adsdevshop.com/2009/04/22/getting-set-up-for-the-a-z-intro-to-rails-tutorial/" target="_blank">info from his site</a>.  Cool!</p>
<div class="shr-publisher-66"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://markmonica.com/2009/04/29/railsconf-09/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ROR Error: undefined method `include_root_in_json=&#8217; &#8230;</title>
		<link>http://markmonica.com/2009/03/06/error-undefined-method-include_root_in_json/</link>
		<comments>http://markmonica.com/2009/03/06/error-undefined-method-include_root_in_json/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 15:15:59 +0000</pubDate>
		<dc:creator>Mark Monica</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby On Rails Blogs]]></category>
		<category><![CDATA[Aptana Studio]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[Radrails]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Rails 2.0]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://markmonica.com/?p=40</guid>
		<description><![CDATA[<p>Posted in <a href="http://markmonica.com/category/programming/" title="Programming">Programming</a><a href="http://markmonica.com/category/programming/rorblogs/" title="Ruby On Rails Blogs">Ruby On Rails Blogs</a></p>Background Upon continuing a Ruby on Rails project after a few months delay, Aptana Studio&#8217;s RadRails editor installed some updates.  I suspect something that  changed in Rails itself (GEM update) caused the error I received. Error Message undefined method `include_root_in_json=&#8217; for ActiveRecord::Base:Class (NoMethodError) Solution To fix this error rename the config/initializers/new_rails_defaults.rb to config/initializers/new_rails_defaults.rb.bak. It appears [...]]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://markmonica.com/category/programming/" title="Programming">Programming</a><a href="http://markmonica.com/category/programming/rorblogs/" title="Ruby On Rails Blogs">Ruby On Rails Blogs</a></p><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><h3>Background</h3>
<p>Upon continuing a Ruby on Rails project after a few months delay, Aptana Studio&#8217;s RadRails editor installed some updates.  I suspect something that  changed in Rails itself (GEM update) caused the error I received.</p>
<h3>Error Message</h3>
<p><span style="color: #ff0000;"><em>undefined method `include_root_in_json=&#8217; for ActiveRecord::Base:Class (NoMethodError)</em></span></p>
<h3>Solution<em><br />
</em></h3>
<p>To fix this error rename the <span style="color: #008000;"><em>config/initializers/new_rails_defaults.rb</em></span> <strong>to</strong> <em><span style="color: #008000;">config/initializers/new_rails_defaults.rb.bak</span>.<br />
</em></p>
<p>It appears that the old code placed in these files no longer works with ROR 2.0.2.</p>
<blockquote><p># These settings change the behavior of Rails 2 apps and will be defaults<br />
# for Rails 3. You can remove this initializer when Rails 3 is released.</p>
<p># Include Active Record class name as root for JSON serialized output.<br />
ActiveRecord::Base.include_root_in_json = true</p>
<p># Store the full class name (including module namespace) in STI type column.<br />
ActiveRecord::Base.store_full_sti_class = true</p>
<p># Use ISO 8601 format for JSON serialized times and dates.<br />
ActiveSupport.use_standard_json_time_format = true</p>
<p># Don&#8217;t escape HTML entities in JSON, leave that for the #json_escape helper.<br />
# if you&#8217;re including raw json in an HTML page.<br />
ActiveSupport.escape_html_entities_in_json = false</p></blockquote>
<p>The file now created in a new project appears as follows:</p>
<blockquote><p># These settings change the behavior of Rails 2 apps and will be defaults<br />
# for Rails 3. You can remove this initializer when Rails 3 is released.</p>
<p>if defined?(ActiveRecord)<br />
# Include Active Record class name as root for JSON serialized output.<br />
ActiveRecord::Base.include_root_in_json = true</p>
<p># Store the full class name (including module namespace) in STI type column.<br />
ActiveRecord::Base.store_full_sti_class = true<br />
end</p>
<p># Use ISO 8601 format for JSON serialized times and dates.<br />
ActiveSupport.use_standard_json_time_format = true</p>
<p># Don&#8217;t escape HTML entities in JSON, leave that for the #json_escape helper.<br />
# if you&#8217;re including raw json in an HTML page.<br />
ActiveSupport.escape_html_entities_in_json = false</p></blockquote>
<h4>Footnotes</h4>
<p><em>See  <a href="http://www.hostingrails.com/1461/dbmigrate-undefined-method-include_root_in_json" target="_blank">http://www.hostingrails.com/1461/dbmigrate-undefined-method-include_root_in_json</a> for more help with this error.<br />
</em></p>
<div class="shr-publisher-40"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://markmonica.com/2009/03/06/error-undefined-method-include_root_in_json/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scientific Web Design: 23 Actionable Lessons from Eye-Tracking Studies</title>
		<link>http://markmonica.com/2007/11/15/scientific-web-design-23-actionable-lessons-from-eye-tracking-studies/</link>
		<comments>http://markmonica.com/2007/11/15/scientific-web-design-23-actionable-lessons-from-eye-tracking-studies/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 19:28:33 +0000</pubDate>
		<dc:creator>Mark Monica</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://markmonica.com/2007/11/15/scientific-web-design-23-actionable-lessons-from-eye-tracking-studies/</guid>
		<description><![CDATA[<p>Posted in <a href="http://markmonica.com/category/blogging/" title="Blogging">Blogging</a><a href="http://markmonica.com/category/programming/" title="Programming">Programming</a><a href="http://markmonica.com/category/software/" title="Software">Software</a></p>Eye-tracking studies are hot in the web design world, but it can be hard to figure out how to translate the results of these studies into real design implementations. These are a few tips from eye-tracking studies that you can use to improve the design of your blog or site. read more &#124; digg story]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://markmonica.com/category/blogging/" title="Blogging">Blogging</a><a href="http://markmonica.com/category/programming/" title="Programming">Programming</a><a href="http://markmonica.com/category/software/" title="Software">Software</a></p><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Eye-tracking studies are hot in the web design world, but it can be hard to figure out how to translate the results of these studies into real design implementations. These are a few tips from eye-tracking studies that you can use to improve the design of your blog or site.</p>
<p><a href="http://www.virtualhosting.com/blog/2007/scientific-web-design-23-actionable-lessons-from-eye-tracking-studies/">read more</a> | <a href="http://digg.com/design/Scientific_Web_Design_23_Actionable_Lessons_from_Eye_Tracking_Studies">digg story</a></p>
<div class="shr-publisher-21"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://markmonica.com/2007/11/15/scientific-web-design-23-actionable-lessons-from-eye-tracking-studies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

