Posted: October 7, 2008 at 9:37 AM by Ben Nadel
Just a quick update to KinkyTwits, my ColdFusion, jQuery, and MySQL powered Twitter client . I know that some people have had issues with other twitter clients in that they do not accurately report the number of remaining characters. The problem is that these other clients do not take into account HTML entities that must be escaped. KinkyTwits no... read more »
Comments (2) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 6, 2008 at 9:10 AM by Ben Nadel
Last week, I had mentioned on Twitter that I was gonna try to build my own Twitter Client for yucks (trying to attain true Geek status). I came up with " KinkyTwits ". I put a good 12 or 13 hours into this over the weekend and I think I came up with some cool stuff. It's definitely rough and the code really needs to be organized much better, but i... read more »
Comments (25) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 3, 2008 at 9:25 AM by Ben Nadel
Last night, I made a quick post about getting all the classes available in a JAR file using ColdFusion . I went about this using a JarInputStream. Thankfully Todd Sharp and Simon Free reminded me that ColdFusion's CFZip tag can read JAR files as well as ZIP archives. Using ColdFusion's CFZip tag actually makes my GetJarClasses() much more sim... read more »
Comments (2) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 2, 2008 at 8:05 PM by Ben Nadel
You'll probably never need to do this, but today, I needed to find out what Java classes were available in a given JAR file using ColdFusion. The reason - I was doing some work on my POI Utility ColdFusion custom tags and I needed to see if the version of the POI JAR that ships with ColdFusion supports certain classes. Turns out, this is a fairl... read more »
Comments (5) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 1, 2008 at 9:58 AM by Ben Nadel
I'm trying to create an instance of: java.awt.geom.Point2D.Double in coldfusion: http://java.sun.com/j2se/1.5.0/docs/api/java/awt/geom/Point2D.html Point2D.Double is a nested class inside of the abstract class Point2D. I have tried to instantiate the class, but get, "This fails because Coldfusion cannot find the class." And which does not work b... read more »
Comments (7) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 30, 2008 at 9:55 PM by Ben Nadel
The latest OOPhoto application can be experienced here . The OOPhoto code for this post can be seen here . Today, I took my initial thoughts on implementing security in an object oriented application and tried to apply them to OOPhoto, my first attempt at learning object oriented programming in ColdFusion. This was definitely a shaky f... read more »
Comments (7) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 29, 2008 at 9:23 PM by Ben Nadel
The latest OOPhoto application can be experienced here . The latest OOPhoto code can be seen here . As of this moment, OOPhoto - my latest attempt at learning object oriented programming in ColdFusion - has no security. Anyone can create galleries and post photos; anyone can also delete photos and galleries. For my next step, I'd like to a... read more »
Comments (8) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 29, 2008 at 9:23 AM by Ben Nadel
I just wanted to take a moment to give a big congratulations to my friend and fellow ColdFusion developer, Simon Free . He has taken a huge initiative at his company, trying to get all of his developers ColdFusion 8 certified. After months of preparing presentations and hosting after-work study sessions, Simon Free has gotten over 90% of his deve... read more »
Comments (5) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 26, 2008 at 9:41 AM by Ben Nadel
Someone contacted me this morning needing help debugging an image thumbnailing problem. Part of the issue that they were running into was that the Duplicate() function did not seem to work with ColdFusion image objects. This can be confusing since the documentation seems to indicate that it will work: Task : Create a ColdFusion image from anot... read more »
Comments (5) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 24, 2008 at 3:57 PM by Ben Nadel
For those of you using my POI Utility ColdFusion custom tags to produce formatted Excel documents for use with Microsoft Excel 2007, you might have seen documents that looks like this: Here, you can see that style applied to the header row is bleeding into some of the other rows. Nathan ... read more »
Comments (4) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 24, 2008 at 9:42 AM by Ben Nadel
A little while ago Nathan Mische solved a problem that some people were getting with my POI Utility project in which cell styles were "bleeding" into other cells. The problem, as he discovered, had to do with my reliance on the undocumented .hashCode() method of ColdFusion structs, which apparently was not the most reliable undocumented meth... read more »
Comments (0) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 23, 2008 at 6:39 PM by Ben Nadel
There's really no need to ever do this (that I can think of), but the other day it popped into my head - what happens if I return the SUPER scope from a components Init() method? To test this, I set up a base class: <cfcomponent output="false" hint="I am the base component."> <cffunction name="Foo" access="public" returntype=... read more »
Comments (7) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 23, 2008 at 9:29 AM by Ben Nadel
A long while back, I blogged that the CALLER scope in ColdFusion custom tags acts a sort of struct with special behavior. In that post, I demonstrated that compound variable paths could be used as keys to the CALLER scope : <cfset CALLER[ "REQUEST.Foo.Bar" ] = objValue /> This call would store objValue into the Bar key of the Foo stru... read more »
Comments (3) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 23, 2008 at 9:00 AM by Ben Nadel
Yesterday, I was messing with ColdFusion custom tags when I wondered if there was any way to break out of a loop created using ColdFusion custom tags and the CFExit tag: <cfexit method="loop" /> After a few minutes of coding, I discovered that the CFBreak tag throws an error and that all of the CFExit variations, when used in the calli... read more »
Comments (6) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 22, 2008 at 10:04 AM by Ben Nadel
Last week, I finally finished reading the Fundamentals Of Object-Oriented Design In UML By Meilir Page-Jones. Clark Valberg suggested this book to me almost a year ago when I was struggling with my Exercise List sample app for object oriented programming in ColdFusion. He said it totally changed the way he thought about object oriented programmi... read more »
Comments (3) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink