<?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.cfwheels.org/~d/styles/itemcontent.css"?><rss xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:yt="http://gdata.youtube.com/schemas/2007" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
   <channel>
      <title>ColdFusion on Wheels</title>
      <description>A full stream of Wheels blog posts, articles, discussion, and screencasts.</description>
      <link>http://pipes.yahoo.com/pipes/pipe.info?_id=8701a02d9b531e30868b2616fa80eec8</link>
      <atom:link rel="next" href="http://pipes.yahoo.com/pipes/pipe.run?_id=8701a02d9b531e30868b2616fa80eec8&amp;_render=rss&amp;page=2" />
      <pubDate>Tue, 21 May 2013 16:56:16 +0000</pubDate>
      <generator>http://pipes.yahoo.com/pipes/</generator>
      <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.cfwheels.org/cfwheels" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="cfwheels" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
         <title>The Importance of URL Rewriting</title>
         <link>http://flexicons.blogspot.com/2013/05/the-importance-of-url-rewriting.html</link>
         <description>I am terrible about explaining things sometimes, and lately I've been working with a client on URL rewriting. I've done a lot of techno-speak but I'm not sure that I have really explained in laymans terms what URL rewriting is, and why it's important.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;What is it?&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;When you go to your About us page on your web site right now, if you typed in the whole address into your browser, it might look something like this:&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;u&gt;http://www.yoursite.com/index.cfm/sitepages/show/2&lt;/u&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;That URL doesn't tell us anything about the page, and it's very hard to remember. &lt;/div&gt;&lt;div class="MsoNormal"&gt;Wouldn't it be better to have that URL be this?&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;u&gt;http://www.yoursite.com/About-Us&lt;span style=""&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;That is URL rewriting. It's the process of making your page names descriptive, instead of cryptic.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;When we start rewriting those URL's, a great thing happens... you can now &lt;i&gt;anticipate&lt;/i&gt; what a page will be. &lt;/div&gt;&lt;div class="MsoNormal"&gt;Want to find out about services? My guess would be the URL would be:&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;u&gt;http://www.yoursite.com/services&lt;/u&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Want to go to the contact us page? My guess would be:&amp;nbsp;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;u&gt;http://www.yoursite.com/Contact-Us&lt;/u&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Best of all, those guesses would be right! So by rewriting the URL's, the first thing we've done is make those pages easy to remember. If I'm on my smart phone and don't want to have to go to the home page of your site, to get to your contact page, I can now easily remember how to get there. With so many people using the browsers on their phones, making those pages easy to get to is going to increase your traffic.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;But URL rewriting isn't just for people, it's for search engines too. &lt;/div&gt;&lt;div class="MsoNormal"&gt;Google and other search engines give your pages a "rank."&lt;span style=""&gt;&amp;nbsp; &lt;/span&gt;When you do a search, the pages with the highest rankings show up first. &lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;By making the name of the page descriptive of the content, your rank will improve, and therefore your pages will show up higher in searches. &lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;So hopefully that is a simple explanation of what URL rewriting is, and why it's so important. If you are serious about SEO, URL rewriting is a smart thing to do.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Implementing URL rewriting in CFWheels&lt;/b&gt;&lt;br /&gt;This is just how I do it in CFWheels. I'd really like to hear how others are accomplishing it to see if I can improve on the method.&lt;br /&gt;&lt;br /&gt;Let's create a hypothetical table called "sitepages."&lt;br /&gt;In that table, I create a field for the title of the page and a unique field for the "slug."&lt;br /&gt;&lt;br /&gt;In the sitepages model, I add a beforeSave callback.&lt;br /&gt;&amp;lt;!---Add this to the models init method---&amp;gt;&lt;br /&gt;&amp;lt;cfset beforeSave("checktheslug")&amp;gt;&lt;br /&gt;&lt;br /&gt;Then, I create the "checktheslug" function:&lt;br /&gt;&lt;br /&gt; If the user doesn't specify a slug, then the slug takes the title of the page, replaces spaces with hyphens, and then strips out any extraneous characters like quotation marks, exclamation points, etc.&lt;br /&gt;&lt;br /&gt;Then all I have to do is set up a route, and I'm in business:&lt;br /&gt;&amp;lt;!---Add this to the routes ---&amp;gt;&lt;br /&gt;addRoute(name="sitepages", pattern="pages/[slug]", controller="sitepages", action="show"); &lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfwheels/bloggers/~4/JE07sztLGfQ" height="1" width="1"/&gt;</description>
         <author>Cathy Shapiro</author>
         <guid isPermaLink="false">tag:blogger.com,1999:blog-140258686176088525.post-1512943589802362190</guid>
         <pubDate>Wed, 01 May 2013 12:37:00 +0000</pubDate>
      </item>
      <item>
         <title>Ron Black on Beginner Tutorial: Hello Database</title>
         <link>http://cfwheels.org/docs/chapter/beginner-tutorial-hello-database#comment-358</link>
         <description>&lt;p&gt;
				&lt;a rel="nofollow" target="_blank" href="http://cfwheels.org/docs/chapter/beginner-tutorial-hello-database#comment-358"&gt;Documentation Comment&lt;/a&gt;
				by Ron Black on
				&lt;a rel="nofollow" target="_blank" href="http://cfwheels.org/docs/chapter/beginner-tutorial-hello-database"&gt;Beginner Tutorial: Hello Database&lt;/a&gt;:
			&lt;/p&gt;
			&lt;p&gt;Be careful.&amp;nbsp;&amp;nbsp;When setting up a model(&amp;quot;xxx&amp;quot;).new().&amp;nbsp;&amp;nbsp;Make sure xxx does not already exist in the database under a different schema that the login id can see.&amp;nbsp;&amp;nbsp;I was using Oracle when I tried setting up the &amp;lt;cfset user = model(&amp;quot;user&amp;quot;).new()&amp;gt;.&amp;nbsp;&amp;nbsp;Well I kept getting an error about columns not existing.&amp;nbsp;&amp;nbsp;CFWheels must do a select column_name from all_tab_columns to build its list because my USERS table also exists in several other schemas and I was connecting to the one under my schema.&amp;nbsp;&amp;nbsp;Therefore it blew up looking for several columns that did not exist.&amp;nbsp;&amp;nbsp;Name your tables wisely. :-)&lt;/p&gt;</description>
         <guid isPermaLink="false">
			http://cfwheels.org/docs/chapter/beginner-tutorial-hello-database#comment-358
		</guid>
         <pubDate>Wed, 01 May 2013 11:05:52 +0000</pubDate>
      </item>
      <item>
         <title>Bernie on Form Helpers and Showing Errors</title>
         <link>http://cfwheels.org/docs/chapter/form-helpers-and-showing-errors#comment-357</link>
         <description>&lt;p&gt;
				&lt;a rel="nofollow" target="_blank" href="http://cfwheels.org/docs/chapter/form-helpers-and-showing-errors#comment-357"&gt;Documentation Comment&lt;/a&gt;
				by Bernie on
				&lt;a rel="nofollow" target="_blank" href="http://cfwheels.org/docs/chapter/form-helpers-and-showing-errors"&gt;Form Helpers and Showing Errors&lt;/a&gt;:
			&lt;/p&gt;
			&lt;p&gt;The example in Displaying a List of Model Validation Errors - suggests if the object.hasErrors() to use renderPage() to display the form again with the errors. However if you use queries to populate your form because renderPage() does not use the control file none of the queries will exist so you are forced to duplicate the control file queries in the view page. This is a hassle to say the least! Is there a better way so code doesn't have to be duplicated?&lt;/p&gt;</description>
         <guid isPermaLink="false">
			http://cfwheels.org/docs/chapter/form-helpers-and-showing-errors#comment-357
		</guid>
         <pubDate>Fri, 26 Apr 2013 15:04:48 +0000</pubDate>
      </item>
      <item>
         <title>Andy Bellenie to speak at Scotch on the Rocks 2013</title>
         <link>http://feeds.cfwheels.org/~r/cfwheels/blog/~3/PE8FWRG8WOE/</link>
         <description>Core team member Andy Bellenie is presenting at the Scotch on the Rocks conference this year, held 6-7 June in Edinburgh, Scotland. There&amp;#8217;s an great set of speakers lined up, including Ray Camden (Adobe), Luis Majano (Coldbox), Matt Gifford, Mike Henke, Bruce Lawson (Opera), Guust Nieuwenhuis and many more, not to mention Andy Allan and [...]</description>
         <guid isPermaLink="false">http://cfwheels.org/blog/?p=343</guid>
         <pubDate>Wed, 24 Apr 2013 15:15:04 +0000</pubDate>
         <content:encoded><![CDATA[<p>Core team member Andy Bellenie is presenting at the Scotch on the Rocks conference this year, held 6-7 June in Edinburgh, Scotland. </p>
<p>There&#8217;s an great set of speakers lined up, including Ray Camden (Adobe), Luis Majano (Coldbox), Matt Gifford, Mike Henke, Bruce Lawson (Opera), Guust Nieuwenhuis and many more, not to mention Andy Allan and the guys from Fuzzy Orange who make it all possible.</p>
<p>Andy will be presenting a talk on the use of mindfulness-meditation as a technique for both professional and personal development. He&#8217;ll also be flying the flag for CFWheels at the conference and will run a BOF session for newbies and pros alike.</p>
<p>More info on his talk can be found here: <a rel="nofollow" target="_blank" href="http://www.sotr.eu/index.cfm/main/presentation/by/andy_bellenie">http://www.sotr.eu/index.cfm/main/presentation/by/andy_bellenie</a></p>
<p>And the main conference site is here:<br />
<a rel="nofollow" target="_blank" href="http://www.sotr.eu/">http://www.sotr.eu/</a></p>
<img src="http://feeds.feedburner.com/~r/cfwheels/blog/~4/PE8FWRG8WOE" height="1" width="1"/>]]></content:encoded>
         <category>Community</category>
      </item>
      <item>
         <title>Bernie on Creating Records</title>
         <link>http://cfwheels.org/docs/chapter/creating-records#comment-356</link>
         <description>&lt;p&gt;
				&lt;a rel="nofollow" target="_blank" href="http://cfwheels.org/docs/chapter/creating-records#comment-356"&gt;Documentation Comment&lt;/a&gt;
				by Bernie on
				&lt;a rel="nofollow" target="_blank" href="http://cfwheels.org/docs/chapter/creating-records"&gt;Creating Records&lt;/a&gt;:
			&lt;/p&gt;
			&lt;p&gt;I added this code at the top of my layout.cfm file and it works fine now! (Already had the processing directive). Sin's remark about an .ini file threw me off. Anyway its all good.&lt;/p&gt;

&lt;p&gt;&amp;lt;cfprocessingdirective pageencoding=&amp;quot;UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;cfheader name=&amp;quot;Content-Type&amp;quot; value=&amp;quot;text/html&amp;quot; charset=&amp;quot;UTF-8&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;cfcontent type=&amp;quot;text/html; charset=UTF-8&amp;quot;&amp;gt;&lt;/p&gt;</description>
         <guid isPermaLink="false">
			http://cfwheels.org/docs/chapter/creating-records#comment-356
		</guid>
         <pubDate>Thu, 18 Apr 2013 11:04:15 +0000</pubDate>
      </item>
      <item>
         <title>Bernie on Creating Records</title>
         <link>http://cfwheels.org/docs/chapter/creating-records#comment-355</link>
         <description>&lt;p&gt;
				&lt;a rel="nofollow" target="_blank" href="http://cfwheels.org/docs/chapter/creating-records#comment-355"&gt;Documentation Comment&lt;/a&gt;
				by Bernie on
				&lt;a rel="nofollow" target="_blank" href="http://cfwheels.org/docs/chapter/creating-records"&gt;Creating Records&lt;/a&gt;:
			&lt;/p&gt;
			&lt;p&gt;Anyone care to expand on this answer please...&lt;/p&gt;

&lt;p&gt;&amp;quot;the problem is solved by append a few lines of character setting in my.ini&amp;quot;&lt;/p&gt;

