Re: Total Two Field From Two Tables
Good Morning. This code works below but I'm not sure if there is a better way. Please let me know. cfquery name=Zip datasource=#request.dsn# SELECT a.zipcode, f.fdd_zip, f.fdd_name, f.fdd_state, f.fdd_id, count(f.fdd_id) AS FDCount FROM articles a, fddirectory f WHERE a.zipcode = LEFT(f.fdd_zip, 5) AND f.fdd_state = cfqueryparam value=#URL.statecodeID# cfsqltype=CF_SQL_VARCHAR GROUP BY f.fdd_name ORDER BY f.fdd_name ASC /cfquery cfquery name=Story datasource=#request.dsn# SELECT F.fdd_id, F.fdd_name, F.fdd_zip, S.statename, S.abrev FROMfddirectory F, states S WHERE F.fdd_state = cfqueryparam value=#statecodeID# cfsqltype=CF_SQL_VARCHAR AND F.fdd_state = S.abrev ORDER BY fdd_name ASC /cfquery !---Display--- cfoutput query=story #story.fdd_name# cfloop query=zip cfif story.fdd_id EQ zip.fdd_id (#NumberFormat(zip.fdcount)#) /cfif /cfloop br /cfoutput Thanks again for your time, Barry ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330767 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
cfLib - Validate Emails Webservice Custom Tag
Hello, Looking for additional ways to verify email addresses. We continue to get emails that pass normal validation but then when you go to send they fail for one reason or another. I saw this CustomTag over on cfLib and was wondering if anyone is using it regularly. http://cflib.org/udf/verifyEmail verifyEmail(emailAddress) This function validates the existence of an email address via the ValidateEmail Web Service at webservicex.net. I'm wondering how reliable this is and are there alternatives that I would also look at? Thanks, Casey ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330768 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: PCI Compliance Help
We just had a PCI Compliance scan done through SecurityMetrics and have one issue: Get in touch with your account rep and ask them to disable that specific test. It is mitigated by the fact that ColdFusion session IDs (which are sequential if you're using standard CF sessions) are only valid in the presence of a corresponding token ID which their scanner doesn't account for. Since there is a mitigating factor, they have always been able to disable that test on my scans without complaint. -Justin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330769 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: PCI Compliance Help
The fact of the matter is how can the scanning company know what cookie values you are using to track sessions unless they can see your code. They can't unless they can successfully demonstrate a session highjacking with your server. That means they are guessing. That whole bit kind of irks me. It used to irk me too, but the scans from some providers (SecurityMetrics and McAfee Secure) have been extremely thorough in my experience. They are also always adding new tests to the scans. As a result of those scanners our programming team approaches things a lot more carefully now. It engenders a more security-conscious mindset which is beneficial to all of your projects going forward. Sure, some of the things they do are annoying, but I think there is a net benefit. -Justin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330770 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cfpop and GMail
Has anyone noticed that, within the past month or so, behavior with cfpop and GMail has changed? It used to be that, if you had GMail set to Enable POP for all mail (even mail that's already been downloaded), every call to cfpop action=getall would return *all* messages in the In box. Now, it seems, calls to cfpop action=getall only return *new* messages in the In box. (You can fake it by re-selecting Enable POP for all mail which will, one time only, make it so that cfpop action=getall fetches all messages in the In box.) Anyone else seeing this? Anyone know of a workaround? -- John Bliss IT Professional @jbliss (t) / http://www.brandiandjohn.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330771 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfpop and GMail
http://mail.google.com/support/bin/answer.py?answer=86378 Under Other Issues... How do I download mail to multiple POP clients? To access your messages with multiple POP clients, use recent mode in every client to make sure that all messages are made available, rather than only to the first client to access new mail. Recent mode fetches the last 30 days of mail, regardless of whether it's been sent to another POP client already. To enable Recent mode, replace 'usern...@gmail.com' in the Username field of your POP client settings with 'recent:usern...@gmail.com' and ensure that the Leave messages on server option in your POP client is enabled. Paul -Original Message- From: John M Bliss [mailto:bliss.j...@gmail.com] Sent: Tuesday, February 16, 2010 3:02 PM To: cf-talk Subject: cfpop and GMail Has anyone noticed that, within the past month or so, behavior with cfpop and GMail has changed? It used to be that, if you had GMail set to Enable POP for all mail (even mail that's already been downloaded), every call to cfpop action=getall would return *all* messages in the In box. Now, it seems, calls to cfpop action=getall only return *new* messages in the In box. (You can fake it by re-selecting Enable POP for all mail which will, one time only, make it so that cfpop action=getall fetches all messages in the In box.) Anyone else seeing this? Anyone know of a workaround? -- John Bliss IT Professional @jbliss (t) / http://www.brandiandjohn.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330772 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Total Two Field From Two Tables
Instead of this: cfloop query=zip cfif story.fdd_id EQ zip.fdd_id (#NumberFormat(zip.fdcount)#) /cfif /cfloop Use a QofQ (Query of Queries) - it will be faster: cfquery dbtype=query name=qZipCheck SELECT fdcount FROM zip WHERE zip.fdd_id = cfqueryparam value=#story.fdd# cfsqltype=cf_sql_integer /cfquery (#NumberFormat(qZipCheck.fdcount)#) This will avoid having to loop through your zip query for every time through your story loop. Also, I assumed your fdd_id is an integer, if it's not, use cf_sql_varchar for the cfsqltype value instead. Dave -Original Message- From: Barry Mcconaghey [mailto:bmcconag...@gmail.com] Sent: Tuesday, February 16, 2010 7:53 AM To: cf-talk Subject: Re: Total Two Field From Two Tables Good Morning. This code works below but I'm not sure if there is a better way. Please let me know. cfquery name=Zip datasource=#request.dsn# SELECT a.zipcode, f.fdd_zip, f.fdd_name, f.fdd_state, f.fdd_id, count(f.fdd_id) AS FDCount FROM articles a, fddirectory f WHERE a.zipcode = LEFT(f.fdd_zip, 5) AND f.fdd_state = cfqueryparam value=#URL.statecodeID# cfsqltype=CF_SQL_VARCHAR GROUP BY f.fdd_name ORDER BY f.fdd_name ASC /cfquery cfquery name=Story datasource=#request.dsn# SELECT F.fdd_id, F.fdd_name, F.fdd_zip, S.statename, S.abrev FROMfddirectory F, states S WHERE F.fdd_state = cfqueryparam value=#statecodeID# cfsqltype=CF_SQL_VARCHAR AND F.fdd_state = S.abrev ORDER BY fdd_name ASC /cfquery !---Display--- cfoutput query=story #story.fdd_name# cfloop query=zip cfif story.fdd_id EQ zip.fdd_id (#NumberFormat(zip.fdcount)#) /cfif /cfloop br /cfoutput Thanks again for your time, Barry ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330773 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfpop and GMail
To enable Recent mode, replace 'usern...@gmail.com' in the Username field of your POP client settings with 'recent:usern...@gmail.comrecent%3ausern...@gmail.com ' Solved! Paul, the next time you're in Houston, I owe you a beer! :-) On Tue, Feb 16, 2010 at 9:08 AM, Paul Vernon paul.ver...@web-architect.co.uk wrote: http://mail.google.com/support/bin/answer.py?answer=86378 Under Other Issues... How do I download mail to multiple POP clients? To access your messages with multiple POP clients, use recent mode in every client to make sure that all messages are made available, rather than only to the first client to access new mail. Recent mode fetches the last 30 days of mail, regardless of whether it's been sent to another POP client already. To enable Recent mode, replace 'usern...@gmail.com' in the Username field of your POP client settings with 'recent:usern...@gmail.comrecent%3ausern...@gmail.com' and ensure that the Leave messages on server option in your POP client is enabled. Paul -Original Message- From: John M Bliss [mailto:bliss.j...@gmail.com] Sent: Tuesday, February 16, 2010 3:02 PM To: cf-talk Subject: cfpop and GMail Has anyone noticed that, within the past month or so, behavior with cfpop and GMail has changed? It used to be that, if you had GMail set to Enable POP for all mail (even mail that's already been downloaded), every call to cfpop action=getall would return *all* messages in the In box. Now, it seems, calls to cfpop action=getall only return *new* messages in the In box. (You can fake it by re-selecting Enable POP for all mail which will, one time only, make it so that cfpop action=getall fetches all messages in the In box.) Anyone else seeing this? Anyone know of a workaround? -- John Bliss IT Professional @jbliss (t) / http://www.brandiandjohn.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330774 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Total Two Field From Two Tables
Thanks Dave! Here is your final code: cfoutput query=story #story.fdd_name# cfquery dbtype=query name=qZipCheck SELECT fdcount FROM zip WHERE zip.fdd_id = cfqueryparam value=#story.fdd_id# cfsqltype=cf_sql_integer /cfquery cfif #qZipCheck.fdcount# GT 0 (#NumberFormat(qZipCheck.fdcount)#) /cfif br /cfoutput Awesome. Barry ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330775 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
JRun CPU spinning at 50%.
In my continuing saga to figure out what is going on with my ColdFusion server. The CPU started spinning at 50% last Thursday midday and it has not stopped in the four days since. For perspective this if for our internal web server that historically, normally operates under 5% CPU usage. Plus this is our department internal web application server for the California Department of Pesticide Regulation, thus with the Furlough last Friday, the weekend and the holiday yesterday, there was nobody here using it the last four days. But the server never wavered and sat at a steady 50% the entire time. I have taken a snapshot of the threads currently running on this server. It can be seen here along with several I took last Thursday. http://www.ilsweb.com/JRun4-stack-traces/ The only thing that I see that *might* be odd, is there is this one thread that had never changed in the last four days. Can anybody tell me if it is unusual in any way? Name: Thread-110 State: RUNNABLE Total blocked: 0 Total waited: 0 Stack trace: sun.print.Win32PrintServiceLookup.notifyPrinterChange(Native Method) sun.print.Win32PrintServiceLookup.access$100(Win32PrintServiceLookup.java:32) sun.print.Win32PrintServiceLookup$PrinterChangeListener.run(Win32PrintServiceLookup.java:302) I did some searching on this and got some hints that it might be an issue, but nothing definitive nor any concise idea what this might really mean. By the way, is there some way to tie a specific thread to a piece of code? TIA Ian ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330776 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfpop and GMail
It's yet another example of the flawed POP implementation that Google has invented... It bears no resemblance to the POP RFC documentation whatsoever! Paul -Original Message- From: John M Bliss [mailto:bliss.j...@gmail.com] Sent: Tuesday, February 16, 2010 3:14 PM To: cf-talk Subject: Re: cfpop and GMail To enable Recent mode, replace 'usern...@gmail.com' in the Username field of your POP client settings with 'recent:usern...@gmail.comrecent%3ausern...@gmail.com ' Solved! Paul, the next time you're in Houston, I owe you a beer! :-) On Tue, Feb 16, 2010 at 9:08 AM, Paul Vernon paul.ver...@web-architect.co.uk wrote: http://mail.google.com/support/bin/answer.py?answer=86378 Under Other Issues... How do I download mail to multiple POP clients? To access your messages with multiple POP clients, use recent mode in every client to make sure that all messages are made available, rather than only to the first client to access new mail. Recent mode fetches the last 30 days of mail, regardless of whether it's been sent to another POP client already. To enable Recent mode, replace 'usern...@gmail.com' in the Username field of your POP client settings with 'recent:usern...@gmail.comrecent%3ausern...@gmail.com' and ensure that the Leave messages on server option in your POP client is enabled. Paul -Original Message- From: John M Bliss [mailto:bliss.j...@gmail.com] Sent: Tuesday, February 16, 2010 3:02 PM To: cf-talk Subject: cfpop and GMail Has anyone noticed that, within the past month or so, behavior with cfpop and GMail has changed? It used to be that, if you had GMail set to Enable POP for all mail (even mail that's already been downloaded), every call to cfpop action=getall would return *all* messages in the In box. Now, it seems, calls to cfpop action=getall only return *new* messages in the In box. (You can fake it by re-selecting Enable POP for all mail which will, one time only, make it so that cfpop action=getall fetches all messages in the In box.) Anyone else seeing this? Anyone know of a workaround? -- John Bliss IT Professional @jbliss (t) / http://www.brandiandjohn.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330777 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfLib - Validate Emails Webservice Custom Tag
On Tue, Feb 16, 2010 at 2:59 PM, Casey Dougall wrote: Looking for additional ways to verify email addresses. We continue to get emails that pass normal validation but then when you go to send they fail for one reason or another. What do you consider normal validation? isValid(email, ...) ? This function validates the existence of an email address via the ValidateEmail Web Service at webservicex.net. I'm wondering how reliable this is and are there alternatives that I would also look at? You can quite easily check whether the domain name in the email address is a valid domain name. Just do a DNS lookup and see what you get back. It can be a bit more tricky to verify there are email servers for the domain, basically you need to do a lookup for the existence of MX records in DNS and if there aren't any you should check for an A record or CNAME. If none of those exist, there is no mailserver to for the domain. Anything after that requires a lot of patience and knowledge of the SMTP protocol. For example just some of the hurdles you have to pass if you want to email me: - If you email me and try the mail server with the highest or lowest priority MX record, your connection will be rejected. If you try one of the other 4 mail servers, you can connect. - If you email me, my email server will wait 12 seconds before sending the HELO message. - If you email me, your email server will get an error. Only the error code indicates that it is a temporary error and if your email server tries again after more then 5 minutes the message will get delivered. And of course nothing will catch email addresses that were valid at the time of the check, but aren't valid anymore at the time of sending the email. Jochem -- Jochem van Dieten http://jochem.vandieten.net/ ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330778 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
encrypting data questions
What encryption algorithm would be appropriate for cc data? AES or blowfish? What kind of performance hit would it have? Also, what datatype is used to store the encrypted info in the db? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330779 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: encrypting data questions
What encryption algorithm would be appropriate for cc data? AES or blowfish? What kind of performance hit would it have? We've been using Triple DES (DESEDE for the cf encryption functions) and storing it base64 encoded in a varchar field. As for performance, it depends on how many transactions you're doing. We didn't notice much of a difference, but the sites I'm using this on are not all that high volume. Haven't had any problems so far. -Justin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330780 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: encrypting data questions
Just a quick word of caution.if you don't have to store CC data DON'T. Payment processors have recurring billing options where THEY take all the risk of storing such data. If you store it and it leaks out or you get hackedyou/your client/the company you work for will be liable. Keep in mind you may have to go through a security audit if you choose to store CC data OK...warning over ;-) Cheers On Tue, 2010-02-16 at 11:49 -0500, Matthew Smith wrote: What encryption algorithm would be appropriate for cc data? AES or blowfish? What kind of performance hit would it have? Also, what datatype is used to store the encrypted info in the db? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330781 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: encrypting data questions
I'll repeat the warning about storing sensitive data in your db. If you don't have to (and there usually isn't a reason that can't be worked around) then don't do it. All of the transaction gateways I've dealt with recently (Authorize.net, Transfirst, Sage) have the ability to set up a profile for the customer on their server and then you can store the profile account info locally instead of the actual credit card. That being said, AES is a good encryption algorithm and the one I would go with by default. The downside to that is that any encryption algorithm you pick in CF means that you are going to need a key that is also accessible to CF. In most circumstances, your app server is going to be publicly reachable and that represents a security risk. That would make me suggest that you consider database-level encryption options as well as your db server should not be publicly accessible at all. MS-SQL supports database-level encryption and, as for 2008 I believe, column level encryption so that only the columns you need encrypted are encrypted. I'm not sure about other dbms encryption setups but I'm sure they exist for at least the major commercial databases. Cheers, Judah On Tue, Feb 16, 2010 at 8:49 AM, Matthew Smith chedders...@gmail.com wrote: What encryption algorithm would be appropriate for cc data? AES or blowfish? What kind of performance hit would it have? Also, what datatype is used to store the encrypted info in the d ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330782 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfLib - Validate Emails Webservice Custom Tag
Best-practice configuration of SMTP servers turns off responses to inquiries about the existence of mail users for the excellent reason that spammers use that to develop higher-quality lists of known good addresses. Of course *you* wouldn't do anything bad with a mail server that answered your most reasonable question is this a valid email address? but that is exactly the same question that spammers want to ask and so, no, it is not going to generally work. Your best bet to do further validation of an email address is to send the user an email that they have to take some action on. Baring that, a regex is about as good as you are going to get. Judah On Tue, Feb 16, 2010 at 5:59 AM, Casey Dougall ca...@uberwebsitesolutions.com wrote: Hello, Looking for additional ways to verify email addresses. We continue to get emails that pass normal validation but then when you go to send they fail for one reason or another. I saw this CustomTag over on cfLib and was wondering if anyone is using it regularly. http://cflib.org/udf/verifyEmail verifyEmail(emailAddress) This function validates the existence of an email address via the ValidateEmail Web Service at webservicex.net. I'm wondering how reliable this is and are there alternatives that I would also look at? Thanks, Casey ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330783 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF8/Vista 64 debug output not showing up
CF8 (64 bit)/Vista Professional (64 bit)/IIS7 This is my development workstation and I am using localhost. For some reason, debug output isn't showing up; I've tried any number of options in CF Administrator settings -- classic and AJAX both, to no avail. I am not using cfsetting to restrict debug output, and using cfsetting to enable debug output isn't working, either. I have ensured that both 127.0.0.1 and my ethernet IP address is assigned, still nothing. Has anyone else run into this? I've run into the same problem and this old post was the only one I've found that refers to this issue. In my case I'm running CF8 (64) on Windows 7, but having the same problem with the debug not showing up. This is my local development machine. If I dump the CGI scope, it definitely sees me as 127.0.0.1 but whether I enter that for the debug IPs or leave them completely blank - still nothing. Just wondering if you ever found a solution when you ran into this or if anyone else might have seen it before. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330784 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
transparent background drop shadow
Can anyone point me to the code to produce a drop shadowed png that has a transparent background so that it could be used on pages that have gradient backgrounds? Many thanks. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330785 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
transparent background drop shadow
Can anyone point me to the code to produce a drop shadowed png that has a transparent background so that it could be used on pages that have gradient backgrounds? Many thanks. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330786 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CF8/Vista 64 debug output not showing up
Try adding the IPv6 address or disabling IPv6. The local loopback uses it. Also look through the code for any cfsetting showdebugoutput=no -Mark Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Mary Jo Sminkey [mailto:mary...@cfwebstore.com] Sent: Tuesday, February 16, 2010 2:11 PM To: cf-talk Subject: Re: CF8/Vista 64 debug output not showing up CF8 (64 bit)/Vista Professional (64 bit)/IIS7 This is my development workstation and I am using localhost. For some reason, debug output isn't showing up; I've tried any number of options in CF Administrator settings -- classic and AJAX both, to no avail. I am not using cfsetting to restrict debug output, and using cfsetting to enable debug output isn't working, either. I have ensured that both 127.0.0.1 and my ethernet IP address is assigned, still nothing. Has anyone else run into this? I've run into the same problem and this old post was the only one I've found that refers to this issue. In my case I'm running CF8 (64) on Windows 7, but having the same problem with the debug not showing up. This is my local development machine. If I dump the CGI scope, it definitely sees me as 127.0.0.1 but whether I enter that for the debug IPs or leave them completely blank - still nothing. Just wondering if you ever found a solution when you ran into this or if anyone else might have seen it before. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330787 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Broken images in CFADMIN
In my experience this happens when your CFIDE folder is not web-accessable, but you have a mapping for CFIDE in ColdFusion. The .cfm pages are resolving becuase CF is using the mapping it has, but when IIS is asked for an image (which doesn't involve CF), the path is non-existant. You need to confirm that the CFIDE/administrator directory is actually in the web root of the IIS site you are accessing. ~Brad Same here, but I've found one solution was to create a virtual directory for the CFIDE filder for each site. larry ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330788 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: coldfusion for medical research
Hi, our company builds software with coldfusion for charitable institutions/universities who store information for medical research purposes. i understand there is a free license for educational purposes but is there a free or discounted license for this scenario? thanks From what I understand, that's something that Adobe decides on a case by case basis. if cost is critical you may want to consider Open BlueDragon or Railo. They have 90% of the cf tags with some exceptions, and can run some fairly complex apps. for instance, both CFML engines successfully ran a meta-analysis app I developed for medical researchers. hth, larry -- Larry C. Lyons web: http://www.lyonsmorris.com/lyons LinkedIn: http://www.linkedin.com/in/larryclyons -- The real problem is not whether machines think but whether men do. - B. F. Skinner - ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330789 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: coldfusion for medical research
You can always ask, but it is unlikely that they will give you free licenses. The free licenses targeted at education are for professors who are teaching students how to use ColdFusion. Unless they changed things, the free licenses are not for Universities running production servers under other contexts, such as powering departmental Web sites. The academic versions are discounted, although I would guess your company doesn't qualify for those discounts. -Mike Chabot On Mon, Feb 15, 2010 at 8:05 AM, Richard White rich...@j7is.co.uk wrote: Hi, our company builds software with coldfusion for charitable institutions/universities who store information for medical research purposes. i understand there is a free license for educational purposes but is there a free or discounted license for this scenario? thanks ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330790 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: transparent background drop shadow
Richard - Wouldn't you use Photoshop to produce this graphic? Rather than code? - Nick ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330791 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: transparent background drop shadow
Have you checked riaforge, and the popular image components: alagad, image.cfc, etcetera? I would be surprised if one of them did not already contain something like this. If not, you could adapt this example. Just make the shadow image type argb. Then get rid of the background color. That should do it. http://www.coldfusionjedi.com/index.cfm/2007/10/10/Simple-ColdFusion-8-Drop-Shadow-Example -Leigh ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330792 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: coldfusion for medical research
our company builds software with coldfusion for charitable institutions/universities who store information for medical research purposes. i understand there is a free license for educational purposes but is there a free or discounted license for this scenario? thanks You'll find it on same shelf as the free Windows Server and the free Adobe Photoshop. I think it's right above the free Laptops. :-) Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged __ Information from ESET Smart Security, version of virus signature database 4872 (20100216) __ The message was checked by ESET Smart Security. http://www.eset.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330793 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Possible switch to CFEclipse
On Mon, Feb 15, 2010 at 8:12 AM, Adrocknaphobia adrocknapho...@gmail.com wrote: This is my personal opinion, so please take it with a grain of salt, but I don't believe the shared hosting model will be around much longer. I agree with Adam. I don't speak to anywhere near as many hosting companies as he does but pretty much every one of them I've talked to in the last two years have indicated that shared hosting is a dying market and the push is toward cheap VPS options and cloud-based solutions. Besides, many hosting companies make a complete pig's ear of configuring ColdFusion in shared environments and either end up at one end of the scale where the system is so locked down it is unusable or at the other end of the scale where is it so open you're totally vulnerable to other users' stupidity (or malice). And don't get me started on the subject of people running e-commerce businesses on shared hosting accounts... ;) -- Sean A Corfield -- (904) 302-SEAN Railo Technologies US -- http://getrailo.com/ An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330794 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Hosting (was Re: Possible switch to CFEclipse)
For one specific host we discounted the cost of ColdFusion 8 by over $1M in good faith, and asked the hosting company not to charge more for CF than they do for ASP/PHP. In the end, the hosting company decided not to alter it's prices because the CF community is willing to pay the premium. Is it just me or does this seem like a fricking kick in the face to *both* Adobe and the CFML Community at large? Hmmm... what hosting company do we know of that has the resources to pull this kind of completely selfish and short-sighted BS? It's a shame you didn't mention the hosting companies name. I would love to have some place to direct my loathing. -Jordan Adrocknaphobia wrote: We are working to find an alternative way to license ColdFusion to hosting companies that is more cost effective for the smaller shops. However, it's a common misconception that the price of ColdFusion is proportionate to the cost of hosting. Hosting companies don't pay anywhere near list price. For one specific host we discounted the cost of ColdFusion 8 by over $1M in good faith, and asked the hosting company not to charge more for CF than they do for ASP/PHP. In the end, the hosting company decided not to alter it's prices because the CF community is willing to pay the premium. Can't say I really blame them, after all ColdFusion is a premium server/language compared to the the competition. This is my personal opinion, so please take it with a grain of salt, but I don't believe the shared hosting model will be around much longer. The costs of virtual private machines has been steadily dropping and cloud vendors like Amazon and Microsoft are driving costs down. Today Amazon offers a Linux AMI for as little as $40/month. Rather than spend engineering resources on a proprietary user/domain model that hosting companies would likely ignore, I'd rather remain focused on innovating ColdFusion development and try to bring a lost-cost version of CF to market that makes virtual machine hosting cheaper than shared hosting. Do you really want to spend another decade sharing a directory? If you are willing to take the risk to move to one of the clone engines, you should check out OpenBD on the Google App Engine. Free is hard to beat. ;-) -Adam On Mon, Feb 15, 2010 at 9:00 AM, Paul Alkema paulalkemadesi...@gmail.comwrote: Hey Gerald, I definitely agree with Kevin, If you're looking for a great CFML engine to run on your server and don't have the $$ for Adobe's ColdFusion, look into Railo. I develop on both and have found Railo to be very comparable to Adobe's Coldfusion. http://www.getrailo.org/index.cfm/download/#primary Paul Alkema http://www.AlkemaDesigns.com -Original Message- From: Gerald Guido [mailto:gerald.gu...@gmail.com] Sent: Sunday, February 14, 2010 11:23 PM To: cf-talk Subject: Re: Possible switch to CFEclipse While I have your attention. Could you, meaning Adobe, for the love of God and all that supports the CF community at large, put out a version of CF Server that a hosting company can use that offers some sort of user/domain based security with out us having to shell out $7500? Or in other terms: An affordable way to for us (the community) to provide Adobe ColdFusion hosting? Thanx G! On Thu, Feb 11, 2010 at 7:03 PM, Adrocknaphobia adrocknapho...@gmail.comwrote: Aptana, jQuery, ExtJS and AIR are all baked into ColdFusion Builder... with just one install. -Adam On Thu, Feb 11, 2010 at 3:16 PM, Andy Matthews li...@commadelimited.com wrote: Aptana also has a plugin which allows you to code for Adobe AIR. http://andymatthews.net/category/AIR/ andy -Original Message- From: Gerald Guido [mailto:gerald.gu...@gmail.com] Sent: Thursday, February 11, 2010 12:39 PM To: cf-talk Subject: Re: Possible switch to CFEclipse I am currently using Homesite+ for my IDE a I made that leap a couple of years ago. This is my rig that I have been tweeking for the last couple of years and the what and why of what I use for CF/Web work. One thing to remember with Eclipse. More Plugins = More ram. I also make it a habit to jack up the RAM allotted to Eclipse from 256 megs to 512 in the eclipse.ini file. This will speed things up considerably. I start off with the PHP Eclipse distro because, well, I work with PHP a lot. But even if I didn't, it has a lot of the basic tools I use for web dev. Like support for XAMPP, Mysql etc Then I add the Aptana plugin and add it's plugins for Ajax, SVN, AIR support and what ever tickles my fancy at that moment. Some people are very vocal against Aptana (I mean some people just flat out despise it) . It has a nasty habit of firing up it's start up page every time you load it. You can turn this off by going to: Window Preferences Aapata Start up page and disable the start up page If you ask me, Aptana is fantastic for working with (X)HTML, CSS, JS, Ajax, and in
Re: Possible switch to CFEclipse
And don't get me started on the subject of people running e-commerce businesses on shared hosting accounts... ;) A contract I had a couple years ago I went through a big fiasco with just this. The company was already using a shared host (a very cheap one at that) and when we told them that they needed a dedicated host, they refused at first. They nearly pulled out until I showed them how vulnerable their 100,000+ customers data was. Their log-on for their administration was not secured with SSL, they were collecting CC data along with the CCV codes into a shared database that was completely insecure. I finally proved it to them when I installed phpMyAdmin on a separate account at the host and you could login to their database using root with no password. Yes. the host had set root privileges with no password on a shared host. Needless to say this rather large website was moved to a dedicated host. -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330796 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
capturing requested html page in custom 404 cfm
We've just moved several pages on the site and the search engines have not yet updated. The host is crystaltech. I have set up a custom error page, 404.cfm. So, when the user requests, for instance, http://mysite.com/item-pages/item-1.htm /404.cfm is displayed. Is there any way that I can get the value: http://mysite.com/item-pages/item-1.htm for use in the cfm template? I looked at the cgi variables on my dev server and didn't see it. I am using apache locally and don't have a custom 404 set up. Thanks. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330797 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
can't get encrypt to work.
Following example here: http://www.petefreitag.com/item/222.cfm Application.cfm: cfif not isdefined(request.encrypt.secretkey) cfparam name=request.encrypt.secretkey default=key /cfif cfif not isdefined(request.encrypt.algorithm) cfparam name=request.encrypt.algorithm default=DESEDE /cfif cfif not isdefined(request.encrypt.encoding) cfparam name=request.encrypt.encoding default=hex /cfif test page: cfoutput cfset enc = Encrypt(test, request.encrypt.secretkey, request.encrypt.algorithm, request.encrypt.encoding) #enc# /cfoutput Getting: An error occurred while trying to encrypt or decrypt your input string: '' Can not decode string key.. This shows my syntax is correct, so I'm stumped: http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_e-g_01.html ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330798 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
webservice params best practice
I am writing a web service for the company I work at and I have a question at to how to handle a very large number of input parameters. The basic web service is this. A client will send us the search params for data they want to search and we return a result set. My question is we have around 115 (and growing) different search criteria items that can be passed into to run a search. How would you handle that? Named Value List in a single parameter? ordered CSV in a single parameter? some sort of data structure in a single parameter? 115+ single params? Ugh - I know there has to be a better way than this. Thanks, Wil Genovese One man with courage makes a majority. -Andrew Jackson A fine is a tax for doing wrong. A tax is a fine for doing well. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330799 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: can't get encrypt to work.
I think the problem is that you are not using the default CF_COMPAT algorithm and thus must use the generateSecretKey() function (passing in the type of algorithm) to generate your key. You can't just use the string key or any simple string for that matter when using a non-default algorithmmust be formatted correctlythus the call to generateSecretKey() HTH Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: br...@electricedgesystems.com web: www.electricedgesystems.com Notice: This message, including any attachments, is confidential and may contain information that is privileged or exempt from disclosure. It is intended only for the person to whom it is addressed unless expressly authorized otherwise by the sender. If you are not an authorized recipient, please notify the sender immediately and permanently destroy all copies of this message and attachments. Please consider the environment before printing this e-mail ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330800 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: capturing requested html page in custom 404 cfm
http://www.bifrost.com.au/blog/index.cfm/2006/10/18/Changed-CGIREQUESTURI-behaviour-with-CF7Apache--A-Solution http://www.bifrost.com.au/blog/index.cfm/2006/10/18/Changed-CGIREQUESTURI-behaviour-with-CF7Apache--A-Solution mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ On 17 February 2010 07:57, Matthew Smith chedders...@gmail.com wrote: We've just moved several pages on the site and the search engines have not yet updated. The host is crystaltech. I have set up a custom error page, 404.cfm. So, when the user requests, for instance, http://mysite.com/item-pages/item-1.htm /404.cfm is displayed. Is there any way that I can get the value: http://mysite.com/item-pages/item-1.htm for use in the cfm template? I looked at the cgi variables on my dev server and didn't see it. I am using apache locally and don't have a custom 404 set up. Thanks. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330801 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: can't get encrypt to work.
Bryan Beat me to it-- Another OT point to add-- You dont have to use both isDefined() and cfparam when defining your variables in the request.encrypt struct You can just use: cfparam name=request.encrypt.secretkey default=key cfparam already looks to see if the variable exists and sets it if it does not. Also, it is better and faster than isDefined() to use StructKeyExists() eg: cfif NOT StructKeyExists(request,encrypt) cfset request.encrypt = StructNew() / /cfif cfif NOT StructKeyExists(request.encrypt,secretkey) cfset request.encrypt.secretkey = myKey / /cfif -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330802 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: webservice params best practice
If the set of params is growing (i.e. changing on you) it's worth simply making the input a struct. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ On 17 February 2010 09:20, Wil Genovese jugg...@visi.com wrote: I am writing a web service for the company I work at and I have a question at to how to handle a very large number of input parameters. The basic web service is this. A client will send us the search params for data they want to search and we return a result set. My question is we have around 115 (and growing) different search criteria items that can be passed into to run a search. How would you handle that? Named Value List in a single parameter? ordered CSV in a single parameter? some sort of data structure in a single parameter? 115+ single params? Ugh - I know there has to be a better way than this. Thanks, Wil Genovese One man with courage makes a majority. -Andrew Jackson A fine is a tax for doing wrong. A tax is a fine for doing well. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330803 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: JRun CPU spinning at 50%.
You really need FusionReactor or SeeFusion to work this out properly. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ On 16 February 2010 23:43, Ian Skinner h...@ilsweb.com wrote: In my continuing saga to figure out what is going on with my ColdFusion server. The CPU started spinning at 50% last Thursday midday and it has not stopped in the four days since. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330804 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: can't get encrypt to work.
Thanks for the help. It looks like that was it. Unfortunately, now I'm getting: The key algorithm is not supported by the Security Provider you have chosen. I've tried aes, DES, CFMX_COMPAT, etc. I'm using cf 8 developer edition. Looked in administrator but didn't see anything to select a security provider. I think the problem is that you are not using the default CF_COMPAT algorithm and thus must use the generateSecretKey() function (passing in the type of algorithm) to generate your key. You can't just use the string key or any simple string for that matter when using a non-default algorithmmust be formatted correctlythus the call to generateSecretKey() HTH Cheers Bryan Stevenson B.Comm. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330805 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: can't get encrypt to work.
No, you're right. Just something I cut and pasted from the web. Haven't cleaned it up yet. Thanks, though, good eye. Bryan Beat me to it-- Another OT point to add-- You dont have to use both isDefined() and cfparam when defining your variables in the request.encrypt struct You can just use: cfparam name=request.encrypt.secretkey default=key cfparam already looks to see if the variable exists and sets it if it does not. Also, it is better and faster than isDefined() to use StructKeyExists() eg: cfif NOT StructKeyExists(request,encrypt) cfset request.encrypt = StructNew() / /cfif cfif NOT StructKeyExists(request.encrypt,secretkey) cfset request.encrypt.secretkey = myKey / /cfif -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330806 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: can't get encrypt to work.
Guess I should research a bit first. Found this: http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentationfile=0468.htm http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentationfile=0468.htmBut can't quite make sense of the syntax. trying this: cfset enc = Encrypt(test, generatesecretkey(key), DES, hex) On Tue, Feb 16, 2010 at 7:50 PM, Matthew Smith chedders...@gmail.comwrote: Thanks for the help. It looks like that was it. Unfortunately, now I'm getting: The key algorithm is not supported by the Security Provider you have chosen. I've tried aes, DES, CFMX_COMPAT, etc. I'm using cf 8 developer edition. Looked in administrator but didn't see anything to select a security provider. I think the problem is that you are not using the default CF_COMPAT algorithm and thus must use the generateSecretKey() function (passing in the type of algorithm) to generate your key. You can't just use the string key or any simple string for that matter when using a non-default algorithmmust be formatted correctlythus the call to generateSecretKey() HTH Cheers Bryan Stevenson B.Comm. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330807 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: can't get encrypt to work.
HOF had a similar discussion. http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:52757 http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:52757 -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330808 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: can't get encrypt to work.
Yes, I found that via google. Maybe I'm not understanding how to use this properly. This works: cfset enc = Encrypt(test, generatesecretkey(DES), DES, hex) But this results in different values for each one: cfset key = generatesecretkey(DES) #key#br / cfset key = generatesecretkey(DES) #key#br / cfset key = generatesecretkey(DES) #key#br / cfset key = generatesecretkey(DES) #key#br / cfset key = generatesecretkey(DES) #key#br / The plan is to encrypt something and save it in the db. Then use it later and decrypt it. If the key changes everytime, won't I be unable to decrypt? On Tue, Feb 16, 2010 at 8:04 PM, Kevin Pepperman chorno...@gmail.comwrote: HOF had a similar discussion. http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:52757 http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:52757 -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330809 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: can't get encrypt to work.
I believe it's supposed to generate a new key every time. It's sort of like a UUID, unique with each iteration. If you're encrypting, with plans to decrypt later, then you'll have to store the key as well. Perhaps in a completely separate database, with no direct connection between the two? andy -Original Message- From: Matthew Smith [mailto:chedders...@gmail.com] Sent: Tuesday, February 16, 2010 8:08 PM To: cf-talk Subject: Re: can't get encrypt to work. Yes, I found that via google. Maybe I'm not understanding how to use this properly. This works: cfset enc = Encrypt(test, generatesecretkey(DES), DES, hex) But this results in different values for each one: cfset key = generatesecretkey(DES) #key#br / cfset key = generatesecretkey(DES) #key#br / cfset key = generatesecretkey(DES) #key#br / cfset key = generatesecretkey(DES) #key#br / cfset key = generatesecretkey(DES) #key#br / The plan is to encrypt something and save it in the db. Then use it later and decrypt it. If the key changes everytime, won't I be unable to decrypt? On Tue, Feb 16, 2010 at 8:04 PM, Kevin Pepperman chorno...@gmail.comwrote: HOF had a similar discussion. http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:52757 http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:52757 -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330810 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: coldfusion for medical research
Nonprofits can get donations of windows server and adobe photoshop for a small admin fee from techsoup.org They do not offer cold fusion as a donation there. You'll find it on same shelf as the free Windows Server and the free Adobe Photoshop. I think it's right above the free Laptops. :-) ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330811 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: can't get encrypt to work.
If you're encrypting, with plans to decrypt later, then you'll have to store the key as well. Yea.. the idea is the key should be stored. If these are passwords you are encrypting, Ideally you should not store them in any way that that can be decrypted. But if you need to decrypt them, then you will need to store the keys along with the encrypted data (another table/database preferred). If you are trying to encrypt passwords, I had good luck borrowing some concepts from this code. http://github.com/virtix/cfcrypto which uses extreme HASH methods that utilize a SALT for each variable and iterates over the process 1024 times. But it may be too extreme for what you need, also the HASH is irreversible, so its only really suitable for passwords. -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330812 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: can't get encrypt to work.
This is a simplified UDF function version of Crypto.cfc that uses a salt for each password. It returns a struct that contains the hashed password, and the salt used. To verify a password against the encrypted version, you just encrypt the form post with the exact same method, but passing in the stored salt, then compare the 2 encrypted passwords. In some super security scenarios you would also have a Server key, that is unique to the application and is stored in a third spot separate from the database. This way if someone hacks your database and accesses the users salt and the encrypted data, they are still missing the Server key as well as how many times you iterated your hash. cffunction name=Crypto access=public returntype=any output=no cfargument name=password type=string / cfargument name=salt default=#GenerateSecretKey('AES')# hint=user salt added to password, then stored in the secured database / cfscript var local = structNew(); var i = 1; var iterations = 1024; var algorithm = SHA-512; local.salt = arguments.salt; local.passwordHash = hash( arguments.password arguments.salt, algorithm, 'UTF-8' ); for (i = 1; i LTE iterations; i = i + 1) { local.passwordHash = hash( local.passwordHash arguments.salt , algorithm, 'UTF-8' ); } return local; /cfscript /cffunction cfdump var=#Crypto('my3ecretPa55w0rd5trf')# / normal use (VERY SECURE as long as Salts are secured) cfset ServerSalt = 8Ru5rbpvMmNEQK5UiKKaZQ== / Server Salt stored as a permanent fixture of the application. cfdump var=#Crypto('my3ecretPa55w0rd5trf' ServerSalt)# / == (SUPER SECURE even if database is compromised) -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330813 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Can't quite figure out how to process PDF form...
Hi, all. I've got a PDF document that I've created and a visitor can complete the document online and click a submit button in the document which submits the form to a method in a processing cfc. http://localhost/holtzmanrentals/components/rentalApp.cfc?method=processPDFA pplication That seems to be working fine, but when I try to read the content of the submitted PDF in the method, I get an error: Element CONTENT is undefined in PDF. From the docs, it seems like all I need in the method to process the data submitted in the PDF is: cfpdfform source=#pdf.content# action=read result=fields / cfdump var=#fields# However, that's causing the error. This is my first attempt trying to use an online PDF form, so I'm not understanding something. Also, this PDF is a document that was created as a regular PDF, then form fields were added using Foxit Phantom PDF software. It's not a PDF form created using CF code. Would someone point out what I'm missing? Thanks! Rick --- Those who hammer their guns into plows will plow for those who do not. - Thomas Jefferson ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330814 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF8/Vista 64 debug output not showing up
Try adding the IPv6 address or disabling IPv6. The local loopback uses it. Also look through the code for any cfsetting showdebugoutput=no Thanks for the ideasdefinitely nothing in the code that is turning the debug off, that was the first thing I checked. ;-) I was going to try your other suggestion, but now CF isn't even starting up properly. The server log indicates that everything started up fine, but windows thinks otherwise and manually starting it gives the same result. So I think at this point, I'm going to try reinstalling and see if that clears the issues up. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330815 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF8/Vista 64 debug output not showing up
I know its the obvious, but Vista has many ways of preventing services from accessing critical processes, make sure the built in Firewall is not blocking the ports or the JVM. I have seen instances in Vista where something will change, and the firewall will suddenly be blocking it-- where it was allowing it before. And the only way to fix it was to remove the existing rules and have it prompt you again. Sometimes a firewall warning will not focus the window to the top where you actually see it, and it can be missed very easy-- if ignored, it blocks by default. -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330816 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Can't quite figure out how to process PDF form...
There are different ways to submit forms. POST, fdf, as pdf, etcetera. How is your form being submitted? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330817 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4