Christopher Smith
Member since Dec 11, 2008
- Profile: /members/1061-christopher-smith.htm
- URL: http://www.barsmart.com
- Comments: 11
Recent Blog Comments By Christopher Smith
-
Ask Ben: Replacing A String That Is Not Inside Of Another String
Posted on Mar 3, 2010 at 11:34 PM
I've found that not searching for a string in regex is kinda tough. A while back I had a large table with about 50 elements per database row returned in a cfoutput query. I was modifying the code and wanted to ditch the table so I figured I'd use a regular expression to search and replace everythi... read more »
-
ColdFusion ArraySplice() Method As An Example Of A Dynamic Method Signature
Posted on Nov 24, 2009 at 10:25 AM
Would using the built in java functions be faster on large arrays? exp: <cfset var myArray = createObject("java", "java.util.ArrayList").Init(arguments.array) /> ... <cfreturn myArray.subList(JavaCast("int", arguments.index - 1), JavaCast("int", howMany)) />... read more »
-
Not Commenting And The Tipping Point Of Poor Programming
Posted on Oct 6, 2009 at 12:57 AM
I know that CFSCRIPT supports line comments. I really wish regular CFML did as well --- that would be awesome!!... read more »
-
Ask Ben: Keeping Close Track Of Who Is Currently Online
Posted on Sep 8, 2009 at 12:05 PM
Also those vars will need to be defined if empty before the code in application.cfm <cfif NOT IsDefined("application.Members_Online")> <cfset application.membersonline = Structnew()> </cfif> <cfif NOT IsDefined("application.Guests_Online")> <cfset application.guest... read more »
-
Ask Ben: Keeping Close Track Of Who Is Currently Online
Posted on Sep 8, 2009 at 12:03 PM
I do it using all appl vars and scrub them of idle users in a global footer like the following [code] ---this is in application.cfm--- <!--- Users Online ---> <cfif isdefined("Session.User_Name")> <cfif Len(session.User_Name)> <cfif StructKeyExists(application.Member... read more »
-
Not Commenting And The Tipping Point Of Poor Programming
Posted on Jun 10, 2008 at 5:26 PM
I didn't read all of the comments above but I do this very frequently in my code so I can find various pieces to work on: <!--- //////////////////////////////////////////////////////////// Begin some process //////////////////////////////////////////////////////////// ---> ... read more »
-
DreamWeaver CS3 Slows Me Down
Posted on Feb 25, 2008 at 11:00 AM
Lots of folks in here (including myself) have issues with CFEclipse having bad ftp support. Here is an article explaining how to setup remote ftp directory syncing. http://www.boyzoid.com/blog/index.cfm/2007/3/22/Synching-a-CFEclipse-Project-to-a-remote-server-via-FTP... read more »
-
DreamWeaver CS3 Slows Me Down
Posted on Feb 19, 2008 at 1:55 PM
I used to use CFS exclusively now I use ultraedit which has some nice CF syntax highlighting. I have tried to use Eclipse with the CFEclipse plugin and I really really like it but I can not use it as the ftp/scp (I edit all my projects remotely) file handling is very problematic and is entirely unr... read more »
-
Why Do I Protect People Who Want To Break My Site?
Posted on Oct 12, 2007 at 4:35 PM
Also it's a good idea to make sure you take care of decimal points by rounding them up so someone doesn't enter page=0.99999 etc...... read more »
-
Kinky Solutions Now Utilizes Google Custom Search As Site Search
Posted on Oct 5, 2007 at 1:18 PM
I guess my search is pretty specific for my site, because I have to find establishments, my article searches are only using fulltext searches. What I do for establishment searches is order the queries in what is usually relevant: * Look for the name of the establishment that people are searching ... read more »
-
Kinky Solutions Now Utilizes Google Custom Search As Site Search
Posted on Oct 5, 2007 at 9:34 AM
I never liked the Google site searches - it always looked to me that the site owner was lazy. I read this article last night and was on the fence about implementing it so I talked with my partner this morning and he had the same feelings as I. Plus it comes along with it's own ads, doesn't look ... read more »