Re: REreplace function for special characters

2008-12-12 Thread Azadi Saryev
hmm... i guess i forgot to paste in the rest of the code... here it is
in all its ugly gory:

cfset filename = rereplace(left(filename,
len(filename)-len(listlast(filename, .))-1), \W, , all)  . 
listlast(filename, .)

it may be eugh and ugly!, but it's a one-liner and takes care of .
inside filenames and any file extension length :)

if you still feel eugh about that one, how about this one:

cfset filename = reverse(rereplace(listrest(reverse(filename), .),
\W, , all))  .  listlast(filename, .)

since this one is a tad bit shorter, will you consider it, maybe, just
ugly or just eugh?  :)

or how about this rereplace-only one:

cfset filename = rereplace(rereplace(filename, (.+?)(\.[^.]*$|$),
\1), \W, , all)  rereplace(filename, (.+?)(\.[^.]*$|$), \2)

(filename splitting regex courtesy of
http://www.movingtofreedom.org/2008/04/01/regex-match-filename-base-and-extension/)

:P

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Peter Boughton wrote:
 better then just do something like

 rereplace(left(filename, len(filename)-len(listlast(filename, .)-1),
 \W, , all)
 

 Eugh. Ugly!

 And doesn't restore the extension afterwards, so my-image-name.png would 
 become myimagename instead of myimagename.png.

   

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316687
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Is Dreamweaver CS4 taking off as an IDE?

2008-12-12 Thread Tom Chiverton
CS4 an IDE ? For ColdFusion coders ? Why - does it support proper IDE features 
like inspection and refactoring ?
-- 
Tom Chiverton
Helping to elementarily aggregate killer wireless e-tailers





This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316688
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: JSON/CF: Problem with yes values in the database - becomes true

2008-12-12 Thread Azadi Saryev
heh, that's a cute one...
i guess cf dev team forgot about THAT band!

what if you add a space after the band name in the db? i know, not a
'solution' solution, but may work for now...
i can't think of anything off the top of my head to actually 'solve' this...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Hansjoerg wrote:
 I'm returning database records to a JavaScript Ajax Call formatted as JSON 
 object and it works perfectly - except the problem that if the string - value 
 Yes is set in a column, it will become to true in the output using 
 SerializeJSON.

 An Example:

 Source:

 | Artist (string) | Items (int) |
 | Peter Gabriel   | 17  |
 | Yes | 3   |

 becomes

 | Peter Gabriel  | 17  |
 | true | 3   |

 How can we manage that every string is returned to the JavaScript as-is 
 without any modifications?

 -- Hansjoerg 
   

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316691
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


JSON/CF: Problem with yes values in the database - becomes true

2008-12-12 Thread Hansjoerg
I'm returning database records to a JavaScript Ajax Call formatted as JSON 
object and it works perfectly - except the problem that if the string - value 
Yes is set in a column, it will become to true in the output using 
SerializeJSON.

An Example:

Source:

| Artist (string) | Items (int) |
| Peter Gabriel   | 17  |
| Yes | 3   |

becomes

| Peter Gabriel  | 17  |
| true | 3   |

How can we manage that every string is returned to the JavaScript as-is without 
any modifications?

-- Hansjoerg 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316690
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: JSON/CF: Problem with yes values in the database - becomes true

2008-12-12 Thread Azadi Saryev
well, i can confirm that adding a space after Yes does indeed make it
return Yes  and not convert it to 'true'...
unfortunately my current dev environment does not allow me to test how
other json encoders will treat it (i.e. in php), so i am not sure if
this is problem with Adobe's/CF's json parsing or a general json 'bug'...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Azadi Saryev wrote:
 heh, that's a cute one...
 i guess cf dev team forgot about THAT band!

 what if you add a space after the band name in the db? i know, not a
 'solution' solution, but may work for now...
 i can't think of anything off the top of my head to actually 'solve' this...

 Azadi Saryev
 Sabai-dee.com
 http://www.sabai-dee.com/

   

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316692
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Nested Paired Custom Tags

2008-12-12 Thread Raymond Camden
Matt got it. Thanks for covering while this old man went to bed. ;)

On Fri, Dec 12, 2008 at 12:41 AM, Matt Quackenbush quackfu...@gmail.com wrote:
 By moving the cfassociate/ inside of the executionMode check, you're only
 executing it once.  If you have it outside of that check, it executes on
 both executionMode=start and executionMode=end.


 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316695
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Is Dreamweaver CS4 taking off as an IDE?

2008-12-12 Thread Michael van Leest
I've been using Dreamweaver since I've started playing around with web
development.
First stuff I did was a WYSIWYG ASP/MS ACCESS site which was really cool for
me as I had no experience.

After doing that for half a year I took some Macromedia courses (fast track
SQL, FT Coldfusion MX,  Advanced Coldfusion MX, Flash design, FT Flash
Development, Ria Development CF  Flash, yes I was a good Macromedia
Training customer). Because I've learned to do everything with Dreamweaver,
I never switched to CFEclipse. I've used it and sometimes during flex
development when I need to change a cfc real quickly I use cfeclipse, but
thats about it.

It ll comes to what you're used to. Dreamweaver is a great product if you
also do CSS work and other front end development. Also the integration with
the rest of the suite (Fireworks and all) makes it an ideal tool for the
allround developer.

But just what I think of it, everyone is different and everyone has his/her
likes and dislikes for development tool.

Although I really look forward to the Bolt IDE, I will always have a
Dreamweaver copy installed, just for the overall website management
(upload/design/css)

Michael van Leest


2008/12/12 Tom Chiverton tom.chiver...@halliwells.com

 CS4 an IDE ? For ColdFusion coders ? Why - does it support proper IDE
 features
 like inspection and refactoring ?
 --
 Tom Chiverton
 Helping to elementarily aggregate killer wireless e-tailers



 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A
 list of members is available for inspection at the registered office
 together with a list of those non members who are referred to as partners.
  We use the word partner to refer to a member of the LLP, or an employee
 or consultant with equivalent standing and qualifications. Regulated by the
 Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com.

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316689
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Dreamweaver Locking

2008-12-12 Thread Shannon Peevey
Webdav also locks files.  Just use it as your publishing protocol.

On 12/11/08, James Holmes james.hol...@gmail.com wrote:
 Yes, DW's locking scheme is a simple text file named after the locked
 file with an extra .LCK extension. It contains the following:

 Some Name||some.em...@somewhere.com

 That's it; all that's necessary is an FTP based utility that can
 get/put the file that's being checked in/out and create or delete the
 related .LCK file.

 mxAjax / CFAjax docs and other useful articles:
 http://www.bifrost.com.au/blog/



 2008/12/12 Sonny Savage sonnysav...@gmail.com:
 It was my impression that Dreamweaver creates an .lck file or something...
 If you were using Eclipse/CFEclipse is seems like you could write an Ant
 script to replicate this behavior.


 On Thu, Dec 11, 2008 at 12:59 PM, Rob Parkhill
 robert.parkh...@gmail.comwrote:

 well Tortise SVN has a lock and release lock function, however, being the
 only one developing here, I just use it for Version Control.  However you
 could look into it, I am sure that there are docs on it.
 HTH

 Rob

 On Thu, Dec 11, 2008 at 12:51 PM, Casey Dougall 
 ca...@uberwebsitesolutions.com wrote:

  On Thu, Dec 11, 2008 at 12:46 PM, Phillip M. Vector 
  vec...@mostdeadlygame.com wrote:
 
  
   What I'm asking is.. Does anyone know of any program that allows me
   to
   check in and out files on the server, but not actually use
   dreamweaver.
  
  
  I don't personally know of anyway to do that except to use Dreamweaver.
 
 
 





 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316694
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: JSON/CF: Problem with yes values in the database - becomes true

2008-12-12 Thread Dominic Watson
It will be CF's json parsing at fault - trying to be too clever! The
solution will be to output the json manually which shouldn't pose to
many problems. Alternatively, there's a JSON project on riaforge for
encoding CF objects to JSON which hopefully doesn't have this
'feature'.

Dominic

2008/12/12 Azadi Saryev az...@sabai-dee.com:
 well, i can confirm that adding a space after Yes does indeed make it
 return Yes  and not convert it to 'true'...
 unfortunately my current dev environment does not allow me to test how
 other json encoders will treat it (i.e. in php), so i am not sure if
 this is problem with Adobe's/CF's json parsing or a general json 'bug'...

 Azadi Saryev
 Sabai-dee.com
 http://www.sabai-dee.com/

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316693
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Collection issue on CF8-linux

2008-12-12 Thread Rick Barnes
Hello,

I have been working on migrating a site that was working on a server with 
CFMX-linux to a new server that is runnning CF8-linux, and I am having trouble 
getting the Verity collections to function properly on the new server. 
Additionally, the following code works on a CF8-windows test server.

Here is the test code I am running:
cfcollection action = list name = verity 

cfoutputList of all known verity collections.brbr/cfoutput
CFDUMP var = #verity#
br
cftry
cfsearch name = quick
   collection=test
   type = simple
cfdump var=#quick#/
cfcatch
cfdump var=#cfcatch#
cfabort /
/cfcatch
/cftry

And the output i get is:
List of all known verity collections.

query
CATEGORIES CHARSET CREATED DOCCOUNT EXTERNAL LANGUAGE LASTMODIFIED MAPPED NAME 
ONLINE PATH REGISTERED SIZE
1 No 1252 {ts '2008-12-11 15:51:16'} 81 NO english {ts '2008-12-11 15:52:05'} 
NO test YES /opt/coldfusion8/verity/collections/test CF 220

struct
Detail The collection you specified does not exists or is not registered with 
the ColdFusion Search Service.
Message The collection test does not exist.
[snip rest of dump]

I can use rcvdk and manually attach and search this collection from the 
command-line and the code to re-index and optimize the collections works.

I have tried manually configuring verity via the rcadmin tool using
http://www.adobe.com/go/kb400967 with no affect.

Thanks,
Rick 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316696
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: SmarterStats API

2008-12-12 Thread Jeff Becker
Hmm.. That helps a little bit James.

That defines the complex type returned from the Statistics.asmx service.

I'm after the complex type that is returned from the Query.asmx service.


It doesn't help that the Query.asmx SmarterStats API is undocumented and 
unsupported.
 - Because this is an undocumented web service call, they are also 
unsupported.
 - http://www.smartertools.com/forums/t/16645.aspx

What you sent does give a little insight into their objects tho.. I will keep 
searching.

Any other thoughts? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316697
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Is Dreamweaver CS4 taking off as an IDE?

2008-12-12 Thread Mike Kear
Hey Tom,  there's no need for more immature 'my IDE's bigger than you
IDE'.Your IDE suits you.   Terrific.  But it's not a zero sum
game.  IT doesnt make any difference to anyone else which one you
like.

And if i like another IDE what do you care?   You use yours.  Great.
I'll use mine.Who cares?   What counts is does MY IDE work for ME
in the kind of work i do.   It might or might not work for you too,
but I dont care.   Your implied criticism just smacks of those stupid
and very tiresome 'mac is better than pc no pc is better than mac'
arguments that never got anyone anywhere

As a development community we need a range of tools available to
choose from.   We know from every other aspect of IT life, that each
choice has pros and cons and its up to each of us to weigh them up in
our own circumstances and make a choice for us.A choice i should
add which will never be perfect.  The best we can ever hope for is
that it be as close to perfect as we can get it.

SO i dont care if you use the same IDE as me or not.  If yours suits
you, take a bow.  It's got nothing to do with what i use or anyone
else for that matter.

You're not a superior human being because you use whatever it is you
use.  And you're not measured on the pecking order of life by the
length of your signature either.

Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month



On Fri, Dec 12, 2008 at 8:34 PM, Tom Chiverton
tom.chiver...@halliwells.com wrote:
 CS4 an IDE ? For ColdFusion coders ? Why - does it support proper IDE features
 like inspection and refactoring ?
 --
 Tom Chiverton
 Helping to elementarily aggregate killer wireless e-tailers



 *

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316698
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Is Dreamweaver CS4 taking off as an IDE?

2008-12-12 Thread Dawson, Michael
And you're not measured on the pecking order of life by the
length of your signature either.

In Tom's defense, he can't avoid his signature.  It's added by his mail
server per policy.

Mike

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316699
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Is Dreamweaver CS4 taking off as an IDE?

2008-12-12 Thread Aaron Rouse
To me Spry has its places as does jQuery.  I use both quite a bit, honestly
use jQuery more so than Spry but certain things I find a lot easier to use
Spry for so it is one of the tools in my toolbox.  CS4 has support for each
but I have yet to experience that support to really comment on it, just know
it is there.  I have heard some interesting things on how they can be
integrated into a layout when using the WSYWIG features of CS4 but since I
never use that feature then I will never really know how that all works.

On Thu, Dec 11, 2008 at 4:36 PM, Raymond Camden rcam...@gmail.com wrote:

 Interesting. I'm replying on your blog. I can say from my experience
 teaching Spry that most folks who aren't too familiar with JS or Ajax
 find it quite easy to use. Personally I found Spry a heck of a lot
 easier to learn than jQuery. Of course, not every style of development
 will work for every developer.




-- 
Aaron Rouse
http://www.happyhacker.com/


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316700
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Dreamweaver question

2008-12-12 Thread Aaron Rouse
How does one get the buttons back above the filenames?  Back in DW8 it had
some tabs for things like HTML, CFML and so on then under each tab were
buttons for common things like making an HTML table.  The only thing I
appeared to use quite often in there was the comment block for CF because I
keep going to use it and realize it disappeared when I upgraded.

On Thu, Dec 11, 2008 at 6:00 PM, Al Musella, DPM
muse...@virtualtrials.comwrote:

 thanks!

 It may have sounded like a stupid question, but that tip will come in
 handy. I never clicked that button before!


 At 07:50 PM 12/10/2008, you wrote:
 It's the one that says file management when you mouse over it; it's
 two arrows next to each other (one pointing up and one pointing down).
 It's right next to the browser preview button.
 
 mxAjax / CFAjax docs and other useful articles:
 http://www.bifrost.com.au/blog/
 



 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316701
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Is Dreamweaver CS4 taking off as an IDE?

2008-12-12 Thread Dave Watts
 And if i like another IDE what do you care?   You use yours.  Great.
 I'll use mine.Who cares?   What counts is does MY IDE work for ME
 in the kind of work i do.   It might or might not work for you too,
 but I dont care.   Your implied criticism just smacks of those stupid
 and very tiresome 'mac is better than pc no pc is better than mac'
 arguments that never got anyone anywhere

I think you're missing his point a bit. An IDE is more than an editor.
Dreamweaver is arguably a great editor, but it doesn't have a lot of
things that an IDE should have, such as line debugging. Adobe makes a
line debugger for Eclipse, but not for Dreamweaver, indicating that
they don't really see Dreamweaver as an IDE either. Tom mentions
refactoring, which is something else you typically see in IDEs for OO
languages, but you don't see in editors.

And, as Mike points out, Tom's email signature isn't his fault.

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!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316702
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


CF8, IIS7 and M$ Windows 2008

2008-12-12 Thread Che Vilnonis
Just wondering, does anyone have CF8 installed on M$ Windows 2008? Does it
play nice with IIS7? Also, which version of the OS are you using? The Adobe
website does not list the 2008 Web edition as an OS that will work. Any,
other issues that I might want to know?

Thanks, Che



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316703
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CF8, IIS7 and M$ Windows 2008

2008-12-12 Thread Craig Dudley
It runs fine on Vista's IIS7 if that's any indication.

-Original Message-
From: Che Vilnonis [mailto:ch...@asitv.com] 
Sent: Friday, December 12, 2008 4:22 PM
To: cf-talk
Subject: CF8, IIS7 and M$ Windows 2008

Just wondering, does anyone have CF8 installed on M$ Windows 2008? Does it
play nice with IIS7? Also, which version of the OS are you using? The Adobe
website does not list the 2008 Web edition as an OS that will work. Any,
other issues that I might want to know?

Thanks, Che





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316704
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Dreamweaver question

2008-12-12 Thread Dawson, Michael
There really isn't a good way to do it.

You are looking for the Insert panel.

If you view that, you can hide the button labels and make the panel
wide.

However, you can't make the panel short (height) enough to simulate the
DW8 button bar.

Switch to the CODER PLUS workspace to find it. 

Personally, I would create a snippet/keyboard shortcut to wrap selected
text with a CF comment.

Mike

-Original Message-
From: Aaron Rouse [mailto:aaron.ro...@gmail.com] 
Sent: Friday, December 12, 2008 10:10 AM
To: cf-talk
Subject: Re: Dreamweaver question

How does one get the buttons back above the filenames?  Back in DW8 it
had some tabs for things like HTML, CFML and so on then under each tab
were buttons for common things like making an HTML table.  The only
thing I appeared to use quite often in there was the comment block for
CF because I keep going to use it and realize it disappeared when I
upgraded.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316705
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Dreamweaver question

2008-12-12 Thread Aaron Rouse
Thanks, my plan was to make a keyboard shortcut but figured with the recent
threads on DW that I would ask if the bar could be brought back first.  So
far I have just been keeping it in App Developer and not tried the other
workspaces.

On Fri, Dec 12, 2008 at 10:27 AM, Dawson, Michael m...@evansville.eduwrote:

 There really isn't a good way to do it.

 You are looking for the Insert panel.

 If you view that, you can hide the button labels and make the panel
 wide.

 However, you can't make the panel short (height) enough to simulate the
 DW8 button bar.

 Switch to the CODER PLUS workspace to find it.

 Personally, I would create a snippet/keyboard shortcut to wrap selected
 text with a CF comment.

 Mike

 -Original Message-
 From: Aaron Rouse [mailto:aaron.ro...@gmail.com]
 Sent: Friday, December 12, 2008 10:10 AM
 To: cf-talk
 Subject: Re: Dreamweaver question

 How does one get the buttons back above the filenames?  Back in DW8 it
 had some tabs for things like HTML, CFML and so on then under each tab
 were buttons for common things like making an HTML table.  The only
 thing I appeared to use quite often in there was the comment block for
 CF because I keep going to use it and realize it disappeared when I
 upgraded.

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316706
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Is Dreamweaver CS4 taking off as an IDE?

2008-12-12 Thread s. isaac dealey
Tom Chiverton wrote: 
 CS4 an IDE ? For ColdFusion coders ? Why - does it support proper IDE
 features like inspection and refactoring ?

I've never needed and not likely to use refactoring tools. To me that
goes into the category of snippets and code sweeper, things that other
people find useful. The only snippet I use with any consistency is the
CF comment, which I set a keyboard shortcut for. Beyond that I don't use
them at all because they're not really helfpul to me - would actually
slow me down I think. 

Inspection might be useful, but I'm not generally slowed down enough by
a lack of inspection to worry about it. 

1. Ctrl+F 
2. enter 'cffunction name=functionIWant'
3. Find All 
4. Double-click the search result - BAM! List of arguments

But even that I don't do very often because I can usually remember the
arguments the same way I remember the native function arguments and tag
attributes (with a couple exceptions like datediff). 

-- 
s. isaac dealey  ^  new epoch
 isn't it time for a change? 
 ph: 781.769.0723

http://onTap.riaforge.org/blog



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316707
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: How to apply security to the PDF files (prevent user from printing, copying etc)?

2008-12-12 Thread Rob Dunmore
Take a look at http://www.locklizard.com/pdf_security.htm because it does 
exactly what you want.  Stops pdf printing, pdf copying, screenshots being 
taken etc.  PDF watermarks don't offer any additional security because they can 
be easily removed - see http://www.locklizard.com/pdf-watermarking.htm


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316708
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: How to apply security to the PDF files (prevent user from printing, copying etc)?

2008-12-12 Thread Dave Watts
 Take a look at http://www.locklizard.com/pdf_security.htm because it does 
 exactly what
 you want.  Stops pdf printing, pdf copying, screenshots being taken etc.  PDF 
 watermarks
 don't offer any additional security because they can be easily removed - see
 http://www.locklizard.com/pdf-watermarking.htm

It doesn't look like that provides an API, so you'd have to do it
manually. Adobe's own solution, LiveCycle Rights Management ES, does
provide a very easy and powerful API, as well as integration with
LDAP, etc, etc.

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!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316709
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: How to apply security to the PDF files (prevent user from printing, copying etc)?

2008-12-12 Thread Jochem van Dieten
On Fri, Dec 12, 2008 at 7:00 PM, Rob Dunmore wrote:
 Take a look at http://www.locklizard.com/pdf_security.htm because it does 
 exactly what you want.

The reason most people want to distribute PDFs is that it is a
universal format and people have the reader already installer.
LockLizards solution with a separate reader kind of negates that and
turns it into a Windows solution (a limited Mac solution is claimed to
exist, but there is no download link).

I might as well compile my documents into a binary that does a
callback to a webservice for authentication.

Jochem

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316710
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8, IIS7 and M$ Windows 2008

2008-12-12 Thread Paul Kukiel
It works just fine on Server 2k8 just make sure you enable the ISAPI filters
and extensions I used this to go by and I had no issues.
http://showip.be/url/d1c

Paul.

On Fri, Dec 12, 2008 at 11:22 AM, Che Vilnonis ch...@asitv.com wrote:

 Just wondering, does anyone have CF8 installed on M$ Windows 2008? Does it
 play nice with IIS7? Also, which version of the OS are you using? The Adobe
 website does not list the 2008 Web edition as an OS that will work. Any,
 other issues that I might want to know?

 Thanks, Che



 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316711
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Nested Paired Custom Tags

2008-12-12 Thread Brad Haas
That makes sense.  I appreciate everyones help.

By moving the cfassociate/ inside of the executionMode check, you're only
executing it once.  If you have it outside of that check, it executes on
both executionMode=start and executionMode=end. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316712
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CF-Scheduler - multiple tasks starting at the same time

2008-12-12 Thread Earl, George
Dave said:
 - I haven't really noticed any specific problems with 
 that, but if the two tasks work with any shared data, the 
 possibility certainly exists for problems to occur. What kind 
 of strange behavior are you seeing?

Thanks, Dave.

Unfortunately I don't have details about the strange behavior other than
applications 'stopped working' and 'they started working again after we
reran all the scheduled tasks'. Turns out we have several groups of 2 -
4 scheduled tasks where all tasks in a group start at the same time, and
on top of that we're load balanced across two servers. I suspect you are
right about shared data if it turns out that the scheduled tasks really
are the source of the problem.

Ian said:
 The first thing I would look at are there any race 
 conditions, concurrency or other logic problems when all of 
 these requests are made at the same time.

Thanks, Ian.

This is second on my to do list after we see what happens with the next
cycle of these scheduled tasks (first on my list is below).

Claude said:
 Confuse, probably not, but cause a bottle neck on the sever, possible.
 We have also some scheduled tasks, and we programmed them to 
 be scheduled at least 1 min appart.

Right, I try for 5 min apart but settle for 1 min if I have to. I don't
know how we ended up with all these concurrent start times but it's at
the top of my list to break them out into individual start times.

George 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316713
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Is Dreamweaver CS4 taking off as an IDE?

2008-12-12 Thread Aaron Rouse
Doesn't DW have the ability to connect to a CF Server via RDS and let you
browse the CFCs and their functions?  Does it fail to drill down more than
that?

On Fri, Dec 12, 2008 at 11:49 AM, s. isaac dealey i...@turnkey.to wrote:

 Tom Chiverton wrote:
  CS4 an IDE ? For ColdFusion coders ? Why - does it support proper IDE
  features like inspection and refactoring ?

 I've never needed and not likely to use refactoring tools. To me that
 goes into the category of snippets and code sweeper, things that other
 people find useful. The only snippet I use with any consistency is the
 CF comment, which I set a keyboard shortcut for. Beyond that I don't use
 them at all because they're not really helfpul to me - would actually
 slow me down I think.

 Inspection might be useful, but I'm not generally slowed down enough by
 a lack of inspection to worry about it.

 1. Ctrl+F
 2. enter 'cffunction name=functionIWant'
 3. Find All
 4. Double-click the search result - BAM! List of arguments

 But even that I don't do very often because I can usually remember the
 arguments the same way I remember the native function arguments and tag
 attributes (with a couple exceptions like datediff).

 --
 s. isaac dealey  ^  new epoch
  isn't it time for a change?
 ph: 781.769.0723

 http://onTap.riaforge.org/blog



 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316714
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Is Dreamweaver CS4 taking off as an IDE?

2008-12-12 Thread s. isaac dealey
 Doesn't DW have the ability to connect to a CF Server via RDS and let
 you browse the CFCs and their functions?  Does it fail to drill down
 more than that?

Oh yeah, I believe if you set up RDS as your type for the remote copy
of your site, that gives you access to CFC introspection in Dreamweaver,
but I never have RDS enabled. 

-- 
s. isaac dealey  ^  new epoch
 isn't it time for a change? 
 ph: 781.769.0723

http://onTap.riaforge.org/blog



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316715
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Anyone care to look over and critique my code/approach to this CF/Ajax/jQuery login?

2008-12-12 Thread Rick Faircloth
Hello, all...

I appreciate everyone's help in getting my first ColdFusion/Ajax/jQuery
code working for this login...except for one *minor* (sarcasm) point.

The cf line of code in the first page below (PRE_LOGIN.CFM),
which should prevent the login dialog from appearing after someone
logs in, is not doing anything.  I've tried checking the variable with
cfdump var = '#session#', but I get an error saying the variable doesn't 
exist.
Upon successful login, it should get set (session.manager_id) in the
manager_data.cfc below.  Why?

Much of the code and approach has been hacked together from various
tutorials, etc., not specifically dealing with login.

If anyone wants to take the time to look over the code involved in the
pages below and critique the code or approach, if even on just one point,
it would be most welcome...it's how I learn while doing.

The pages involved haven't been optimized for production in terms of their
names, etc., this is just a proof-of-concept at this point.

Anyway, here's the code and approach:



PRE_LOGIN.CFM (first page visited to trigger dialogue if no one's logged
in)


!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

html xmlns=http://www.w3.org/1999/xhtml;

cfsetting showdebugoutput=no

head

   script type=text/javascript src=jquery-1.2.6.min.js/script
   script type=text/javascript src=jquery.dimensions.min.js/script

   script type=text/javascript src=shadowbox-jquery.js/script
   script type=text/javascript src=shadowbox-2.0.js/script


   cfif not isdefined('session.manager_id')   === This line, I thought, 
would keep the script
from running

 script type=text/javascript

  Shadowbox.loadSkin('classic', 'skin');
  Shadowbox.loadLanguage('en', 'lang');
  Shadowbox.loadPlayer(['flv', 'html', 'iframe', 'img', 'qt', 'swf', 
'wmp'], 'player');

  window.onload = function(){

 var options = {
player: 'iframe',
width:  '400',
height: '380',
title:  'Login',
content:'login.cfm',
};

  Shadowbox.init({modal:true,enableKeys:false});
  Shadowbox.open(options);
  }

  /script

   cfelse

 cflocation url=site_manager.cfm addtoken=no

   /cfif

/head

body





LOGIN.CFM (launched in the iframe modal window via the js in the page
above)--


cfsetting showdebugoutput=no

script language=JavaScript src=jquery.js type=text/javascript/script

script

   $(document).ready(function() {

   $('#contentdiv').html('nbsp;'); 

   $('#login-button').click(function(){
  var formval = {email_address:$('#email-address').val(),
 password:$('#password').val()};

  $.ajax({
  type: POST,
   url: login_processor.cfm,
  dataType: json,
  data: formval,
   success: function(response){
   if (response.login == Login 
Successful)
  { top.location.href = 
site_manager.cfm }


   else
{
$('#contentdiv').empty().fadeIn(1000).append(response.login); }
  }


   });
 });
   });  

/script

style type=text/css

   body { font-family: Arial, Helvetica, sans-serif; 
font-size:12px; color:white; }
   #wrapper-div { padding:40px; text-align:left; color:#fff; }
   #databox { border: 1px solid Gray; margin:30px auto 0px auto; 
padding: 10px; width:
200px; } 
   #contentdiv  { color:white; margin-top: 10px; }
   #shadowbox_nav_close { display:none; }

/style

div id=wrapper-div

   Email Address
   input id=email-address type=text name=email_address size=48 /br

   Password
   input id=password type=password name=password size=48 /br

   input id=login-button type=submit value=Login /

   p style=margin-top:20px; id=contentdiv /p

/div





LOGIN_PROCESSOR.CFM
--

cfsetting showdebugoutput=no

cfset mdata = createObject(component,manager_data)
cfset thedata = mdata.getmanagerData(form.email_address, form.password)
cfset ojson = createObject(component,cfjson)
cfset results = ojson.encode(thedata)


Re: How to apply security to the PDF files (prevent user from printing, copying etc)?

2008-12-12 Thread Rob Dunmore
 On Fri, Dec 12, 2008 at 7:00 PM, Rob Dunmore wrote:
  Take a look at http://www.locklizard.com/pdf_security.htm because it 
 does exactly what you want.
 
 The reason most people want to distribute PDFs is that it is a
 universal format and people have the reader already installer.
 LockLizards solution with a separate reader kind of negates that and
 turns it into a Windows solution (a limited Mac solution is claimed 
 to
 exist, but there is no download link).
 
 I might as well compile my documents into a binary that does a
 callback to a webservice for authentication.


There is a Mac viewer available for download from 
http://www.locklizard.com/download_digital_rights_management.htm

