Gus
Member since Dec 11, 2008
- Profile: /members/2072-gus.htm
- Comments: 18
Recent Blog Comments By Gus
-
Whom Not To Marry: Time-Tested Advice From A Higher Authority By Pat Connor
Posted on Aug 13, 2010 at 9:04 PM
@Ben, Hmmm.... so you would advise an aspiring bull rider to talk to the bartender. The therapist/doctor scenario doesn't hold up very well. While a therapist may have personal problems, that does not mean he/she does not have common experiences with the issues his/her patients are trying to cope ... read more »
-
Whom Not To Marry: Time-Tested Advice From A Higher Authority By Pat Connor
Posted on Aug 13, 2010 at 5:47 PM
Getting advise on marriage from a celibate priest is sort of like getting advice on bull-riding from the bartender at the bar bull-riders go to. They hear lot's of stories, but have absolutely no idea what it is really like. Gus. PS I've been married now for 14 years (all to the same woman).... read more »
-
Do Remote CFC Method Calls Add Any Value In ColdFusion?
Posted on May 18, 2009 at 11:34 AM
If the front end is a FLEX app, you will lose some significant benefits. * Performance, particularly when returning sets of data from ColdFusion to Flex, is much better. * Data exchange is more flexible: ColdFusion query objects can be sent directly to Flex without manual conversion. ... read more »
-
Ewwww - Watching Olympics On NBC.com Requires Microsoft Silverlight
Posted on Aug 19, 2008 at 7:45 PM
There always seems to be a bias against MS in the developer community. I was taken aback myself when I saw that I needed to install silverlight. But the install was painless, and the online Olympic experience is actually very good. Nothing that couldn't have been done in Flash. But if I were NBC... read more »
-
Bigger, Stronger, Faster - The Side Effects Of Being American
Posted on Jun 3, 2008 at 8:36 AM
Here is a timely editorial from The New York Times on steroids, horse racing and the Triple Crown: http://www.nytimes.com/2008/06/03/opinion/03tue3.html?th&emc=th... read more »
-
Bigger, Stronger, Faster - The Side Effects Of Being American
Posted on Jun 1, 2008 at 5:54 PM
To each his/her own. But this is just plain freaky! http://thebirdman.org/Index/Others/Others-SteroidFreaks-EH.htm... read more »
-
Ask Ben: Recursive Numeric Pyramid
Posted on Dec 11, 2007 at 9:30 AM
Hi Ben, Here is another take, which only needs one loop: <!--- set up our variables ----> <cfset pSize = 4> <cfset currNum = 0> <cfset retString = ''> <cfset pyramid = ''> <!--- Here is our recursive function ---> <cffunction name='buildPyramid' returntype="... read more »
-
Why Do I Protect People Who Want To Break My Site?
Posted on Oct 12, 2007 at 4:06 PM
I would definitely throw an error message, and not try to guess the users intent. If you guess wrong, the user may get information they think means one thing, but in fact means something else. Let's take a mapping application. Let's say you meet a woman that lives in a brand new development at 12... read more »
-
Getting Only The Date Part Of A Date/Time Stamp in SQL Server (Revisited)
Posted on Sep 21, 2007 at 11:57 AM
+1 to UDF's in SQL Server being slow. Only use when absolutely necessary.... read more »
-
Getting Only The Date Part Of A Date/Time Stamp in SQL Server (Revisited)
Posted on Sep 21, 2007 at 10:06 AM
Tony has it right. The built in Convert function is the way to go here. If you want to see how many hits you get per day. <cfquery name="qHit" datasource="#REQUEST.DSN.Source#"> SELECT CONVERT(char(10), h.date_created, 101) AS dateOnly COUNT(h.id) AS hitCount FROM web_stat... read more »
-
Code Assertively
Posted on Sep 18, 2007 at 2:02 PM
@Dustin I was referring to both the coder, and those coming in behind the coder. I agree, structKeyExists() is more efficient on the server side, however in many, if not most cases this would likely fall under the rubric of "premature optimization". Gus... read more »
-
Code Assertively
Posted on Sep 18, 2007 at 1:35 PM
There are trade-offs to just about any approach. Let's say "firstName" can be passed in by a form, url or attribute. In this case <cfif isDefined("firstName")> is more efficient than <cfif structKeyExists(form,"firstName") OR structKeyExists(url,"firstName") OR structKeyExists(attrib... read more »
-
SQL EXISTS Exploration (Thanks Christoph Schmitz!)
Posted on Sep 5, 2007 at 3:35 PM
My favorite use of EXISTS with ColdFusion is the ability to use one query to do an insert or update: <CFQUERY> IF EXISTS (SELECT girlName FROM girls WHERE girlID = #girlID#) UPDATE girls SET girlName = 'Halle' WHERE girlID = #girlID# ELSE INSERT INTO girls(name) VALUES ('Halle') <... read more »
-
Introduction To Regular Expressions Presentation Notes
Posted on Jan 5, 2007 at 8:25 AM
Ben, You have a small error in this section: * : Zero or more instances Pattern: "a*" Match: Anna Banana Description: Match the letter "a" zero or more times in a row. This will actually match just before the capital 'A' in Anna Banana. You always have to be careful with matching 'Zero or more'... read more »