Two simple ColdFusion calendar outputs

  • October 26, 2009
  • James Skemp
Here's two rough drafts of calendars created via ColdFusion (7, but I believe 6.1 would have the same functionality). Tables-based <cfparam name="URL.CalendarMonth" default="#Month(now())#" type="integer" /> <cfparam name="URL.CalendarYear" default="#Year(now())#" type="integer" /> <cfif URL.CalendarMonth LT 1 OR URL.CalendarMonth GT 12> <cfset URL.CalendarMonth = Month(now()) /> </cfif> <cfset VARIABLES.Calendar.StartDate = CreateDate(URL.CalendarYear, URL.CalendarMonth, 1) /> <table style="width:375px;" summary="Calendar of events for <cfoutput>#DateFormat(VARIABLES.Calendar.StartDate, 'mmmm yyyy')#</cfoutput>."> <thead> <tr> <th colspan="7"><cfoutput>#DateFormat(VARIABLES.Calendar.StartDate, "mmmm yyyy")#</cfoutput></th> </tr> <tr> <th>S</th> <th>M</th> <th>T</th> <th>W</th> <th>Th</th> <th>F</th> <th>S</th> </tr> </thead> <tbody> <cfloop from="

Read More

ColdFusion: cfscript to determine if variable exists and output html-escaped

  • October 8, 2009
  • James Skemp
There may be an easier way to do this in ColdFusion, but I finally created a function to determine whether a variable exists and if it does, returns in, all html-escaped. <cfscript> // Checks the passed CF variable to see if it exists, and if it does, outputs a trimmed and html-ready version of the value. function checkForValueOutput(data) { if (IsDefined(data)) { return HtmlEditFormat(Trim(Evaluate(data))); } else { return ""; } } </cfscript> (Obviously, this can rather easily be converted to a function.

Read More

Collection down after opening - resolution

  • June 16, 2008
  • James Skemp
We've been running into an issue, off and on, with ColdFusion MX 7.0.2 having issues with Verity collections. During one of our nightly jobs, two Verity collections are purged, through ColdFusion, and then re-built.  Sometimes this will bring the collection down, resulting in a message like the following. Collection down after opening (10) Using the mdvdk executable, you can get some information about the collection, and even bring it back up.

Read More

Regular Expression tester - ColdFusion

  • January 10, 2008
  • James Skemp
I stumbled upon some code I had written back in September, for testing regular expressions. This uses ColdFusion, and is currently 'running' on ColdFusion MX 6.1 and ColdFusion 7.0. It's a pity to not make it available, since it's such an easy template ... <!--- --- --- DESCRIPTION:  Basic way to test a regular expression. CALLED BY: ??? CALLS: ??? ASSUMPTIONS: ??? MODIFICATION HISTORY: DATE USER ACTION 09/24/2007 J.Skemp Created template.

Read More

Quickie: Install ColdFusion 7.02 on Ubuntu 7.04 with Apache 2.2.4

  • June 15, 2007
  • James Skemp
Ubuntu 6.10(Edgy Eft) Apache2, PHP5, MySQL & Coldfusion Install Howto provided some inspiration, with changes made as necessary (per my Apache 2.2.4 installation). Downloaded 7.02 Developer Edition from Adobe (coldfusion-702-lin.bin) to src directory. cp coldfusion-702-lin.bin coldfusion.bak cat coldfusion.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > coldfusion-702-lin.bin sudo sh coldfusion-702-lin.bin Server Configuration. Choose a server configuration. Choose Apache. httpd.conf directory = /usr/local/apache2/conf Program binary = /usr/local/apache2/bin/httpd (default) Control file = /usr/local/apache2/bin/apachectl (default)

Read More

ColdFusion MX 7 hosting, for free?

  • November 12, 2006
  • James Skemp
A couple of years ago, it was possible, it seems, to get free ColdFusion hosting. Of course, you had to show some advertising, I'm sure, but nonetheless ... A short while ago, say a year, I found out about CFDeveloper which offers ColdFusion hosting for both a recurring charge, as well as one flat, and low, fee. The one-time charge will give you 10 MB of disk space, and 500 MB of bandwidth, with one Access database available.

Read More

Is it past time for Microsoft to open IIS?

  • September 23, 2006
  • James Skemp
There's a reason PHP and Apache are so popular on the Web. It's the same reason that most beginner's, especially those that have no formal training, start with these technologies. In a word, both technologies are not only open source, but free to use. With the right guide, a user can be up and running with Apache and PHP in a couple of hours. Unfortunately, Microsoft's IIS (Internet Information Services) is something that few home-grown Web users have the honour of using.

Read More

Installing Apache 2.0.59 to a Windows-based computer, locally: Part 4

  • August 28, 2006
  • James Skemp
In the previous three parts of this guide, we setup Apache 2.0.59 and then created the necessary connections to use ActivePerl, mod_perl, ColdFusion MX 6.1, ColdFusion MX 7.0.2, PHP 4.4.2, PHP 5.1.4, MySQL 4.1.18, and PostgreSQL 8.1.3. This time, we're going to bring everything together by creating a number of batch files to fairly easily switch between various Web server setups. What is a batch file? A batch file is basically a way to run a number of Windows prompts at once.