&lt;p&gt;I need 8 languages in my sqlserver 2000 db. Datatype is nvarchar. I can paste directly in the cell via management studio but saving thru my application results in ???????.&lt;/p&gt;</description>
         <guid isPermaLink="false">
			http://cfwheels.org/docs/chapter/creating-records#comment-355
		</guid>
         <pubDate>Tue, 16 Apr 2013 06:04:28 +0000</pubDate>
      </item>
      <item>
         <title>ib on Installation</title>
         <link>http://cfwheels.org/docs/chapter/installation#comment-343</link>
         <description>&lt;p&gt;
				&lt;a rel="nofollow" target="_blank" href="http://cfwheels.org/docs/chapter/installation#comment-343"&gt;Documentation Comment&lt;/a&gt;
				by ib on
				&lt;a rel="nofollow" target="_blank" href="http://cfwheels.org/docs/chapter/installation"&gt;Installation&lt;/a&gt;:
			&lt;/p&gt;
			&lt;p&gt;The problem must of been something with the ColdFusion I was using.&amp;nbsp;&amp;nbsp;It was a fresh install of CF, so I must have misted something.&amp;nbsp;&amp;nbsp;Anyway, when I put the contents of the cfwheels zip file on an existing server, it worked as advertised.&amp;nbsp;&amp;nbsp;The server has a main site with a lot of sub-directories that are their own individual site, which have nothing to do with the main site except the root URL. For example: &lt;a rel="nofollow" target="_blank" href="http://www.mainsite.com/mysite/"&gt;http://www.mainsite.com/mysite/&lt;/a&gt;.&amp;nbsp;&amp;nbsp;I made the cfwheels its own sub-site, and everything worked perfectly.&amp;nbsp;&amp;nbsp;So the URL for the cfwheels site I created for this tutorial is &lt;a rel="nofollow" target="_blank" href="http://www.mainsite.com/cfwheels/"&gt;http://www.mainsite.com/cfwheels/&lt;/a&gt;.&lt;/p&gt;</description>
         <guid isPermaLink="false">
			http://cfwheels.org/docs/chapter/installation#comment-343
		</guid>
         <pubDate>Fri, 01 Mar 2013 11:03:01 +0000</pubDate>
      </item>
      <item>
         <title>CF Mitrah on Column Statistics</title>
         <link>http://cfwheels.org/docs/chapter/column-statistics#comment-342</link>
         <description>&lt;p&gt;
				&lt;a rel="nofollow" target="_blank" href="http://cfwheels.org/docs/chapter/column-statistics#comment-342"&gt;Documentation Comment&lt;/a&gt;
				by CF Mitrah on
				&lt;a rel="nofollow" target="_blank" href="http://cfwheels.org/docs/chapter/column-statistics"&gt;Column Statistics&lt;/a&gt;:
			&lt;/p&gt;
			&lt;p&gt;How can we add group by in count function? &lt;br /&gt;
