Blog

04
February 2015

Gavin Pickin

How to write your very own CLI Commands in CFML

CFML Language, CFML Server, CommandBox, Lucee, Node.js, Server Admin, Tools and IDEs

I bet half of my audience just tuned out, seeing CFML in the title, but this is easier than writing Node as a Javascript Developer… of course you can prove me wrong. In case you have been sleeping under a rock, I’ll let you know that CommandBox went gold today… which apparently means it made it to 1.0. Its not like musical going gold, where you sold so many copies, going gold meant you made it to 1.0, and your api is solid enough to use in production or something. CommandBox is a CLI, a CFML REPL, Package Manager, built on a tiny Java Servlet Container, which means you can even spin up a server in any directory. Ortus Solution listened to the cries for a CLI and Package manager, and with Forgebox being extended to other any CFML library or module, not just Ortus / Coldbox libraries and modules, the CFML community finally has it.

03
February 2015

Gavin Pickin

Adding Lucee Connection Configuration so Apache can Serve Lucee Sites

Apache, CFML Server, Lucee, Server Admin

Working with Apache can be daunting for some, simple for others, we all have our ways to handle it. I really like having individual conf files for each site, to make it easy to update one VirtualHost at a time, and if I want to zap a site, or duplicate it, or automate it, its just simple file changes, I don’t need to parse a whole file.

I manage connections in a similar way, each connection type, CF9, CF10, CF11, Railo, Lucee, would all have its own connection file, that I can include in each of the Virtual Hosts. Easy to manage, update in one file, it extends to all hosts using that include, and of course, keeping it out of your main httpd.conf or the main folder structure helps for ease of update, and gives you automation options etc too. So lets look at how I do it.

02
February 2015

Gavin Pickin

Adding Goodies to Server.xml to make life easier with Lucee

CFML Server, Lucee, Server Admin

As I mentioned in my last post, where we started installing and setting up Lucee, a lot of the setup here is repeated (for the most part) from the Multi Engine Environment blog posts, and presentation I did at last years CF.Objective() which is now known at Dev.Objective(). We looked at installing Lucee, and changing the HTTP Port, AJP Port, and the Shutdown port already, now, lets dive deeper into the Server.xml file, and make it easier to manage going forward.

01
February 2015

Gavin Pickin

Setting up Lucee in my Dev Environment - Changing Ports

CFML Server, cfObjective, Lucee, Migrating to Railo, Server Admin, Tools and IDEs

A while back now, I released a series of posts on setting up Apache along with  Railo, ColdFusion, in a multi engine setup, including some ways to make it easier to maintain virtual hosts in Apache, and Railo. Now, I’m getting the Lucee Express setup on my Dev environment, so I thought it would be a good time to rehash some of that, and see whats different, or what I’m doing differently these days.

Lucee was just announced a few days ago, so the Express is designed for all OSes, the installers are in the queue, but they have not been released yet, so this does not cover an installer options. We’re assuming you went to www.lucee.org and clicked on downloads, and downloaded and unzipped the Lucee Express Folder.

31
January 2015

Gavin Pickin

Using WebSQL - Pulling Data - Start Thinking Async vs Sync

Javascript, WebSQL

In today's post on WebSQL, I’m going to show you how I had to refactor my application, to move from sync LocalStorage functions and storage, over to using WebSQL, which has an ASYNC API for transactions. In the last few posts, I have gone over why I chose WebSQL for this Application, and how to get Started with WebSQL etc, and had to post a correction to some assumptions I had made, so now we’re ready to move on and get some data out of the db, and thrown into our application.

30
January 2015

Gavin Pickin

Pre-mature Optimization - Pre-mature Blog - Gotcha WebSQL Open Database

Javascript, Techie Gotchas, WebSQL

I have written a few posts so far about WebSQL, why I like it, especially in this cross platform Cordova / Phonegap App development world, and a getting started post, where I was wrong. Yes, I Pre-maturely posted that Blog, so this is me fixing it, of course, I edited the original post right away, but here, I’ll go into what I stated wrong, and how it took me way too long to figure out I was wrong, and how sometimes Pre-mature Optimization isn’t needed, but sometimes, it will help show you how wrong you were.

30
January 2015

Gavin Pickin

Whats better than Firefox Developer Tools? Firefox Developer Edition

Javascript, Tools and IDEs

In the world we work in, the Web world, there are lots of IDEs and tools out there. One of the best tools to ever come out for Web / Javascript development, and made developing in Javascript even possible I thing, was Firebug. These days most modern browsers have web tools, and they're getting better every day. Some like Firefox's Dev tools, others prefer Chrome, and I have heard that IE 11s are actually pretty amazing. Each suite of test tools one ups the other, and the innovation is good for all of us.

I am probably very behind the times, but I only just learned of another option from Mozilla, which is better than Firefox's Dev Tools... a Firefox Developer Browser.

29
January 2015

Gavin Pickin

Lucee in the Clouds with Java - Hello World, from Lucee

CFML Language, CFML Server, Migrating to Railo, Server Admin

Less than 12 hours ago, we were on the dawn of a big announcement in the CFML world, and only a few knew it was coming. A few more knew something was coming, but were not sure what it was, myself, I was expecting some tools, or a new version, or something, to put it mildly, I was surprised to hear what the big announcement was.

There is a new server product on the CFML Engine market, LUCEE.

22
January 2015

Gavin Pickin

Using WebSQL in my Mobile App - Lessons learned - The hard way

Javascript, Mobile Development, WebSQL

I have been working on my Multiple Platform App, using WebSQL for bigger storage needs, instead of simple Locale Storage, in which my App started with. My last blog post walked us through opening a db connection with WebSQL, creating tables, inserting data, inserting data and protecting your app from SQL Injection using placeholders, and the 2 types of transactions, .transaction() which locks the db, and .readTransaction() which does not lock the whole db, and can only be used for ready only sql… as the name suggests.

Of course, the more you dig into something, the more you learned, and I think I learned a few important things to share.
And Yes, that title is beyond a little dramatic.

22
January 2015

Gavin Pickin

Getting Started with WebSQL in your Mobile App

Android, IOS, Javascript, Mobile Development, WebSQL

In my last Blog Post, I discussed an App I was building, and how it changed target from Windows 8, to iOS to Android, and back to Windows 8, and thanks to MS Open Tech, the Microsoft Open Source company, I could use the WebSQL API to talk to WebSQL on iOS and Android, and with the plugin, SQLite on Windows 8.

This post will give you the basics of actually creating a DB Connection, creating a table, and making a couple of queries against it.

Blog Search