Skip to main content


Showing posts from November, 2009

CFJS - Server side Javascript available for playing

As promised, I have packaged up the new javascript plugin for use with OpenBD and you can now download and start playing.

I am personally very excited about this step forward. I always believed that CFML is the best web scripting language out there on the market and when people see how easy it is to do certain things, they are hooked. Coupled with the fact CFML has broken free of it available-only-as-a-commercial-product ties there is a whole new wave of people checking the power out.

So mixing Javascript in as a first-class language to this platform creates a very powerful tool to which non-CFML developers can now crank out dynamic websites without needing to learn a single line of CFML.

The CFJS plugin for OpenBD is now available for you to try! Can't wait to hear what people think about this addition.

First (?) Production Site on Open BlueDragon for Google App Engine

Yesterday Peter Farrell pointed me to a brochure site he did for a friend. Looks great, it's running Mach-II 1.8 beta, using SES URLs, all great stuff. Then he told me it was running on Open BlueDragon for Google App Engine (GAE). VERY cool. You can read a bit more about it on Peter's blog. I could be wrong, but I think this may be the first production site running on OpenBD on GAE. (If there are others out there, I'd love some links!) The interest in running CFML apps on GAE has really been picking up lately, and with good reason. It's a dead simple way to deploy CFML applications to Google's cloud, and unless the site is going to get a huge amount of traffic it's completely free. Free CFML engine, free hosting, easy deployment right from Eclipse ... there's a lot to love here. No more hunting around for cheap shared hosting accounts that are so restrictive they're barely usable, no more spending money on a VPS if you don't need one (though I highl…

Server-Side JavaScript with Open BlueDragon

In all the years I've been doing CFML development, CFSCRIPT has always been a neglected afterthought. Due to the limitations I (along with many of you I'm sure) stopped using it. Every time I'd get on a CFSCRIPT kick, I'd find myself frustrated by the limitations, having to break out of script to do things that weren't supported, or taking the time to write my own wrappers for CFML tags. If only there were a complete, robust, scripting language that web developers already know that could be used instead of CFSCRIPT ...Using JavaScript on the server side is something we've been discussing on the OpenBD Steering Committee for a while now, and Alan Williamson outlines the progress he's made in making this a reality in a post on his blog. The Mozilla Rhino library serves as the underlying JavaScript engine for this feature, and it will also be compatible with the Google App Engine edition of OpenBD. I think this will be a great addition to the CFML arsenal not …

CFJAVASCRIPT gets a turbo boost

We've just added a whole host of extras that have been requested by the community:

Ability to place Javascript code inside the tag instead of specifying external javascript files
Specify a comma-separated list of javascript files as the SRC='' attribute. Arrays of files still supported
Include-Only-Once; if you have multiple CFJAVASCRIPT tags, then we make sure you only include a javascript file only once per request. That way the browser won't get two JQuery instances!
Javascript placement; you can now have the resulting javascript placed at either the position the tag appears, at the HEAD or at the BOTTOM of the HTML body tag

More JavaScript goodies added to OpenBD!

CFML on the Google App Engine with Open BlueDragon | Progressive Overload

There is just no reason that we as cfml developers shouldn't be churning out app after app on this platform.

Amen to that! Great post about running CFML apps on OpenBD for GAE.
Peter Farrell made a small change to Mach-II 1.8 based on a suggestion by Dave Shuck that allows Mach-II to run on GAE, and the nice thing is it's a huge performance improvement in one specific area of the framework from which all Mach-II users will benefit.
Very exciting stuff.

The Complete Guide to Google Wave Preview Edition PDF Available for Download - Lifehacker

The preview edition of Gina and Adam's new book, The Complete Guide to Google Wave, is now available in PDF form for your offline, ebook-reading pleasure.

Google Wave is a young tool that's not terribly easy to understand for a lot of folks, but at least a couple of your Lifehacker editors are completely nuts for Wave and its potential. The DRM-free, 102-page personalized PDF of The Complete Guide to Google Wave is available for six bucks, but keep in mind that the content of our book will always be available for free at any time at

Maybe this will help me understand what Wave is actually good for!

Monitoring Tomcat with Java VisualVM

