April 2013
1 post
26 Things to Note Before You Develop a Website →
richarrdg: Well, the title says it all. Checkout this infographic from Pixaal. A handy guide for us web developers. Enjoy your #Monday.. :)
Apr 17th
3 notes
January 2013
1 post
Jan 27th
December 2012
3 posts
Text-transform Regular Expressions
I’ve been formatting emails lately. The CSS support is horrible at best. I’ve found it’s easier to go ahead and apply text-transform while I’m building an email rather than let the email client try. Here’s a couple of regular expressions that I built to handle text transformation with ColdFusion. Uppercase // Uppercase Words (text-transform: uppercase) ...
Dec 17th
SQL Server Suppression Table
Suppress Stored Procedure Output I execute stored procedures from inside stored procedures a lot. It is a nice to reuse code so that the system behaves the same way for similar events. However, I don’t always want the returned resultsets from an invoked stored procedure to interfere with the resultsets from the calling stored procedure. The question then is, “How do you suppress...
Dec 14th
Conditional SQL Server Statements without the...
This technique allows you to write a single query with conditional SQL without using the security hole of EXECUTE. I won’t go into the security hole details in this post. If you’re building conditional statements with EXECUTE( @SQLString ), then you have security problems. This technique will allow you to rewrite that $ Without further interruption, here’s my code snippet: ...
Dec 13th
November 2012
1 post
Sublime Text Plug-in - SublimeCFStatsAndStandards
Alex Trican wrote a pretty awesomr tool for Sublime. You can check out the github project at https://github.com/dwkd/SublimeCFStatsAndStandards$ The tool is simple to use, I press ctrl + alt + s and I get a short and sweet readout on my ColdFusion components and pages. The report includes common ColdFusion best practices as well as inline JavaScript and CSS that need to be moved to individual...
Nov 4th
October 2012
4 posts
Determining Truth When x of n Values Are True
Today’s problem involves a common issue. How do you determine if 2 of 3 values are true? The first bit of conversation that pops into my head. “Well, that’s easy.” Quickly shut down by. “No, it ain’t.” I came up with two approaches to the problem: a manual and a functional solution. Functionally Determine When x of n Values Are True The...
Oct 25th
Virtually Linking a Folder for JRun Testing w/...
I’ve been testing various application server configurations with ColdFusion. Today, I was playing with JRun setup as both the web server and application server. JRun as a webserver expects your code to be in the webroot or cfusion.war directory. The problem is that I had no intention of putting it there. I have my source code setup in a nice structure and I didn’t want to export it...
Oct 24th
wget Reponse to Variable
I had a small problem to solve at work. A quick search or two later and here’s a quick shell script to call a webpage and return the result to a variable. That’s kind of cool, but I also work with development and QA servers that don’t have valid SSL certificates. Adding --no-check-certificate eliminate those pesky self-signed or just badly signed SSL certif$ I also added -t...
Oct 23rd
Regular Expression to Insert Character after every...
I had a simple problem today. I needed to validate some files, but all of the line breaks were missing. I was dealing with a fixed width format data. A quick regular expression later and I had readable data. Here’s a few examples to demo the idea. Insert a line break after every 94 characters Find (.{94}) Replace \1\n Insert a comma after every 10 characters Find (.{10}) Replace \1,
Oct 23rd
August 2012
1 post
Aug 26th
38 notes
July 2012
1 post
Reset Custom Tag Paths Script
When you’re deploying code on vastly different environments, then things break. One of those things is the ColdFusion Custom Tags path. This short script resets the Custom Tag path to ExpandPath( “/WEB-INF/cfusion/CustomTags” ). Why this isn’t the default behavior of ColdFusion, I have no idea. You’ll need to authenticate with the CFIDE API before you can use this...
Jul 19th
June 2012
1 post
A better way to load your JavaScript. I've shared...
Emil Stenstr?m created the script and explains everything on his post, (Lazy Loading Asynchronous JavaScript)[http://friendlybit.com/js/lazy-loading-asyncronous-javascript/]. The code is pretty simple. You change s.src to the script you want to load. <script type= "text/javascript"> (function() { function async_load() { var s= ...
Jun 15th
May 2012
3 posts
Essential Sublime Text 2 Plugins and Extensions
Net Tuts + has a nice collection of Essential Sublime Text 2 Plugins and Extensions
May 23rd
Front-end Job Interview Questions
This is a great resource for both parties. There’s some interesting tech you should follow-up on if you don’t know it. It’s also handy to have a bunch of these questions on hand when you need them. Front-end Job Interview Questions
May 23rd
Blog Without Comments
This is a story about my blog. I’ve tried several blogging platforms. I never found one that was a perfect fit. Tumblr fit well, but I was forced off of it. I tried to create my own blog platform a few times. I always got bogged down with scope creep. Blogs are simply no longer simple. As I was making my first Tumblr template, I noticed the lack of tags for comments. Tumblr only does...
May 9th
April 2012
6 posts
Thoughts on Email Templates
I recently styled some emails for work. Here’s some quick notes on what I found. This is mostly a note to my future self, but you can read along if you like. Starting Frame of Mind The whole process of email design reminds me of <div> happy designs. Initial Design and Layout Like all designs, start with fast paper prototyping. Once your paper prototype is done, I did the...
Apr 30th
Building a ColdFusion EAR File Using the...
ColdFusion Enterprise Edition comes with the ability to create EAR and WAR files for deployment onto J2EE application servers (JBoss, Tomcat, WebSphere, etc). ColdFusion is not specifically part of our go forward languages at work. However, Java is a definitely a go forward language with WebSphere being the preferred J2EE application server. WebSphere expects an E$ I’ve done ColdFusion...
Apr 24th
ColdFusion: Query of Query: Empty String matching...
If I run the following, then I get some entries of [empty string], but not all. I do get the valid responses, but I’m getting dirty data as well. where 1= 1 and ( 1= 0 or CAST( lower( [Query].[Foo] ) AS VARCHAR ) like ? or CAST( lower( [Query].[Foo] ) AS VARCHAR ) like ? ) ? = '%bar%' If I add IS NOT NULL, then I get clean results. where 1= 1 and ( 1= 0 ...
Apr 16th
Prosthetics Breakthrough Might Fuse Nerves With... →
Apr 14th
A systematic approach to making Web Applications... →
Apr 14th
A faster Web server: ripping out Apache for Nginx →
Apr 13th
February 2012
1 post
Feb 3rd
205 notes
January 2012
4 posts
Jan 31st
167 notes
Jan 31st
9 notes
3 tags
#coldfusion's cfdump style output in #php. yes.... →
matthopson: Do you like Coldfusion’s delicious <cfdump> output format but are stuck with the PHPs? Try dBug.  I’ve been using this little dude for over a year now, and absolutely love it.
Jan 17th
25 notes
Jan 3rd
1,029 notes
December 2011
7 posts
“Write to be understood, speak to be heard, read to grow…”
– Lawrence Clark Powell (via chasingidentity)
Dec 28th
29 notes
Dec 15th
7,824 notes
“What was Kurt like in class as a teacher? He was passionate, indignant. He...”
– Kurt Vonnegut at the Writers’ Workshop – a former student remembers what the iconic author was like as a teacher. Related must-read, Kurt Vonnegut: A Life.
Dec 15th
70 notes
JSON Validator →
matthopson: This is amazing. True story.
Dec 12th
7 notes
Dec 9th
1,676 notes
Anonymous asked: I am TRULY TRULY Thankful that I found your Tumblr account! The issue I am having is with Signing my PhoneGap Android app. I followed your instructions. I have the Keytool.exe in my Java folder & went through the whole process to only get the following : keytool error: java. io. 10. File Not Found Exception: name of my file. keystore < Access is denied >
Dec 8th
Dec 7th
9 notes
November 2011
11 posts
Nov 15th
96 notes
Nov 15th
28 notes
9 tags
Making ColdBox 3.1 Dance: Customizing ColdFusion...
This post covers customizing ColdBox 3.1 to use a custom directory structure. This post is part of a mini-series on Making Frameworks Dance: Customizing ColdFusion Frameworks. I like how Rails 3 applications are set up. I wanted to keep the following directory structure when converting the application to...
Nov 10th
24 notes
9 tags
Making ColdBox 2.6 Dance: Customizing ColdFusion...
This post covers customizing ColdBox 2.6 to use a custom directory structure. This post is part of a mini-series on Making Frameworks Dance: Customizing ColdFusion Frameworks. I like how Rails 3 applications are setup. I wanted to keep the following directory structure when converting the application to...
Nov 10th
1 note
9 tags
Making FW/1 Dance: Customizing ColdFusion...
This post covers customizing FW/1 to use a custom directory structure. This post is part of a mini-series on Making Frameworks Dance: Customizing ColdFusion Frameworks. I like how Rails 3 applications are setup. I wanted to keep the following directory structure when converting the application to...
Nov 10th
3 notes
8 tags
Making Frameworks Dance: Customizing ColdFusion...
This is a mini-series of posts on getting ColdFusion frameworks to dance. Most of them are stiffs who can’t count to three, much less do the Charleston. This mini-series is part of an overall series of converting a Ruby on Rails app to ColdFusion. I like how Rails 3 applications are setup. I wanted to keep the following directory structure when converting the application to...
Nov 10th
3 notes
6 tags
ColdFusion Prime Number Generator and Service →
I created a few prime number generators. I walk step by step through the process in a previous post ( http://orangexception.com/post/1419786549/i-made-a-couple-of-prime-number-generators ). I recently started looking at Project Euler problems again and I didn’t like how hard it was to use my prime number generator. The logic is fairly sound, but it’s was not the easiest code to...
Nov 8th
7 tags
ColdFusion-YUICompressor with Railo Support →
There are several YUICompressor implementations in ColdFusion. However, I have not found one that works in Railo. This project was based off of Tom de Manincor’s project on RIAForge, http://yuicompressorcfc.riaforge.org/. For those interested, you can read this thread to find out why Tom’s project doesn’t work in Railo (...
Nov 8th
7 tags
Create Sprites using ColdFusion
I built a sprite generator; It’s pretty sweet. https://github.com/orangexception/coldfusion-sprite-generator Sprites are pretty amazing. You can package similar files together to reduce the number of HTTP requests a browser makes when loading a page. This in turn speeds up loading your page. The sprite is generated on a grid system. However, the optimizer may choose to create a single...
Nov 8th
3 notes
Nov 2nd
5 notes
1 tag
Faster ColdFusion Documentation →
This site reduces my reference time by a lot. It’s very fast and the auto suggestions are great.
Nov 1st
October 2011
11 posts
9 tags
Minify JavaScript Regular Expression →
Notice Do not run this against minified JavaScript packages. The minified packages often rely on line returns to execute correctly. This regular expression was designed to minify simple JavaScript. Regular Expression (?s)[\t\r\n]|[ ][ ]+|/\*.*?\*/ I put spaces in square brackets as a reminder that they exist. Spaces can be important. For example, $( "#foo #bar" ) should not become...
Oct 20th
15 notes
4 tags
Minify CSS Regular Expression →
Regular Expression (?s)\s|/\*.*?\*/ Usage in ColdFusion sCSSContent= sCSSContent.ReplaceAll( "(?s)\s|/\*.*?\*/" , "" ); I updated the script after feedback on github.
Oct 20th
2 tags
CFML Show Episode 1 →
I snagged a mention. ;)
Oct 17th
6 tags
Using Github with Adobe and Aptana
Great post on connecting your ColdFusion projects to GitHub. artofidea: Git has become a popular source code management system, and Github has contributed to its continually gaining popularity. Though there is a learning curve, using basic features of Git is pretty intuitive, especially with several of the freely available tools available today. However; getting your environment configured to...
Oct 13th
11 notes
“My concern is not that the machines are going to become so smart. My concern is...”
– Kevin Slavin in conversation with Rob Walker. His blockbuster TED talk on how algorithms control our world is a must-see.
Oct 12th
40 notes