FW/1 Alternative Application Structure

At Adobe ColdFusion Summit 2017, Masha Edelen presented her talk - Power Of Simplicity In FW/1. In her presentation, she mentioned setting up the application structure by including the actual framework code in the webroot; explaining that in order to move that code out, you would need a global server mapping. So I figured I’d go over FW/1’s “alternative application structure” and share how I like to implement it. Read More

FW/1 & QB Schema Builder

Not too long ago I wrote an article about working with FW/1 and QB; a query builder DSL written by Eric Peterson. In this post, I wanted to touch on a new feature and component released in the latest version of QB, Schema Builder, and how to make use of it in an FW/1 application. Schema Builder presents the ability to build out your database structure using the same awesome builder/chaining format as the Query Builder object. Read More

Parsing XML With jsoup In CFML

A Simple Example

At work, we’ve had some tasks lately to build out database schemas for populating rates tied to a given item and category. The rates themselves are in a PDF file. Much of the work has involved some form of manual entry or small copy/paste conversions into the build script. As it stands, these manual tasks can take anywhere from a day, to a day and a half, to complete. Not at all ideal. Read More

Using LogBox For Logging In FW/1

I’ve seen talk of FW/1 and LogBox integration come up a few times on the CFML Slack, so I figured I’d run through a way to get that set up in your application and start using it. What Is LogBox? LogBox is a standalone enterprise ColdFusion (CFML) logging library designed to give you flexibility, simplicity, and power when logging or tracing is needed in your applications. Based on Log4j, LogBox offers capabilities to log events and data in your application using various appenders such as writing to a file, database, and email formats. Read More

CommandBox, Rewrite Woes & How to Debug Them

Over the last day and a half, I’ve been plagued by what seemed an oddity when working on a logging demo in CommandBox. It had me thrown to the point of thinking I came across some strange bug. So I wanted to touch on how to debug the network requests and responses going on behind the scenes of a CommandBox server instance. What was happening? Well, when I fired up my application in CommandBox and went to check for a log entry, I was literally seeing double. Read More

Working With FW/1 & QB

Steps to Integrate Using Subsystems

Today I wanted to go over a library that I think is pretty awesome and echoes capabilities found in many other modern languages: QB. QB is a query builder DSL written by Eric Peterson, who’s been putting out some really cool modular libraries for the CFML community. With QB, you can: Quickly scaffold simple queries Make complex, out-of-order queries possible Abstract away differences between database engines The syntax uses a builder pattern that makes writing queries more readable and easy to understand when glancing through code. Read More

Crash Course In CFML & jsoup

Over the years I’ve made repeatable use of the jsoup library so I figured it’d be nice to put out a little primer on using it with CFML. What Is jsoup? From the official site: jsoup is a Java library for working with real-world HTML. It provides a very convenient API for extracting and manipulating data, using the best of DOM, CSS, and jquery-like methods. jsoup is designed to deal with all varieties of HTML found in the wild; from pristine and validating, to invalid tag-soup; jsoup will create a sensible parse tree. Read More

Hugo

Switching to Static Site Generation

Hello? It’s been quiet here for a while, again. I keep busy and needless to say, don’t get around to writing about all the things I’ve been working on. Like I’d like to do! In the last year, I’ve been fortunate to start a new software job which has also freed me up to playing with new environments and experiences. I’ve also been making larger pushes to contribute to the open source world; specifically the FW/1 ecosystem with the FW/1 Console CommandBox module; formerly FW/1 Commands. Read More

Changing the Location of the ColdFusion 2016 Webroot

Alrighty. First blog post of the year (and for a while). Better late than never right? So Adobe have slipped their newest version of ColdFusion, ColdFusion 2016, into the wild. My opinion of it is kind of meh. After participating in the pre-release, I’ve realized there’s really nothing in it for me that would make me switch. I have one client on ColdFusion 11 and if I was to move them any which way in the CFML world, it’d probably be in the direction of Lucee; which is what all of my other projects use. Read More

A Brief Look at the Rewrite Valve in Tomcat 8

Recently I learned that Tomcat 8 has its own built in approach to handling URL rewriting to achieve things like SES (pretty) URLs. Personally I do URL rewrites from Nginx, as it’s the forward facing web server and proxy to all of my Lucee apps that live in Tomcat; but, for the sake of learning, I wanted to take a look at what it had to offer. Setting it up… Reading through the Tomcat 8 Rewrite Docs, I was delighted to see that they use a similar approach to syntax as Apache’s Mod_Rewrite so the learning curve of writing actual rewrites is minimal to anyone who’s worked with Apache in the past. Read More