One of the best kept secrets that's bundled with your Java 6 JDK is VisualVM. VisualVM is an absolutely fantastic, free monitoring tool for Java that you may not realize is right under your nose. In a nutshell, when you fire up VisualVM it provides you with a ton of monitoring tools for everything running on the JVM. By default VisualVM will monitor the VM from which it's launched, so if for example you launch VisualVM from the bin directory of jdk1.6.0_17, then anything using that JVM will show up as a process in VisualVM that can be monitored. Note that in some cases certain processes will not appear in VisualVM, which is the real point of this post; I'll get to that in a moment. I'm attaching a few screenshots to this post. The first shows what VisualVM looks like when I fired it up just now on my Linux laptop, the second shows a snapshot of the main monitor screen (in this case I'm monitoring Tomcat), and the third shows a snapshot of the thread monitoring scre…

Running Tomcat as a Service on 64-Bit Windows

I'm replacing one of our ColdFusion 8 installs with Tomcat 6.0.20 and Open BlueDragon, and this is on a 64-bit Windows 2003 server. Easy enough conceptually, but it turns out running Tomcat as a service on 64-bit Windows has a small trick involved. A couple of potential solutions are outlined on StackOverflow (and numerous other places), but it still involved a bit of hunting around, so I thought a step-by-step with specific links would be helpful both to others and to myself when I forget how to do this next time. ;-)
Install a 64-bit JDK if you haven't already.Download and run the Windows Service Installer of Tomcat.Make sure and point to your 64-bit JVM at the appropriate spot in the install process.
At the end of the install, uncheck the box to start Tomcat. It won't start anyway at this point since the startup script included in the download is 32-bit.
Grab the 64-bit versions of tomcat6.exe and tomcat6w.exe from the SVN repository. Even though it says "amd64" …

New QueryRun() + QueryOfQueryRun() functions added to OpenBD

Of all the things you most want to do buried deep within a CFSCRIPT block is manipulate databases. Invoking a tag while in script mode is impossible, unless you build your own CFC wrapper, which is clunky and horrendously inefficient.

OpenBlueDragon has just released the first couple of native functions that let you get in and around the power of queries but from a script.


These operate just like CFQUERY but at a script level.

And the hits just keep on coming. ;-) All these seemingly "little" things that are being added to OpenBD add up to a much improved devleoper experience. Grab the latest nightly build and give these a shot!

Busy Weekend for Open BlueDragon! New Documentation Site and More New Tags and Functions

More new tags and functions have been added to OpenBD and a brand-new CFML documentation site has been released! You can read more about the very cool new documentation site on the OpenBD blog and Alan Williamson's blog. The cool thing about the docs site, other than the fact that it exists of course, is that the documentation is being pulled directly from the OpenBD engine, which means the documentation will always be up-to-date. Because the documentation is being pulled directly from OpenBD, the docs are also specific to the version of OpenBD that you're running. So this isn't only an external site you can use for reference; the code for the documentation site is bundled with the OpenBD nightly builds already so you can run the documentation app on your own instance of OpenBD. The documentation app also supports comments so you can add tips, etc. to the public site, but you can also leverage this on an instance you may be running internally at your company. This gives yo…

Apache: 'No jerks allowed' | The Open Road - CNET News

You see a lot of people doing open source, but not a lot of people doing open development...At some open-source projects [Erenkrantz mentioned Mozilla], all of the technical decisions, even if the license is open source, are not subject to public comment. At Apache, everything is done in the open over public forums.

This is the exact philosophy we follow on the Mach-II project, and I feel it's one of the secrets of our continued success. Letting our community know what we have planned and getting feedback before writing any code helps us meet the needs of our users better by giving them exactly what they need, not what we think they need. Springing features on users is no way to do a truly open source project. Involve your community at all levels and it pays off big time.

Facebook iPhone Dev Quits Project Over Apple Tyranny

My decision to stop iPhone development has had everything to do with Apple’s policies. I respect their right to manage their platform however they want, however I am philosophically opposed to the existence of their review process. I am very concerned that they are setting a horrible precedent for other software platforms, and soon gatekeepers will start infesting the lives of every software developer.
The web is still unrestricted and free, and so I am returning to my roots as a web developer. In the long term, I would like to be able to say that I helped to make the web the best mobile platform available, rather than being part of the transition to a world where every developer must go through a middleman to get their software in the hands of users.

Good for Joe Hewitt. Apple may like to say "our phone, our rules" but if Apple keeps up with the draconian behavior they may find a mass exodus on their hands. I hope the Pre and Droid start giving Apple a we…

Bilski’s hearing and software patents

Mr. Stewart shows how minimalist an interpretation of the CAFC ruling he’s seeking when he says that the Bilski method would be patentable if there was an “interactive website in which people — parties and counterparties could essentially find each other by the computer and could agree to terms“.
To this, Roberts replies: “No, no. That’s just saying instead of looking at the — in the Yellow Pages, you look on the computer; and that makes all the difference to you? [...] that involves the most tangential and insignificant use of a machine. And yet you say that might be enough to take something from patentability to not patentable. [...] If you develop a process that says look to the historical averages of oil consumption over a certain period and divide it by 2, that process would not be patentable. But if you say use a calculator, then it — then it is?

