Ask Ben Web Log Entries

Showing 1 - 15 of 91   < Prev | Next >

Ask Ben: Extending Application.cfc And OnRequestStart() With SUPER

Posted: March 11, 2008 at 8:28 AM by Ben Nadel

Tags: Ask Ben, ColdFusion

Got one for ya... I'm extending application.cfc with ye ole' proxy.cfc trick. In root/Application.cfc I cfinclude a config.cfm file that has some sitewide variables in the request scope like upload path, dsn, root URL, etc... I do this in onRequestStart(). In my root/sub/Application.cfc that extends the root cfc, how can I get access to the reques... read more »

Comments (10)  |  Post Comment  |  Ask Ben  |  Live Chat (Beta)  |  Permalink



Ask Ben: Simple Data Caching In ColdFusion

Posted: January 31, 2008 at 2:22 PM by Ben Nadel

Tags: Ask Ben, ColdFusion

I have a website where I am trying to generate a member of the day, is there anyway to cache data for a set amount of time, I know you can cache a query, just wondering if there are other methods for caching. How would you address this? This title, Simple Data Caching in ColdFusion, is a little misleading for the post. When is comes to "smart" da... read more »

Comments (9)  |  Post Comment  |  Ask Ben  |  Live Chat (Beta)  |  Permalink


Ask Ben: Ending ColdFusion Session When User Closes Browser

Posted: January 29, 2008 at 8:31 AM by Ben Nadel

Tags: Ask Ben, ColdFusion

This wasn't quite an Ask Ben question, but it was a question that was asked of me and I would like to have a definitive place to point people when the question comes up again. A user asked me how to get ColdFusion to end the user's session when the user closes their browser. I have discussed ending sessions before, but let's just quickly hammer ou... read more »

Comments (11)  |  Post Comment  |  Ask Ben  |  Live Chat (Beta)  |  Permalink



Ask Ben: Delete Values In A Given List Using ColdFusion

Posted: January 28, 2008 at 7:23 PM by Ben Nadel

Tags: Ask Ben, ColdFusion

I have an array but it could be a list using listtoarray or vise verse is there an easy way to delete all of a particular 'value' from a list or an array. For example I have a list or array with: "1,1,1,1,1,2,2,2,2,2,3,3,3,4,4,4,4,5" And say i want to remove all instances of the number two... is there a simple way to do that? There are probably... read more »

Comments (9)  |  Post Comment  |  Ask Ben  |  Live Chat (Beta)  |  Permalink


Ask Ben: Screen Scraping PowerBall Statistics With ColdFusion

Posted: January 14, 2008 at 8:15 AM by Ben Nadel

Tags: Ask Ben, ColdFusion

I was spending my free time this weekend checking the powerball website when i decided i wanted to use cfhttp and get the number frequency information on this page: http://www.powerball.com/powerball/pb_frequency.asp? matrixID=2&graph=0 The problem is I am not sure what to do next. What I am trying to do is get into this page and grab the n... read more »

Comments (9)  |  Post Comment  |  Ask Ben  |  Live Chat (Beta)  |  Permalink


Ask Ben: Querying Groups With Conditional Elements

Posted: January 14, 2008 at 7:00 AM by Ben Nadel

Tags: Ask Ben, ColdFusion, SQL

I hav a situation in my academic project, and was struggling to get a proper approach towards the solution, then i decided to ask 'kind-hearted' ppl for help ... while browsing net for forums wid posts with similar situation, i 'stumbled' upon you site. it's a nice and great job u r doin here ben. thanks a ton... do consider to direct me towards t... read more »

Comments (2)  |  Post Comment  |  Ask Ben  |  Live Chat (Beta)  |  Permalink


Ask Ben: Uploading Multiple Files Using ColdFusion

Posted: January 8, 2008 at 8:53 AM by Ben Nadel

Tags: Ask Ben, ColdFusion

After posting a while back about uploading a file and emailing it using ColdFusion , I was asked to put up a demo of how to upload multiple files using ColdFusion. For this demo, I am concentrating only on the upload aspect and not worrying about any emailing functionality as I believe that adding that is easy after the upload is complete. Befo... read more »

Comments (4)  |  Post Comment  |  Ask Ben  |  Live Chat (Beta)  |  Permalink


Posting File Data Using A Base64 Encoding In ColdFusion

Posted: January 4, 2008 at 10:35 AM by Ben Nadel

Tags: Ask Ben, ColdFusion

This was sort of based on an Ask Ben inquiry, so I will include it in this section, but it's not entirely accurate. Someone had asked me about passing a file to a web service and I had suggested that one of the ways to do this was to pass it using a Base64 encoding of the binary data. This would allow the data to be easily defined using XML, which... read more »

Comments (6)  |  Post Comment  |  Ask Ben  |  Live Chat (Beta)  |  Permalink


Ask Ben: Breaking An SMS Text Message Up Into Multiple Parts

Posted: December 27, 2007 at 2:34 PM by Ben Nadel

Tags: Ask Ben, ColdFusion

This isn't necessarily an "Ask Ben" question; Michael Appenzellar had brought up the concept of breaking up an SMS text message into multiple parts that were, at most, 120 characters each. He was having a bit of trouble breaking it up, so I thought I would throw together a quick little demo. To start with, let's create the text message that yo... read more »

Comments (2)  |  Post Comment  |  Ask Ben  |  Live Chat (Beta)  |  Permalink


Ask Ben: Converting XML Data To ColdFusion Queries

Posted: December 21, 2007 at 10:24 AM by Ben Nadel

Tags: Ask Ben, ColdFusion

I work at a veterinary hospital and am generating xml from an IBM UniVerse DB which may or may not contain multi-valued data, and parsing/displaying it via CF8. I have written custom java classes take the user input from the cfform, handle the db transactions and pass back an xml object which is then parsed in CF. (the multi-value data driver does... read more »

Comments (5)  |  Post Comment  |  Ask Ben  |  Live Chat (Beta)  |  Permalink


Ask Ben: Recursive Numeric Pyramid

Posted: December 11, 2007 at 8:39 AM by Ben Nadel

Tags: Ask Ben, ColdFusion

Can you help me to find solution of this question by the recursion just print on the screen: 0 0 1 0 1 2 0 1 2 3 0 1 2 3 4 0 1 2 3 0 1 2 0 1 0 Thanx alot and help me to understand recursion very well. Thanx alot. I am glad that this particular question was asked because this is not necessarily a case where recursion is the best answer. When you... read more »

Comments (10)  |  Post Comment  |  Ask Ben  |  Live Chat (Beta)  |  Permalink


Ask Ben: Simple Recursion Example

Posted: December 5, 2007 at 9:40 AM by Ben Nadel

Tags: Ask Ben, ColdFusion

Not a specific question here; some people have seen me use recursion when dealing with user defined functions and ColdFusion custom tags and have asked to demonstrate a simple example of recursion to help get more comfortable with it. Recursion is a very powerful tool that is required to solving some problems, but at the same time, when wielded im... read more »

Comments (13)  |  Post Comment  |  Ask Ben  |  Live Chat (Beta)  |  Permalink


Ask Ben: Running ColdFusion Asynchronously - Caveman Style

Posted: November 30, 2007 at 2:45 PM by Ben Nadel

Tags: Ask Ben, ColdFusion

Looking to run a CFM template asynchronously - aka: run it in the background. Gotchas: * Must work under MX 6.1 * I can't use an event gateway * Can't use CFSCHEDULE (unless you know of a way to post data to the URL) Any ideas? This reminds me of that old Polly-O String Cheese commercial where the guy walks into the pizza parlor and says some... read more »

Comments (11)  |  Post Comment  |  Ask Ben  |  Live Chat (Beta)  |  Permalink


Ask Ben: Iterating Over A ColdFusion XML Document

Posted: November 15, 2007 at 7:35 AM by Ben Nadel

Tags: Ask Ben, ColdFusion

I would appreciate your help, in providing a workable nested solution for the following type of XML structure. <Info Main> <Image List> <Image> <Image> <Name List> <Name> <Name> <Name> <Name> </Info Main> <Info Main> </Info Main> Where the Info Main is the top structure cont... read more »

Comments (0)  |  Post Comment  |  Ask Ben  |  Live Chat (Beta)  |  Permalink


Ask Ben: Zipping Images With ColdFusion 8's CFZip And CFHttp

Posted: November 7, 2007 at 2:18 PM by Ben Nadel

Tags: Ask Ben, ColdFusion

I have to download image files off of a another server and zip them up. I have a url for each image and right now I'm using cfhttp to get the image. Any idea how to zip them up without writing them out to a tmp directory? When I read this question, I got all giddy 'cause I thought I was gonna be able rock some spicy CFImage - CFZip cohabitation. ... read more »

Comments (2)  |  Post Comment  |  Ask Ben  |  Live Chat (Beta)  |  Permalink

Showing 1 - 15 of 91   Pages: 1 2 3 4 5 6 7 < Prev | Next >

Home   |   Web Log   |   ColdFusion   |   Projects   |   Resume   |   Job Form   |   Search   |   Contact
Epicenter Consulting - Custom Software Solutions for Business Evolution HostMySite.com - The Leader In ColdFusion Hosting