Entries Tagged as 'Misc'

Definition of a Function vs Method

ColdFusion , Javascript , Misc No Comments »

After a recent discussion as to the correct terminology to use when referring to code written in CFCs I've decided to share my opinion so people have a general idea as to what is meant when someone is referring a function or a method in its simplest sense. 

  • A function is a piece of reuseable code that is called by name.  It can be passed data to operate on (arguments / parameters) and can optionally return a result.
  • A method (also known as a property method) is a piece of code that is called by name that is associated with an object.  A method is almost identical to a function but it's purpose is generally to operate on the data contained within the component (class).

For example, in JavaScript, methods are defined as object properties that contain a function() whose intent is to operate on the data within that object.  Whereas an example of JavaScript functions would be built in global functions such as isNaN(), alert() or user defined functions function debugLog( content ){ console.log( content ) }.

Likewise, in ColdFusion, you could probably say that UDFs (User defined functions) and the standard built in functions provided by ColdFusion are "functions" and the functions within CFCs are methods.

I'm sure people have their own opions on this but in general that's how I like to refer to functions or methods.

 

Bookmark and Share

Contact Form Issue

Misc 1 Comment »

All, sincere apologies, but I have just realised that my Contact form hasn't been working.

If you have used this to contact me please and I have not yet replied please resend to [niall] [@] [niallodoherty.com] or contact me using the details on my About page.

Once again, sorry about that and I am working with my hosting provider to get this resolved.

Regards,

Niall.

Bookmark and Share

YouBloom - Blew me away

Misc No Comments »

YouBloom is a community-based platform created by artists for artists and their friends and fans.  Established to support unsigned talent, YouBloom's Vision is to enable musicians and artists to fulfill their potential, building and connecting them directly with a wider audience and – importantly – helping them to make a living.

Last night I had the pleasure of attending one of their awards cermonies, complements of my good friend Paddy Cutliff, where a number of bands \ artists performed live.

Aside from rubbing shoulders with the likes of Sir Bob Geldof, YouBloom founder Phil Harrington, International A&R music legend Nigel Grainge, songwriter & music producer Rupert Hine etc.  I also got to listen to and meet some amazing new and up-coming talent!!  There were no cover bands or karaoke queens here - this was the real deal!!!

Read more...

Microsoft Office 2007 MIME Types with Apache and IIS

Apache , IIS , Misc , MS Office , Server and Hosting 4 Comments »

 

I was working with a 3rd Party file service \ handling provider and came across an issue whereby when I uploaded a Microsoft Office 2007+ document the "detected MIME type" was being returned as "application/zip".

Turns out there's an easy enough fix for this for their servers.  Simply update the web server to include the new \ incorrect MIME types. 

 

Read more...

neo-cron.xml corruption issue

ColdFusion , Gotchas , Misc , Server and Hosting No Comments »

After New Years - we returned to a sickly server, and something I never came across before - so I thought I'd share this with you all!

Background

Our servers are deployed as Multiple J2EE Instances runnng the latest version of ColdFusion 9.0.1.

When we tried accessing one particular application, we got the following error:

The Cron service is not available.  
This exception is usually caused by service startup failure. Please check your server configuration.

Don't be fooled by the error message, the real issue lies in a corrupted server file.

Turns out the neo-cron.xml file was corrupted.

Read more...

Powered by Mango Blog. Design and Icons by N.Design Studio
RSS Feeds