There is a GOOD reason why you would not want to use the Adobe Reader - see 
http://www.locklizard.com/pdf_security_news.htm and 
http://www.locklizard.com/pdf_security_plugins.htm for starters.  Adobe did not 
build the PDF format with security in mind.  Everyone is looking for the 
security nirvana - complete protection without installing any software.  Sorry 
to say, but it does not exist and never will. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316717
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Release a CF Java Object

2008-12-12 Thread Craigsell
Please be kind -- I am JAVA illerate.

I am creating workbooks using POI HSSF.  Here is a code snippet from a page:

cfset myWorkBook = 
createObject(java,org.apache.poi.hssf.usermodel.HSSFWorkbook)

  create and fill workbook sheets with data..
cfscript
 context = getPageContext();
 context.setFlushOutput(false);
 response = context.getResponse().getResponse();
 out = response.getOutputStream();
 response.setContentType(application/vnd.ms-excel);
 myWorkBook .write(out);
 out.flush();
 response.reset();
 out.close();
/cfscript

I found the cfscript code out on the web but don't quite fully understand it 
all.

What I'm concerned about is releasing objects properly so they can be 
immediately collected by the JVM garbage collector.  I know that closing the 
out object will release it but should I also close the response and context 
objects?  And how do I release the myWorkBook object?  I don't want it hanging 
around if the user decides to go to lunch.

