Blog

26
February 2015

Gavin Pickin

HTML 5 Search Input with jQuery Multi Token Search

Javascript, jQuery

Recently I found myself playing with another HTML 5 form element, the Search Input. Of course the form field support is not there yet… so I decided to use jQuery’s version since I was already using jQuery Mobile on an App. Quite a nice upgrade, it gives you some standard features that you might normally struggle to complete on your own… like the rounded corners, and the cancel/clear search field. Of course webkit goes further with remembering the last x searches, and can even fire a “search” event when a user pauses while typing… but sadly, we have to live in a world where you can’t use all the bells and whistles all at once… but jQuery as usual fills in the important gaps nicely.

20
February 2015

Gavin Pickin

CommandBox Roadshow - Episode 3 - Building Custom Commands - with ME

Apache, CFML Language, CFML Server, CommandBox, Lucee, Online Interactive Learning

I have been playing with Ortus Solution's amazing new tool CommandBox a lot lately. After a couple of posts on my blog, Brad Wood from Ortus Solutions reached out to me and asked if I would be interested in sharing what I have been doing with the community. A lot of time and money was invested by Ortus Solutions to make this product, and every knows ColdFusion / CFML in general needed something like this for a long time now, so of course I accepted their offer. I have already posted a couple of blog posts on the Ortus blog, and today we recorded an episode of the CommandBox Roadshow, with yours truly in charge of the Adobe Connect session.

18
February 2015

Gavin Pickin

Packt Publishing Encourages Customers to Learn New Skills with 18 free e-books

Books and Training, Chit Chat, Steals and Deals

As an avid techie, and a habitual learner, I love ebook publishers, and Packt Publishing is one of the top ones on my list. I have bought many a book, hard copy and e-book over time from Packt Publishing, and have mentioned that in my blog in a previous post. Today I'm writing this post to inform you of a great Promotion Packt Publishing has started, which includes 18 days of Free learning, with a different e-book available, for free, every day from Feb 16th, through March 5th.

Keep reading for all the details

17
February 2015

Gavin Pickin

WebSQL - When is a Javascript Object not a Javascript Object?

Cordova / Phonegap, Javascript, Mobile Development, Techie Gotchas, WebSQL

After a short break from WebSQL, I am back to talk to you about WebSQL again, as I continue my work on my Cordova / Phonegap cross platform app. Today I ran into one of those Gotchas, that cost me a couple hours of time trying to debug a strange happening in my app. It is one of those things in our developers lives, if you only knew what you didn’t know, you'd know more than you know now. In finding this gotcha, I remembered a couple of other lessons when using Web Developer tools, which you may or may not know… so I’ll share those too.

13
February 2015

Gavin Pickin

How to get your Tomcat to pounce on startup, not crawl

Apache, CFML Server, Server Admin

As promised in my last few posts, I am finally going to give you a couple of Tomcat tips and tricks, that can seriously speed up your Tomcat startup time. In all fairness, they are simple configurations, and I am not the first to find them, not even the first CFMLer to find them. This is how I got my Tomcat startup from 164 seconds, down to 8 seconds, a gain of 156 seconds, in 1 line of code.

12
February 2015

Gavin Pickin

Pros and Cons of Mod_CFML with Tomcat for Lucee

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

I have been talking a lot lately about different configuration options, since Lucee is the hot new thing since ‘POCKETS’. Everyone has been asking about best ways to work with Tomcat, versus other servlet containers, and so I have been playing… and have released a few posts on the matter. Every time I post anything on Tomcat, I always get asked about MOD_CFML, so I thought it was about time I wrote a post on what I knew about it, as always, I am not the expert, I am just sharing some of my knowledge, hopefully others will share too, and we can all learn.

11
February 2015

Gavin Pickin

How to Work with WebSQL and Managing Multiple Deferred and Promises

Javascript, jQuery, Techie Gotchas, WebSQL

My last post with WebSQL looked at the difference between sync and async, and how you can use Deferred and Promises. The example I showed was a simple query, so we create a deferred, run the query, when the query is completed, it resolves the deferred… and our $.when is waiting for that to complete to move on. That works great in this simple situation, what if you have to loop through 50 items, and have to update each one, and after all of them have done, you want to query the list and display those updates… how do we do that? Its easier than you think. I searched over several blogs and stack overflow questions, API docs, and got it working. I thought you would love a step by step simple example to solve this problem, so here it is.

10
February 2015

Gavin Pickin

Guest Blog Posts and Webcasts on CommandBox at Ortus

Chit Chat, CommandBox

With all my recent work and blog posts on CommandBox, the team over at Ortus Solutions, which invested a lot of time and money to bring us CommandBox, invited me to post a few guest blog posts on their Blog to celebrate the 1.0 release of CommandBox. They have several contributors, and will be posting a blog post daily for 4 weeks.

08
February 2015

Gavin Pickin

Apache and Tomcat - Save yourself the XML Editing - No more Tomcat restarts

Apache, CFML Server, Lucee, Migrating to Railo, Server Admin, Techie Gotchas

On the Lucee Google group the other day, someone mentioned a way to connect Nginx to Tomcat, so you do not need to bother adding the XML Host for every new website you want to run on Lucee (or Railo). This has always been a pain point for switching from Adobe ColdFusion, to Railo or now Lucee, dealing with a Virtual Host for Apache in httpd.conf, and a XML Host in server.xml and making sure they match, and editing requires a restart. Adobe’s ColdFusion runs on a hacked Tomcat, that they specially tuned to work like jrun used to, but a lot of people don’t like being stuck on their upgrade path too. I decided to look at this Nginx approach, and get it running in Apache, and see what downsides I could find.

05
February 2015

Gavin Pickin

Using CommandBox CLI to build your own Commands for Lucee

Apache, CFML Language, CFML Server, CommandBox, Lucee, Server Admin, Tools and IDEs

Yesterday I apparently started a series of posts, on CommandBox CLI, and how to write your own commands, in cfml, to make your life easier. I started a set of commands under the kiwiSays namespace, and we built 3 commands / cfcs, called addWebsite, startLucee and stopLucee. We got most of addWebsite built, today lets look at startLucee and stopLucee.

Blog Search