April 2013 Blog Archive

Image cropping & resizing with HTML Canvas now built-in to Jetendo CMS Mon, Apr 29, 2013 There are ugly white margins in some of the images we get from third party data providers and we like to remove these margins before the user sees the images.  Several months ago, I wrote a PHP script that detects where the white margins ends an... Read More

Nginx 1.4 stable release brings SPDY protocol and more Thu, Apr 25, 2013 The Nginx 1.3.x development version had several exclusive features not found in the previous 1.2 stable releases.  I wanted to use SPDY, and some other modules last year, and I found the development version of Nginx to be reliable for my needs.... Read More

New and cfimport are slower then createobject? Tue, Apr 23, 2013 ColdFusion 10 and Railo 4 added support for the "new" operator which can be used in conjunction with <cfimport> to allow an alternative form of object creation then using createobject().   Today, I noticed the Adobe docs claim that using... Read More

Pros and Cons of CFML vs PHP and other languages Wed, Apr 17, 2013 It seems like the world is getting more diverse and specialized as we have a variety of choices where there used to be so few for web development. Often, I write about how Railo and CFML benefits me.  This time I'm going to point out some diffe... Read More

HTML 5 template language for CFML applications Wed, Apr 17, 2013 What should a framework do and what should a language do?   CFML does have a good amount of built-in framework functionality already.  It gets confusing on what is language or not, doesn't it?   It seems that CFML's job is to merge a b... Read More

Solution for blank screen when using KVM device to access remote server Tue, Apr 16, 2013 Ah, so today I made a stupid mistake and got totally lost going down the wrong path. My hosting company, hivelocity.net, connects a KVM device to the server when I need to do certain kinds of changes to the server myself. It seems they are using a ... Read More

Peace of mind promises by hosting companies are often clever marketing with little substance Tue, Apr 16, 2013 What I find with hosting companies is that downtime is usually related to software problems rather then the network or hardware. When it comes to network or hardware, the hosts I've used (Rackspace, theplanet, softlayer, liquidweb, 1and1, godaddy, h... Read More

Web application performance optimization tips for CFML, PHP and other languages Mon, Apr 15, 2013 It's taken me a long time to eliminate disk overhead from my web application, and I'm not done yet. Once you have an app that is CPU bound instead of disk bound, then you can start to justify using some other more efficient language. However, there i... Read More

Hot rod your PHP app with Caucho Quercus and start learning Java technologies Mon, Apr 15, 2013 Caucho Quercus is a commercial solution for accelerating PHP applications that starts at around $700 for a single processor.  They rewrote PHP to run on the Java Virtual Machine, which is a pretty amazing feat.  Caucho was able to optimize ... Read More

A plan for scaling a CMS to multiple servers Mon, Apr 15, 2013 This article attempts to discuss how you could go about converting an application that is designed to run on one server to run on multiple servers.  Jetendo CMS is my application and it has its own unique issues to solve, but most of this articl... Read More

Running Jetendo CMS at 5,000+ requests per second with nginx proxy_cache and SSI Mon, Apr 15, 2013 Publishing a dynamic web site to static files to improve performance is nothing new.  Most major sites probably have some form of static caching in place.  The real work is figuring out how to get your cache to stay fresh and avoid clearing... Read More

Considerations when implementing high availability for a web application Wed, Apr 10, 2013 If you host an web application, do you want to make it fault tolerant? Will you use high availability to scale out to multiple servers? To what extent would you take this? Below, I discuss how you might answer these questions for yourself. I help ... Read More

Should you use CFML for new projects? I do. Mon, Apr 08, 2013 I think people would choose CFML because they don't know how to program very well and want to get things done quick. CFML may be the fastest way to prototype something on the backend. A lot of modern apps are using javascript more now, so that part o... Read More