Home » Posts filed under Coldfusion
Showing posts with label Coldfusion. Show all posts
Thursday, December 13, 2018

ColdFusion 11 cfflush not working
There is a configuration setting that is necessary for the
You will need to restart IIS for this change to take affect.
I'm not sure what the performance ramifications are of disabling this setting. You will need to do some load testing for your particular environment to see.
Source: https://stackoverflow.com/questions/27115260/coldfusion-11-cfflush-tag-not-working-correctly
<cfflush>
tag to work properly with the web server. On the Configuring web servers in Windows documentation page, under the Configure IIS for ColdFusion in Windows section, among other things it states:To disable webserver buffer, change theNote that there is a typo in the Adobe documentation that I referenced above. It should stateis_buffer_enable
[sic] tofalse
in the cfroot\config\wsconfig\1\isapi_redirect.properties file. Disable webserver buffer if you want cfflush to work over an IIS connector. If your application does not use cfflush, set it to true for increase in the performance.
iis_buffer_enable
, not is_buffer_enable
(missing an 'i'). Thanks to KrunchMuffin for pointing that out.You will need to restart IIS for this change to take affect.
I'm not sure what the performance ramifications are of disabling this setting. You will need to do some load testing for your particular environment to see.
Source: https://stackoverflow.com/questions/27115260/coldfusion-11-cfflush-tag-not-working-correctly
Friday, May 8, 2015
Wednesday, February 26, 2014

Max Number in List (Solution)
<cfset myList = "1,3,1,2,5,2,2,3,2,3,4"> <cfset maxNum = ArrayMax(ListToArray(myList))>
credit: bytes.com
Wednesday, November 28, 2012

Capitalize first letter in every words
ReReplace(str,"\b(\w)","\u\1","ALL")This is a case sensitive replacement. To alter this simply use "ReReplaceNoCase" instead of ReReplace.
or else if you want to customize you can make it as function
<cffunction name="CapFirst" access="public" output="false" returntype="String"> <cfargument name="inputString" required="false" type="String" default="" /> <cfreturn rereplace(lcase(arguments.inputString), "(\b\w)", "\u\1", "all") /> </cffunction>Gud luck!
Thursday, October 25, 2012

Removing the last character in a string
RemoveChars() function.
Description
Removes characters from a string.
Returns
A copy of the string, with count characters removed from the specified start position. If no characters are found, returns zero.
RemoveChars(string, start, count)
input: ihave
output: ihav
Description
Removes characters from a string.
Returns
A copy of the string, with count characters removed from the specified start position. If no characters are found, returns zero.
RemoveChars(string, start, count)
input: ihave
output: ihav
Thursday, August 30, 2012

Internet Explorer knowing MIME types list
lol. when i develop upload function in my site, mostly tested on Mozilla & Chrome was alright but when comes to IE, my system catch error when uploading the image. i dump all attribute and found the MIME type is not like usually type. It was pjpeg, P stands for Progressive. the problem because i not includes filter image/pjpeg & image/x-png. after i add it, all fine :)
*act, it was my 1st time develop upload function. so noob =.='
So this is what i've found googling for IE
*act, it was my 1st time develop upload function. so noob =.='
So this is what i've found googling for IE
Known MIME Types IE
Wednesday, June 27, 2012

CFDirectory with Multiple Filters
Without Filter
<cfset filters="">
<cfdirectory action="list" directory="#ExpandPath('.')#/cfgrid" filter="#filters#" listinfo="name" name="dir">
<cfdump var="#dir#">
<cfset filters="">
<cfdirectory action="list" directory="#ExpandPath('.')#/cfgrid" filter="#filters#" listinfo="name" name="dir">
<cfdump var="#dir#">
Wednesday, April 6, 2011

Simple Coldfusion Calendar
Building a simple calendar in Coldfusion. Thanks a lot to
Raymond Camden's for this simple nice code.
This is a ver2 from he also version 2
tada.. success simple calendar.
Raymond Camden's for this simple nice code.
This is a ver2 from he also version 2
tada.. success simple calendar.
Subscribe to:
Posts
(
Atom
)