Entries Tagged as "CFML"
Working with really large files in CFML
I needed to parse the usage log file of my showTweets plugin. I got a
bit scary, because the bloody thing was over 800 megabytes in size!
As
a logical solution, I thought of using <cfloop file="x" />,
because that way not the whole file needs to be read into memory. But
when I ran the code, it crashed anyway with an outOfMemory error :-(
I just recently learned about how the Java Virtual Machine and Railo...
CF function generate3DesKey, v1.1
Adobe Coldfusion already had this function built-in, without any documentation.
Now it is here for all CFML developers:
<cffunction name="generate3DesKey" output="no">
<cfargument name="fromstring" type="string" required="no" />
<cfif not structKeyExists(arguments, "fromString")>
<cfreturn generateSecretKey('DESEDE') />
</cfif>
<cfset var secretKeySpec = createObject("java", "javax.crypto.spec.SecretKeySpec").init(arguments.fromstring.getBytes(), "DESede") />
<cfreturn toBase64(SecretKeySpec.getEncoded()) />
</cffunction>
Updated, with thanks to Jason Dean :-)
My first own CFML tag: <cfhoneypot>
If you are a CFML (Coldfusion) programmer like me, you know the power of
all those <cf...> tags which we use everyday. Every new release
of Adobe Coldfusion gives us new tags, after which the opensource
engines like Railo include them in their
products a.s.a.p.
But did you know that you can also create your own
<cf...> tags with Railo? And that they can be written in CFML?
Difficult? No, not at all!
Mangoblog plugin: rememberLogin! v1.0
I made this tiny little mangoblog plugin because I just hate to fill in login forms over and over again. So, with a little help of jquery, you can now have a "remember this
login" checkbox at the login screen of your mangoblog admin...
Railo presentation in The Netherlands, 16 july 2010
As you can read on the Carlos Gallupa website, there will be a meeting and presentation on Railo 4.0 with Railo's CEO Gert Franz the 16th of july 2010! I am working at Carlos Gallupa as a developer, and we just love to work with Railo, the opensource CFML (Coldfusion) engine.
Join the meeting by registering here, or read more about it (in Dutch).
Recent Comments