I am trying to implement REST with ColdFusion FW/1. However I was always getting a 404 error. So I decided that URL Rewriting needed to be setup on the server to handle those type of requests.

I was able to find information on rewrites for Apache, but nothing for the IIS URL Rewrite module.

Here’s what I was able to come up with and it appears to work pretty good. (this is from web.config)

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="RewriteUserFriendlyURL1" stopProcessing="true">
                    <match url="^(.*)$" />
                    <conditions>
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="/index.cfm/{R:1}" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

and this is what should be in your Application.cfc:

component extends="org.corfield.framework" {

	variables.framework = {
		generateSES = true,
  		SESOmitIndex = true
	};

}

Speed

Posted: January 8, 2014 in Uncategorized

comichighlighting1

Image  —  Posted: October 4, 2013 in Uncategorized

Technical Debt and Messy Code

Posted: October 3, 2013 in Uncategorized

Today, I found a great meme that represents what my company has to deal with often: a client wanting to put in place a new feature on top of the duct taped code. While we’re happy to do make it happen, this is about what it’s like in many cases.

wrecked_house

How Things Get Fixed

Posted: September 24, 2013 in Uncategorized

“Jobs” Movie

Posted: August 16, 2013 in Uncategorized
Tags: ,

ashton-kutcher-as-steve-jobsI went to go see “Jobs” the movie last night. Let me first say that I paid $9.50 for a ticket and $10.50 for a Vitamin Water and a small popcorn. The movie was supposed to start at 9:00, but for 22 minutes I had to sit through car and soda commercials then a couple of trailers. What in the world!? (yeah, I don’t frequent the theaters)

I became a fan of Ashton in “Butterfly Effect”. His real name is Chris Ashton Kutcher by the way. His Steve Jobs character was outstanding. I’m not sure it’ll win an Academy Award, but he will probably be nominated for it. If it weren’t for his distinctive voice, some of the shots you could swear it was Steve himself.

There was something missing from the movie. It very well could be from the high expectations many movies set these days though. But it seemed kind of dull. I can’t put my finger on it.

I believe there’s another Steve Jobs movie coming along, I’m looking forward to seeing that one as I believe Woz is consulting on the movie.