Via Con Dios, Geocities

Yahoo has officially pulled the plug on Geocities.

http://www.sitepoint.com/blogs/2009/05/03/rip-geocities/

I learned HTML making my Geocities site. I would love to see that brilliant collection of animated gifs and snazzy javascripts, but alas, I cannot find it anywhere in my archives. Even though the site I had there was terrible, I did learn some of the very basics constructing it.

Although I had long forgotten Geocities I definitely felt a little nostalgic when I learned of its demise.  Via Con Dios, Geocities.

Anyone else a little misty eyed?

Adobe CS4 Download File Too Large For USB Sandisk Cruzer

Adobe CS4 Download File Too Large For USB Sandisk Cruzer

Part I
I finally took the plunge and bought the upgrade to CS4 yesterday from Adobe.¬† Downloading the gi-normous 4.8 GB file was like watching my cat try to eat a chijuajua.¬† Painful.¬† I guess I could have downloaded all the trials and entered the license code, but it just feels more “official” to download the single file.¬† At $599 I need “official”.¬† Update: I moved my downloading operation to my work computer since it was dying at home.¬† Once I finally got the file downloaded though I encountered a second problem.


Part II
I have a Sandisk Cruzer (8 GB).¬† However, after trying to put the 4.8 GB file on it 10 times and getting “The disk in the destination drive is full, please insert a new disk to continue” each time I finally did some googling and realized that the problem was that by default the Cruzer is formated to FAT32 and the maximum file size for FAT32 is 4GB.¬† Here is how to reformat to NTFS.

Change background color of fckeditor / ColdFusion rich textarea

Preface: I work on a project for my office that is hosted by a third party.  Therefore, I do not have access to all the inner workings of ColdFusion.  Specifically I do not have access to the fck_editorarea.css file.

For a new form in the project I need to add a rich textarea.¬† The rich textarea will sit atop a div with a background color so I need to change the textarea’s background color to white.¬† If I can’t access fck_editorarea.css to change the style what can I do?¬† I can change it via the DOM with JavaScript.¬† For kicks I also added a border.¬† Place the following script just before the </html> tag.

<script type="text/javascript">
fckItem=document.getElementById('NEWSBODY___Frame');
// change bgcolor
fckItem.style.backgroundColor="#FFFFFF";
// add a border
fckItem.style.border="1px solid #0A0A4F";
</script>

Easy enough.

Can a dropdown box be imperialistic?

usa! usa! usa! 

I¬†recently received a¬†request from a management member to put “United States of America” at the top of the countries dropdown list for our user registration process.¬† While this may seem an innocuous change to that person we do have a lot (maybe 1/3) of users not born in the U.S.¬†¬† I know it used to be popular to put the good¬†ole¬†U S of A atop of dropdown lists for its vast superiority “convenience” but it seems somewhat “politically incorrect” or “imperialistic” to me.¬† Any thoughts?

Rename a Subversion Repository

The scenario: You have a folder called code-repo where you keep all your svn repositories (let’s assume it is located in the root c:/ on a Windoze system).  You have a repository named xproject.  For some reason you need to rename the repository.  Let’s say it needs to by yproject.  There are 3 steps to rename the repository and retain all the history you have in the repo.

  1. Create an svn dump file of the xproject repo: svnadmin dump C:\code-repo\xproject > c:\xproject.dmp
  2. Create the new yproject svn repo: svnadmin create C:\code-repo\yproject
  3. Load the dump of the old repository into the new one: svnadmin load C:\code-repo\yproject < C:\xproject.dmp

Sweet.

Who’s down with OPPM

I have struggled for some time now with an expanding workload.  I direct a lot of projects for a couple of different business entities.  Since I have yet to find a way to disrupt the time space continuum and add more hours to the day I am ever searching for ways to stay focused and cram more into a 24 hour day.

Enter the OPPM.

one page project manager for it projects

The OPPM (One Page Project Manager) is the most effective tool I have found yet for project tracking/communication.  The real genius of it is its simplicity.  It literally is a one page document that can be easily interpreted by the boss, the project stakeholders, the managers, or just about anyone.  All you need is about 2-5 minutes to explain it to them once.  Where can I get more information you ask?

The OPPM (One Page Project Manager) website is a good start.

Then buy the book and read it.¬† The one I read is the one specifically geared for IT projects.¬† It’s about 125 pages and you can read it (and more importantly digest it) over a weekend.¬† Actually, once you read the first two chapters of the book you’ll be up and running.¬† Although I recommend reading the whole thing to learn the finer points.¬† I found the analysis of team member personalities very interesting (I’m the one with lots of unfinished books on the nightstand).

“But dude”, you say.¬† “I just dropped a wad of cash on MS Project.”¬† Don’t fret my friend.¬† You probably still need it to manage the nitty gritty.¬† And don’t throw out your Outlook task lists.¬† You can still use them.¬† The OPPM is meant to augment standard project management tools and methods.¬† The power of OPPM shines in meetings when people actually UNDERSTAND what is going on with the project without having to be a PMP.

Get it.  Use it.  You will be glad.

ColdFusion Idol Worship

When I was a kid I idolized athletes. In college I idolized musicians. As a middle aged dude I idolize superior programmers.

Today I achieved something I am very excited about. I got a couple of lines (and one of those is a comment) of code included in one of Ray Camden’s projects at RIAForge. The project is GoogleCal. It’s a ColdFusion CFC for interacting with Google’s Calendar service. My tiny, wee contribution: helping to submit an “all day” event. It is such a small, small, small, small, small (keep going), minuscule piece of Ray’s project, but just to be able to contribute ANYthing to someone who gives so much to the CF community is freaking AWESOME.

Check it GoogleCal out here.

Using Dreamweaver to work with .cfmail files

I had a BIG problem recently at a hosting company for a project I work on. They had “something go wrong” during an upgrade to ColdFusion 8 and they lost our site’s settings from ColdFusion 7. Rather than wasting valuable time trying to get them to restore a backup and redo the upgrade I forged on trying to set everything right.

One of the problems I came across was that the hosting company set the mail server to be a different one than what we had for CF7. Why did this matter? Well, there were about 300 messages sitting in the “Undelivr” folder that needed to go out. In each of those messages was the old (now incorrect) mail server info. Since I was under the gun to get the mail out I pulled them all down via FTP to parse through them with Dreamweaver.

I used this article to configure Dreamweaver to edit my extensions.txt file to be able to open and perform search and replace on .cfmail files:

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16410

Here is a what the extensions.txt file looks like:

Dreamweaver\'s extensions.txt file

Once I got all of the .cfmail files updated, I FTP’d them back into the spool folder for re-processing. No dice. ColdFusion moved it all back to the “Undelivr” folder with a cryptic error:

The ColdFusion Mail Spool Encountered An Invalid Spool File In The Spool Directory. The invalid file MailXXXXXX.cfmail was moved to the undeliverable directory.

The next step… Hot Fix. Read about it here.

After the Hot Fix I again dropped the .cfmail files back into the spool folder for re-processing. This time… Sweet Success.

Enabling SSL on the ColdFusion 8 built-in web server

This tutorial assumes default install location for ColdFusion 8 on Windows XP.

The first thing you need to do is to create a keystore. This can be done with the keytool utility. I used the one that is part of ColdFusion 8.

Open a command prompt.

Execute the following command:
cd C:\ColdFusion8\runtime\jre\bin

Create the keystore with this command:
keytool -genkey -dname "cn=127.0.0.1, ou=CF, o=cfchimp, L=Decatur, ST=GA, C=US" -keyalg rsa -keystore mykey

If you have previously configured a keystore you might run into this error:
keytool error: java.lang.Exception: Key pair not generated, alias already exists

If you got the “already exists” error run this command to list the keystores:
keytool -list -v | more

If you got the “already exists” error run this command to delete the keystore:
keytool -delete -alias mykey

If you got the “already exists” error re-run the command to create the keystore.

Enter in a password when prompted (2 times)

Move the keystore file (mykey) to C:\ColdFusion8\runtime\lib\

Edit the config file C:\ColdFusion8\runtime\servers\coldfusion\SERVER-INF\jrun.xml with an xml editor of choice. This file is VERY sensitive so be sure to not screw up the syntax of it. You should probably make a copy of it before you edit it.


<!-- Uncomment this service to use SSL with the JRun Web Server
Note that you MUST create your own keystore before using this service -->
<service class="jrun.servlet.http.SSLService" name="SSLService">
<attribute name="enabled">true </attribute>
<attribute name="interface">* </attribute>
<attribute name="port">9100 </attribute>
<attribute name="keyStore">{jrun.rootdir}/lib/mykey </attribute>
<attribute name="keyStorePassword">mypassword </attribute>
<attribute name="trustStore">{jrun.rootdir}/lib/trustStore </attribute>
<attribute name="socketFactoryName">jrun.servlet.http.JRunSSLServerSocketFactory </attribute>
</service>

Restart the ColdFusion8 application service.

Create a test page in the ColdFusion 8 wwwroot and opening it in a web browser using: https://127.0.0.1:9100/testpage.cfm

You should be good to go.

REFERENCES:
For some keytool commands: http://www.instantssl.com/ssl-certificate-support/server_faq/ssl-server-certificate-java.html
Adobe instructions: http://www.adobe.com/support/coldfusion/using/ssl_with_cf_web_server/ssl_with_cf_web_server03.html