Keeping my fingers crossed that the decision winds up on the side to which the Court seems to be leaning.

Calendar Sync Issues with Droid and Google Apps for Domains Account

Quick tip in case anyone else runs into this. When I first set up my Droid I used my account since my account wasn't associated with Gmail yet even though I was using it as a Google account for things like Google Groups, etc. You HAVE to use a Gmail account specifically to initialize the phone. Note that doesn't mean an Gmail account necessarily, just one that you're using with Gmail. After the initial setup was complete and I switched my account to Google Apps for Domains, I added that account to the Droid, but in the sync settings screen only Contacts and Mail were showing up as options. There was no checkbox to have it sync the calendar. I deleted and re-added the account a couple of times to no avail. I started thinking maybe the problem was that I used my account as the "primary" account, though I'm not sure why it wouldn't support multiple calendars. Maybe it does and this was just…

Google To Murdoch: Use No Index Or Just Ask

News Corp. Founder and CEO Rupert Murdoch claims Google is stealing their content - the "content kleptomaniacs" as he has termed them. As Greg Jarboe's article below details this could be a major problem for News Corp web sites. Watch the embedded video to hear Murdoch's position.

Can't wait to see the impact this has on traffic to News Corp's sites. I stand by my earlier assertion that Murdoch is completely clueless. Much like the MPAA and RIAA he's sticking his head in the sand and hoping for an alternate reality to emerge.

Living in the Cloud: You Gotta Trust Somebody

I've been rather vocal about "getting off Google" in the past, and it's a battle I've been winning with my email for a few years now. But today I got my Droid (more on that later), and I thought long and hard before even ordering one because I knew what this would entail.
Obviously the Droid is using the Andoird OS, which means (surprise!) it's Google-centric. Google offers a huge amount of convenience, and the Android OS itself is absolutely spectacular. Temptation rears its head.
I've been researching mobile phones like crazy over the last few months, and when it comes to "freedom" there really are no great choices. The Neo FreeRunner keeps showing promise, but ultimately you're still going to be at the mercy of a cellular carrier, and picking the least amongst evils there isn't easy.
The iPhone is a COMPLETE non-starter for me. AT&T coverage is horrendously bad, particularly where I live, and there is no way I'm diving into Apple…

HashBinary() Added to Open BlueDragon

What started as a thread concerning how to MD5 hash a binary file in OpenBD has quickly become a new HashBinary() function in OpenBD. The absence of HashBinary() from CFML has always seemed a bit odd since there are binary versions of Encrypt() and Decrypt(), so adding HashBinary() will make these tasks much simpler. Not a huge addition but I did want to highlight it because to me this shows yet again the beauty of open source projects. A need is identified by a user, it points to a hole in the language, and that hole gets filled, all in the span of a day. Thanks to Tom Jones for bringing this to our attention and prompting the new feature. OpenBD gets stronger every day because of this kind of feedback from our users.

Thank you, Rails

Lately, though, I’ve noticed the tone of the arguments in the Django community
getting nastier — especially when it comes to Rails. Again, I’m far from
innocent in this regard: I’ve certainly done my fair share of Rails-bashing,
and I regret it.
I think it’s important to recognize that we in the web development community
do in fact owe Rails and the Rails community a debt of gratitude. Rails helped
reframe the way we think about web development, and even those who’ve never
touched Rails nevertheless are probably reaping indirect benefits right now.
So I think we should all step back from our personal preferences and plainly
say thank you, Rails, for all that you’ve done to move the state of web
development forward.

I think the CFML community could stand to take this attitude to heart. As a community we spend WAY too much time patting each other on the back and blindly blasting our supposed enemies, when what we should be doing is taking off our blinders and learning from what els…

Mark Thomas on Apache Tomcat 7 | Javalobby

the biggest news was probably the timeframe announcement for Apache Tomcat version 7.  According to Jim Jagielski, chairman of the Apache board of directors, Tomcat is used in at least 75% of Java-based websites.  Mark Thomas, a member of the Apache Tomcat Project Management
Committee, said that the alpha release of Tomcat 7 is expected in
December 2009 or January 2010.  DZone spoke with Thomas for an exclusive interview about the upcoming version of Tomcat. 

Cool new stuff coming in Tomcat 7, and I didn't realize an alpha was so close.

Photos of Me from BFusion

Bob Flynn was kind enough to send me (well, Wave me) some photos of me giving my presentation at from BFusion (which was great as always!). I particularly like the one where it looks like I'm singing opera. ;-)

See the full gallery on Posterous

Installing Mozilla Lightning on Ubuntu 9.10

I'm still working through a bit of a hiccup with using my Amahi calendar with Evolution, so I thought I'd install Thunderbird and Lightning to see if they worked. The problem with Evolution and my Amahi calendar is that no matter what I try, the calendars on Amahi are flagged as read only. I understand that it will be read only (at least potentially) with a pre-existing calendar, but even when I create a new one I can't add new appointments to it. Not good. ;-)Thunderbird is easy enough to install with apt-get install, and Lightning is just an add-on to Thunderbird, but on both my 32-bit and 64-bit machines when I launched Lightning the "new calendar" option was grayed out. A bit of scroogling showed that Lightning has a dependency on libstdc++5. The issue is that beginning with Ubuntu 9.10 libstdc++5 is no longer in the standard repositories, so sudo apt-get install libstdc++5 no longer does the trick.Easy enough to resolve by downloading the package however, so…

The Framework is the Language | Eric Lamb

You can’t approach learning a framework as anything less than you would when learning a new language. Anything less and you’re in for pain. After this realization the framework came together pretty quickly though it still hurt like hell.

Although I've never experienced the "hurt like hell" part when learning a framework, this is a decent reminder that a framework is written in/targeted to a language, but also has a dialect all its own. Understanding that fact will probably make things go a lot more smoothly. I disagree with the author's doubt surrounding whether or not using a framework is a good idea but it's food for thought nonetheless.

The "NoSQL" Discussion has Nothing to Do With SQL | Communications of the ACM

Recently, there has been a lot of buzz about “No SQL” databases. In fact there are at least two conferences on the topic in 2009, one on each coast. Seemingly this buzz comes from people who are proponents of:
• document-style stores in which a database record consists of a collection of (key, value) pairs plus a payload. Examples of this class of system include CouchDB and MongoDB, and we call such systems document stores for simplicity
• key-value stores whose records consist of (key, payload) pairs. Usually, these are implemented by distributed hash tables (DHTs), and we call these key-value stores for simplicity. Examples include Memcachedb and Dynamo.
In either case, one usually gets a low-level record-at-a-time DBMS interface, instead of SQL. Hence, this group identifies itself as advocating “No SQL.”

Great first part of a two-part series about data storage and how "NoSQL" doesn't at all get at what things like CouchDB, MongoDB, etc. are all about.

CFDOCUMENT Tips with Open BlueDragon

I'm porting a ColdFusion 8 application to Open BlueDragon and the app in question generates documents using both iText and PDFBox (which I posted about before), and also generates PDF files from HTML content using CFDOCUMENT. When compared with CF 8 I ran into some differences with CFDOCUMENT so I figured I'd post them here. In general everything just works, so this is more formatting issues than anything else.1. Use Full URLs for Images and CSSThis was covered by Nitai in a thread on the OpenBD mailing list a while ago, so consider this a reminder that you need to use full URLs for images and external stylesheets.2. Tweak Your CSS as NeededBecause the underlying rendering engine differs between OpenBD and CF (not sure what CF is using, but OpenBD uses the amazing Flying Saucer project), you may see differences in the handling of CSS. None of the ones I ran into were biggies, and in many cases when I looked at the CSS being used, CF 8 wasn't doing what it was supposed to b…

Empathy IM Client for Ubuntu Sucks

Much as I'm loving Ubuntu 9.10 and greatly, greatly appreciate all the hard work the Ubuntu team puts into building what I consider to be the finest desktop OS in the world (I'm seriously in awe when I think of the work involved and the fantastic end result), I have to point out one major mistake that was made with this release: the decision to replace Pidgin with Empathy as the default IM client. There's a discussion about they whys behind the decision here, but it seems in this case abstract technical decisions won out of usability decisions, which in the end isn't good for anyone.My major annoyance with Empathy is as follows. If someone IMs me, I receive a popup notification in the top right-hand corner of my screen. Great. If, however, I'm not looking at my screen when the notice pops up, the only way to know someone IMd me is to look at my contacts list for a blinking icon. Completely, utterly terrible usability. Pidgin pops up a new tab in my chat window when…

Free Flex 4 Training - Washington, DC - November 20, 2009

Adobe Flex 4 Training for ColdFusion Developers A free full-day, hands-on training session, where attendees can learn how to build
their first Flex application using the latest Flash Builder 4 beta software.
This training is designed to help experienced ColdFusion developers get started
in understanding how to add rich UI to existing and new ColdFusion

Great opportunity for FREE Flex training at Fig Leaf in DC! Seating is limited so if you're interested, register right away.