Any insight would be greatly appreciated!

Warren Koch

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316718
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CF8, IIS7 and M$ Windows 2008

2008-12-12 Thread Jacob
I have no issues. Runs great.

You have to install IIS6 backward compatibility.. or something like that.

http://www.jasonholden.com/blog/index.cfm/2008/5/6/Coldfusion-8-on-Windows-S
erver-2008


-Original Message-
From: Che Vilnonis [mailto:ch...@asitv.com] 
Sent: Friday, December 12, 2008 8:22 AM
To: cf-talk
Subject: CF8, IIS7 and M$ Windows 2008

Just wondering, does anyone have CF8 installed on M$ Windows 2008? Does it
play nice with IIS7? Also, which version of the OS are you using? The Adobe
website does not list the 2008 Web edition as an OS that will work. Any,
other issues that I might want to know?

Thanks, Che





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316719
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Release a CF Java Object

2008-12-12 Thread Rand Thacker
I think you could do something like:
cfset myWorkBook = javaCast(null, )
Which should assign java null, allowing the object to be collected by GC.

 Please be kind -- I am JAVA illerate.
 
 I am creating workbooks using POI HSSF.  Here is a code snippet from a 
 page:
 
 cfset myWorkBook = createObject(java,org.apache.poi.hssf.usermodel.
 HSSFWorkbook)
 
  
 create and fill workbook sheets with data..
 cfscript
 
 context = getPageContext();
 
 context.setFlushOutput(false);
 
 response = context.getResponse().getResponse();
 
 out = response.getOutputStream();
 
 response.setContentType(application/vnd.ms-excel);
 
 myWorkBook .write(out);
 
 out.flush();
 
 response.reset();
 
 out.close();
 /cfscript
 
 I found the cfscript code out on the web but don't quite fully 
 understand it all.
 
 What I'm concerned about is releasing objects properly so they can be 
 immediately collected by the JVM garbage collector.  I know that 
 closing the out object will release it but should I also close the 
 response and context objects?  And how do I release the myWorkBook 
 object?  I don't want it hanging around if the user decides to go to 
 lunch.
 
 Any insight would be greatly appreciated!
 
 Warren 
