<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Enpresiv Developers</title>
	<atom:link href="http://developersblog.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://developersblog.wordpress.com</link>
	<description>Enpresiv developers blog</description>
	<lastBuildDate>Mon, 03 Oct 2011 23:20:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='developersblog.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Enpresiv Developers</title>
		<link>http://developersblog.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://developersblog.wordpress.com/osd.xml" title="Enpresiv Developers" />
	<atom:link rel='hub' href='http://developersblog.wordpress.com/?pushpress=hub'/>
		<item>
		<title>MySQL &#8211; handy sorting by field function</title>
		<link>http://developersblog.wordpress.com/2011/10/04/handy-sorting-by-field-function/</link>
		<comments>http://developersblog.wordpress.com/2011/10/04/handy-sorting-by-field-function/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 23:20:48 +0000</pubDate>
		<dc:creator>matthewattanasio</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://developersblog.wordpress.com/?p=270</guid>
		<description><![CDATA[I recently came into a problem where I had to sort the result of a MySQL query by fixed column values. Example:: SELECT * FROM table WHERE x in (a, d, c, b )      Result::  a b c d The default ORDER BY clause in this case sorted the result in a descending [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=270&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I recently came into a problem where I had to sort the result of a MySQL query by fixed column values.</p>
<p><em>Example::</em></p>
<p><em>SELECT *<br />
</em><em>FROM table<br />
WHERE x in (a, d, c, b )     </em></p>
<p><em>Result::</em>  a b c d</p>
<p>The default ORDER BY clause in this case sorted the result in a descending fashion, however I need the result to be returned as follow.</p>
<p><em>Result::</em> a d c b</p>
<p>So how does one get such a result??</p>
<p>By using the the ORDER BY FIELD  clause. This little nifty function allowed me to return the result exactly as hoped and did not require me to further manipulate the results afterwards using another programming language. Below is how you would structure this cool function.</p>
<p><em>Example::</em></p>
<p><em></em><em>SELECT *<br />
</em><em>FROM table<br />
WHERE x in (a, d, c, b )<br />
</em>ORDER BY FIELD( fieldName, a, d, c, b )</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developersblog.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developersblog.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developersblog.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developersblog.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developersblog.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developersblog.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developersblog.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developersblog.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developersblog.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developersblog.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developersblog.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developersblog.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developersblog.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developersblog.wordpress.com/270/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=270&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developersblog.wordpress.com/2011/10/04/handy-sorting-by-field-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">matthewattanasio</media:title>
		</media:content>
	</item>
		<item>
		<title>Clear Farcry Object Broker Caching</title>
		<link>http://developersblog.wordpress.com/2011/07/29/clear-farcry-object-broker-caching/</link>
		<comments>http://developersblog.wordpress.com/2011/07/29/clear-farcry-object-broker-caching/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 06:51:57 +0000</pubDate>
		<dc:creator>sandicino</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[FarCry 5]]></category>

		<guid isPermaLink="false">http://developersblog.wordpress.com/?p=250</guid>
		<description><![CDATA[Ever wonder why an object data is never updated whenever you update the actual data via a cfquery tag and when you do a getData() from the Farcry frame work, the data doesn&#8217;t contain the changes you made previously via cfquery? Well this is because the data you get from the getData() function are loaded [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=250&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ever wonder why an object data is never updated whenever you update the actual data via a cfquery tag and when you do a getData() from the Farcry frame work, the data doesn&#8217;t contain the changes you made previously via cfquery?</p>
<p>Well this is because the data you get from the getData() function are loaded from the Object Broker, which caches the data for fast retrival, therefore when you do an update manually via cfquery tag, this change was not registered in Object Broker. Here&#8217;s a handy little snippet of code that will do the trick!<br />
<pre class="brush: coldfusion;">
&lt;cfset application.fc.lib.objectbroker.RemoveFromObjectBroker(lObjectIDs=objectid,typename='dmHTML') /&gt;
</pre></p>
<p>The sample code above allows you to update the cache of a dmHTML object in the Object Broker cache.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developersblog.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developersblog.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developersblog.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developersblog.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developersblog.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developersblog.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developersblog.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developersblog.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developersblog.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developersblog.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developersblog.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developersblog.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developersblog.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developersblog.wordpress.com/250/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=250&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developersblog.wordpress.com/2011/07/29/clear-farcry-object-broker-caching/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">sandy</media:title>
		</media:content>
	</item>
		<item>
		<title>Avoid single quotes in JSON response</title>
		<link>http://developersblog.wordpress.com/2011/06/09/avoid-single-quotes-in-json-response/</link>
		<comments>http://developersblog.wordpress.com/2011/06/09/avoid-single-quotes-in-json-response/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 06:41:51 +0000</pubDate>
		<dc:creator>sandicino</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://developersblog.wordpress.com/?p=248</guid>
		<description><![CDATA[Just came across an issue where my ajax response errored after performing a request to retrieve some data returned as a JSON object. The error returned was INVALID JSON. After a couple minutes of debugging I&#8217;ve nailed down the data issue. Turns out jQuery parser doesn&#8217;t like having single quotes in the response packet, even [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=248&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just came across an issue where my ajax response errored after performing a request to retrieve some data returned as a JSON object. The error returned was INVALID JSON. After a couple minutes of debugging I&#8217;ve nailed down the data issue. Turns out jQuery parser doesn&#8217;t like having single quotes in the response packet, even if the quotes are correctly escaped such as <strong>\&#8217;</strong>. So watch out!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developersblog.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developersblog.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developersblog.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developersblog.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developersblog.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developersblog.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developersblog.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developersblog.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developersblog.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developersblog.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developersblog.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developersblog.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developersblog.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developersblog.wordpress.com/248/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=248&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developersblog.wordpress.com/2011/06/09/avoid-single-quotes-in-json-response/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">sandy</media:title>
		</media:content>
	</item>
		<item>
		<title>Coldfusion Schedule Task List</title>
		<link>http://developersblog.wordpress.com/2010/11/26/coldfusion-schedule-task-list/</link>
		<comments>http://developersblog.wordpress.com/2010/11/26/coldfusion-schedule-task-list/#comments</comments>
		<pubDate>Fri, 26 Nov 2010 01:15:19 +0000</pubDate>
		<dc:creator>sandicino</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://developersblog.wordpress.com/?p=239</guid>
		<description><![CDATA[I find it really frustrating sometimes trying to investigate why a schedule task is not executing correctly on a production server because we don&#8217;t get access to the CF admin and inspect each schedule task for ourselves. BUT luckily I&#8217;ve found this little snippet of code which gonna make our lives much brighter. This script [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=239&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I find it really frustrating sometimes trying to investigate why a schedule task is not executing correctly on a production server because we don&#8217;t get access to the CF admin and inspect each schedule task for ourselves. BUT luckily I&#8217;ve found this little snippet of code which gonna make our lives much brighter.</p>
<p><pre class="brush: xml;">&lt;cfset factory = createObject('java', 'coldfusion.server.ServiceFactory')&gt;
&lt;cfset allTasks = factory.CronService.listAll()/&gt;
&lt;cfloop index=&quot;i&quot; from=&quot;1&quot; to=&quot;#ArrayLen(allTasks)#&quot;&gt;
    &lt;cfdump var=&quot;#allTasks[i]#&quot; /&gt;
&lt;/cfloop&gt;</pre></p>
<p>This script basically returns a list of schedule tasks on the server!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developersblog.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developersblog.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developersblog.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developersblog.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developersblog.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developersblog.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developersblog.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developersblog.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developersblog.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developersblog.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developersblog.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developersblog.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developersblog.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developersblog.wordpress.com/239/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=239&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developersblog.wordpress.com/2010/11/26/coldfusion-schedule-task-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">sandy</media:title>
		</media:content>
	</item>
		<item>
		<title>Hey! what happened to the case in my keys?</title>
		<link>http://developersblog.wordpress.com/2010/07/28/hey-what-happened-to-the-case-in-my-keys/</link>
		<comments>http://developersblog.wordpress.com/2010/07/28/hey-what-happened-to-the-case-in-my-keys/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 00:48:23 +0000</pubDate>
		<dc:creator>captainbenno</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://developersblog.wordpress.com/?p=233</guid>
		<description><![CDATA[The title probably wouldn&#8217;t make a great deal of sense under normal circumstances&#8230; but I am reffering to Coldfusion struct keys and maintaing their case. In some circumstances it is important to make sure that the case that you enter your struct keys with is not altered, and you are probably thinking that surely whatever [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=233&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The title probably wouldn&#8217;t make a great deal of sense under normal circumstances&#8230; but I am reffering to Coldfusion struct keys and maintaing their case.</p>
<p>In some circumstances it is important to make sure that the case that you enter your struct keys with is not altered, and you are probably thinking that surely whatever case you use it is maintained, but this is only in true under some circumstances. One of my amazing colleagues in our development studio has a situation where the case must be maintained at lower case converting a struct to a JSON packet to be consumed by a facebook application, but because of the way she was building the struct, CF forces the keys to upper case. Check out the example below:</p>
<p><pre class="brush: xml;">
&lt;cfset stPerson = structNew()&gt;
&lt;cfset stPerson.name = &quot;Sandy&quot;&gt;
&lt;cfset stPerson.address = &quot;12 Amazing Street&quot;&gt;
&lt;cfset stPerson.suburb = &quot;Amazingville&quot;&gt;
&lt;cfset stPerson.state = &quot;SA&quot;&gt;
&lt;cfset stPerson.phone = &quot;54321234&quot;&gt;
&lt;cfdump var=&quot;#stPerson#&quot;&gt;
</pre></p>
<p>and the result:</p>
<table>
<tbody>
<tr>
<th colspan="2">struct</th>
</tr>
<tr>
<td>ADDRESS</td>
<td>12 Amazing Street</td>
</tr>
<tr>
<td>NAME</td>
<td>Sandy</td>
</tr>
<tr>
<td>PHONE</td>
<td>54321234</td>
</tr>
<tr>
<td>STATE</td>
<td>SA</td>
</tr>
<tr>
<td>SUBURB</td>
<td>Amazingville</td>
</tr>
</tbody>
</table>
<p>Check out the keys, they are all forced to upper case! Why? , well I found this on another CF developer blog and it sounded pretty good &#8211; <em>&#8220;ColdFusion internally represents structure keys in uppercase when the keys are created using dot notation. Dot notation is typically how programmers write their code and is considered to be best practice when working with structures.&#8221;<br />
</em></p>
<p>So there you go&#8230;. but how can we maintain case you ask? well, quite easy, don&#8217;t create your structs using dot notation, explicitly set your key names by wrapping them in single quotes, check out this example:</p>
<p><pre class="brush: xml;">
&lt;cfset stPerson = structNew()&gt;
&lt;cfset stPerson['name'] = &quot;Sandy&quot;&gt;
&lt;cfset stPerson['address'] = &quot;12 Amazing Street&quot;&gt;
&lt;cfset stPerson['suburb'] = &quot;Amazingville&quot;&gt;
&lt;cfset stPerson['state'] = &quot;SA&quot;&gt;
&lt;cfset stPerson['phone'] = &quot;54321234&quot;&gt;
&lt;cfdump var=&quot;#stPerson#&quot;&gt;
</pre></p>
<p>and the result:</p>
<table>
<tbody>
<tr>
<th colspan="2">struct</th>
</tr>
<tr>
<td>address</td>
<td>12 Amazing Street</td>
</tr>
<tr>
<td>name</td>
<td>Sandy</td>
</tr>
<tr>
<td>phone</td>
<td>54321234</td>
</tr>
<tr>
<td>state</td>
<td>SA</td>
</tr>
<tr>
<td>suburb</td>
<td>Amazingville</td>
</tr>
</tbody>
</table>
<p>See!! the case of the keys has been maintained!!! </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developersblog.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developersblog.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developersblog.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developersblog.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developersblog.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developersblog.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developersblog.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developersblog.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developersblog.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developersblog.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developersblog.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developersblog.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developersblog.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developersblog.wordpress.com/233/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=233&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developersblog.wordpress.com/2010/07/28/hey-what-happened-to-the-case-in-my-keys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">captainbenno</media:title>
		</media:content>
	</item>
		<item>
		<title>Tag of the day! &#8211; cfprocessingdirective</title>
		<link>http://developersblog.wordpress.com/2010/06/22/tag-of-the-day-cfprocessingdirective/</link>
		<comments>http://developersblog.wordpress.com/2010/06/22/tag-of-the-day-cfprocessingdirective/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 05:36:30 +0000</pubDate>
		<dc:creator>captainbenno</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://developersblog.wordpress.com/?p=222</guid>
		<description><![CDATA[If there is one thing that CF does badly it is the over-zealous creation of whitespace characters that fill your html output with unnecessary garbage that makes it near impossible to make sense of. One thing it is very good at however is making it easy to capture the output of complicated logic without the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=222&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If there is one thing that CF does badly it is the over-zealous creation of whitespace characters that fill your html output with unnecessary garbage that makes it near impossible to make sense of. One thing it is very good at however is making it easy to capture the output of complicated logic without the need to constantly append to a variable by using the cfsavecontent tag. The problem with this is that for every space character inside cfsavecontent it is also added to the variable being used to capture the output so something like this:</p>
<p><pre class="brush: xml;">
&lt;cfsavecontent variable=&quot;htmlStr&quot;&gt;
	&lt;cfoutput&gt;&lt;p&gt;
	&lt;cfloop query=&quot;qPets&quot;&gt;
		&lt;cfif qpets.cat EQ &quot;dog&quot;&gt;
			Some other string about dogs&lt;br&gt;
		&lt;cfelse&gt;
			Some other string about cats&lt;br&gt;
		&lt;/cfelse&gt;
	&lt;/cfif&gt;
	&lt;/cfloop&gt;&lt;/p&gt;&lt;/cfoutput&gt;
&lt;/cfsavecontent&gt;
</pre></p>
<p>Would probably produce something like this:<br />
<pre class="brush: xml;">
		&lt;p&gt;
							Some other string about dogs&lt;br /&gt;


			Some other string about dogs&lt;br /&gt;



					Some other string about cats&lt;br /&gt;

	&lt;/p&gt;
</pre><br />
Luckily we have a tag that helps to repress all this whitespace inside cfsavecontent called cfprocessingdirective with the attribute suppresswhitespace set to true. It has to be used correctly, everything that you want outputted HAS to be wrapped in individual cfoutput tags eg:</p>
<p><pre class="brush: xml;">
&lt;cfsavecontent variable=&quot;htmlStr&quot;&gt;
	&lt;cfprocessingdirective suppresswhitespace=&quot;true&quot;&gt; 
		&lt;cfoutput&gt;&lt;p&gt;&lt;/cfoutput&gt;
		&lt;cfloop query=&quot;qPets&quot;&gt;
			&lt;cfif qPets.cat eq &quot;dog&quot;&gt;
				&lt;cfoutput&gt;Some other string about dogs&lt;br&gt;&lt;/cfoutput&gt;           
			&lt;cfelse&gt;
				&lt;cfoutput&gt;Some other string about cats&lt;br&gt;&lt;/cfoutput&gt;           
			&lt;/cfif&gt;
		&lt;/cfloop&gt;
		&lt;cfoutput&gt;&lt;/p&gt;&lt;/cfoutput&gt;
	&lt;/cfprocessingdirective&gt; 
&lt;/cfsavecontent&gt;
</pre></p>
<p>And the results are:</p>
<p><pre class="brush: xml;">
&lt;p&gt;Some other string about dogs&lt;br /&gt;
Some other string about dogs&lt;br /&gt;
Some other string about cats&lt;br /&gt;
&lt;/p&gt;
</pre><br />
Easy to use, keeps the code looking snazzy and improves your html output.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developersblog.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developersblog.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developersblog.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developersblog.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developersblog.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developersblog.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developersblog.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developersblog.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developersblog.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developersblog.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developersblog.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developersblog.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developersblog.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developersblog.wordpress.com/222/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=222&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developersblog.wordpress.com/2010/06/22/tag-of-the-day-cfprocessingdirective/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">captainbenno</media:title>
		</media:content>
	</item>
		<item>
		<title>IE6 Ajax Caching</title>
		<link>http://developersblog.wordpress.com/2010/05/03/ie6-ajax-caching/</link>
		<comments>http://developersblog.wordpress.com/2010/05/03/ie6-ajax-caching/#comments</comments>
		<pubDate>Mon, 03 May 2010 02:38:34 +0000</pubDate>
		<dc:creator>sandicino</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://developersblog.wordpress.com/?p=217</guid>
		<description><![CDATA[I was debugging an ajax issue in IE6 today and discovered the getJson() ajax function is not resonding and there were no Javascript error. I did some googling and found the issue in the An IE AJAX gotcha: page caching article. While the article gave us a detailed description of the issue and a solution, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=217&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was debugging an ajax issue in IE6 today and discovered the getJson() ajax function is not resonding and there were no Javascript error. I did some googling and found the issue in the <a href="http://www.greenash.net.au/posts/thoughts/an-ie-ajax-gotcha-page-caching" target="_blank">An IE AJAX gotcha: page caching</a> article. While the article gave us a detailed description of the issue and a solution, I have a simpler suggestion which is to replace the jQuery.getJson() function with jQuery.ajax() instead. Using the ajax() function you can set the dataType to &#8216;json&#8217; and that will automatically clear the caching for you. Problem fixed! </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developersblog.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developersblog.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developersblog.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developersblog.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developersblog.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developersblog.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developersblog.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developersblog.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developersblog.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developersblog.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developersblog.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developersblog.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developersblog.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developersblog.wordpress.com/217/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=217&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developersblog.wordpress.com/2010/05/03/ie6-ajax-caching/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">sandy</media:title>
		</media:content>
	</item>
		<item>
		<title>Database Schema Editor</title>
		<link>http://developersblog.wordpress.com/2010/02/12/database-schema-editor/</link>
		<comments>http://developersblog.wordpress.com/2010/02/12/database-schema-editor/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 05:05:36 +0000</pubDate>
		<dc:creator>sandicino</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://developersblog.wordpress.com/2010/02/12/database-schema-editor/</guid>
		<description><![CDATA[Just found this cool online tool that allows you to quickly draw up a database schema with export function that output a script for you to import the tables and all of it&#8217;s attributes into your selected database type. http://www.dbschemaeditor.com/OnlineDB.aspx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=216&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just found this cool online tool that allows you to quickly draw up a database schema with export function that output a script for you to import the tables and all of it&#8217;s attributes into your selected database type.</p>
<p>http://www.dbschemaeditor.com/OnlineDB.aspx</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developersblog.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developersblog.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developersblog.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developersblog.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developersblog.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developersblog.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developersblog.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developersblog.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developersblog.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developersblog.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developersblog.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developersblog.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developersblog.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developersblog.wordpress.com/216/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=216&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developersblog.wordpress.com/2010/02/12/database-schema-editor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">sandy</media:title>
		</media:content>
	</item>
		<item>
		<title>CF Tag of the week &#8211; CFQUERYPARAM</title>
		<link>http://developersblog.wordpress.com/2009/10/28/cf-tag-of-the-week-cfqueryparam/</link>
		<comments>http://developersblog.wordpress.com/2009/10/28/cf-tag-of-the-week-cfqueryparam/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 06:49:55 +0000</pubDate>
		<dc:creator>captainbenno</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://developersblog.wordpress.com/?p=211</guid>
		<description><![CDATA[I don&#8217;t need to write anything on the benefits of using CFQUERYPARAM, there have been many articles over the years doing just that. Instead I am going to cut to the chase and simply state - &#8216;If you are using CFQUERY, then you should always use CFQUERYPARAM when passing in typed data, end of story&#8217;. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=211&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t need to write anything on the benefits of using CFQUERYPARAM, there have been many articles over the years doing just that. Instead I am going to cut to the chase and simply state -</p>
<blockquote><p> &#8216;If you are using CFQUERY, then you should always use CFQUERYPARAM when passing in typed data, end of story&#8217;.</p></blockquote>
<p>OK, that was a bit short and dull, here are 3 very good reasons:</p>
<p>1. Reduces the risk of SQL injection attacks<br />
2. Makes data more &#8216;SQL happy&#8217;, escapes problematic characters, eg: single quotes, forward slashes etc&#8230;<br />
3. Forces you to think about the data being passed into your query, less mistakes made.</p>
<p>Not enough information for you? read this excellent article from Adobe &#8211; <a href="http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=queryDB_5.html#1142383">http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=queryDB_5.html#1142383</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developersblog.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developersblog.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developersblog.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developersblog.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developersblog.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developersblog.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developersblog.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developersblog.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developersblog.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developersblog.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developersblog.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developersblog.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developersblog.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developersblog.wordpress.com/211/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=211&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developersblog.wordpress.com/2009/10/28/cf-tag-of-the-week-cfqueryparam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">captainbenno</media:title>
		</media:content>
	</item>
		<item>
		<title>I Heart CFDUMP</title>
		<link>http://developersblog.wordpress.com/2009/10/15/i-heart-cfdump/</link>
		<comments>http://developersblog.wordpress.com/2009/10/15/i-heart-cfdump/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 23:51:22 +0000</pubDate>
		<dc:creator>captainbenno</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://developersblog.wordpress.com/?p=208</guid>
		<description><![CDATA[If there was anything that could be called a &#8216;champagne moment&#8217; from the developers at Adobe it was when they came up with the idea of that excellent tag &#8211; CFDUMP. I am sure when this piece of brilliance was brought to life there were many cheers and congratulatory back slapping amongst the developers not [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=208&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If there was anything that could be called a &#8216;champagne moment&#8217; from the developers at Adobe it was when they came up with the idea of that excellent tag &#8211; CFDUMP.<br />
I am sure when this piece of brilliance was brought to life there were many cheers and congratulatory back slapping amongst the developers not to mention the week long party and holiday bonus in the Bahamas (well maybe not that much celebration).</p>
<p>No other language has an easier, more elegant and quicker debugging utility that gives as much detail and information as CFDUMP. It is one of my favorite things about developing in Coldfusion, if only there was some way of getting the same sort of information in a similar manner in Javascript&#8230;. well it turns out that there is!</p>
<p>I was wandering around the web when I stumbled across John Bartletts Coldfusion tips n tricks. He has taken some code that essentially dumps a javascript array and given it Coldfusion like formatting. I have often wanted something just like this to save me the hours of developing ways to debug large arrays of javascript data and now here it is &#8211; </p>
<p><a href="http://johnwbartlett.com/cf_tipsntricks/index.cfm?TopicID=85">http://johnwbartlett.com/cf_tipsntricks/index.cfm?TopicID=85</a></p>
<p>Give it a shot and I am sure you will agree it is a beautiful thing.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/developersblog.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/developersblog.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/developersblog.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/developersblog.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/developersblog.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/developersblog.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/developersblog.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/developersblog.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/developersblog.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/developersblog.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/developersblog.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/developersblog.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/developersblog.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/developersblog.wordpress.com/208/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=developersblog.wordpress.com&amp;blog=2697857&amp;post=208&amp;subd=developersblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://developersblog.wordpress.com/2009/10/15/i-heart-cfdump/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">captainbenno</media:title>
		</media:content>
	</item>
	</channel>
</rss>