InformIT: Interview with Donald Knuth

The success of open source code is perhaps the only thing in the computer field that hasn’t surprised me during the past several decades. But it still hasn’t reached its full potential; I believe that open-source programs will begin to be completely dominant as the economy moves more and more from products towards services, and as more and more volunteers arise to improve the code.
This is an older interview I just came across--always fascinating to hear what Donald Knuth has to say. His take on multi-core processors and parallelism is particularly interesting.
Great quote on Linux from the interview: "I currently use Ubuntu Linux, on a standalone laptop—it has no Internet connection. I occasionally carry flash memory drives between this machine and the Macs that I use for network surfing and graphics; but I trust my family jewels only to Linux."

Porting a CFPDF / CFPDFFORM-Dependent Application to Open BlueDragon

In my continuing war against all things PDF in ColdFusion, today I believe I have achieved victory.If you've been following my posts (OK, rants) over the past few weeks you'll know that I ran into some annoying bugs in CFPDFFORM that were wreaking all sorts of havoc with the one application I wrote that depends on CFPDFFORM for a key part of what it does. I sent my test case to Adobe Support and, well, there are probably a million ways to couch this nicely, but the bottom line is they told me they can't/won't fix the bug, and their suggested workaround was to use iText to populate my PDF forms instead of using CFPDFFORM. Given that I ran into another annoying bug with CFPDFFORM a couple of years ago and got another "can't/won't fix" answer, this was strike two for CFPDFFORM. And personally I don't like being backed into a corner by a third strike before making a change.Now that my CFPDFFORM code had been changed over to use iText instead (which ga…

Problems with Eclipse buttons in Ubuntu 9.10 | Norio

After upgrading to Ubuntu 9.10 (Karmic Koala) some buttons no longer work in Eclipse 3.5. Clicking has no effect but keyboard shortcuts still work.
It looks like Eclipse is doing some nasty stuff advanced hacking in SWT on GTK. This bug is fixed in 3.6M2 but you can work around the issue in Eclipse 3.5 by launching Eclipse through the following small shell script (assuming Eclipse is installed in /opt/eclipse-3.5):


If you're having this issue it will rear its ugly head when you try to do things like create a new project or add a software repository to your updates list--you'll click the "next" or "OK" button and nothing will happen. Glad there's an easy workaround, this has been driving me nuts all morning!

It’s About Helping Your Users Become Awesome (or: “Being Better is Better” by Kathy Sierra) — Global Nerdy

If we want to create passionate users, we need to help them get better.

‘Nobody’s passionate about things they suck at.”
Many people still have their cameras permanently set on “P” – automatic mode — even though those cameras offer finer control over things like shutter speed and aperture
What would it mean to our users if we unlock the door and help them be awesome?

This falls right in line with many of the discussions Team Mach-II has been having as we look ahead to the 1.9 and 2.0 releases. If we implement even half of what we have in mind for 2.0 it's going to be awesome and will help our users be more productive than ever before.

Shalin Says...: Why you should contribute to Open Source

Open Source projects offer you a chance to work on something that you want rather than something that others want you to work on. It is a great opportunity to work on something that is both cool and useful as well as to associate with a well known brand and all the publicity and goodwill it brings. You are free to pick and choose between the thousands of open source projects out there. Moreover, you are free to decide on how much you want to contribute. You won't have a boss and you won't have the pressure of deadlines and schedules.
And don't forget there are about a thousand different ways to contribute to open source projects, with documentation/wiki contributions typically being the most neglected. So find a project you love and get your hands dirty! ALL open source projects can use the help, and it's a great way to learn new things, meet new people, and boost your resume all at the same time. As Michael Scott would say, "It's Win…

Creating a Launcher for IntelliJ in Ubuntu

I had to do a bit of hunting to get this sorted out so I figured I'd put all the info in one place. Since I'm going more Grails work lately I've been using IntelliJ IDEA 8.1 (haven't had a chance to check out the CFML plugin yet though), and after upgrading all my machines to Ubuntu 9.10 I figured I'd get fancy and add a launcher to my menus instead of starting things from the terminal.Eclipse has a vm argument you can pass to the eclipse script when you launch things, but IntelliJ is a bit different. I found several solutions but most seemed to me to be unnecessarily complicated, but I kept hunting and stumbled across this snippet in the comment thread on this blog post, and it worked for me as the "command" line in the launcher properties./bin/sh -c "export JDK_HOME=/path/to/java&&/path/to/intellij/bin/" Obviously you adjust "/path/to/java" and "/path/to/intellij" as appropriate to your setup. Next I wante…