Re: CF thinks 0F is boolean.

2008-06-13 Thread denstar
On Wed, Jun 11, 2008 at 6:32 AM, Adam Haskell wrote:
 I won't say yes or no one way or another on the legality or really even the
 morality but I will say this puts you in a compromising position for
 submitting work to any open source CFML engine.  We've already had the
 discussion surrounding certain comments coming from the CF community about
 viewing source code and decided that we will most likely never be accept
 code from folks that openly admit to these types of activities. An OS
 project can not risk even in the slightest taking compromised code.

But if a friend of a friend submitted the code it would be cool?

I'm glad that the legal battles have played out as they have, for the
most part, so far.  Regarding source and whatnot.


I love the idea that I couldn't legally fix, or even diagnose a
problem, with something I own.  Really I don't love that idea.
I love watching chefs do battle.  That's for real.  Void a warranty?,
sure, but go to jail for tearing the tags off?  Lame! :-P

There's this whole strange idea about ownership these days.

Do you know that long ago, things went into the public domain faster
than they do now?  Why has that changed?

Oh well.

That's good stuff to know, Adam.  I guess we can debate the merit of
copyright and whatnot over on community or OT (assuming I sign up with
OT-- where I most likely belong|]).

Guess any submissions I'd make would be suspect.

Hopefully it takes more than just knowing about such things as
decompilers-- maybe poor Brad and anyone who read this thread is now
suspect...  sorry folks.

 * Is decompilation legal?

Yes, if restricted to legal uses in the section Why is a Java
decompiler useful? For the same reasons that one can photocopy a few
pages from a book, a developer may disassemble or decompile executable
content. We are protected by the notion of fair-use. Reverse
engineering of an entire application and shiping under a different
name clearly violates both our license agreement with our end users,
and this notion of fair-use. It is not our objective to see our tool
used in this manner.

(I hope whoever I decompiled this from is ok with the excerpt!)  LOL.

I'm getting out of hand.  Peace and potatoes!

-- 
Pick me up
~ Mom and Dad Save the World

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307380
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Weird Column Name

2008-06-13 Thread Antony Sideropoulos
Hi Richard

I haven't used Access for a while, but I seem to remember being able to do
inserts via a view (query in Access).

Could you make a view that aliases the dodgy column with a normal name, and
try using that for inserts?

Another wild guess - try using the ascii code for # - asc(35) and see if it
gets through that way, although if doubling the # didn't work this probably
won't either.

Two dodgy ideas - hope one helps.

Antony