Read More

Installing Apache 2.0.59 to a Windows-based computer, locally: Part 3

  • August 26, 2006
  • James Skemp
In Part 1 of this Apache 2.0.59 guide, we setup Apache 2.0.59 on a Windows XP SP2 machine. We also setup Perl and mod_perl, attempting to mimic our Apache 1.3.34 install. In Part 2 of this Apache 2.0.59 guide, we setup ColdFusion MX 6.1 and 7.0. This time, we'll be continuing in our quest by adding support for both PHP 4 and PHP 5. In previous guides, we installed PHP 4 and PHP 5, so if you need to install either one, do so with the above directions.

Read More

Installing Apache 2.0.59 to a Windows-based computer, locally: Part 2

  • August 25, 2006
  • James Skemp

In Part 1 of this Apache 2.0.59 guide, we setup Apache 2.0.59 on a Windows XP SP2 machine. We also setup Perl and mod_perl, attempting to mimic our Apache 1.3.34 install. This time, we'll be continuing in our quest by installing ColdFusion MX 6.1 and 7.

Read More

Upgrading our installation of ColdFusion MX 7.0.1 on a local Windows-based, Apache, server

  • July 12, 2006
  • James Skemp
In a previous guide, we installed ColdFusion MX 6.1 and ColdFusion MX 7.0.1. In this guide, we'll be leaving our installation of ColdFusion MX 6.1, and upgrading our installation of ColdFusion MX 7.0.1 to 7.0.2. Downloading the updater ColdFusion MX 7.0.2 can either be downloaded as a full installer, or as a simple updater. Since we've already installed 7.0.1, we can just use the updater. Go to http://www.adobe.com/support/coldfusion/downloads_updates.html and download the current updater, ColdFusion MX 7 Updater 2 (7.

Read More

XML parsing with PHP (and ColdFusion) and /ROOT

  • April 20, 2006
  • James Skemp
Last night, I was working through a great tutorial that steps through how to create a basic XML parser in PHP. Unfortunately, what I was going to use it for (a local Attention Recorder parser) isn't going to be possible, since the extension's XML isn't quite valid. I was hoping to at least get /ROOT Vaults to work today, in that case, but no dice on support.  So, I'll be attempting to reset my password once again, in the hope that it was just a two day problem .

Read More

Installing ColdFusion MX 7.0.1 on a local Windows-based, Apache, server

  • March 31, 2006
  • James Skemp
Note: For information on updating to ColdFusion MX 7.0.2, see Upgrading our installation of ColdFusion MX 7.0.1 on a local Windows-based, Apache, server. Update: October 10, 2006 @ 7:11 pm - Thanks to Michael Bryce for his helpful comments regarding this documentation. In this article, we'll be walking through an installation of ColdFusion MX 7.0.1, Developer's Edition. Since we've already covered the installation of ColdFusion MX 6.

Read More

Adding PostgreSQL connectivity to ColdFusion MX on a local Windows-based, Apache, server

  • March 19, 2006
  • James Skemp
Having already added MySQL support for ColdFusion MX, it's time to look at adding PostgreSQL. For many of the same reasons we installed PostgreSQL with PHP, we'll be doing this to add to our potential resources. However, unlike our connection of MySQL with ColdFusion MX, we'll need to install some additional features to ColdFusion MX. (This guide assumes you've already installed PostgreSQL.) Downloading and installing the JDBC Driver The first thing we'll need to do is install a special driver for ColdFusion.

Read More

Adding MySQL connectivity to ColdFusion MX on a local Windows-based, Apache, server

  • March 18, 2006
  • James Skemp
Until now, we've yet to setup a connection to MySQL from ColdFusion MX. This has meant that while we can do cool database things in PHP (like WordPress), we can't in ColdFusion. Until now. This time, we'll be setting up MySQL 4.1.18 and ColdFusion MX 6.1 on our local server. Because of some of the choices that we've made before, this installation is going to be fairly quick. Setting up MySQL database and user First, we'll need to setup a MySQL database and user for ColdFusion.

Read More

Installing ColdFusion on a local Windows-based, Apache, server

  • February 27, 2006
  • James Skemp

Note: For information on installing, or upgrading to ColdFusion MX 7.0.1, see Installing ColdFusion MX 7.0.1 on a local Windows-based, Apache, server.

In this tutorial, we'll be working through an installation of ColdFusion MX 6.1, Developer's Edition, on a local, Windows-based, Apache server. On this server, we've setup Apache, PHP, and MySQL, but will also want to have the ability to work with ColdFusion code (however, not necessarily on the same sites that we'll be using PHP). We'll be doing this to experience a more corporate Web-programming language – corporate primarily because of the costs associated with ColdFusion.

Read More

A local, Apache Web server, on a Windows XP computer

  • February 27, 2006
  • James Skemp
My intention is to write a number of guides that will help someone build a functional Web server for testing purposes. Since Windows is fairly popular, I've decided to outline how to install Web server programs on it. Since Apache is both powerful and free, I've opted to use it as the core, instead of IIS, or the like. I also plan on keeping the various technologies up-to-date, yet continuing to provide the instructions for past versions used, just in case.

Read More