Re: [cfaussie] Re: cfchart
It's a great resource Charlie - a hidden GEM! Cheers! Peter Tilbrook Web Administrator, The Club Group Pty. Ltd. Managing Director, ColdGen Internet Solutions Professional Adobe ColdFusion 9 Application Development President, ACT and Region ColdFusion Users Group PO Box 2247 Queanbeyan, NSW, 2620 AUSTRALIA Tel: +61-2-6104-9981 Mob: +61-2-0457-449-016 Email Address: pe...@coldgen.com WWW: http://www.coldgen.com/ WWW2: http://www.clubgroup.com.au/ Twitter: @ColdGen ABN: 80 826 226 128 On 15 February 2012 16:25, charlie arehart charlie_li...@carehart.org wrote: Thanks. Yep, I just will keep repeating it when such questions arise until others do. :-) I'll be honest and say I'm bummed how infrequently anyone does. I have nothing to gain from people using the site. It's just a resource (actively updated) for everyone to benefit from, specifically when questions like this arise. Please try to pass it along when appropriate, folks. :-) Or let me know why perhaps you may not want to even if you would think of it. /charlie -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Andrew Sent: Tuesday, February 14, 2012 7:14 PM To: cfaussie Subject: [cfaussie] Re: cfchart Thanks Charlie. One day I'll learn to stop off at your site *first*. It usually has the answers I need! -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] Re: cfchart
Thanks, Brett. That's an.interesting.way to look at it. :-) I suppose I see that benefit. And if at least others did mention it when such questions came up, I'd be happy to see that. Otherwise it seems I'm usually the only one (on this and other lists), even when I wait a couple of days to see if anyone else does. That's a bit disheartening-and may even make some think that no one else knows or cares about it. I appreciate your (and Peter's) kind regards then all the more. As for your appreciating that you hear from others offering alternatives when someone asks if there are any, I'll note this: certainly if someone asks folks to share their experience working with alternatives (not just what are alternatives), then that's when it makes sense for folks to share individual alternatives, with added opinion, since I don't offer that on the category lists. But when someone just asks, what are alternatives for x, it would just be nice to see someone point out (in addition to any they may favor) that you can find more alternatives in that category at cf411.com. :-) Not everyone reads every message in every thread, so I'm sure there are always some who would not already know about it. Thanks for letting me vent for a minute, folks. :-) /charlie From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Brett Payne-Rhodes Sent: Wednesday, February 15, 2012 1:59 AM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] Re: cfchart For myself at least there is a huge finge benefit to people NOT going directly to CF411.com and that is that I get to hear and learn about these really useful tools before I actually need them... Plus I get reminded about the site as well. Thanks for the great resource Charlie. It might not be top-of-mind but it is definitely appreciated. B) -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Re: cfchart
Am looking into using NearMap (www.nearmap.com) as opposed to the seriously out of date GoogleMaps. Sure the CFMAP tag is handy but when the building I've been working in for the last 8 months still shows up as a construction site something is seriously wrong. NearMap has an API that should be easily integrated. Peter Tilbrook Web Administrator, The Club Group Pty. Ltd. Managing Director, ColdGen Internet Solutions Professional Adobe ColdFusion 9 Application Development President, ACT and Region ColdFusion Users Group PO Box 2247 Queanbeyan, NSW, 2620 AUSTRALIA Tel: +61-2-6104-9981 Mob: +61-2-0457-449-016 Email Address: pe...@coldgen.com WWW: http://www.coldgen.com/ WWW2: http://www.clubgroup.com.au/ Twitter: @ColdGen ABN: 80 826 226 128 On 16 February 2012 07:30, charlie arehart charlie_li...@carehart.org wrote: Thanks, Brett. That’s an…interesting…way to look at it. :-) I suppose I see that benefit. And if at least others did mention it when such questions came up, I’d be happy to see that. Otherwise it seems I’m usually the only one (on this and other lists), even when I wait a couple of days to see if anyone else does. That’s a bit disheartening—and may even make some think that no one else knows or cares about it. I appreciate your (and Peter’s) kind regards then all the more. As for your appreciating that you hear from others offering alternatives when someone asks if there are any, I’ll note this: certainly if someone asks folks to share their experience working with alternatives (not just “what are alternatives”), then that’s when it makes sense for folks to share individual alternatives, with added opinion, since I don’t offer that on the category lists. But when someone just asks, “what are alternatives for x”, it would just be nice to see someone point out (in addition to any they may favor) that “you can find more alternatives in that category at cf411.com”. :-) Not everyone reads every message in every thread, so I’m sure there are always some who would not already know about it. Thanks for letting me vent for a minute, folks. :-) /charlie From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Brett Payne-Rhodes Sent: Wednesday, February 15, 2012 1:59 AM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] Re: cfchart For myself at least there is a huge finge benefit to people NOT going directly to CF411.com and that is that I get to hear and learn about these really useful tools before I actually need them... Plus I get reminded about the site as well. Thanks for the great resource Charlie. It might not be top-of-mind but it is definitely appreciated. B) -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
[cfaussie] Convert cf date to milliseconds since the epoch?
This is sort of related to my graphing question from the other day. I'm using Flot and the times need to be expressed as milliseconds since January 1, 1970 00:00:00. In Java you can call .getTime() on a function to do this. Does CF provide a simple way to either: * Convert a cf date to time in millis?; OR * Convert a cf date to a java date? I could create a new Java Calendar object and then set the various date parts, but before I write a wrapper function to do it that way I figured I'd see if I was missing something obvious? Andrew. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] Convert cf date to milliseconds since the epoch?
Why 1970? That seems a little odd. You could do DateAdd(y, 1970, yourdate) ? -Original Message- From: Andrew [mailto:am2...@gmail.com] Sent: Thursday, 16 February 2012 12:25 PM To: cfaussie Subject: [cfaussie] Convert cf date to milliseconds since the epoch? This is sort of related to my graphing question from the other day. I'm using Flot and the times need to be expressed as milliseconds since January 1, 1970 00:00:00. In Java you can call .getTime() on a function to do this. Does CF provide a simple way to either: * Convert a cf date to time in millis?; OR * Convert a cf date to a java date? I could create a new Java Calendar object and then set the various date parts, but before I write a wrapper function to do it that way I figured I'd see if I was missing something obvious? Andrew. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. === Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 9.0.0.909, Virus/Spyware Database: 6.19260) http://www.pctools.com/ === === Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 9.0.0.909, Virus/Spyware Database: 6.19260) http://www.pctools.com/ === -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
[cfaussie] Re: Convert cf date to milliseconds since the epoch?
Umm, okay this works: cfset dateNow = now() cfoutput#now.getTime()#/cfoutput Always missing the obvious! On Feb 16, 12:24 pm, Andrew am2...@gmail.com wrote: This is sort of related to my graphing question from the other day. I'm using Flot and the times need to be expressed as milliseconds since January 1, 1970 00:00:00. In Java you can call .getTime() on a function to do this. Does CF provide a simple way to either: * Convert a cf date to time in millis?; OR * Convert a cf date to a java date? I could create a new Java Calendar object and then set the various date parts, but before I write a wrapper function to do it that way I figured I'd see if I was missing something obvious? Andrew. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
[cfaussie] Re: Convert cf date to milliseconds since the epoch?
1/1/1970 is the Unix epoch date - it's pretty widely used. Obviously nothing interesting ever happened before then...? ;-) But seriously - I've always wondered how dates prior to that represented? As negative numbers? On Feb 16, 12:27 pm, Steve Onnis st...@cfcentral.com.au wrote: Why 1970? That seems a little odd. You could do DateAdd(y, 1970, yourdate) ? -Original Message- From: Andrew [mailto:am2...@gmail.com] Sent: Thursday, 16 February 2012 12:25 PM To: cfaussie Subject: [cfaussie] Convert cf date to milliseconds since the epoch? This is sort of related to my graphing question from the other day. I'm using Flot and the times need to be expressed as milliseconds since January 1, 1970 00:00:00. In Java you can call .getTime() on a function to do this. Does CF provide a simple way to either: * Convert a cf date to time in millis?; OR * Convert a cf date to a java date? I could create a new Java Calendar object and then set the various date parts, but before I write a wrapper function to do it that way I figured I'd see if I was missing something obvious? Andrew. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/cfaussie?hl=en. === Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 9.0.0.909, Virus/Spyware Database: 6.19260)http://www.pctools.com/ === === Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 9.0.0.909, Virus/Spyware Database: 6.19260)http://www.pctools.com/ === -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
[cfaussie] Re: Convert cf date to milliseconds since the epoch?
Hmm not that simple. The dates are coming from a query, and .getTime() appears not to be valid, for example: cfquery name=q datasource=ds_web_content select sysdate from dual /cfquery cfdump var=#q.sysdate# cfoutput#q.sysdate.getTime()#/cfoutput Error: The getTime method was not found. Either there are no methods with the specified method name and argument types or the getTime method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity. This doesn't work either: cfset javaDate = JavaCast(java.util.Date, q.sysdate) Error: JavaCast type java.util.Date must be one of the following types: byte, char, short, int, long, float, double, boolean, string, bigdecimal, their corresponding array representation (eg : int[]), or null. Mongrel! On Feb 16, 12:28 pm, Andrew am2...@gmail.com wrote: Umm, okay this works: cfset dateNow = now() cfoutput#now.getTime()#/cfoutput Always missing the obvious! On Feb 16, 12:24 pm, Andrew am2...@gmail.com wrote: This is sort of related to my graphing question from the other day. I'm using Flot and the times need to be expressed as milliseconds since January 1, 1970 00:00:00. In Java you can call .getTime() on a function to do this. Does CF provide a simple way to either: * Convert a cf date to time in millis?; OR * Convert a cf date to a java date? I could create a new Java Calendar object and then set the various date parts, but before I write a wrapper function to do it that way I figured I'd see if I was missing something obvious? Andrew. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] Re: Convert cf date to milliseconds since the epoch?
I wasn’t born until 1975. Maybe they should change it to start from then :) -Original Message- From: Andrew [mailto:am2...@gmail.com] Sent: Thursday, 16 February 2012 12:33 PM To: cfaussie Subject: [cfaussie] Re: Convert cf date to milliseconds since the epoch? 1/1/1970 is the Unix epoch date - it's pretty widely used. Obviously nothing interesting ever happened before then...? ;-) But seriously - I've always wondered how dates prior to that represented? As negative numbers? On Feb 16, 12:27 pm, Steve Onnis st...@cfcentral.com.au wrote: Why 1970? That seems a little odd. You could do DateAdd(y, 1970, yourdate) ? -Original Message- From: Andrew [mailto:am2...@gmail.com] Sent: Thursday, 16 February 2012 12:25 PM To: cfaussie Subject: [cfaussie] Convert cf date to milliseconds since the epoch? This is sort of related to my graphing question from the other day. I'm using Flot and the times need to be expressed as milliseconds since January 1, 1970 00:00:00. In Java you can call .getTime() on a function to do this. Does CF provide a simple way to either: * Convert a cf date to time in millis?; OR * Convert a cf date to a java date? I could create a new Java Calendar object and then set the various date parts, but before I write a wrapper function to do it that way I figured I'd see if I was missing something obvious? Andrew. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/cfaussie?hl=en. === Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 9.0.0.909, Virus/Spyware Database: 6.19260)http://www.pctools.com/ === === Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 9.0.0.909, Virus/Spyware Database: 6.19260)http://www.pctools.com/ === -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. === Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 9.0.0.909, Virus/Spyware Database: 6.19260) http://www.pctools.com/ === === Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 9.0.0.909, Virus/Spyware Database: 6.19260) http://www.pctools.com/ === -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Re: Convert cf date to milliseconds since the epoch?
I think I'll just do what i was initially trying to do and write a function that creates a Java date and be done with it. In fact if I'd have stopped whining and just written the damn thing id be on to the next problem by now :) On 16/02/2012, at 12:43 PM, Steve Onnis st...@cfcentral.com.au wrote: CreateDate() ? -Original Message- From: Andrew [mailto:am2...@gmail.com] Sent: Thursday, 16 February 2012 12:40 PM To: cfaussie Subject: [cfaussie] Re: Convert cf date to milliseconds since the epoch? Hmm not that simple. The dates are coming from a query, and .getTime() appears not to be valid, for example: cfquery name=q datasource=ds_web_content select sysdate from dual /cfquery cfdump var=#q.sysdate# cfoutput#q.sysdate.getTime()#/cfoutput Error: The getTime method was not found. Either there are no methods with the specified method name and argument types or the getTime method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity. This doesn't work either: cfset javaDate = JavaCast(java.util.Date, q.sysdate) Error: JavaCast type java.util.Date must be one of the following types: byte, char, short, int, long, float, double, boolean, string, bigdecimal, their corresponding array representation (eg : int[]), or null. Mongrel! On Feb 16, 12:28 pm, Andrew am2...@gmail.com wrote: Umm, okay this works: cfset dateNow = now() cfoutput#now.getTime()#/cfoutput Always missing the obvious! On Feb 16, 12:24 pm, Andrew am2...@gmail.com wrote: This is sort of related to my graphing question from the other day. I'm using Flot and the times need to be expressed as milliseconds since January 1, 1970 00:00:00. In Java you can call .getTime() on a function to do this. Does CF provide a simple way to either: * Convert a cf date to time in millis?; OR * Convert a cf date to a java date? I could create a new Java Calendar object and then set the various date parts, but before I write a wrapper function to do it that way I figured I'd see if I was missing something obvious? Andrew. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. === Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 9.0.0.909, Virus/Spyware Database: 6.19260) http://www.pctools.com/ === === Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 9.0.0.909, Virus/Spyware Database: 6.19260) http://www.pctools.com/ === -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
[cfaussie] Re: MAD! Melbourne Adobe Developers Meeting Feb 16 2012 StageWebView (AIR), Backbone (JS)
I'm coming. On Feb 13, 11:00 am, Peter Robertson peter.r.robert...@gmail.com wrote: StageWebView by Brendan Owen Using StageWebView integrated into an AIR application and compiled as a native App. StageWebView is the name of a class that displays the native browser of the mobile device without leaving your native App. Brendan is Digital Product Developer with Jacaranda, a division of John Wiley Sons Australia, Ltd Building Mobile Apps with Backbone Backbone brings structure to your Javascript applications by supplying models, events, collections and views that easily connect to your existing APIs over a RESTful JSON interface. See how you can develop native mobile apps with HTML5 using Backbone and PhoneGap. We'll leverage the native device storage options available through the PhoneGap Storage API to allow your app to work when offline or only occasionally connected. We'll also compare the approach taken by Backbone with other libraries such as AngularJS highlighting the strengths of each platform. Phil is an freelance developer who consults for a range of organisations delivering Web, Desktop, Mobile and Cloud based solutions. While often found using ColdFusion and Flash, more recently he has developed a range of cross platform solutions using HTML5 and PhoneGap, as well as native solutions using C++ and Objective C. Phil advocates best practice approaches to development methodologies, testing and deployment security. Date: Thursday 16 February 2012 Time: 6:30 PM Location: CogState Level 2 255 Bourke Street Melbourne, VIC, 3000 A note on the door will provide a number to ring for access. RSVP: Please reply to this post if you are planning to attend so we know how many pizzas to order. As always, many thanks to Dale Fraser and CogState for their hospitality. We look forward to seeing you all there Peter Robertson Co-Manager Melbourne Adobe Developers Steve Onnis Manager Melbourne Adobe Developers -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
[cfaussie] REMINDER: TONIGHT - MAD! Melbourne Adobe Developers Meeting Feb 16 2012 StageWebView (AIR), Backbone (JS)
For details please see: http://tinyurl.com/6m9rn32 If you haven't RSVPed, please reply to this (or the original) post. See you there! Peter Robertson Co-Manager Melbourne Adobe Developers Steve Onnis Manager Melbourne Adobe Developers -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
[cfaussie] Re: Convert cf date to milliseconds since the epoch?
Solved: cffunction name=getTimeInMillis cfargument name=dateIn type=date cfreturn arguments.dateIn.getTime() /cffunction cfquery name=q datasource=ds_web_content select sysdate from dual /cfquery cfoutput#getTimeInMillis(q.sysdate)#/cfoutput Passing it to that function seems to cast it to a date type (even though IsDate(q.sysdate) returns YES...) *grumble grumble* -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Re: Convert cf date to milliseconds since the epoch?
I think you were on the right track with .getTime() I tried your SYSDATE example and was able to get the desired result with; lsparsedatetime(qry.sysdate).getTime() I also tried casting the date in the SQL, but the above works (for SYSDATE at least) On 16/02/2012, at 13:02, Andrew Myers am2...@gmail.com wrote: I think I'll just do what i was initially trying to do and write a function that creates a Java date and be done with it. In fact if I'd have stopped whining and just written the damn thing id be on to the next problem by now :) On 16/02/2012, at 12:43 PM, Steve Onnis st...@cfcentral.com.au wrote: CreateDate() ? -Original Message- From: Andrew [mailto:am2...@gmail.com] Sent: Thursday, 16 February 2012 12:40 PM To: cfaussie Subject: [cfaussie] Re: Convert cf date to milliseconds since the epoch? Hmm not that simple. The dates are coming from a query, and .getTime() appears not to be valid, for example: cfquery name=q datasource=ds_web_content select sysdate from dual /cfquery cfdump var=#q.sysdate# cfoutput#q.sysdate.getTime()#/cfoutput Error: The getTime method was not found. Either there are no methods with the specified method name and argument types or the getTime method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity. This doesn't work either: cfset javaDate = JavaCast(java.util.Date, q.sysdate) Error: JavaCast type java.util.Date must be one of the following types: byte, char, short, int, long, float, double, boolean, string, bigdecimal, their corresponding array representation (eg : int[]), or null. Mongrel! On Feb 16, 12:28 pm, Andrew am2...@gmail.com wrote: Umm, okay this works: cfset dateNow = now() cfoutput#now.getTime()#/cfoutput Always missing the obvious! On Feb 16, 12:24 pm, Andrew am2...@gmail.com wrote: This is sort of related to my graphing question from the other day. I'm using Flot and the times need to be expressed as milliseconds since January 1, 1970 00:00:00. In Java you can call .getTime() on a function to do this. Does CF provide a simple way to either: * Convert a cf date to time in millis?; OR * Convert a cf date to a java date? I could create a new Java Calendar object and then set the various date parts, but before I write a wrapper function to do it that way I figured I'd see if I was missing something obvious? Andrew. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. === Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 9.0.0.909, Virus/Spyware Database: 6.19260) http://www.pctools.com/ === === Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 9.0.0.909, Virus/Spyware Database: 6.19260) http://www.pctools.com/ === -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] Re: Convert cf date to milliseconds since the epoch?
Yeah, leave such whining to me. :-) Thinking of my note earlier today. Groan. Sorry 'bout that, folks. Actually, don't you guys say whinging anyway? :-) /charlie -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Andrew Myers Sent: Wednesday, February 15, 2012 9:02 PM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] Re: Convert cf date to milliseconds since the epoch? I think I'll just do what i was initially trying to do and write a function that creates a Java date and be done with it. In fact if I'd have stopped whining and just written the damn thing id be on to the next problem by now :) On 16/02/2012, at 12:43 PM, Steve Onnis st...@cfcentral.com.au wrote: CreateDate() ? -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
[cfaussie] Re: Convert cf date to milliseconds since the epoch?
Nice - that looks like a better solution because I don't have to create a *^%ing custom function and then include it everywhere I want it. Thanks! On Feb 16, 2:13 pm, MrBuzzy mrbu...@gmail.com wrote: I think you were on the right track with .getTime() I tried your SYSDATE example and was able to get the desired result with; lsparsedatetime(qry.sysdate).getTime() I also tried casting the date in the SQL, but the above works (for SYSDATE at least) On 16/02/2012, at 13:02, Andrew Myers am2...@gmail.com wrote: I think I'll just do what i was initially trying to do and write a function that creates a Java date and be done with it. In fact if I'd have stopped whining and just written the damn thing id be on to the next problem by now :) On 16/02/2012, at 12:43 PM, Steve Onnis st...@cfcentral.com.au wrote: CreateDate() ? -Original Message- From: Andrew [mailto:am2...@gmail.com] Sent: Thursday, 16 February 2012 12:40 PM To: cfaussie Subject: [cfaussie] Re: Convert cf date to milliseconds since the epoch? Hmm not that simple. The dates are coming from a query, and .getTime() appears not to be valid, for example: cfquery name=q datasource=ds_web_content select sysdate from dual /cfquery cfdump var=#q.sysdate# cfoutput#q.sysdate.getTime()#/cfoutput Error: The getTime method was not found. Either there are no methods with the specified method name and argument types or the getTime method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity. This doesn't work either: cfset javaDate = JavaCast(java.util.Date, q.sysdate) Error: JavaCast type java.util.Date must be one of the following types: byte, char, short, int, long, float, double, boolean, string, bigdecimal, their corresponding array representation (eg : int[]), or null. Mongrel! On Feb 16, 12:28 pm, Andrew am2...@gmail.com wrote: Umm, okay this works: cfset dateNow = now() cfoutput#now.getTime()#/cfoutput Always missing the obvious! On Feb 16, 12:24 pm, Andrew am2...@gmail.com wrote: This is sort of related to my graphing question from the other day. I'm using Flot and the times need to be expressed as milliseconds since January 1, 1970 00:00:00. In Java you can call .getTime() on a function to do this. Does CF provide a simple way to either: * Convert a cf date to time in millis?; OR * Convert a cf date to a java date? I could create a new Java Calendar object and then set the various date parts, but before I write a wrapper function to do it that way I figured I'd see if I was missing something obvious? Andrew. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. === Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 9.0.0.909, Virus/Spyware Database: 6.19260) http://www.pctools.com/ === === Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 9.0.0.909, Virus/Spyware Database: 6.19260) http://www.pctools.com/ === -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Re: Convert cf date to milliseconds since the epoch?
I use them interchangeably Charlie. It even together. My kids are so good at it they 'whinge and whine' all day! Sent from my mobile On 16/02/2012, at 2:21 PM, charlie arehart charlie_li...@carehart.org wrote: Yeah, leave such whining to me. :-) Thinking of my note earlier today. Groan. Sorry 'bout that, folks. Actually, don't you guys say whinging anyway? :-) /charlie -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Andrew Myers Sent: Wednesday, February 15, 2012 9:02 PM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] Re: Convert cf date to milliseconds since the epoch? I think I'll just do what i was initially trying to do and write a function that creates a Java date and be done with it. In fact if I'd have stopped whining and just written the damn thing id be on to the next problem by now :) On 16/02/2012, at 12:43 PM, Steve Onnis st...@cfcentral.com.au wrote: CreateDate() ? -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Re: cfchart
The best thing to do is don't use the cfchart tag and integrate directly with the java api. So much more you can do. All you need to do is learn how to build the style sheets using the cfchart tool. On 14 February 2012 20:36, ColdGen Internet Solutions coldgen.internet.soluti...@gmail.com wrote: I'm having my own joy with CFREPORT (with CFCHART being a part of it). Seems this is a neglected part of ColdFusion at least documentation and tool wise... Peter Tilbrook Web Administrator, The Club Group Pty. Ltd. Managing Director, ColdGen Internet Solutions Professional Adobe ColdFusion 9 Application Development President, ACT and Region ColdFusion Users Group PO Box 2247 Queanbeyan, NSW, 2620 AUSTRALIA Tel: +61-2-6104-9981 Mob: +61-2-0457-449-016 Email Address: pe...@coldgen.com WWW: http://www.coldgen.com/ WWW2: http://www.clubgroup.com.au/ Twitter: @ColdGen ABN: 80 826 226 128 On 14 February 2012 17:04, Zac Spitzer zac.spit...@gmail.com wrote: it wasn't too hard to use, all depends on your javascript skills :) On Tue, Feb 14, 2012 at 4:45 PM, Andrew am2...@gmail.com wrote: Thanks Zac, AJ and Mark. That gives me some excellent options to check! Highcharts looks amazing, but perhaps overly complex for my needs. Was it difficult to get up and running with? Regards, Andrew. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- Cheers Simon Haddon Woman loves feeling danger and speed. That is why woman wants man. They get a speed rush that is the most dangerous of all. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
[cfaussie] Re: MAD! Melbourne Adobe Developers Meeting Feb 16 2012 StageWebView (AIR), Backbone (JS)
Very disappointed I won't be able to make it tonight. I really wanted to see these presentations. Has anyone looked at the possibility of remote access to these meetings? Even something as basic as sticking a phone on the desk and connecting through Google Hangouts would be enough. Just a thought. It might bring in a lot more participation (of sorts). Happy to contribute to set-up costs of any such solution. Have a good night folks. Will try to be at the next one. Rawdy -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Re: MAD! Melbourne Adobe Developers Meeting Feb 16 2012 StageWebView (AIR), Backbone (JS)
Amost there Sent from my mobile doohickey. On Feb 16, 2012 6:13 PM, Rawdyn raw...@gmail.com wrote: Very disappointed I won't be able to make it tonight. I really wanted to see these presentations. Has anyone looked at the possibility of remote access to these meetings? Even something as basic as sticking a phone on the desk and connecting through Google Hangouts would be enough. Just a thought. It might bring in a lot more participation (of sorts). Happy to contribute to set-up costs of any such solution. Have a good night folks. Will try to be at the next one. Rawdy -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.