Dec 17, 2011

OpenBD on Google appengine - ColdFusion / CFML

I've been tidying up my blog and fixing some of the lost code samples and was moving around some of my code that was on Google App Engine. After workings out how to use OpenBD desktop to deploy new OpenBD CFML apps to GAE I realized I broke my demos. After a bit of searching I found this post. http://groups.google.com/group/openbd/browse_thread/thread/e94b47a51e5d8a86?pli=1 And this is the Bug: http://code.google.com/p/googleappengine/issues/detail?id=5898 If your interested in OpenBD on GAE then vote for it.

Dec 14, 2011

Recover a datasource password in ColdFusion

I forgot a password to a mySQL datasource on my personal VPS. Not the end of the world I can log in to mySQL and reset it if I need but I knew these passwords were in new-datasource.xml in an encrypted format and was curious to see if I could decrypt that password. Turns out you can. I used this post as a staring point http://paulalkema.com/post.cfm/pull-a-list-of-all-coldfusion-datasources-along-with-username-and-passwords and while I was at it built this small app in case I need it in the future. App: http://demo.kukiel.net/jquery/pass/

Dec 4, 2011

Rail ORM tomcat hibernate jvm settings permspace error

I've just started working on a small project using ORM and Railo.  I'm running Ubuntu linux and the tomcat 7 installers with not chnage to jvm settings.

The first HQL query I ran a recieved an permSpace memory error.  Not a huge deal but if your not used to the locations of the jvm settings it can be a bit of a challenge.  PermSize was set to 64mb on the standard install which was a little to low.

The locations of the files for a standard install are:

/opt/railo/tomcat/bin

in:  setenv.sh

I changed my settings to look like this:

-Xms128m -Xmx512m -XX:+CMSIncrementalMode -XX:+ExplicitGCInvokesConcurrent -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=384m -XX:PermSize=384m -XX:+UseConcMarkSweepGC

Part of this was from Kai's example's which can be found here:  http://t.co/aShOtpM

I have less RAM to work with so my settings are smaller.

my setenv.sh file looks like:

Railo can then re restarted by:

/etc/init.d/railo_ctl restart


My application continued to run as expected.