duncan
Member since Dec 11, 2008
- Profile: /members/1685-duncan.htm
- Comments: 18
Recent Blog Comments By duncan
-
ColdFusion GetTempDirectory() Stops Working
Posted on Apr 18, 2008 at 3:57 AM
Ben, interesting spam comments happening here - 'sohbet' repeating something you posted earlier, then JSC replying... both with links to spam domains.... read more »
-
Name vs. Variable In ColdFusion
Posted on Mar 12, 2008 at 10:39 AM
on a different note in the same tune, the one that always gets me is the use of 'item' in cfloop when you're looping over a collection. I've become conditioned to writing 'index' in my cfloop tags. although I don't have the problem when looping over a query or doing a conditional loop. I guess th... read more »
-
ColdFusion Image Coordinates Are Zero-Based
Posted on Feb 26, 2008 at 4:39 AM
that URL doesn't seem to work in your blog, here it is in short format: http://tinyurl.com/2hz4s2... read more »
-
ColdFusion Image Coordinates Are Zero-Based
Posted on Feb 26, 2008 at 4:37 AM
'every other language'? http://en.wikipedia.org/wiki/Comparison_of_programming_languages_%28array%29 #Array_system_cross-reference_list I wonder if JJ Allaire had a background in something like Fortran or Smalltalk which influenced his decision (assuming it was his) to use 1-based arrays.... read more »
-
Creating A "Down For Maintenance" Page Using Application.cfc
Posted on Jan 10, 2008 at 12:10 PM
This is a nice method, but I prefer to do it at the webserver level, as this obviously only works for coldfusion pages. Just create a second website that points to a page with the Maintenance message (use the 404 handler to do this too), set it up with all the same domains as the original site, sto... read more »
-
Ask Ben: Uploading Multiple Files Using ColdFusion
Posted on Jan 8, 2008 at 11:06 AM
Just wondering why you add the step="1" attribute on all your cfloops?... read more »
-
ColdFusion GetTempDirectory() Stops Working
Posted on Dec 21, 2007 at 4:25 AM
Paolo, if GetTempDirectory() stops working until the server is restarted, calling the function recursively I would expect to crash the server, or at least timeout... read more »
-
Exercise List: Multi-Tier Validation Requirements
Posted on Nov 19, 2007 at 4:48 AM
Seeing as we're speaking about validation and errors, if I do a Keyword search I get the following error cfdumped: Implicit conversion from data type text to nvarchar is not allowed. Use the CONVERT function to run this query. SELECT e.id, e.name, e.description, e.contraindications, e.alternate_n... read more »
-
The Darjeeling Limited Starring Owen Wilson, Adrien Brody, And Jason Schwartzman
Posted on Nov 12, 2007 at 5:23 AM
Looks good. Another one I enjoyed like that was I <3 Huckabees, with Jason Schwartzman. Probably preferred that to Royal Tenenbaums and the Life Aquatic, although the style was very similar.... read more »
-
Ask Ben: Finding The Last Monday Of The Month In ColdFusion
Posted on Jul 31, 2007 at 10:26 AM
The problem with the numeric date due to your date math, could you get round this by just using DateAdd functions instead of doing arithmetic directly on the date object?... read more »
-
Using CAPTCHA In ColdFusion 8
Posted on Jul 30, 2007 at 5:06 AM
Ben, I'm not a fan of Captcha images in general, as I don't think they're particularly accessible for many people. However the basic idea serves a purpose. One area I think could be improved is the general comprehension; an 8 digit random string isn't as obvious as say a familiar word. e.g. looki... read more »
-
Poor Interface Design Example
Posted on Jul 27, 2007 at 10:07 AM
They probably initially designed this form for a calendar week's worth of timesheets, i.e. 7 days, with the reset button at the end of the form. Then decided they really needed to allow 10 days, but left the old code in that if I EQ 7 display reset button. Jakob Nielsen did a good article on this,... read more »
-
Using CFHeader With File Names Containing Spaces (Thanks Elliott Sprehn!)
Posted on Jul 19, 2007 at 5:10 AM
Sami, the third quote is closing the one started at: value="attachment Another reason not to use spaces in filenames. Would it work if you substituted them with %20 ?... read more »
-
Simple ColdFusion Calendar Month Display With Monday As First Day Of Week
Posted on May 10, 2007 at 4:41 AM
that wouldn't work obviously, as the first line would always be out of sync as we're updating the list in the loop. if we made a copy of the list and updated that instead...... read more »
-
Simple ColdFusion Calendar Month Display With Monday As First Day Of Week
Posted on May 10, 2007 at 4:39 AM
that's exactly how i've done it in the past. You could probably use some combination of list functions to get the order of that list starting with your first day of week variable. something like: list = 1,2,3,4,5,6,7; firstdayofweek = 2; for i = 1; i < firstdayofweek; i++ { shift = listgetat... read more »
-
Ask Ben: Shifting ColdFusion's DayOfWeek() Functionality
Posted on May 9, 2007 at 10:27 AM
yes indeed.... read more »
-
Ask Ben: Shifting ColdFusion's DayOfWeek() Functionality
Posted on May 9, 2007 at 4:20 AM
good work, this should really have been an optional parameter to the function in the first place. CF's default to Sunday for the first day of the week isn't logical, especially for us in the UK. It's also against ISO 8601. http://en.wikipedia.org/wiki/ISO_8601... read more »