ex. query :&lt;br /&gt;
select count(emp),dept from employee group by dept&lt;/p&gt;</description>
         <guid isPermaLink="false">
			http://cfwheels.org/docs/chapter/column-statistics#comment-342
		</guid>
         <pubDate>Thu, 21 Feb 2013 11:02:27 +0000</pubDate>
      </item>
      <item>
         <title>ib on Installation</title>
         <link>http://cfwheels.org/docs/chapter/installation#comment-341</link>
         <description>&lt;p&gt;
				&lt;a rel="nofollow" target="_blank" href="http://cfwheels.org/docs/chapter/installation#comment-341"&gt;Documentation Comment&lt;/a&gt;
				by ib on
				&lt;a rel="nofollow" target="_blank" href="http://cfwheels.org/docs/chapter/installation"&gt;Installation&lt;/a&gt;:
			&lt;/p&gt;
			&lt;p&gt;I am trying to install CF on Wheels for the first time.&amp;nbsp;&amp;nbsp;It did not work.&amp;nbsp;&amp;nbsp;Here is what I did.&amp;nbsp;&amp;nbsp;Please let me know what I am missing.&lt;/p&gt;

&lt;p&gt;1) I installed IIS7 on my Windows 7 Enterprise personal computer.&amp;nbsp;&amp;nbsp;When I go to &lt;a rel="nofollow" target="_blank" href="http://localhost/"&gt;http://localhost/&lt;/a&gt;&amp;nbsp;&amp;nbsp;I get the pretty IIS7 logo page.&amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;2) I then installed CF10.&amp;nbsp;&amp;nbsp;I made sure the CF Administrator worked, and the 4 default data sources checked out ok: cfartgallery, cfbookclub, cfcodeexplorer, and cfdocexample. &lt;/p&gt;

&lt;p&gt;3) I downloaded the cfwheels.1.1.8.zip file.&lt;/p&gt;

&lt;p&gt;4) I created a &amp;quot;wheels_site&amp;quot; directory under &amp;quot;C:&amp;#92;Inetpub&amp;#92;wwwroot&amp;quot;, so it looks like &amp;quot;C:&amp;#92;Inetpub&amp;#92;wwwroot&amp;#92;wheels_site&amp;quot;.&lt;/p&gt;

