<?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>Mon, 06 Jul 2009 20:41:41 -0400</pubDate>
			<lastBuildDate>Sun, 05 Jul 2009 22:14:00 -0400</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" /><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 22:14:00 -0400</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>Development</category>				
				
				<category>jQuery</category>				
				
				<pubDate>Tue, 05 May 2009 13:36:00 -0400</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/22/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>Coldfusion</category>				
				
				<category>Linux</category>				
				
				<pubDate>Wed, 22 Apr 2009 00:15:00 -0400</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/4/22/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>Coldfusion</category>				
				
				<category>Development</category>				
				
				<category>jQuery</category>				
				
				<pubDate>Tue, 21 Apr 2009 11:46:00 -0400</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>Coldfusion</category>				
				
				<category>Development</category>				
				
				<category>jQuery</category>				
				
				<pubDate>Mon, 13 Apr 2009 16:07:00 -0400</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>Javascript</category>				
				
				<category>Development</category>				
				
				<category>jQuery</category>				
				
				<pubDate>Sun, 12 Apr 2009 13:09:00 -0400</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>Development</category>				
				
				<category>jQuery</category>				
				
				<pubDate>Sun, 05 Apr 2009 12:35:00 -0400</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 11:42:00 -0400</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>WhosOnCFC</category>				
				
				<category>Coldfusion</category>				
				
				<pubDate>Mon, 23 Mar 2009 23:40:00 -0400</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>WhosOnCFC</category>				
				
				<category>Coldfusion</category>				
				
				<category>Development</category>				
				
				<category>Railo</category>				
				
				<pubDate>Sat, 21 Feb 2009 14:56:00 -0400</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>Coldfusion</category>				
				
				<category>FYI</category>				
				
				<pubDate>Fri, 20 Feb 2009 11:30:00 -0400</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>Development</category>				
				
				<category>Railo</category>				
				
				<pubDate>Fri, 13 Feb 2009 14:30:00 -0400</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/2/13/Playing-with-Railo</guid>
				
			</item>
			
			<item>
				<title>Down Time</title>
				<link>http://www.kisdigital.com/index.cfm/2009/1/28/Down-Time</link>
				<description>
				
				More than likely some readers will experience a little down time on my blog and other domains this evening.  We have been doing a little restructuring at the office and will be switching ISPs this evening.

Hopefully things will go smooth and everything should come back up as soon as the DNS cache gets updated. 
				</description>
				
				<category>General</category>				
				
				<category>FYI</category>				
				
				<pubDate>Wed, 28 Jan 2009 14:21:00 -0400</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/1/28/Down-Time</guid>
				
			</item>
			
			<item>
				<title>IT Toolbox: BitDefender Rescue CD</title>
				<link>http://www.kisdigital.com/index.cfm/2009/1/23/IT-Toolbox-BitDefender-Rescue-CD</link>
				<description>
				
				I have been doing some routine maintenance on some of the company issued laptops our employee's use. Basically just doing HD cleanup, making sure all the Windows updates are installed and running a good virus scan on the machines. Generally I trust NAV's auto-protect feature but it is far from infallible.

I was complaining about this on Twitter and &lt;a href="http://www.scottpinkston.org/" target="_blank"&gt;Scott Pinkston&lt;/a&gt; suggested checking out the free &lt;a href="http://download.bitdefender.com/rescue_cd/BitDefenderRescueCD_v2.0.0_07_08_2008.iso" target="_blank"&gt;BitDefender 2008 Rescue Disk CD with Automatic Virus Definition Update&lt;/a&gt; and all I can say is it's freakin sweet!  It had found quite a few more virii than NAV found and that was without even updating the virus definitions.

I suppose I could write a review on it, but it has already been &lt;a href="http://www.techmixer.com/bitdefender-rescue-cd-with-auto-update-virus-definition-features/" target="_blank"&gt;done here&lt;/a&gt;.  Definitely a good tool to have in your IT arsenal.  Thanks for the recommendation Scott. 
				</description>
				
				<category>IT</category>				
				
				<pubDate>Fri, 23 Jan 2009 16:20:00 -0400</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/1/23/IT-Toolbox-BitDefender-Rescue-CD</guid>
				
			</item>
			
			<item>
				<title>Ubuntu on Dell XPS 400 and Dell E196FP Display Revisited</title>
				<link>http://www.kisdigital.com/index.cfm/2009/1/22/Ubuntu-on-Dell-XPS-400-and-Dell-E196FP-Display-Revisited</link>
				<description>
				
				About a month ago I did a post about getting the E196FP working with the X display manager in Ubuntu.  I have done quite a few installations in the mean time playing around with various distributions, desktop managers and what not.  I have managed to streamline the process somewhat.  [More]
				</description>
				
				<category>Linux</category>				
				
				<category>FYI</category>				
				
				<pubDate>Thu, 22 Jan 2009 10:52:00 -0400</pubDate>
				<guid>http://www.kisdigital.com/index.cfm/2009/1/22/Ubuntu-on-Dell-XPS-400-and-Dell-E196FP-Display-Revisited</guid>
				
			</item>
			</channel></rss>