On Fri, Jun 13, 2008 at 2:19 PM, Colman, Richard [EMAIL PROTECTED]
wrote:


 I have a table which includes a most unfortunate column name: ID#:INST

 I have tried:

 INSERT INTO LS07DATA (
[ID#:INST], ...

 And

 INSERT INTO LS07DATA (
[ID##:INST], ...

 For Microsoft Access.

 Neither of which work. I get this for both:

 Invalid CFML construct found on line 9 at column 12.
 ColdFusion was looking at the following text:
 #

 The error occurred in
 D:\Inetpub\autmsurvey\Administration\Add_new_inst_action.cfm: line 9

 7 : CFQUERY name=insertnew datasource=#application.datasource#
 8 : INSERT INTO LS07DATA (
 9 : [ID#:INST],
 10 :ID,
 11 :insttype,


 Any ideas for a work-around would be appreciated.

 TNX.

 Rick Colman



 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307381
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Protecting images

2008-06-13 Thread Mike Kear
On Thu, Jun 12, 2008 at 8:20 AM, ColdFusion Developer
[EMAIL PROTECTED] wrote:
  ...  I personally think if they HAVE to display these images,
watermarking then converting to flash is their best option (as well as
copyrighting the images so if the images are stolen the client has a
bit of recourse in the end). ...

.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


Not to nitpick, because it doesnt change the basic point of the
discussion,  but your images are already copyrighted.  All works are
automatically copyrighted the moment they are created.   There is no
registration required to copyright anything like you have to with a
patent or a trademark.

There is a copyright registration process, and that is set up to make
it easy to PROVE your entitelements, thats all. Your entitlements
under the copyright law exist the moment you create the images.
There are some differences in what happens if you try to enforce your
rights if you have registered your copyright, so its definitely a good
thing to complete the copyright registration process, but its
important to understand that your rights exist in any work you create,
images and text and code and any other thing (including this email)
simply by creating the work.

In short, if you create an image, you automatically own the copyright
until such time as you assign the right to someone else, or if you
created it .under an arrangement that means it is already owned by
someone else  (e.g. if you are working as an employee at the time).

-- 
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

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307382
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: More iText RTF Questions [bayes SPAMTRAP]

2008-06-13 Thread Paul Hastings
Loathe wrote:
 I've got it working, now I need to figure out how to do formatting and 
 alignment.

iText is sometimes a bit too atomic when it comes to formatting (the cfteam did 
a great job taking much of the sweat out of using iText) but every object has 
alignment properties:

pageNumber.setAlignment(paragraph.ALIGN_RIGHT);

and you can tweak it to an insane level.

 Still working out page numbers

http://pastebin.com/m3e0ff845

set the rtfPageNumber field on the rtfWriter2 not on the doc.


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307383
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: spell checker plug in

2008-06-13 Thread denstar
On Wed, Jun 11, 2008 at 12:26 PM, Qing Xia wrote:
 Hello everyone,

 Does anyone know of a good spell checker plugin for CF8? The text input box
 for CF8 comes with formatting but not spell-check, so I am trying to find a
 good plugin.

I like using the spellerpages plugin for FCKEditor.  FCKEditor being
what CF uses for it's rich-text editor.

Someday I'll finish my inline speller plugin for FCKEditor...  someday...

-- 
King Raff: Well alright, so he's not exactly fearsome - but he
certainly caught us by surprise.

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307384
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Jrun Memory Usage Problem: could fileexists() be the culprit?

2008-06-13 Thread Hemant Khandelwal
This may not be directly related. When you use CF server monitoring, can you 
disable the memory tracking option and check  if that helps?

Thanks,
Hemant 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307385
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Embedding an output block inside a fckEDITOR text field?

2008-06-13 Thread denstar
It's really easy to write plugins for FCKEditor.

You can add buttons that insert stuff from the DB and whatnot, easy.

Depending on your use, this can be better than coding stuff in there,
as it were.

There's also some configurability as to what code gets rewritten,
sorta-- at least on purpose.

Since it's all XHTML, and all that is stored is the DOM tree, some
formatting will always be rewritten.

At least last I checked.

HIH

--
Albert Collins: Nobody leaves this place without singing the blues.

On Wed, Jun 11, 2008 at 11:20 PM, Les Mizzell [EMAIL PROTECTED] wrote:
 Les Mizzell wrote:
 Anybody know if it's possible to embed a cfoutput block INSIDE a
 fckEDITOR text field?


 I found an odd way of doing this by using REPLACE. You enter a specific
 text string !REPLACETHIS! into the editor where you want your variable
 to appear, and then use REPLACE to swap out the string for the desired
 variable from the database.

 #REPLACE(rmail.rm_body,!REPLACE!,#req.replaceTHIS#,all)#

 That was a head scratcher for while...

 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307386
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: JNDI, Coldfusion and the AdminAPI

2008-06-13 Thread denstar
On Wed, Jun 11, 2008 at 9:24 PM, Kenton Gray [EMAIL PROTECTED] wrote:
 Thanks Dave, I guess I should be more specific in that our application uses 
 dynamically created JNDI datasources (each client has a dedicated database 
 for security reasons).


My JNDI datasource has the jndi-name jdbc/myproject.

In CF8 admin, I can create a successful JNDI datasource with:
java:jdbc/myproject.

I left the uname/pass blank because I defined them in the JNDI connection.

This might be JBoss specific, but I think it'll get you a little
closer.  Maybe try jdbc:/myproject if that doesn't work... I think I
had to do that for JRun, but I could be mistaken.  Something along
those lines tho...

HIH

-- 
Jack Burton: I'm a reasonable guy. But, I've just experienced some
very unreasonable things.

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307387
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Extending Application.cfc

2008-06-13 Thread Didgiman
Hi all,

I really hope someone can help me out here, as I can't figure out how to do
this.

Lets assume the following structure (on my local pc):

 wwwroot
  mywebsite1
  mywebsite2
   Application.cfc
   ApplicationProxy.cfc (which basically just extends Application.cfc)
   admin
Application.cfc

I imagine this setup is not that uncommon. On my development pc I have
multiple sites in the webroot.
So if I want to extend the Application.cfc in the admin folder (which would
have the cflogin logic), I would have to use cfcomponent
extends=mywebsite2.ApplicationProxy.

But when I move the site online, it's the only site in the webroot:
 wwwroot
  Application.cfc
  ApplicationProxy.cfc (which basically just extends Application.cfc)
  admin
   Application.cfc

In this scenario, the admin Application.cfc should extend the main
Application.cfc like this: cfcomponent extends=ApplicationProxy

I think so far I'm making some sense, right?

Now, what do I have to do to be able to use the same code for development
and production? I cannot evaluate the correct path to the root
Application.cfc like this:

cfcomponent extends=#IIF(cgi.server_name EQ '127.0.0.1',
DE('mywebsite2.ApplicationProxy'), DE('ApplicationProxy'))#

...because I get this error: This expression must have a constant value.

I'm sure I'm not the first to have this problem. Can someone please
guide me through this? I really want to use the same code for
development and production.
I'm on a shared hosting, so I can't do server mappings, and I think
application mappings can't be useful here.

What am I missing here?

Thank you for reading my (quite lengthy) post.

Wim
Belgium


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307388
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Extending Application.cfc

2008-06-13 Thread Azadi Saryev
what i do, is set 2 different app scope vars that hold path to cfc dir
(in your case that will be website's root) for localhost and remote
(production) site:

cffunction name=onApplicationStart output=no returntype=boolean

!--- set server-specific app vars (LOCAL server and REMOTE server) ---
!--- LOCAL SETTINGS ---
cfif cgi.SERVER_NAME is localhost
cfset application.cfcpath = 'path.to.my.cfcs.from.localhost.root.'

!--- REMOTE SETTINGS ---
cfelseif findnocase('photos-of-laos.org', cgi.SERVER_NAME) gt 0
cfset application.cfcpath = 'path.to.cfcs.on.production.server.'
   ...
/cfif

/cffunction

in your case the LOCAL cfcpath will be 'mywebsite2.' and remote path
will be just '.'

use it (invoke components. create objects extend components etc) as
#application.cfcpath#componentnamehere

hth

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



Didgiman wrote:
 Hi all,

 I really hope someone can help me out here, as I can't figure out how to do
 this.

 Lets assume the following structure (on my local pc):

   
 wwwroot
 
 mywebsite1
 mywebsite2
   
 Application.cfc
 ApplicationProxy.cfc (which basically just extends Application.cfc)
 admin
 
 Application.cfc
   

 I imagine this setup is not that uncommon. On my development pc I have
 multiple sites in the webroot.
 So if I want to extend the Application.cfc in the admin folder (which would
 have the cflogin logic), I would have to use cfcomponent
 extends=mywebsite2.ApplicationProxy.

 But when I move the site online, it's the only site in the webroot:
   
 wwwroot
 
 Application.cfc
 ApplicationProxy.cfc (which basically just extends Application.cfc)
 admin
   
 Application.cfc
 

 In this scenario, the admin Application.cfc should extend the main
 Application.cfc like this: cfcomponent extends=ApplicationProxy

 I think so far I'm making some sense, right?

 Now, what do I have to do to be able to use the same code for development
 and production? I cannot evaluate the correct path to the root
 Application.cfc like this:

 cfcomponent extends=#IIF(cgi.server_name EQ '127.0.0.1',
 DE('mywebsite2.ApplicationProxy'), DE('ApplicationProxy'))#

 ...because I get this error: This expression must have a constant value.

 I'm sure I'm not the first to have this problem. Can someone please
 guide me through this? I really want to use the same code for
 development and production.
 I'm on a shared hosting, so I can't do server mappings, and I think
 application mappings can't be useful here.

 What am I missing here?

 Thank you for reading my (quite lengthy) post.

 Wim
 Belgium


 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307389
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Extending Application.cfc

2008-06-13 Thread Didgiman
Thanks a lot for the quick reply.

It would have been so awesome if what you propose works, but unfortunately,
it doesn't :o(

When extending the lower Application.cfc like this: cfcomponent
extends=#application.cfcpath#ApplicationProxy

... I still get the This expression must have a constant value error.

Other thoughts?

Wim.

On Fri, Jun 13, 2008 at 12:03 PM, Azadi Saryev [EMAIL PROTECTED] wrote:

 what i do, is set 2 different app scope vars that hold path to cfc dir
 (in your case that will be website's root) for localhost and remote
 (production) site:

 cffunction name=onApplicationStart output=no returntype=boolean
 
!--- set server-specific app vars (LOCAL server and REMOTE server) ---
!--- LOCAL SETTINGS ---
cfif cgi.SERVER_NAME is localhost
cfset application.cfcpath = 'path.to.my.cfcs.from.localhost.root.'

!--- REMOTE SETTINGS ---
cfelseif findnocase('photos-of-laos.org', cgi.SERVER_NAME) gt 0
cfset application.cfcpath = 'path.to.cfcs.on.production.server.'
   ...
/cfif
 
 /cffunction

 in your case the LOCAL cfcpath will be 'mywebsite2.' and remote path
 will be just '.'

 use it (invoke components. create objects extend components etc) as
 #application.cfcpath#componentnamehere

 hth

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



 Didgiman wrote:
  Hi all,
 
  I really hope someone can help me out here, as I can't figure out how to
 do
  this.
 
  Lets assume the following structure (on my local pc):
 
 
  wwwroot
 
  mywebsite1
  mywebsite2
 
  Application.cfc
  ApplicationProxy.cfc (which basically just extends Application.cfc)
  admin
 
  Application.cfc
 
 
  I imagine this setup is not that uncommon. On my development pc I have
  multiple sites in the webroot.
  So if I want to extend the Application.cfc in the admin folder (which
 would
  have the cflogin logic), I would have to use cfcomponent
  extends=mywebsite2.ApplicationProxy.
 
  But when I move the site online, it's the only site in the webroot:
 
  wwwroot
 
  Application.cfc
  ApplicationProxy.cfc (which basically just extends Application.cfc)
  admin
 
  Application.cfc
 
 
  In this scenario, the admin Application.cfc should extend the main
  Application.cfc like this: cfcomponent extends=ApplicationProxy
 
  I think so far I'm making some sense, right?
 
  Now, what do I have to do to be able to use the same code for development
  and production? I cannot evaluate the correct path to the root
  Application.cfc like this:
 
  cfcomponent extends=#IIF(cgi.server_name EQ '127.0.0.1',
  DE('mywebsite2.ApplicationProxy'), DE('ApplicationProxy'))#
 
  ...because I get this error: This expression must have a constant
 value.
 
  I'm sure I'm not the first to have this problem. Can someone please
  guide me through this? I really want to use the same code for
  development and production.
  I'm on a shared hosting, so I can't do server mappings, and I think
  application mappings can't be useful here.
 
  What am I missing here?
 
  Thank you for reading my (quite lengthy) post.
 
  Wim
  Belgium
 
 
 

 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307390
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extending Application.cfc

2008-06-13 Thread Azadi Saryev
oops, right, with application proxies that won't work in app scope - try
server scope instead. i.e. server.mywebsite2.cfcpath = '...'

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



Didgiman wrote:
 Thanks a lot for the quick reply.

 It would have been so awesome if what you propose works, but unfortunately,
 it doesn't :o(

 When extending the lower Application.cfc like this: cfcomponent
 extends=#application.cfcpath#ApplicationProxy

 ... I still get the This expression must have a constant value error.

 Other thoughts?

 Wim.

 On Fri, Jun 13, 2008 at 12:03 PM, Azadi Saryev [EMAIL PROTECTED] wrote:

   
 what i do, is set 2 different app scope vars that hold path to cfc dir
 (in your case that will be website's root) for localhost and remote
 (production) site:

 cffunction name=onApplicationStart output=no returntype=boolean
 
!--- set server-specific app vars (LOCAL server and REMOTE server) ---
!--- LOCAL SETTINGS ---
cfif cgi.SERVER_NAME is localhost
cfset application.cfcpath = 'path.to.my.cfcs.from.localhost.root.'

!--- REMOTE SETTINGS ---
cfelseif findnocase('photos-of-laos.org', cgi.SERVER_NAME) gt 0
cfset application.cfcpath = 'path.to.cfcs.on.production.server.'
   ...
/cfif
 
 /cffunction

 in your case the LOCAL cfcpath will be 'mywebsite2.' and remote path
 will be just '.'

 use it (invoke components. create objects extend components etc) as
 #application.cfcpath#componentnamehere

 hth

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



 Didgiman wrote:
 
 Hi all,

 I really hope someone can help me out here, as I can't figure out how to
   
 do
 
 this.

 Lets assume the following structure (on my local pc):


   
 wwwroot

 
 mywebsite1
 mywebsite2

   
 Application.cfc
 ApplicationProxy.cfc (which basically just extends Application.cfc)
 admin

 
 Application.cfc

   
 I imagine this setup is not that uncommon. On my development pc I have
 multiple sites in the webroot.
 So if I want to extend the Application.cfc in the admin folder (which
   
 would
 
 have the cflogin logic), I would have to use cfcomponent
 extends=mywebsite2.ApplicationProxy.

 But when I move the site online, it's the only site in the webroot:

   
 wwwroot

 
 Application.cfc
 ApplicationProxy.cfc (which basically just extends Application.cfc)
 admin

   
 Application.cfc

 
 In this scenario, the admin Application.cfc should extend the main
 Application.cfc like this: cfcomponent extends=ApplicationProxy

 I think so far I'm making some sense, right?

 Now, what do I have to do to be able to use the same code for development
 and production? I cannot evaluate the correct path to the root
 Application.cfc like this:

 cfcomponent extends=#IIF(cgi.server_name EQ '127.0.0.1',
 DE('mywebsite2.ApplicationProxy'), DE('ApplicationProxy'))#

 ...because I get this error: This expression must have a constant
   
 value.
 
 I'm sure I'm not the first to have this problem. Can someone please
 guide me through this? I really want to use the same code for
 development and production.
 I'm on a shared hosting, so I can't do server mappings, and I think
 application mappings can't be useful here.

 What am I missing here?

 Thank you for reading my (quite lengthy) post.

 Wim
 Belgium



   
 

 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307391
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: More iText RTF Questions [bayes SPAMTRAP]

2008-06-13 Thread Loathe
Bit by bit it's coming together for sure.

While I've got your attention :)

I'm getting some weird behavior.  it seems to be producing a question 
mark (?) at weird intervals and I can't tell why.

Also, the actual text of the document is produced from html entered 
through fckEditor.  When I drop my fields in here it seems to ignore or 
escape the html to the page, how should I handle that?  Currently I'm 
simply removing all HTML tags with a regular expression, the problem 
comes in when the field contains multiple blocks of text separated with 
br /.  How would I make it recognize a space there?

Paul Hastings wrote:
 Loathe wrote:
 I've got it working, now I need to figure out how to do formatting and 
 alignment.
 
 iText is sometimes a bit too atomic when it comes to formatting (the cfteam 
 did 
 a great job taking much of the sweat out of using iText) but every object has 
 alignment properties:
 
 pageNumber.setAlignment(paragraph.ALIGN_RIGHT);
 
 and you can tweak it to an insane level.
 
 Still working out page numbers
 
 http://pastebin.com/m3e0ff845
 
 set the rtfPageNumber field on the rtfWriter2 not on the doc.
 
 
 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307392
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extending Application.cfc

2008-06-13 Thread Didgiman
As I expected, that doesn't work either.
I still get the The expression must have a constant value error.
The extends attribute cannot hold a #variable# (I think that is because
extending the component is done at compiletime, not runtime).

There should be a way, no? The location of the component never changes, it's
just different local vs production.


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307393
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extending Application.cfc

2008-06-13 Thread Will Tomlinson
As I expected, that doesn't work either.
I still get the The expression must have a constant value error.
The extends attribute cannot hold a #variable# (I think that is because
extending the component is done at compiletime, not runtime).



This is exactly why I stopped using the built-in web server and moved to apache 
for my development machine. Root relative links cause the same problem. 

CF sees wwwroot as your website root, which screws everything up. 

HTH,
Will 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307394
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Extending Application.cfc

2008-06-13 Thread Didgiman
If only Adobe could give us relative path support for extending
components...
Then, I could do like this cfcomponent extends=../Application.
Life could be beautiful...


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307395
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: More iText RTF Questions [bayes SPAMTRAP]

2008-06-13 Thread Paul Hastings
Loathe wrote:
 I'm getting some weird behavior.  it seems to be producing a question 
 mark (?) at weird intervals and I can't tell why.

might be an encoding issue, using any special chars, etc.? anything copy/pasted 
from word doc? are these showing up if you simply dump the data out to the 
browser?

 Also, the actual text of the document is produced from html entered 
 through fckEditor.  When I drop my fields in here it seems to ignore or 
 escape the html to the page, how should I handle that?  Currently I'm 

iText's html parsing isn't 100% (ie the package handling this 
html.simpleparser). you might need to massage the text yourself depending on 
what html tags are used.

 simply removing all HTML tags with a regular expression, the problem 
 comes in when the field contains multiple blocks of text separated with 
 br /.  How would I make it recognize a space there?

not following. you mean regex for whitespace? that's a \s.


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307396
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: More iText RTF Questions [bayes SPAMTRAP]

2008-06-13 Thread Loathe
By jove I think I've got it :)

http://pastebin.com/mb49fe19

I've rewritten it several times now, simplifying the code until I think 
I have it down to just what I need and it's working just how I want it.

Now, I need to figure out the body of this damned thing and I'm there.

Paul Hastings wrote:
 Loathe wrote:
 I've got it working, now I need to figure out how to do formatting and 
 alignment.
 
 iText is sometimes a bit too atomic when it comes to formatting (the cfteam 
 did 
 a great job taking much of the sweat out of using iText) but every object has 
 alignment properties:
 
 pageNumber.setAlignment(paragraph.ALIGN_RIGHT);
 
 and you can tweak it to an insane level.
 
 Still working out page numbers
 
 http://pastebin.com/m3e0ff845
 
 set the rtfPageNumber field on the rtfWriter2 not on the doc.
 
 
 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307397
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Protecting images

2008-06-13 Thread Bobby Hartsfield
Not to nitpick again but if you take out my comments... take out my
signature ;-)

I didn't say any of that.

..:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com

-Original Message-
From: Mike Kear [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2008 4:19 AM
To: CF-Talk
Subject: Re: Protecting images

On Thu, Jun 12, 2008 at 8:20 AM, ColdFusion Developer
[EMAIL PROTECTED] wrote:
  ...  I personally think if they HAVE to display these images,
watermarking then converting to flash is their best option (as well as
copyrighting the images so if the images are stolen the client has a
bit of recourse in the end). ...

.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


Not to nitpick, because it doesnt change the basic point of the
discussion,  but your images are already copyrighted.  All works are
automatically copyrighted the moment they are created.   There is no
registration required to copyright anything like you have to with a
patent or a trademark.

There is a copyright registration process, and that is set up to make
it easy to PROVE your entitelements, thats all. Your entitlements
under the copyright law exist the moment you create the images.
There are some differences in what happens if you try to enforce your
rights if you have registered your copyright, so its definitely a good
thing to complete the copyright registration process, but its
important to understand that your rights exist in any work you create,
images and text and code and any other thing (including this email)
simply by creating the work.

In short, if you create an image, you automatically own the copyright
until such time as you assign the right to someone else, or if you
created it .under an arrangement that means it is already owned by
someone else  (e.g. if you are working as an employee at the time).

-- 
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



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307398
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extending Application.cfc

2008-06-13 Thread Will Tomlinson
If only Adobe could give us relative path support for extending
components...
Then, I could do like this cfcomponent extends=../Application.
Life could be beautiful...

It IS relative. Relative to the site root, which CF sees as wwwroot/. 

Will 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307399
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extending Application.cfc

2008-06-13 Thread Didgiman
You know what I mean.

On Fri, Jun 13, 2008 at 2:11 PM, Will Tomlinson [EMAIL PROTECTED] wrote:

 If only Adobe could give us relative path support for extending
 components...
 Then, I could do like this cfcomponent extends=../Application.
 Life could be beautiful...

 It IS relative. Relative to the site root, which CF sees as wwwroot/.

 Will

 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307400
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Clustering with remote instances

2008-06-13 Thread Rick Root
Does anyone do CF clustering with remote instances?  How does that work?

I mean... your web root exists on Server A, but you have CF instances on
SErver A and Server B that do the processing.

If you do things like createobject or cfinclude, or cffile... would server B
have to access the file system via UNC paths or something?

-- 
Rick Root
New Brian Vander Ark Album, songs in the music player and cool behind the
scenes video at www.myspace.com/brianvanderark


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307401
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Clustering with remote instances

2008-06-13 Thread Rick Root
Well, the CFMX 7 documentation says this:

If you use a remote server, ensure that it contains the same application
and settings as the local server instances.

This would imply that all my cfm and cfc files need to be on the remote
server as well.. I guess that would make sense.. the remote server would
probably have to have the same directory structure and any cffile write
actions would have to go to some kind of shared folder or be replicated
between servers.

Rick

On Fri, Jun 13, 2008 at 8:42 AM, Rick Root [EMAIL PROTECTED]
wrote:

 Does anyone do CF clustering with remote instances?  How does that work?

 I mean... your web root exists on Server A, but you have CF instances on
 SErver A and Server B that do the processing.

 If you do things like createobject or cfinclude, or cffile... would server
 B have to access the file system via UNC paths or something?

 --
 Rick Root
 New Brian Vander Ark Album, songs in the music player and cool behind the
 scenes video at www.myspace.com/brianvanderark




-- 
Rick Root
New Brian Vander Ark Album, songs in the music player and cool behind the
scenes video at www.myspace.com/brianvanderark


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307402
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Clustering with remote instances

2008-06-13 Thread Dave Watts
 Does anyone do CF clustering with remote instances?  How does 
 that work?
 
 I mean... your web root exists on Server A, but you have CF 
 instances on SErver A and Server B that do the processing.
 
 If you do things like createobject or cfinclude, or cffile... 
 would server B have to access the file system via UNC paths 
 or something?

Clustering doesn't provide any functionality for sharing filesystems or
accessing remote filesystems. That's on you.

In most clustered environments I've seen, filesystem changes on one server
are replicated to other cluster members using tools like rsync or robocopy.

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;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307403
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Extending Application.cfc

2008-06-13 Thread Dave Watts
 Now, what do I have to do to be able to use the same code for 
 development and production? I cannot evaluate the correct 
 path to the root Application.cfc like this:
 
 cfcomponent extends=#IIF(cgi.server_name EQ '127.0.0.1', 
 DE('mywebsite2.ApplicationProxy'), DE('ApplicationProxy'))#
 
 ...because I get this error: This expression must have a 
 constant value.
 
 I'm sure I'm not the first to have this problem. Can someone 
 please guide me through this? I really want to use the same 
 code for development and production.

Use the same filesystem structure in development as you do in production.
You can't extend a component with a path that's unknown at compile-time. You
can't use a variable for a package path.

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;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307404
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFImage and WriteToBrowser

2008-06-13 Thread CFDEV
I am using CFIMAGE to read CLOB data from an oracle database and then write
it to the browser for the end user to view.
My thought was that the writetobrowser attribute will be creating an
instance in memory therefore the file is not written to the file server.

is this true?

If so, after the image is displayed in the web browser, by viewing the
properties of the image, it is shown as:
/CFFileServlet/_cf_image/_cfimg[xx]

Am I correct in assuming that the file is being written to the file server
within that area and then viewed by the browser?
As well, how long does the CF Server maintain the image (just for the
request or is it there until the server restarts)?

Now to throw another monkey wrench into the whole schema
How effective is this within a Load Balancing configuration?
Is the image generated on SERVER A and then the request is moved to SERVER B
for the remaining requests (all one single web transaction),
and then the image is no longer viewable since the end user is now on SERVER
B but the image is on SERVER A?

Our goal is to display the images from the database without the need to
write them to the file server and run a cleanup process afterwards..


-- 
Fred Allen  - Imitation is the sincerest form of television.


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307405
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


array toscript problem if empty

2008-06-13 Thread Richard White
hi

i am using the following method to translate coldfusion into javascript arrays:

cfoutput
  var #toscript(array1,jsArray1)#;
  var #toscript(array2,jsArray2)#;
/cfoutput

however, these arrays sometimes don't contain any elements and if this is the 
case then i get a 'missing variable' javascript error.

how would i get around this?

thanks

richard



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307406
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extending Application.cfc

2008-06-13 Thread Didgiman
So, basically, if I don't want to rethink and rebuild my whole development
environment, I should stick with good 'ol Application.CFM?
There you could simply do cfinclude template=../Application.cfm.

It seems indeed that you can't is the answer here, but shouldn't it be
possible to do that?
Is there a good reason for not having relative path support (and I mean
../, Will) for extending components?
In this objective, Application.cfc is a step back from Application.cfm.
Can Adobe shed some light here? I know you're reading this ;o)

Wim.


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307407
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: array toscript problem if empty

2008-06-13 Thread Raymond Camden
You need to check the item to see if it's null.

cfset a = arrayNew(1)
cfset a[1] = a
cfset a[3] = c

cfoutput
script
var #toScript(a,'data')#

for(var i=0;i  data.length; i++) {
if(data[i] != null) alert('pos '+i+' is '+data[i]);
}
/script
/cfoutput

On Fri, Jun 13, 2008 at 8:18 AM, Richard White [EMAIL PROTECTED] wrote:
 hi

 i am using the following method to translate coldfusion into javascript 
 arrays:

 cfoutput
  var #toscript(array1,jsArray1)#;
  var #toscript(array2,jsArray2)#;
 /cfoutput

 however, these arrays sometimes don't contain any elements and if this is the 
 case then i get a 'missing variable' javascript error.

 how would i get around this?

 thanks

 richard



 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307408
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFDocument PDF output request producing errors

2008-06-13 Thread Kevin Kelly
I am not sure what I am doing wrong here, but I have tried this about a bunch 
of times so far. I believe that this is correct for the top.

!--- START EXPORT SNIPPET---
cfdocument format=pdf
   filename='stg.pdf'
   orientation=#URL.frmt#
   pagetype=custom
   pageheight=#VARIABLES.numH#
   pagewidth=#VARIABLES.numW#
   scale='100'
   overwrite = no

!--- END EXPORT SNIPPET---

My issue is that the document is not outputting to a separate file. However, 
without the filename, I get the desired effect for browser output. Suggestions, 
please. 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307409
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Extending Application.cfc

2008-06-13 Thread Dave Watts
 So, basically, if I don't want to rethink and rebuild my 
 whole development environment, I should stick with good 'ol 
 Application.CFM?

I guess, but in any case, your development environment should match your
production environment as closely as possible. If things like file paths
aren't very similar, you should probably rethink and rebuild your whole
development environment accordingly, or abstract away those differences
using things like mappings.

 It seems indeed that you can't is the answer here, but 
 shouldn't it be possible to do that?
 Is there a good reason for not having relative path support 
 (and I mean ../, Will) for extending components?

I suspect it works this way for the same reasons that it works this way with
every other compiled OO language I've seen that lets you define classes and
extend them. I'm not knowledgeable enough about compiler design to explain
why that is, though.

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;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307410
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Extending Application.cfc

2008-06-13 Thread Brian Kotek
Just set up a mapping on the production server that maps the site root to
mywebsite2. Then specify the package using mywebsite2 and it will work
in both places the same way. Locally, because the site is in a subfolder or
the root named mywebsite2, and in production because of the mapping.

On Fri, Jun 13, 2008 at 5:52 AM, Didgiman [EMAIL PROTECTED] wrote:

 Hi all,

 I really hope someone can help me out here, as I can't figure out how to do
 this.

 Lets assume the following structure (on my local pc):

  wwwroot
   mywebsite1
   mywebsite2
Application.cfc
ApplicationProxy.cfc (which basically just extends Application.cfc)
admin
 Application.cfc

 I imagine this setup is not that uncommon. On my development pc I have
 multiple sites in the webroot.
 So if I want to extend the Application.cfc in the admin folder (which would
 have the cflogin logic), I would have to use cfcomponent
 extends=mywebsite2.ApplicationProxy.

 But when I move the site online, it's the only site in the webroot:
  wwwroot
   Application.cfc
   ApplicationProxy.cfc (which basically just extends Application.cfc)
   admin
Application.cfc

 In this scenario, the admin Application.cfc should extend the main
 Application.cfc like this: cfcomponent extends=ApplicationProxy

 I think so far I'm making some sense, right?

 Now, what do I have to do to be able to use the same code for development
 and production? I cannot evaluate the correct path to the root
 Application.cfc like this:

 cfcomponent extends=#IIF(cgi.server_name EQ '127.0.0.1',
 DE('mywebsite2.ApplicationProxy'), DE('ApplicationProxy'))#

 ...because I get this error: This expression must have a constant value.

 I'm sure I'm not the first to have this problem. Can someone please
 guide me through this? I really want to use the same code for
 development and production.
 I'm on a shared hosting, so I can't do server mappings, and I think
 application mappings can't be useful here.

 What am I missing here?

 Thank you for reading my (quite lengthy) post.

 Wim
 Belgium


 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307411
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: array toscript problem if empty

2008-06-13 Thread Richard White
thanks for the reply ray

i dont quite understand though, as i dont actually use these arrays until after 
the page has loaded and the user clicks something. yet it is actually producing 
the error when the page loads.

if i comment out the text:

cfoutput
  var #toScript(array1,'jsArray1')#;
  var #toScript(array2,'jsArray2')#;
/cfoutput

 then it doesnt produce the error

thanks




You need to check the item to see if it's null.

cfset a = arrayNew(1)
cfset a[1] = a
cfset a[3] = c

cfoutput
script
var #toScript(a,'data')#

for(var i=0;i  data.length; i++) {
   if(data[i] != null) alert('pos '+i+' is '+data[i]);
}
/script
/cfoutput

On Fri, Jun 13, 2008 at 8:18 AM, Richard White [EMAIL PROTECTED] wrote:
 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307412
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFImage and WriteToBrowser

2008-06-13 Thread Dave Watts
 I am using CFIMAGE to read CLOB data from an oracle database 
 and then write it to the browser for the end user to view.
 My thought was that the writetobrowser attribute will be 
 creating an instance in memory therefore the file is not 
 written to the file server.
 
 is this true?
 
 If so, after the image is displayed in the web browser, by 
 viewing the properties of the image, it is shown as:
 /CFFileServlet/_cf_image/_cfimg[xx]
 
 Am I correct in assuming that the file is being written to 
 the file server within that area and then viewed by the browser?
 As well, how long does the CF Server maintain the image (just 
 for the request or is it there until the server restarts)?

That URL pattern doesn't point to an actual physical filesystem location.
That said, I don't know if there's a file being written somewhere or not.

 Now to throw another monkey wrench into the whole schema
 How effective is this within a Load Balancing configuration?
 Is the image generated on SERVER A and then the request is 
 moved to SERVER B for the remaining requests (all one single 
 web transaction), and then the image is no longer viewable 
 since the end user is now on SERVER B but the image is on SERVER A?

Whether it creates an image in memory or on the filesystem, it won't work in
a fully load-balanced environment. The user will have to view the image on
the server that generated it. If you're using sticky sessions on your load
balancer, it'll work.

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;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307413
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Would someone check this for me?

2008-06-13 Thread Rick Faircloth
Hi, all...

I'm trying to set up subdomains for real estate agents
using the same code, but session variables to customize
the template.

I'm having partial success.  The problem seems to be with
the DNS settings.  However, some agent's sites come up fine,
while other error.

Try this one:

http://kristina.pierson.wsm-dev.com
or
http://bwheeler.wsm-dev.com

Those should work.

However, this one:

http://alopez.wsm-dev.com
returns a resolve error, even though I can ping the domain
name 'alopez.wsm-dev.com' and get the correct IP.

Specifically:

Security: The requested template has been denied access to alopez.wsm-dev.com.  
The following is the internal exception message: access denied 
(java.net.SocketPermission
alopez.wsm-dev.com resolve)  
  
The error occurred in E:\inetpub\webroot\c21-ar\agents\Application.cfm: line 3
 
1 : 
2 : 
3 : CFAPPLICATION Name=c21ar_agents SessionManagement=Yes
SessionTimeOut=#CreateTimeSpan(0,1,0,0)#
4 : 
5 : cfset dsn = c21ar



This one:

http://echance.wsm-dev.com is still not resolving with a ping,
so I think the DNS changes haven't had time to propogate.

Any thoughts, anyone?
Could the session variables be a problem here?

It just occurred to me that perhaps the CFAPPLICATION Name needs to be
dynamic so each agent's template has a different CFAPPLICATION Name?
(That doesn't seem correct...if it were, why would the first two example
site above work?)

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;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307414
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: LinkedIn CF group

2008-06-13 Thread Richard Dillman
Just another way for headhunters to find more information about you.
Actually works well in that regard.

On Thu, Jun 12, 2008 at 4:41 PM, AJ Mercer [EMAIL PROTECTED] wrote:

 Theis is a Railo group too
***http://www.linkedin.com/e/gis/71368/0CF7D323BBC1

 *
 On Thu, Mar 6, 2008 at 11:54 PM, Ben Forta [EMAIL PROTECTED] wrote:

  And here's a Flex group, just coz ;-)
 
  http://www.linkedin.com/e/gis/65596/7DF3445D30E0
 
  --- Ben
 
 
  -Original Message-
  From: James Wolfe [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 04, 2008 6:01 PM
  To: CF-Talk
  Subject: LinkedIn CF group
 
  I'm not sure what purpose it serves, but I created a LinkedIn CF group if
  anyone cares
 
 
 
 http://www.linkedin.com/groupInvitation?groupID=63526sharedKey=59CB6255962F
 
 
 
 
 
 

 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307415
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Would someone check this for me?

2008-06-13 Thread Eric Roberts
I do something similar and just have a virtual directory set up in IIS.  The
data displayed is based on the variable part of the domain (ie the realtor's
name in your case). In my case, we don't have direct access to the DB on
this server for security reasons, so we are using xml files for the data
(don't like the solution, but with our security restrictions...not much of a
choice).  The logic determines the data directory to read the xml files.
You could do something similar to determine the id so that you are pulling
the right information for that specific realtor.  All of the sub domains
point to their virtual directory, which in turn physically points to the
same code.

Eric

/*-Original Message-
/*From: Rick Faircloth [mailto:[EMAIL PROTECTED]
/*Sent: Friday, June 13, 2008 9:19 AM
/*To: CF-Talk
/*Subject: Would someone check this for me?
/*
/*Hi, all...
/*
/*I'm trying to set up subdomains for real estate agents
/*using the same code, but session variables to customize
/*the template.
/*
/*I'm having partial success.  The problem seems to be with
/*the DNS settings.  However, some agent's sites come up fine,
/*while other error.
/*
/*Try this one:
/*
/*http://kristina.pierson.wsm-dev.com
/*or
/*http://bwheeler.wsm-dev.com
/*
/*Those should work.
/*
/*However, this one:
/*
/*http://alopez.wsm-dev.com
/*returns a resolve error, even though I can ping the domain
/*name 'alopez.wsm-dev.com' and get the correct IP.
/*
/*Specifically:
/*
/*Security: The requested template has been denied access to alopez.wsm-
/*dev.com.
/*The following is the internal exception message: access denied
/*(java.net.SocketPermission
/*alopez.wsm-dev.com resolve)
/*
/*The error occurred in E:\inetpub\webroot\c21-ar\agents\Application.cfm:
/*line 3
/*
/*1 :
/*2 :
/*3 : CFAPPLICATION Name=c21ar_agents SessionManagement=Yes
/*SessionTimeOut=#CreateTimeSpan(0,1,0,0)#
/*4 :
/*5 : cfset dsn = c21ar
/*
/*
/*
/*This one:
/*
/*http://echance.wsm-dev.com is still not resolving with a ping,
/*so I think the DNS changes haven't had time to propogate.
/*
/*Any thoughts, anyone?
/*Could the session variables be a problem here?
/*
/*It just occurred to me that perhaps the CFAPPLICATION Name needs to be
/*dynamic so each agent's template has a different CFAPPLICATION Name?
/*(That doesn't seem correct...if it were, why would the first two example
/*site above work?)
/*
/*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;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307416
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CFImage and WriteToBrowser

2008-06-13 Thread Brad Wood
If you look in your web.xml file (on a Mulit-server install it's
cfroot/
servers\instance_name\cfusion-ear\cfusion-war\WEB-INF\web.xml you will
see the following servlet mapping:

servlet-mapping id=coldfusion_mapping_14
  servlet-nameCFFileServlet/servlet-name 
  url-pattern/CFFileServlet/*/url-pattern 
 /servlet-mapping

The url pattern tells JRUN that any request that comes through that
looks like www.your-server.com/CFFileServlet/* will be handled by the
CFFileServlet.  

Elsewhere in your web.xml is the following:
servlet
  servlet-nameCFFileServlet/servlet-name 
  display-nameServes files for cfpresentation,cfreport,captcha
etc/display-name 
  servlet-classcoldfusion.bootstrap.BootstrapServlet/servlet-class 
 init-param
  param-nameservlet.class/param-name 
  param-valuecoldfusion.util.CFFileServlet/param-value 
  /init-param
/servlet

This defines what Class is used to process that request.  My assumption
is the file is probably stored in memory and then spit out with the
appropriate content type header when your browser asks for the image.

That might be more info that you cared to know, but I thought that was
pretty dang cool once I realized how ColdFusion processes your
requests... especially requests for non-existent folders.

~Brad

 If so, after the image is displayed in the web browser, by 
 viewing the properties of the image, it is shown as:
 /CFFileServlet/_cf_image/_cfimg[xx]
 
That URL pattern doesn't point to an actual physical filesystem
location.
That said, I don't know if there's a file being written somewhere or
not.

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307417
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Protecting images

2008-06-13 Thread Richard Dillman
Not that I have ever had need to do this... but there are tools to remove
passwords from PDF's  via Brute Force, Key Search, Dictionary Attack...

   - PDF Password Remover
   - Advanced PDF Password Recovery
   - GuaPDF
   - gsview
   - Brava Reader
   - pdffactory
   - or just print to a file and then create a new PDF.


The long and short of it is nothing gets around that [print screen] button.


*All your images Are belong to me! lol*

On Fri, Jun 13, 2008 at 8:10 AM, Bobby Hartsfield [EMAIL PROTECTED]
wrote:

 Not to nitpick again but if you take out my comments... take out my
 signature ;-)

 I didn't say any of that.

 ..:.:.:.:.:.:.:.:.:.:.
 Bobby Hartsfield
 http://acoderslife.com
 http://cf4em.com

  -Original Message-
 From: Mike Kear [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 13, 2008 4:19 AM
 To: CF-Talk
 Subject: Re: Protecting images

 On Thu, Jun 12, 2008 at 8:20 AM, ColdFusion Developer
 [EMAIL PROTECTED] wrote:
   ...  I personally think if they HAVE to display these images,
 watermarking then converting to flash is their best option (as well as
 copyrighting the images so if the images are stolen the client has a
 bit of recourse in the end). ...
 
 .:.:.:.:.:.:.:.:.:.:.
 Bobby Hartsfield
 http://acoderslife.com
 http://cf4em.com
 

 Not to nitpick, because it doesnt change the basic point of the
 discussion,  but your images are already copyrighted.  All works are
 automatically copyrighted the moment they are created.   There is no
 registration required to copyright anything like you have to with a
 patent or a trademark.

 There is a copyright registration process, and that is set up to make
 it easy to PROVE your entitelements, thats all. Your entitlements
 under the copyright law exist the moment you create the images.
 There are some differences in what happens if you try to enforce your
 rights if you have registered your copyright, so its definitely a good
 thing to complete the copyright registration process, but its
 important to understand that your rights exist in any work you create,
 images and text and code and any other thing (including this email)
 simply by creating the work.

 In short, if you create an image, you automatically own the copyright
 until such time as you assign the right to someone else, or if you
 created it .under an arrangement that means it is already owned by
 someone else  (e.g. if you are working as an employee at the time).

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



 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307418
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 thinks 0F is boolean.

2008-06-13 Thread Adam Haskell
This is going way off topic from the original thread but still pertinent to
cf-talk, licenses and how licenses work is an important thing for anyone
using or producing software. I'd assume many folks on this list are
producing software, Mike D can always correct me and push me to another HoF
list :)

You do not own the program, according to most EULAs. Most EULAs outline you
own the right to run the application and you own the output of an
application. For example, assuming you own a legal copy of MS office, you do
not own Microsoft Office's software. What you own is the right to run
Microsoft Office's software on a single personal computer that you own. You
also have full rights and ownership of documents produced and published with
the software you are using. Common misconception in software industry is
that you own the software, this is simply not true.


Adam Haskell


On Fri, Jun 13, 2008 at 2:25 AM, denstar [EMAIL PROTECTED] wrote:

 On Wed, Jun 11, 2008 at 6:32 AM, Adam Haskell wrote:
  I won't say yes or no one way or another on the legality or really even
 the
  morality but I will say this puts you in a compromising position for
  submitting work to any open source CFML engine.  We've already had the
  discussion surrounding certain comments coming from the CF community
 about
  viewing source code and decided that we will most likely never be accept
  code from folks that openly admit to these types of activities. An OS
  project can not risk even in the slightest taking compromised code.

 But if a friend of a friend submitted the code it would be cool?

 I'm glad that the legal battles have played out as they have, for the
 most part, so far.  Regarding source and whatnot.


 I love the idea that I couldn't legally fix, or even diagnose a
 problem, with something I own.  Really I don't love that idea.
 I love watching chefs do battle.  That's for real.  Void a warranty?,
 sure, but go to jail for tearing the tags off?  Lame! :-P

 There's this whole strange idea about ownership these days.

 Do you know that long ago, things went into the public domain faster
 than they do now?  Why has that changed?

 Oh well.

 That's good stuff to know, Adam.  I guess we can debate the merit of
 copyright and whatnot over on community or OT (assuming I sign up with
 OT-- where I most likely belong|]).

 Guess any submissions I'd make would be suspect.

 Hopefully it takes more than just knowing about such things as
 decompilers-- maybe poor Brad and anyone who read this thread is now
 suspect...  sorry folks.

  * Is decompilation legal?

 Yes, if restricted to legal uses in the section Why is a Java
 decompiler useful? For the same reasons that one can photocopy a few
 pages from a book, a developer may disassemble or decompile executable
 content. We are protected by the notion of fair-use. Reverse
 engineering of an entire application and shiping under a different
 name clearly violates both our license agreement with our end users,
 and this notion of fair-use. It is not our objective to see our tool
 used in this manner.

 (I hope whoever I decompiled this from is ok with the excerpt!)  LOL.

 I'm getting out of hand.  Peace and potatoes!

 --
 Pick me up
 ~ Mom and Dad Save the World

 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307419
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Advice and direction, please.

2008-06-13 Thread Ry Mittlestadt
Hi All,
  I need a little help and direction with a project.  I’ve got 50+ .pdf 
‘journals.’  Each journal has 3 to 5 articles in it.  
  We want to make the journal’s text searchable, and to be able to send 
(download) just the related article(s) instead of the whole journal.
  We’re running CF8 and MySql on windows and we own the journals, so there 
aren’t any copyright issues.

Question 1 – Which search engine – Verity or Google?  
  We already use Verity on our site, but Google is pretty cool and powerful.

Question 2 – Where to store the pdf’s – in a directory or in MySql?  
  I’ve gathered from other people’s posts that there are issues with 
MySql’s BLOB data type.  I don’t know exactly what those issues are - would 
I run into them storing pdf’s in MySql?

Question 3 – pdf files – Should I save each article as a separate file (or 
record) or should I leave the articles in the journal and let CFPDF pull the 
particular article out?

If you’ve had a similar project, what did you do and why?  

Thanks!!


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307420
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


JVM Tuning and cthreads... I'm Back

2008-06-13 Thread Ian Skinner
HISTORY:
We have this new application to generate ~1300 pdf letters using 
cfreport functionality.  To streamline the processing, cfthread tags 
where used to asynchronously process 10 reports at a time, witting each 
finished report to a file.  This feature worked just fine during small 
scale testing creating up to 100 reports.  But when first attempting to 
run all 1300 reports the ColdFusion came crashing down with JRun 
out-of-memory errors.

We dived into the CF8 server monitor to see if we could get a hint on 
what was actually happening.  The first thing I see is that in 'REQUEST 
STATISTICS  Active ColdFusion Threads is that all the threads created 
by this process never died.  Repeat a run and more threads are created, 
but none of them die.  Then looking at MEMORY USAGE  Memory Usage 
Summary we could see that as these perputual threads where created more 
and more memory was being gobbled up by the JVM and never being released.

So this started us down a path to tune our JVM to make better use of the 
servers resources and throttle the process so that these 1300 reports 
could be made with these resources.  We added some code that seemed to 
cause the threads to be closed, but the JVM memory would still grow and 
grow until failure.  We then made some tweeks to jvm.config suggested in 
the previous discussion and the first thing is that another process, 
that previously worked fine, stopped running.  I restored the original 
default JVM settings and this other process started working again.  I 
then, piece by piece, modified the JVM configuration as suggested and 
got something that does not prevent the running of current code.  But 
not our problem code is creating un-dieing threads again.

CURRENT STATE:

jvm.config
--
# Arguments to VM
java.args=-server -Xmx1024m -Xms1024m -Dsun.io.useCanonCaches=false 
-XX:MaxPermSize=192m
-XX:PermSize=192m -server -XX:+UseParallelGC 
-Dsun.rmi.dgc.client.gcInterval=6 -server
-Dsun.rmi.dgc.server.gcInterval=6 
-Dcoldfusion.rootDir={application.home}/

allren.cfm
-
cfinclude template = scripts.cfm
cfset Application.DSN = LIC_DSN

cfset pathDate = #DatePart(, Now()).toString()#/
cfset pIssueDate = #PadDateSegment(DatePart(m, Now()))#  / 
  #PadDateSegment(DatePart(d, Now()))#  / 
  #DatePart(, Now()).toString().substring(2)#

!--- GET RENEWAL ID ---
cfstoredproc procedure=REPORT_UTILS.getBatchRenewals
  dataSource = #LIC_DSN#
  cfprocresult name = ResultFirms
/cfstoredproc

!--- REPORT ---
cfset threadList = 
cfloop index = i from=1 to=#ResultFirms.recordcount#
  cfset threadList = listAppend(threadList,batchRenew_thread#i#)
  cfthread name=batchRenew_thread#i# threadIndex=#i# action=run
 
  !--- GET RENEWAL ID ---
  cfset vRenewalSeq = /
  cfstoredproc procedure=REPORT_UTILS.getRenewalSequenceId
dataSource = #LIC_DSN#
cfprocparam type=out variable=vRenewalSeq 
CFSQLType=CF_SQL_VARCHAR
  /cfstoredproc
 
  !--- PATH --- 
  cfset pathDate = #DatePart(, Now()).toString()#/ 
  cfset vOutputFilePath = RENEWALS_FILE_PATH/
  cfset vOutputFilePath = pathDate  \/
  cfset vOutputFilePath = 
Trim(#ResultFirms[firmno][threadIndex]#)  \/   

  !--- CREATE OUTPUT PATH ---
  cfif DirectoryExists(#vOutputFilePath#) is False
cfdirectory action=create directory=#vOutputFilePath#/
  /cfif
 
  !--- FILE NAME ---
  cfset vOutputFilePath = GetFileName()/
 
  !--- BUILD REPORT ---
  cfreport template=ren.cfr format=pdf overwrite=yes
filename=#vOutputFilePath# 
cfreportparam name=pFirmNo 
value=#ResultFirms[firmno][threadIndex]#
cfreportparam name=pIssueDate value=#DateFormat(pIssueDate, 
'mm/dd/yy')#
cfreportparam name=pRenewalId value=#vRenewalSeq#
  /cfreport
 
  !--- INSERT RENEWAL ---

  cfstoredproc procedure=REPORT_UTILS.insertRenewal
dataSource = #LIC_DSN#
cfprocparam type=in value=#vRenewalSeq# 
CFSQLType=CF_SQL_NUMERIC
cfprocparam type=in 
value=#ResultFirms[firmno][threadIndex]# CFSQLType=CF_SQL_NUMERIC
cfprocparam type=in value=#pathDate# CFSQLType=CF_SQL_NUMERIC
  /cfstoredproc
 
  cfstoredproc procedure=REPORT_UTILS.insertRenewalProductsForFirm
dataSource = #LIC_DSN#
cfprocparam type=in value=#vRenewalSeq# 
CFSQLType=CF_SQL_NUMERIC
cfprocparam type=in 
value=#ResultFirms[firmno][threadIndex]# CFSQLType=CF_SQL_NUMERIC
  /cfstoredproc
   
  /cfthread
/cfloop

cfoutput#replace(listSort(structKeyList(cfthread),'text'),',','br/','ALL')#/cfoutput

cfthread action=join name=#structKeyList(cfthread)#/

cfloop list=#structKeyList(cfthread)# index=thread
cfthread action=terminate name=#thread#/
/cfloop

pBLAH cfoutput#timeformat(now(),'HH:MM:SS:l')#/cfoutput/p

Anybody have any suggestions?

~|
Adobe® ColdFusion® 8 software 8 is the most important and 

RE: Advice and direction, please.

2008-06-13 Thread Andy Matthews
Google can index PDF files can't it? Why not install a Google search on your 
site and let it go to town on your directory structure? 

-Original Message-
From: Ry Mittlestadt [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2008 11:18 AM
To: CF-Talk
Subject: Advice and direction, please.

Hi All,
  I need a little help and direction with a project.  I’ve got 50+ .pdf 
‘journals.’  Each journal has 3 to 5 articles in it.  
  We want to make the journal’s text searchable, and to be able to send 
(download) just the related article(s) instead of the whole journal.
  We’re running CF8 and MySql on windows and we own the journals, so 
there aren’t any copyright issues.

Question 1 – Which search engine – Verity or Google?  
  We already use Verity on our site, but Google is pretty cool and powerful.

Question 2 – Where to store the pdf’s – in a directory or 
in MySql?  
  I’ve gathered from other people’s posts that there are issues 
with MySql’s BLOB data type.  I don’t know exactly what those 
issues are - would I run into them storing pdf’s in MySql?

Question 3 – pdf files – Should I save each article as a separate 
file (or record) or should I leave the articles in the journal and let CFPDF 
pull the particular article out?

If you’ve had a similar project, what did you do and why?  

Thanks!!




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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307422
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: JVM Tuning and cthreads... I'm Back

2008-06-13 Thread Mark Kruger
So... You are creating a total of 1300 threads with this code?

I would be surprised if you could ever get that to run successfully. Some
things to try. You can check the length of a running thread and terminate it
if it runs past a certain time. You could add a sleep to the loop to slow
down the spawning of threads. 

This (untested) example makes the loop sleep for 2 seconds after the
spawning of every 10 threads. This would add 260 seconds to your request but
would likely create enough margin for threads to complete so the thread
queue doesn't build too high.

/cfthread

cfif NOT currentRow MOD 10

cset sleep(2000)/

/cfif
/cfloop


Mark A. Kruger, CFG, MCSE
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2008 11:31 AM
To: CF-Talk
Subject: JVM Tuning and cthreads... I'm Back

HISTORY:
We have this new application to generate ~1300 pdf letters using cfreport
functionality.  To streamline the processing, cfthread tags where used to
asynchronously process 10 reports at a time, witting each finished report to
a file.  This feature worked just fine during small scale testing creating
up to 100 reports.  But when first attempting to run all 1300 reports the
ColdFusion came crashing down with JRun out-of-memory errors.

We dived into the CF8 server monitor to see if we could get a hint on what
was actually happening.  The first thing I see is that in 'REQUEST
STATISTICS  Active ColdFusion Threads is that all the threads created by
this process never died.  Repeat a run and more threads are created, but
none of them die.  Then looking at MEMORY USAGE  Memory Usage Summary we
could see that as these perputual threads where created more and more memory
was being gobbled up by the JVM and never being released.

So this started us down a path to tune our JVM to make better use of the
servers resources and throttle the process so that these 1300 reports could
be made with these resources.  We added some code that seemed to cause the
threads to be closed, but the JVM memory would still grow and grow until
failure.  We then made some tweeks to jvm.config suggested in the previous
discussion and the first thing is that another process, that previously
worked fine, stopped running.  I restored the original default JVM settings
and this other process started working again.  I then, piece by piece,
modified the JVM configuration as suggested and got something that does not
prevent the running of current code.  But not our problem code is creating
un-dieing threads again.

CURRENT STATE:

jvm.config
--
# Arguments to VM
java.args=-server -Xmx1024m -Xms1024m -Dsun.io.useCanonCaches=false
-XX:MaxPermSize=192m -XX:PermSize=192m -server -XX:+UseParallelGC
-Dsun.rmi.dgc.client.gcInterval=6 -server
-Dsun.rmi.dgc.server.gcInterval=6
-Dcoldfusion.rootDir={application.home}/

allren.cfm
-
cfinclude template = scripts.cfm
cfset Application.DSN = LIC_DSN

cfset pathDate = #DatePart(, Now()).toString()#/ cfset pIssueDate =
#PadDateSegment(DatePart(m, Now()))#  / 
  #PadDateSegment(DatePart(d, Now()))#  / 
  #DatePart(, Now()).toString().substring(2)#

!--- GET RENEWAL ID ---
cfstoredproc procedure=REPORT_UTILS.getBatchRenewals
  dataSource = #LIC_DSN#
  cfprocresult name = ResultFirms
/cfstoredproc

!--- REPORT ---
cfset threadList = 
cfloop index = i from=1 to=#ResultFirms.recordcount#
  cfset threadList = listAppend(threadList,batchRenew_thread#i#)
  cfthread name=batchRenew_thread#i# threadIndex=#i# action=run
 
  !--- GET RENEWAL ID ---
  cfset vRenewalSeq = /
  cfstoredproc procedure=REPORT_UTILS.getRenewalSequenceId
dataSource = #LIC_DSN#
cfprocparam type=out variable=vRenewalSeq 
CFSQLType=CF_SQL_VARCHAR
  /cfstoredproc
 
  !--- PATH --- 
  cfset pathDate = #DatePart(, Now()).toString()#/ 
  cfset vOutputFilePath = RENEWALS_FILE_PATH/
  cfset vOutputFilePath = pathDate  \/
  cfset vOutputFilePath = 
Trim(#ResultFirms[firmno][threadIndex]#)  \/   

  !--- CREATE OUTPUT PATH ---
  cfif DirectoryExists(#vOutputFilePath#) is False
cfdirectory action=create directory=#vOutputFilePath#/
  /cfif
 
  !--- FILE NAME ---
  cfset vOutputFilePath = GetFileName()/
 
  !--- BUILD REPORT ---
  cfreport template=ren.cfr format=pdf overwrite=yes
filename=#vOutputFilePath# 
cfreportparam name=pFirmNo 
value=#ResultFirms[firmno][threadIndex]#
cfreportparam name=pIssueDate value=#DateFormat(pIssueDate,
'mm/dd/yy')#
cfreportparam name=pRenewalId value=#vRenewalSeq#
  /cfreport
 
  !--- INSERT RENEWAL ---

  cfstoredproc procedure=REPORT_UTILS.insertRenewal
dataSource = #LIC_DSN#
cfprocparam type=in value=#vRenewalSeq#
CFSQLType=CF_SQL_NUMERIC
cfprocparam type=in 
value=#ResultFirms[firmno][threadIndex]# 

Re: JVM Tuning and cthreads... I'm Back

2008-06-13 Thread Ian Skinner
Mark Kruger wrote:
 So... You are creating a total of 1300 threads with this code?
   
Yes, 10 at a time per the Administrator setting with the others queued 
up awaiting their turn.

 This (untested) example makes the loop sleep for 2 seconds after the
 spawning of every 10 threads. This would add 260 seconds to your request but
 would likely create enough margin for threads to complete so the thread
 queue doesn't build too high.

We have played with using a throttle such as this to slow processing.  
But my primary concern right now is that the threads do not go away even 
when all the processing is done and the files exist, the server monitor 
show all threads created still running.  I don't see how slowing this 
down is going to help, until I find someway to make them somehow go away 
sooner or later.  Even running the code to just create 10 files leaves 
10 threads hanging, run it again and there are 20 threads hanging with 
repeating thread names.

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307424
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: JVM Tuning and cthreads... I'm Back

2008-06-13 Thread Mark Kruger
Ah I see. So the terminate call does not appear to be working.

 


Mark A. Kruger, CFG, MCSE
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2008 12:25 PM
To: CF-Talk
Subject: Re: JVM Tuning and cthreads... I'm Back

Mark Kruger wrote:
 So... You are creating a total of 1300 threads with this code?
   
Yes, 10 at a time per the Administrator setting with the others queued up
awaiting their turn.

 This (untested) example makes the loop sleep for 2 seconds after the 
 spawning of every 10 threads. This would add 260 seconds to your 
 request but would likely create enough margin for threads to complete 
 so the thread queue doesn't build too high.

We have played with using a throttle such as this to slow processing.  
But my primary concern right now is that the threads do not go away even
when all the processing is done and the files exist, the server monitor show
all threads created still running.  I don't see how slowing this down is
going to help, until I find someway to make them somehow go away sooner or
later.  Even running the code to just create 10 files leaves 10 threads
hanging, run it again and there are 20 threads hanging with repeating thread
names.



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307425
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: JVM Tuning and cthreads... I'm Back

2008-06-13 Thread Mark Kruger
Ian,

Ok... What if you strip out the DB calls and strip out the Report calls -
just run the thread creation and removal. Do the threads terminate then?

Perhaps the threads are not terminating because of one of these external
calls. There is a handoff from CF to the DB for example. DB issues can
definitely causing hanging threads (in general) on your CF server...  


-Mark 


Mark A. Kruger, CFG, MCSE
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2008 12:25 PM
To: CF-Talk
Subject: Re: JVM Tuning and cthreads... I'm Back

Mark Kruger wrote:
 So... You are creating a total of 1300 threads with this code?
   
Yes, 10 at a time per the Administrator setting with the others queued up
awaiting their turn.

 This (untested) example makes the loop sleep for 2 seconds after the 
 spawning of every 10 threads. This would add 260 seconds to your 
 request but would likely create enough margin for threads to complete 
 so the thread queue doesn't build too high.

We have played with using a throttle such as this to slow processing.  
But my primary concern right now is that the threads do not go away even
when all the processing is done and the files exist, the server monitor show
all threads created still running.  I don't see how slowing this down is
going to help, until I find someway to make them somehow go away sooner or
later.  Even running the code to just create 10 files leaves 10 threads
hanging, run it again and there are 20 threads hanging with repeating thread
names.



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307426
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: JVM Tuning and cthreads... I'm Back

2008-06-13 Thread Chris Norloff
Well, in CF7, you control the thread life in jrun.xml (in
C:\JRun4\servers\cfusion\SERVER-INF for multi-server config on Windows).

There's two places to change the settings, in the SchedulerService and the
ProxyService (pick the right ProxyService for your web server). One is for
the web server to the web server connector, one is for ColdFusion to the web
server connector, I believe.


  service class=jrunx.scheduler.SchedulerService name=SchedulerService
...
attribute name=timeout300/attribute

  service class=jrun.servlet.jrpp.JRunProxyService name=ProxyService
...
attribute name=timeout300/attribute

Using basic jrun metrics logging, I've watched our threads timeout after 5
min. of inactivity, so it seems to be working for us (CFMX 7.02 multiserver
on WinServ 2003).

hth,
Chris

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2008 1:25 PM
To: CF-Talk
Subject: Re: JVM Tuning and cthreads... I'm Back

Mark Kruger wrote:
 So... You are creating a total of 1300 threads with this code?
   
Yes, 10 at a time per the Administrator setting with the others queued up
awaiting their turn.

 This (untested) example makes the loop sleep for 2 seconds after the 
 spawning of every 10 threads. This would add 260 seconds to your 
 request but would likely create enough margin for threads to complete 
 so the thread queue doesn't build too high.

We have played with using a throttle such as this to slow processing.  
But my primary concern right now is that the threads do not go away even
when all the processing is done and the files exist, the server monitor show
all threads created still running.  I don't see how slowing this down is
going to help, until I find someway to make them somehow go away sooner or
later.  Even running the code to just create 10 files leaves 10 threads
hanging, run it again and there are 20 threads hanging with repeating thread
names.




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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307427
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: JVM Tuning and cthreads... I'm Back

2008-06-13 Thread Didgiman
Just a suggestion: make sure Memory Tracking is not enabled in your CF
monitor. That's what killed our application with similar symptoms.

Wim.

On Fri, Jun 13, 2008 at 7:50 PM, Chris Norloff [EMAIL PROTECTED] wrote:

 Well, in CF7, you control the thread life in jrun.xml (in
 C:\JRun4\servers\cfusion\SERVER-INF for multi-server config on Windows).

 There's two places to change the settings, in the SchedulerService and the
 ProxyService (pick the right ProxyService for your web server). One is for
 the web server to the web server connector, one is for ColdFusion to the
 web
 server connector, I believe.


  service class=jrunx.scheduler.SchedulerService name=SchedulerService
...
attribute name=timeout300/attribute
 
  service class=jrun.servlet.jrpp.JRunProxyService name=ProxyService
...
attribute name=timeout300/attribute

 Using basic jrun metrics logging, I've watched our threads timeout after 5
 min. of inactivity, so it seems to be working for us (CFMX 7.02 multiserver
 on WinServ 2003).

 hth,
 Chris

 -Original Message-
 From: Ian Skinner [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 13, 2008 1:25 PM
 To: CF-Talk
 Subject: Re: JVM Tuning and cthreads... I'm Back

 Mark Kruger wrote:
  So... You are creating a total of 1300 threads with this code?
 
 Yes, 10 at a time per the Administrator setting with the others queued up
 awaiting their turn.

  This (untested) example makes the loop sleep for 2 seconds after the
  spawning of every 10 threads. This would add 260 seconds to your
  request but would likely create enough margin for threads to complete
  so the thread queue doesn't build too high.

 We have played with using a throttle such as this to slow processing.
 But my primary concern right now is that the threads do not go away even
 when all the processing is done and the files exist, the server monitor
 show
 all threads created still running.  I don't see how slowing this down is
 going to help, until I find someway to make them somehow go away sooner or
 later.  Even running the code to just create 10 files leaves 10 threads
 hanging, run it again and there are 20 threads hanging with repeating
 thread
 names.




 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307428
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: JVM Tuning and cthreads... I'm Back

2008-06-13 Thread Ian Skinner
Mark Kruger wrote:
 Ian,

 Ok... What if you strip out the DB calls and strip out the Report calls -
 just run the thread creation and removal. Do the threads terminate then?
I'll give this a try, report back later.


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307429
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


many sites, one codebase

2008-06-13 Thread Rick Root
I have a client who is running hundreds of web sites using the same code
base in subdirectories of the parent domain.

Example.  www.mydomain.com/site1/index.cfm and
www.mydomain.com/site2/index.cfm.

They are duplicating the entire file structure like this:

C:\inetpub\wwwroot\site1\index.cfm
C:\Inetpub\wwwroot\site2\index.cfm

EVERYHING under site1 and site2 is duplicated.

My first inclination is to make site1 and site2 virtual directories and
have all these virtual directories point to the same path.  Then the
application.cfm can get the unique site ID (currently hardcoded into each
application.cfm) from a database based on the cgi.path_translated or
cgi.script_name

Seem reasonable?  Alternatives?

-- 
Rick Root
New Brian Vander Ark Album, songs in the music player and cool behind the
scenes video at www.myspace.com/brianvanderark


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307430
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: JVM Tuning and cthreads... I'm Back

2008-06-13 Thread Ian Skinner
Mark Kruger wrote:
 Ian,

 Ok... What if you strip out the DB calls and strip out the Report calls -
 just run the thread creation and removal. Do the threads terminate then?

Nope they do not terminate.  I removed all the database and report logic 
and just wrote a simple file with a simple string in it.  It took less 
then a second do this for 50 instances, but all 50 threads are still 
running as I type this message.

cfloop index = i from=1 to=50
cfset threadList = listAppend(threadList,batchRenew_thread#i#)
  cfthread name=batchRenew_thread#i# threadIndex=#i# action=run

  !--- PATH --- 
  cfset pathDate = #DatePart(, Now()).toString()#/ 
  cfset vOutputFilePath = RENEWALS_FILE_PATH/
  cfset vOutputFilePath = pathDate  \/
  cfset vOutputFilePath = 
Trim(#ResultFirms[firmno][threadIndex]#)  \/   

  !--- CREATE OUTPUT PATH ---
  cfif DirectoryExists(#vOutputFilePath#) is False
cfdirectory action=create directory=#vOutputFilePath#/
  /cfif
 
  !--- FILE NAME ---
cfset vOutputFilePath = 'foobar.txt'
   
cffile action=write nameconflict=overwrite 
file=#vOutputFilePath# output=TESTING #timeFormat(now(),'hh:mm:ss:l')#
  /cfthread
/cfloop


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307431
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: many sites, one codebase

2008-06-13 Thread Andy Matthews
That's almost exactly how we do it. We have 3000+ websites running off the
same codebase. 

-Original Message-
From: Rick Root [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2008 1:20 PM
To: CF-Talk
Subject: many sites, one codebase

I have a client who is running hundreds of web sites using the same code
base in subdirectories of the parent domain.

Example.  www.mydomain.com/site1/index.cfm and
www.mydomain.com/site2/index.cfm.

They are duplicating the entire file structure like this:

C:\inetpub\wwwroot\site1\index.cfm
C:\Inetpub\wwwroot\site2\index.cfm

EVERYHING under site1 and site2 is duplicated.

My first inclination is to make site1 and site2 virtual directories and
have all these virtual directories point to the same path.  Then the
application.cfm can get the unique site ID (currently hardcoded into each
application.cfm) from a database based on the cgi.path_translated or
cgi.script_name

Seem reasonable?  Alternatives?

--
Rick Root
New Brian Vander Ark Album, songs in the music player and cool behind the
scenes video at www.myspace.com/brianvanderark




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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307432
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: many sites, one codebase

2008-06-13 Thread Raymond Camden
What I did for RIAForge was to sniff the host name. So both
blogcfc.riaforge.org and canvas.riaforge.org run the same code, but I
know the project (blogcfc or canvas) and from that I know what data to
load. You can download the entire RIAForge code base if you want to
peak.

On Fri, Jun 13, 2008 at 1:20 PM, Rick Root [EMAIL PROTECTED] wrote:
 I have a client who is running hundreds of web sites using the same code
 base in subdirectories of the parent domain.

 Example.  www.mydomain.com/site1/index.cfm and
 www.mydomain.com/site2/index.cfm.

 They are duplicating the entire file structure like this:

 C:\inetpub\wwwroot\site1\index.cfm
 C:\Inetpub\wwwroot\site2\index.cfm

 EVERYHING under site1 and site2 is duplicated.

 My first inclination is to make site1 and site2 virtual directories and
 have all these virtual directories point to the same path.  Then the
 application.cfm can get the unique site ID (currently hardcoded into each
 application.cfm) from a database based on the cgi.path_translated or
 cgi.script_name

 Seem reasonable?  Alternatives?

 --
 Rick Root
 New Brian Vander Ark Album, songs in the music player and cool behind the
 scenes video at www.myspace.com/brianvanderark


 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307433
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: many sites, one codebase

2008-06-13 Thread Yves Arsenault
I also have something similar

Running several sites of a same code base.

Although, I have Application.cfm files that are unique to each as well as
html template files but the system's core is running off the same code.

I also have this system occasionally writting cfm files on individual sites
as they add to their content.

Yves

On Fri, Jun 13, 2008 at 3:33 PM, Andy Matthews [EMAIL PROTECTED]
wrote:

 That's almost exactly how we do it. We have 3000+ websites running off the
 same codebase.

 -Original Message-
 From: Rick Root [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 13, 2008 1:20 PM
 To: CF-Talk
 Subject: many sites, one codebase

 I have a client who is running hundreds of web sites using the same code
 base in subdirectories of the parent domain.

 Example.  www.mydomain.com/site1/index.cfm and
 www.mydomain.com/site2/index.cfm.

 They are duplicating the entire file structure like this:

 C:\inetpub\wwwroot\site1\index.cfm
 C:\Inetpub\wwwroot\site2\index.cfm

 EVERYHING under site1 and site2 is duplicated.

 My first inclination is to make site1 and site2 virtual directories and
 have all these virtual directories point to the same path.  Then the
 application.cfm can get the unique site ID (currently hardcoded into each
 application.cfm) from a database based on the cgi.path_translated or
 cgi.script_name

 Seem reasonable?  Alternatives?

 --
 Rick Root
 New Brian Vander Ark Album, songs in the music player and cool behind the
 scenes video at www.myspace.com/brianvanderark




 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307434
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: many sites, one codebase

2008-06-13 Thread Gerald Guido
I had a similar set up as well. It keyed off of the domain name as well.

That one started out well but ended up imploding. The theory was to have
clone-able sites. But the client changed so many things that I ended up with
5 very different sites running off the same code base. They were rather
complex e-commerce sites to begin with (~90-100+ tables per site).

After 3 years of constant changes nobody knew what did what anymore
(including the client). It was a maintenance nightmare and turned into a
classic Big Ball of Mud. This was right before CF 6 was released so it was
CF 5 CFWACK style development. i.e. no OO methodology.

Just something to keep in mind when planning.

G


On Fri, Jun 13, 2008 at 2:33 PM, Andy Matthews [EMAIL PROTECTED]
wrote:

 That's almost exactly how we do it. We have 3000+ websites running off the
 same codebase.

 -Original Message-
 From: Rick Root [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 13, 2008 1:20 PM
 To: CF-Talk
 Subject: many sites, one codebase

 I have a client who is running hundreds of web sites using the same code
 base in subdirectories of the parent domain.

 Example.  www.mydomain.com/site1/index.cfm and
 www.mydomain.com/site2/index.cfm.

 They are duplicating the entire file structure like this:

 C:\inetpub\wwwroot\site1\index.cfm
 C:\Inetpub\wwwroot\site2\index.cfm

 EVERYHING under site1 and site2 is duplicated.

 My first inclination is to make site1 and site2 virtual directories and
 have all these virtual directories point to the same path.  Then the
 application.cfm can get the unique site ID (currently hardcoded into each
 application.cfm) from a database based on the cgi.path_translated or
 cgi.script_name

 Seem reasonable?  Alternatives?

 --
 Rick Root
 New Brian Vander Ark Album, songs in the music player and cool behind the
 scenes video at www.myspace.com/brianvanderark




 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307435
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


help!! = ColdFusion.Window.create Refresh

2008-06-13 Thread torsten p
I found some vague info on the web regarding refreshOnShow:true not working 
when using ColdFusion.Window.create instead of cfwindow
is this the case? is there a work around?

function goAddNote(theType,theID) {
var theURL = 'index.cfm?action=contact_info.add_notetype=' + theType + 'id=' 
+ theID;

var windowOptions = new Object();
windowOptions.width = 800;
windowOptions.height = 600;
windowOptions.center = true;
windowOptions.modal = false;
windowOptions.resizable = true;
windowOptions.initshow = false;
windowOptions.draggable = false;
windowOptions.closeable = true;
windowOptions.refreshOnShow = true;
windowOptions.bodystyle = 'margin-left: 0px; margin-top: 0px; padding-top: 0px; 
padding-left: 0px; background-color: ff;';

ColdFusion.Window.create('Addnote1', 'Add Notes', theURL, windowOptions);
ColdFusion.Window.show('Addnote1');
}


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307436
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Weird Column Name

2008-06-13 Thread Joe Velez
maybe surround it in quotes?
or the obvious - rename the column =)

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307437
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Weird Column Name

2008-06-13 Thread Ian Skinner
It's a trick I do not like to use, but listing the column names in an 
insert statement is optional.

If you wrote it like this.

INSERT INTO LS07DATA
(aValue,bValue,cValue)

The database should (I am not sure about Access) insert the values into 
the first three columns of the table.



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307438
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: com object memory leak problem

2008-06-13 Thread Daniel Roberts
I gave up on what I was doing back a couple months ago, which was attempting to 
provide a server-wide thread-safe service to the same com object. However I'm 
running into a memory problem now in another process that uses the com object, 
and it may be the source of my problem though I can't say for sure.

Here is a function that uses the com object in question. I have dumped 
variables scope before and after hitting this function and as I described 
before, the actually values of of arguments to setField are saved into 
variables scoope. If I have URL or FORM variables with the same name as the com 
object fields errors occurs. It seems like the com object is making ambiguous 
calls on ColdFusion variables, resulting in stuff being set in variables scope 
and form/url variables causing problem. Just seems crazy to me that this would 
be possible but I know very little about com objects.

cffunction name=zipSearch
cfargument 
name=obj 
required=true 
hint=address matching com object that has already been 
initialized

cfargument 
name=addressInfo 
type=struct 
required=true

cfargument 
name=updateAddress 
required=false 
default=false 
hint=whether to return corrected street address information

cfset var returnAddressInfo = duplicate(arguments.addressInfo)

cfset arguments.obj.clearBuffers()

!--- set input field values ---
cfset arguments.obj.setField(street,arguments.addressInfo.street)   

cfset arguments.obj.setField(street2,arguments.addressInfo.street2)
cfset arguments.obj.setField(city,arguments.addressInfo.city)
cfset arguments.obj.setField(state,arguments.addressInfo.state)
cfif len(arguments.addressInfo.zip)
cfset arguments.obj.setField(zip,arguments.addressInfo.zip)
/cfif

cfset arguments.obj.lookup()

!--- retrieve info after look up ---
cfif arguments.updateAddress
!--- overwrite original info ---
cfset returnAddressInfo.street = 
arguments.obj.getField(street)br /
cfset returnAddressInfo.street2 = 
arguments.obj.getField(street2)
cfset returnAddressInfo.city = arguments.obj.getField(city)
cfset returnAddressInfo.state = 
arguments.obj.getField(state)
/cfif

cfset returnAddressInfo.zip5 = arguments.obj.getField(zip)
cfset returnAddressInfo.plus4 = arguments.obj.getField(plus4)

cfif len(returnAddressInfo.plus4) eq 4
cfset returnAddressInfo.zip = arguments.obj.getField(zip)  
'-'  arguments.obj.getField(plus4)
cfelse
cfset returnAddressInfo.zip = arguments.obj.getField(zip)
/cfif

cfset returnAddressInfo.errorCode = 
arguments.obj.getField(errorCode)
cfset returnAddressInfo.errorMessage = 
arguments.obj.getField(errorMsg)

cfreturn returnAddressInfo
/cffunction 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307439
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: JVM Tuning and cthreads... I'm Back

2008-06-13 Thread Mark Kruger
Ian,

I know I'm thick headed but... Why did you leave the file operations in
there?  You should eliminate that as well as a possibility. 


Mark A. Kruger, CFG, MCSE
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2008 1:25 PM
To: CF-Talk
Subject: Re: JVM Tuning and cthreads... I'm Back

Mark Kruger wrote:
 Ian,

 Ok... What if you strip out the DB calls and strip out the Report 
 calls - just run the thread creation and removal. Do the threads terminate
then?

Nope they do not terminate.  I removed all the database and report logic and
just wrote a simple file with a simple string in it.  It took less then a
second do this for 50 instances, but all 50 threads are still running as I
type this message.

cfloop index = i from=1 to=50
cfset threadList = listAppend(threadList,batchRenew_thread#i#)
  cfthread name=batchRenew_thread#i# threadIndex=#i# action=run

  !--- PATH --- 
  cfset pathDate = #DatePart(, Now()).toString()#/ 
  cfset vOutputFilePath = RENEWALS_FILE_PATH/
  cfset vOutputFilePath = pathDate  \/
  cfset vOutputFilePath = 
Trim(#ResultFirms[firmno][threadIndex]#)  \/   

  !--- CREATE OUTPUT PATH ---
  cfif DirectoryExists(#vOutputFilePath#) is False
cfdirectory action=create directory=#vOutputFilePath#/
  /cfif
 
  !--- FILE NAME ---
cfset vOutputFilePath = 'foobar.txt'
   
cffile action=write nameconflict=overwrite 
file=#vOutputFilePath# output=TESTING #timeFormat(now(),'hh:mm:ss:l')#
  /cfthread
/cfloop




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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307440
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: JVM Tuning and cthreads... I'm Back

2008-06-13 Thread Ian Skinner
Mark Kruger wrote:
 Ian,

 I know I'm thick headed but... Why did you leave the file operations in
 there?  You should eliminate that as well as a possibility. 
To have something that actually showed something happening since these 
are fire and forget asynchronous requests, nothing is returned to the 
browser.



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307441
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: JVM Tuning and cthreads... I'm Back

2008-06-13 Thread Ian Skinner
Mark Kruger wrote:
 Ian,

 I know I'm thick headed but... Why did you leave the file operations in
 there?  You should eliminate that as well as a possibility. 

For the sake of thoroughness, I commented out all code in the the 
threads...  My page not consitts of an cfthread... tag, several lines 
of CFML comments and a closing /cfthread tag.

I run this once and I have 50 open and hanging threads.  Just like every 
other time I have run this today.


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307442
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Weird Column Name

2008-06-13 Thread Qing Xia
I am really not a big fan of it, but I think maybe in this situation the
cfinsert tag can be useful.  You would not have to list the column name
with it.

Tracy

On Fri, Jun 13, 2008 at 4:13 PM, Ian Skinner [EMAIL PROTECTED] wrote:

 It's a trick I do not like to use, but listing the column names in an
 insert statement is optional.

 If you wrote it like this.

 INSERT INTO LS07DATA
 (aValue,bValue,cValue)

 The database should (I am not sure about Access) insert the values into
 the first three columns of the table.



 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307443
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: many sites, one codebase

2008-06-13 Thread Wil Genovese
We do something similar for 36,000+ sites that all have the same shared core
code base.  We dynamically set the  application name using a unique
identifier.  Then each application is unique but the code is shared.

 Although, I have Application.cfm files that are unique to each
That is very close to how our setup runs.  Every site has it's own folder
and it own application.cfm and index.cfm.  The index.cfm is nothing more
than an include to the main shared index.cfm that runs everything.

 After 3 years of constant changes nobody knew what did what anymore
(including the client). It was a maintenance nightmare and turned into a
classic Big Ball of Mud. This was right before CF 6 was released so it was
CF 5 CFWACK style development. i.e. no OO methodology.

We are in that boat right now - the rewriting has begun.  We moved from cf5
to cf7 and now gearing up for cf8.  Bring on the OO!

Cheers,

Wil Genovese
Sr. Web Application Developer
Wolfnet Technologies, LLC


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307444
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


FLIP Question, app planning, opinions solicited.

2008-06-13 Thread Frank
Note: A bit of an explanation (request for feedback) then the 
question a bit lower down.

So I finally got tired of beating myself up for some ten year old 
code that I wrote, and I'm planning a new version of my cms in 
fusebox, but this time I'm not going to get caught with my pants 
down, I'm planning it properly.

I'm learning how to do it the FLIP way. First thing, I make a list of 
the app's mission, the clients it'll serve, and the features (what it will do)

Then I went and got myself some flip chart paper (no pun intended) 
and started drawing what the front end will look like based on the 
loose ideas that I've had. This is what the user will see and use. 
Now I'm working on the admin side.

As I switch between the two, I delve down, for example, if on the 
admin side I have an edit article view, then it also implies an 
image upload function! Whoops forgot to add that. Write it down and 
draw it on the flip chart paper. When I've got all of this down, then 
it boils down to fields, ins and outs, then the database.

I hope I've got this right so far. Does this sound right to you?

I'm trying to use the  Wireframe editor/view (5 beta) and the first 
thing that jumped out at me is the Home page. It fundamentally 
includes a number of circuits and fuses (displaying banners, 
navigation, promotions, bread crumbs, etc). The admin side editing 
functions also include a number of circuits and fuses.

I can write the responsibilities as I'm the first page the user 
sees. I display the navigation of the site, the introductory content 
and all associated fuse outputs, but when it comes to all the inputs 
and outputs,  the variations are unlimited as new fuses can be 
included or not. How would I describe this?

How would you approach this?

Thanks for your opinions.




Frank Marion [EMAIL PROTECTED]  Keep the signal high.




-- 
No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 270.3.0/1501 - Release Date: 2008-06-13 6:33 
AM



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307445
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFDocument PDF output request producing errors

2008-06-13 Thread Wil Genovese
I have not tried writing a PDF to disk with cfdocument, but my guess is that
like every other file operation in CF you need to specify the exact and full
file path.

ie - filename='d:\wwwroot\mywebsite\documents\stg.pdf'


Wil Genovese
Sr. Web Application Developer
WolfNet Technologies, LLC


On Fri, Jun 13, 2008 at 8:55 AM, Kevin Kelly [EMAIL PROTECTED] wrote:

 I am not sure what I am doing wrong here, but I have tried this about a
 bunch of times so far. I believe that this is correct for the top.

 !--- START EXPORT SNIPPET---
 cfdocument format=pdf
   filename='stg.pdf'
   orientation=#URL.frmt#
   pagetype=custom
   pageheight=#VARIABLES.numH#
   pagewidth=#VARIABLES.numW#
   scale='100'
   overwrite = no

 !--- END EXPORT SNIPPET---

 My issue is that the document is not outputting to a separate file.
 However, without the filename, I get the desired effect for browser output.
 Suggestions, please.

 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307446
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: JVM Tuning and cthreads... I'm Back

2008-06-13 Thread Brad Wood
Just throwing something out here...

Since you have limited the number of threads that can run at once to 10,
why not set it up so each thread processes more than one PDF.  That way
you don't have to create so many threads.  If they can't run all at once
it seems kind of pointless to use 1300 of them anyway.

Set each thread up to loop and process 130 documents.  Then kick off all
10 of them.  

~Brad

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307447
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Binding a CFC

2008-06-13 Thread Raymond Camden
SHow us the entire method. This looks to be a bug in your CFC code.
Ie, not an ajax issue at all.

In fact, if you make a new CFM, use createObject, and call the method,
do you get the same error?


On Wed, Jun 11, 2008 at 4:30 PM, Ethan Harris [EMAIL PROTECTED] wrote:
 Yes - I can see the request and response in Firebug - it's trying to return 
 the query, but there are several errors in the text listed:

 Entity has incorrect type for being called as a function.
 The symbol you provided rateQuery (a query created in the cfc method) is not 
 the name of a function.

 Does this mean that the problem isn't in the location of the file, but 
 actually the query syntax?


 Interestingly, if I switch over and try to bind a CFM, I can get it to work 
 in Firefox but not IE(6).  Unfortunately, my boss asked specifically for a 
 CFC.


 I currently have a copy of the CFC everywhere (I made quite a mess):
 C:\ColdFusion8
 C:\ColdFusion8\wwwroot
 C:\Inetpub
 C:\Inetpub\wwwroot
 C:\Inetpub\wwwroot\aamAdmin - (where the database is)
 C:\Inetpub\aamAdminCurrent
 C:\Inetpub\aamAdminCurrent\cfcs - (where my mapping is)
 C:\Inetpub\aamAdminCurrent\trunk -- This is the file that is actually 
 responding
 C:\Inetpub\aamAdminCurrent\trunk\operations -- This is where the page is 
 located


Do you see an HTTP request in a tool like Firebug?

On Wed, Jun 11, 2008 at 3:33 PM, Ethan Harris [EMAIL PROTECTED] wrote:
--
===
Raymond Camden, VP of Software Dev, Broadchoice

Email : [EMAIL PROTECTED]
Blog : www.coldfusionjedi.com
AOL IM : cfjedimaster

Keep up to date with the community: http://www.coldfusionbloggers.org

 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307448
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: FLIP Question - Oops. Sorry, wrong list!

2008-06-13 Thread Frank
At 05:25 PM 2008-06-13, you wrote:
Note: A bit of an explanation (request for feedback) then the
question a bit lower down.

Ooops. Sorry guys, wrong list.



Frank Marion [EMAIL PROTECTED]  Keep the signal high.




-- 
No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 270.3.0/1501 - Release Date: 2008-06-13 6:33 
AM



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307449
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: many sites, one codebase

2008-06-13 Thread Jim Davis
 -Original Message-
 From: Rick Root [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 13, 2008 2:20 PM
 To: CF-Talk
 Subject: many sites, one codebase
 
 I have a client who is running hundreds of web sites using the same
 code
 base in subdirectories of the parent domain.
 
 Example.  www.mydomain.com/site1/index.cfm and
 www.mydomain.com/site2/index.cfm.
 
 They are duplicating the entire file structure like this:
 
 C:\inetpub\wwwroot\site1\index.cfm
 C:\Inetpub\wwwroot\site2\index.cfm
 
 EVERYHING under site1 and site2 is duplicated.

One of the best things I ever did was to abstract everything that made sense
into CFCs.  The CFCs are shared and use a broker model for DB access so the
same codebase can easily support any number of databases/DBMSs.

Each site, for example, might instantiate an Application CFC which
contains site-specific properties - but all of the code is shared.

Really the only thing in the site's directories are the site specific
material.

Jim Davis


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307450
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extending Application.cfc

2008-06-13 Thread Will Tomlinson
So, basically, if I don't want to rethink and rebuild my whole development
environment, I should stick with good 'ol Application.CFM?
There you could simply do cfinclude template=../Application.cfm.


Dude, I went through this same exact issue. I fought and fought myself over 
changing my development environment. 

Do what I didinstall apache, change a few simple settings in apache's httpd 
config file, add a few dev domains in your windows hosts file, and presto, you 
have an easy fix. We're talkin' an hour or less. Bam - done. 

Now, I have dev url's like so:

local.mylocalsite1
local.mylocalsite2

It's sweet!

Will



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307451
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Extending Application.cfc

2008-06-13 Thread Dave Watts
 Dude, I went through this same exact issue. I fought and 
 fought myself over changing my development environment. 
 
 Do what I didinstall apache, change a few simple settings 
 in apache's httpd config file, add a few dev domains in your 
 windows hosts file, and presto, you have an easy fix. We're 
 talkin' an hour or less. Bam - done. 

As much as it pains me to write this, I agree with Will.

Just kidding, Will.

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;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307452
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Extending Application.cfc

2008-06-13 Thread Will Tomlinson
Just kidding, Will.

Phe! 

I was about ready ta send the disruptor after ya

:)



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307453
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Extending Application.cfc

2008-06-13 Thread Brad Wood
Speaking of... what ever happened to Dave the Disruptor?

~Brad

-Original Message-
From: Will Tomlinson [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2008 5:47 PM
To: CF-Talk
Subject: Re: Extending Application.cfc

Just kidding, Will.

Phe! 

I was about ready ta send the disruptor after ya

:)



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307454
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Yet another validating email addresses question

2008-06-13 Thread Les Mizzell
What works better in CF7 for validating an email address?

isValid?
isValid(email, request.email)

or something like:

function IsEmail(address) {
if(REFindNoCase([[:alnum:]_\.\-]+@([[:alnum:]_\.\-]+\.)+[[:alpha:]]{2,4},address))
 
return TRUE;
else return FALSE;
}

I've been using IsEmail, and it's been working pretty good. Today, the 
client using the site sends to a couple of hundred messages out to 
addresses like:
[EMAIL PROTECTED]

IsEmail validated them, and they were delivered properly.

But there was one in the list that was *invalid* and isEmail let it 
through: [EMAIL PROTECTED]@somewhere.com.rpost.org

IsEmail cleared it, and so CFMAIL threw an error when it tried to send, 
triggering my error trapping and aborting sending the rest.

So, the questions are:
1. What would isValid have done with [EMAIL PROTECTED]? 
2. What would it have done with 
[EMAIL PROTECTED]@somewhere.com.rpost.org?

3. isValid does *not* match up with the CFMAIL tag when it comes to what 
each will allow, creating some obvius problems.  Is there anything out 
there that matches more closely?



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307455
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extending Application.cfc

2008-06-13 Thread Charlie Griefer
well if you speak his name 3 times he appears... that was twice, so
i'm begging everybody here... :P

On Fri, Jun 13, 2008 at 3:53 PM, Brad Wood [EMAIL PROTECTED] wrote:
 Speaking of... what ever happened to Dave the Disruptor?

 ~Brad

 -Original Message-
 From: Will Tomlinson [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 13, 2008 5:47 PM
 To: CF-Talk
 Subject: Re: Extending Application.cfc

Just kidding, Will.

 Phe!

 I was about ready ta send the disruptor after ya

 :)



 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307456
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: many sites, one codebase

2008-06-13 Thread Rick Faircloth
Jim, I'd like to know more about this.  It's all fairly new
to me since I've only been with CF 8 for about 3 months now
and I came straight from CF 4.5.

Is there a particular tutorial online that you know of that
walks a newbie to this kind of model through the process
of using CFC's?

Rick

PS - Rick...hope you don't mind me asking this question in your
thread.  Not trying to hijack it!  I'm working on sites that need
the same model for code reuse you described in your previous post.

 
 One of the best things I ever did was to abstract everything that made sense
 into CFCs.  The CFCs are shared and use a broker model for DB access so the
 same codebase can easily support any number of databases/DBMSs.
 
 Each site, for example, might instantiate an Application CFC which
 contains site-specific properties - but all of the code is shared.
 
 Really the only thing in the site's directories are the site specific
 material.
 
 Jim Davis
 



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307457
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extending Application.cfc

2008-06-13 Thread Didgiman
Who is Dave the Disruptor?

Oops, did I wake him up?

On Sat, Jun 14, 2008 at 12:58 AM, Charlie Griefer [EMAIL PROTECTED]
wrote:

 well if you speak his name 3 times he appears... that was twice, so
 i'm begging everybody here... :P

 On Fri, Jun 13, 2008 at 3:53 PM, Brad Wood [EMAIL PROTECTED]
 wrote:
  Speaking of... what ever happened to Dave the Disruptor?
 
  ~Brad
 
  -Original Message-
  From: Will Tomlinson [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 13, 2008 5:47 PM
  To: CF-Talk
  Subject: Re: Extending Application.cfc
 
 Just kidding, Will.
 
  Phe!
 
  I was about ready ta send the disruptor after ya
 
  :)
 
 
 
 

 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307458
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Extending Application.cfc

2008-06-13 Thread Charlie Griefer
sonofa...

On Fri, Jun 13, 2008 at 4:32 PM, Didgiman [EMAIL PROTECTED] wrote:
 Who is Dave the Disruptor?

 Oops, did I wake him up?

 On Sat, Jun 14, 2008 at 12:58 AM, Charlie Griefer [EMAIL PROTECTED]
 wrote:

 well if you speak his name 3 times he appears... that was twice, so
 i'm begging everybody here... :P

 On Fri, Jun 13, 2008 at 3:53 PM, Brad Wood [EMAIL PROTECTED]
 wrote:
  Speaking of... what ever happened to Dave the Disruptor?
 
  ~Brad
 
  -Original Message-
  From: Will Tomlinson [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 13, 2008 5:47 PM
  To: CF-Talk
  Subject: Re: Extending Application.cfc
 
 Just kidding, Will.
 
  Phe!
 
  I was about ready ta send the disruptor after ya
 
  :)
 
 
 
 



 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307459
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extending Application.cfc

2008-06-13 Thread Dave l
ok now you have frickin done it!!! lol

ok this is cf talk so i will be good.. as much as it actually pains me to do 
so

a few days ago communitymx.com had something on this subject


Who is Dave the Disruptor?

Oops, did I wake him up?



 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307460
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extending Application.cfc

2008-06-13 Thread Dave l
yes Will but he might actually have more than 1 site to move so it could be an 
issue (couldn't resist!)

I do agree though that you should mirror your sites with production  just 
because you use apache locally and iis in production doesn't really matter, the 
goal is to make each one a root. You could make mappings as well but if you are 
on shared hosting that can be a pain, it's easier to just do one in app.cfc and 
then can change it once for all of them if need be.





 So, basically, if I don't want to rethink and rebuild my whole 
 development
 environment, I should stick with good 'ol Application.CFM?
 There you could simply do cfinclude template=../Application.cfm.
 
 
 Dude, I went through this same exact issue. I fought and fought myself 
 over changing my development environment. 
 
 Do what I didinstall apache, change a few simple settings in 
 apache's httpd config file, add a few dev domains in your windows 
 hosts file, and presto, you have an easy fix. We're talkin' an hour or 
 less. Bam - done. 
 
 Now, I have dev url's like so:
 
 local.mylocalsite1
 local.mylocalsite2
 
 It's sweet!
 
 Will
 


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307461
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extending Application.cfc

2008-06-13 Thread Charlie Griefer
see?  see what happens? :)

On Fri, Jun 13, 2008 at 4:45 PM, Dave l [EMAIL PROTECTED] wrote:
 yes Will but he might actually have more than 1 site to move so it could be 
 an issue (couldn't resist!)

 I do agree though that you should mirror your sites with production  just 
 because you use apache locally and iis in production doesn't really matter, 
 the goal is to make each one a root. You could make mappings as well but if 
 you are on shared hosting that can be a pain, it's easier to just do one in 
 app.cfc and then can change it once for all of them if need be.





 So, basically, if I don't want to rethink and rebuild my whole
 development
 environment, I should stick with good 'ol Application.CFM?
 There you could simply do cfinclude template=../Application.cfm.


 Dude, I went through this same exact issue. I fought and fought myself
 over changing my development environment.

 Do what I didinstall apache, change a few simple settings in
 apache's httpd config file, add a few dev domains in your windows
 hosts file, and presto, you have an easy fix. We're talkin' an hour or
 less. Bam - done.

 Now, I have dev url's like so:

 local.mylocalsite1
 local.mylocalsite2

 It's sweet!

 Will



 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307462
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


busy taskmgr/explorer - JRun not start

2008-06-13 Thread Chris Norloff
We've got a recurring problem on Windows Server 2003 VMWare instances: 
taskmgr.exe and explorer.exe get busy (together using 25-35% CPU with the 
server idle, no users) and JRun is very slow starting, or won't start. The 
taskmgr/explorer busy-ness is not likely the problem itself, but we see it 
everytime we have these issues.

In this particular case, JRun/CFMX was running fine, then after stop/starting 
it prior to a load test it just wouldn't start. No errors in the logs. 
cfusion-out.log entries just stop, and they stop at different places on 
different attempted restarts.

It's popped up several times on different servers, but not on all our servers. 
It seems that something's running in the background, that we can't see, that 
uses up resources. Just throwing more CPU or RAM at it doesn't solve the 
problem, though.

We deal with Shared Services who provide the virtual machine, and there's many 
other groups that install the anti-virus, network monitoring, etc. It may just 
be these folks not coordinating with each other, but I thought I'd toss this 
out in case someone else has seen something like this ...

thanks,
Chris



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307463
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 it Flex?

2008-06-13 Thread Brad Wood
Yeah, I actually have to load the page into a hidden iframe to parse its
HTML.  The problem is that the majority of SWF files are written into
the DOM after the page loads with JavaScript which means if I just
cfhttp the page and parse it in CF I won't find most of the SWFs.  My
new version dumps it in an iframe and waits 5 seconds for your browser
to finish loading it. Then it snags the rendered HTML and parses it with
some JavaScript regex. 

Unfortunately that means complicated pages with JavaScript errors or
frame break-out code kind of screw with it.  :)

~Brad

-Original Message-
From: Ryan Stille [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 06, 2008 1:11 PM
To: cf-talk@houseoffusion.com
Cc: Brad Wood
Subject: Re: Is it Flex?

Very useful, thanks.

The weird thing is, its running the swf, too?  I ran pandora.com through

it, because I've always wondered about that.  Then some music started 
playing, even though I couldn't see any player.  When I closed your 
site, the music stopped.  ???

-Ryan


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307464
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: SMS Event Gateway - encoding problem?

2008-06-13 Thread Jignesh Kakkad
Dear Rich,

If that is working fine with HTTP Post

then problem could be

either SMPP PDU that you are sending

or SMPP PDU decoding their your aggregator is doing

I would suggest you to speak to your aggregator the same  coz they are 
sitting at the server side and they are in better position so answer about 
what exactly they are recieving ?

if they are recieving correct format then it would their problem how they 
are submitting to carrier?

generally we are following this method

hope this helps

Regards

Jignesh Kakkad
919886897224
- Original Message - 
From: Rich Kroll [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Tuesday, June 10, 2008 1:41 AM
Subject: RE: SMS Event Gateway - encoding problem?



 Hi Rich,

 this is coz charactor map supported by carrier

 when i faced such issue wiht other charactor at that time i just ask them
 about this only like what exatly charactor map they are supporting

 if they are supporting GSM default then you will need to see if this
 charator comes under if yes then they have problem while decoding if it 
 is
 not there then you will send to as 8 bit msg

 hope this will help

 regards

 Jignesh Kakkad

 The character is present under GSM 03.38.  Under the existing solution we
 utilize a java SDK provided from our aggregator and it gets delivered just
 fine (which from sniffing the traffic is an HTTP POST).  When we attempt 
 to
 submit the same message bound to the aggregator via SMPP, we encounter the
 problem.

 From a CF perspective, we are sending the exact same string using each
 method with the default encoding.

 Any Ideas?

 Rich


 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307465
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF thinks 0F is boolean.

2008-06-13 Thread James Holmes
It is. Section 2.7.1 of the CF8 EULA clearly prohibits any decompiling.

On Wed, Jun 11, 2008 at 2:58 PM, Brad Wood [EMAIL PROTECTED] wrote:
 I had gotten it in my head that it was illegal to decompile a closed-source 
 program like Adobe ColdFusion
-- 
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;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307466
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extending Application.cfc

2008-06-13 Thread Didgiman
Hi Dave,

Thanks for the tip. I purchased the article on CommunityMx, but it just
elaborates on the use of ApplicationProxy.cfc and how an Application.cfc can
extend another Application.cfc that extends ApplicationProxy.cfc that
extends Application.cfc that resides in the web root.

Best 4 bucks I ever spent...not...

On Sat, Jun 14, 2008 at 1:39 AM, Dave l [EMAIL PROTECTED] wrote:

 ok now you have frickin done it!!! lol

 ok this is cf talk so i will be good.. as much as it actually pains me to
 do so

 a few days ago communitymx.com had something on this subject


 Who is Dave the Disruptor?
 
 Oops, did I wake him up?
 
 
 
 

 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307467
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Extending Application.cfc

2008-06-13 Thread Wim Lemmens
Oh there you are, Dave...

Thanks for the tip.
I purchased the article on CommunityMx, but it just elaborates on the use of 
ApplicationProxy.cfc and how an Application.cfc can extend another 
Application.cfc that extends ApplicationProxy.cfc that extends Application.cfc 
that resides in the web root.

Best 4 bucks I ever spent...not... 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307468
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extending Application.cfc

2008-06-13 Thread Will Tomlinson
Hi Dave,

Thanks for the tip. I purchased the article on CommunityMx, but it just
elaborates on the use of ApplicationProxy.cfc and how an Application.cfc can
extend another Application.cfc that extends ApplicationProxy.cfc that
extends Application.cfc that resides in the web root.

Best 4 bucks I ever spent...not...

You can dload and install apache in the time it took to spend $4. I'll help if 
u need it. 

That's usually what happens when people take the disruptor's advice. Their 
lives get disrupted!! 

Will 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307469
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: JNDI, Coldfusion and the AdminAPI

2008-06-13 Thread Kenton Gray
Thanks for all the suggestions, I think after much fiddling, my conclusion is 
there is no proper way this can be done.

I can setup a dsn no problem through the administrator, but dynamic JNDI 
datasources through the AdminAPI seems unsupported.

Here is the code I'm using that seems close but does not cut it (cf8):
cfset 
createObject(component,cfide.adminapi.administrator).login(#password#)
cfset dsManager=createObject(component,CFIDE.adminapi.datasource)
 cfinvoke component=#dsManager# method=setOther
cfinvokeargument name=name value=jndidatasource
cfinvokeargument name=URL value=#JNDIURL#
cfinvokeargument name=class value=jndi!--- have also tried  
---
cfinvokeargument name=driver value=jndi
/cfinvoke
Here is the stack trace I get:

java.lang.NullPointerException at 
javax.naming.InitialContext.getURLScheme(InitialContext.java:228) at 
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:277) at 
javax.naming.InitialContext.lookup(InitialContext.java:351) at 
coldfusion.sql.JNDIUtils.lookup(JNDIUtils.java:46) at 
coldfusion.sql.JNDIUtils.getJNDIDataSource(JNDIUtils.java:51) at 
coldfusion.sql.J2EEDataSource.newDataSource(J2EEDataSource.java:68) at 
coldfusion.sql.DataSourceFactory.createDataSource(DataSourceFactory.java:108) 
at coldfusion.sql.DataSourceFactory.setDataSource(DataSourceFactory.java:134) 
at coldfusion.sql.Executive.mapModified(Executive.java:272) at 
coldfusion.server.ConfigMap.setChanged(ConfigMap.java:68) at 
coldfusion.server.ConfigMap.put(ConfigMap.java:247) at 
coldfusion.runtime.Struct.StructInsert(Struct.java:535) at 
coldfusion.runtime.CFPage.StructInsert(CFPage.java:3461) at 
cfsetdsn2ecfm495245500.runPage(E:\cf8_updates\cfusion\wwwroot\CFIDE\adminapi\_datasource\setdsn.cfm:392)
 at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196) at 
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370) at 
coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661) at 
cfdatasource2ecfc498810217$funcSETOTHER.runFunction(E:\cf8_updates\cfusion\wwwroot\CFIDE\adminapi\datasource.cfc:865)
 

I understand this isn't exactly a common case, so I'm just going through the 
unofficial classes, when I get a solution I'll post it here.

If anyone else has any suggestions I'd appreciate it!

 One trick I found that is getting me close is setting the 
 driver name to jndi (got that from the neo-datasource.xml), 
 but I am still getting an error. My next strategy is to just 
 directly call the java classes coldfusion uses internally. 
 Surely prone to problems down the line but I believe it is my 
 best bet.

Try setting the JDBC URL to the name of the JNDI datasource.

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;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307470
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: many sites, one codebase

2008-06-13 Thread Rick Root
Those of you that use the virtual directory method.. do you automate the
creation of those virtual directories?

This is an IIS shop and one of the reasons they didn't go with virtual
directories is they couldn't figure out how to create IIS virtual
directories using CF.  I'm thinking they could cfexecute a command line vbs
to handle that.

Rick


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307471
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: many sites, one codebase

2008-06-13 Thread Rick Root
Actually with .NET integration.. this should be even easier than using
cfexecute.. if I knew the proper DLLs to call to do it... :)

Rick

On Sat, Jun 14, 2008 at 12:14 AM, Rick Root [EMAIL PROTECTED]
wrote:

 Those of you that use the virtual directory method.. do you automate the
 creation of those virtual directories?

 This is an IIS shop and one of the reasons they didn't go with virtual
 directories is they couldn't figure out how to create IIS virtual
 directories using CF.  I'm thinking they could cfexecute a command line vbs
 to handle that.

 Rick




-- 
Rick Root
New Brian Vander Ark Album, songs in the music player and cool behind the
scenes video at www.myspace.com/brianvanderark


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307472
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extending Application.cfc

2008-06-13 Thread s. isaac dealey
Hi Didgiman, 

I discovered a neat trick the other day that some folks here will tell
you isn't possible. :) But I assure you it is... Check out this article 

http://ontap.riaforge.org/blog/index.cfm/2008/5/27/trick

At the bottom of that article is a link to download a small zip archive
containing all the code you need to do exactly what you're trying to do.
It's all of about 5-6 lines of code. :) 

p.s. I'm using CF8 (on JRun) -- I don't know if it works on other
versions -- I assume it works on CF7, but don't know for certain. 


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

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;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307473
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFFTP CF8.01 timeout and connection property bug/issues

2008-06-13 Thread Les Schmidt
 Hi All,
 
 It's been a long time since I've had to use CFFTP (CF5) so I may well 
 be missing something but I seem to have come across a couple of things 
 one of which, I consider to be a bug.
 
 Firstly, the bug.
 
 I need to download a large (600Mb) file, if I set the timeout value to 
 something like 5 seconds for my connection then the tag times out 
 after 5 seconds rather than after 5 seconds of inactivity. There is a 
 major difference here.
 
 If I set the timeout to 30 seconds, I get about 45Mb down before the 
 tag times out.
 If I set the timeout to 300 seconds, I get about 450Mb down before the 
 tag times out.
 
 If I set the timeout to something silly, say 12 seconds, the tag 
 just hangs (I assume until the timeout is reached). (I know why this 
 is).
 
 If I set the timeout to something more reasonable, say 900 seconds, 
 the tag does not return until the 900 seconds are up and I get the 
 file :-).
 
 CFFTP is hanging until timeout because of the config of the FTP server 
 (something I cannot change as it's a 3rd party server). I've double 
 checked the connection with standard FTP clients and they too hang at 
 the end until their timeout is reached.
 
 The difference between CFFTP and other FTP clients is that other FTP 
 clients can have timeouts of say 5 seconds and only timeout after the 
 entire file has been downloaded. Ideally this is what CFFTP should do 
 and I'd consider it to be a bug if it did otherwise which it does.
 
 Secondly, the annoying problem.
 
 The server I'm connecting to requires a PASV connection from where I 
 am. Ideally, I would like set this on the first connection and have CF 
 track this in the connection structure that is created. It isn't. 
 Every CFFTP call I make, I have to set passive=Yes. Until I dumped 
 out the connection structure, I couldn't figure out why I wasn't even 
 able to list a set of directories after the initial connection as I'd 
 assumed that passive being an attribute of the connection would be 
 carried through in the connection struct. This is not so. Annoying, 
 fixable but shouldn't be there.
 
 Paul
 


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307474
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFFTP CF8.01 timeout and connection property bug/issues

2008-06-13 Thread Les Schmidt
Paul, I have exactly the same problem.  You are not alone.  
Here's an additional dimension of the cfftp problem. 
I back up some files of various sizes to a remote site using an automated cf 
task. The page essentially loops through an array of files that it determines 
need to be ftp'd (backed up).  In the loop is the cfftp tag and attributes to 
put the file. [Note that I discovered (through some back and forth with the 
Adobe team) that a dummy connection name is *required* for the timeout 
variable to be effective.]

In the looped cfftp tag, I set the timeout attribute for each putFile action 
dynamically, allowing 15 secs per MB of filesize, with a minimum of 31 seconds 
per file.  small files ftp just fine.  The first big file ftp attempt 
completes just fine (i.e., the file transfer is complete), but then CF seems to 
lose its place.  The evidence for this is that not a single line of code is 
executed after the big file transfer...the page simply dies (although it says 
'done').  

I've tried everything [or so it seems].  I've set the cfsetting requesttimeout 
to 3600 (60 minutes). No effect.  I've tried setting up and using a cfftp 
connection with a 3600 timeout. The connection gets killed after the first 
reuse of the connection.

Any suggestions welcome!

I use small and big here in quotes only because I haven't iterated enough 
to find the dividing line.  60MB and up files definitely cause the problem and 
2MB files don't cause the problem.

LMK if you've discovered any work arounds to this very annoying problem.

 Hi All,
 
 It's been a long time since I've had to use CFFTP (CF5) so I may well 
 be missing something but I seem to have come across a couple of things 
 one of which, I consider to be a bug.
 
 Firstly, the bug.
 
 I need to download a large (600Mb) file, if I set the timeout value to 
 something like 5 seconds for my connection then the tag times out 
 after 5 seconds rather than after 5 seconds of inactivity. There is a 
 major difference here.
 
 If I set the timeout to 30 seconds, I get about 45Mb down before the 
 tag times out.
 If I set the timeout to 300 seconds, I get about 450Mb down before the 
 tag times out.
 
 If I set the timeout to something silly, say 12 seconds, the tag 
 just hangs (I assume until the timeout is reached). (I know why this 
 is).
 
 If I set the timeout to something more reasonable, say 900 seconds, 
 the tag does not return until the 900 seconds are up and I get the 
 file :-).
 
 CFFTP is hanging until timeout because of the config of the FTP server 
 (something I cannot change as it's a 3rd party server). I've double 
 checked the connection with standard FTP clients and they too hang at 
 the end until their timeout is reached.
 
 The difference between CFFTP and other FTP clients is that other FTP 
 clients can have timeouts of say 5 seconds and only timeout after the 
 entire file has been downloaded. Ideally this is what CFFTP should do 
 and I'd consider it to be a bug if it did otherwise which it does.
 
 Secondly, the annoying problem.
 
 The server I'm connecting to requires a PASV connection from where I 
 am. Ideally, I would like set this on the first connection and have CF 
 track this in the connection structure that is created. It isn't. 
 Every CFFTP call I make, I have to set passive=Yes. Until I dumped 
 out the connection structure, I couldn't figure out why I wasn't even 
 able to list a set of directories after the initial connection as I'd 
 assumed that passive being an attribute of the connection would be 
 carried through in the connection struct. This is not so. Annoying, 
 fixable but shouldn't be there.
 
 Paul
 


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307475
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFFTP CF8.01 timeout and connection property bug/issues

2008-06-13 Thread Les Schmidt
Paul, I have exactly the same problem.  You are not alone.  
Here's an additional dimension of the cfftp problem. 
I back up some files of various sizes to a remote site using an automated cf 
task. The page essentially loops through an array of files that it determines 
need to be ftp'd (backed up).  In the loop is the cfftp tag and attributes to 
put the file. [Note that I discovered (through some back and forth with the 
Adobe team) that a dummy connection name is *required* for the timeout 
variable to be effective.]

In the looped cfftp tag, I set the timeout attribute for each putFile action 
dynamically, allowing 15 secs per MB of filesize, with a minimum of 31 seconds 
per file.  small files ftp just fine.  The first big file ftp attempt 
completes just fine (i.e., the file transfer is complete), but then CF seems to 
lose its place.  The evidence for this is that not a single line of code is 
executed after the big file transfer...the page simply dies (although it says 
'done').  

I've tried everything [or so it seems].  I've set the cfsetting requesttimeout 
to 3600 (60 minutes). No effect.  I've tried setting up and using a cfftp 
connection with a 3600 timeout. The connection gets killed after the first 
reuse of the connection.

Any suggestions welcome!

I use small and big here in quotes only because I haven't iterated enough 
to find the dividing line.  60MB and up files definitely cause the problem and 
2MB files don't cause the problem.

LMK if you've discovered any work arounds to this very annoying problem.



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307476
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Looking for javascript expert and CF professional worker

2008-06-13 Thread Phillip M. Vector
*nods* That wording also sent alarm bells up for me as well.

Scott Stewart wrote:
 I think the moral of this story is get everything in writing...
 And no one in their right mind should do a fixed priced contract without at
 least a percentage up front... 
 
 While it may not be a scam, it's not anything I'd get involved in just based
 on this sentence:
 
 Must be trustworthy and get paid after (THE JOB IS DONE CORRECTLY AND
 COMPLETELY) 
 
 --
 Scott Stewart
 ColdFusion Developer
 4405 Oakshyre Way
 Raleigh, NC 27616
 (h) 919.874.6229 (c) 703.220.2835
 -Original Message-
 From: Phillip Vector [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 11, 2008 4:33 PM
 To: CF-Jobs-Talk
 Subject: Re: Looking for javascript expert and CF professional worker
 
 Is it just me or does this sound like a scam to anyone else?
 
 On Wed, Jun 11, 2008 at 1:29 PM, Alex Snowden [EMAIL PROTECTED] wrote:
 Hi looking to CF expert who can help me finish my site  Site is
 basically done and now just looking for touch up work so to speak.  Protect
 consist of javascript touchup work...
 Must be trustworthy and  get paid after (THE JOB IS DONE CORRECTLY AND
 COMPLETELY)
 I have gotten burned way to much from designers... as of late
 doing projects the way they feel, flake out, incomplete and lack of
 guidance.  Need a team player and willing to keep work consistant if things
 work out well.  Professionals Like Minded please only apply.  Looking for
 reasonable quotes...
 please leave email and phone number where you can be contacted
 
 
 
 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Jobs-Talk/message.cfm/messageid:3874
Subscription: http://www.houseoffusion.com/groups/CF-Jobs-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.11