New blog skin

I got tired of having an ugly blog and I am absolutely NOT a designer.  So I dug around looking for free blog skins and finally found the one I liked best.  Clean, simple and easy to implement with blogCFC.  It's called Nautica 2.2 Liquid [here].  The photo I used in the header is one my wife shot of the new I-35W bridge that spans the Mississippi river in Minneapolis, MN and replaces the one that collapsed (almost on me) back in 2007.  I'll have to have her get me high-res version of that photo so I can rid of the grain.  You can see the full size bridge photos here.

I still have design elements I want to try, but I'll have to do them another day.  It's 3:15am and my alarm goes off at 6am. Yuk.

Well, at least I won't have the ugliest blog on the net any more.  Now I can get back to ColdFusion coding and not be embarrassed by my ugly blog.

Cheers,

Update: Note to self, never write a blog post at 3 in the morning.  Spelling errors!

Update: 3 Days later I looked at my blog with IE.  I HATE IE!  Back to the CSS to compensate for the weakest link.

Update: I finally have it 'good enough' in IE. 



Scripting ColdFusion Restarts on Linux

A long time ago I wrote a bash shell script to monitor ColdFusion 7 and issue a restart if the CF server hung itself or was about to run out of memory.  I posted info on this script at House of Fusion back then. Today I am still getting requests for this script so I am finally posting the script files to my blog (which I didn't have back then).  


Repost from HOF:

My bash script does two things.  It checks a specified URL for a certain string to see if CF is still responsive and it also calls a cf script which reports back an integer that is the amount of free JVM memory left.

If a hang situation is detected the script will pause for a specified amount of time and

[More]



VMWare Fusion, ColdFusion, Open BlueDragon

I'm very new to the world of running Virtual Servers.  It's a strange concept to me.  Even though I manage many of my own physical servers I'm finding it a little hard to grasp this whole concept.  Given that, I've manged to do two different installs today. Oh, I should mention I'm doing this on my Mac Book Pro with a 2.2Ghz Core Dual and 4Gb of ram.  So far I am finding Fusion, VMWare's only Mac offering, to be easy enough to use.  I did manage to install Ubuntu from the ISO, however the mouse behavior was real odd and I never did get the VMTools installed right.  I have more to learn.

I did find a neat website, elasticserver.com. Elastic Server lets you use a web interface to build your VM appliance stack.  I was able to pick the software I wanted on my 'server'.  I chose Open Blue Dragon, JBOSS,

[More]



See all applications and their sessions

Someone at House of Fusion was asking how to see the sizes of sessions in CF7.  While CF8 has a built in Monitoring API but it can have dangerous overhead load on your application, CF7 does not even have that. 

I had run across the need to see all the applications running on our servers and then all the sessions of each application so I wrote a quick little script that uses the java objects "coldfusion.runtime.ApplicationScopeTracker" and "coldfusion.runtime.SessionTracker" to get all the data I was trying to see.

So here is that little  "Random Tool".  (Click on the Download Icon below.)

*Note: When I write little tools like this I'm usually writing it because there is something I absolutely need to see in order to complete another project. These little tools are not written as projects themselves and therefore may not be very pretty or as full featured as something that I was writing as a complete project. I just needed to get some code running that gave me back the data I needed to see. There are no warranties or promises. If you find is useful then great. If not, oh well. I know the code works on CF8 at the moment. It used to work on CF7, but I do not have a CF7 server anymore so I can not be certain.



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.

<cffunction name="stripTags" access="public" output="false" returntype="string" hint="Remove all HTML tags from string">
   <cfargument name="string" type="any" required="true" hint="String to clean"/>
   <cfset var pattern = "<[^>]*>">
   <cfreturn REReplaceNoCase(arguments.string, pattern, "" , "ALL")>
</cffunction>

<!--- ##################################################################
# PCASE #
# receive a string of data in any case and return the string #
# in proper case format #
# return data string #
######################################################################## --->

<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">
   <cfargument name="string" default="" required="true" hint="string to alter">
   <cfscript>
      var listlen = listlen(arguments.string," ");
      var return_string = '';
      var pos = 0;
      for (pos=1;pos lte listlen;pos=pos+1) {
         if (len(ListGetAt(arguments.string,pos," ")) gt "1") {
            return_string = return_string & Ucase(left(ListGetAt(arguments.string,pos," "), 1)) & LCase(right(ListGetAt(arguments.string,pos," "), len(ListGetAt(arguments.string,pos," "))-1)) & " ";
         } else {
            return_string = return_string & Ucase(left(ListGetAt(arguments.string,pos," "), 1)) & " ";
         }
      }
      return Trim(return_string);
   </cfscript>   
</cffunction>