Code

>Code
Code2018-10-14T16:54:31+00:00

The following posts are related to website development, design, and management.

Relaunch of Project Corsair

October 14th, 2018|Categories: Code|Tags: |

While the website never really went down, I am happy to announce that Project Corsair has relaunched. So what is Project Corsair? Project Corsair is an interpretation of the US Web Design System (USWDS) 2.0. The purpose is to serve as a testing ground and candidate for one federal agency's template refresh, as well as providing examples for others to use. The initial ground rules are to stick with the USWDS as the foundation wherever possible, [...]

I Am Into the Box

September 14th, 2018|Categories: Code|Tags: |

This is just a short note and hopefully, an intro to a new series about the "Box" world. After watching ColdBox for about 7 years and never successfully getting it installed, times are a changin'. I took on a couple of new projects at work and decided that maybe it was time to give a framework a chance. I initially started with F/W1 and for whatever reason, I just could grasp how it works [...]

ColdFusion Bug States

July 25th, 2018|Categories: Code|

Reposting an old article (2014) because the Adobe ColdFusion Tracker still lacks professional oversight and management. If you take a look at the ColdFusion Bug Report you will see the following "States": Deferred Fixed Needs Review Never Fix To Defer To Fix To Test To Track Unverified Withdrawn The states can either have a status of open or closed. Like most large organizations, metrics that can be easily used to show progress are often misused [...]

Adding Video to WordPress

November 12th, 2017|Categories: Code|Tags: |

The other day I was asked how to add subtitles to video in WordPress, and unless my google powers have diminished, I could not find an easy way to do it without hand coding <video> and <track> elements. It turns out, in typical WP fashion it is easy, but atypically not immediately obvious. Knowing that WordPress uses MediaElements.js under the hood I knew it had to be possible, but when you use Add Media, Insert [...]

Working with JSON – an Intro

June 17th, 2017|Categories: Code|Tags: |

One of the real powers of ColdFusion is the ability to work with various types of data, but I find that it is often difficult to get started with something other than cfquery. I hope this helps others get started faster than I did. This is really my first foray into working with JSON for something other than charting, so if you see things that I should do differently I invite constructive comments. To [...]

When Quotes Matter

January 23rd, 2016|Categories: Code|Tags: , |

I am a big fan of the script capabilities of CF 11 and especially queryExecute(). If you are using it, make sure all your SQL is wrapped within double quotes so that string values work and you don't end up troubleshooting simple issue because of vague errors. Take this example I originally made the error of using single quotes which tends to be my preference, but ended up with an error of ColdFusion is looking [...]

CertMan Modification

August 27th, 2015|Categories: Code|Tags: |

I am a big fan of the CertMan extension for the ColdFusion administrator.  It is a great tool, but I think it could use a few tweaks and I have started to look at what other features should be added.  My first update was to add a condition that would show me certificates that would be expiring within 60 days.  This was simple and didn’t require any updates to the actual functionality.Read More CertMan Modification

More queryExecute Examples

May 11th, 2014|Categories: Code|Tags: |

I am very new to this scripting paradigm, so if others want to critique me, please feel free.  I would venture to say that 99.9% of my queries live in CFCs so these examples will all be in the form of functions.  These are the primary functions that feed my demo site.  So far, the biggest issue was understanding how to pass parameters. Basic Query   query function getData(){ var dl = queryExecute(" Select column names [...]

Moving from CFQuery to queryExecute

May 11th, 2014|Categories: Code|Tags: |

I mentioned in a previous post that one of the main reasons I preferred <cf> tags to script was because of <cfquery>.  Prior to ColdFusion 11, scripting the query was a real pain, but now, it is dead simple. Can now be written Obviously, this is a very basic example and as I start to rewrite my demo application, I will share more complex variations.  The documentation on this can be found at https://cfdocs.org/queryexecute

Script 101 and Frustration

May 5th, 2014|Categories: Code|Tags: |

As I may have mentioned early, I am attempting to move more towards script and away from tags in ColdFusion.  Yesterday I worked with <cfif> and <cfelesif> which cause me no end of frustration for about 10 minutes until I realized I was being a moron. I have a couple of sites that I redirect to new locations using code like this:   This now looks like this:     So what caused [...]

CF Fundamentals (Date and Time)

March 30th, 2014|Categories: Code|Tags: , |

Relaunch of an old post. So this week (January 24, 2012), I had the need for dates of varying formats and I decided to post a beginners post. I currently am using CF Builder at work and as much as I like Dreamweaver, CF Builder showed me something I had never used before or haven't used in so long that I have forgotten; the built-in date formats (long, medium, short, and full). I have always [...]

Load More Posts