Tuesday, March 25, 2003

Apache Module source code included in Updator 3

Damon Cooper (of Macromedia) pointed out today on CF-Linux:

"By the way, you guys knew that source code and build instructions for the Apache web connectors was now included, correct?"

That's cool, I beleive its only on the Unix versions though, I couldn't find it in my windows install. I'll check my linux install when I get around to it. This will hopefully resolve some of the issues people have been having with Apache Magic number's etc.

Tuesday, March 18, 2003

Backing up ColdFusion Datasources

If you want to backup datasources on ColdFusion 5 and below on windows, backup the following registry keys:


Create two reg files, and then just double click the reg file on the server you want to backup on. If your only using OLE DB datasources, then I beleive you only need to backup the first key. Also it may be a good idea to keep a backup of your the entire ColdFusion registry key.

On ColdFusion MX settings are stored in files (typically xml using WDDX) instead of the registry. So you need to backup the files that contain the settings. The file cfusionmx\lib\neo-query.xml stores the datasources.

Editing Text Files

Developers and system administrators often need to open files of types that aren't mapped to a particular program. This ofcourse requires that slow "Open With" window to pop up. A trick I recently found is to add a shortcut to the right click menu, to open files with notepad.

This is done by editing the registry, under HKEY_CLASSES_ROOT\*\ There may or may not be a key under the * called Shell, if its not there create a key called Shell under HKEY_CLASSES_ROOT\*\. Under the Shell key create a key called Notepad, and under notepad create a key called Command. So now you shold be in HKEY_CLASSES_ROOT\*\Shell\Notepad\Command. Set the value of (Default) in the Command key to be notepad %1 or the path to another text editor.

Now when you right click on any file there will be a item in the menu called Notepad, that you can use to open the file with notepad.

Saturday, March 15, 2003

Server side Flash Detection

It would be useful if it worked reliably. According to the Flash 6 release notes "The player installation process now configures the browser to add the Flash MIME-type (application/x-shockwave-flash) to the HTTP Accept header. This enables server-side Flash Player detection." This worked fine on Internet Explorer on Windows, but with Netscape 7.02 using the flash player that comes with it, it doesn't add the header.

Here's some ColdFusion code to test this out:

<cfdump var="#GetHTTPRequestData()#">

<cfset req = GetHttpRequestData()>
<cfif req.headers.accept contains "application/x-shockwave-flash">
You have Flash 6 or above.

Additionally the HTTP accept header sent by IE when you reload the page is just "*/*", causing potential problems even if the header was present on all browsers.

Server side flash validation would be very useful, especially for remoting apps where Flash 6 is requeired anyways. It would have been a clean way to perhaps display a HTML version of the application.

I will test this out some more next week (I'm curious how it will work on Linux) when we get back to the states.

Thursday, March 13, 2003

Heading North
I'm heading to Toronto today for MXNorth. There will also be two other people from CFDEV there (Greg, and Rob). We are sponsering Friday's lunch, and we also have a booth, so stop by and chat with us.

Thursday, March 06, 2003

Macromedia got a new site

I realize I'm a day late on the news here, but I'm quite impressed with the amount of feedback Macromedia's new web site has generated. Just about every mailing list I'm on has a large tangent oriented thread that started with a mention of the new site. I wish I could generate that much feedback when I redesign a web site (did you notice I changed the top graphic of cfdev.com about a week ago, no one noticed, it was a subtle change).

Anyways I think it is a positive step for Macromedia, and the technologies they push. It's great as a developer to see Macromedia finally using their own technologies. I'm sure they learned a lot about their products while developing applications using them, I know I have found that to be the case with reguards to products I have built.