RE: [ACFUG Discuss] CFUnited Report - Adobe Keynote

2008-06-18 Thread Gurevich, Gerry (NIH/NIEHS) [C]
What if you have already written your own framework to use the
cfproperty tag for this very thing?  I guess I'll have to wait and see.


Gerry Gurevich
Application Development
NIEHS ITSS Contractor
Lockheed Martin Information Technology
919-361-5444 ext 311


-Original Message-
From: John Mason [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 18, 2008 10:55 AM
To: discussion@acfug.org
Subject: RE: [ACFUG Discuss] CFUnited Report - Adobe Keynote

Yes, so if you have your own getters/setters then CF will use those. If
they
are not present, then the implicit ones will take effect. I can only
imagine
how much code this will save everyone from typing. 


John Mason
[EMAIL PROTECTED]
770.337.8363
 
www.FusionLink.com - ColdFusion and Flex hosting
Now offering VPS Plans running with VMware technology
Now offering ColdFusion 8 Enterprise hosting
FREE Subversion hosting

This e-mail message and all attachments transmitted with it may contain
legally privileged and/or confidential information intended solely for
the
use of the addressee(s). If the reader of this message is not the
intended
recipient, you are hereby notified that any reading, dissemination,
distribution, copying, forwarding or other use of this message or its
attachments is strictly prohibited. If you have received this message in
error, please notify the sender immediately and delete this message and
all
copies and backups thereof.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas
Knudsen
Sent: Wednesday, June 18, 2008 10:39 AM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] CFUnited Report - Adobe Keynote

Implicit getters/setters
 The cfproperty will generate the implicit getters and setters on the
backend to save you from writing the code.

nice!  Was overriding mentioned for these?

DK

On Wed, Jun 18, 2008 at 10:28 AM, John Mason [EMAIL PROTECTED]
wrote:
 I just posted my notes from the keynote this morning at my blog, 
 www.codfusion.com The keynote covered a lot of new features coming in 
 the next release of Coldfusion.

 John Mason
 [EMAIL PROTECTED]
 770.337.8363

 www.FusionLink.com - ColdFusion and Flex hosting Now offering VPS 
 Plans running with VMware technology Now offering ColdFusion 8 
 Enterprise hosting FREE Subversion hosting



 -
 To unsubscribe from this list, manage your profile @ 
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists Archive @ 
 http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -







--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





RE: [ACFUG Discuss] Negative plus positive equals less than zero?

2007-12-28 Thread Gurevich, Gerry (NIH/NIEHS) [C]
I think I would write a UDF that would round all of your floating point
calculations. Don't forget that you have to worry about +- 0.001
as well as +- 0.001

 

Try playing around with this 

cfset val=-0.91

cfset decimal=3

 

Make this part a UDF with val and decimal as arguments.

cfset multiplier=10^decimal

cfset newval=round(multiplier*val)/multiplier

 

 

Output or return this new value

cfoutput#newval#/cfoutput

 

 

 


Gerry Gurevich
Application Development
NIEHS ITSS Contractor
Lockheed Martin Information Technology
919-361-5444 ext 311



