No Blogs from CFUnited

ColdFusion

entryImageIn case someone out there was wondering, I had to give up on blogging my sessions from CFUnited when my laptop decided to start spazzing out. I'm not sure if I need to download more updates or what, but it would randomly rev my fan, and it was making enough racket that I had to stop using it during sessions.

So much for that.

I did have a blast though. I went 4-6 for stumping Adobe guys on why has a password attribute, and I saw some awesome presentations, as usual. Most notible where those by Peter Bell, who's talks on RAD OO and Code Generation where very nice, and Marc Esher of MXUnit who did an awesome presentation on Ant and its role in managing program deployment.

Leveraging Popular Frameworks

frameworks, ColdFusion

This contains info from the CFUnited talk on this topic.

This talk covers MVC, Factories, ORM Introducing a quick start application: AppBooster

Domain & Business objects for each Entity.

Business Object (bean) - people, places, and things, the nouns in your system. Data Access Objects (DAO) - read and save objects Gateways - Objects which return queries Service Object (SO) - your API (controllers do not touch BO, DAO, or Gateway) Controllers - talk to your service layer.

Q: Where is validation at? A: In the BO, or the SO.

Frameworks and Software Layers

DB Layer (ORM) Transfer, Reactor

continue later

ColdFusion Certification

ColdFusion

So, its official:
ColdFusion Certification

Catching Your Own Monkey

Funny, ColdFusion

entryImageLast night myself and a couple of coworkers got together to do a study session for our ColdFusion Certification test. One of the topics we discussed was error handling, and the question of how to use them came up...

More

CFRegEx Tester Updated

ColdFusion

I updated the CFRegEx Tester to catch and display error messages generated ColdFusion. Sorry to whoever it was that was hitting error messages.

IsDate() and SQL Server

SQL Server, ColdFusion

I don't know about you, but my company uses the IsDate() function for a lot of simple validation of date inputs, and it works fairly well for the most part. The only problem I have with it is that when paired with SQL Server (2000 or 2005), it still can't capture all invalid dates.

The date 'January 5, 753' is a valid date, but attempting to insert it into a SQL Server datetime object throws an error because valid dates for SQL Server are between January 1, 1753 and December 31, 9999. Dates above the year 9999 are caught by IsDate(), but the lower bound is not.

<cffunction name="IsSQLServerDate" returntype="boolean" output="false">
   <cfargument name="date" type="date" required="true"/>
   <cfargument name="type" type="string" required="false" default="datetime"/>

   <cfswitch expression="#arguments.type#">
      <cfcase value="datetime">
         <cfreturn IsDate(arguments.date) AND Year(arguments.date) gte 1753 />
      </cfcase>
      <cfcase value="smalldatetime">
         <cfreturn IsDate(arguments.date) AND DateCompare(arguments.date, '1/1/1900') gte 0 AND DateCompare(arguments.date, '6/2/2079') lte 0 />
      </cfcase>
   </cfswitch>
</cffunction>

Nothing that someone else couldn't write, but useful. to save headaches.

ColdFusion Regular Expression Tester

ColdFusion

I built a simple regular expression tester for ColdFusion to test out how CF matches regular expressions (not well). You can find the CFRegEx Tester at... well at that link.

CF is not for Cookies

ColdFusion

entryImageWhile ColdFusion uses cookies in some sophisticated ways (tracking sessions and what not), I found out today that because CF is case insensitive, it is inept at tracking cookies in certain situations.

More

Could not generate stub objects for web service invocation.

Web Services, ColdFusion

God to I hate this message. There are a 1,001 questions about the cause of this message on the CF 6.1 livedocs for the tag, and none of them have the right answer for my situation. Whats more, I can't find anyone who does have a good solution for CF 7.0 or any version. Click more to read my tale of woe.

More

Transparent Background

cfimage, CF8, Java in ColdFusion, ColdFusion

One of the big frustrations about CF8 image effects, is the lack of any way to get transparent writes or backgrounds. While most people think of transparent as just one more color, when you look at how Java handles pixels, you'll understand why Adobe didn't take the time to do this themselves.

More

Foundeo's Rounded Borders

CF8, ColdFusion

entryImageI know I said that I wouldn't do it, but I've become obsessed with figuring out replicate the rounded borders effect for CF8 that Foundeo included in its Effects CFC. I tried drawing rounded rectangles with large brush strokes to do it, but I keep messing up the diameters... maybe I'm just not getting it right.

Any one have any ideas?

More Entries

Testing YouTube Video content.

If it proves too annoying, I'll get rid of it.

Calendar

Sun Mon Tue Wed Thu Fri Sat
  12345
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31   

Subscribe

Enter your email address to subscribe to this blog.

Archives By Subject

Ajax (1) [RSS]
BlogCFC (2) [RSS]
CF8 (8) [RSS]
cfimage (7) [RSS]
ColdFusion (15) [RSS]
css (5) [RSS]
frameworks (9) [RSS]
Funny (2) [RSS]
Google (1) [RSS]
IIS (1) [RSS]
Java in ColdFusion (4) [RSS]
javascript (7) [RSS]
Licensing (2) [RSS]
Model Glue (2) [RSS]
Projects (3) [RSS]
Prototype (2) [RSS]
Spry (1) [RSS]
SQL Server (2) [RSS]
User Interface Design (1) [RSS]
Web Services (1) [RSS]

RSS