Re: Problem with pound signs
Deleting any message with "reply" or "delay" in the body is going to cause some valid messages to be lost because both words are in common usage. Just a thought. On Mon, Aug 22, 2011 at 8:27 PM, matt busche wrote: > > I'm not 100% sure all this code will work w/ CF5, but this is what I use. The > JS is thanks to a UDF written by Ray Camden > > this code pulls all emails from an inbox and searches for anything that I've > identified as a bounceback. Then it uses the UDF to find the email and then I > add that email address to a list. This also delete out of office emails from > the inbox. > > Hopefully this helps, > Matt > > > > > > > 'MAILER-DAEMON' OR FROM CONTAINS 'Mail Delivery' OR Body CONTAINS 'Failed' OR > Body CONTAINS 'no longer with' OR Body CONTAINS 'Notice'> > > > function getEmails(str) { > var email = > "(['_a-z0-9-]+(\.['_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.(([a-z]{2,3})|(aero|coop|info|museum|name|jobs|travel)))"; > var res = ""; > var marker = 1; > var matches = ""; > > matches = > reFindNoCase(email,str,marker,marker); > > while(matches.len[1] gt 0) { > res = > listAppend(res,mid(str,matches.pos[1],matches.len[1])); > marker = matches.pos[1] + > matches.len[1]; > matches = > reFindNoCase(email,str,marker,marker); > } > return res; > } > > > > > datasource="Corporate_Production"> > INSERT INTO InvalidEmails (TextBody) > VALUES ('#Trim(k)#') > > ListPrepend(DeleteOrder, MessageNumber)> > ListAppend(Email_List,k) /> > > > > 'Out of Office'> > MessageNumber)> > CONTAINS 'Out of the Office'> > MessageNumber)> > > MessageNumber)> > > MessageNumber)> > > > > > > > messagenumber="#i#" name="deleteMail"> > > > EMAILS FOUND > > > DEL ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346954 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Loading Key from KeyStore
> Could not initialize for signing with the given key. > ks.getKey("product", That could just mean the key is not even being loaded. >> I am no expert, but it looks a little off. Is this existing/working java code you are using? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346953 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Mailing list maintenance.
I'm not 100% sure all this code will work w/ CF5, but this is what I use. The JS is thanks to a UDF written by Ray Camden this code pulls all emails from an inbox and searches for anything that I've identified as a bounceback. Then it uses the UDF to find the email and then I add that email address to a list. This also delete out of office emails from the inbox. Hopefully this helps, Matt function getEmails(str) { var email = "(['_a-z0-9-]+(\.['_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.(([a-z]{2,3})|(aero|coop|info|museum|name|jobs|travel)))"; var res = ""; var marker = 1; var matches = ""; matches = reFindNoCase(email,str,marker,marker); while(matches.len[1] gt 0) { res = listAppend(res,mid(str,matches.pos[1],matches.len[1])); marker = matches.pos[1] + matches.len[1]; matches = reFindNoCase(email,str,marker,marker); } return res; } INSERT INTO InvalidEmails (TextBody) VALUES ('#Trim(k)#') EMAILS FOUND DELETE FROM ML_EMAILS WHERE EMAIL IN (SELECT TEXTBODY FROM INVALIDEMAILS) DELETE FROM INVALIDEMAILS ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346952 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Problem with pound signs
I'm not 100% sure all this code will work w/ CF5, but this is what I use. The JS is thanks to a UDF written by Ray Camden this code pulls all emails from an inbox and searches for anything that I've identified as a bounceback. Then it uses the UDF to find the email and then I add that email address to a list. This also delete out of office emails from the inbox. Hopefully this helps, Matt function getEmails(str) { var email = "(['_a-z0-9-]+(\.['_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.(([a-z]{2,3})|(aero|coop|info|museum|name|jobs|travel)))"; var res = ""; var marker = 1; var matches = ""; matches = reFindNoCase(email,str,marker,marker); while(matches.len[1] gt 0) { res = listAppend(res,mid(str,matches.pos[1],matches.len[1])); marker = matches.pos[1] + matches.len[1]; matches = reFindNoCase(email,str,marker,marker); } return res; } INSERT INTO InvalidEmails (TextBody) VALUES ('#Trim(k)#') EMAILS FOUND DELETE FROM ML_EMAILS WHERE EMAIL IN (SELECT TEXTBODY FROM INVALIDEMAILS) DELETE FROM INVALIDEMAILS ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346951 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Mailing list maintenance.
Yes... Many ways, but the easiest would be to have them bounce into a mailbox of your choosing. You could then use CF to pop the mail and read the information that is needed to identify enough to send the query to the database to delete or do what you need to do. That is just one method, out of many... On Tue, Aug 23, 2011 at 10:47 AM, Dave Long wrote: > > I have a customer who has a modest opt-in mailing list of approx. 4,000 > subscribers that have been added to a MySQL DB via a CF enabled contact > form. Since the list pertains to a once-a-year event, he does not > utilize the list until a month or two before the event and perhaps once > or twice afterwards. As you might guess, over the year long interim, two > or three hundred addresses become invalid annually. > > Now, please don't laugh at the ignorance of my process because I'm here > to be educated. > > In order to prevent accumulation of bad e-mails, I open each individual > failure notice, bring up the attached original message, scroll to the > bottom to click the "Unsubscribe" link which activates a delete query > for that specific e-mail address, (which also displays an > acknowledgement page,) close the page, close the attachment, and > finally, delete the notice. (Whew!) Repeating this action several > hundred times is a real time waster. > > Does anyone in this illustrious group have an idea how this "house > cleaning" could be automated with ColdFusion (or otherwise)? One really > tough part of the problem is that the failure notices are not a > consistent form... various servers use varied formats. > > BTW, if it matters, I'm using a CF5 server with MySQL 3.51 on a Linux > system. > > Thanks for considering this problem. > > Dave Long > NorthGoods Merchant Services > http://www.northgoods.com > > -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346950 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Mailing list maintenance.
use www.mailchimp.com it will handle bounces for you automatically as well as lots of other cool stuff. On Tue, Aug 23, 2011 at 1:47 AM, Dave Long wrote: > > I have a customer who has a modest opt-in mailing list of approx. 4,000 > subscribers that have been added to a MySQL DB via a CF enabled contact > form. Since the list pertains to a once-a-year event, he does not > utilize the list until a month or two before the event and perhaps once > or twice afterwards. As you might guess, over the year long interim, two > or three hundred addresses become invalid annually. > > Now, please don't laugh at the ignorance of my process because I'm here > to be educated. > > In order to prevent accumulation of bad e-mails, I open each individual > failure notice, bring up the attached original message, scroll to the > bottom to click the "Unsubscribe" link which activates a delete query > for that specific e-mail address, (which also displays an > acknowledgement page,) close the page, close the attachment, and > finally, delete the notice. (Whew!) Repeating this action several > hundred times is a real time waster. > > Does anyone in this illustrious group have an idea how this "house > cleaning" could be automated with ColdFusion (or otherwise)? One really > tough part of the problem is that the failure notices are not a > consistent form... various servers use varied formats. > > BTW, if it matters, I'm using a CF5 server with MySQL 3.51 on a Linux > system. > > Thanks for considering this problem. > > Dave Long > NorthGoods Merchant Services > http://www.northgoods.com > > > > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346949 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Mailing list maintenance.
I have a customer who has a modest opt-in mailing list of approx. 4,000 subscribers that have been added to a MySQL DB via a CF enabled contact form. Since the list pertains to a once-a-year event, he does not utilize the list until a month or two before the event and perhaps once or twice afterwards. As you might guess, over the year long interim, two or three hundred addresses become invalid annually. Now, please don't laugh at the ignorance of my process because I'm here to be educated. In order to prevent accumulation of bad e-mails, I open each individual failure notice, bring up the attached original message, scroll to the bottom to click the "Unsubscribe" link which activates a delete query for that specific e-mail address, (which also displays an acknowledgement page,) close the page, close the attachment, and finally, delete the notice. (Whew!) Repeating this action several hundred times is a real time waster. Does anyone in this illustrious group have an idea how this "house cleaning" could be automated with ColdFusion (or otherwise)? One really tough part of the problem is that the failure notices are not a consistent form... various servers use varied formats. BTW, if it matters, I'm using a CF5 server with MySQL 3.51 on a Linux system. Thanks for considering this problem. Dave Long NorthGoods Merchant Services http://www.northgoods.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346948 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Loading Key from KeyStore
>> I am getting the error on "initSign". > >Can you post the actual error message and stack trace? Could not initialize for signing with the given key. The error occurred in C:\Users\vdixit\workspace\test\testConnection.cfm: line 22 20 :signature = CreateObject("java", "java.security.Signature"); 21 :signature = signature.getInstance("SHA256withRSA"); 22 :signature.initSign( ks.getKey("product", JavaCast("string", "keyPwd").toCharArray()) ); 23 : 24 : Resources: Check the ColdFusion documentation to verify that you are using the correct syntax. Search the Knowledge Base to find a solution to your problem. Browser Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20100101 Firefox/6.0 Remote Address 127.0.0.1 Referrer Date/Time 22-Aug-11 02:50 PM Stack Trace at cftestConnection2ecfm310348506.runPage(C:\Users\vdixit\workspace\test\testConnection.cfm:22) java.security.InvalidKeyException: Could not initialize for signing with the given key. at com.rsa.jsafe.provider.JS_Signature.engineInitSign(Unknown Source) at java.security.Signature$Delegate.init(Signature.java:1073) at java.security.Signature$Delegate.chooseProvider(Signature.java:1033) at java.security.Signature$Delegate.engineInitSign(Signature.java:1097) at java.security.Signature.initSign(Signature.java:480) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at coldfusion.runtime.StructBean.invoke(StructBean.java:511) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2300) at cftestConnection2ecfm310348506.runPage(C:\Users\vdixit\workspace\test\testConnection.cfm:22) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.CfmServlet.service(CfmServlet.java:175) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346947 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Loading Key from KeyStore
> I am getting the error on "initSign". Can you post the actual error message and stack trace? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346946 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Loading Key from KeyStore
I am trying to load a key from the key store and have the following code below- storePath = "c:\coldfusion8\runtime\jre\lib\security\cacerts" ; ksFile = CreateObject("java", "java.io.File").init(storepath); inputStream = CreateObject("java", "java.io.FileInputStream").init(ksFile); keyStoreClass = CreateObject("Java", "java.security.KeyStore"); ks = keyStoreClass.getInstance("JKS"); ks.load(inputStream, JavaCast("string", "changeit").toCharArray() ); ks.getKey("product", JavaCast("string", "keyPwd").toCharArray()) ; signature = CreateObject("java", "java.security.Signature"); signature = signature.getInstance("SHA256withRSA"); signature.initSign( ks.getKey("product", JavaCast("string", "keyPwd").toCharArray()) ); I am getting the error on "initSign". Now looking at the Java Code that I have, it's setting the key to privateKey and than passing to initSign method. import java.security.PrivateKey; PrivateKey key = (PrivateKey) store.getKey("product", "keyPwd".toCharArray()); How can I use CF to cast between complex objects? I was hoping something like JavaCast but obviously that wont work here. Thoughts? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346945 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CFImage and sRGB Profiles
Does the CF8 CFImage tag support ICC sRGB color profiles or does it strip the profile out. If it doesn't support it, wouldn't it be crazy for an Adobe product not to support the web sRGB standard? Thanks in advance. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346944 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: What the heck
> What am I missing here That would be quotes... isdefined('session.userid') Prepare yourself for the suggestions of changing to structKeyExists(session, 'userid') .:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Robert Harrison [mailto:rob...@austin-williams.com] Sent: Monday, August 22, 2011 1:51 PM To: cf-talk Subject: What the heck What am I missing here Element USERID is undefined in SESSION. The error occurred in C:\inetpub\wwwroot\vaughn_college_portal\_main_securecheck.cfm: line 3 1 : 2 : 3 : ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346943 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What the heck
It doesn't really matter, but I just... can't... let... it... slide. No need for a single hash in this code. On Mon, Aug 22, 2011 at 2:16 PM, Robert Harrison wrote: > > > Your comment mentions cookie .. should it be ("cookie.userid")? > > That's further down :-) > > > > > > > > > > > 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: A&W Unplugged > http://www.austin-williams.com/unplugged > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346942 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: What the heck
Is what I would do Same with Session -Original Message- From: Robert Harrison [mailto:rob...@austin-williams.com] Sent: Monday, August 22, 2011 1:16 PM To: cf-talk Subject: RE: What the heck > Your comment mentions cookie .. should it be ("cookie.userid")? That's further down :-) 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: A&W Unplugged http://www.austin-williams.com/unplugged ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346941 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: What the heck
> Your comment mentions cookie .. should it be ("cookie.userid")? That's further down :-) 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: A&W Unplugged http://www.austin-williams.com/unplugged ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346940 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: What the heck
Your comment mentions cookie .. should it be ("cookie.userid")? -Original Message- From: Robert Harrison [mailto:rob...@austin-williams.com] Sent: Monday, August 22, 2011 12:51 PM To: cf-talk Subject: What the heck What am I missing here Element USERID is undefined in SESSION. The error occurred in C:\inetpub\wwwroot\vaughn_college_portal\_main_securecheck.cfm: line 3 1 : 2 : 3 : ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346939 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What the heck
IsDefined takes a string. But you'll want to do structKeyExists instead anyway. On Mon, Aug 22, 2011 at 11:50 AM, Robert Harrison < rob...@austin-williams.com> wrote: > > What am I missing here > > Element USERID is undefined in SESSION. > The error occurred in > C:\inetpub\wwwroot\vaughn_college_portal\_main_securecheck.cfm: line 3 > 1 : > 2 : > 3 : > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346938 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: What the heck
It should be isdefined requires what you are looking for to be in quotes unless the variable name you are looking for is stored in session.userid. Steve -Original Message- From: Robert Harrison [mailto:rob...@austin-williams.com] Sent: Monday, August 22, 2011 1:51 PM To: cf-talk Subject: What the heck What am I missing here Element USERID is undefined in SESSION. The error occurred in C:\inetpub\wwwroot\vaughn_college_portal\_main_securecheck.cfm: line 3 1 : 2 : 3 : ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346937 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: What the heck
Yeah... is see that now. Thanks 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: A&W Unplugged http://www.austin-williams.com/unplugged -Original Message- From: Wil Genovese [mailto:jugg...@trunkful.com] Sent: Monday, August 22, 2011 1:53 PM To: cf-talk Subject: Re: What the heck You're missing quotes. 1 : 2 : 3 : Wil Genovese Sr. Web Application Developer/ Systems Administrator CF Webtools www.cfwebtools.com wilg...@trunkful.com www.trunkful.com On Aug 22, 2011, at 12:50 PM, Robert Harrison wrote: > > What am I missing here > > Element USERID is undefined in SESSION. > The error occurred in > C:\inetpub\wwwroot\vaughn_college_portal\_main_securecheck.cfm: line 3 > 1 : > 2 : > 3 : > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346936 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What the heck
You're missing quotes. 1 : 2 : 3 : Wil Genovese Sr. Web Application Developer/ Systems Administrator CF Webtools www.cfwebtools.com wilg...@trunkful.com www.trunkful.com On Aug 22, 2011, at 12:50 PM, Robert Harrison wrote: > > What am I missing here > > Element USERID is undefined in SESSION. > The error occurred in > C:\inetpub\wwwroot\vaughn_college_portal\_main_securecheck.cfm: line 3 > 1 : > 2 : > 3 : > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346935 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
What the heck
What am I missing here Element USERID is undefined in SESSION. The error occurred in C:\inetpub\wwwroot\vaughn_college_portal\_main_securecheck.cfm: line 3 1 : 2 : 3 : ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346934 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFScript help
Thanks all - the built in function is exactly what I needed. I am fairly new to CF so I will definitely spend time learning the functions. Thanks again. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346933 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFScript help
> Wow: LJustify(), RJustify(), and CJustify() functions. Who > woulda thunk it. Brilliant. I guess. Whenever I'm working with people relatively new to CF my number one piece of advice is to become very familiar with the function reference so you don't spend a bunch of time re-writing functions that are already built-in. I recall one new developer back in 2001 who spent nearly a day working on a function and ran into a snag. He asked me for help and after looking over his code for a moment I replaced his entire file with one line, a function CF already had which would do the same thing (getProfileString() in that case since he was trying to read and parse .ini files). Granted, the function list has grown by leaps and bounds with more recent releases so even more experienced developers may not be fully up-to-date in that area. The white-space directive in CSS isn't something I was aware of so even I am constantly learning. :) -Justin ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346932 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
(ot) Need info on attempted acquisition by MS in 1995
I'm scheduled to talk CF on a pretty big .NET podcast, and one thing that will likely come up is the idea that CF predates ASP, and likely the subject of the attempted acquisition of Allaire back in the day will come up. Does anyone know anything solid about this? I want to make sure I sound half-way knowledgeable, and the best I've come up with are: http://www.tophosts.com/articles/?3016.html http://web.archive.org/web/20031204233900/http://meet-the-makers.com/conversations/allaire/ Thanks in advance! Billy Cravens ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346931 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFScript help
Wow: LJustify(), RJustify(), and CJustify() functions. Who woulda thunk it. Brilliant. I guess. On 22 August 2011 17:37, Justin Scott wrote: > >> I'm attemping to create a function that adds spaces either >> in front of or behind a string. > > Hi Josh, a couple of things. First, ColdFusion has the LJustify(), > RJustify(), and CJustify() functions which will do exactly what you're > trying to accomplish already built in. > > Second, your function (at a glance) appears that it would work, but > when you say you're only getting one space are you referring to the > actual output, or just what you see on the browser screen after the > page has been rendered? Remember that in HTML, multiple spaces (or > other whitespace in the output code) will get truncated down to a > single space. You could wrap the output with tags to > force it to show all of the whitespace as it exists in the code, or > append the HTML character entity for a space instead ( ) to force > multiple spaces to show in the output rendering. > > > -Justin > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346930 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFScript help
just off the top of my head: function spaceFiller(cell, fill, align) { var space = RepeatString(' ', fill - Len(Cell)); return iif(align eq 'R', de(space & cell), de(cell & space)); } You may need to deal with the scenario of cell having more characters than the value of fill. Also, if you're spitting out html and want the space to be visible, use white-space:pre in the css of the containing element. On 22 August 2011 17:19, Josh Cesana wrote: > > I'm attemping to create a function that adds spaces either in front of or > behind a string. For example, I want this "test" string to have 6 spaces > after it, plus the 4 characters in "test" for a total of 10 characters. I > have an "align" variable for both left and right alignment for the spaces. So > far, the only result I get is 'test ' instead of 'test ' > > > > function spaceFiller(cell, fill, align) { > var newcell = ""; > if (len(cell) EQ 0) { > cell = " "; > } > newcell = cell; > for (i=1; i EQ len(fill - (len(cell))); i=i+1) { > if (align EQ "R") { > newcell = " " & newcell; > } else { newcell = newcell & " "; > } > > } > return (newcell); > } > > > > 10 characters - align left: '#spaceFiller("test","10","L")#' > > > The result I get is 'test ' and what I want is 'test ' > > Any help would be much appreciated - thanks in advance. > -J > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346929 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFScript help
If you're displaying this in a browser, then HTML is likely the culprit, condensing multiple spaces into just one. Use non-breaking spaces (or wrap your output in tags) to get HTML to output multiple spaces. On Mon, Aug 22, 2011 at 11:19 AM, Josh Cesana wrote: > > I'm attemping to create a function that adds spaces either in front of or > behind a string. For example, I want this "test" string to have 6 spaces > after it, plus the 4 characters in "test" for a total of 10 characters. I > have an "align" variable for both left and right alignment for the spaces. > So far, the only result I get is 'test ' instead of 'test ' > > > >function spaceFiller(cell, fill, align) { >var newcell = ""; >if (len(cell) EQ 0) { >cell = " "; >} >newcell = cell; >for (i=1; i EQ len(fill - (len(cell))); i=i+1) { >if (align EQ "R") { >newcell = " " & newcell; >} else { newcell = newcell & " "; >} > >} >return (newcell); >} > > > > 10 characters - align left: '#spaceFiller("test","10","L")#' > > > The result I get is 'test ' and what I want is 'test ' > > Any help would be much appreciated - thanks in advance. > -J > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346928 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFScript help
> I'm attemping to create a function that adds spaces either > in front of or behind a string. Hi Josh, a couple of things. First, ColdFusion has the LJustify(), RJustify(), and CJustify() functions which will do exactly what you're trying to accomplish already built in. Second, your function (at a glance) appears that it would work, but when you say you're only getting one space are you referring to the actual output, or just what you see on the browser screen after the page has been rendered? Remember that in HTML, multiple spaces (or other whitespace in the output code) will get truncated down to a single space. You could wrap the output with tags to force it to show all of the whitespace as it exists in the code, or append the HTML character entity for a space instead ( ) to force multiple spaces to show in the output rendering. -Justin ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346927 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CFScript help
I'm attemping to create a function that adds spaces either in front of or behind a string. For example, I want this "test" string to have 6 spaces after it, plus the 4 characters in "test" for a total of 10 characters. I have an "align" variable for both left and right alignment for the spaces. So far, the only result I get is 'test ' instead of 'test ' function spaceFiller(cell, fill, align) { var newcell = ""; if (len(cell) EQ 0) { cell = " "; } newcell = cell; for (i=1; i EQ len(fill - (len(cell))); i=i+1) { if (align EQ "R") { newcell = " " & newcell; } else { newcell = newcell & " "; } } return (newcell); } 10 characters - align left: '#spaceFiller("test","10","L")#' The result I get is 'test ' and what I want is 'test ' Any help would be much appreciated - thanks in advance. -J ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346926 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFLOCK QUESTION
Actually this has no longer been required since CF8. The only reason you need to lock now is in case of RACE conditions, where the variable might be read/written to at the same time. Locking wont do any harm though, it just causes the process to be single threaded, so may slow things down a little on a very busy site. On Mon, Aug 22, 2011 at 4:09 PM, Andrew Scott wrote: > > session and application should always be locked, when setting variables in > those scopes. > > > On Tue, Aug 23, 2011 at 1:07 AM, Brian McCairn >wrote: > > > > > Does session.userid need a lock? Session variables are unique to each > user > > and I guess are write once read many times. > > > > > > -- > Regards, > Andrew Scott > WebSite: http://www.andyscott.id.au/ > Google+: http://plus.google.com/108193156965451149543 > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346925 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFLOCK QUESTION
session and application should always be locked, when setting variables in those scopes. On Tue, Aug 23, 2011 at 1:07 AM, Brian McCairn wrote: > > Does session.userid need a lock? Session variables are unique to each user > and I guess are write once read many times. > > -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346924 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFLOCK QUESTION
Does session.userid need a lock? Session variables are unique to each user and I guess are write once read many times. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346923 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFLOCK QUESTION
Thanks. That's useful. 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: A&W Unplugged http://www.austin-williams.com/unplugged -Original Message- From: Andrew Scott [mailto:andr...@andyscott.id.au] Sent: Monday, August 22, 2011 11:02 AM To: cf-talk Subject: Re: CFLOCK QUESTION That is correct. Application works the same, the only difference is it is not as critical as session, as session can be hijacked and is why you want to keep them as low as possible. On Tue, Aug 23, 2011 at 12:54 AM, Robert Harrison < rob...@austin-williams.com> wrote: > > Wow. I've been writing CF since 4.0 and never understood that > correctly. I thought the session variables lasted from when they were > first set until time-out. > > Now if I'm understanding this correctly session variables timeout is > actually defining only the length of time the user can be idle... not > the length of time they are logged in. > > > 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: A&W Unplugged > http://www.austin-williams.com/unplugged > > -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346922 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFLOCK QUESTION
That is correct. Application works the same, the only difference is it is not as critical as session, as session can be hijacked and is why you want to keep them as low as possible. On Tue, Aug 23, 2011 at 12:54 AM, Robert Harrison < rob...@austin-williams.com> wrote: > > Wow. I've been writing CF since 4.0 and never understood that correctly. I > thought the session variables lasted from when they were first set until > time-out. > > Now if I'm understanding this correctly session variables timeout is > actually defining only the length of time the user can be idle... not the > length of time they are logged in. > > > 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: A&W Unplugged > http://www.austin-williams.com/unplugged > > -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346921 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFLOCK QUESTION
Wow. I've been writing CF since 4.0 and never understood that correctly. I thought the session variables lasted from when they were first set until time-out. Now if I'm understanding this correctly session variables timeout is actually defining only the length of time the user can be idle... not the length of time they are logged in. 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: A&W Unplugged http://www.austin-williams.com/unplugged ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346920 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFLOCK QUESTION
That is correct. On Tue, Aug 23, 2011 at 12:48 AM, Robert Harrison < rob...@austin-williams.com> wrote: > > > remember that when a page from a session is requested this value is > always reset back to the value you define in your application settings. > > Are you saying the each time a page is requested the session variable > timeout is reset? Sounds like that's what you are saying, > > > > 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: A&W Unplugged > http://www.austin-williams.com/unplugged > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346919 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFLOCK QUESTION
> remember that when a page from a session is requested this value is always > reset back to the value you define in your application settings. Are you saying the each time a page is requested the session variable timeout is reset? Sounds like that's what you are saying, 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: A&W Unplugged http://www.austin-williams.com/unplugged ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346918 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFLOCK QUESTION
Application variables will depend on busy the site is, and whether you are using singletons to be stored in it. So it wont matter what you set this too. Session variables is another thing, these are temporary variables based on a per session. And you wont to keep that as low as possible. Most applications survive on 20 minutes, remember that when a page from a session is requested this value is always reset back to the value you define in your application settings. On Tue, Aug 23, 2011 at 12:36 AM, Robert Harrison < rob...@austin-williams.com> wrote: > > > why do you make your application last the same value as the session > scope? Do you really need your application to be reset every 4 hours > > Good question. For now we're still adjusting the programming and I want > the application to reset more frequently until the system is more > stabilized. It's not yet released. > > Thanks > > > 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: A&W Unplugged > http://www.austin-williams.com/unplugged > > -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346917 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFLOCK QUESTION
> why do you make your application last the same value as the session scope? Do > you really need your application to be reset every 4 hours Good question. For now we're still adjusting the programming and I want the application to reset more frequently until the system is more stabilized. It's not yet released. Thanks 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: A&W Unplugged http://www.austin-williams.com/unplugged -Original Message- From: Stephane Vantroyen [mailto:s...@emakina.com] Sent: Monday, August 22, 2011 10:25 AM To: cf-talk Subject: Re: CFLOCK QUESTION It's correct, but you don't need to make it that long : timeout="20" is too long for me, timeout="5" would be really long enough (if not too long already). Something I don't get though : why do you make your application last the same value as the session scope? Do you really need your application to be reset every 4 hours? regards > I know this is a stupid question, but I still want to be sure I'm > doing this right. I have a 'Portal' which is tailored to individuals. > I'm using session.userid to identify individual users so I can do > lookups, etc. as specified in their various profiles. > > I want the session variable to last around 4 hours... this I'm using: > > sessionmanagement="Yes" sessiontimeout=#CreateTimeSpan(0,4,0,0)# > applicationtimeout=#CreateTimeSpan(0,4,0,0)#> > > When the session.userid is set I'm wrapping it in CFLOCK (like below). > Please confirm... I only need that lock to hold long enough to set the > variable (in case multiple people are logging in at the same time) and > DO NOT need it for the entire session. > > > > > > Does this look correct? > > Thanks, > Robert > > > 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: A&W Unplugged > http://www.austin-williams. com/unplugged ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346916 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFLOCK QUESTION
It's correct, but you don't need to make it that long : timeout="20" is too long for me, timeout="5" would be really long enough (if not too long already). Something I don't get though : why do you make your application last the same value as the session scope? Do you really need your application to be reset every 4 hours? regards > I know this is a stupid question, but I still want to be sure I'm > doing this right. I have a 'Portal' which is tailored to individuals. > I'm using session.userid to identify individual users so I can do > lookups, etc. as specified in their various profiles. > > I want the session variable to last around 4 hours... this I'm using: > > sessionmanagement="Yes" sessiontimeout=#CreateTimeSpan(0,4,0,0)# > applicationtimeout=#CreateTimeSpan(0,4,0,0)#> > > When the session.userid is set I'm wrapping it in CFLOCK (like below). > Please confirm... I only need that lock to hold long enough to set the > variable (in case multiple people are logging in at the same time) and > DO NOT need it for the entire session. > > > > > > Does this look correct? > > Thanks, > Robert > > > 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: A&W Unplugged > http://www.austin-williams. com/unplugged ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346915 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CFLOCK QUESTION
I know this is a stupid question, but I still want to be sure I'm doing this right. I have a 'Portal' which is tailored to individuals. I'm using session.userid to identify individual users so I can do lookups, etc. as specified in their various profiles. I want the session variable to last around 4 hours... this I'm using: When the session.userid is set I'm wrapping it in CFLOCK (like below). Please confirm... I only need that lock to hold long enough to set the variable (in case multiple people are logging in at the same time) and DO NOT need it for the entire session. Does this look correct? Thanks, Robert 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: A&W Unplugged http://www.austin-williams.com/unplugged ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346914 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Unhelpful cfcomponent error
What's the error? View the response in firebug to see. At a glance, my first thought would be a data type conversion issue if postal code is an int. My second would be as Russ suggested... you didn't change the return value in the CFC. .:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Kevin Parker [mailto:tras...@internode.on.net] Sent: Monday, August 22, 2011 6:41 AM To: cf-talk Subject: Unhelpful cfcomponent error Be grateful for some advice please. I am creating a form to allow users to start typing in their suburb name and it drills down on suburbs to match what they're typing so they can select the suburb of their choice. (There are about 15,000 rows in the table - its the Australian postcode list from AusPost if anyone has tackled this before). I have run the query on its own and it returns results OK. Running the script as below works fine. select Locality fromin_pcodes whereLocality like order byLocality However, what I want the list to look like is "Locality State Postcode" e.g. "Melbourne VIC 3000". I tried re-jigging it all to do this in the query but when I run it like this it returns an Internal Server error invoking the component. select Locality + ' ' + State + ' ' + Postcode AS TheCode fromin_pcodes whereLocality like order byLocality Any insight greatly appreciated please. ++ Kevin Parker Advanced Imaging e: webmas...@advancedimaging.com.au w: www.advancedimaging.com.au m: 0418 815 527 ++ http://au.linkedin.com/in/krparker ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346913 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Unhelpful cfcomponent error
first check that the query itself works. also did you remember to change the value being returned in the CFRETURN tag to -- Russ Michaels www.bluethunderinternet.com : Business hosting services & solutions www.cfmldeveloper.com: ColdFusion developer community www.michaels.me.uk : my blog www.cfsearch.com : ColdFusion search engine ** *skype me* : russmichaels ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346912 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Unhelpful cfcomponent error
Be grateful for some advice please. I am creating a form to allow users to start typing in their suburb name and it drills down on suburbs to match what they're typing so they can select the suburb of their choice. (There are about 15,000 rows in the table - its the Australian postcode list from AusPost if anyone has tackled this before). I have run the query on its own and it returns results OK. Running the script as below works fine. select Locality fromin_pcodes whereLocality like order byLocality However, what I want the list to look like is "Locality State Postcode" e.g. "Melbourne VIC 3000". I tried re-jigging it all to do this in the query but when I run it like this it returns an Internal Server error invoking the component. select Locality + ' ' + State + ' ' + Postcode AS TheCode fromin_pcodes whereLocality like order byLocality Any insight greatly appreciated please. ++ Kevin Parker Advanced Imaging e: webmas...@advancedimaging.com.au w: www.advancedimaging.com.au m: 0418 815 527 ++ http://au.linkedin.com/in/krparker ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346911 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm