<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss version="2.0">
			<channel>
			<title>Shane's ramblings</title>
			<link>http://www.kisdigital.com/index.cfm</link>
			<description>Discussions of Coldfusion, life, the universe, and everything</description>
			<language>en-us</language>
			<pubDate>Sun, 08 Nov 2009 16:19:46 -0500</pubDate>
			<lastBuildDate>Mon, 12 Oct 2009 11:49:04 -0500</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>shanez@kisdigital.com</managingEditor>
			<webMaster>shanez@kisdigital.com</webMaster>
			
			
			
			
			
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/ShanesColdfusionBlog" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
				<title>Troubles with Transfer ORM on Railo 3.1.1.012?</title>
				<link>http://www.kisdigital.com/index.cfm/2009/10/12/Troubles-with-Transfer-ORM-on-Railo-311012</link>
				<description>
				
				I ran into this issue over the weekend with a clients site and spent quite a bit of time banging my head on the keyboard trying to figure out why a site that was previously working great all of a sudden was borked.
				 [More]
				</description>
						
				
				<category>Railo</category>				
				
				<category>FYI</category>				
				
				<pubDate>Mon, 12 Oct 2009 11:49:04 -0500</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/10/12/Troubles-with-Transfer-ORM-on-Railo-311012</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Ubuntu on Dell XPS 400 and Dell E196FP Display Revisited (again)</title>
				<link>http://www.kisdigital.com/index.cfm/2009/9/15/Ubuntu-on-Dell-XPS-400-and-Dell-E196FP-Display-Revisited-again</link>
				<description>
				
				I received an email from Michael and he was having some issues installing Ubuntu on a Dell XPS 400. I wrote entries on this when I was first getting heavily into Linux that were far more complicated than they needed to be.  He was having problems following those posts so I came up with a simplified version.

Here is what I suggest:
 

Boot Ubuntu [9.04], on the first screen choose your language [English]
Then press F4 and select [Safe Graphics]

Then press [F6], but do not select any option. Instead press [Escape] and it will allow you to change the command line. Remove the option "quiet splash --" and replace it with "vga=791" instead

Start the installation

This should install Ubuntu in safe graphics mode at a resolution of 1024x768.
 
Once the installation is finished you should be able to enable the nVidia driver and get the better resolution and color depth.

This should also work for anyone with a nVidia chipset that does not correctly get identified at installation.
				
				</description>
						
				
				<category>Linux</category>				
				
				<pubDate>Tue, 15 Sep 2009 14:46:04 -0500</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/9/15/Ubuntu-on-Dell-XPS-400-and-Dell-E196FP-Display-Revisited-again</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Using Transfer to save single or multiple fields of data</title>
				<link>http://www.kisdigital.com/index.cfm/2009/7/23/Using-Transfer-to-save-single-or-multiple-fields-of-data</link>
				<description>
				
				I am working on a project currently that will have multiple forms for saving user information.  Instead of writing multiple functions to handle specific fields of data I thought it would be easier to write a function in my CFC that would accept a structure as a parameter and then loop through the structure elements and update the respective fields.  Transfer makes this extemely easy to do.

&lt;code&gt;&lt;cfcomponent output="false"&gt;

	&lt;cffunction name="saveMember" access="public" returntype="boolean"&gt;
		&lt;cfargument name="userStruct" type="struct" required="yes"&gt;
        
        &lt;cfset var t = application.transfer.get("members.member") /&gt;
        
        &lt;cfscript&gt;
		
			for(i in userStruct){
				switch(i){
					case 'FirstName'	: 
						t.setFirstName(userStruct[i]);
						break;
					case 'MiddleName'	: 
						t.setMiddleName(userStruct[i]);
						break;
					case 'LastName'	: 
						t.setLastName(userStruct[i]);
						break;
						
					default: 
						break;
				}
			}
		
			application.transfer.save(t);
		&lt;/cfscript&gt;
        
		&lt;cfreturn true /&gt;
	&lt;/cffunction&gt;
    
&lt;/cfcomponent&gt;&lt;/code&gt;

This is an extremely basic example and incomplete to boot, but as long as the keys in userStruct match the field names in the database I can pass one or as many fields as necessary. Anyone doing something similar already?
				
				</description>
						
				
				<category>Development</category>				
				
				<category>Coldfusion</category>				
				
				<category>Transfer ORM</category>				
				
				<pubDate>Thu, 23 Jul 2009 21:20:04 -0500</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/7/23/Using-Transfer-to-save-single-or-multiple-fields-of-data</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Comments are now moderated</title>
				<link>http://www.kisdigital.com/index.cfm/2009/7/5/Comments-are-now-moderated</link>
				<description>
				
				It has been a very long time since I have sat down and written a blog entry.  Unfortunately, comment spammers are the reason I am wriiting this one.  For a while I was content to just delete the comments as they came but I rarely have time for that any more so I am just solving the problem.

Aside from that, I hope everyone is doing well.  It seems as if I have missed quite a bit in the last few months.  I look forward to catching up.
				
				</description>
						
				
				<category>General</category>				
				
				<pubDate>Sun, 05 Jul 2009 21:07:04 -0500</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/7/5/Comments-are-now-moderated</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>"Initializing" jQuery applications</title>
				<link>http://www.kisdigital.com/index.cfm/2009/5/5/Initializing-jQuery-applications</link>
				<description>
				
				I am currently working on a fun little side project that relies heavily on jQuery's $.getJSON() and $.ajax() calls.  The project in question is a simple tile-based game and javascript/jQuery is used extensively to keep things running smooth.  One of the first problems I had to contend with was making sure all the data I needed is loaded before rendering the player view.
				 [More]
				</description>
						
				
				<category>jQuery</category>				
				
				<category>Development</category>				
				
				<pubDate>Tue, 05 May 2009 12:29:04 -0500</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/5/5/Initializing-jQuery-applications</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Automatically start ColdFusion at boot (Ubuntu Linux) revisited</title>
				<link>http://www.kisdigital.com/index.cfm/2009/4/21/Automatically-start-ColdFusion-at-boot-Ubuntu-Linux-revisited</link>
				<description>
				
				Quite a few months ago I did a blog post about starting ColdFusion on boot with Ubuntu Linux.  When I originally wrote the post I did put a disclaimer on there that I was indeed new to Linux and there was probably a better way to do what I was attempting to do.  I was right.

There is a very easy way to accomplish this in three steps and it does not require editing your system files or going through all the run levels and trying to figure out where to start and stop ColdFusion.

The first thing you need to do is make sure the chkconfig utility is installed on your system.  I do not believe it is installed by default on Ubuntu distributions, but that is easy enough to remedy:

&lt;code&gt;sudo apt-get install chkconfig&lt;/code&gt;

Next we need to copy our generated coldfusion script to /etc/init.d:

&lt;code&gt;sudo cp /opt/coldfusionX/bin/coldfusion /etc/init.d&lt;/code&gt;

At the top of the file ColdFusion made for us are some special directives for the chkconfig utility.  Chkconfig will look for these and automatically set where ColdFusion needs to be stopped and started.  It looks something like this:

&lt;code&gt;#!/bin/sh

# chkconfig: 345 90 14
# description: starts the ColdFusion MX server&lt;/code&gt;

Finally, run the chkconfig utility to add ColdFusion service to the list of services run at boot:

&lt;code&gt;sudo chkconfig --add coldfusion&lt;/code&gt;

Enjoy.
				
				</description>
						
				
				<category>Linux</category>				
				
				<category>Coldfusion</category>				
				
				<pubDate>Tue, 21 Apr 2009 23:08:04 -0500</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/4/21/Automatically-start-ColdFusion-at-boot-Ubuntu-Linux-revisited</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Problems with UUID's</title>
				<link>http://www.kisdigital.com/index.cfm/2009/4/21/Problems-with-UUIDs</link>
				<description>
				
				I ran into a problem this morning passing a UUID to ColdFusion using $.getJSON() in a login script.  I am passing login credentials to a CFC, that CFC processes the login and returns a UUID back to me, which is the ID of the user.

The problem came about when I went to pass that UUID back to a CFC that was expecting a UUID as an argument.  It took me a minute to finally figure out what was going on.
				 [More]
				</description>
						
				
				<category>jQuery</category>				
				
				<category>Development</category>				
				
				<category>Coldfusion</category>				
				
				<pubDate>Tue, 21 Apr 2009 10:39:04 -0500</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/4/21/Problems-with-UUIDs</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Detecting jQuery Ajax calls (and validating the session that sent it)</title>
				<link>http://www.kisdigital.com/index.cfm/2009/4/13/Detecting-jQuery-Ajax-calls-and-validating-the-session-that-sent-it</link>
				<description>
				
				Ray recently wrote &lt;a href="http://www.insideria.com/2009/04/jqueryserver-side-tip-on-detec.html" target="_blank"&gt;jQuery/Server Side Tip on Detecting Ajax Calls&lt;/a&gt; (and you &lt;i&gt;are&lt;/i&gt; following InsideRIA, right?) that did strike a cord with me.
				 [More]
				</description>
						
				
				<category>jQuery</category>				
				
				<category>Development</category>				
				
				<category>Coldfusion</category>				
				
				<pubDate>Mon, 13 Apr 2009 15:00:04 -0500</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/4/13/Detecting-jQuery-Ajax-calls-and-validating-the-session-that-sent-it</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>A javascript question</title>
				<link>http://www.kisdigital.com/index.cfm/2009/4/12/A-javascript-question</link>
				<description>
				
				I am having some problems with some code I thought should be straight forward to write.  I have tackled the problem from so many directions I have forgotten what the code originally looked like.  Some times other points of view are just what the doctor ordered so I thought I would toss the code snippet out there and see if someone else might be able to make heads or tails of it.
				 [More]
				</description>
						
				
				<category>jQuery</category>				
				
				<category>Development</category>				
				
				<category>Javascript</category>				
				
				<pubDate>Sun, 12 Apr 2009 12:02:04 -0500</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/4/12/A-javascript-question</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>A quick question for the jQuery Guru's</title>
				<link>http://www.kisdigital.com/index.cfm/2009/4/5/A-quick-question-for-the-jQuery-Gurus</link>
				<description>
				
				I've been working on some code for a demo application and I ran into a little bit of a problem. I was trying to load a JSON object with data using jQuery's $.ajax function, but when it loaded it was evaluated as text.  Needless to say, it made the callback function processing the data very unhappy.

I finally did get the code in question working, but I don't know if I accomplished it the best way.

&lt;code&gt;function getCache() {
	
    var data = $.ajax({
   		
		url: '/model/cache.cfm',
		type: 'get',
		data: dataString,
		datatype: 'json',
		async: false,
		cache: false
		
	}).responseText;
	
	cacheJSON = eval('('+data+')');
					
}&lt;/code&gt;

Basically I am just loading a JSON recordset and storing it for when we need it later.  Is there a way to let jQuery know we are loading a JSON object without having to evaluate() it?  I would have used the $.getJSON() function, but I need a synchronous connection as opposed to async.
				
				</description>
						
				
				<category>jQuery</category>				
				
				<category>Development</category>				
				
				<pubDate>Sun, 05 Apr 2009 11:28:04 -0500</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/4/5/A-quick-question-for-the-jQuery-Gurus</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>I have migrated from MSSQL to MySQL</title>
				<link>http://www.kisdigital.com/index.cfm/2009/3/26/I-have-migrated-from-MSSQL-to-MySQL</link>
				<description>
				
				I have finished migrating the BlogCFC databases over from SQL Server to MySQL.  If anyone notices anything funky could you please let me know?  (No comments from the peanut gallery about my posts, either.. ;)
				
				</description>
						
				
				<category>Off Topic</category>				
				
				<pubDate>Thu, 26 Mar 2009 10:35:04 -0500</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/3/26/I-have-migrated-from-MSSQL-to-MySQL</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>WhosOnCFC for Site Security</title>
				<link>http://www.kisdigital.com/index.cfm/2009/3/23/WhosOnCFC-for-Site-Security</link>
				<description>
				
				Most people who are familiar with WhosOnCFC know it is a useful tool seeing visitors who are currently viewing your web site.  However, you may not know WhosOnCFC was designed first and foremost as a security tool.  Being able to view web traffic is a necessity to make sure people are not going places they should not be.  I have only documented the basics of WhosOnCFC, how to set it up and get it configured. Now I plan on going a little more in depth here so you can see the mechanics of it.
				 [More]
				</description>
						
				
				<category>Coldfusion</category>				
				
				<category>WhosOnCFC</category>				
				
				<pubDate>Mon, 23 Mar 2009 22:33:04 -0500</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/3/23/WhosOnCFC-for-Site-Security</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Running WhosOnCFC Under Railo</title>
				<link>http://www.kisdigital.com/index.cfm/2009/2/21/Running-WhosOnCFC-Under-Railo</link>
				<description>
				
				I have been working on migrating sites over to my new server which is running Railo.  Very quickly I noticed WhosOnCFC appeared to be broken.  It was not throwing an error and for the most part everything was running correctly.  Looking at the WhosOn Stats page everything was showing as I would expect.  However, when you went to pull a query of users currently online it was returning an empty query when it most definitely was not.