From: Howard Fore [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 28, 2007 12:55 PM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Negative plus positive equals less than
zero?

 

I may try that. My hackish solution was that if the resulting number was
less than 0 but greater than -0.01 to just return zero. I'm dealing with
money amounts here with no partial cents so I'm not really losing any
significant data. Decimalformat takes care of this but I need to have
the negative sign to the right of the number (client request) so I have
to use numberFormat instead, Thanks. 

On 12/28/07, Cameron Childress [EMAIL PROTECTED] wrote:

I ran into this a number of times on a eCom system I was working on
recently. Gerry is right in that it's just a really small floating
point number.  I've seen some financial systems deal with this problem
by shifting the decimal when dealing with numbers and shifting it back
only for display.  In that case.

For example 62355.57 would be stored as 6235557 or even as 623555700
in financial systems that use 4 decimal points.  You'd conduct all 
math on these whole numbers and avoid floating point problems and then
just x/100 or x/1 to get it back to a decimal format (maybe in a
UDF) for display.

Another more hackish solution I've seen is to numberFormat() all 
inputs to any math operation, which will strip off all the extra float
and give you a straighter answer.  I'm not sure I would actually
suggest this cause it makes your code look like crap - but if you do
it the problem goes away.  Try this out and see if your problem goes
away...

cfscript
total = 0;
numberList = 62355.57,-62355.57,-333.01,261.09 ,17.98,35.96,17.98;
for (i = 1;i lte listLen(numberList);i = i + 1) 
{
writeOutput(#total# + #ListGetAt(numberList,i)# = );
total = numberFormat(total,9.99) +
numberFormat(ListGetAt(numberList,i),9.99);
writeOutput(#total#br); 
}
writeOutput('numberFormat(total,999,999,999.99) = ' 
numberFormat(total,999,999,999.99));
/cfscript

-Cameron

On Dec 28, 2007 11:20 AM, Howard Fore  [EMAIL PROTECTED] wrote:
 Hey,

 Can someone confirm this seemingly odd behavior? If I execute the
following
 code:

 cfscript 

 total = 0;
 numberList = 62355.57,-62355.57,-333.01,261.09 ,17.98,35.96,17.98;
 for (i = 1;i lte listLen(numberList);i = i + 1)
 {
 writeOutput(#total# + #ListGetAt(numberList,i)# = ); 
 total = total + ListGetAt(numberList,i);
 writeOutput(#total#br);

 }
 writeOutput('numberFormat(total,999,999,999.99) = ' 
 numberFormat(total,999,999, 999.99));
 /cfscript

 I get the following output:

  0 + 62355.57 = 62355.57
 62355.57 + -62355.57 = 0
 0 + -333.01 = -333.01
 -333.01 + 261.09 = -71.92 
 -71.92 + 17.98 = -53.94
 -53.94 + 35.96 = -17.98
 -17.98 + 17.98 = -1.06581410364E-014
 numberFormat(total,999,999, 999.99) = -0.00

 I've tried using javacasts to make sure that there wasn't some odd
string to 
 number conversion thing going on too and still got the same result.
Any
 ideas?

 --
 Howard Fore, [EMAIL PROTECTED]
 Whether you believe you can do a thing or not, you are right. --
Henry 
 Ford
 -
 Annual Sponsor - Figleaf Software

 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by FusionLink
 -



--
Cameron Childress
Sumo Consulting Inc 
http://www.sumoc.com
---
cell:  678.637.5072
aim:   cameroncf
email: [EMAIL PROTECTED]


- 
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform 

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by http://www.fusionlink.com
-







-- 
Howard Fore, [EMAIL PROTECTED]
Whether you believe you can do a thing or not, you are right. -- Henry
Ford 
- 
Annual Sponsor - Figleaf Software http://www.figleaf.com  


RE: [ACFUG Discuss] Running a system command from ColdFusion

2007-09-06 Thread Gurevich, Gerry (NIH/NIEHS) [C]
Is this something you could run from a command line?  If so, then you
can set it all up in a batch file to trigger it and also direct output
to another file (maybe).  Then you would use cfexecute to kick off the
batch file.



Gerry Gurevich
Application Development
NIEHS ITSS Contractor
Lockheed Martin Information Technology
919-361-5444 ext 311


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 06, 2007 4:21 PM
To: discussion@acfug.org
Subject: re: [ACFUG Discuss] Running a system command from ColdFusion

Worth a shot, but no.  Same error.  I'm pretty sure it's choking on the
Exec keyword.


ed
--
Ed Szwedo

Web Development Team Lead
CSC
E-mail: [EMAIL PROTECTED]
919-541-3955  (Voice)
919-685-3395  (Fax)



 Mischa 
 Uppelschoten ext   
 10  To 
 Mischa.Uppelsch Web Site discussion@acfug.org   
 [EMAIL PROTECTED]cc 
 m 
 Sent by:   Subject 
 [EMAIL PROTECTED]  re: [ACFUG Discuss] Running a 
  system command from ColdFusion

 09/06/2007 04:17   
 PM 


  Please respond
to  
 [EMAIL PROTECTED]   
   .org 






: cfset variables.plsql = exec  DBMS_WM.GoToWorkspace('edsWorkspace')


SWAG: throw in a PreserveSingleQuotes?
/m


-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-







-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-




-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





[ACFUG Discuss] CFPOP and SSL

2007-05-30 Thread Gurevich, Gerry (NIH/NIEHS) [C]
Any free CFPOP tags or any recommended for purchase?  Has anyone
actually used a custom CFPOP tag with SSL and had a positive result?

 

Thanks for your recommendations.

 


Gerry Gurevich
Application Development
NIEHS ITSS Contractor
Lockheed Martin Information Technology
919-361-5444 ext 311

 




-

Annual Sponsor FigLeaf Software - http://www.figleaf.com



To unsubscribe from this list, manage your profile @ 

http://www.acfug.org?fa=login.edituserform



For more info, see http://www.acfug.org/mailinglists

Archive @ http://www.mail-archive.com/discussion%40acfug.org/

List hosted by http://www.fusionlink.com

-




RE: [ACFUG Discuss] Bad CFQuery Results

2007-05-22 Thread Gurevich, Gerry (NIH/NIEHS) [C]
Just a blind stab in the dark here but...

Are you returning your results in the same request as the cfquery?  I
have inherited code that stuffs queries into session or even application
scope and then you may have all kinds of things happening that cause you
to output something different from what you thought you were sending.

I tend to agree that using the debug feature to get a copy of the query
is the way to go.  If you always get what is expected from the debug
query when you stick run it directly against the database. And if your
results on the screen are wrong.  Then there must be something wrong
with the processing of the query when you do your output.  My
recommendation above is only one of the things that could be wrong.

It's also possible that you are processing the output in some way and
not outputting every single field.  

Good luck.


Gerry Gurevich
Application Development
NIEHS ITSS Contractor
Lockheed Martin Information Technology
919-361-5444 ext 311


-Original Message-
From: Greg Drake [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 21, 2007 6:08 PM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Bad CFQuery Results

Thanks Dusty, but I'm afraid I already tried that. It all came out how
I expected it to. I ran the results directly through the database and
it came out fine. For that matter, I ran the results back through the
cfquery tag and it came out fine.

Mischa, Debugging was a good idea. I never think of using that feature.

However, it seems to be returning exactly what I would expect as well.
Of course this time the cfqueryparam tags are all replaced with
question marks and defined at the bottom. I still can't figure out
what I'm missing here.

I was really hoping that it was a common thing that I'd just never
heard of before.

On 5/21/07, Dusty Hale [EMAIL PROTECTED] wrote:
 You may have tried this already or perhaps the query is rather complex
(it
 sounds like) but:

 1. make a copy of it.
 2. remove all the cfqueryparam tags and replace with normal variables
or
 values.
 3. replace the cfquery tags with cfouputprecode
 here/precfabort/cfouput
 4. output the actual query text so you can see what is really being
queried
 and run the query out put manually to see if you get the results
you're
 looking for.

 Not sure if this is helpful for your situation or not but thought it
 wouldn't hurt to suggest. Best of luck with the issue.

 Dusty

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg Drake
 Sent: Monday, May 21, 2007 4:20 PM
 To: discussion@acfug.org
 Subject: [ACFUG Discuss] Bad CFQuery Results

 Has anyone else ever run into a situation where cfquery does not
return
 the same records as a direct query on the database?

 I have a rather large query joining 5 tables and 2 derived tables. The
 'where' clause is cluttered with dynamically loaded conditions. There
are
 some cfqueryparam tags that keep me from easily inserting the query
as a
 single string. The 'order by' clause is handled by a custom tag.

 The point is this: under certain circumstances the query does not
respond
 properly, but I am sure that the query should be making it to the
cfquery
 tag properly. If the query is run directly against the database it
works
 fine, and if it is run with certain options it works fine, but other
options
 make it return a result set that is too small.
 It doesn't through an error, though, so If not for careful testing it
 wouldn't have even been noticed.

 I am using ColdFusion 7 and SQL Server.

 Sorry for not posting any code, but I'm thinking you have either run
into
 this before or you haven't. I can't find anything online, perhaps
because
 the issue is difficult to describe.


 -
 Annual Sponsor FigLeaf Software - http://www.figleaf.com

 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists Archive @
 http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -






 -
 Annual Sponsor FigLeaf Software - http://www.figleaf.com

 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -






-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ 

RE: [ACFUG Discuss] Error handling, I have request, exception, validation templates.

2007-04-25 Thread Gurevich, Gerry \(NIH/NIEHS\) [C]
I  believe this is a compile time error.  Error handling doesn't come
into play until you get an execution time error.

 


Gerry Gurevich
Application Development
NIEHS ITSS Contractor
Lockheed Martin Information Technology
919-361-5444 ext 311



From: Ajas Mohammed [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 25, 2007 4:13 PM
To: discussion@acfug.org
Subject: [ACFUG Discuss] Error handling, I have request, exception,
validation templates.

 

Hi,
 I was working on some stuff and I have request, exception,
validation templates in the same order I mentioned here. Form required
fields by _required method is caught by validation template, query
errors like object not found is caught by exception template. But then I
tried this 
some cfoutput #some var#/cfoutput /cfoutput i.e. extra closing
cfoutput and I thought my exception template will catch it but it
doesnt. I get the screen where in CF shows some code in grey background
saying matching cfoutput not found. 

My question is : what I am missing over here? how can I handle these
errors? I know there is another template calling missing template
handler which you could set in CF Admin but will it help?

Thanks,

-- 
Ajas Mohammed /
http://ajashadi.blogspot.com 
- 
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform 

For more info, see http://www.acfug.org/mailinglists 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink http://www.fusionlink.com  
- 




-

To unsubscribe from this list, manage your profile @ 

http://www.acfug.org?fa=login.edituserform



For more info, see http://www.acfug.org/mailinglists

Archive @ http://www.mail-archive.com/discussion%40acfug.org/

List hosted by http://www.fusionlink.com

-




RE: [ACFUG Discuss] dynamic structs/variable

2007-03-05 Thread Gurevich, Gerry \(NIH/NIEHS\) [C]
Well I would want to ask and argue not to do this...but I'll bite my
tongue.

Why not create a superstructure to hold this.  Then you could do
something like:
cfset superstruct=structnew()
cfset structVarName = myStruct /

cfset superstruct[structVarName] = StructNew()/

cfset keyVariable = steven.ross /
cfset theValue = a name /

cfset superstruct[structVarName][keyVariable] = theValue /

I have not tested this, but it should be close to right.

Come to think of it, you might even see if you could use variables
instead of the superstruct.  I think that might work.  



Gerry Gurevich
Application Development
NIEHS ITSS Contractor
Lockheed Martin Information Technology
919-361-5444 ext 311


-Original Message-
From: Steven Ross [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 05, 2007 4:21 PM
To: ACFUG ColdFusion Discussion
Subject: [ACFUG Discuss] dynamic structs/variable

ok so for whatever reason (I'd rather not hear arguments why not to do
this) I want to try to do this:

cfset structVarName = myStruct /

cfset #structVarName# = StructNew()/

cfset keyVariable = steven.ross /
cfset theValue = a name /

cfset structVarName[keyVariable] = theValue /

the last part is the part I can't get to work... tired all sorts of
flavors of evaluate, and I would have included a few examples of what
I have tried but, figured that would confuse the issue. Any help would
be appreciated.

-Steven


-- 
Steven Ross
web application  interface developer
http://www.zerium.com
[mobile] 404-488-4364
[fax] 267-482-4364


-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-




-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





RE: [ACFUG Discuss] RE: askcharlie, getting live help when you're stumped (was RE: [ACFUG Discuss] WebDAV, Tortoise SubVersion, DWMX8, and CFMX7)

2007-02-09 Thread Gurevich, Gerry \(NIH/NIEHS\) [C]
I'm not a hired flak and I've never used the product, but Fog Creek
Software (see:  Joel On Software)  has a product that appears to be
pretty good for this type of situation:

https://www.copilot.com/

 


Gerry Gurevich
Application Development
NIEHS ITSS Contractor
Lockheed Martin Information Technology
919-361-5444 ext 311



From: Robert Reil [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 09, 2007 3:09 PM
To: discussion@acfug.org
Subject: [ACFUG Discuss] RE: askcharlie, getting live help when you're
stumped (was RE: [ACFUG Discuss] WebDAV, Tortoise SubVersion, DWMX8, and
CFMX7)

 

Nice idea. Im sure I will hit you up sometime for that. Though what are
the methods you would use as I have a firewall to configure. You and I
can discuss this off list.

 

 

Robert P. Reil

Managing Director,

Motorcyclecarbs.com, Inc.

4292 Country Garden Walk NW

Kennesaw, Ga. 30152

Office 770-974-8851

Fax 770-974-8852

www.motorcyclecarbs.com http://www.motorcyclecarbs.com/ 

 

 



From: Charlie Arehart [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 09, 2007 2:57 PM
To: Carbs SalesService
Subject: askcharlie, getting live help when you're stumped (was RE:
[ACFUG Discuss] WebDAV, Tortoise SubVersion, DWMX8, and CFMX7)

This seems like a situation where you may need someone to look over
your shoulder to get things working right in your environment, rather
than work through it by emails. Of course, with tools like
Breeze/Connect, GotoMeeting, Windows remote assistance, and others, the
person need not actually be there with you but instead can see your
screen remotely and talk you through the challenges. 

 

The challenge is simply the time. It's one thing to fire off an email,
but another to spend possibly several minutes or more trying to help,
especially when those who might help have real jobs or are consultants
normally paid by the hour. :-)

 

This may be an opportune moment to share with folks that I've created a
new service to be able to offer just such assistance. It's very low cost
and at a per minute rate (first-time callers get 10 minutes free). Check
it out at:

http://www.carehart.org/askcharlie/

 

I'd welcome your thoughts on what you think of the idea.

 

 /Charlie
http://www.carehart.org/blog/  

 

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Reil
Sent: Friday, February 09, 2007 12:34 PM
To: discussion@acfug.org
Subject: RE: [ACFUG Discuss] WebDAV, Tortoise SubVersion, DWMX8, and
CFMX7

you're making me chortle Charlie! Congratulations..

You are right. It IS my day... It is watch Robert go down the wrong
trail day.

 

Here is all I know, and for some of you it may be old news but I want to
give a 100% regroup and bring it back to high level view.

 

 snip 


- 
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform 

For more info, see http://www.acfug.org/mailinglists 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink http://www.fusionlink.com  
- 




-

To unsubscribe from this list, manage your profile @ 

http://www.acfug.org?fa=login.edituserform



For more info, see http://www.acfug.org/mailinglists

Archive @ http://www.mail-archive.com/discussion%40acfug.org/

List hosted by http://www.fusionlink.com

-


attachment: image001.jpg