Category Filtering: 'ColdFusion'
Anyways, to sum up the problem
Excel stores dates as numbers therefore the only way to determine if a cell is actually stored as a date is to look at the formatting.
Enter a little digging in the docs and the API and you find the famous HSSFDataFormat class.
This class will help you get the correct formatting for any kind of date, datetime, etc.
CF tags:
CFCOLLECTION
CFCONTENT
CFEXECUTE
CFLOG
CFOBJECT
CFOBJECTCACHE
CFREGISTRY
CF functions:
SetProfileString
CreateObject(COM)
CreateObject(CORBA)
CreateObject(JAVA)
Not only that, they have given no warning to their customers. I had to email them that a friend of mine told me. So here is the deal where they screw up. Under their terms of service they write:
2. Web Hosting Services
For the term of the agreement as set forth herein DAILYRAZOR agrees to provide web hosting services according the plan selected by you upon activation of your account. DAILYRAZOR reserves the right to change, amend and/or otherwise alter the services provided with equivalent or otherwise equal services without prior notice to you.
The last line says it all:
provided with equivalent or otherwise equal services without prior notice to you.
The fact of the matter is that they will NOT be providing equal services. They will be hindering services and breaking applications. Not only that, the amount of time needed to transfer and recreate the applications and websites in another host will take weeks.
I need legal counsel or should I just seek alternatives and take in the damages?? What do you guys recommend?
Any recommendations?
Anyways, to sum up the problem
Excel stores dates as numbers therefore the only way to determine if a cell is actually stored as a date is to look at the formatting.
Enter a little digging in the docs and the API and you find the famous HSSFDateUtil class. This class contains a bundle of static methods for you to check and validate date formatting in excel.
The project used is CFCDoc and can be found at http://cfcdoc.riaforge.org/. To do the metadata update if you use this great project, you will need to open the doctemplate.cfm found in the templates folder. Look for the following line of code:
You can see a demo a the following address: http://www.oscararevalo.com/buglogdemo
When using a query with the IN modifier and a list, you cannot just map a parameter with a value, you have to specify that its a list. (Reading the docs might help!!). Adventurous Luis, went ahead without fully reading Mr. Mandel's excellent docs and of course, fell in a cavernous pit of despair.
Here is my sample:
If you have not heard about Railo, then you should. It is an excellent CFML engine and best of all, the pricing on it is awesome. ColdBox is fully supported under the new Railo 2.0 and let me tell you, it FLIES!! Railo on itself is an incredibly fast CFML engine. You add ColdBox to the mix and you have a powerful combination. You can go here and find out more information about Railo & ColdBox.
ColdBox can also be converted into a Railo archive and all the new upcoming releases will include the framework in Railo Archive format. So if you haven't checked out Railo, then do, it is a great CFML alternative.
Test Results 1:
Iterations: 30
Loops per Iteration: 5000
Avg No variables scope: 20.8333333333 ms
Avg. using variables scope: 43.7333333333 ms
Setup: Windows XP/IIS/CFMX 7.0.2
Test Results 2:
Iterations: 30
Loops per Iteration: 5000
Avg No variables scope: 4.7 ms
Avg. using variables scope: 11.9666666667 ms
Setup: Windows XP/IIS/CFMX 8 GMC
UPDATES:
Test Results 3:
Iterations: 30
Loops per Iteration: 5000
Avg No variables scope: 8.23333333333 ms
Avg. using variables scope: 17.1333333333 ms
Setup: Mac Intel/Apache/CFMX 7.02