Recent Web Log Entries By Ben Nadel

How I Got Node.js Running On A Linux Micro Instance Using Amazon EC2

Posted: January 27, 2012 at 6:42 PM by Ben Nadel

Tags: Javascript / DHTML

In the past, I've dabbled with Node.js (a server-side JavaScript runtime environment) on my local MacBook Pro. If you know JavaScript, it's not too hard to get something up and running on your local machine. Putting Node.js out into the wild, however, is whole other beast. Not only am I mediocre at managing web servers in general, I happen to kn... read more »

Comments (2)  |  Post Comment  |  Ask Ben  |  Permalink



Extending Classes In A Modular JavaScript Application Architecture Using RequireJS

Posted: January 26, 2012 at 10:25 AM by Ben Nadel

Tags: Javascript / DHTML

Yesterday, I tried to apply some deep thinking to how dependencies should be managed in a modular JavaScript application architecture that is using RequireJS . The conclusion that I came to was that RequireJS should manage and load "definitions" while your application should manage and load "instances." This makes sense since instantiation is the... read more »

Comments (0)  |  Post Comment  |  Ask Ben  |  Permalink


Managed Dependencies vs. Dependency Injection In RequireJS

Posted: January 25, 2012 at 10:37 AM by Ben Nadel

Tags: Javascript / DHTML

In my journey towards understanding modular JavaScript application architecture, I've been using a lot of RequireJS . The RequireJS framework facilitates the organization and then the subsequent loading of individual JavaScript classes . When it comes to defining classes, RequireJS provides us with two opportunities for dependency loading: manag... read more »

Comments (8)  |  Post Comment  |  Ask Ben  |  Permalink



Creating A Keyboard-Shortcuts Module In A Modular JavaScript Application

Posted: January 23, 2012 at 11:03 AM by Ben Nadel

Tags: Javascript / DHTML

Last week, I looked at handling keyboard shortcuts in a modular JavaScript application architecture . In that initial exploration, I distributed the handling of keyboard shortcuts across two different modules: a Controller module and the View module that would ultimately be affected by the command. After I was done with the code, however, I was l... read more »

Comments (7)  |  Post Comment  |  Ask Ben  |  Permalink


Handling Keyboard Shortcuts Within Modular JavaScript Application Architecture

Posted: January 20, 2012 at 4:40 PM by Ben Nadel

Tags: Javascript / DHTML

Yesterday, when using Gmail, I started to think about keyboard shortcuts. Specifically, I started to think about how keyboard shortcuts get routed within a modular JavaScript application architecture. If I have a module that can respond to the keyboard - but, that module is not supposed to "know" about the document at large - how does it listen fo... read more »

Comments (1)  |  Post Comment  |  Ask Ben  |  Permalink


Using An IFrame To Override document.write() Inside A DOM (Document Object Model) Sandbox

Posted: January 19, 2012 at 10:49 AM by Ben Nadel

Tags: Javascript / DHTML

Last week, I talked about loading GitHub Gist content after the DOM (Document Object Model) had loaded . This was a somewhat complex operation since the remote Gist Script tag uses document.write() in order to inject the Gist content into the calling document. If document.write() is called after the parent document has been "closed," the write() ... read more »

Comments (2)  |  Post Comment  |  Ask Ben  |  Permalink


A Book Apart: Responsive Web Design By Ethan Marcotte

Posted: January 18, 2012 at 10:31 AM by Ben Nadel

Tags: Books

Last weekend, I read Mobile First by Luke Wroblewski . It was a compelling read that talked about the broader benefits of designing to the constraints of a mobile experience. At the end of his book, he suggested that Ethan Marcotte's book on Responsive Web Design would be a perfect compliment to the "mobile first" approach to web development. A... read more »

Comments (6)  |  Post Comment  |  Ask Ben  |  Permalink


Trying To Mimic LET Functionality In JavaScript Using Self-Executing Functions

Posted: January 17, 2012 at 10:31 AM by Ben Nadel

Tags: Javascript / DHTML

Last night, I was listening to the Lately In JavaScript podcast . Among the many items discussed, one topic that was brought up was the emergence of the LET keyword in the next version of ECMAScript (the language on which JavaScript is based). LET allows for block-level variable binding; so, while the VAR keyword allows for function-level variabl... read more »

Comments (2)  |  Post Comment  |  Ask Ben  |  Permalink


Experimenting With GitHub Gist-Based Code Samples For My Blog

Posted: January 16, 2012 at 10:25 AM by Ben Nadel

Tags: ColdFusion, Javascript / DHTML

Last week, I started looking around for a new color-coding solution for my blog's syntax highlighting. For the past couple of years, I've been using my own home-grown algorithm; which worked well for ColdFusion but, quite poorly for everything else. After looking at some of the options out there, I settling on trying to integrate GitHub's Gist hos... read more »

Comments (7)  |  Post Comment  |  Ask Ben  |  Permalink


Loading GitHub Gists After The Page Content Has Loaded

Posted: January 13, 2012 at 10:54 AM by Ben Nadel

Tags: Javascript / DHTML

A long time ago, I created a syntax highlighter / color-coder for my blog post code snippets. It was a pain to create; but in the end, it worked pretty well. For ColdFusion code. That was tag based. In recent years, however, I've tried to branch out a bit, playing with other languages, JavaScript in particular. For these languages, my color coding... read more »

Comments (11)  |  Post Comment  |  Ask Ben  |  Permalink


Using jQuery Deferred To Create Compound Objects From Multiple Asynchronous Data Sources

Posted: January 11, 2012 at 11:02 AM by Ben Nadel

Tags: Javascript / DHTML

As of now, all of my experimentation with modular JavaScript application architecture has been exclusive to client-side code. That is, it involves Views and Controllers, but no real sense of any Model that is tied to a persistent data store. As I've started to think about experimenting with the Model facet of client-side MVC (Model-View-Controll... read more »

Comments (2)  |  Post Comment  |  Ask Ben  |  Permalink


Using The RequireJS Build / Optimizer To Concatenate Modularized CSS Files

Posted: January 10, 2012 at 10:19 AM by Ben Nadel

Tags: HTML / CSS

A little while back, I started looking at RequireJS as away to organize and modularize my JavaScript code . And, while I am still getting my feet wet in modular JavaScript web application development, I can tell you that I have really enjoyed using RequireJS - and, that I plan to continue to integrate it into my development process. The asynchron... read more »

Comments (7)  |  Post Comment  |  Ask Ben  |  Permalink


Building Executable Scripts For The Mac OSX Command Line

Posted: January 9, 2012 at 9:49 AM by Ben Nadel

Tags: Javascript / DHTML

I'm relatively new to the Mac OSX operating system . And, as far as getting around on the command-line, I'm even more of a novice. I can't remember where I saw this, but recently, I saw a fellow programmer execute a set of command-line scripts from a file. What was so interesting to me about this, however, was that the file was invoked like a sta... read more »

Comments (16)  |  Post Comment  |  Ask Ben  |  Permalink


Creating A Fixed-Length Queue In JavaScript Using Arrays

Posted: January 6, 2012 at 9:47 AM by Ben Nadel

Tags: Javascript / DHTML

The other day, I was laying in bed thinking about JavaScript Arrays. Specifically, I was thinking about an Array that would have a fixed length - something that would maintain a maximum length, even as new items were pushed onto the stack. I had envisioned creating some sort of container for "recent" data value (ex. last 50 messages). As a fun tho... read more »

Comments (7)  |  Post Comment  |  Ask Ben  |  Permalink


Disabling Auto-Correct And Auto-Capitalize Features On iPhone Inputs

Posted: January 5, 2012 at 9:29 AM by Ben Nadel

Tags: HTML / CSS

Over the weekend, I read Mobile First by Luke Wroblewski . In his book, Wroblewski mentioned that in order to create the most usable experience on a mobile device, one should probably turn off the auto-correction and auto-capitalization features for input fields that don't require them. This way, users don't have to worry about their email addres... read more »

Comments (9)  |  Post Comment  |  Ask Ben  |  Permalink

January 2012 Entries »

Previously Posted

