Coldfish test

This is a test of Coldfish in BlogCFC on Bludragon JX 7.0x.

--UPDATE-- I never did get Coldfish working with BlueDragon. However the code below may be useful to someone. It might even be a hidden cf_gem.

view plain print about
1<cffunction name="stripTags" access="public" output="false" returntype="string" hint="Remove all HTML tags from string">
2    <cfargument name="string" type="any" required="true" hint="String to clean"/>
3    <cfset var pattern = "<[^>]*>">

4    <cfreturn REReplaceNoCase(arguments.string, pattern, "" , "ALL")>
5</cffunction>

view plain print about
1<!--- ##################################################################
2# PCASE #
3# receive a string of data in any case and return the string #
4# in proper case format #
5# return data string #
6######################################################################## --->

7<cffunction name="PCase" access="public" output="false" returntype="String" hint="receive a string of data in any case and return the string in proper case format">
8    <cfargument name="string" default="" required="true" hint="string to alter">
9    <cfscript>
10        var listlen = listlen(arguments.string," ");
11        var return_string = '';
12        var pos = 0;
13        for (pos=1;pos lte listlen;pos=pos+1) {
14            if lenn(ListGetAt(arguments.string,pos," ")) gt "1") {
15                return_string = return_string & Ucase(left(ListGetAt(arguments.string,pos," "), 1)) & LCase(right(ListGetAt(arguments.string,pos," "), len(ListGetAt(arguments.string,pos," "))-1)) & " ";
16            } else {
17                return_string = return_string & Ucase(left(ListGetAt(arguments.string,pos," "), 1)) & " ";
18            }
19        }
20        return Trim(return_string);
21    
</cfscript>    
22</cffunction>

How to Tune the JVM Part 1

How to Tune the JVM for High Availability Coldfusion Servers: Part 1

You tune your code, you tune your queries (I hope), you may even tune your guitar, but I bet you have never tuned your JVM.  

Why should you?

Your ColdFusion installation does not run directly on your server that's why.  ColdFusion runs in the Java Virtual machine.  Essentially the JVM is a virtual server (ie. the VM part of JVM) and if this virtual machine is not setup properly your ColdFusion installation may not perform as well as it should and may not even run at all. When speaking with key people from Adobe about the JVM I found out the JVM ColdFusion file (jvm.config) is shipped with a known to run basic configuration, but it is by no means ready to run under high demand situations.  For those saying, but 'Shouldn't ColdFusion do that?' or 'Why should I have to tune the JVM?'  The anwser is No, it shouldn't.  And you have to configure the OS of any computer you own in order to get it to run properly the same is true with any VM you may want to use including the JVM.  Remember the old days of DOS when you had to configure your config.sys file to get your brand new 8bit Soundblaster card to work?  Or maybe you've used a Linux distro. In either case you had to edit text configuration files to get everything just right. 

So, what happens when you don't tune the JVM.  You most likely already know and that's why you're reading this blog post. Ask yourself what happens when your business or website becomes successful and your server fails routinely?  You loose business that's what happens. If that isn't incentive enough I don't know what else to tell you.

What are the symptoms of an incorrectly tuned JVM?

They can be anything from slow performance, regular pauses to page processing to random and frequent JVM crashes.  The worst that can happen is your website won't even be able to stay running for a few minutes under load.  Typically I see posts with subjects like 'Help, ColdFusion keeps crashing' or 'My ColdFusion keeps hangimg'.  I'm here to tell you it's not ColdFusion.  It's either the JVM, the DB, network connections or your code.  Today we'll focus on the JVM.

[More]

Who What and Why

Who What and Why

Every blog needs a first post. Well here's mine. I hope to answer those questions and a few others to help you understand what or why I am blogging. And it will help me understand why I am doing this. I hope.

Who?
My name is Wil Genovese and I've been using CFML since 1998. There, now I've confessed. I started with the web in 1996, but I started programming in 1984 and had been BBSing since 1992. I started using Homesite 1.5 in 1996 and I actually paid Nick Bradbury $25 dollars for version 2.0. I became active on Nick's Homesite support forums and continued on the forums when Allaire bought Homesite and hired Nick. I was invited to be member of Team Allaire in 1997 or 1998. I can't remember which. Around summer of 1998 I started learning ColdFusion 3.0. By December of 1998 I had my first ColdFusion job and I've been coding CFML ever since. Almost, there was a year of PHP when a former employer switched over. I am now a Sr. Web Application Programmer. My side skills include Linux systems administration and DB skills relating to PostgreSQL server. I run my own servers from my home which is where this blog and the rest of my websites, email, DB, file, DNS and svn servers are located. Why do I do that? Because it's fun! What else do you expect from geek.

So, what your seeing is BlogCFC running on Bluedragon JX on Centos 4.6 BlueDragon JX 64Bit on 64Bit Centos 5.2 connected to PostgreSQL 8.3 on 64 bit Centos 5.2.  It took very little work to modify BlogCFC to run against PostgreSQL.  I have the sql script for PostgreSQL and the modified blog.cfc if anyone wants.

My wife and I are also the owners of Christian Music Entertainment Group, LLC and I code and host Christianmp3.com. We intend to provide a retail store for independent Christian artists. Unfortunately my day job keeps me too busy to do much work on the Christianmp3 websites.

[More]