Creative Juices Bo. Co.

Satisfy Your Thirst For Something Refreshing!

Using RegEx to Remove Line-Breaks, White-Space From HTML (Except PRE Tags)

Remove White-Space from HTML Except from <pre>'s

If you have ever used ColdFusion's function (<cfprocessingdirective suppresswhitespace="yes">), you may have noticed that it strips white-space formatting from any HTML <pre>'s you may have in the code. 99% of the time you would never have this problem, but if you have a programming blog, this can be some what of a hassle.

Well, as I was re-writing my site, I decided to take up the challenge and create a function using RegEx that ignore's anything in-between the <pre>'s. It will also remove any comments, but since I was using this to strip all the white-space out of my generated HTML, I soon realized this wasn't working to well with my conditional comments for Internet Explorer. Oh well, at least it's in here for future use. Let me know if you have any problems.

read full article... Website Redesign website redesign

Yap, cool coftware and now a Cool website to go along with it!

Yap is a pioneer in cloud-based automated speech recognition. And when they needed to update their website, they came to the pioneer in web-design and development... well maybe not a pioneer, but I think we did a pretty nifty job.

I'm as proud of the design as I am as what we put under the hood. Of course, you can't see that aspect of it, but trust me, there's some pretty cool content management going on here. All the code is optimized to ensure a small footprint and quick load times.

Check it out at and let me know what you think.

read full article...

ColdFusion Error

Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.

I recently started getting this error on most of my client's websites that were being hosted on a ColdFusion shared server. At first, I thought it had to do with something I was doing with a cfquery inside the application.cfc. Doing a little googling on the subject, I soon realized that this was my old friend "Java.lang.NullPointerException" in disguise.

The Solution

To fix this problem you need to have the server admin disable the ColdFusion admin setting "Maintain connections with the Coldfusion Admin". After that is set properly, you should no longer see this message.

read full article...

Help Speed Up Your Website Load Time Using GZIP!

Using GZIP Compression with ColdFusion

As some of you might of heard, Google recently announced they are factoring in site speed as a criteria in their web search ranking. I have about 30 websites being monitored by Google's Web Analytics and over the past month or so I have noticed a significant drop in all their traffic. Now, I'm not 100% sure if this has to do with the new ranking rule or the fact that most US schools are out for summer, but either way this has me a little perplexed and I'm starting to wonder if this has anything to do with my code.

Reading up on a bunch of speed enhancement tips, the one thing I kept coming across is to use HTTP Header Compression. Basically, if the web browser supports it, you can GZIP your Scripts and CSS files and serve them instead of the uncompressed text files. Typically you can save over half the normal file size by doing this. Since I use ColdFusion for most of my sites, I had to find a way to integrate GZIP with ColdFusion. Here's what I came up with.

read full article...

Installing Railo 3.1 On Mac OS X 10.6 (Snow Leopard)

A Step-By-Step Guide To Install Railo Server 3.1 On Mac OS X 10.6 (Snow Leopard)

This week I went ahead and purchased a Mac Mini to replace my very old Apple G4 server. One of the first things I had to do was to get Railo 3.1 to run on it. You may recall, I already created a nice blog entry called Installing Railo 3.1 On Mac OS X 10.5 (Leopard), to help people get Railo running on Mac OS X 1.5. I really didn't think that installing it on 10.6 (Snow Leopard) would be that difficult, but I was wrong.

First of all, the original source of my guide was based off of another blog entry by Luis Majano. But apparently, his website had changed, and as of this writing, was not even working. I remembered he had a nice entry on enabling 64 bit mode when installing, but without his reference, I was SOL and on my own. But fear not my fellow Railo fans, because I spent a better part of a day figuring it out.

read full article...
Page: 123456