What CSS Properties Are Supported When You Drop IE6 Support - Posted Jan 4, 2012
A Book Apart: Mobile First By Luke Wroblewski - Posted Jan 3, 2012
Experimenting With A JavaScript Gateway To A Remote ColdFusion Persistence API - Posted Dec 30, 2011
How Client-Side Validation Is Changing The Shape Of Server-Side Validation - Posted Dec 29, 2011
Preventing Links In Standalone iPhone Applications From Opening In Mobile Safari - Posted Dec 27, 2011
InVision - Front-End JavaScript Developer Positions - Posted Dec 23, 2011
Creating A JavaScript Shim For Array Unshift() Method - Posted Dec 22, 2011
For Pay: I Need A Few Hours Consulting On Modular JavaScript Application Architecture - Posted Dec 20, 2011
Be Careful When Using The jQuery Proxy() Method Outside Of A jQuery Context - Posted Dec 19, 2011
EmailYak.cfc - A ColdFusion Wrapper For The Email Yak API - Posted Dec 14, 2011
Scalable And Modular Architecture For CSS (SMACSS) By Jon Snook - Posted Dec 12, 2011
Creating An Image Thumbnail Service Using Email Yak Attachments And ColdFusion - Posted Dec 9, 2011
Using Email Yak To Provide Bidirectional Email Communication In Your Web Applications - Posted Dec 7, 2011
A Book Apart: Designing For Emotion By Aarron Walter - Posted Dec 5, 2011
Extending JavaScript Arrays While Keeping Native Bracket-Notation Functionality - Posted Dec 1, 2011
Invoking A Native JavaScript Constructor Using Call() Or Apply() - Posted Nov 30, 2011
XML Posts Without A UTF-8 Encoding May Lead To 400 Bad Request Errors - Posted Nov 28, 2011
Using jQuery's Pipe() Method To Chain Asynchronous Validation Requests - Posted Nov 21, 2011
My First Look At The RequireJS Build Optimizer For Node.js - Posted Nov 17, 2011
Using jQuery As A Named Module In RequireJS - Posted Nov 16, 2011
Accepting PCI-Compliant Payments Without A Merchant Account Using Stripe And ColdFusion - Posted Nov 15, 2011
Writing A RequireJS Plugin To Load Remote jQuery Templates - Posted Nov 11, 2011
Using java.util.Collections To Shuffle A ColdFusion Query Column Corrupts Column Values - Posted Nov 8, 2011
Keeping Modules Decoupled Using Signals And Mediators - Posted Nov 4, 2011
Global Events vs. Entity-Bound Events In JavaScript Application Architecture - Posted Nov 2, 2011
jQuery Appends Multiple Elements Using Efficient Document Fragments - Posted Nov 1, 2011
Using jQuery's $.map() Method To Convert Data Into Detached DOM Node Buffers - Posted Nov 1, 2011
The Five Secrets You Must Discover Before You Die By John Izzo - Posted Oct 31, 2011
ColdFusion ORM: A Guide To Developing Applications Using ColdFusion ORM By John Whish - Posted Oct 31, 2011
Using the Text Plugin With RequireJS To Load Remote HTML Templates - Posted Oct 28, 2011
Using One Object Per Event Type With Publish And Subscribe (Pub/Sub) - Posted Oct 27, 2011
Using RequireJS For Asynchronous Script Loading And JavaScript Dependency Management - Posted Oct 26, 2011
jQuery Can Provide Queue-Based Promise Objects - Posted Oct 24, 2011
The School Of Practical Philosophy: Love - Week Five - Posted Oct 19, 2011
Getting Contact, Photos, And Social Media Information Using FullContact.com And An Email Address - Posted Oct 12, 2011
The School Of Practical Philosophy: Love - Week Four - Posted Oct 12, 2011
Creating A Timer (Timeout) Using jQuery Deferred Objects - Posted Oct 11, 2011
Creating A Private Scope By Extending The Public THIS Scope In JavaScript - Posted Oct 10, 2011
Appending An Array Of jQuery Objects To The DOM - Posted Oct 7, 2011
Decoding Morse Code With JavaScript - Posted Oct 6, 2011

View All Blog Entries »

  • Help Wanted - Find Your Next ColdFusion Job
InVision App - Prototyping Made Beautiful With Prototyping Tools Ben Nadel's Company - Epicenter Consulting Recent Blog Comments
Jan 29, 2012 at 2:01 PM
Accepting PCI-Compliant Payments Without A Merchant Account Using Stripe And ColdFusion
@Ryan - The website below has some good information on the topic of fees: http://www.merchantmaverick.com/pci-compliance/pci-compliance-fees/ In short, if it's listed as a "non-compliance&qu ... read »
Jan 29, 2012 at 12:12 PM
Accepting PCI-Compliant Payments Without A Merchant Account Using Stripe And ColdFusion
Does anyone know why some merchants charge a PCI insurance fee? What does this insurance cover and is it necessary? Thank you ... read »
Jan 28, 2012 at 4:27 PM
Finding The Distance Between Latitude / Longitude Locations In ColdFusion
@Brian - Each degree of latitude is approximately 69 miles (111 kilometers) apart. The range varies (due to the earth's slightly ellipsoid shape) from 68.703 miles (110.567 km) at the equator to 69. ... read »
Jan 28, 2012 at 12:29 PM
Finding The Distance Between Latitude / Longitude Locations In ColdFusion
Jody, yes that would work if the lang-long system was an evenly distributed Cartesian space, but as far as I understand it, that is not the case. So the farther north you go, for instance, 1km in act ... read »
Jan 28, 2012 at 12:05 PM
How I Got Node.js Running On A Linux Micro Instance Using Amazon EC2
@ben, my new favorite node server for screwing around is actually the beaglebone. Been pretty fun to actually use node to integrate with real world physical devices. http://beagleboard.org/bone ... read »
Jan 28, 2012 at 9:45 AM
How I Got Node.js Running On A Linux Micro Instance Using Amazon EC2
Nice post! And from there,it would be nice to have an nginx proxy to redirect incoming requests to your local instances (in case you want to use serveral domains app1.mydomain.com, app2.mydomain.com ... read »
Jan 28, 2012 at 4:00 AM
Finding The Distance Between Latitude / Longitude Locations In ColdFusion
A^2+B^2=C^2 You can find the length of A, and B easily using elementary math, just think about plot charts; once you have that you can do that math to find the length of C and remember 1 degree in l ... read »
Jan 28, 2012 at 12:05 AM
The Beauty Of The jQuery Each() Method
Looks like your site is getting alot of visitors. visit here more details of SPA/Cosmetic : http://www.kazimaperfumers.com ... read »