Friday, May 18, 2012

Dynamically setting up a H2 datasource on OpenBD


<cfset DatasourceCreate("enlist"
    , {
        drivername: "org.h2.Driver"
        , hoststring: "jdbc:h2:" & ExpandPath('./') & "/WEB-INF/bluedragon/h2databases/enlist;AUTO_SERVER=TRUE;IGNORECASE=false;MODE=MySQL"
        , initstring: "RUNSCRIPT FROM '#ExpandPath("../docs/sql")#/mysql_createDB.sql'\;"
        , databasename: "enlist"
        , username: "enlist"
        , password: "enlist"
    }) />


Thursday, May 17, 2012

cf.Objective() 2012 - Speedy Websites Presentation with Speaker Notes

My cf.Objective() 2012 presentation is now available including my speaker notes on my presentations page.


http://blog.maestropublishing.com/pages/presentations


Check it now out.  Also, please don't just give my presentation without permission. I spent a lot of time working out all the details.

Tuesday, March 27, 2012

ACF8 - The Cron service is not available.

I'm blogging this because I get this error occationally when I restart Tomcat with ACF8 deployed as a WAR:



The Cron service is not available.



This happens because the neo-cron.xml file in /WEB-INF/cfusion/lib has been corrupted. You can replace it with the neo-cron.bk file however in my case that file is always corrupted as well.


Here is a basic cron file if you have an empty backup file as well:





neo-cron.xml
Download this file


Tuesday, February 7, 2012

Calling All Devs: Mach-II Work Session - Saturday March 3rd, 2012 via Google Hang-Out - Mach-II



Matt, Kurt and Peter are leading a Mach-II Work Session in March via Google Hang-Out. If you're interested in helping out on the project - coding, documentation or even have a question drop on by.


When: Saturday March 3rd, 2012 from Noon - 6pm CT (10am - 4pm PT)


Where: Google Plus Hang-Out using SVN / Trac


Just follow our Google+ Mach-II page and join our public hang-out that day.  If you're coming, we'd love to hear from you now in our comments and we'll send you a reminder just a few days before!



No experience with Open Source? Don't worry; we're here to help and guide you through the process. This is a great way to expand your horizons and share what you know -- new people means new ideas!

Wednesday, January 25, 2012

Logitech USB Headset H530 on Linux (Ubuntu / Mint)

Just wanted to quickly blog that the Logitech USB Headset H530 works on Mint 11 without any additional drivers to install.  Since it's a Debian style OS, I think would on Ubuntu as well. I'm blogging wheneve I find hardware that isn't noted for Linux but works anyways.

Thursday, January 19, 2012

Adobe ColdFusion 9 on Mac Lion - Fix for cfdocument and Hanging Admin

First let me start off that I am not a Mac owner and therefore please keep this in mind.


One of the issues with ACF9 on Mac OSX Lion is the use of the java.awt package to get items like the list of available printers.  The AWT package is just a wrapper for a packages that are native on the target operating system.  In this case, there are bugs in the apple.awt.CToolkit class that is the problem on MAC.


We were having an issue with Mach-II 1.9 hanging on MAC Lion recently and we narrowed it done to our use of java.awt.Toolkit.  You can indicate to the JVM that you want to use the sun.awt.* package instead which appears to have fixed the issue for Mach-II 1.9 for Mac OSX Lion users.  The positive side effect is that it fixed the hung "Info" page in the CFIDE as well.


You probably already have headless=true in your jvm.config file, however you need another directive to use a different awt toolkit otherwise the JVM will default the buggy apple.awt toolkit.


Let me know if this fixes other ACF9 issues on Mac OSX Lion like cfdocument.




-Djava.awt.headless=true
-Dawt.toolkit=sun.awt.HToolkit




Update 1: This appears to have fixed generating PDFs using cfdocument as well.


Update 2: I'd like to thank Sumit Verma at Ten24Web for spending 4 hours nailing down that AWT was causing an issue in Mach-II 1.9. This is what led me down the right path to this JVM config argument change.


Update 3: Typically it is "CF9/runtime/bin/jvm.config" where CF9 is the location you installed CF.  Be sure to make a back up copy of the jvm.config in case you foo bar something.