I spent a while troubleshooting everything and I finally found the culprit in the code.  In whoson.cfc around the line 400 mark or so, in the WhosOnline function, the query needs to be modified a little:

&lt;code&gt;&lt;cftry&gt;
    &lt;cfquery name="result" dbtype="query"&gt;
        SELECT *
        FROM myQuery
        WHERE (0=0)
        &lt;cfif arguments.showAll is false&gt;
            AND LastUpdated Between '#c#' and '#n#'
        &lt;/cfif&gt;
        &lt;cfif arguments.showHidden is false&gt;
            AND hideClient=0
        &lt;/cfif&gt;
    &lt;/cfquery&gt;
    &lt;cfcatch&gt;&lt;cfreturn myQuery /&gt;&lt;/cfcatch&gt;
&lt;/cftry&gt;&lt;/code&gt;

The difference being the single quotes around #c# and #n# which I had omitted before.  I will update the code on RIAForge as soon as I get the chance.
				
				</description>
						
				
				<category>Railo</category>				
				
				<category>Development</category>				
				
				<category>Coldfusion</category>				
				
				<category>WhosOnCFC</category>				
				
				<pubDate>Sat, 21 Feb 2009 13:49:04 -0500</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/2/21/Running-WhosOnCFC-Under-Railo</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Using GMail as Your SMTP Provider and Sending E-Mail as Another User</title>
				<link>http://www.kisdigital.com/index.cfm/2009/2/20/Using-GMail-as-Your-SMTP-Provider-and-Sending-EMail-as-Another-User</link>
				<description>
				
				In an effort to simplify my life recently I shut down my mail server and moved all my e-mail hosting to Google Apps.  I would have done it a long ago, but before ColdFusion 8 there was not an easy way to use SSL/TLS in CFMail.  Now it is extremely easy to do.

Jamie Krug recently wrote &lt;a href="http://jamiekrug.com/blog/index.cfm/2009/2/13/cfmail-using-Gmail-SMTP" target="_blank"&gt;this post&lt;/a&gt; on setting up Google SMTP using ColdFusion 8.  I did have a little confusion about which port to use and whether or not to use SSL, TLS, or both which Jamie's post helped me clear up.

The next obstacle I had was sending e-mails under accounts other than my primary account.  A while ago Doug Boude &lt;a href="http://www.dougboude.com/blog/1/2008/02/Using-Google-as-your-CF-Mail-Server.cfm" target="_blank"&gt;wrote a post&lt;/a&gt; about using Google SMTP on ColdFusion 7.  In the comments, Paul Lovetech posted how to make sure the correct address is put in the "From" field instead of using the primary account holders e-mail address.  Problem solved.
				
				</description>
						
				
				<category>FYI</category>				
				
				<category>Coldfusion</category>				
				
				<pubDate>Fri, 20 Feb 2009 10:23:04 -0500</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/2/20/Using-GMail-as-Your-SMTP-Provider-and-Sending-EMail-as-Another-User</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Playing with Railo</title>
				<link>http://www.kisdigital.com/index.cfm/2009/2/13/Playing-with-Railo</link>
				<description>
				
				I have spent the last few days setting up my VPS (again) and finally managed to get CentOS setup and Railo Community Edition running.  Mostly I have been doing administrative tasks and I have not had any time to do any actual coding, but I would have to say my first impression is just... wow!
				 [More]
				</description>
						
				
				<category>Railo</category>				
				
				<category>Development</category>				
				
				<pubDate>Fri, 13 Feb 2009 13:23:04 -0500</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/2/13/Playing-with-Railo</guid>
				
			</item>
			
		 	
			</channel></rss>