Koch 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316720
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: How to apply security to the PDF files (prevent user from printing, copying etc)?

2008-12-12 Thread Dave Watts
 There is a GOOD reason why you would not want to use the Adobe Reader - see
 http://www.locklizard.com/pdf_security_news.htm and http://www.locklizard.com
 /pdf_security_plugins.htm for starters.  Adobe did not build the PDF format 
 with security
 in mind.  Everyone is looking for the security nirvana - complete protection 
 without
 installing any software.  Sorry to say, but it does not exist and never will.

Actually, as I noted in my previous message, that solution does exist
- it's called LiveCycle Rights Management ES. It doesn't require any
client software other than Adobe Reader. And it works very well. It
isn't vulnerable to any of the things mentioned at those URLs.

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!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316721
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Release a CF Java Object

2008-12-12 Thread Dave Watts
 What I'm concerned about is releasing objects properly so they can be 
 immediately
 collected by the JVM garbage collector.  I know that closing the out object 
 will release it
 but should I also close the response and context objects?  And how do I 
 release the
 myWorkBook object?  I don't want it hanging around if the user decides to go 
 to lunch.

Since your variables are in the local Variables scope, their
references will be destroyed when the page finishes execution. They'll
then be deleted from the Java heap when the garbage collector runs,
just like any other CF variables in the local Variables scope.

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!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316722
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Release a CF Java Object

2008-12-12 Thread Craigsell
Thanks!  I was hoping it was something easy -- I can live with doing nothing

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316723
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Anyone willing to help me build an AJAX/jQuery/CF8 modal login for pay or gifts?

2008-12-12 Thread Rick Faircloth
I've been struggling with developing a modal login system
for the past 4 days...just can't tie it all together.

I just don't know enough about javascript in general, for one thing.
I prefer to use jQuery for the js part...it's more intuitive.

I pretty much have a solution worked out in Firefox, using Shadowbox,
but tried it in IE7, and the modal window didn't even show up...sigh.

I've decided to try Thickbox, but can't find a tutorial that walks
me through everything.  I get some of the jQuery side in some tutorials,
but not the CF8.  I get CF8 in some tutorials, but not the jQuery.

So now I'm looking for someone who would spend an hour or two working
with me through IM or via some other method to show me how to put
all this together.  I want to expand from this to use AJAX in other
ways in my apps, but if I can't get this simple thing working, well...

I'd be willing to pay for someone's time or buy gifts from a wishlist
or whatever to get this working.  I've got to move ahead on a project
and I really wanted to using the AJAX approach.

Anyone have the jQuery, Thickbox (or other jQuery modal window), and
CF8 experience and willing to help?

Thanks,

Rick


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316724
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Anyone willing to help me build an AJAX/jQuery/CF8 modal login for pay or gifts?

2008-12-12 Thread Matt Williams
Hey Rick. I've done some modal stuff with jQuery and thickbox. Had it
working on IE 6  7 and FF 2  3 at some point. Ping me off list if
you don't already have a taker.

Matt Williams

On Fri, Dec 12, 2008 at 7:18 PM, Rick Faircloth
r...@whitestonemedia.com wrote:
 I've been struggling with developing a modal login system
 for the past 4 days...just can't tie it all together.

 I just don't know enough about javascript in general, for one thing.
 I prefer to use jQuery for the js part...it's more intuitive.

 I pretty much have a solution worked out in Firefox, using Shadowbox,
 but tried it in IE7, and the modal window didn't even show up...sigh.

 I've decided to try Thickbox, but can't find a tutorial that walks
 me through everything.  I get some of the jQuery side in some tutorials,
 but not the CF8.  I get CF8 in some tutorials, but not the jQuery.

 So now I'm looking for someone who would spend an hour or two working
 with me through IM or via some other method to show me how to put
 all this together.  I want to expand from this to use AJAX in other
 ways in my apps, but if I can't get this simple thing working, well...

 I'd be willing to pay for someone's time or buy gifts from a wishlist
 or whatever to get this working.  I've got to move ahead on a project
 and I really wanted to using the AJAX approach.

 Anyone have the jQuery, Thickbox (or other jQuery modal window), and
 CF8 experience and willing to help?

 Thanks,

 Rick


 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316725
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


sum of cfquery with group by

2008-12-12 Thread Tech Gate
cfquery 
 select a.Dept, c.Assonum
 .
 group by a.Dept, c.Assonum
 /cfquery

 I need to get the SUM of c.Assonum, but I can't do sum(c.Assonum ) in
 the sql (cfquery).
 What is the way to get the SUM of c.Assonum with cf function?

 Please advise.

 Thank you

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316726
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: sum of cfquery with group by

2008-12-12 Thread Jason Fisher
There's not a function, but you can add them up as you loop over the query:

cfset sumAssonum = 0
cfoutput query=...
cfset sumAssonum = sumAssonum + Assonum
/cfoutput
cfoutputSUM of Assonum is #sumAssonum#/cfoutput

cfquery 
 select a.Dept, c.Assonum
 .
 group by a.Dept, c.Assonum
 /cfquery

 I need to get the SUM of c.Assonum, but I can't do sum(c.Assonum ) in
 the sql (cfquery).
 What is the way to get the SUM of c.Assonum with cf function?

 Please advise.

 Thank you 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316727
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: sum of cfquery with group by

2008-12-12 Thread Tech Gate
Yup.  I got it.
Thanks so much

On Fri, Dec 12, 2008 at 8:19 PM, Jason Fisher ja...@wanax.com wrote:
 There's not a function, but you can add them up as you loop over the query:

 cfset sumAssonum = 0
 cfoutput query=...
 cfset sumAssonum = sumAssonum + Assonum
 /cfoutput
 cfoutputSUM of Assonum is #sumAssonum#/cfoutput

cfquery 
 select a.Dept, c.Assonum
 .
 group by a.Dept, c.Assonum
 /cfquery

 I need to get the SUM of c.Assonum, but I can't do sum(c.Assonum ) in
 the sql (cfquery).
 What is the way to get the SUM of c.Assonum with cf function?

 Please advise.

 Thank you

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316728
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Anyone willing to help me build an AJAX/jQuery/CF8 modal login for pay or gifts?

2008-12-12 Thread Tony Bentley
No problem. I can do it using either cfwindow or jquery's window. Send me a 
message and I'll help you build it. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316729
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: REreplace function for special characters

2008-12-12 Thread Peter Boughton
 but it's a one-liner

So?

Unless you have a limited number of newlines, mindlessly shoving commands into 
a single line is really dumb; it reduces readability and achieves nothing.

This is another thing that bugs me - people compressing code without thought - 
having the right amount of whitespace in the right places is good for you!



 takes care of . inside filenames and any file extension length

Well yeah, the original spec was dealing with images, which in general have a 
limited set of extensions, so extension length wasn't so much an issue.

But yes, something to work for all filenames could be useful to people.

All the ones you gave, (aside from being /UGLY/ :P), will not work for several 
common filenames - try running .htaccess and README through them, for 
example.

Of course, I have come up with a one-line solution, but not by shunting 
together multiple commands. :P

FileName = rereplace( FileName , '(?!\.[^.]*$)\W' , '' , 'all' )

Strips all non-word characters, excluding the final dot (if any).



Although, thinking a bit more... for general purpose use, I might not bother 
stripping dots, or hyphens, or tilde, so might end up with this instead:

FileName = rereplace( FileName , '(?!\.[^.]|[-~])\W' , '' , 'all' )



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316730
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Anyone willing to help me build an AJAX/jQuery/CF8 modal login for pay or gifts?

2008-12-12 Thread Rick Faircloth
Thanks, Tony... Matt Williams has already built a demo
that I'm studying now.

Thanks, however!

Rick


 -Original Message-
 From: Tony Bentley [mailto:t...@tonybentley.com]
 Sent: Friday, December 12, 2008 9:02 PM
 To: cf-talk
 Subject: Re: Anyone willing to help me build an AJAX/jQuery/CF8 modal login 
 for pay or gifts?
 
 No problem. I can do it using either cfwindow or jquery's window. Send me a 
 message and I'll help
you
 build it.
 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316731
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Anyone willing to help me build an AJAX/jQuery/CF8 modal login for pay or gifts?

2008-12-12 Thread Chris Jordan
Rick,

Consider using jQueryUI for your modal window needs. Don't know if the demo
you're studying (the one Matt built) is using jQueryUI, but I think in
general jQueryUI is a great way to go for stuff like this.

Chris

On Fri, Dec 12, 2008 at 8:17 PM, Rick Faircloth r...@whitestonemedia.comwrote:

 Thanks, Tony... Matt Williams has already built a demo
 that I'm studying now.

 Thanks, however!

 Rick


  -Original Message-
  From: Tony Bentley [mailto:t...@tonybentley.com]
  Sent: Friday, December 12, 2008 9:02 PM
  To: cf-talk
  Subject: Re: Anyone willing to help me build an AJAX/jQuery/CF8 modal
 login for pay or gifts?
 
  No problem. I can do it using either cfwindow or jquery's window. Send me
 a message and I'll help
 you
  build it.
 



 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316732
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


FCKEditor and Quicktime movies

2008-12-12 Thread Richard Steele
Does anyone know how to use FCKeditor to upload Quicktime movies and then place 
them on a text page? Many thanks in advance. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316733
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Anyone willing to help me build an AJAX/jQuery/CF8 modal login for pay or gifts?

2008-12-12 Thread James Holmes
ExtJS is another option. It can be hooked up to JQuery too. For
example, these message boxes are all modal:

http://www.extjs.com/deploy/dev/examples/message-box/msg-box.html

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/



2008/12/13 Chris Jordan chris.s.jor...@gmail.com:
 Rick,

 Consider using jQueryUI for your modal window needs. Don't know if the demo
 you're studying (the one Matt built) is using jQueryUI, but I think in
 general jQueryUI is a great way to go for stuff like this.

 Chris

 On Fri, Dec 12, 2008 at 8:17 PM, Rick Faircloth 
 r...@whitestonemedia.comwrote:

 Thanks, Tony... Matt Williams has already built a demo
 that I'm studying now.

 Thanks, however!

 Rick


  -Original Message-
  From: Tony Bentley [mailto:t...@tonybentley.com]
  Sent: Friday, December 12, 2008 9:02 PM
  To: cf-talk
  Subject: Re: Anyone willing to help me build an AJAX/jQuery/CF8 modal
 login for pay or gifts?
 
  No problem. I can do it using either cfwindow or jquery's window. Send me
 a message and I'll help
 you
  build it.
 





 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316734
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4