Re: Internationalization of Week() function in CF - Last resort to Java [spamtrap heur] [spamtrap bayes][spamtrap heur]
On 12/23/2010 1:12 PM, denstar wrote: You deal with it a lot. I dabble, and went to a nifty presentation on Joda, so... works for me. =) but joda has no functionality for using locales nor for figuring out week start days, etc based on locales. can't see how it would work for anybody in this case. ~| 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:340241 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Internationalization of Week() function in CF - Last resort to Java [spamtrap heur] [spamtrap bayes][spamtrap heur]
On Thu, Dec 23, 2010 at 1:06 AM, Paul Hastings wrote: On 12/23/2010 1:12 PM, denstar wrote: You deal with it a lot. I dabble, and went to a nifty presentation on Joda, so... works for me. =) but joda has no functionality for using locales nor for figuring out week start days, etc based on locales. can't see how it would work for anybody in this case. You can plop the locale stuff in there as your own Chronology, to say, have a week start on Sunday instead of Monday, neh? Or maybe just do a minus-1 somewhere? It goes by the ISO deal, I guess, natively. Which I think was part of the purpose of it... The nifty bits, as I recall from the presentation, had more to do with doing math on/with dates, and the use of static, which avoids a bunch of messy stuff you can get into with the normal stuff like Calendar. I don't really remember all the details offhand, but it was a good presentation, and pointed out how odd things can get when you're not using staticly typed Calendar-thingies and whatnot. Mostly because it's easy to forget how programming can work sometimes. Like that presentation those two guys give were you look at a problem, and you're like, that looks like it would produce X!, and they're like Gotcha! It produces Z!. =) Like I said, I just dabble, so it's more of a theoretical deal for me. You work with it a lot, so I'd go by your suggestion. It was a nifty presentation though. Thought I'd mention it. =) :Den -- Vain hopes are like certain dreams of those who wake. Marcus Fabius Quintili ~| 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:340242 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Bug in CFAdmin?
Using CF 9,0,1,274733 Standard. I've set up a scheduled task in CF Admin which runs fine. When I now come back to the Scheduled Tasks page I see my task listed and right underneath CF throws the following error: 12/23/2010 10:34:24 AM is an invalid date format. (which is my current date and time) The error occurred in scheduletasks.cfm: line 497 Called from scheduletasks.cfm: line 442 Called from scheduletasks.cfm: line 419 Called from scheduletasks.cfm: line 180 Called from scheduletasks.cfm: line 1 -1 : Unable to display error's location in a CFML template. Browser Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 Remote Address 83.67.80.146 Referrerhttp://www.sharemyslides.com/CFIDE/administrator/navserver.cfm Date/Time 23-Dec-10 10:35 AM Stack Trace at cfscheduletasks2ecfm231417246._factor22(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:497) at cfscheduletasks2ecfm231417246._factor24(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:442) at cfscheduletasks2ecfm231417246._factor30(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:419) at cfscheduletasks2ecfm231417246._factor31(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:180) at cfscheduletasks2ecfm231417246.runPage(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:1) coldfusion.runtime.locale.CFLocaleDateFormatException: 12/23/2010 10:34:24 AM is an invalid date format. at coldfusion.util.DateUtils.formatDate(DateUtils.java:758) at coldfusion.runtime.CFPage.LSDateFormat(CFPage.java:1622) at coldfusion.runtime.CFPage.LSDateFormat(CFPage.java:1615) at cfscheduletasks2ecfm231417246._factor22(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:497) at cfscheduletasks2ecfm231417246._factor24(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:442) at cfscheduletasks2ecfm231417246._factor30(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:419) at cfscheduletasks2ecfm231417246._factor31(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:180) at cfscheduletasks2ecfm231417246.runPage(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:381) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) 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.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:200) 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) Not sure what to make of this. Regards, Stefan
Re: Internationalization of Week() function in CF - Last resort to Java [spamtrap heur] [spamtrap bayes][spamtrap heur]
On 12/23/2010 5:01 PM, denstar wrote: You can plop the locale stuff in there as your own Chronology, to say, have a week start on Sunday instead of Monday, neh? Or maybe just do a minus-1 somewhere? geez, that's like going back to cf5 where you have to know everything about locales yourself handle stuff like this yourself. core java locale data is ok (though it often takes years to fix simple stuff like pt_BR currency format), icu4j is better. and you know, oracle owns core java. so neh. or Ni if you prefer. ~| 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:340244 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Care to Beta test new ColdFusion Exception Manager App?
Cool App Den, this is how I handle errors so I know it works, very useful to put it in an app That everyone else can use. What I also do is dump all the errors to a daily log file as well, this logfile is HTML and easy to read in the browser for the developer. I find this works better than using CFLOG which isn't really that helpful. Russ -Original Message- From: denstar [mailto:valliants...@gmail.com] Sent: 23 December 2010 04:24 To: cf-talk Subject: Re: Care to Beta test new ColdFusion Exception Manager App? On Wed, Dec 22, 2010 at 3:57 PM, Saman Jayasekara wrote: I just posted Kakapo: Enhanced ColdFusion Exception/error Manager App. Care to Beta test anyone? http://cflove.org/2010/11/coldfusion-error-handler.cfm Seems nifty! No time to test ATM, but does it have a throttle, so you don't accidentally DoS yourself? :Den -- Though ambition in itself is a vice, yet it is often the parent of virtues. Marcus Fabius Quintilian ~| 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:340245 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CF 8.01 Services freezing up
That certainly seems odd. Try restarting CF and IIS as well Russ -Original Message- From: David Moore [mailto:dgmoor...@hotmail.com] Sent: 23 December 2010 00:42 To: cf-talk Subject: Re: CF 8.01 Services freezing up Stopping these services should not stop your websites working, at worst it would result in database errors on those sites saying they were unable to connect to the database, but if the website completely stops working then there is some other issue at work here. What EXACTLY happens to the site, what is the message you get in your browser. All but two of my website apps use Access with Unicode that I set up using the datasources interface in CF Admin. The websites that have maintain connections hang and timeout. Ones that don't have the maintain connections selected come right up. Sorry about repeating some information, I just want to make sure I am being clear. David Moore UpstateWeb, LLC ~| 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:340246 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Bug in CFAdmin?
Can't speak to the error but you may want to make your administrator be not publicly accessible. http://www.sharemyslides.com/CFIDE/administrator/ Generally a good idea but specifically because of stuff like this http://www.procheckup.com/vulnerability_manager/vulnerabilities/pr10-07 http://www.adobe.com/support/security/bulletins/apsb10-18.html - Gabriel On Thu, Dec 23, 2010 at 5:37 AM, Stefan Richter ste...@flashcomguru.comwrote: Using CF 9,0,1,274733 Standard. I've set up a scheduled task in CF Admin which runs fine. When I now come back to the Scheduled Tasks page I see my task listed and right underneath CF throws the following error: 12/23/2010 10:34:24 AM is an invalid date format. (which is my current date and time) The error occurred in scheduletasks.cfm: line 497 Called from scheduletasks.cfm: line 442 Called from scheduletasks.cfm: line 419 Called from scheduletasks.cfm: line 180 Called from scheduletasks.cfm: line 1 -1 : Unable to display error's location in a CFML template. Browser Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 Remote Address 83.67.80.146 Referrer http://www.sharemyslides.com/CFIDE/administrator/navserver.cfm Date/Timehttp://www.sharemyslides.com/CFIDE/administrator/navserver.cfm%0ADate/Time 23-Dec-10 10:35 AM Stack Trace at cfscheduletasks2ecfm231417246._factor22(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:497) at cfscheduletasks2ecfm231417246._factor24(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:442) at cfscheduletasks2ecfm231417246._factor30(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:419) at cfscheduletasks2ecfm231417246._factor31(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:180) at cfscheduletasks2ecfm231417246.runPage(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:1) coldfusion.runtime.locale.CFLocaleDateFormatException: 12/23/2010 10:34:24 AM is an invalid date format. at coldfusion.util.DateUtils.formatDate(DateUtils.java:758) at coldfusion.runtime.CFPage.LSDateFormat(CFPage.java:1622) at coldfusion.runtime.CFPage.LSDateFormat(CFPage.java:1615) at cfscheduletasks2ecfm231417246._factor22(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:497) at cfscheduletasks2ecfm231417246._factor24(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:442) at cfscheduletasks2ecfm231417246._factor30(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:419) at cfscheduletasks2ecfm231417246._factor31(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:180) at cfscheduletasks2ecfm231417246.runPage(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:381) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) 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.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:200) 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
Re: Bug in CFAdmin?
Thanks, I'm aware of the implications of having the CF Admin public. Stefan On 23 Dec 2010, at 13:32, Dorioo wrote: Can't speak to the error but you may want to make your administrator be not publicly accessible. http://www.sharemyslides.com/CFIDE/administrator/ Generally a good idea but specifically because of stuff like this http://www.procheckup.com/vulnerability_manager/vulnerabilities/pr10-07 http://www.adobe.com/support/security/bulletins/apsb10-18.html - Gabriel On Thu, Dec 23, 2010 at 5:37 AM, Stefan Richter ste...@flashcomguru.comwrote: Using CF 9,0,1,274733 Standard. I've set up a scheduled task in CF Admin which runs fine. When I now come back to the Scheduled Tasks page I see my task listed and right underneath CF throws the following error: 12/23/2010 10:34:24 AM is an invalid date format. (which is my current date and time) The error occurred in scheduletasks.cfm: line 497 Called from scheduletasks.cfm: line 442 Called from scheduletasks.cfm: line 419 Called from scheduletasks.cfm: line 180 Called from scheduletasks.cfm: line 1 -1 : Unable to display error's location in a CFML template. Browser Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 Remote Address 83.67.80.146 Referrer http://www.sharemyslides.com/CFIDE/administrator/navserver.cfm Date/Timehttp://www.sharemyslides.com/CFIDE/administrator/navserver.cfm%0ADate/Time 23-Dec-10 10:35 AM Stack Trace at cfscheduletasks2ecfm231417246._factor22(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:497) at cfscheduletasks2ecfm231417246._factor24(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:442) at cfscheduletasks2ecfm231417246._factor30(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:419) at cfscheduletasks2ecfm231417246._factor31(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:180) at cfscheduletasks2ecfm231417246.runPage(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:1) coldfusion.runtime.locale.CFLocaleDateFormatException: 12/23/2010 10:34:24 AM is an invalid date format. at coldfusion.util.DateUtils.formatDate(DateUtils.java:758) at coldfusion.runtime.CFPage.LSDateFormat(CFPage.java:1622) at coldfusion.runtime.CFPage.LSDateFormat(CFPage.java:1615) at cfscheduletasks2ecfm231417246._factor22(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:497) at cfscheduletasks2ecfm231417246._factor24(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:442) at cfscheduletasks2ecfm231417246._factor30(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:419) at cfscheduletasks2ecfm231417246._factor31(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:180) at cfscheduletasks2ecfm231417246.runPage(E:\cf9_updates_rc\cfusion\wwwroot\CFIDE\administrator\scheduler\scheduletasks.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:381) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) 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.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:200) 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
Re: Webservice error after CF 8.01 update
Hi Mack, Just wondering if you filed this as a bug. Brook, It's bug 85391. -- Mack ~| 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:340249 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Bug in CFAdmin?
I had an error like this once. I copy and pasted the date to another program (I don't remember which it was a long time ago) and it showed me I had a high character that displayed as a blank. I wiped out the field and re-entered the date. The problem went away. Steve Sent from my iPhone ~| 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:340250 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Bug in CFAdmin?
Thanks Steve. The problem I have is that this is in CF Admin after simply navigating to the scheduled tasks page. I'm not sure where this date comes from or why and it's certainly not based on user input either. Regards, Stefan On 23 Dec 2010, at 14:09, Steven Durette wrote: I had an error like this once. I copy and pasted the date to another program (I don't remember which it was a long time ago) and it showed me I had a high character that displayed as a blank. I wiped out the field and re-entered the date. The problem went away. Steve Sent from my iPhone ~| 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:340251 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Internationalization of Week() function in CF - Last resort to Java [spamtrap heur]
Paul, Thanks! Your suggestions are very helpful. I'm trying to implement them. I ran your getAvailableLocales() code sample, adding cal.getMinimalDaysInFirstWeek(), and it confirms that all of Europe seems to be on the ISO calender system, with Monday as the first day of the week and a minimum of 4 days in the first week of the year. My experience here in Europe is that many businesses use the week system in communications to arrange meetings. For instance, I just received an email seeking to schedule a meeting asking How does week 04 or 05 look like? I've been trying to figure out how to set and use the locale, as you suggest. Here's what I've come up with so far: cfscript function LocaleWeek(inputDateObj) { var loc = createObject(java,java.util.Locale).init('it','CH'); var calObj = CreateObject(java,java.util.Calendar); var c = calObj.getInstance(loc); c.setTimeInMillis(inputDateObj.getTime()); return c.get(c.WEEK_OF_YEAR); } /cfscript What I would like would be to pull the language and country information from the currently set ColdFusion locale. Do you have a handy way to accomplish that? Or would a UDF like this need to pass the two letter country and language codes into the function? Thanks again, Nando On Wed, Dec 22, 2010 at 6:19 PM, Paul Hastings p...@sustainablegis.comwrote: On 12/22/2010 8:41 PM, Nando wrote: numbers are often used in calenders and agendas. A question such as Can we arrange a meeting during week 43? can be rather common. The question, for actually i think that's rather an uncommon datepart to use. in fact in all my years nobody's ever asked for that functionality. furthermore the ISO calendar is not universal, it won't work in the US/Canada in most arabic countries for instance. week starts are *locale* based. but anyways, see below. Long story short, I eventually solved this, as a last resort, by dropping down to Java. I'm an absolute novice at Java and wanted to ask if anyone java is not an uncommon solution to i18n problems in cf. you can short circuit this var inputDate = DateFormat(inputDateObj,-mm-dd); var formatter = CreateObject(java,java.text.SimpleDateFormat).init(-MM-dd); var theDate = formatter.parse(inputDate); to this: cfscript function ISOWeek(inputDateObj) { c = CreateObject(java,java.util.Calendar).getInstance(); c.setTimeInMillis(arguments.inputDateObj.getTime()); c.setFirstDayOfWeek(c.MONDAY); c.setMinimalDaysInFirstWeek(4); return c.get(c.WEEK_OF_YEAR); } /cfscript bit of advice, rather than do it this way you might want to think about simply supplying timezone and locale arguments to the calendar getInstance() method. see this snippet: cfscript locales=createObject(java,java.util.Locale).getAvailableLocales(); calObj=createObject(java,java.util.Calendar); for (i=1; i LTE arrayLen(locales); i=i+1) { cal=calObj.getInstance(locales[i]); writeoutput(#locales[i].getDisplayName()# (#locales[i].toString()#) 1st day of week:=#cal.getFirstDayOfWeek()#br); writeoutput(#locales[i].getDisplayName()# (#locales[i].toString()#) 1st day of week:=#cal.getFirstDayOfWeek()#br); } /cfscript supplying a user's locale will ensure you get their week numbers correct without having to resort to universalities that aren't. final bit of advice, if you want to get the best/latest locale data, use the icu4j lib instead of core java. ~| 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:340252 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Bug in CFAdmin?
If you go into the details of the scheduled task and wipe out and reenter the date. I ended up doing each one until I got the one that caused the error in cfadmin. It was one of the entries that showed up before the error. If I remember correctly I had two of them. Fixed one then got more tasks listed. Then went through those until I found the other one. Then the error went away. Sent from my iPhone On Dec 23, 2010, at 10:08 AM, Stefan Richter ste...@flashcomguru.com wrote: Thanks Steve. The problem I have is that this is in CF Admin after simply navigating to the scheduled tasks page. I'm not sure where this date comes from or why and it's certainly not based on user input either. Regards, Stefan On 23 Dec 2010, at 14:09, Steven Durette wrote: I had an error like this once. I copy and pasted the date to another program (I don't remember which it was a long time ago) and it showed me I had a high character that displayed as a blank. I wiped out the field and re-entered the date. The problem went away. Steve Sent from my iPhone ~| 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:340253 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Bug in CFAdmin?
On Thu, Dec 23, 2010 at 8:43 AM, Stefan Richter ste...@flashcomguru.com wrote: Thanks, I'm aware of the implications of having the CF Admin public. What, and you don't care? Best solution (IMO) and pretty painless to implement - just disable anonymous access to the administrator folder either in IIS or using .htaccess with Apache. You can still access it from anywhere you want but you don't have to worry so much about being hacked. (unlessy ou truly don't care about running an insecure server) Rick ~| 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:340254 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Variable Scoping in CF8, CF9
I know that correctly scoping variables in ColdFusion is important to prevent unexpected results if a variable is accidentally reused elsewhere in a CFC. But, if I remember correctly, in CFMX there were some pretty nasty memory leaks that could occur if variables weren't scoped correctly. Does that apply to newer (8,9) versions of ColdFusion? - Matthew ~| 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:340255 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Variable Scoping in CF8, CF9
On Thu, Dec 23, 2010 at 10:16 AM, Matthew Reinbold matthew.reinb...@voxpopdesign.com wrote: I know that correctly scoping variables in ColdFusion is important to prevent unexpected results if a variable is accidentally reused elsewhere in a CFC. But, if I remember correctly, in CFMX there were some pretty nasty memory leaks that could occur if variables weren't scoped correctly. Does that apply to newer (8,9) versions of ColdFusion? Yup. All function-local variables in a CFC should be var scoped. CF 9 did introduce the local scope inside of CFC methods, so doing this: cffunction name=myFunction cfset local.myVariable = foo / /cffunction is functionally equivalent to doing: cffunction name=myFunction cfset var myVariable = foo / /cffunction So while there are now 2 ways to declare a variable as local to a given function (assuming you're on CF 9), the requirement still remains that you do need to scope these variables properly in order to avoid leakage. -- Charlie Griefer http://charlie.griefer.com/ I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success. ~| 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:340256 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Bug in CFAdmin?
Best solution (IMO) and pretty painless to implement - just disable anonymous access to the administrator folder either in IIS or using .htaccess with Apache. You can still access it from anywhere you want but you don't have to worry so much about being hacked. (unlessy ou truly don't care about running an insecure server) With IIS, you may have to do a bit more than simply make the folder unavailable through anonymous access, as the ISAPI filter installed by CF will automatically respond to any URL containing /CFIDE/administrator/index.cfm, whether that actually resolves or not! Details on how to prevent this are in the CF 9 Lockdown Guide on the Adobe site. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsit ~| 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:340257 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Variable Scoping in CF8, CF9
On Thu, Dec 23, 2010 at 9:16 AM, Matthew Reinbold matthew.reinb...@voxpopdesign.com wrote: I know that correctly scoping variables in ColdFusion is important to prevent unexpected results if a variable is accidentally reused elsewhere in a CFC. But, if I remember correctly, in CFMX there were some pretty nasty memory leaks that could occur if variables weren't scoped correctly. Hmm, it wasn't related to memory leaks so much as thread safety - which applies to all versions of all CFML engines when you're using CFCs stored in scopes that are shared between multiple requests and it's much the same problem you have sharing data between requests anyway (it's just easier to trip over with the implicit, shared, VARIABLES scope in CFCs). -- Sean A Corfield -- (904) 302-SEAN Railo Technologies, Inc. -- http://getrailo.com/ An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| 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:340258 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Bug in CFAdmin?
Thanks, I'm aware of the implications of having the CF Admin public. What, and you don't care? Hehe I did not say that. Yes, you are right for slapping my wrists but this is a VM which I'm in the process of clearing out and shutting down so it's just not that high on my priority list. I usually make a bit more of an effort. Cheers Stefan Best solution (IMO) and pretty painless to implement - just disable anonymous access to the administrator folder either in IIS or using .htaccess with Apache. You can still access it from anywhere you want but you don't have to worry so much about being hacked. (unlessy ou truly don't care about running an insecure server) Rick ~| 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:340259 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Bug in CFAdmin?
Thanks, deleting and re-entering the task fixed it. Cheers Stefan On 23 Dec 2010, at 16:15, Steven Durette wrote: If you go into the details of the scheduled task and wipe out and reenter the date. I ended up doing each one until I got the one that caused the error in cfadmin. It was one of the entries that showed up before the error. If I remember correctly I had two of them. Fixed one then got more tasks listed. Then went through those until I found the other one. Then the error went away. ~| 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:340260 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Bug in CFAdmin?
Booo I spoke too soon. It worked once or twice when I went back into scheduled tasks but now it's back. :-/ Stefan On 23 Dec 2010, at 21:41, Stefan Richter wrote: Thanks, deleting and re-entering the task fixed it. Cheers Stefan On 23 Dec 2010, at 16:15, Steven Durette wrote: If you go into the details of the scheduled task and wipe out and reenter the date. I ended up doing each one until I got the one that caused the error in cfadmin. It was one of the entries that showed up before the error. If I remember correctly I had two of them. Fixed one then got more tasks listed. Then went through those until I found the other one. Then the error went away. ~| 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:340261 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Bug in CFAdmin?
On Thu, Dec 23, 2010 at 2:24 PM, Dave Watts dwa...@figleaf.com wrote: With IIS, you may have to do a bit more than simply make the folder unavailable through anonymous access, as the ISAPI filter installed by CF will automatically respond to any URL containing /CFIDE/administrator/index.cfm, whether that actually resolves or not! Yeah, but that also means you rely on blocking requests at the server level when this could be blocked at firewall, why waste local resources on it. ~| 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:340262 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Bug in CFAdmin?
Ah I can now see where the supposedly wrong date format comes from. It's the value of the 'Last run' column for the task. Hmmm not sure how I could possibly fox that since it is CF that generates that date every time the task runs... But why would it think that 12/23/2010 9:45:24 PM is a wrong date format anyway? Looks like a date (and time) to me. Stefan On 23 Dec 2010, at 21:41, Stefan Richter wrote: Thanks, deleting and re-entering the task fixed it. Cheers Stefan On 23 Dec 2010, at 16:15, Steven Durette wrote: If you go into the details of the scheduled task and wipe out and reenter the date. I ended up doing each one until I got the one that caused the error in cfadmin. It was one of the entries that showed up before the error. If I remember correctly I had two of them. Fixed one then got more tasks listed. Then went through those until I found the other one. Then the error went away. ~| 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:340263 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Internationalization of Week() function in CF - Last resort to Java [spamtrap heur]
On 12/23/2010 11:11 PM, Nando wrote: adding cal.getMinimalDaysInFirstWeek(), and it confirms that all of Europe seems to be on the ISO calender system, with Monday as the first day of the week and a minimum of 4 days in the first week of the year. another piece of advice, don't hardwire if you don't have to. the minute you hardwire the function/app for european locales is the minute that the client tells you his cousin has opened a shop in montreal you need to support en_CA, fr_CA locales too. My experience here in Europe is that many businesses use the week system in communications to arrange meetings. For instance, I just received an email seeking to schedule a meeting asking How does week 04 or 05 look like? as i said but anyways What I would like would be to pull the language and country information from the currently set ColdFusion locale. Do you have a handy way to accomplish that? Or would a UDF like this need to pass the two letter country and language codes into the function? if your app is already setting the locale somehow (user choice, geoLocation, etc.) that would be the best way. we have a geoLocation CFC but it's ip db is woefully out of date (that bit is maintained by a dirty perl programmer ;-) and passing in locale AND timezone would make that a function *i'd* use. for locales that cf *didn't* support prior to cf7 using getLocale() will get you a core java locale ID, th_TH, etc. which is easy to parse (treat it as a list delimited by _). the problem is locales that cf *did* support prior to cf7, which will return the goofy cf locale names, English (US) (in fact the old cf locales are duplicated with their new core java locales, ie in the server scope supported locales you'll see both English (US) en_US). since there aren't too many of these are static, i guess create a structure using those old locale names as keys do a structFind on it if the locale returned by getLocale() doesn't contain a _ or something like that. ~| 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:340264 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF 9.01 S3:// not working
I am having this same problem. But I am pretty sure my server is running the latest update: Version: 9,0,1,274733 Could anything else cause this. I have restarted the app and see the s3 variables in there using application.getApplicationSettings(). --- David Mineer Jr - The critical ingredient is getting off your butt and doing something. It's as simple as that. A lot of people have ideas, but there are few who decide to do something about them now. Not tomorrow. Not next week. But today. The true entrepreneur is a doer. ~| 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:340265 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm