Sorcerer's Tower

Apache, cPanel and ErrorDocument

If you're using a cPanel-powered Apache server, there's a chance it may not be setup in the best way.

The same issue might manifest itself in two ways: confusing error messages and ignored htaccess directives.

In both cases, the solution is to use the ErrorDocument directive.

Find out more.

Happy Regex Day 2012!

Today was the 1st June, and that means it's Regex Day again!

This annual event was started four years ago by Ben Nadel to celebrate this wonderful (yet often misunderstood) technology, and as usual Ben is running a fun regex competition, with prizes, on his blog.

If that's not enough regex goodness for you, here's a couple of projects you should know about.

First up, there's XRegExp, a library by Steven Levithan which augments JavaScript's native regex functionality with new functionality, and ensures cross-browser compatibility.

For CFML developers, there's cfRegex a replacement regex implemenation providing more power and functionality than CFML's native functions, whilst being easier to work with.

Whatever your level of regex skill, both of these tools are definitely worth checking out.

QueryParam Scanner 0.7.5 Release Candidate

I have just pushed an update of QueryParam Scanner to GitHub, containing various improvements.

This update is on the rc0.7.5 branch, and it'd be nice if people could take it for a spin and make sure there are no issues with it. (There is a zip download for anyone without git.)

The visible changes which you might notice are:

However, there are also significant under-the-hood changes. I removed my obsolete "Java Regex Utils" library (replacing it with the object part of cfRegex), and made a number of little code clean-ups.

A result of these changes is that qpscanner rc0.7.5 appears to be almost twice as fast as previous versions.

If you have any feedback, please feel free to contact me via GitHub, and similarly if you find any bugs then please raise them on the issue tracker.

Why Railo 3.3?

It's been over two and a half years since my last "why railo" post, and - despite Railo "only" being 0.3 versions on - there's been a lot of improvements!

In fact, because it's been so long, a few of the things here are not new with v3.3 (though they are all new since the previous article), but are still great features that deserve mentioning!

Read on to find out what my ten favourite new feature are.

CFML on Wikipedia

If you've ever looked at the CFML related articles on Wikipedia, you can't fail to have noticed that, especially when compared to other programming articles, they're not very good.

When somebody puts "coldfusion" or "cfml" into Google, they will almost certainly see the respective Wikipedia pages amongst the top three results, but when they follow those links they're unlikely to get a very good impression!

Not only could both these pages themselves benefit significantly from being cleaned up and improved, but there are only a few frameworks and tools that even have pages, and most of what does exist are very unencyclopaedic stubs. And this doesn't even consider the generic programming pages that often don't even mention CFML.

Take a look at the CFML category page - does that category contain everything you would expect an encyclopaedia to cover about CFML? Check the pages for the frameworks you are familiar with - do they go into the level of detail you would expect, and tell you everything you'd want to know if you were entirely new to CFML?

If you agree that the CFML presence on Wikipedia can and should be improved, and it's up to the CFML community to do it, then read on to find out how you can help fix it.