<?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>Creative Notice</title>
	<atom:link href="http://creativenotice.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://creativenotice.com</link>
	<description>Delving into Coldfusion, jQuery, HTML5 and Linux</description>
	<lastBuildDate>Sat, 10 Dec 2011 20:19:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Cloning an JavaScript Object Using jQuery</title>
		<link>http://creativenotice.com/2011/12/cloning-an-javascript-object-using-jquery/</link>
		<comments>http://creativenotice.com/2011/12/cloning-an-javascript-object-using-jquery/#comments</comments>
		<pubDate>Sat, 10 Dec 2011 20:19:01 +0000</pubDate>
		<dc:creator>Ryan Mueller</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[object]]></category>

		<guid isPermaLink="false">http://creativenotice.com/?p=273</guid>
		<description><![CDATA[I was recently using Keith Wood&#8217;s calendar plugin and kept running into an issue when trying to copy a date object and add days to it. When I would copy the object, I was actually just creating a reference to the original&#8230; Not what I wanted. Found the answer was to clone the object, and [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently using <a href="http://keith-wood.name/calendars.html">Keith Wood&#8217;s calendar plugin</a> and kept running into an issue when trying to copy a date object and add days to it. When I would copy the object, I was actually just creating a reference to the original&#8230; Not what I wanted.</p>
<p>Found the answer was to clone the object, and <a href="http://stackoverflow.com/questions/122102/what-is-the-most-efficient-way-to-clone-a-javascript-object">John Resig had the answer</a> via jQuery&#8217;s $.extend() method. It&#8217;s awesome when your fav lib has the method you need so writing one from scratch isn&#8217;t necessary. Check it out:<span id="more-273"></span></p>
<pre class="brush:js">cfg = {};
cfg.c = { 'inst' : j.calendars.instance() };
var func = function(s){
	cfg.c.start = typeof s === 'string' &amp;&amp; s.length &gt; 0 ? cfg.c.inst.parseDate('mm/dd/yyyy',s) : cfg.c.inst.today();
	cfg.c.end = j.extend({},cfg.c.start); // clone so we're not updating cfg.c.start via reference
};</pre>
]]></content:encoded>
			<wfw:commentRss>http://creativenotice.com/2011/12/cloning-an-javascript-object-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Try / Catch Efficiency</title>
		<link>http://creativenotice.com/2011/12/javascript-try-catch-efficiency/</link>
		<comments>http://creativenotice.com/2011/12/javascript-try-catch-efficiency/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 15:35:46 +0000</pubDate>
		<dc:creator>Ryan Mueller</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[jsfiddle]]></category>

		<guid isPermaLink="false">http://creativenotice.com/?p=270</guid>
		<description><![CDATA[I&#8217;ve been wondering if I should be using Try / Catch for more readable code. My biggest worry is of course efficient. Found this concise test on JSFiddle. http://jsfiddle.net/jonjenkins/adJQn/]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been wondering if I should be using Try / Catch for more readable code. My biggest worry is of course efficient. Found this concise test on JSFiddle.</p>
<p><a href="http://jsfiddle.net/jonjenkins/adJQn/">http://jsfiddle.net/jonjenkins/adJQn/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://creativenotice.com/2011/12/javascript-try-catch-efficiency/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Going Home to WordPress</title>
		<link>http://creativenotice.com/2011/11/going-home-to-wordpress/</link>
		<comments>http://creativenotice.com/2011/11/going-home-to-wordpress/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 08:37:00 +0000</pubDate>
		<dc:creator>Ryan Mueller</dc:creator>
				<category><![CDATA[News & Opinion]]></category>

		<guid isPermaLink="false">http://creativenotice.com/2011/11/going-home-to-wordpress/</guid>
		<description><![CDATA[I&#8217;m a WordPress junkie. I was using WordPress as a CMS back when there were still haters saying it couldn&#8217;t be done. I&#8217;ve tried Posterous for a while now, even tried Tumblr (cfpad.tumblr.com) as well. Both platforms are great in their own ways, but I&#8217;m moving back to a stand alone WordPress install this week. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a WordPress junkie. I was using WordPress as a CMS back when there were still haters saying it couldn&#8217;t be done. I&#8217;ve tried Posterous for a while now, even tried Tumblr (<a href="http://cfpad.tumblr.com">cfpad.tumblr.com</a>) as well. Both platforms are great in their own ways, but I&#8217;m moving back to a stand alone WordPress install this week.</p>
<p>I like the flexibility WordPress gives me. So over the next few days I&#8217;m going to be copying over my Posterous and Tumblr posts to a new WordPress install. It will be at <a href="http://creativenotice.com">http://creativenotice.com</a>. I&#8217;ll be posting more often from there on the topics of jQuery, PHP, Coldfusion and server admin stuff.</p>
<p>I&#8217;d love for you to stop by the new digs next week and say hi.</p>
]]></content:encoded>
			<wfw:commentRss>http://creativenotice.com/2011/11/going-home-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CF Method to Merge a List and Array</title>
		<link>http://creativenotice.com/2011/11/cf-method-to-merge-a-list-and-array/</link>
		<comments>http://creativenotice.com/2011/11/cf-method-to-merge-a-list-and-array/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 22:59:26 +0000</pubDate>
		<dc:creator>Ryan Mueller</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[CF]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[method]]></category>

		<guid isPermaLink="false">http://creativenotice.com/2011/11/cf-method-to-merge-a-list-and-array/</guid>
		<description><![CDATA[Here&#8217;s a little method I wrote to merge a CF list into an existing array. /** * mergeListToArray * When provided a list and an array, we convert the list to an array and merge them. * @created 11/07/2011 * @author Ryan Mueller * @param {Array} a Array to merge list to {required} * @param [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a little method I wrote to merge a CF list into an existing array.<span id="more-118"></span></p>
<pre class="brush:cf">	/**
	* mergeListToArray
	* When provided a list and an array, we convert the list to an array and merge them.
	* @created	11/07/2011
	* @author	Ryan Mueller
	* @param	{Array}		a		Array to merge list to		{required}
	* @param	{String}	l		List to merge with array	{required}
	* @param	{String}	delim	Delimiters to use	default = ','
	* @return	{Array}
	*/
	public Array function mergeListToArray(required array a,required string l,required string delim=','){
		var tmpArr = ListToArray(trim(arguments.l),delim);
		var newArr = arguments.a;
		if(IsArray(newArr) &amp;&amp; IsArray(tmpArr)){
			// loop over current array and append to new array
			for(i=1; i LTE ArrayLen(tmpArr); i=(i+1)){
				ArrayAppend(newArr,tmpArr[i]);
			}//end loop
		}//end isarray
		return newArr;
	};</pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://creativenotice.com/2011/11/cf-method-to-merge-a-list-and-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bench-marking cfdirectory v. java.io.file</title>
		<link>http://creativenotice.com/2011/10/bench-marking-cfdirectory-v-java-io-file/</link>
		<comments>http://creativenotice.com/2011/10/bench-marking-cfdirectory-v-java-io-file/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 15:39:38 +0000</pubDate>
		<dc:creator>Ryan Mueller</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[CF]]></category>
		<category><![CDATA[java.io.File]]></category>

		<guid isPermaLink="false">http://creativenotice.com/2011/10/bench-marking-cfdirectory-v-java-io-file/</guid>
		<description><![CDATA[Today I’m working on decreasing execution time on a script that does a couple DB querys and cfdirectory lists. After some preliminary testing my gut perception has proven true; the exorbinate execution time is due to cfdirectory. So I set out to find a faster way of getting file information from directories and sure enough [...]]]></description>
			<content:encoded><![CDATA[<p>Today I’m working on decreasing execution time on a script that does a couple DB querys and cfdirectory lists. After some preliminary testing my gut perception has proven true; the exorbinate execution time is due to cfdirectory.</p>
<p>So I set out to find a faster way of getting file information from directories and sure enough taking things back to Java is the way to go. See my benchmark code below and the results. I’m sure you’ll agree.</p>
<pre class="brush:cf">        // UNC path to look in
	curDir = '\myuncpath';

	// ftime will hold the execution time
	// fio is our java.io.File object
	ftime = gettickcount();
		fio = createObject('java','java.io.File');
		mylist = fio.init(trim(curDir)).list();
	ftime = gettickcount() - ftime;</pre>
<p>I run the exact same thing in cfdirectory (tumblr strips cfml tags from posts or i”d post that here too). The results in my case show: <strong><em>files: 3409, ftime: 31, dtime: 17608.</em></strong></p>
<p>That’s 3409 files. Java returns a list of names in 31ms while cfdirectory does the same in 17.5 seconds.</p>
]]></content:encoded>
			<wfw:commentRss>http://creativenotice.com/2011/10/bench-marking-cfdirectory-v-java-io-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Convert an Array to Query in Coldfusion</title>
		<link>http://creativenotice.com/2011/10/convert-an-array-to-query-in-coldfusion/</link>
		<comments>http://creativenotice.com/2011/10/convert-an-array-to-query-in-coldfusion/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 15:15:00 +0000</pubDate>
		<dc:creator>Ryan Mueller</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[arraytoquery]]></category>
		<category><![CDATA[CF]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java.io.File]]></category>
		<category><![CDATA[query]]></category>

		<guid isPermaLink="false">http://creativenotice.com/2011/10/convert-an-array-to-query-in-coldfusion/</guid>
		<description><![CDATA[Look below for a little function I wrote to convert an array to a query. I had to write this to allow for my use of java.io.File.list() rather than cfdirectory due to speed limitations of the latter. More on that with benchmarks later here. /* * arrayToQuery * Allows us to convert an array into [...]]]></description>
			<content:encoded><![CDATA[<p>Look below for a little function I wrote to convert an array to a query. I had to write this to allow for my use of java.io.File.list() rather than cfdirectory due to speed limitations of the latter. More on that with benchmarks <span>later</span> <a href="http://creativenotice.com/2011/10/bench-marking-cfdirectory-v-java-io-file/">here</a>.</p>
<pre class="brush:cf">	/*
	* arrayToQuery
	* Allows us to convert an array into a single column query.
	* @author	Ryan Mueller @CreativeNotice
	* @created	10/27/2011
	* @param	{Array}		arr	Array to be converted		{required}
	* @param	{String}	colname	Name for query column	{required}	default=col1
	*/
	public Query function arrayToQuery(required array arr,required string colname='col1'){
		var qry = queryNew(arguments.colname);
		for(i=1;i &lt;= ArrayLen(arguments.arr);i=(i+1)){
			queryAddRow(qry);
			querySetCell(qry,arguments.colname,arr[i]);
		}
		return qry;
	}</pre>
]]></content:encoded>
			<wfw:commentRss>http://creativenotice.com/2011/10/convert-an-array-to-query-in-coldfusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GZIP and CFHTTP &#8220;Connection Failure&#8221;</title>
		<link>http://creativenotice.com/2011/08/gzip-and-cfhttp-connection-failure/</link>
		<comments>http://creativenotice.com/2011/08/gzip-and-cfhttp-connection-failure/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 14:15:20 +0000</pubDate>
		<dc:creator>Ryan Mueller</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[Accept-Encoding]]></category>
		<category><![CDATA[CF]]></category>
		<category><![CDATA[cfhttp]]></category>
		<category><![CDATA[cfhttpparam]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[deflate]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://creativenotice.com/2011/08/gzip-and-cfhttp-connection-failure/</guid>
		<description><![CDATA[When you enable gzip, or deflate, compression on your server one side effect is your existing cfhttp requests will show “Connection Failure” even though you get an http 200 response. This is because Coldfusion doesn’t know how to decompress the response. Get get around this you need to tell the server to send an uncompressed [...]]]></description>
			<content:encoded><![CDATA[<p><span class="Apple-style-span"><span class="Apple-style-span">When you enable gzip, or deflate, compression on your server one side effect is your existing cfhttp requests will show “Connection Failure” even though you get an http 200 response. This is because Coldfusion doesn’t know how to decompress the response. Get get around this you need to tell the server to send an uncompressed response. Use this tag to do so.</span></span></p>
<pre class="brush:cf">&lt;cfhttpparam type="header" name="Accept-Encoding" Value="no-compression"&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://creativenotice.com/2011/08/gzip-and-cfhttp-connection-failure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dark Themes Installation for CFEclipse</title>
		<link>http://creativenotice.com/2011/06/dark-themes-installation-for-cfeclipse/</link>
		<comments>http://creativenotice.com/2011/06/dark-themes-installation-for-cfeclipse/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 16:05:18 +0000</pubDate>
		<dc:creator>Ryan Mueller</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CF]]></category>
		<category><![CDATA[cfeclipse]]></category>
		<category><![CDATA[coldfusion]]></category>

		<guid isPermaLink="false">http://creativenotice.com/2011/06/dark-themes-installation-for-cfeclipse/</guid>
		<description><![CDATA[I love dark themes and really wisth CFEclipse installed with one standard. Found this great post from Craig Kaminsky on easily installing pre-made theme files. Check it out. http://craigkaminsky.me/cfeclipse-themerations]]></description>
			<content:encoded><![CDATA[<p>I love dark themes and really wisth CFEclipse installed with one standard. Found this great post from Craig Kaminsky on easily installing pre-made theme files. Check it out.</p>
<p><a href="http://craigkaminsky.me/cfeclipse-themerations"></a><a href="http://craigkaminsky.me/cfeclipse-themerations">http://craigkaminsky.me/cfeclipse-themerations</a></p>
]]></content:encoded>
			<wfw:commentRss>http://creativenotice.com/2011/06/dark-themes-installation-for-cfeclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script Equivalent to cfsetting</title>
		<link>http://creativenotice.com/2011/06/script-equivalent-to-cfsetting/</link>
		<comments>http://creativenotice.com/2011/06/script-equivalent-to-cfsetting/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 14:13:25 +0000</pubDate>
		<dc:creator>Ryan Mueller</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CF]]></category>
		<category><![CDATA[coldfusion]]></category>

		<guid isPermaLink="false">http://creativenotice.com/2011/06/script-equivalent-to-cfsetting/</guid>
		<description><![CDATA[Guess what? It doesn&#8217;t exist. You are so foo bar! The work around is to use: include "mycfsettinginclude.cfm"; In that file just add one line, your cfsetting tag.  It&#8217;s hacktastic but it works. Oh, and don&#8217;t forget to bitch to Adobe about this oversight. sheesh!]]></description>
			<content:encoded><![CDATA[<p>Guess what? It doesn&#8217;t exist. You are so foo bar! The work around is to use:</p>
<p><code>include "mycfsettinginclude.cfm";</code></p>
<p>In that file just add one line, your cfsetting tag. </p>
<p>It&#8217;s hacktastic but it works. Oh, and don&#8217;t forget to bitch to Adobe about this oversight. sheesh!</p>
]]></content:encoded>
			<wfw:commentRss>http://creativenotice.com/2011/06/script-equivalent-to-cfsetting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Security Sniffing Your Javascript</title>
		<link>http://creativenotice.com/2011/06/security-sniffing-your-javascript/</link>
		<comments>http://creativenotice.com/2011/06/security-sniffing-your-javascript/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 12:47:48 +0000</pubDate>
		<dc:creator>Ryan Mueller</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[js]]></category>

		<guid isPermaLink="false">http://creativenotice.com/2011/06/security-sniffing-your-javascript/</guid>
		<description><![CDATA[Google just released a new tool for reviewing your site DOM security. Read more and download the Chrome extension after the jump. https://code.google.com/p/domsnitch/wiki/DOMSnitchDoc]]></description>
			<content:encoded><![CDATA[<p>Google just released a new tool for reviewing your site DOM security. Read more and download the Chrome extension after the jump.</p>
<p><a href="https://code.google.com/p/domsnitch/wiki/DOMSnitchDoc">https://code.google.com/p/domsnitch/wiki/DOMSnitchDoc</a></p>
]]></content:encoded>
			<wfw:commentRss>http://creativenotice.com/2011/06/security-sniffing-your-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

