2009

47 posts

SQL Blocking and Client Variable Purge

We've had continual issues with our ColdFusion applications locking up on us. I've spent the last week cleaning out huge tables, creating indexes, and tuning queries, but could never seem to track down what was causing the issue. Today I caught it in the act... As the the applications locked up, I ran the following query in SSMS:

Read more…

Convert IPs to Binary

I'm working on some SQL to search for data based on IPs and IP Ranges. Doing this with character data in the database is horrendous. When searching through millions of records using JOINs with LIKE comparisons, the performance is completely unacceptable. So I'm working on converting the IP addresses to Binary format to do some (hopefully) faster searching.

Read more…

Error when Upgrading to CF9

I finished the installation of our new CF9 license with just one hiccough along the way. I installed CF9 next to CF8 so that we can move clients over to the new CF9 server one at a time and test as we go. After the file installation is finished, CF9 opens the migration wizard to allow you to bring over all of your old CF8 settings. During this process I got the a monstrous cfdump with the following error:

Read more…

IE8, ColdFusion, and Color Profiles

We do a massive amount of image processing on LandsofAmerica.com. Our image processing scripts take uploaded photos from realtors and create multiple versions at different sizes for use throughout our applications. This has been working without a hitch for ages. Unfortunately, IE8 was released...

Read more…

Everything you didn't know about cfdump

My tip this morning about the TOP attribute on the cfdump tag has been pretty popular, which makes me wonder what else people don't know about the cfdump tag. In ColdFusion 7 it was just a variable, a label, top, and whether the dump was expanded or not. ColdFusion 8 added the show, format, hide, keys, metainfo, output, and showUDFs attributes.

Read more…

CF Tip of the day: Speed up dumps with TOP

I do a lot of cfdumps with queries, but always forget to use the top attribute introduced in ColdFusion 8. You can use the top attribute to dump just the top x number of records from your query. When dealing with a wide query 500 rows, dumping the first 10 will give me more than enough information to do what I need to do, without waiting for the browser to finish rendering a huge dump table.

Read more…

SQL Counting with Conditions

Not sure why I never thought of this before (and I know I'm not the first to come to this conclusion judging by Google), but I just figured out how to count records in a query based on their value.

Read more…

Incorrect Variable Values in AjaxOnLoad

I just ran into another goofy Ajax problem with my ColdFusion apps. I have a page using a bound cfdiv to load a form. The form, once submitted, is supposed to take the value of a form field entered on the page and run an AjaxOnLoad event to use that value elsewhere. Here's a simple test to show what I mean.

Read more…

Error Building Struct with CreateUUID

This is more for myself than anyone else, but I hit an odd snag in ColdFusion this morning. I got an error when trying to create a new structure member using a CreateUUID() function and ColdFusion's shorthand structure notation. The following code fails:

Read more…

Authorize.net and ARB Race Conditions

So I've had a problem on a recent project ever since I started using Authorize.net's recurring billing system. While it works fantastically for the most part, I've had issues with canceling subscriptions during their nightly billing process. The issue at hand is that Authorize.net doesn't actually cancel a subscription if a transaction is declined. They leave the subscription active and will just continue to try again and again until the subscription actually ends.

Read more…

ColdFusion, Image Processing, and Memory Spikes

I've been having some serious memory issues with a ColdFusion application that I've narrowed down to CF's image processing functions. Processing no more than 14 megs of images causes a spike of nearly a full gig of RAM while the images are being processed. Here's an example of what's happening when I process images through CF's built in CFImage functionality.

Read more…

Missing Instance Manager in CFusion Instance

UPDATE: Downloading a copy of CFIDE from a production server that was working like it was supposed to fixed the problem. Unfortunately the CFIDE directories are full of encrypted cf files so I have no idea what the difference was. Move along, nothing else to see here...

Read more…

Galleon Forums Installed

I just installed Galleon Forums on our internal user admin for LandsofAmerica.com. It's not open to the public yet, but I built integration to keep our Accounts tables in sync with the Galleon User tables. When a new user is added, or a user is updated, the Galleon User tables also get updated. That way we have a "single signon" capability and user don't have to log in twice.

Read more…

Getting to a Deep Understanding

Nice short article from Hal Helms on what it takes to even start understanding object oriented programming. Just learning the terminology can be excruciating and disheartening. That was my original impetus to create OO Glossary. Unfortunately, I haven't had the time to enter my own definitions, or petition the community to help.

Read more…

Still ACE'ing after all these years

Just got my renewal email from the wonderful folks at Adobe. Looks like I'm good for another year as an Adobe Community Expert. I'm hoping to post more smaller tips and tricks here on the blog, and hopefully get even more involved in the Community this year. And hell, I might even make it to MAX (all fingers crossed).

Read more…

Keychain Access Hangs Solved

After months of having serious issues with Keychain Access hanging my machine for 15 minutes at a time, I finally found the solution. The problem presents itself when you choose to allow a software program to access your keychain after you get the "Software on your computer has changed and wants to access your keychain" dialog. Clicking Allow results in a complete system hang that can only be remedied by a reboot.

Read more…

Why I love ColdFusion

Because my first use of the ColdFusion AutoSuggest control took me 10 minutes to implement. I was doing a cfselect with a bind to load all cities in a state. Unfortunately, with more than 5,000 cities in some states the application was getting seriously bogged down with huge asynchronous http responses in the background.

Read more…

Finding Missing Indexes

I learned yesterday that SQL Server will tell me which indexes it thinks I need to have. Just use these three queries to get a look at what your SQL Server thinks you should be doing to take care of your queries

Read more…