RE: Decipher CFLDAP date values

2009-07-31 Thread Dave Phillips

Wally,

I don't know if you figured this out yet or not, but using this page:

http://techtasks.com/code/viewbookcode/1607

And trying to convert that code to ColdFusion, I think I'm close, but not
quite there.  Here's what I have, maybe with this, you can figure it out (I
don't know what the correct date/time stamp actually is:






#dateFormat(iLogonTime," dd, ")#
#timeFormat(iLogonTime,"hh:mm:ss")#

Dave Phillips

-Original Message-
From: Wally Randall [mailto:wally.rand...@comcast.net] 
Sent: Friday, July 31, 2009 3:31 PM
To: cf-talk
Subject: Decipher CFLDAP date values


When returning date/time values from active directory the CFLDAP tag
provides an integer value which must be decoded.  What is the formula for
converting the integer value to a human readable date?

example:  LASTLOGON returns "128922162522263907" 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325159
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Cfexchangecalendar recurring events question

2009-07-31 Thread Victor Moore

I guess I'm the lucky one who gets all the issues with the exchange integration.

I can't seem to find a way to retrieve all the recurring calendar
events. I have looked through the docs and google for it but can't
find any way to do it.
I get the main event but not the recurring child events.
Is this another mis? If this is the case than I must say that I'm
totally disappointed by the exchange integration. :(

Thanks
Victor

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325158
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Decipher CFLDAP date values

2009-07-31 Thread Dave Watts

> When returning date/time values from active directory the CFLDAP tag provides 
> an
> integer value which must be decoded.  What is the formula for converting the 
> integer
> value to a human readable date?
>
> example:  LASTLOGON returns "128922162522263907"

http://techtasks.com/code/viewbookcode/1607

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more informatio

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325157
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Simple JS Question?

2009-07-31 Thread Che Vilnonis

Thank you Dave... a simple solution indeed! 

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: Friday, July 31, 2009 4:25 PM
To: cf-talk
Subject: Re: Simple JS Question?


> Dave I would... but the actual example is a bit more complicated. 
> Basically, I'm using CSS to create a background image that sits under a
form text box.
> I then use a  around a invisible "spacer.gif" to submit via a 
> mouse click. The site is complicated design wise... I'm only trying to 
> make the designer's layout functional.

You could still simplify this, by calling the form's submit method when you
click on the button.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized instruction
at our training centers in Washington DC, Atlanta, Chicago, Baltimore,
Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325156
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Decipher CFLDAP date values

2009-07-31 Thread Wally Randall

When returning date/time values from active directory the CFLDAP tag provides 
an integer value which must be decoded.  What is the formula for converting the 
integer value to a human readable date?

example:  LASTLOGON returns "128922162522263907" 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325155
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Simple JS Question?

2009-07-31 Thread Dave Watts

> Dave I would... but the actual example is a bit more complicated. Basically,
> I'm using CSS to create a background image that sits under a form text box.
> I then use a  around a invisible "spacer.gif" to submit via a mouse
> click. The site is complicated design wise... I'm only trying to make the
> designer's layout functional.

You could still simplify this, by calling the form's submit method
when you click on the button.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325154
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfhttp and Content-Disposition: attachment

2009-07-31 Thread John M Bliss

Nevermind.  I was specifying something for my "path" arg (more complicated
than example in email) that was an invalid directory but cfhttp was
*not*throwing a "no such directory" error.  Strange.  Correcting that
made cfhttp
function as expected.

On Fri, Jul 31, 2009 at 3:09 PM, John M Bliss  wrote:

> I'm using cfhttp to get a URL like 
> "https://domain.com/file.aspx?q=[UUID]"
> where file.aspx is returning headers like:
>
> Content-Disposition: attachment; filename="file.zip"
>
> Of course, when I paste that URL into a browser, I'm prompted for where I'd
> like to save file.zip but when I do this:
>
>  url="https://domain.com/file.aspx?q=[UUID]"
> file="file.zip" getasbinary="auto" path="#ExpandPath('./')#" method="get">
>
> ...nothing(?) happens.  I think maybe cfhttp would only work like this if
> URL was like "https://domain.com/file.zip";  Anyone know how I can use
> cfhttp to fetch an attachment like this and save it to disk?
>
> --
> John Bliss
> IT Professional
> LinkedIn: http://www.linkedin.com/in/jbliss
>



-- 
John Bliss
IT Professional
LinkedIn: http://www.linkedin.com/in/jbliss


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325153
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=<:emailid:>.<:userid:>.<:listid:>


cfhttp and Content-Disposition: attachment

2009-07-31 Thread John M Bliss

I'm using cfhttp to get a URL like "https://domain.com/file.aspx?q=[UUID]";
where file.aspx is returning headers like:

Content-Disposition: attachment; filename="file.zip"

Of course, when I paste that URL into a browser, I'm prompted for where I'd
like to save file.zip but when I do this:

https://domain.com/file.aspx?q=[UUID]"; file="file.zip"
getasbinary="auto" path="#ExpandPath('./')#" method="get">

...nothing(?) happens.  I think maybe cfhttp would only work like this if
URL was like "https://domain.com/file.zip";  Anyone know how I can use cfhttp
to fetch an attachment like this and save it to disk?

-- 
John Bliss
IT Professional
LinkedIn: http://www.linkedin.com/in/jbliss


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325152
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=<:emailid:>.<:userid:>.<:listid:>


RE: Simple JS Question?

2009-07-31 Thread Che Vilnonis

Dave I would... but the actual example is a bit more complicated. Basically,
I'm using CSS to create a background image that sits under a form text box.
I then use a  around a invisible "spacer.gif" to submit via a mouse
click. The site is complicated design wise... I'm only trying to make the
designer's layout functional.

~Che

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: Friday, July 31, 2009 3:55 PM
To: cf-talk
Subject: Re: Simple JS Question?


> Thanks Dave. In isn't quite working. What's interesting is that if I 
> enter a search term and then hit the enter key, I get the pluses in 
> the url. If I click the submit button with my mouse, I get the spaces 
> between the search term in the url.

If you hit enter, you're submitting the form. If you click the image - you
don't actually have a submit button - you're changing the location object's
href property.

Why not simplify this, so that when you click the image you submit the form?
Just get rid of all the JS, and use 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325151
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Simple JS Question?

2009-07-31 Thread Dave Watts

> Thanks Dave. In isn't quite working. What's interesting is that if I enter a
> search term and then hit the enter key, I get the pluses in the url. If I
> click the submit button with my mouse, I get the spaces between the search
> term in the url.

If you hit enter, you're submitting the form. If you click the image -
you don't actually have a submit button - you're changing the location
object's href property.

Why not simplify this, so that when you click the image you submit the
form? Just get rid of all the JS, and use 

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325150
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Simple JS Question?

2009-07-31 Thread Che Vilnonis

Thanks Dave. In isn't quite working. What's interesting is that if I enter a
search term and then hit the enter key, I get the pluses in the url. If I
click the submit button with my mouse, I get the spaces between the search
term in the url.

~Che 

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: Friday, July 31, 2009 3:37 PM
To: cf-talk
Subject: Re: Simple JS Question?


> Using JS, how can I replace all spaces with plus (+) signs? Can it be 
> done "inline", or must I create a JS function?

You can use the escape function built into JavaScript; this is analogous to
URLEncodedFormat in CF.

http://www.w3schools.com/jsref/jsref_escape.asp

This won't replace spaces with plus signs, but will instead use the
appropriate URL encoding sequence, and the server will automatically
unencode the values it receives.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized instruction
at our training centers in Washington DC, Atlanta, Chicago, Baltimore,
Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325149
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Simple JS Question?

2009-07-31 Thread Dave Watts

> Using JS, how can I replace all spaces with plus (+) signs? Can it be done
> "inline", or must I create a JS function?

You can use the escape function built into JavaScript; this is
analogous to URLEncodedFormat in CF.

http://www.w3schools.com/jsref/jsref_escape.asp

This won't replace spaces with plus signs, but will instead use the
appropriate URL encoding sequence, and the server will automatically
unencode the values it receives.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325148
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Simple JS Question?

2009-07-31 Thread Che Vilnonis

Take this simple form snippet:






Using JS, how can I replace all spaces with plus (+) signs? Can it be done
"inline", or must I create a JS function?

Basically, I want the URL on the results page to look something like this:
http://mydomain.com/searchResults.cfm?searchField=blue+tennis+racket

Thanks, Che



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325147
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


removing dups from a two dimensional array using LinkedHashSet

2009-07-31 Thread Tony Bentley

I can do it using two nested loops but the record set is over 1000 and is 
parsed from a CSV into an array. Anyone know if there is a method using the 
java class LinkedHashSet? I did a time comparison on a single dimensional array 
it the java class runs faster. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325146
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Looping with BufferedReader.readLine() and comparing to NULL

2009-07-31 Thread Adrian Lynch

Why didn't I try the obvious one first, IsDefined()!













Seems to work a treat.

Adrian

> -Original Message-
> From: Adrian Lynch [mailto:cont...@adrianlynch.co.uk]
> Sent: 31 July 2009 16:01
> To: cf-talk
> Subject: Looping with BufferedReader.readLine() and comparing to NULL
> 
> 
> Hey all, I'm trying to get an alternative to cfexecute working and I'm
> wondering how to loop with a call to BufferedReader.readLine().
> 
> Here's the code:
> 
>   
>   
>   
>"java.io.InputStreamReader").init(errStream)>
>"java.io.BufferedReader").init(errInputStreamReader)>
> 
>   
>Chr(10)>
>   
> 
> The loop is hardcoded to run 20 times, but what I really need is to be
> able
> to do something like:
> 
>   while bufferedErrRead.readLine() != null
> 
> Any ideas on how to do a check for a Java null in CF?
> 
> Cheers.
> 
> Adrian


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325145
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Looping with BufferedReader.readLine() and comparing to NULL

2009-07-31 Thread Adrian Lynch

Hey all, I'm trying to get an alternative to cfexecute working and I'm
wondering how to loop with a call to BufferedReader.readLine().

Here's the code:











The loop is hardcoded to run 20 times, but what I really need is to be able
to do something like:

while bufferedErrRead.readLine() != null

Any ideas on how to do a check for a Java null in CF?

Cheers.

Adrian




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325144
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4