Archive for April, 2008

A Regular Expression To Proxy Basic ColdFusion Requests

Thursday, April 3rd, 2008

(Note: I’m cleaning up some old drafts which have been sitting around for awhile.)

A couple of years ago while setting-up a new J2EE server cluster using the Implementing Multitier Hardware Load Balancing with ColdFusion MX for J2EE or JRun article, I needed to setup a proxy filter for ColdFusion requests. Given that the application I was setting up used a context root of /, the proxy rule listed in that article would not work. Instead, thanks to my former co-worker Rod, I now have a regular expression which will redirect all basic requests for ColdFusion:

[code]
^((?:\S*.cfml?\S*)|\S*/(?:\?\S+)?)$
[/code]

This regexp works for the following combinations:

[code]
hello.cfm?hello=2
hello/
sadfa/
dasd/?hello=231
xo.cfm/hello
hello/dookie.cfm
dookie/hello.cfm?thisvar=dookie
/
[/code]

And the following requests are not proxied:

[code]
/hello.html
hello.html
hello/hello.html
[/code]

Obviously these are just basic test cases, but it should leave all CSS, image, JavaScript, etc. type requests to the webserver, and pass on everything else to the app servers. You would also need to change it to include direct requests for .cfc files if you’re doing anything like Flash Remoting, Web Services, etc directly to CFC’s.

How To Fix Sound Problems In Ubuntu 7.10 Gutsy on Dell Computers

Wednesday, April 2nd, 2008

Currently, my main workstation at home is a Dell Dimension E520 which primarily runs Ubuntu 7.10, but I also dual boot into Windows XP for my photography hobby. One problem I had after upgrading to Ubuntu 7.10 from the default Ubuntu install which the E520 shipped with was getting sound to work. After trying several solutions in this forum thread, I finally got it working again.