RE: Odd RegEx question.
In cf5: newstring = rereplace(string, [^(]*(\(.*\)).*, \1); Note that this will return the entire string if there is no parentheses. You could do it in two steps to avoid that newstring = ; stTmp = REFind(\(.*\),string,1,true); if(stTmp.pos[1]) newstring = Mid(string,stTmp.pos[1],stTmp.len[1]); -Original Message- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: maandag 19 april 2004 22:41 To: CF-Talk Subject: Re: Odd RegEx question. If CFMX: newstring = rereplace(string, .*?(\(.*\)).*, \1); If CF5, I'll ... uh ... thing of something else.:-) Caveats:untested, off the top of my head, YMMV --Ben Doom Jeff Waris wrote: I need some pointing in the right direction. I am guessing this is a rereplace Regex situation.How would you do this Here is my string sometext(1(2)more text I need to strip everything up to the first ( and strip everything after the last ) The string I'd like to end up with would be (1(2) Any help would be appreciated... Thanks, Jeff [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Blocking IP address
Thane Sherrington said: Is it possible for a browser to block the CGI.remote_host variable No, it is generated by the webserver. or willthere always be some IP address there? It should be a hostname, cgi.remote_addr should have the IP address. Jochem [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Session Variables Not Holding
What do you mean by not holding? They timeout immediately or after less than 2 hours? Did you look at the maximum timeout in the administrator? Pascal -Original Message- From: Nick Baker [mailto:[EMAIL PROTECTED] Sent: maandag 19 april 2004 21:48 To: CF-Talk Subject: Session Variables Not Holding Session variables are not holding for the session with the following on the local development system (CF 5.0). Session variables are holding on the live Web site which uses MX. Any suggestions. Below is the CFAPPLICATION setting Thanks, Nick CFAPPLICATION name=Development CLIENTMANAGEMENT=Yes SETCLIENTCOOKIES=Yes SETDOMAINCOOKIES=YES SESSIONMANAGEMENT=Yes SESSIONTIMEOUT=#CreateTimeSpan(0, 2, 0, 0)# APPLICATIONTIMEOUT=#CreateTimeSpan(0, 2, 0, 0)# [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Javascript popup onsubmit
You have to name the window you open and specify the target in your form. SCRIPT LANGUAGE=_javascript_ TYPE=text/_javascript_ !-- function Popup(){ var win = window.open(blank.html, form_popup , toolbar=no,scrollbars=yes,width=400,height=300,resizable=yes); win.focus(); return true; } //-- /SCRIPT form action="" method=post target=form_popup Popup(); ... input type=submit /form blank.html is an empty html page to initially open in the popup. Pascal -Original Message- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: maandag 19 april 2004 21:26 To: CF-Talk Subject: OT: _javascript_ popup onsubmit Any help w/this _javascript_ would be appreciated. Since I'm very new to _javascript_. script function popup(popupType) { window.open(this); } /script form method=post action="" select name=date option value=#dateFormat(dateAdd('m',i,now()),'mm')##dateFormat(da teAdd('m',i,now()),' ')# /select input type=submit /form The main page displays the page I want in the popup. The popup gives and error because the date field is not being passed to it. Any suggestions please? Robert O. ¿ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CapFirst UDF
Deanna, cfset capText = REReplace(text,\b(\w+(\(e?s\))?),\u\1,ALL) Pascal -Original Message- From: Deanna Schneider [mailto:[EMAIL PROTECTED] Sent: maandag 19 april 2004 23:00 To: CF-Talk Subject: Re: CapFirst UDF Pascal, Very sweet. But, is there any way to say unless the thing in parens is s or es - in other words, this will turn this: adult(s) into Adult(S) [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Odd RegEx question.
Thanks guys! I think I'm going to have to get myself a good regex book at some point... :) Jeff [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
cfmx 6.1 (and mssql2k) server migration
I will need to move my cfmx server to another machine in the coming weeks. Does anyone have any tips, or URL's which might assist me in backing up the cfserver settings to replicate the setup on the new server? I'm going to need to do the same with MSSQL2K, in case you also know how to do that. Thanks in advance... -DBK NOTICE: If received in error, please destroy and notify sender.Sender does not waive confidentiality or privilege, and use is prohibited. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: cfmx 6.1 (and mssql2k) server migration
for your db move, there is a few handy dandy sp's that will get you moved. sp_attach_db sp_detach_db 1. you stop the mssql server service 2. restart it 3. run the detach version (im not sure of the parameters right off of the top of my head, but they are simple) 4. move the physical file, the .mdb file to the new machine/directory 5. run the attach version, and it should create a new .ldb (log file) for the database, if not just move that too, and specify in your attach sp the location of both. look in the t-sql help included with mssql server 2000 for more help on this...but this is fairly well documented, so you shouldn't have too much trouble getting help. good luck! also, I think the cfmx server's settings are stored in an xml file...someone here will chime in! later. tony -Original Message- From: Katz, Dov B (IT) [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 8:20 AM To: CF-Talk Subject: cfmx 6.1 (and mssql2k) server migration I will need to move my cfmx server to another machine in the coming weeks. Does anyone have any tips, or URL's which might assist me in backing up the cfserver settings to replicate the setup on the new server? I'm going to need to do the same with MSSQL2K, in case you also know how to do that. Thanks in advance... -DBK NOTICE: If received in error, please destroy and notify sender.Sender does not waive confidentiality or privilege, and use is prohibited. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Odd RegEx question, a bit further....
Say we switch this up a bit. I figured if i was vague I could learn a little more about regex, but, its not quite working out that way... LOL. I have two possible result strings that MAY come in... prestring|result1|result2|poststring or just prestring|result1|poststring I just need to eliminate the everything up to the first | and everything after the last |. I will always have at least two | in the returned string to me, Sometimes three. I tried to morph what you guys said to fit my needs but it just didn't happen. Any other help would be appreciated. This needs to work on both CFMX and CF5.0. Jeff -Original Message- From: Pascal Peters [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 3:16 AM To: CF-Talk Subject: RE: Odd RegEx question. In cf5: newstring = rereplace(string, [^(]*(\(.*\)).*, \1); Note that this will return the entire string if there is no parentheses. You could do it in two steps to avoid that newstring = ; stTmp = REFind(\(.*\),string,1,true); if(stTmp.pos[1]) newstring = Mid(string,stTmp.pos[1],stTmp.len[1]); -Original Message- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: maandag 19 april 2004 22:41 To: CF-Talk Subject: Re: Odd RegEx question. If CFMX: newstring = rereplace(string, .*?(\(.*\)).*, \1); If CF5, I'll ... uh ... thing of something else.:-) Caveats:untested, off the top of my head, YMMV --Ben Doom [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: cfmx 6.1 (and mssql2k) server migration
Download and use the JDBC drivers. They are a little faster than the built in drivers, and they're from Microsoft. http://www.microsoft.com/downloads/details.aspx?FamilyID=9f1874b6-f8e1-4bd6-947c-0fc5bf05bf71DisplayLang=en Bob Everland I will need to move my cfmx server to another machine in the coming weeks. Does anyone have any tips, or URL's which might assist me in backing up the cfserver settings to replicate the setup on the new server? I'm going to need to do the same with MSSQL2K, in case you also know how to do that. Thanks in advance... -DBK NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Odd RegEx question, a bit further....
Assuming you have at least 2 pipes: newstring = ListRest(string,|); newstring = ListDeleteAt(newstring,ListLen(newstring,|),|); OR newstring = REReplace(string, ^[^|]*\|(.*)\|[^|]*$, \1); -Original Message- From: Jeff Waris [mailto:[EMAIL PROTECTED] Sent: dinsdag 20 april 2004 15:12 To: CF-Talk Subject: RE: Odd RegEx question, a bit further Say we switch this up a bit. I figured if i was vague I could learn a little more about regex, but, its not quite working out that way... LOL. I have two possible result strings that MAY come in... prestring|result1|result2|poststring or just prestring|result1|poststring I just need to eliminate the everything up to the first | and everything after the last |. I will always have at least two | in the returned string to me, Sometimes three. I tried to morph what you guys said to fit my needs but it just didn't happen. Any other help would be appreciated. This needs to work on both CFMX and CF5.0. Jeff -Original Message- From: Pascal Peters [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 3:16 AM To: CF-Talk Subject: RE: Odd RegEx question. In cf5: newstring = rereplace(string, [^(]*(\(.*\)).*, \1); Note that this will return the entire string if there is no parentheses. You could do it in two steps to avoid that newstring = ; stTmp = REFind(\(.*\),string,1,true); if(stTmp.pos[1]) newstring = Mid(string,stTmp.pos[1],stTmp.len[1]); -Original Message- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: maandag 19 april 2004 22:41 To: CF-Talk Subject: Re: Odd RegEx question. If CFMX: newstring = rereplace(string, .*?(\(.*\)).*, \1); If CF5, I'll ... uh ... thing of something else.:-) Caveats:untested, off the top of my head, YMMV --Ben Doom [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CF LDAP
If anyone has successfully authenticated users from Active Directory via LDAP (CFLDAP), contact me off list. I am running into some snags that relate more to my ignorance of AD and LDAP than to CF. Thanks! Mike [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CFMX for sale
I recently won a copy of CFMX. I thought I'd have time to learn it, but recent project demands insist that I won't have spare time for the foreseeable future. Instead of letting the package sit unopened on my shelf, I thought I'd see if anybody needs it (or has a client that does). Any offers? Susan Prosser in Phoenix [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Odd RegEx question, a bit further....
Thanks. That did the trick! Jeff -Original Message- From: Pascal Peters [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 9:50 AM To: CF-Talk Subject: RE: Odd RegEx question, a bit further Assuming you have at least 2 pipes: newstring = ListRest(string,|); newstring = ListDeleteAt(newstring,ListLen(newstring,|),|); OR newstring = REReplace(string, ^[^|]*\|(.*)\|[^|]*$, \1); [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFMX for sale
Check the box.Usually when you win a MM product it's NFR -- Not For Resale. Sorry. Sam Blog http://www.rewindlife.com TeamMM http://www.macromedia.com/go/team -Original Message- From: Susan Prosser [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 10:19 AM To: CF-Talk Subject: CFMX for sale I recently won a copy of CFMX. I thought I'd have time to learn it, but recent project demands insist that I won't have spare time for the foreseeable future. Instead of letting the package sit unopened on my shelf, I thought I'd see if anybody needs it (or has a client that does). Any offers? Susan Prosser in Phoenix [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CF and WAP. Tutorials? Docs?
Are there any tutorials or howto's out there on how to do CF for WAP devices?I found the following, but its old, although it seems relatively straightforward. http://www.topxml.com/wap/articles/dynamic_coldfusion/default.asp The other problem is I know zilch about creating WAP code.Need some advice on where to go to get started.Preferably quick-start stuff :-) Matt Robertson [EMAIL PROTECTED] MSB Designs, Inc.http://mysecretbase.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CF and WAP. Tutorials? Docs?
WAP is very easy to get your head around. I would suggest downloading and playing with Ray's blog code. It includes a WAP interface that Ben Forta wrote. That should get you started. Matt Robertson wrote: Are there any tutorials or howto's out there on how to do CF for WAP devices?I found the following, but its old, although it seems relatively straightforward. http://www.topxml.com/wap/articles/dynamic_coldfusion/default.asp The other problem is I know zilch about creating WAP code.Need some advice on where to go to get started.Preferably quick-start stuff :-) [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CF and WAP. Tutorials? Docs?
Well, all you really need from the CF standpoint is the cfcontent tagexample cfcontent type=text/vnd.wap.wml reset=Yes?xml version=1.0? !DOCTYPE wml PUBLIC -//PHONE.COM//DTD WML 1.1//EN http://www.phone.com/dtd/wml11.dtd wml card id=home title=HOME phello world/p /card /wml You will also need to add teh mimetype defs to your webserver too for wml, wmls, and wbmp.Fairly easy to do...google for mimetypes to get the details.http://support.infinite.com/kb/699.asp a good link Oh, you don't 'do' WAP code, you do WML:) http://www.w3schools.com/wap/wap_intro.aspis a great intro. http://www.waptutor.org.uk/ I just started a wireless portal project for my company.You can use cfapplication and session vars too! The toughest part is testing, so many phone versions and browser versions.You will need an emulator.The OpenWave one is great http://developer.openwave.com/dvl/ an online one http://www.wapemulator.com/index.php Doug -Original Message- From: Matt Robertson [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 10:57 AM To: CF-Talk Subject: CF and WAP. Tutorials? Docs? Are there any tutorials or howto's out there on how to do CF for WAP devices?I found the following, but its old, although it seems relatively straightforward. http://www.topxml.com/wap/articles/dynamic_coldfusion/default.asp The other problem is I know zilch about creating WAP code.Need some advice on where to go to get started.Preferably quick-start stuff :-) Matt Robertson [EMAIL PROTECTED] MSB Designs, Inc.http://mysecretbase.com _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CF and WAP. Tutorials? Docs?
Are there any tutorials or howto's out there on how to do CF for WAP devices?I found the following, but its old, although it seems relatively straightforward. http://www.topxml.com/wap/articles/dynamic_coldfusion/default.asp The other problem is I know zilch about creating WAP code. Need some advice on where to go to get started. Preferably quick-start stuff :-) There's very little that's CF-specific when developing WML for WAP devices. Basically, you simply have to specify the appropriate content type, and ensure that you don't generate anything other than WML (such as CF debug output). I've done WML applications before, but can't find any pointers to the WML presentations I've done online. Charlie Arehart wrote a chapter in a WML book a while back, and that chapter is available from his site: http://www.systemanage.com/wml/cf-chapter-from-pro-wap/index.htm If you have any questions after reading that, I'll be happy to try to answer them. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFMX for sale
As I recall, MM did not give away any NFR copies of CFMX, they were full retail boxes of the PRO edition. At least that was the case with our user group. == We can get rid of spam on your domain! , Anti-spam solutions http://www.clickdoug.com/mailfilter.cfm For hosting solutions http://www.clickdoug.com == - Original Message - From: Samuel R. Neff To: CF-Talk Sent: Tuesday, April 20, 2004 9:52 AM Subject: RE: CFMX for sale Check the box.Usually when you win a MM product it's NFR -- Not For Resale. Sorry. Sam Blog http://www.rewindlife.com TeamMM http://www.macromedia.com/go/team -Original Message- From: Susan Prosser [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 10:19 AM To: CF-Talk Subject: CFMX for sale I recently won a copy of CFMX. I thought I'd have time to learn it, but recent project demands insist that I won't have spare time for the foreseeable future. Instead of letting the package sit unopened on my shelf, I thought I'd see if anybody needs it (or has a client that does). Any offers? Susan Prosser in Phoenix [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: cfmx 6.1 (and mssql2k) server migration
I will need to move my cfmx server to another machine in the coming weeks. Does anyone have any tips, or URL's which might assist me in backing up the cfserver settings to replicate the setup on the new server? If you have CFMX Enterprise, you can create an archive file from within the CF Administrator. You can also just back up the CF configuration files, which are a bunch of XML files: \cfusionmx\lib\neo-*.xml I'm going to need to do the same with MSSQL2K, in case you also know how to do that. If you can shut off the original SQL Server, the easiest way to do this is to just copy the .mdf and .ldf files for your specific databases and use sp_attach_db to attach them to the new server. If the new server will be exactly identical to the old one, you may be able to do the same thing with the master database as well, which will preserve database server configuration stuff, but that can be a bit dicey. Alternatively, you can use the backup and restore functionality to back up individual databases and restore them to the new server. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Blocking IP address
Is it possible for a browser to block the CGI.remote_host variable, or will there always be some IP address there? The only CGI variables that are provided by the browser are the ones that begin with HTTP_. The others are provided by the server environment. So no, I don't think a browser can affect CGI.REMOTE_HOST. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFMX for sale
I might be interested in purchasing it for personal use especially if the price is right. Buying it retail is seriously out of my wallet's reach. --Anne -Original Message- From: Doug White [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 11:11 AM To: CF-Talk Subject: Re: CFMX for sale As I recall, MM did not give away any NFR copies of CFMX, they were full retail boxes of the PRO edition. At least that was the case with our user group. == We can get rid of spam on your domain! , Anti-spam solutions http://www.clickdoug.com/mailfilter.cfm For hosting solutions http://www.clickdoug.com == - Original Message - From: Samuel R. Neff To: CF-Talk Sent: Tuesday, April 20, 2004 9:52 AM Subject: RE: CFMX for sale Check the box.Usually when you win a MM product it's NFR -- Not For Resale. Sorry. Sam Blog http://www.rewindlife.com TeamMM http://www.macromedia.com/go/team -Original Message- From: Susan Prosser [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 10:19 AM To: CF-Talk Subject: CFMX for sale I recently won a copy of CFMX. I thought I'd have time to learn it, but recent project demands insist that I won't have spare time for the foreseeable future. Instead of letting the package sit unopened on my shelf, I thought I'd see if anybody needs it (or has a client that does). Any offers? Susan Prosser in Phoenix _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Softball/Baseball db app? (Maybe OT)
Morning Everyone, I was thinking of putting together a db app that tracks the team information and game schedule/results for my daughter's softball team.Before I started hacking this out, I wanted to see if there was anything pre-rolled for this purpose.Anyone done this before? Thanks in advance, and my apologies if this is OT. Chris [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Blocking IP address
The browser can spoof REMOTE_HOST and even REMOTE_ADDR.Try this out: !--- DumpCGI.cfm --- cfdump var=#cgi# !--- Spoof.cfm --- cfhttp url=""> cfhttpparam type=CGI name=REMOTE_ADDR encoded=false value=132.145.1.2 cfhttpparam type=CGI name=REMOTE_HOST encoded=false value=spoof.com /cfhttp cfoutput#cfhttp.fileContent#/cfoutput Perhaps if there's a real web-server in the middle it will fix those CGI variables, but at least using JWS they can be spoofed.I know I've spoofed REMOTE_HOST before when demonstrating the security (or lack thereof) of one client's application and that was using iPlanet web-server and CFMX. Best regards, Sam Blog http://www.rewindlife.com TeamMM http://www.macromedia.com/go/team -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 11:22 AM To: CF-Talk Subject: RE: Blocking IP address Is it possible for a browser to block the CGI.remote_host variable, or will there always be some IP address there? The only CGI variables that are provided by the browser are the ones that begin with HTTP_. The others are provided by the server environment. So no, I don't think a browser can affect CGI.REMOTE_HOST. Dave Watts, CTO, Fig Leaf Software [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: cfmx 6.1 (and mssql2k) server migration
yeah, but you want to detach, then attach, since it will keep things concurrent... right? tony -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 11:20 AM To: CF-Talk Subject: RE: cfmx 6.1 (and mssql2k) server migration I will need to move my cfmx server to another machine in the coming weeks. Does anyone have any tips, or URL's which might assist me in backing up the cfserver settings to replicate the setup on the new server? If you have CFMX Enterprise, you can create an archive file from within the CF Administrator. You can also just back up the CF configuration files, which are a bunch of XML files: \cfusionmx\lib\neo-*.xml I'm going to need to do the same with MSSQL2K, in case you also know how to do that. If you can shut off the original SQL Server, the easiest way to do this is to just copy the .mdf and .ldf files for your specific databases and use sp_attach_db to attach them to the new server. If the new server will be exactly identical to the old one, you may be able to do the same thing with the master database as well, which will preserve database server configuration stuff, but that can be a bit dicey. Alternatively, you can use the backup and restore functionality to back up individual databases and restore them to the new server. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Softball/Baseball db app? (Maybe OT)
How much team information - the whole statsball mess or. .. Just about any CMS could display team information wins/losses next practice. I'm certainly interested in what you find out and I might be interested in helping you write something for our firm intranet for our firm team. -Nate -Original Message- From: Chris Terrebonne [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 10:29 AM To: CF-Talk Subject: Softball/Baseball db app? (Maybe OT) Morning Everyone, I was thinking of putting together a db app that tracks the team information and game schedule/results for my daughter's softball team.Before I started hacking this out, I wanted to see if there was anything pre-rolled for this purpose.Anyone done this before? Thanks in advance, and my apologies if this is OT. Chris _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CF and WAP. Tutorials? Docs?
Thx to all for the info!Looks invaluable.I just took this project over from a newbie CF developer, and it'll be awhile before I get to the WML stuff.Another developer well-familiar with WAP might come in and handle that aspect of the project.Client's call. Cheers, --Matt-- [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Download Stumper
Hi All, I've been playing around with using an autodownload routine for pdf's, as others have suggested in this forum. Here's the problem - In Netscape, both the open and save dialog buttons work correctly (document can be saved, then opened on a users machine - also, opening directly works as well).However, in IE 6, the document can be saved to the client machine and opened OK.However, clicking the open button in the IE dialog throws a message in Acrobat 6 that the file cannot be found. You can try it directly at this URL to see what I mean: http://www.drchuckpowell.com/free/ What's causing this? (I've only tested this in Windows) Here's the code: === !--- Set where the calling page is coming from (pn = pagename)--- cfswitch _expression_=#URL.pn# cfcase value=fs!--- Free Stuff Page --- cfset VARIABLES.dlfilepath = #REQUEST.downloadFiles#freeArticles\!--- Set the download file locations --- /cfcase /cfswitch cfscript VARIABLES.fileTypeExt = Right(URL.articleDirectURL, 3); // Determine the file type of the document being called VARIABLES.filePath = #VARIABLES.dlfilepath#; VARIABLES.fileName = #URL.articleDirectURL#; VARIABLES.headervalue = attachment; /cfscript cfif VARIABLES.fileTypeExt EQ pdf cfset VARIABLES.FileType = pdf cfelse cfset VARIABLES.FileType = unknown /cfif cfset VARIABLES.BadType= -#FileType#- !---Make an Invalid Mime Type --- !--- cfoutput #VARIABLES.fileTypeExt#br / #VARIABLES.FilePath#br / #VARIABLES.FileName#br /br / #VARIABLES.filepath##VARIABLES.fileName#br / /cfoutput cfabort--- !--- DownLoadFile.cfm--- cfsetting enablecfoutputonly=yes cfoutput cfif ReFind(MSIE,cgi.HTTP_USER_AGENT) !---If IE --- !--- cfheader name=content-type value=application/#VARIABLES.fileType# --- cfheader name=Content-disposition value=Attachment; filename=#VARIABLES.fileName# cfcontent type=application/octet-stream file=#VARIABLES.filepath##VARIABLES.fileName# cfelse!--- If Netscape--- cfheader name=content-type value=application/octet-stream cfheader name=content-disposition value='Attachment; filename=#VARIABLES.fileName#' cfcontenttype=application/octet-stream file=#VARIABLES.filepath##VARIABLES.fileName# /cfif /cfoutput cfsetting enablecfoutputonly=no cfabort === Thanks, Mark [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Download Stumper
I FEEL like I've seen this problem before, and I always felt it had something to do with path of where the acrobat file was temporarily saved. Something about spaces or path length or something. But it DID just work fine in IE for me.But I also have browser integration turned off on Acrobat. So - IE works fine for me - without the browser integration.We turn that off due to buggy behavior when viewing several acrobat files in a row from IE. -Original Message- From: Mark Leder [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 12:16 PM To: CF-Talk Subject: Download Stumper Hi All, I've been playing around with using an autodownload routine for pdf's, as others have suggested in this forum. Here's the problem - In Netscape, both the open and save dialog buttons work correctly (document can be saved, then opened on a users machine - also, opening directly works as well).However, in IE 6, the document can be saved to the client machine and opened OK.However, clicking the open button in the IE dialog throws a message in Acrobat 6 that the file cannot be found. You can try it directly at this URL to see what I mean: http://www.drchuckpowell.com/free/ What's causing this? (I've only tested this in Windows) Here's the code: === !--- Set where the calling page is coming from (pn = pagename)--- cfswitch _expression_=#URL.pn# cfcase value=fs!--- Free Stuff Page --- cfset VARIABLES.dlfilepath = #REQUEST.downloadFiles#freeArticles\!--- Set the download file locations --- /cfcase /cfswitch cfscript VARIABLES.fileTypeExt = Right(URL.articleDirectURL, 3); // Determine the file type of the document being called VARIABLES.filePath = #VARIABLES.dlfilepath#; VARIABLES.fileName = #URL.articleDirectURL#; VARIABLES.headervalue = attachment; /cfscript cfif VARIABLES.fileTypeExt EQ pdf cfset VARIABLES.FileType = pdf cfelse cfset VARIABLES.FileType = unknown /cfif cfset VARIABLES.BadType= -#FileType#- !---Make an Invalid Mime Type --- !--- cfoutput #VARIABLES.fileTypeExt#br / #VARIABLES.FilePath#br / #VARIABLES.FileName#br /br / #VARIABLES.filepath##VARIABLES.fileName#br / /cfoutput cfabort--- !--- DownLoadFile.cfm--- cfsetting enablecfoutputonly=yes cfoutput cfif ReFind(MSIE,cgi.HTTP_USER_AGENT) !---If IE --- !--- cfheader name=content-type value=application/#VARIABLES.fileType# --- cfheader name=Content-disposition value=Attachment; filename=#VARIABLES.fileName# cfcontent type=application/octet-stream file=#VARIABLES.filepath##VARIABLES.fileName# cfelse!--- If Netscape--- cfheader name=content-type value=application/octet-stream cfheader name=content-disposition value='Attachment; filename=#VARIABLES.fileName#' cfcontenttype=application/octet-stream file=#VARIABLES.filepath##VARIABLES.fileName# /cfif /cfoutput cfsetting enablecfoutputonly=no cfabort === Thanks, Mark [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Softball/Baseball db app? (Maybe OT)
Hmmm... I guess the whole mess.Calendar, win/loss, basic game stats, roster, etc.If I can find/create a simple interface, then some of the other parents/volunteers can enter the stats info. Since I'm just throwing the idea around, I don't have a clue as to what would be too much info.Dunno.Thoughts? Thanks, Chris How much team information - the whole statsball mess or. .. Just about any CMS could display team information wins/losses next practice. I'm certainly interested in what you find out and I might be interested in helping you write something for our firm intranet for our firm team. -Nate -Original Message- From: Chris Terrebonne [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 10:29 AM To: CF-Talk Subject: Softball/Baseball db app? (Maybe OT) Morning Everyone, I was thinking of putting together a db app that tracks the team information and game schedule/results for my daughter's softball team.Before I started hacking this out, I wanted to see if there was anything pre-rolled for this purpose.Anyone done this before? Thanks in advance, and my apologies if this is OT. Chris _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: cfmx 6.1 (and mssql2k) server migration
yeah, but you want to detach, then attach, since it will keep things concurrent... I haven't needed to detach first if I just shut down the first SQL Server. If I couldn't shut it down, I'd need to detach first. To the best of my knowledge, all sp_detach_db does in addition to detaching the database is update its statistics first, but it's not necessary to do that. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Http to https redirect
cfif cgi.server_port NEQ 443 AND cgi.request_method EQ get cflocation url="" / /cfif -Original Message- From: Westin, Ken [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 4:14 PM To: CF-Talk Subject: Http to https redirect OK so I have an application which I only want people to connect to using SSL, so I want to have it so that if anyone comes to a particular directory from http://www.mydomain.com/myapplication/ To be redirected to: https://secure.mydomain/myapplication/ I know how to do this with Apache, but am hoping I can do it with CF in the Application.cfm file. Thanks [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Download Stumper
Josh, I have a feeling your correct about the Acrobat Temp file location.I name the files with underscores _ instead of spaces, to eliminate that potential problem. Wondering if I should sniff the client's browser for the Acrobat plug in, then present some other option? Thanks, Mark _ From: Josh Remus [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 12:20 PM To: CF-Talk Subject: RE: Download Stumper I FEEL like I've seen this problem before, and I always felt it had something to do with path of where the acrobat file was temporarily saved. Something about spaces or path length or something. But it DID just work fine in IE for me.But I also have browser integration turned off on Acrobat. So - IE works fine for me - without the browser integration.We turn that off due to buggy behavior when viewing several acrobat files in a row from IE. -Original Message- From: Mark Leder [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 12:16 PM To: CF-Talk Subject: Download Stumper Hi All, I've been playing around with using an autodownload routine for pdf's, as others have suggested in this forum. Here's the problem - In Netscape, both the open and save dialog buttons work correctly (document can be saved, then opened on a users machine - also, opening directly works as well).However, in IE 6, the document can be saved to the client machine and opened OK.However, clicking the open button in the IE dialog throws a message in Acrobat 6 that the file cannot be found. You can try it directly at this URL to see what I mean: http://www.drchuckpowell.com/free/ What's causing this? (I've only tested this in Windows) Here's the code: === !--- Set where the calling page is coming from (pn = pagename)--- cfswitch _expression_=#URL.pn# cfcase value=fs!--- Free Stuff Page --- cfset VARIABLES.dlfilepath = #REQUEST.downloadFiles#freeArticles\!--- Set the download file locations --- /cfcase /cfswitch cfscript VARIABLES.fileTypeExt = Right(URL.articleDirectURL, 3); // Determine the file type of the document being called VARIABLES.filePath = #VARIABLES.dlfilepath#; VARIABLES.fileName = #URL.articleDirectURL#; VARIABLES.headervalue = attachment; /cfscript cfif VARIABLES.fileTypeExt EQ pdf cfset VARIABLES.FileType = pdf cfelse cfset VARIABLES.FileType = unknown /cfif cfset VARIABLES.BadType= -#FileType#- !---Make an Invalid Mime Type --- !--- cfoutput #VARIABLES.fileTypeExt#br / #VARIABLES.FilePath#br / #VARIABLES.FileName#br /br / #VARIABLES.filepath##VARIABLES.fileName#br / /cfoutput cfabort--- !--- DownLoadFile.cfm--- cfsetting enablecfoutputonly=yes cfoutput cfif ReFind(MSIE,cgi.HTTP_USER_AGENT) !---If IE --- !--- cfheader name=content-type value=application/#VARIABLES.fileType# --- cfheader name=Content-disposition value=Attachment; filename=#VARIABLES.fileName# cfcontent type=application/octet-stream file=#VARIABLES.filepath##VARIABLES.fileName# cfelse!--- If Netscape--- cfheader name=content-type value=application/octet-stream cfheader name=content-disposition value='Attachment; filename=#VARIABLES.fileName#' cfcontenttype=application/octet-stream file=#VARIABLES.filepath##VARIABLES.fileName# /cfif /cfoutput cfsetting enablecfoutputonly=no cfabort === Thanks, Mark _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: XML/SOAP Credit Card Settlement with Bank of America
Thanks for the response Matt, we have been using the in process http request for about 1 year now, but all of a sudden our looping process has been timing out causing problems with our shipping department. If you have any suggestions on how to combat the timeout issues we have been seeing with our http settlement process, it would be appreciated. I am not familiar with the MM devex, can you provide me a link? Thanks, Nate switch to in-process request? I had a nightmare of a time with them not too long ago. cf_bofainprocess was the result,Its a quick/dirty tag for use with their in-process method, not the new xml/soap.Its free in the MM devex. I wrote it to be simple, but the way it loops over a parm list can be troublesome if you have one missing occasionally.You can make it more robust by using individually-input parms rather than the list method I originally coded. -- Original Message -- From: Nathan Woodward [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date:Mon, 19 Apr 2004 13:25:44 -0700 We have been using Bank of America's credit card system and we have been having terrible performance with the settlement process involved with our credit card verification system. The initial problem is that when I try to load the wsdl file into dreamweaver MX it bombs out - this is the URL for the WSDL files: http://manager.bamart.com/custom/schemas/BAMARTAuthSettleService.wsdl Does anyone have any advice for getting the settlement process setup using their system? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Download Stumper
It works fine for me, too. I've see this bug when the users temp internet cache is full. Have you tried dumping the cache and downloading again? - Original Message - From: Mark Leder Here's the problem - In Netscape, both the open and save dialog buttons work correctly (document can be saved, then opened on a users machine - also, opening directly works as well).However, in IE 6, the document can be saved to the client machine and opened OK.However, clicking the open button in the IE dialog throws a message in Acrobat 6 that the file cannot be found. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: cfmx 6.1 (and mssql2k) server migration
I didn't detach first, and had some issues where things had to be rolled back, and sql server took care of them, however it wasn't a good feeling... tony -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 12:34 PM To: CF-Talk Subject: RE: cfmx 6.1 (and mssql2k) server migration yeah, but you want to detach, then attach, since it will keep things concurrent... I haven't needed to detach first if I just shut down the first SQL Server. If I couldn't shut it down, I'd need to detach first. To the best of my knowledge, all sp_detach_db does in addition to detaching the database is update its statistics first, but it's not necessary to do that. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFMX for sale
Let me know what kind of offers you get and I'll place a bid :) ERJ - Original Message - From: Susan Prosser To: CF-Talk Sent: Tuesday, April 06, 2004 7:18 AM Subject: CFMX for sale I recently won a copy of CFMX. I thought I'd have time to learn it, but recent project demands insist that I won't have spare time for the foreseeable future. Instead of letting the package sit unopened on my shelf, I thought I'd see if anybody needs it (or has a client that does). Any offers? Susan Prosser in Phoenix [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Download Stumper
Deanna, Good suggestion, though cleaning the IE 6 cache didn't solve the problem. This is the message I get after I choose open then Acrobat 6 Pro (this is the full version) launches. There was an error opening this document. This file cannot be found. Thanks, Mark _ From: Deanna Schneider [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 1:13 PM To: CF-Talk Subject: Re: Download Stumper It works fine for me, too. I've see this bug when the users temp internet cache is full. Have you tried dumping the cache and downloading again? - Original Message - From: Mark Leder Here's the problem - In Netscape, both the open and save dialog buttons work correctly (document can be saved, then opened on a users machine - also, opening directly works as well).However, in IE 6, the document can be saved to the client machine and opened OK.However, clicking the open button in the IE dialog throws a message in Acrobat 6 that the file cannot be found. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFMX for sale
Susan, If you won the raffle via a CF or Macromedia user group, I urge you to please reconsider your sale.Sure, getting some $ for it is nice, but I'm pretty sure that MM did NOT intend for the winners to be reselling the software on the open market. If users start selling the software that MM gives us to promote the groups, we seriously run the risk of being cut off.They (our sponsors at MM) have to fight to get us the software as it is. If you are unable to use the CF software and it came from a user group, please contact your user group manager and maybe we can work out a way to swap the software for something that will be of use to you. Ryan, Kansas City CFUG Manager [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFMX for sale
I second Ryan's comments (being a CFUG manager myself).I also beleive that licencing of the raffled products prohibits their use for a commercial site/application (but allowed for commercial development). Of course you may ahve won it somewhere else...if so...go for it ;-) Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Ryan Hartwich To: CF-Talk Sent: Tuesday, April 20, 2004 11:18 AM Subject: Re: CFMX for sale Susan, If you won the raffle via a CF or Macromedia user group, I urge you to please reconsider your sale.Sure, getting some $ for it is nice, but I'm pretty sure that MM did NOT intend for the winners to be reselling the software on the open market. If users start selling the software that MM gives us to promote the groups, we seriously run the risk of being cut off.They (our sponsors at MM) have to fight to get us the software as it is. If you are unable to use the CF software and it came from a user group, please contact your user group manager and maybe we can work out a way to swap the software for something that will be of use to you. Ryan, Kansas City CFUG Manager [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
ot: trace flags
hi there. does anyone know if there is a way to monitor trace flags in mssql server 2000? we have the 1807 trace flag set, this enables the use of a NAS with sql server, and periodically, it just drops?how? not sure, I think, server restart, or sql server service stopping/restarting.I havent proven either, but before I get into that and the potential causes, id like to know if I can monitor its status, the trace flag that is. let me know...thanks! ...tony tony weeg senior web applications architect navtrak, inc. www.navtrak.net [EMAIL PROTECTED] 410.548.2337 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Blocking IP address
I just set up IIS and ran the spoof test through that.Still spoofed. Sam Blog http://www.rewindlife.com TeamMM http://www.macromedia.com/go/team -Original Message- From: Samuel R. Neff [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 11:43 AM To: CF-Talk Subject: RE: Blocking IP address The browser can spoof REMOTE_HOST and even REMOTE_ADDR.Try this out: !--- DumpCGI.cfm --- cfdump var=#cgi# !--- Spoof.cfm --- cfhttp url=""> cfhttpparam type=CGI name=REMOTE_ADDR encoded=false value=132.145.1.2 cfhttpparam type=CGI name=REMOTE_HOST encoded=false value=spoof.com /cfhttp cfoutput#cfhttp.fileContent#/cfoutput Perhaps if there's a real web-server in the middle it will fix those CGI variables, but at least using JWS they can be spoofed.I know I've spoofed REMOTE_HOST before when demonstrating the security (or lack thereof) of one client's application and that was using iPlanet web-server and CFMX. Best regards, Sam [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Is it a bug or not a bug?
#(true and 4*5)# returns 20. #(false and 4*5)# returns false. #(4*5 and false)# returns false. #(4*5 and true)# returns true. Is it a bug or it is using some sort of _expression_ evaluation that I am not aware of. Johnny [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Is it a bug or not a bug?
#(true and 4*5)# returns 20. #(false and 4*5)# returns false. #(4*5 and false)# returns false. #(4*5 and true)# returns true. Is it a bug or it is using some sort of _expression_ evaluation that I am not aware of. CF uses short-circuit boolean evaluation. So it'll either stop the moment it hits a false condition or it'll go to completion. Further, any non-zero value evaluates to true, so 4*5 (20) will always evaluate to true. Regards, Dave. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Is it a bug or not a bug?
true = 1 = yes false = 0 = no afair -Original Message- From: Johnny Le [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 2:59 PM To: CF-Talk Subject: Is it a bug or not a bug? #(true and 4*5)# returns 20. #(false and 4*5)# returns false. #(4*5 and false)# returns false. #(4*5 and true)# returns true. Is it a bug or it is using some sort of _expression_ evaluation that I am not aware of. Johnny [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
Yes it's a bug, I have submitted it. Use #((4*5) and true)# until it get's fixed. Johnny Le wrote: #(true and 4*5)# returns 20. #(false and 4*5)# returns false. #(4*5 and false)# returns false. #(4*5 and true)# returns true. Is it a bug or it is using some sort of _expression_ evaluation that I am not aware of. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Is it a bug or not a bug?
Does MM officially support performing mathematical calculations between # signs? I was sorta under the impression that this was considered not a good practice. Regardless it is handy. Mark W. Breneman -Cold Fusion Developer -Network Administrator Vivid Media [EMAIL PROTECTED] www.vividmedia.com 608.270.9770 _ From: Dave Carabetta [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 2:03 PM To: CF-Talk Subject: RE: Is it a bug or not a bug? #(true and 4*5)# returns 20. #(false and 4*5)# returns false. #(4*5 and false)# returns false. #(4*5 and true)# returns true. Is it a bug or it is using some sort of _expression_ evaluation that I am not aware of. CF uses short-circuit boolean evaluation. So it'll either stop the moment it hits a false condition or it'll go to completion. Further, any non-zero value evaluates to true, so 4*5 (20) will always evaluate to true. Regards, Dave. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
#(true and 4*5)# returns 20. #(false and 4*5)# returns false. #(4*5 and false)# returns false. #(4*5 and true)# returns true. Is it a bug or it is using some sort of _expression_ evaluation that I am not aware of. CF uses short-circuit boolean evaluation. So it'll either stop the moment it hits a false condition or it'll go to completion. Further, any non-zero value evaluates to true, so 4*5 (20) will always evaluate to true. So you are saying the answer is true??? Is that what you are saying?The answer is 20. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CF-Talk: Digest every hour
Chris, I actually just finished doing something like this. It allows for different divisions (age groups) and then teams in every division. You can create divisions, teams, and then create games for those teams. You can re-schedule games, have field information, etc. It will also calculate standings based upon the results of the game you entered. There was also a bit more for this site as they wanted it, but the game information could be taken out. If you want a demo or have questions, email me offlist and I'll do my best. Cedric - Original Message - Subject: Softball/Baseball db app? (Maybe OT) From: Chris Terrebonne [EMAIL PROTECTED] Date: Tue, 20 Apr 2004 12:24:50 -0400 Thread: http://www.houseoffusion.com/cf_lists/index.cfm/method=messagesthreadid=32022forumid=4#160623 Hmmm... I guess the whole mess.Calendar, win/loss, basic game stats, roster, etc.If I can find/create a simple interface, then some of the other parents/volunteers can enter the stats info. Since I'm just throwing the idea around, I don't have a clue as to what would be too much info.Dunno.Thoughts? Thanks, Chris How much team information - the whole statsball mess or. .. Just about any CMS could display team information wins/losses next practice. I'm certainly interested in what you find out and I might be interested in helping you write something for our firm intranet for our firm team. -Nate -Original Message- From: Chris Terrebonne [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 10:29 AM To: CF-Talk Subject: Softball/Baseball db app? (Maybe OT) Morning Everyone, I was thinking of putting together a db app that tracks the team information and game schedule/results for my daughter's softball team.Before I started hacking this out, I wanted to see if there was anything pre-rolled for this purpose.Anyone done this before? Thanks in advance, and my apologies if this is OT. Chris _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Is it a bug or not a bug?
IIRC, this is new in CFMX. Doug -Original Message- From: Mark W. Breneman [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 3:15 PM To: CF-Talk Subject: RE: Is it a bug or not a bug? Does MM officially support performing mathematical calculations between # signs? I was sorta under the impression that this was considered not a good practice. Regardless it is handy. Mark W. Breneman -Cold Fusion Developer -Network Administrator Vivid Media [EMAIL PROTECTED] www.vividmedia.com 608.270.9770 _ From: Dave Carabetta [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 2:03 PM To: CF-Talk Subject: RE: Is it a bug or not a bug? #(true and 4*5)# returns 20. #(false and 4*5)# returns false. #(4*5 and false)# returns false. #(4*5 and true)# returns true. Is it a bug or it is using some sort of _expression_ evaluation that I am not aware of. CF uses short-circuit boolean evaluation. So it'll either stop the moment it hits a false condition or it'll go to completion. Further, any non-zero value evaluates to true, so 4*5 (20) will always evaluate to true. Regards, Dave. _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Http to https redirect
- Original Message - From: Westin, Ken [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, April 19, 2004 5:14 PM Subject: Http to https redirect OK so I have an application which I only want people to connect to using SSL, so I want to have it so that if anyone comes to a particular directory from http://www.mydomain.com/myapplication/ To be redirected to: https://secure.mydomain/myapplication/ I know how to do this with Apache, but am hoping I can do it with CF in the Application.cfm file. It may depend a little on the particular cgi variables available to you, but on our IIS5/CF5 servers, there's a cgi.https value (on or off) always available that can be tested. If you want to rewrite arbitrary page requests rather than just requests to the index file then you'll have to rewrite the url and append any url variables.The following will rewrite requests to both http://www.domain.com/... and http://domain.com/... as well as to http://secure.domain.com/... (with no host name change in the last case). cfif cgi.https is off !--- Rewrite the host name --- cfset firstpart = ListFirst(cgi.host, .) cfif firstpart is www cfset newurl = ReplaceNoCase(cgi.host, www, secure, one) cfelseif firstpart is secure cfset newurl = cgi.host cfelse cfset newurl = secure. cgi.host /cfif !--- Add page path --- cfset newurl = newurl cgi.path_info !--- Add query string, if one exists --- cfif Len(cgi.query_string) cfset newurl = newurl ? cgi.query_string /cfif !--- Redirect --- cflocation url=""> /cfif [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Softball/Baseball db app? (Maybe OT)
Chris, I actually just finished doing something like this. It allows for different divisions (age groups) and then teams in every division. You can create divisions, teams, and then create games for those teams. You can re-schedule games, have field information, etc. It will also calculate standings based upon the results of the game you entered. There was also a bit more for this site as they wanted it, but the game information could be taken out. If you want a demo or have questions, email me offlist and I'll do my best. Cedric - Original Message - Subject: Softball/Baseball db app? (Maybe OT) From: Chris Terrebonne [EMAIL PROTECTED] Date: Tue, 20 Apr 2004 12:24:50 -0400 Thread: http://www.houseoffusion.com/cf_lists/index.cfm/method=messagesthreadid=32022forumid=4#160623 Hmmm... I guess the whole mess.Calendar, win/loss, basic game stats, roster, etc.If I can find/create a simple interface, then some of the other parents/volunteers can enter the stats info. Since I'm just throwing the idea around, I don't have a clue as to what would be too much info.Dunno.Thoughts? Thanks, Chris How much team information - the whole statsball mess or. .. Just about any CMS could display team information wins/losses next practice. I'm certainly interested in what you find out and I might be interested in helping you write something for our firm intranet for our firm team. -Nate -Original Message- From: Chris Terrebonne [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 10:29 AM To: CF-Talk Subject: Softball/Baseball db app? (Maybe OT) Morning Everyone, I was thinking of putting together a db app that tracks the team information and game schedule/results for my daughter's softball team.Before I started hacking this out, I wanted to see if there was anything pre-rolled for this purpose.Anyone done this before? Thanks in advance, and my apologies if this is OT. Chris _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
#(true and 4*5)# returns 20. #(false and 4*5)# returns false. #(4*5 and false)# returns false. #(4*5 and true)# returns true. Is it a bug or it is using some sort of _expression_ evaluation that I am not aware of. CF uses short-circuit boolean evaluation. So it'll either stop the moment it hits a false condition or it'll go to completion. Further, any non-zero value evaluates to true, so 4*5 (20) will always evaluate to true. So you are saying the answer is true??? Is that what you are saying?The answer is 20. 20 *is* true.True is not necessarily 20, though. --Ben Doom [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
Yes I'm sure they do. I don't know about good or bad, I really haven't thought about it. It does work. Mark W. Breneman wrote: Does MM officially support performing mathematical calculations between # signs? I was sorta under the impression that this was considered not a good practice. Regardless it is handy. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Is it a bug or not a bug?
This is not a bug, it's just part of using a loosely typed language. Non-zero values are true, and zero is false.A short-circuited boolean evaluation returns the value of the last _expression_ that is evaluated. Note, that whether the first test returns 'true' or '20', both are true values, so it won't affect anything.You can use 20 any place you use true and it will behave the same way. Cheers, barneyb -Original Message- From: Johnny Le [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 11:59 AM To: CF-Talk Subject: Is it a bug or not a bug? #(true and 4*5)# returns 20. #(false and 4*5)# returns false. #(4*5 and false)# returns false. #(4*5 and true)# returns true. Is it a bug or it is using some sort of _expression_ evaluation that I am not aware of. Johnny [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Help! disappearing datasources
Greetings, Have a problem with our current CF5 server on a unix box. All of our data sources have disappeared. I have no idea why. Nothing has been changed on the server for the last while. Moreover, when I try to add a datasource again, the Admin app says that the datasource is already there. Any suggestions or cures would be most appreciated. thx, larry -- Larry C. Lyons Web Analyst BEI Resources American Type Culture Collection email: llyons(at)atcc(dot)org tel: 703.365.2700.2678 -- [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
Yes, this is fully functioning in CFMX, but I believe not in previous versions. Johnny Does MM officially support performing mathematical calculations between # signs? I was sorta under the impression that this was considered not a good practice. Regardless it is handy. Mark W. Breneman -Cold Fusion Developer -Network Administrator Vivid Media [EMAIL PROTECTED] www.vividmedia.com 608.270.9770 _ From: Dave Carabetta [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 2:03 PM To: CF-Talk Subject: RE: Is it a bug or not a bug? #(true and 4*5)# returns 20. #(false and 4*5)# returns false. #(4*5 and false)# returns false. #(4*5 and true)# returns true. Is it a bug or it is using some sort of _expression_ evaluation that I am not aware of. CF uses short-circuit boolean evaluation. So it'll either stop the moment it hits a false condition or it'll go to completion. Further, any non-zero value evaluates to true, so 4*5 (20) will always evaluate to true. Regards, Dave. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Is it a bug or not a bug?
Does MM officially support performing mathematical calculations between # signs? I was sorta under the impression that this was considered not a good practice. Regardless it is handy. As of CFMX you can. Good or bad practice is your call though. Regards, Dave. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
Run this: cfif true and (4*5)truecfelsefalse/cfifbr cfif (4*5) and truetruecfelsefalse/cfifbr cfif false and (4*5)truecfelsefalse/cfifbr cfif (4*5) and falsetruecfelsefalse/cfifbr br cfoutput#true and (4*5)#/cfoutputbr cfoutput#(4*5) and true#/cfoutputbr cfoutput#false and (4*5)#/cfoutputbr cfoutput#(4*5) and false#/cfoutputbr Barney Boisvert wrote: This is not a bug, it's just part of using a loosely typed language. Non-zero values are true, and zero is false.A short-circuited boolean evaluation returns the value of the last _expression_ that is evaluated. Note, that whether the first test returns 'true' or '20', both are true values, so it won't affect anything.You can use 20 any place you use true and it will behave the same way. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Is it a bug or not a bug?
I thought I had seen someone on this list, when MX came out, warning everyone to not use it due to it broke a convention (or something like that) and it may not be supported in the future versions due to MM did not officially acknowledge it as a feature.So thus I tried to not use it, but I did find it real handy at times. I guess I should read MM docs and not believe everything I read on this list. :-) Does this method of mathematical calculations have an official name? Other then performing mathematical calculations between # signs. Mark W. Breneman -Cold Fusion Developer -Network Administrator Vivid Media [EMAIL PROTECTED] www.vividmedia.com 608.270.9770 _ From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 3:32 PM To: CF-Talk Subject: Re: Is it a bug or not a bug? Yes I'm sure they do. I don't know about good or bad, I really haven't thought about it. It does work. Mark W. Breneman wrote: Does MM officially support performing mathematical calculations between # signs? I was sorta under the impression that this was considered not a good practice. Regardless it is handy. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
#(true and 4*5)# returns 20. #(false and 4*5)# returns false. #(4*5 and false)# returns false. #(4*5 and true)# returns true. Is it a bug or it is using some sort of _expression_ evaluation that I am not aware of. CF uses short-circuit boolean evaluation. So it'll either stop the moment it hits a false condition or it'll go to completion. Further, any non-zero value evaluates to true, so 4*5 (20) will always evaluate to true. So you are saying the answer is true??? Is that what you are saying?The answer is 20. No, I'm saying that because of the way short-circuit boolean evaluation works, it'll return the last value evaluated in the _expression_. So, for the first example, since 4*5 is the last _expression_, and 20 is the same as true (a non-zero value), it returns 20. If you want to be explicit about what gets returned, then you could put yesNoFormat() around the _expression_: #yesNoFormat((true and 4*5))# The above returns Yes. Regards, Dave. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
I don't know, I could be wrong on it being supported. But I deff have not heard of it not being supported. It does seem to be broken in this case though. I don't know what you would call it. Output Expressioning? ;-) Mark W. Breneman wrote: I thought I had seen someone on this list, when MX came out, warning everyone to not use it due to it broke a convention (or something like that) and it may not be supported in the future versions due to MM did not officially acknowledge it as a feature.So thus I tried to not use it, but I did find it real handy at times. I guess I should read MM docs and not believe everything I read on this list. :-) Does this method of mathematical calculations have an official name? Other then performing mathematical calculations between # signs. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Help! disappearing datasources
For what it's worth, your site (atcc.org) is coming up with this error right now: Error Diagnostic Information An error occurred while attempting to establish a connection to the server. The most likely cause of this problem is that the server is not currently running. Verify that the server is running and restart it if necessary. Unix error number 2 occurred: No such file or directory Larry Lyons wrote: Greetings, Have a problem with our current CF5 server on a unix box. All of our data sources have disappeared. I have no idea why. Nothing has been changed on the server for the last while. Moreover, when I try to add a datasource again, the Admin app says that the datasource is already there. Any suggestions or cures would be most appreciated. thx, larry -- Larry C. Lyons Web Analyst BEI Resources American Type Culture Collection email: llyons(at)atcc(dot)org tel: 703.365.2700.2678 -- [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
Run this: cfif true and (4*5)truecfelsefalse/cfifbr cfif (4*5) and truetruecfelsefalse/cfifbr cfif false and (4*5)truecfelsefalse/cfifbr cfif (4*5) and falsetruecfelsefalse/cfifbr br cfoutput#true and (4*5)#/cfoutputbr cfoutput#(4*5) and true#/cfoutputbr cfoutput#false and (4*5)#/cfoutputbr cfoutput#(4*5) and false#/cfoutputbr I get: true true false false 20 true false false Interesting. I would have guessed that both sets would have returned the same exact results. That, to me, is indeed a bug. However, to Johnny Le's original question (at least, as I understood it), the fact that it evaluates to a true condition (even if it's 20) is *not* a bug. Regards, Dave. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: RE: Is it a bug or not a bug?
It wouldn't surprise me if it disappeared again in a future version. It used to be in CF3.x, and was removed in CF4.x. Sure is handy though. - Original Message - From: Mark W. Breneman [EMAIL PROTECTED] Date: Tuesday, April 20, 2004 1:46 pm Subject: RE: Is it a bug or not a bug? I thought I had seen someone on this list, when MX came out, warning everyone to not use it due to it broke a convention (or something like that) and it may not be supported in the future versions due to MM did not officially acknowledge it as a feature.So thus I tried to not use it, but I did find it real handy at times. I guess I should read MM docs and not believe everything I read on thislist. :-) Does this method of mathematical calculations have an official name? Other then performing mathematical calculations between # signs. Mark W. Breneman -Cold Fusion Developer -Network Administrator Vivid Media [EMAIL PROTECTED] www.vividmedia.com 608.270.9770 _ From: Bryan F. Hogan [EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 3:32 PM To: CF-Talk Subject: Re: Is it a bug or not a bug? Yes I'm sure they do. I don't know about good or bad, I really haven't thought about it. It does work. Mark W. Breneman wrote: Does MM officially support performing mathematical calculations between # signs? I was sorta under the impression that this was considered not a good practice. Regardless it is handy. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Help! disappearing datasources
For what it's worth, your site (atcc.org) is coming up with this error right now: Thanks for trying Bret, we were able to correct the problem by doing a restore from a backup. thx again, larry [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
20 *is* true. A little precison: 20 EVALUATES to true when it is converted, but 20 is 20 and true is true. -- ___ See some cool custom tags here: http://www.contentbox.com/claude/customtags/tagstore.cfm Please send any spam to this address: [EMAIL PROTECTED] Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Looping query help
I have a listing of classes, each with a text box next to them. Users will fill in a number in the text box next to each class and then hit submit. I'm trying to loop through the results and INSERT a class_id, section number, enrollment number, and date for each class. I use the following code to loop through checkboxes on another page, so I'm not sure why this gives me an error. (Syntax error in INSERT INTO statement.) !-- create lists for values --- cfset class_id_list=#form.class_id# cfset section_no_list=#form.section_no# cfset class_enrollment_list=#form.class_enrollment# !--- loop through and set enrollment for each class --- cfloop index=i from=1 to=#ListLen(class_id_list)# cfquery name=q_approve_class datasource=#application.db# INSERT INTO tbl_class_enrollment (class_id, class_enrollment, section_no, date) VALUES (#ListGetAt(class_id_list, i)#, '#ListGetAt(class_enrollment_list, i)#', '#ListGetAt(section_no_list, i)#', '#enrollment_date#'); /cfquery /cfloop This is the outputted SQL: INSERT INTO tbl_class_enrollment (class_id, class_enrollment, section_no, date) VALUES (841, '2', '03280', '4/20/2004'); Any ideas? -- Austin [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
[EMAIL PROTECTED] 04/20/04 03:55PM snip Interesting. I would have guessed that both sets would have returned the same exact results. That, to me, is indeed a bug. Dave, Could you explain why you are sure this is a bug, and not just an unexpected casting issue? Why should #1 and 20# automatically output 1? You are anding a boolean and an integer, and getting an integer out. I think it would be a bug if it produced different results each time it was called. But it seems to be behaving predictably. Which to me means it is not a bug. Curious, Jerry Johnson [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
This is not a bug, it's just part of using a loosely typed language. Well... your right that it is part of using a loosely typed language, this implies that the language has to convert automatcally variables and expressions in order to perform a statement, but when the laguage converts to the wrong type, IT IS definitely a bug, loosely type or not. in true and (4*5), CF should have converted (4*5) to true and not true to 1, since the operator is boolean. IMHO this comes from the fact that logical expressions are evaluated only until the final result is known. The rest of the problem comes from the propery of CF to interpret and guess the type of expressions and variables. In (false and (4*5)), the result false is known as soon as AND is encountered, so the rest of the _expression_ is not evaluated. At this time, CF is considering a boolean constant, and it returns a boolean value. In the case of (true and (4*5)), CF has to evaluate (4*5), but then, since 4*5 is a numerical operation, it converts true to numeric instead of the reverse. Just my 2 ¢ explanation, and it is definitely a bug. -- ___ See some cool custom tags here: http://www.contentbox.com/claude/customtags/tagstore.cfm Please send any spam to this address: [EMAIL PROTECTED] Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
If you are asking whether it is true or false, then it is true.But if you ask what is value of that _expression_, then it is 20.I think that is two different questions.So you get two different answers. Johnny Run this: cfif true and (4*5)truecfelsefalse/cfifbr cfif (4*5) and truetruecfelsefalse/cfifbr cfif false and (4*5)truecfelsefalse/cfifbr cfif (4*5) and falsetruecfelsefalse/cfifbr br cfoutput#true and (4*5)#/cfoutputbr cfoutput#(4*5) and true#/cfoutputbr cfoutput#false and (4*5)#/cfoutputbr cfoutput#(4*5) and false#/cfoutputbr Barney Boisvert wrote: This is not a bug, it's just part of using a loosely typed language. Non-zero values are true, and zero is false.A short-circuited boolean evaluation returns the value of the last _expression_ that is evaluated. Note, that whether the first test returns 'true' or '20', both are true values, so it won't affect anything.You can use 20 any place you use true and it will behave the same way. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Is it a bug or not a bug?
and is a boolean operator.I would expect the result to always be a boolean. In my opinion, it's a bug. Sam Blog http://www.rewindlife.com TeamMM http://www.macromedia.com/go/team -Original Message- From: Jerry Johnson [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 4:15 PM To: CF-Talk Subject: Re: Is it a bug or not a bug? [EMAIL PROTECTED] 04/20/04 03:55PM snip Interesting. I would have guessed that both sets would have returned the same exact results. That, to me, is indeed a bug. Dave, Could you explain why you are sure this is a bug, and not just an unexpected casting issue? Why should #1 and 20# automatically output 1? You are anding a boolean and an integer, and getting an integer out. I think it would be a bug if it produced different results each time it was called. But it seems to be behaving predictably. Which to me means it is not a bug. Curious, Jerry Johnson [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Looping query help
If class_enrollment is an int (or similar), you could be getting an error because of the wrapping single quotes. And before someone else says it, cfsqlparam is a good thing. --Ben Doom Austin Govella wrote: I have a listing of classes, each with a text box next to them. Users will fill in a number in the text box next to each class and then hit submit. I'm trying to loop through the results and INSERT a class_id, section number, enrollment number, and date for each class. I use the following code to loop through checkboxes on another page, so I'm not sure why this gives me an error. (Syntax error in INSERT INTO statement.) !-- create lists for values --- cfset class_id_list=#form.class_id# cfset section_no_list=#form.section_no# cfset class_enrollment_list=#form.class_enrollment# !--- loop through and set enrollment for each class --- cfloop index=i from=1 to=#ListLen(class_id_list)# cfquery name=q_approve_class datasource=#application.db# INSERT INTO tbl_class_enrollment (class_id, class_enrollment, section_no, date) VALUES (#ListGetAt(class_id_list, i)#, '#ListGetAt(class_enrollment_list, i)#', '#ListGetAt(section_no_list, i)#', '#enrollment_date#'); /cfquery /cfloop This is the outputted SQL: INSERT INTO tbl_class_enrollment (class_id, class_enrollment, section_no, date) VALUES (841, '2', '03280', '4/20/2004'); Any ideas? -- Austin [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Looping query help
Off the top of my head, I would suggest using cfqueryparam. Doug Austin Govella wrote: I have a listing of classes, each with a text box next to them. Users will fill in a number in the text box next to each class and then hit submit. I'm trying to loop through the results and INSERT a class_id, section number, enrollment number, and date for each class. I use the following code to loop through checkboxes on another page, so I'm not sure why this gives me an error. (Syntax error in INSERT INTO statement.) !-- create lists for values --- cfset class_id_list=#form.class_id# cfset section_no_list=#form.section_no# cfset class_enrollment_list=#form.class_enrollment# !--- loop through and set enrollment for each class --- cfloop index=i from=1 to=#ListLen(class_id_list)# cfquery name=q_approve_class datasource=#application.db# INSERT INTO tbl_class_enrollment (class_id, class_enrollment, section_no, date) VALUES (#ListGetAt(class_id_list, i)#, '#ListGetAt(class_enrollment_list, i)#', '#ListGetAt(section_no_list, i)#', '#enrollment_date#'); /cfquery /cfloop This is the outputted SQL: INSERT INTO tbl_class_enrollment (class_id, class_enrollment, section_no, date) VALUES (841, '2', '03280', '4/20/2004'); Any ideas? -- Austin [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
it'll return the last value evaluated in the _expression_. This IS the bug: it should return the type implied by the operator in the _expression_. in true and 4*5, CF has a boolean and a boolean operator, It thus has to evaluate 4*5, THEN convert it to a boolean in order to complete the boolean operation. Finally it has to evaluate (true AND true) and return the result true, not 20. There is loosely and too loosely, and too loosely is lousy ;-) ___ See some cool custom tags here: http://www.contentbox.com/claude/customtags/tagstore.cfm Please send any spam to this address: [EMAIL PROTECTED] Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
Claude Schneegans wrote: 20 *is* true. A little precison: 20 EVALUATES to true when it is converted, but 20 is 20 and true is true. Point taken.Definately important if you ever compare things to true. --Ben Doom [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Is it a bug or not a bug?
In general, boolean expressions should return boolean values (yes,no,true,false).This is a bug. Paul Kenney [EMAIL PROTECTED] 916-212-4359 -Original Message- From: Samuel R. Neff [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 1:20 PM To: CF-Talk Subject: RE: Is it a bug or not a bug? and is a boolean operator.I would expect the result to always be a boolean. In my opinion, it's a bug. Sam Blog http://www.rewindlife.com TeamMM http://www.macromedia.com/go/team -Original Message- From: Jerry Johnson [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 4:15 PM To: CF-Talk Subject: Re: Is it a bug or not a bug? [EMAIL PROTECTED] 04/20/04 03:55PM snip Interesting. I would have guessed that both sets would have returned the same exact results. That, to me, is indeed a bug. Dave, Could you explain why you are sure this is a bug, and not just an unexpected casting issue? Why should #1 and 20# automatically output 1? You are anding a boolean and an integer, and getting an integer out. I think it would be a bug if it produced different results each time it was called. But it seems to be behaving predictably. Which to me means it is not a bug. Curious, Jerry Johnson [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Is it a bug or not a bug?
I get two true values followed by two false values for both blocks.The specific true and false values are varied, but they are still equivalent. This block is as well: cfoutput #1 and 100#br / #false or 10#br / #false or 0#br / #0 and false#br / /cfoutput If you want a boolean value returned, you can use yesNoForamt(), though that will return 'yes' or 'no'.If you really want true or false returned, use this UDF: cfscript function booleanFormat(expr) { if (expr) return true; return false; } /cfscript Using that UDF, here's a final block that is equivalent to the first three, but also yields the correct string representations of the values: cfoutput #booleanFormat(1 and 100)#br / #booleanFormat(false or 10)#br / #booleanFormat(false or 0)#br / #booleanFormat(0 and false)#br / /cfoutput Cheers, barneyb -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 1:46 PM To: CF-Talk Subject: Re: Is it a bug or not a bug? Run this: cfif true and (4*5)truecfelsefalse/cfifbr cfif (4*5) and truetruecfelsefalse/cfifbr cfif false and (4*5)truecfelsefalse/cfifbr cfif (4*5) and falsetruecfelsefalse/cfifbr br cfoutput#true and (4*5)#/cfoutputbr cfoutput#(4*5) and true#/cfoutputbr cfoutput#false and (4*5)#/cfoutputbr cfoutput#(4*5) and false#/cfoutputbr Barney Boisvert wrote: This is not a bug, it's just part of using a loosely typed language. Non-zero values are true, and zero is false.A short-circuited boolean evaluation returns the value of the last _expression_ that is evaluated. Note, that whether the first test returns 'true' or '20', both are true values, so it won't affect anything.You can use 20 any place you use true and it will behave the same way. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Is it a bug or not a bug?
I am curious on how one would go about using this in real life. If you're looking for a boolean result then why would you use 5*4 in an _expression_? Mark W. Breneman -Cold Fusion Developer -Network Administrator Vivid Media [EMAIL PROTECTED] www.vividmedia.com 608.270.9770 _ From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 3:24 PM To: CF-Talk Subject: Re: Is it a bug or not a bug? it'll return the last value evaluated in the _expression_. This IS the bug: it should return the type implied by the operator in the _expression_. in true and 4*5, CF has a boolean and a boolean operator, It thus has to evaluate 4*5, THEN convert it to a boolean in order to complete the boolean operation. Finally it has to evaluate (true AND true) and return the result true, not 20. There is loosely and too loosely, and too loosely is lousy ;-) ___ See some cool custom tags here: http://www.contentbox.com/claude/customtags/tagstore.cfm Please send any spam to this address: [EMAIL PROTECTED] Thanks. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
You are anding a boolean and an integer, and getting an integer out. This IS the bug, a loosely interpretor should always convert operands to fit the operator, not the contrary. If you are anding a boolean and an integer, the and is a boolean operator, the boolean is ok, the integer is the alien, thus the integer should be converted. Once this is done, you only have boolean left, there is absolutely no reason you could end up with an integer. -- ___ See some cool custom tags here: http://www.contentbox.com/claude/customtags/tagstore.cfm Please send any spam to this address: [EMAIL PROTECTED] Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
I disagree.Whether I would consider it a bug or not depends on when things are expected get cast.Typically, in a loosely-typed language, you cast as late as possible, and avoid it whenever you can. In this case, the language is avoiding implicit casting, which is (IMHO) a good thing.Especially since the cast from an integer to a boolean is a cast down. --Ben Doom Samuel R. Neff wrote: and is a boolean operator.I would expect the result to always be a boolean. In my opinion, it's a bug. Sam Blog http://www.rewindlife.com TeamMM http://www.macromedia.com/go/team -Original Message- From: Jerry Johnson [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 4:15 PM To: CF-Talk Subject: Re: Is it a bug or not a bug? [EMAIL PROTECTED] 04/20/04 03:55PM snip Interesting. I would have guessed that both sets would have returned the same exact results. That, to me, is indeed a bug. Dave, Could you explain why you are sure this is a bug, and not just an unexpected casting issue? Why should #1 and 20# automatically output 1? You are anding a boolean and an integer, and getting an integer out. I think it would be a bug if it produced different results each time it was called. But it seems to be behaving predictably. Which to me means it is not a bug. Curious, Jerry Johnson [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFMX for sale
What if the money went back to the User Group for fun events or paid speakers? Paul Kenney [EMAIL PROTECTED] 916-212-4359 -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 11:24 AM To: CF-Talk Subject: Re: CFMX for sale I second Ryan's comments (being a CFUG manager myself).I also beleive that licencing of the raffled products prohibits their use for a commercial site/application (but allowed for commercial development). Of course you may ahve won it somewhere else...if so...go for it ;-) Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Ryan Hartwich To: CF-Talk Sent: Tuesday, April 20, 2004 11:18 AM Subject: Re: CFMX for sale Susan, If you won the raffle via a CF or Macromedia user group, I urge you to please reconsider your sale.Sure, getting some $ for it is nice, but I'm pretty sure that MM did NOT intend for the winners to be reselling the software on the open market. If users start selling the software that MM gives us to promote the groups, we seriously run the risk of being cut off.They (our sponsors at MM) have to fight to get us the software as it is. If you are unable to use the CF software and it came from a user group, please contact your user group manager and maybe we can work out a way to swap the software for something that will be of use to you. Ryan, Kansas City CFUG Manager [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Is it a bug or not a bug?
You all have convinced me. It looks like the operator decides the type for the result for everything except the AND operator. Even OR works as you say it should. #1 + true# 2 #true + 1# 2 #1 and true#true #true and 1#1 #true or 1#true #true + true#2 #true + false#1 #true a#truea #a true#atrue #true and a# a #a and true#(error - cannot convert a to boolean) Thanks for explaining it to me. Jerry Johnson [EMAIL PROTECTED] 04/20/04 04:20PM and is a boolean operator.I would expect the result to always be a boolean. In my opinion, it's a bug. Sam Blog http://www.rewindlife.com TeamMM http://www.macromedia.com/go/team -Original Message- From: Jerry Johnson [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 4:15 PM To: CF-Talk Subject: Re: Is it a bug or not a bug? [EMAIL PROTECTED] 04/20/04 03:55PM snip Interesting. I would have guessed that both sets would have returned the same exact results. That, to me, is indeed a bug. Dave, Could you explain why you are sure this is a bug, and not just an unexpected casting issue? Why should #1 and 20# automatically output 1? You are anding a boolean and an integer, and getting an integer out. I think it would be a bug if it produced different results each time it was called. But it seems to be behaving predictably. Which to me means it is not a bug. Curious, Jerry Johnson [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFMX for sale
Susan, You should sell your copy guilt free. It's your copy and yours alone, what you do with it is your business. No, I'm not intrested in buying it. It's just no one else's bizness what you do with it. I think it's commendable that you offered through this list to developers who will use it to it's full potential. -adam -Original Message- From: Ryan Hartwich [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 06:18 PM To: 'CF-Talk' Subject: Re: CFMX for sale Susan, If you won the raffle via a CF or Macromedia user group, I urge you to please reconsider your sale.Sure, getting some $ for it is nice, but I'm pretty sure that MM did NOT intend for the winners to be reselling the software on the open market. If users start selling the software that MM gives us to promote the groups, we seriously run the risk of being cut off.They (our sponsors at MM) have to fight to get us the software as it is. If you are unable to use the CF software and it came from a user group, please contact your user group manager and maybe we can work out a way to swap the software for something that will be of use to you. Ryan, Kansas City CFUG Manager [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFMX for sale
Although nice I'm pretty sure it would still be illegal...Not for Resale right on all the software that has passed through my group ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Paul Kenney To: CF-Talk Sent: Tuesday, April 20, 2004 1:34 PM Subject: RE: CFMX for sale What if the money went back to the User Group for fun events or paid speakers? Paul Kenney [EMAIL PROTECTED] 916-212-4359 -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 11:24 AM To: CF-Talk Subject: Re: CFMX for sale I second Ryan's comments (being a CFUG manager myself).I also beleive that licencing of the raffled products prohibits their use for a commercial site/application (but allowed for commercial development). Of course you may ahve won it somewhere else...if so...go for it ;-) Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Ryan Hartwich To: CF-Talk Sent: Tuesday, April 20, 2004 11:18 AM Subject: Re: CFMX for sale Susan, If you won the raffle via a CF or Macromedia user group, I urge you to please reconsider your sale.Sure, getting some $ for it is nice, but I'm pretty sure that MM did NOT intend for the winners to be reselling the software on the open market. If users start selling the software that MM gives us to promote the groups, we seriously run the risk of being cut off.They (our sponsors at MM) have to fight to get us the software as it is. If you are unable to use the CF software and it came from a user group, please contact your user group manager and maybe we can work out a way to swap the software for something that will be of use to you. Ryan, Kansas City CFUG Manager [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
If you want a boolean value returned, you can use yesNoForamt() Well, the purpose of the yesNo() function is to convert a boolean value to a text representation, not to convert an integer which should have been a bolean in the first place. A _expression_ with two operands and one boolean operator should always return a boolean value, not an integer. -- ___ See some cool custom tags here: http://www.contentbox.com/claude/customtags/tagstore.cfm Please send any spam to this address: [EMAIL PROTECTED] Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFMX for sale
The ring cannot be used for good. -Original Message- From: Paul Kenney [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 3:34 PM To: CF-Talk Subject: RE: CFMX for sale What if the money went back to the User Group for fun events or paid speakers? Paul Kenney [EMAIL PROTECTED] 916-212-4359 -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 11:24 AM To: CF-Talk Subject: Re: CFMX for sale I second Ryan's comments (being a CFUG manager myself).I also beleive that licencing of the raffled products prohibits their use for a commercial site/application (but allowed for commercial development). Of course you may ahve won it somewhere else...if so...go for it ;-) Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Ryan Hartwich To: CF-Talk Sent: Tuesday, April 20, 2004 11:18 AM Subject: Re: CFMX for sale Susan, If you won the raffle via a CF or Macromedia user group, I urge you to please reconsider your sale.Sure, getting some $ for it is nice, but I'm pretty sure that MM did NOT intend for the winners to be reselling the software on the open market. If users start selling the software that MM gives us to promote the groups, we seriously run the risk of being cut off.They (our sponsors at MM) have to fight to get us the software as it is. If you are unable to use the CF software and it came from a user group, please contact your user group manager and maybe we can work out a way to swap the software for something that will be of use to you. Ryan, Kansas City CFUG Manager _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
It looks like the operator decides the type for the result for everything except the AND operator. Even OR works as you say it should. #1 + true# 2 #true + 1# 2 #1 and true#true #true and 1#1 #true or 1#true #true + true#2 #true + false#1 #true a#truea #a true#atrue #true and a# a #a and true#(error - cannot convert a to boolean) Try #1 or true# That should return 1, not true. Someone pointed out that the value returned is the last value evaluated. In (true or 1) that is true, since it's shortcircuited. --Ben Doom [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFMX for sale
Adam, I agree with your comments completely! Paul Giesenhagen QuillDesign - Original Message - From: Adrocknaphobia To: CF-Talk Sent: Tuesday, April 20, 2004 3:39 PM Subject: Re: CFMX for sale Susan, You should sell your copy guilt free. It's your copy and yours alone, what you do with it is your business. No, I'm not intrested in buying it. It's just no one else's bizness what you do with it. I think it's commendable that you offered through this list to developers who will use it to it's full potential. -adam -Original Message- From: Ryan Hartwich [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 06:18 PM To: 'CF-Talk' Subject: Re: CFMX for sale Susan, If you won the raffle via a CF or Macromedia user group, I urge you to please reconsider your sale.Sure, getting some $ for it is nice, but I'm pretty sure that MM did NOT intend for the winners to be reselling the software on the open market. If users start selling the software that MM gives us to promote the groups, we seriously run the risk of being cut off.They (our sponsors at MM) have to fight to get us the software as it is. If you are unable to use the CF software and it came from a user group, please contact your user group manager and maybe we can work out a way to swap the software for something that will be of use to you. Ryan, Kansas City CFUG Manager [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
[EMAIL PROTECTED] 04/20/04 03:55PM snip Interesting. I would have guessed that both sets would have returned the same exact results. That, to me, is indeed a bug. Dave, Could you explain why you are sure this is a bug, and not just an unexpected casting issue? Actually, it's not. I didn't let it sink in that he was outputting the word true as opposed to outputting the result of the evaluation in the first test case. That's where I thought I was seeing the difference (outputting true vs. 20). Thanks for pointing that out. Regards, Dave. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
This is mentioned on page 14 of Ben Forta's certified Macromedia ColdFusion MX Developer Study Guide. He said: _expression_ may be used with CFML tags as well as in output, so this is valid: cfset result = var2-var1 as is cfoutput#var2-var1#/cfoutput This is not the intersting part of CFMX.This is: You can embed CFML comments in begin tags (not just tag bodies), functions calls, and variable text in pound signs. ColdFusion ignores the text in comments such as the following: cfset MyVar = var1 !--- var2 --- cfoutput#Dateformat(now() !---, , ---)#/cfoutput Yep, this is at http://livedocs.macromedia.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/Elements13.htm I find this so bizarre. Johnny I thought I had seen someone on this list, when MX came out, warning everyone to not use it due to it broke a convention (or something like that) and it may not be supported in the future versions due to MM did not officially acknowledge it as a feature.So thus I tried to not use it, but I did find it real handy at times. I guess I should read MM docs and not believe everything I read on this list. :-) Does this method of mathematical calculations have an official name? Other then performing mathematical calculations between # signs. Mark W. Breneman -Cold Fusion Developer -Network Administrator Vivid Media [EMAIL PROTECTED] www.vividmedia.com 608.270.9770 _ From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 3:32 PM To: CF-Talk Subject: Re: Is it a bug or not a bug? Yes I'm sure they do. I don't know about good or bad, I really haven't thought about it. It does work. Mark W. Breneman wrote: Does MM officially support performing mathematical calculations between # signs? I was sorta under the impression that this was considered not a good practice. Regardless it is handy. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
why would you use 5*4 in an _expression_? I suppose the _expression_ was simplified for the sake of the demonstration, from a more complicated algorithm. -- ___ See some cool custom tags here: http://www.contentbox.com/claude/customtags/tagstore.cfm Please send any spam to this address: [EMAIL PROTECTED] Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFMX for sale
I think that would be even worse since it's almost like the UG is selling what it received from MM for free as a promotional item, just not directly. If you want to sell it, great, go sell it on ebay where nobody knows where you got it and MM isn't paying as much attention (or are they?).I agree with earlier posters that discussion of selling items won at UG meetings (which may not even be the case here) very likely will have a negative impact on the UG contact's ability to get free stuff for them to give away as promos. My $0.02 (that's a bid!) Sam -Original Message- From: Paul Kenney [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 4:34 PM To: CF-Talk Subject: RE: CFMX for sale What if the money went back to the User Group for fun events or paid speakers? Paul Kenney [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
you cast as late as possible Exact, but whenever you cast, you cast to the type inplied by the operator, or the type expected by a function in a parameter. You NEVER cast the operator to fit one of the operands, which apparently was done here. -- ___ See some cool custom tags here: http://www.contentbox.com/claude/customtags/tagstore.cfm Please send any spam to this address: [EMAIL PROTECTED] Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFMX for sale
Yes Susan...by all means sell it if it didn't come from a user group raffle. If it did you just hurt poor Amy and Ed that are constantly defending user groups to MM...it's an uphill battle and abuse of NFR copies of software will just result in user groups raffling pens instead of software ;-) Just a heads up...nobody is pointing fingers here...just providing info Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Adrocknaphobia To: CF-Talk Sent: Tuesday, April 20, 2004 1:39 PM Subject: Re: CFMX for sale Susan, You should sell your copy guilt free. It's your copy and yours alone, what you do with it is your business. No, I'm not intrested in buying it. It's just no one else's bizness what you do with it. I think it's commendable that you offered through this list to developers who will use it to it's full potential. -adam -Original Message- From: Ryan Hartwich [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 06:18 PM To: 'CF-Talk' Subject: Re: CFMX for sale Susan, If you won the raffle via a CF or Macromedia user group, I urge you to please reconsider your sale.Sure, getting some $ for it is nice, but I'm pretty sure that MM did NOT intend for the winners to be reselling the software on the open market. If users start selling the software that MM gives us to promote the groups, we seriously run the risk of being cut off.They (our sponsors at MM) have to fight to get us the software as it is. If you are unable to use the CF software and it came from a user group, please contact your user group manager and maybe we can work out a way to swap the software for something that will be of use to you. Ryan, Kansas City CFUG Manager [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFMX for sale
ROFLMFAO ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Nathan C. Smith To: CF-Talk Sent: Tuesday, April 20, 2004 1:42 PM Subject: RE: CFMX for sale The ring cannot be used for good. -Original Message- From: Paul Kenney [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 3:34 PM To: CF-Talk Subject: RE: CFMX for sale What if the money went back to the User Group for fun events or paid speakers? Paul Kenney [EMAIL PROTECTED] 916-212-4359 -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 11:24 AM To: CF-Talk Subject: Re: CFMX for sale I second Ryan's comments (being a CFUG manager myself).I also beleive that licencing of the raffled products prohibits their use for a commercial site/application (but allowed for commercial development). Of course you may ahve won it somewhere else...if so...go for it ;-) Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Ryan Hartwich To: CF-Talk Sent: Tuesday, April 20, 2004 11:18 AM Subject: Re: CFMX for sale Susan, If you won the raffle via a CF or Macromedia user group, I urge you to please reconsider your sale.Sure, getting some $ for it is nice, but I'm pretty sure that MM did NOT intend for the winners to be reselling the software on the open market. If users start selling the software that MM gives us to promote the groups, we seriously run the risk of being cut off.They (our sponsors at MM) have to fight to get us the software as it is. If you are unable to use the CF software and it came from a user group, please contact your user group manager and maybe we can work out a way to swap the software for something that will be of use to you. Ryan, Kansas City CFUG Manager _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFMX for sale
I've spoken to her, and I hope that she doesn't mind me posting this here...She did not get it via the usergroup.The software is a full commercial version, so she can sell it if she wants.Let's lay this to rest unless you are interested in purchasing the software. Cheers, Jeff Garza Manager, Phoenix CFUG [EMAIL PROTECTED] http://www.azcfug.org Certified ColdFusion MX Developer - Original Message - From: Bryan Stevenson To: CF-Talk Sent: Tuesday, April 20, 2004 1:40 PM Subject: Re: CFMX for sale Although nice I'm pretty sure it would still be illegal...Not for Resale right on all the software that has passed through my group ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Paul Kenney To: CF-Talk Sent: Tuesday, April 20, 2004 1:34 PM Subject: RE: CFMX for sale What if the money went back to the User Group for fun events or paid speakers? Paul Kenney [EMAIL PROTECTED] 916-212-4359 -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 11:24 AM To: CF-Talk Subject: Re: CFMX for sale I second Ryan's comments (being a CFUG manager myself).I also beleive that licencing of the raffled products prohibits their use for a commercial site/application (but allowed for commercial development). Of course you may ahve won it somewhere else...if so...go for it ;-) Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Ryan Hartwich To: CF-Talk Sent: Tuesday, April 20, 2004 11:18 AM Subject: Re: CFMX for sale Susan, If you won the raffle via a CF or Macromedia user group, I urge you to please reconsider your sale.Sure, getting some $ for it is nice, but I'm pretty sure that MM did NOT intend for the winners to be reselling the software on the open market. If users start selling the software that MM gives us to promote the groups, we seriously run the risk of being cut off.They (our sponsors at MM) have to fight to get us the software as it is. If you are unable to use the CF software and it came from a user group, please contact your user group manager and maybe we can work out a way to swap the software for something that will be of use to you. Ryan, Kansas City CFUG Manager [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
OT: Fireworks MX/data-driven graphics
I inherited a project today in which someone that used to work here created a batch of images using the Fireworks MX data driven graphics wizard and some xml generated using cold fusion. I was wondering if anyone knew if it was at all possible to call the functionality of that wizard via command line or some other scripting method?I would like to automate the process he had in place.I am figuring the answer is no but figured it could not hurt to ask. Thanks, Scott [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Is it a bug or not a bug?
Try #1 or true# That should return 1, not true. No, the operator is boolean, it then should return true. Someone pointed out that the value returned is the last value evaluated. In (true or 1) that is true, since it's shortcircuited. Right, the evaluation of true OR true is shortcircuited, but AFTER the operator has been checked. The operator is boolean, then the last value evaluated must be converted to a boolean before it is returned. -- ___ See some cool custom tags here: http://www.contentbox.com/claude/customtags/tagstore.cfm Please send any spam to this address: [EMAIL PROTECTED] Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]