cftopper.com

Smart Maintenance Message

If you need to perform an upgrade on your ColdFusion website and it requires keep users away for a little while so they don't see error messages, then you can use the following ColdFusion file to show them an "upgrading..." message.

Your users will see this message but your team can continue accessing the website by entering an access code on the URL like so www.testsite.com/?accesscode=byPass

The access code can easily be changed in the file and the template can easily be turned off by changing 1 to 0 at the start of the file.

Display this message when doing an upgrade.

Tags: Tips | Tools

CFQUERYPARAM Vs Slow Query Logging

I use MySQL's slow query logging on all our servers and applications to identify any bad queries and bottlenecks.

But check this out - I was just on the MySQL slow query page and somebody has left a comment:

"Please note that the mysql slow query log will not show the SQL
of your slow queries if your application uses prepared statement."

So if we use <cfqueryparam...> we are fucking ourselves by not being able
to analyse slow queries.

That sucks!

Thief in the night - AutoComplete="OFF"

Firefox suddenly stopped remembering my login credentials for online Banking a few months ago. So everytime I want to remind myself how poor I am, I had to poke around in Google Docs for my "internet Banking" number,  copy it to the form, then enter the password - a tedious and slow process.

I thought autocomplete not working was just a firefox glitch and that it would eventually right itself. This morning I did a search and encountered the obscure atocomplete="off" attribute.

"Could this be the problem", I mused, And so I checked - Indeed my Bank's login form is now using this attribute to save dumb users from themselves (Dumb users meaning those people that might click "remember this password" in an internet caféWink.

How to Turn Back on Autocomplete


You can use a greasemonkey script to change autocomplete="no" to autocomplete="yes" on all forms on the webpage. There are a number of simple greasemonkey scripts to do just this available at:

http://userscripts.org/scripts/search?q=autocomplete


Hat tip: howtogeek.com

I don't know everything!


I've been programming websites for almost 10 years now and I missed this autocomplete attribute or else passed over it. Kind-of disappointed with myself - I don't know everything afterall! Messing

About Topper on ColdFusion

Peter Coppinger aka Topper is a neurotic web monster who spends most of his chaotic life developing ColdFusion web applications when not drinking himself into a stupor and scheming his plans for world dominance.

Peter founded Digital Crew way back in 1999. Digital Crew run CFTagStore.com and have also produced lots of powerful ColdFusion tools like ProFlashUpload and CFMyAdmin.

I made this site to share my thoughts, tips and tools with fellow ColdFusion developers.

If your a ColdFusion developer, go ahead and subscribe to this site and in exchange i'll try to provide quality content to make it worth your while.
RSS Feed for Topper on ColdFusion

I'm speaking at CF-United Europe!

CFDevCon I'm going to be speaking at CFDevCon08! It's my second time speaking in front of more than 10 people so please lend your support.

The topic is:
Introducting TeamworkCMS and Site Engine - Building better websites in half the time or something like that..

Digging

My Work - Just Finished

  • modules.cit.ie
    Web-=based modules/programmes designer tool and database system for Cork institute of technology.
  • Teamwork Project Manager
    The top secret project is finally released. The project management app will rock your world - give it a go.
  • PMG
    New website for Project Management Group website.
  • Digital Warehouse Wholesale
    Added wholesale products to existing client website.
  • New Digital Crew documentation website
    New version of documentation.digital-crew.com using new InfinityCMS site engine. It's done now. Just add content.
  • PFH Company Webite
    New website/CMS/Newsletter System for prestigious Irish IT company.
  • Module Manager for CIT
    CIT is switching to module based courses. We are making an application for managing/submitting these modules. Gettig there.
  • Bons Secours Cork Hospital Intranet
    New Intranet for Bons Secours hospital in Cork. Considering turning this Intranet system into stand-alone product.
  • Revamping InfinityCMS
    I'm making major improvements to our content management solution, InfinityCMS. Making it faster, more powerful and easier to check into/out-of source control. Done but it's always going to be evolving.
  • BPC Update
    Minor functionality update for internal Pfizer Best Process Chemistry project.