&lt;p&gt;5) I unzipped the &amp;quot;cfwheels.1.1.8.zip&amp;quot; file into the &amp;quot;C:&amp;#92;Inetpub&amp;#92;wwwroot&amp;#92;wheels_site&amp;quot; directory.&lt;/p&gt;

&lt;p&gt;6) I created a new site in IIS with the following settings:&lt;br /&gt;
- Site Name: Wheels Site&lt;br /&gt;
- Application Pool: Wheels Site&lt;br /&gt;
- Physical Path: C:&amp;#92;inetpub&amp;#92;wwwroot&amp;#92;mysite (I had to create a &amp;quot;mysite&amp;quot; directory.)&lt;br /&gt;
- Type: http&lt;br /&gt;
- IP Address: All Unassigned&lt;br /&gt;
- Port: 80&lt;br /&gt;
- Host Name: localhost&lt;/p&gt;

&lt;p&gt;7) I modified the config/settings.cfm file by un-remarking the line for set(dataSourceName=&amp;quot;&amp;quot;), and changed it to &amp;lt;cfset set(dataSourceName=&amp;quot;cfartgallery&amp;quot;)&amp;gt;.&lt;/p&gt;

&lt;p&gt;8) I then used IE8 to view the URL &amp;quot;&lt;a rel="nofollow" target="_blank" href="http://localhost/&amp;quot"&gt;http://localhost/&amp;quot&lt;/a&gt;;.&lt;/p&gt;

&lt;p&gt;I did not get a Wheel welcome page.&amp;nbsp;&amp;nbsp;Instead, I got the error message &amp;quot;HTTP Error 403.14 - Forbidden / The Web server is configured to not list the contents of this directory.&amp;quot;&amp;nbsp;&amp;nbsp;When I put in I got the error message &amp;quot;HTTP Error 404.0 - Not Found / The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.&amp;quot;&amp;nbsp;&amp;nbsp;I made sure &amp;quot;index.cfm&amp;quot; was a default document at the top of the list in IIS.&lt;/p&gt;

&lt;p&gt;Here is some additional information I received with the 404 error.&lt;br /&gt;
Module: IIS Web Core &lt;br /&gt;
Notification: MapRequestHandler &lt;br /&gt;
Handler: StaticFile &lt;br /&gt;
Error Code: 0x80070002 &lt;br /&gt;
Requested URL: &lt;a rel="nofollow" target="_blank" href="http://localhost:80/index.cfm"&gt;http://localhost:80/index.cfm&lt;/a&gt; &lt;br /&gt;
Physical Path: C:&amp;#92;inetpub&amp;#92;wwwroot&amp;#92;mysite&amp;#92;index.cfm &lt;br /&gt;
Logon Method: Anonymous &lt;br /&gt;
Logon User: Anonymous&lt;/p&gt;</description>
         <guid isPermaLink="false">
			http://cfwheels.org/docs/chapter/installation#comment-341
		</guid>
         <pubDate>Tue, 19 Feb 2013 13:02:37 +0000</pubDate>
      </item>
      <item>
         <title>jd on Beginner Tutorial: Hello Database</title>
         <link>http://cfwheels.org/docs/chapter/beginner-tutorial-hello-database#comment-340</link>
         <description>&lt;p&gt;
				&lt;a rel="nofollow" target="_blank" href="http://cfwheels.org/docs/chapter/beginner-tutorial-hello-database#comment-340"&gt;Documentation Comment&lt;/a&gt;
				by jd on
				&lt;a rel="nofollow" target="_blank" href="http://cfwheels.org/docs/chapter/beginner-tutorial-hello-database"&gt;Beginner Tutorial: Hello Database&lt;/a&gt;:
			&lt;/p&gt;
			&lt;p&gt;What if your application uses multiple datasources??&lt;/p&gt;</description>
         <guid isPermaLink="false">
			http://cfwheels.org/docs/chapter/beginner-tutorial-hello-database#comment-340
		</guid>
         <pubDate>Fri, 01 Feb 2013 14:02:24 +0000</pubDate>
      </item>
   </channel>
</rss><!-- fe3.yql.bf1.yahoo.com compressed/chunked Tue May 21 16:56:16 UTC 2013 -->
