<?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>Stillnet Studios</title>
	<atom:link href="http://www.stillnetstudios.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stillnetstudios.com</link>
	<description>Web development notes and commentary from Ryan Stille</description>
	<lastBuildDate>Sun, 28 Feb 2010 00:30:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ColdFusion 9 disabling bold text</title>
		<link>http://www.stillnetstudios.com/cf9-disable-bold-tex/</link>
		<comments>http://www.stillnetstudios.com/cf9-disable-bold-tex/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 02:45:00 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://www.stillnetstudios.com/?p=787</guid>
		<description><![CDATA[One of the problems I looked into this week was why some items on our site that used to be in bold were no longer displaying as such.  Viewing the source showed me that the text was indeed surrounded by &#60;strong&#62; tags. 
Using the awesome Firebug extension for Firefox, I could see that the [...]]]></description>
			<content:encoded><![CDATA[<p>One of the problems I looked into this week was why some items on our site that used to be in bold were no longer displaying as such.  Viewing the source showed me that the text was indeed surrounded by <code>&lt;strong&gt;</code> tags. </p>
<p>Using the awesome Firebug extension for Firefox, I could see that the ext-all.css file was disabling the font-weight on the strong tag.  This was quite surprising to me!</p>
<p>The ext-all.css file will automatically be included on your page whenever you use almost any of the UI features such as cfgrid, cflayout, etc.</p>
<p>You can easily reproduce the problem with this minimal code:</p>
<pre><code>&lt;cflayout type="tab"&gt;&lt;/cflayout&gt;
&lt;strong&gt;This should be bold but its not.&lt;/strong&gt;</code></pre>
<p>You can fix the problem by adding this to your site&#8217;s style sheet, if you have one:</p>
<p><code>strong { font-weight: bold; }</code></p>
<p>If you don&#8217;t use a separate style sheet you can just put it directly into your page like this:</p>
<pre><code>&lt;style type="text/css"&gt;
strong { font-weight: bold; }
&lt;/style&gt;</code></pre>
<p>Hopefully this can be fixed before 9.01 comes out.  I think its a pretty big deal, it disabled tons of bold content on our site.  A lot of our content is created using the FCK rich text editor, which uses strong tags to indicate bold.  I&#8217;ve file a bug report with Adobe, you can vote for this bug here:  <a href="http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=82156">http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=82156</a></p>
<p>After looking through the EXT documentation, I think this css originates with the EXT group.  But when Adobe repackages EXT into CF, they need to either override this style it or take it out of the css file completely.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stillnetstudios.com/cf9-disable-bold-tex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trying out the CFWheels framework</title>
		<link>http://www.stillnetstudios.com/playing-with-cfwheels/</link>
		<comments>http://www.stillnetstudios.com/playing-with-cfwheels/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 05:26:47 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.stillnetstudios.com/?p=770</guid>
		<description><![CDATA[A few weeks ago, the people at CFWheels announced a contest to get people to try out CFWheels. To enter the contest all you need to do is build a version of litepost in CFWheels.  Really all you need from the litepost project is the database.  Then just build some CRUD for the users, entries, comments, etc.  I've been wanting to learn more about this framework for a while so I thought this contest would be a good excuse to check it out.  The top 3 winners get Amazon gift cards.]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago, the people at CFWheels <a href="http://cfwheels.org/blog/index.cfm/2010/1/25/Wheels-LitePost-Contest--win-Amazon-Gift-Card">announced a contest</a> to get people to try out <a href="http://www.cfwheels.org">CFWheels</a>.  To enter the contest all you need to do is build a version of litepost in CFWheels.  If you haven&#8217;t heard of litepost, its a simple blogging app thats been used to demonstrate different ColdFusion frameworks.  Really all you need from the <a href="http://code.google.com/p/litepost/">litepost</a> project is the <a href="http://code.google.com/p/litepost/source/browse/trunk/db/blogTables.sql">database</a>.  Then just build some CRUD for the users, entries, comments, etc.  I&#8217;ve been wanting to learn more about this framework for a while so I thought this contest would be a good excuse to check it out.  The top 3 winners get Amazon gift cards.</p>
<p>So far I&#8217;ve found this to be a pretty neat framework.  I see a lot of similarity to Rails.  The <a href="http://cfwheels.org/docs">documentation</a> is very good.  The plugins are pretty neat, you just drop a zip file into your plugins directory and you can start using that plugin.</p>
<p>To start I downloaded cfwheels and setup my database.  I installed the <a href="http://scaffoldwheels.riaforge.org/">scaffolding plugin</a> and used that to generate my CRUD views, models and controllers.  Already I had the basics working!  I tried creating/listing/editing users and it worked great.<br />
<span id="more-770"></span><br />
After setting up the scaffolding, I needed to define table relationships (called <em>associations</em> in CFWheels), and add some drop down menus where the scaffolding had put text fields.</p>
<p>One thing I noticed fairly quickly was that the crud pages were kind of ugly.  I started to write some CSS to clean them up, but right away ran into trouble because the form inputs were nested inside the label tags like this:</p>
<pre><code>&lt;label for="name"&gt;Name:&lt;input name="name"&gt;&lt;/label&gt;</code></pre>
<p>I haven&#8217;t seen it done that way before, I usually have the label completely separate from the input like this:</p>
<pre><code>&lt;label for="name"&gt;Name:&lt;/label&gt;&lt;input name="name"&gt;</code></pre>
<p>For me at least, that makes it a lot easier to style.  That is also how the <a href="http://www.w3schools.com/tags/tag_label.asp">W3 demonstrates the tag</a>.  At first I thought this was a problem with the scaffolding plugin, but actually its CFWheels.  The scaffolding plugin just writes code like this:</p>
<p><code>#textField(objectName='user', property='username', label='Username')#</code></p>
<p>So its the built in textField() method that generates the code this way.  I found this is easy to fix though, you can add this additional attribute:</p>
<p><code>#textField(objectName='user', property='username', label='Username', labelPlacement='before')#</code></p>
<p>That will place the <code>&lt;label&gt;</code> tag before the form input, just how I like it.  I didn&#8217;t have to go add the attribute to all by edit pages, either, you can set it in once in your settings.cfm file like this:</p>
<p><code>&lt;cfset set(functionName="textField", labelPlacement="before")&gt;</code></p>
<p>But, you&#8217;ll need to do it for all your inputs, like this:</p>
<pre><code>&lt;cfset set(functionName="textField", labelPlacement="before")&gt;
&lt;cfset set(functionName="textArea", labelPlacement="before")&gt;
&lt;cfset set(functionName="select", labelPlacement="before")&gt;
etc.</code></pre>
<p>Next I removed the created and updated timestamp fields from the create and edit pages.  The scaffolding had put them on there but I want them to be updated automatically.  CFWheels supports this, if the fields are named createdAt and updatedAt.  Unfortunately the timestamp fields in the litepost database are not named like that.</p>
<p>After digging through the documentation a little I discovered you can tell cfwheels you are using differently named timestamp columns by putting lines like these in your settings.cfm file:</p>
<pre><code>&lt;cfset set(timeStampOnCreateProperty = "dateCreated")&gt;
&lt;cfset set(timeStampOnUpdateProperty = "dateUpdated")&gt;</code></pre>
<p>I tried that but had some problems.  When trying to create a new entry (a blog article) I got this error:</p>
<p><code>Error Executing Database Query.  Field 'dateCreated' doesn't have a default value</code>.</p>
<p>It didn&#8217;t seem like my timeStampOnCreateProperty() call was working.  I finally ended up renaming the fields in my database and related code.</p>
<p>Unfortunately, I still got an error:<br />
<code>Field 'updatedAt' doesn't have a default value</code></p>
<p>I was stuck on this for a while, but one of the guys behind the contest, <a href="http://www.henke.ws">Mike Henke</a> was nice enough to help (several times in fact).  He pointed out that the error was actually about the updatedAt column now, not about the createdAt field. Hmmm.  It would make sense that updatedAt would be null when the record is first created.  But looking at the database I could see that it didn&#8217;t allow nulls for the updated timestamp.  I changed the database to allow nulls and tried creating an entry again.  This time: Success!</p>
<p>Some other things I&#8217;ve gone through:</p>
<p>By default the textField() method will use the column name for the label.  So the page ends up looking like</p>
<p>Fname:<br />
<input>
<p>I would like it to use &#8220;First Name&#8221; for the label.  I found that you can specify a label using the <em>label</em> attribute (hey that makes sense!).</p>
<p><code>#textField(objectName='user', property='fname', label='First Name')#</code></p>
<p>I ran into a similar issue with the CFWheels validation code.  Validation is done in your model file like this:</p>
<p><code>validatesPresenceOf(properties="fname,lname,email,username,password")</code></p>
<p>This makes sure those fields are not blank.  If you leave fname blank for example, you&#8217;ll get this error &#8220;Fname can&#8217;t be empty&#8221;.  I didn&#8217;t find any easy way to specify the label.  I did find there was a way to specify a custom error message, so I was able to use that and call the validation method for every field:</p>
<pre><code>&lt;cfset validatesPresenceOf(properties="fname",message="First Name can't be empty")&gt;
&lt;cfset validatesPresenceOf(properties="lname",message="Last Name can't be empty")&gt;
etc.</code></pre>
<p>I thought it would be nice if I could specify just a label to use, something like this:</p>
<p><code>validatesPresenceOf(properties="fname:First Name,lname:Last Name,email,username,password")</code></p>
<p>Even better, what if you could define a column&#8217;s label in a central place?  Maybe in the settings file, similar to how you set other column properties.  Then it could automatically use the label everywhere, including the textField() calls. So instead of having to do this:</p>
<p><code>#textField(objectName='user', property='fname', label='First Name')#</code></p>
<p>You could just do this:</p>
<p><code>#textField(objectName='user', property='fname')#</code></p>
<p>And wheels would know what label to use for fname.  This would make it really easy to change labels across the whole site!</p>
<p>To wrap it up, I think this is a promising framework that is gaining popularity.  I&#8217;ve even seen some job postings mentioning cfwheels experience desired.  I&#8217;ve done a lot of work with Model Glue, and I find it to be very heavy on configuration.  I&#8217;d like to see some changes to MG to pick up some of the great things from CFWheels.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stillnetstudios.com/playing-with-cfwheels/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Wrapping tabs in ColdFusion 9</title>
		<link>http://www.stillnetstudios.com/wrapping-cflayout-tabs-cf9/</link>
		<comments>http://www.stillnetstudios.com/wrapping-cflayout-tabs-cf9/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 03:16:22 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://www.stillnetstudios.com/?p=716</guid>
		<description><![CDATA[A while back I wrote a post explaining how to wrap the tabs generated by the new cflayout tab in ColdFusion 8.
The tabs generated by ColdFusion 9 are completely different, since they use Ext version 3.  ColdFusion 8 used Ext 1.
The tabs in ColdFusion 9 do not wrap by default, but they do automatically [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I <a href="/wrapping-cflayout-tabs/">wrote a post</a> explaining how to wrap the tabs generated by the new cflayout tab in ColdFusion 8.</p>
<p>The tabs generated by ColdFusion 9 are completely different, since they use Ext version 3.  ColdFusion 8 used Ext 1.</p>
<p>The tabs in ColdFusion 9 do not wrap by default, but they do automatically add scroll controls so you can scroll through the long horizontal line of tabs.  If you&#8217;d rather have them wrap into multiple lines, this little bit of CSS will do it:</p>
<pre><code>.x-tab-panel ul.x-tab-strip {
    width: auto !important;
}</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.stillnetstudios.com/wrapping-cflayout-tabs-cf9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New member of Adobe Community Professionals &#8211; Me</title>
		<link>http://www.stillnetstudios.com/adobe-community-professionals-2010/</link>
		<comments>http://www.stillnetstudios.com/adobe-community-professionals-2010/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 02:54:55 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://www.stillnetstudios.com/?p=749</guid>
		<description><![CDATA[I just found out I was accepted into the Adobe Community Professionals program for 2010.  I hope I can be a good resource for the ColdFusion community.  I look forward to continuing to blog and discuss ColdFusion.  The CfObjective conference in Minneapolis is just a few months away.  I&#8217;ll be there, [...]]]></description>
			<content:encoded><![CDATA[<p>I just found out I was accepted into the Adobe Community Professionals program for 2010.  I hope I can be a good resource for the ColdFusion community.  I look forward to continuing to blog and discuss ColdFusion.  The CfObjective conference in Minneapolis is just a few months away.  I&#8217;ll be there, come say hello if you see me.</p>
<p>Here is the announcement <a href="http://lizfrederick.blogspot.com/2010/01/new-acps-for-2010.html">http://lizfrederick.blogspot.com/2010/01/new-acps-for-2010.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stillnetstudios.com/adobe-community-professionals-2010/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Making ColdFusion 9 tabs look similar to CF8 tabs</title>
		<link>http://www.stillnetstudios.com/make-cf9-tabs-look-like-cf8/</link>
		<comments>http://www.stillnetstudios.com/make-cf9-tabs-look-like-cf8/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 04:12:36 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://www.stillnetstudios.com/?p=722</guid>
		<description><![CDATA[One of the things I&#8217;ve noticed as I&#8217;ve been working on our ColdFusion 9 upgrade is that many of the UI components look different than they did in ColdFusion 8.  In many cases I&#8217;m sure this won&#8217;t be a problem.  But my user base is fairly picky, and I think the CF8 to [...]]]></description>
			<content:encoded><![CDATA[<p>One of the things I&#8217;ve noticed as I&#8217;ve been working on our ColdFusion 9 upgrade is that many of the UI components look different than they did in ColdFusion 8.  In many cases I&#8217;m sure this won&#8217;t be a problem.  But my user base is fairly picky, and I think the CF8 to CF9 transition should be seamless to them.  The tabs in CF9 look quite a bit different than they do in CF8.</p>
<p>Given this bit of code:</p>
<pre><code>&lt;cflayout name="tabtest" type="tab"&gt;
	&lt;cflayoutarea name="tab1" title="tab one"&gt;
		&lt;p&gt;this is tab number one.&lt;/p&gt;
	&lt;/cflayoutarea&gt;
	&lt;cflayoutarea name="tab2" title="tab two"&gt;
		&lt;p&gt;And here is tab two.&lt;/p&gt;
	&lt;/cflayoutarea&gt;
&lt;/cflayout&gt;</code></pre>
<p>ColdFusion 8 generates a set of tabs that look like this:<br />
<img src="http://www.stillnetstudios.com/wp-content/uploads/2010/01/cf8tabs.png" alt="ColdFusion8 tab example" title="ColdFusion8 tab example" width="325" height="81" class="alignnone size-full wp-image-736" /></p>
<p>Here is what that same code generates in ColdFusion 9.</p>
<p><img src="http://www.stillnetstudios.com/wp-content/uploads/2010/01/cf9tabs.png" alt="ColdFusion 9 tabs example" title="ColdFusion 9 tabs example" width="325" height="81" class="alignnone size-full wp-image-743" /></p>
<p>This is quite a bit different, and in our early user testing they liked the old look better.  So I came up with this CSS:</p>
<pre><code>div.x-tab-panel-header, ul.x-tab-strip-top {
    background-image: none;
    background-color: transparent;
    padding-bottom: 0px;
}

div.x-tab-panel-header {
	border: 0px;
}</code></pre>
<p>With that applied, the ColdFusion9 tabs come out like this:</p>
<p><img src="http://www.stillnetstudios.com/wp-content/uploads/2010/01/cf9tabs_with_css.png" alt="ColdFusion 9 tabs with CSS applied" title="ColdFusion 9 tabs with CSS applied" width="325" height="81" class="alignnone size-full wp-image-745" /></p>
<p>I still don&#8217;t like that in CF9 the tabs jump around as you select different tabs.  This happens because the current selected tab is indicated by a bold label.  The bold text takes up more room, so as you select different tabs everything gets shifted around.   This is especially odd when you are wrapping tabs &#8211; sometimes the wrap point changes when switching between tabs, so a whole tab will jump from one line to another.  I think this could be fixed, too, if you came up with a different way to indicate the current tab.  If someone figures this out and wants to send it to me I&#8217;d appreciate it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stillnetstudios.com/make-cf9-tabs-look-like-cf8/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Copying environment variables in Apache &#8211; solving the AUTH_USER Apache/IIS issue</title>
		<link>http://www.stillnetstudios.com/copying-env-variables-in-apache/</link>
		<comments>http://www.stillnetstudios.com/copying-env-variables-in-apache/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 21:50:27 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.stillnetstudios.com/?p=726</guid>
		<description><![CDATA[A friend asked me for some help the other day. At the place he works at they use IIS on their production servers, but each developer works locally using Apache.  Why use different webservers for production and development?  He said they do it because its easier to develop locally with Apache.  My [...]]]></description>
			<content:encoded><![CDATA[<p>A friend asked me for some help the other day. At the place he works at they use IIS on their production servers, but each developer works locally using Apache.  Why use different webservers for production and development?  He said they do it because its easier to develop locally with Apache.  My guess is its easier because you can run multiple sites at once with Apache.  With IIS on a desktop machine you can only run one site at a time.  I do the exact same thing at my job, actually.</p>
<p>Anyway, once in a while this causes issues.  In this case, there was code on the server that required a username and password in order to access the page.  The security was done at the web server level, aka &#8220;HTTP authentication&#8221;, which causes your browser to prompt you for a username and password. These credentials then get sent along in the request headers (its actually a little more complicated than that but I won&#8217;t get into that here).  After authenticating, the username is available to ColdFusion as a CGI variable &#8211; CGI.REMOTE_USER.</p>
<p>When using IIS, that value is <em>also</em> available as CGI.<strong>AUTH_USER</strong>.  In all CGI variable specs I could find, they all reference REMOTE_USER, not AUTH_USER, I&#8217;m not sure when AUTH_USER started to be used.  Anyway, this ColdFusion code running on the IIS server would look to the CGI.AUTH_USER variable and display some things differently depending on who the user was.</p>
<p>This posed a problem when trying to run this code locally under apache.  The CGI.AUTH_USER variable did exist, but it was always blank.  One could change the code to use the more multi-platform friendly &#8220;REMOTE_USER&#8221;, but sometimes there are hurdles to changing existing code.</p>
<p>But there is a way to mimic the behavior of IIS, by copying the REMOTE_USER value into AUTH_USER.  Its only three simple lines but it took me quite a while to figure this out.</p>
<pre><code>RewriteEngine on
RewriteCond %{REMOTE_USER} (.*)
RewriteRule .* - [E=AUTH_USER:%1]</code></pre>
<p>You&#8217;ll need to have mod_rewrite enabled of course.  Usually all you need to do is uncomment a line that looks like this in httpd.conf:</p>
<pre><code>LoadModule rewrite_module modules/mod_rewrite.so</code></pre>
<p>The three magic lines can go into the httpd.conf file, or you could place them in a .htaccess file in the directory you&#8217;re working in.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stillnetstudios.com/copying-env-variables-in-apache/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MySQL losing case in table names</title>
		<link>http://www.stillnetstudios.com/mysql-losing-case-in-table-names/</link>
		<comments>http://www.stillnetstudios.com/mysql-losing-case-in-table-names/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 17:24:13 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[System Administration]]></category>

		<guid isPermaLink="false">http://www.stillnetstudios.com/?p=699</guid>
		<description><![CDATA[I had an issue recently when I was working with a couple other developers on a project.  We keep our MySQL database in sync by exporting the database as an SQL script and sharing it in a subversion repository (I wish MS SQL could be this easy!).  Our table names are saved with [...]]]></description>
			<content:encoded><![CDATA[<p>I had an issue recently when I was working with a couple other developers on a project.  We keep our MySQL database in sync by exporting the database as an SQL script and sharing it in a subversion repository (I wish MS SQL could be this easy!).  Our table names are saved with mix case, like &#8220;userFiles&#8221;, but everytime I would export my database the tables would come out all lower case, like &#8220;userfiles&#8221;.</p>
<p>Turns out this is a simple thing to fix, I had to add a line to MySQL&#8217;s config file: <em>my.cnf</em>.  Mine was located at <em>[MySQL installed root]\bin\my.cnf</em>.  The setting that needs to change is lower_case_table_names, I set the value to 2, like this:</p>
<p><code>lower_case_table_names=2</code></p>
<p>If you are interested, here are the different possible values:</p>
<table>
<tbody>
<tr>
<td valign="top"><span class="bold"><strong>Value</strong></span></td>
<td><span class="bold"><strong>Meaning</strong></span></td>
</tr>
<tr>
<td valign="top">0</td>
<td>Table and database names are stored on disk using the lettercase<br />
                specified in the CREATE  TABLE or CREATE DATABASE statement. Name comparisons are case<br />
                sensitive. Note that if you force this variable to 0 with &#8211;lower-case-table-names=0<br />
                on a case-insensitive file system and access MyISAM tablenames using different<br />
                lettercases, index corruption may result.</td>
</tr>
<tr>
<td valign="top">1</td>
<td>Table names are stored in lowercase on disk and name comparisons are not<br />
                case sensitive. MySQL converts all table names to<br />
                lowercase on storage and lookup. This behavior also<br />
                applies to database names and table aliases.</td>
</tr>
<tr>
<td valign="top">2</td>
<td>Table and database names are stored on disk using the lettercase<br />
                specified in the CREATE TABLE or CREATE  DATABASE statement, but MySQL converts them to<br />
                lowercase on lookup. Name comparisons are not case sensitive. This works only on file<br />
                systems that are not case sensitive! InnoDB table names are stored in<br />
                lowercase, as for lower_case_table_names=1.</td>
</tr>
</tbody>
</table>
<p>On Windows the default is 1.</p>
<p>More information at <a href="http://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html">http://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stillnetstudios.com/mysql-losing-case-in-table-names/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CFEclipse tip &#8211; Recovering a deleted file</title>
		<link>http://www.stillnetstudios.com/cfeclipse-recover-deleted-file/</link>
		<comments>http://www.stillnetstudios.com/cfeclipse-recover-deleted-file/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 04:25:21 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.stillnetstudios.com/?p=679</guid>
		<description><![CDATA[Today a coworker asked me if I knew how to recover a deleted file in CFEclipse.  He had accidentally deleted it before putting into his source control.  Since he had been working on this file recently, there is a way to recover it.
By default Eclipse keeps a local history of the files you [...]]]></description>
			<content:encoded><![CDATA[<p>Today a coworker asked me if I knew how to recover a deleted file in CFEclipse.  He had accidentally deleted it before putting into his source control.  Since he had been working on this file recently, there <em>is</em> a way to recover it.</p>
<p>By default Eclipse keeps a local history of the files you work on.  From within Eclipse, right click on a file and select Team->Show Local History.</p>
<p><img src="http://www.stillnetstudios.com/wp-content/uploads/2009/12/eclipise-history.png" alt="eclipise file history" title="eclipise file history" width="545" height="615" class="alignnone size-full wp-image-680" style="border: 1px solid black;" /></p>
<p>From here you will get a list of revisions, generally one is made each time you save the file.  You can open a revision, or even use a built in diff tool to compare it to your current version.</p>
<p><img src="http://www.stillnetstudios.com/wp-content/uploads/2009/12/eclipise-history-file.png" alt="eclipse history file list" title="eclipse history file list" width="281" height="197" class="alignnone size-full wp-image-688" style="border: 1px solid black;" /></p>
<p>But in this case we had no current version to even right click on to start the process.  So we simply created a new, empty file in the same location as the old one.  Then we were able to right click on it and pull up the history.</p>
<p>This local history is stored under your workspace in workspace\.metadata\.plugins\org.eclipse.core.resources\.history, but its not easy to manually browse.  There any many directories and the files in those directories are given nonsense file names.  Much easier to stick with the Eclipse interface.</p>
<p>Keep in mind that if you haven&#8217;t edited the file in a while there may not be any history to go to.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stillnetstudios.com/cfeclipse-recover-deleted-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>aligning cells in an html cfgrid</title>
		<link>http://www.stillnetstudios.com/aligning-cells-in-an-html-cfgrid/</link>
		<comments>http://www.stillnetstudios.com/aligning-cells-in-an-html-cfgrid/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 03:35:26 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.stillnetstudios.com/?p=673</guid>
		<description><![CDATA[The other day I had the need to align some data in an html cfgrid.  There are some alignment attributes of the cfgriditem tag, but they do not work in html grids.  I tried wrapping the data in a span tag with some css aligning it, but that didn&#8217;t work either.
But there is [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I had the need to align some data in an html cfgrid.  There are some alignment attributes of the cfgriditem tag, but they do not work in html grids.  I tried wrapping the data in a span tag with some css aligning it, but that didn&#8217;t work either.</p>
<p>But there is a way.  When CF8 generates the grid it writes out CSS ids and classes that you can use to style the grid.  For example to right align the 5th column you can use this:</p>
<pre><code>.x-grid-td-5 {text-align:right;}</code></pre>
<p>The number you need to use in the class name does not always match up with the column.  Sometimes I had to use .x-grid-td-8 to reference the 6th column for example.  I think the number increments for each cfgrid item, even if you have display=no.</p>
<p>If you have more than one cfgrid on your page and only want to align the nth column in one of them, you can wrap the cfgird in a div with an ID so you can reference only that grid in your CSS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stillnetstudios.com/aligning-cells-in-an-html-cfgrid/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Referencing returned value array values in CF9</title>
		<link>http://www.stillnetstudios.com/referencing-array-values-cf9/</link>
		<comments>http://www.stillnetstudios.com/referencing-array-values-cf9/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 04:06:27 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Railo]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.stillnetstudios.com/?p=653</guid>
		<description><![CDATA[I just discovered a neat feature of CF9.  Sometimes when calling a built in function or even a custom method, you get returned an array.  But sometimes you only need one element in that array.  In Perl and other languages its possible to directly access the element you want.  I&#8217;m glad [...]]]></description>
			<content:encoded><![CDATA[<p>I just discovered a neat feature of CF9.  Sometimes when calling a built in function or even a custom method, you get returned an array.  But sometimes you only need one element in that array.  In Perl and other languages its possible to directly access the element you want.  I&#8217;m glad to see this has been added to ColdFusion9.</p>
<p>For example, lets say you need the second particular element in an XML document.  You might fetch some XML with cffeed and then use XMLSearch() to get all the matching elements.  Then reference the second element of the resulting array, like this:<br />
<span id="more-653"></span></p>
<pre><code>&lt;cffeed source = "http://weather.yahooapis.com/forecastrss?p=90210" xmlVar= "myXML"&gt;

&lt;cfset Forecasts =
     xmlSearch(myXML,"//*[local-name()='forecast' and namespace-uri()='http://xml.weather.yahoo.com/ns/rss/1.0']")&gt;

&lt;cfset theForecastIwant = Forecasts[2]&gt;</code></pre>
<p>In CF9 you can take a little shortcut, like you can in many other languages:</p>
<pre><code>&lt;cffeed source = "http://weather.yahooapis.com/forecastrss?p=90210" xmlVar= "myXML"&gt;

&lt;cfset theForecastIwant =
     xmlSearch(myXML,
     "//*[local-name()='forecast' and namespace-uri()='http://xml.weather.yahoo.com/ns/rss/1.0']")<strong style="color: red;">[2]</strong>&gt;</code></pre>
<p>Nice!  This probably happened when the team added the <a href="/anonymous-arrays-coldfusion9/">anonymous variables</a> feature.</p>
<p>And if you are wondering, this works fine in Railo 3.1 but not in OpenBD 1.1.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stillnetstudios.com/referencing-array-values-cf9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
