RE: opening a new windows, a browser problem!

2008-02-13 Thread William Seiter
Ali,

You will need to inspect the code on the
"/dampezeshki_final/dog/DogBreed_LargImage_1.cfm" page to see how the image
is being generated.  I would assume something like...

Or


Once you have determined how the image location and name is determined, then
you would just put that code into the lightbox (heavybox, homegrown-box,
etc) code as the image to display onclick.

Hope this helps,
William

-- 
William E. Seiter
 
Have you ever read a book that changed your life?
Go to: www.winninginthemargins.com
Enter passkey: goldengrove
 
Web Developer / ColdFusion Programmer
http://William.Seiter.com
-Original Message-
From: Ali [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 11:42 PM
To: CF-Talk
Subject: Re: opening a new windows, a browser problem!

On 2/14/08, Azadi Saryev <[EMAIL PROTECTED]> wrote:
> there are a whole bunch of 'boxes' out there: thickbox, greybox,
hoverbox...
>
> i highly recommend trying jQuery library if you have not tried it yet -
> it makes life in general and js coding in particular very easy and fun.
> added bonus is the jQuery Lighbox:
> http://leandrovieira.com/projects/jquery/lightbox/
> and extra added bonus is the CFJQ LIghtbox custom tag:
> http://www.andreacfm.com/blog/post.cfm/cfjq-lightbox-gallery-custom-tag
>
> ---
> Azadi Saryev
> Sabai-dee.com
> http://www.sabai-dee.com

LightBox and Jquery are great the only problem I have with them is
that thay work on an image. I mean this code if what LightBox expect
me to work on

while my link is a dynamic one something like this


How can I make it work? DogBreed_LargImage_1.cfm is the page that I
show the image filtering the images by DogBreedID while I really don't
know how to customize my CF code to make it work with LightBox.
Please help
Thanks
Benign



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

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


Re: Way OT : Grails.org

2008-02-13 Thread Sean Corfield
On Wed, Feb 13, 2008 at 9:45 PM, Barney Boisvert <[EMAIL PROTECTED]> wrote:
>  I could be wrong, but I'm almost positive Groovy compiles to classes
>  in the same way Java classes do.  At least a cursory examination of a
>  compiled project's classes directory sure indicates that.  Obviously
>  the guts of the classes (e.g. inner classes) are different to account
>  for closures, but I'm pretty sure you can do createObject("java",
>  "path.to.User") and create a new instance, regardless of whether User
>  was implemented in Java or Groovy.  Groovy can also run as a scripting
>  plug-in, of course, so you get it both ways (compile to bytecode and
>  runtime execution).

Compiling a Groovy class that contains closures creates multiple
..class files (just as a compiled CFC has multiple .class files).

Groovy properties become get/set methods and other methods are
callable via an invokeMethod() method. For example, this Groovy class:

class Book {
String title
}

compiles to (amongst other things) this:

public String getTitle()
{
Class class1 = Book.class;
Class class2 = groovy.lang.MetaClass.class;
return (String)ScriptBytecodeAdapter.castToType(title,
java.lang.String.class);
}

(that's what jad makes of part of Book.class - some code couldn't be
decompiled, such as the setTitle() method)

So, yes, you could createObject() on it but it won't look the same as
a compiled Java class would based on similar code.
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

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

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


Re: opening a new windows, a browser problem!

2008-02-13 Thread Ali
On 2/14/08, Azadi Saryev <[EMAIL PROTECTED]> wrote:
> there are a whole bunch of 'boxes' out there: thickbox, greybox, hoverbox...
>
> i highly recommend trying jQuery library if you have not tried it yet -
> it makes life in general and js coding in particular very easy and fun.
> added bonus is the jQuery Lighbox:
> http://leandrovieira.com/projects/jquery/lightbox/
> and extra added bonus is the CFJQ LIghtbox custom tag:
> http://www.andreacfm.com/blog/post.cfm/cfjq-lightbox-gallery-custom-tag
>
> ---
> Azadi Saryev
> Sabai-dee.com
> http://www.sabai-dee.com

LightBox and Jquery are great the only problem I have with them is
that thay work on an image. I mean this code if what LightBox expect
me to work on

while my link is a dynamic one something like this


How can I make it work? DogBreed_LargImage_1.cfm is the page that I
show the image filtering the images by DogBreedID while I really don't
know how to customize my CF code to make it work with LightBox.
Please help
Thanks
Benign

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

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


Re: Way OT : Grails.org

2008-02-13 Thread Gerald Guido
Thanx Barney,
I am still in the "I am still trying to get it all sorted out in my head and
until then is a big ball of mush" stage. I am new to the whole Java thing so
I have tons of questions (and no mentor). So many thanx!

G

On Feb 13, 2008 6:20 PM, Barney Boisvert <[EMAIL PROTECTED]> wrote:

> Yep.  Once Groovy/Java compile, they are indistinguishable for all
> practical purposes.
>
> It's worth mentioning that Groovy is a language, and Grails is a
> framework.  Grails doesn't create classes any more than Fusebox or
> Model-Glue creates classes.
>
> cheers,
> barneyb
>
> On Feb 13, 2008 2:59 PM, Gerald Guido <[EMAIL PROTECTED]> wrote:
> > Thank you all for taking the time to respond.
> >
> > I read that the class files that is created by groovy and/or Grails are
> > interchangeable with those created by Java Or something to that
> effect.
> >
> > Ex:
> > "Groovy compiles to bytecodes, and it makes no difference to the Java
> > platform if the bytecodes were generated from code written in Java or
> > Groovy."
> >
> > Question:
> >
> > Would the class files that are created by Groovy and/or Grails be
> accessible
> > to ColdFusion the same way regular Java objects are. Ex: via
> > createobject("java",.) ?
> >
> > TIA
> > Gerald
> >
> >
> > On Feb 13, 2008 12:04 PM, Sean Corfield <[EMAIL PROTECTED]> wrote:
> >
> > > On Feb 12, 2008 6:17 PM, s. isaac dealey <[EMAIL PROTECTED]> wrote:
> > > > It'd been mentioned to me recently... the way I understand it Groovy
> is
> > > > basically an alternative to (for example) CF developed in the Java
> > > > community, first released in January of last year and currently
> > > > undergoing java-community standardization.
> > >
> > > Groovy's been around for a few years (the language was started in
> > > 2003/2004 I think) although the "1.0" version only appeared a year
> > > ago. Grails first appeared in 2006 and the "1.0" version was released
> > > about a week ago.
> > >
> > > Ruby started in the mid-90's with a 0.95 release at the end of 1995.
> > > Rails was first released in 2004. Ruby 1.0 was early 2006 I think, 2.0
> > > was released at the end of 2007.
> > >
> > > Ruby started life as a C/C++ based system, compiled for each platform.
> > > A traditional "interpreter" (much as ColdFusion did). JRuby was
> > > created to allow Ruby to run on the JVM (much as CFMX did). Groovy has
> > > always been Java-based with very deep, rich Java integration.
> > >
> > > My thoughts:
> > >
> > > http://corfield.org/cat/grails
> > > --
> > > Sean A Corfield -- (904) 302-SEAN
> > > An Architect's View -- http://corfield.org/
> > >
> > > "If you're not annoying somebody, you're not really alive."
> > > -- Margaret Atwood
> > >
> > >
> >
> >
>
> 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298954
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 out of memory error / Jrun stuck at 25% CPU

2008-02-13 Thread James Holmes
Increase the MaxPermSize as well. CF can fill this while the heap
still has space.

On Feb 14, 2008 3:56 PM, Duncan <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> We are having some terrible server issues at the moment, and now we need
> some outside ideas, as we have run out!
>
> The symptoms of which are as follows.
>
> About every 3/4 hours jrun (CF7) locks up and hangs at 25%, SQLServer 2005
> stops doing anything. The server has plenty of RAM (3.5Gb), and is usually
> sitting at about 50% usage. The waiting requests number goes up and up, and
> CF doesn't seem to time out the requests running fast enough. We have this
> set up to timeout after 30 seconds.
>
> Server is Windows 2003 Server, Xeon 3.00GHz. Performance monitor suggests
> that CF easily copes with the load, only a few timeouts, but always 2-4
> simultaneous requests runnnig.
>
> Current Java Args are: Java VM Arguments: -DJINTEGRA_NATIVE_MODE
> -DJINTEGRA_PREFETCH_ENUMS -XX:+UseParallelGC -Xms512m -Xmx512m -
> Dsun.io.useCanonCaches=false -XX:MaxPermSize=128m
>
> In CF Admin we have 8 simultaneous requests, caching 5000 templates, Save
> Class files ON.
>
> We have been using VisualGC to see what the JVM is doing with its memory.
>
> We have since upped the Xms and Xmx to 850 and have thus far been up for 2h
> 15m.
>
> SQL is running at a limited 1Gb memory.
>
> My questions are this:
>
> In VisualGC we are seeing that the OldGeneration goes up and up, and doesn't
> seem to fall very much - is that normal?
>
> VisualGC shows that we have 20800 class files loaded, but only 9500 are
> actually unloaded. Again - is this normal?
>
> We have done lots of the usual things, defrag disks, optimise queries and
> tweak code, and made some progress, but its still happening.
>
> What else can we look for / do to try and resolve this?
>
> Thanks in advance, I hope you can save my hair before I pull it all out!
>
> --
> Duncan I Loxton
> [EMAIL PROTECTED]
>
>
> 

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

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


JVM out of memory error / Jrun stuck at 25% CPU

2008-02-13 Thread Duncan
Hi All,

We are having some terrible server issues at the moment, and now we need
some outside ideas, as we have run out!

The symptoms of which are as follows.

About every 3/4 hours jrun (CF7) locks up and hangs at 25%, SQLServer 2005
stops doing anything. The server has plenty of RAM (3.5Gb), and is usually
sitting at about 50% usage. The waiting requests number goes up and up, and
CF doesn't seem to time out the requests running fast enough. We have this
set up to timeout after 30 seconds.

Server is Windows 2003 Server, Xeon 3.00GHz. Performance monitor suggests
that CF easily copes with the load, only a few timeouts, but always 2-4
simultaneous requests runnnig.

Current Java Args are: Java VM Arguments: -DJINTEGRA_NATIVE_MODE
-DJINTEGRA_PREFETCH_ENUMS -XX:+UseParallelGC -Xms512m -Xmx512m -
Dsun.io.useCanonCaches=false -XX:MaxPermSize=128m

In CF Admin we have 8 simultaneous requests, caching 5000 templates, Save
Class files ON.

We have been using VisualGC to see what the JVM is doing with its memory.

We have since upped the Xms and Xmx to 850 and have thus far been up for 2h
15m.

SQL is running at a limited 1Gb memory.

My questions are this:

In VisualGC we are seeing that the OldGeneration goes up and up, and doesn't
seem to fall very much - is that normal?

VisualGC shows that we have 20800 class files loaded, but only 9500 are
actually unloaded. Again - is this normal?

We have done lots of the usual things, defrag disks, optimise queries and
tweak code, and made some progress, but its still happening.

What else can we look for / do to try and resolve this?

Thanks in advance, I hope you can save my hair before I pull it all out!

-- 
Duncan I Loxton
[EMAIL PROTECTED]


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

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


Re: Cannot create a new thread because the task queue has reached it maximum limit

2008-02-13 Thread Mark Mandel
Yeah, I saw that too, it was the only thing I * could * find.

However, in our case, the error just goes away after a while... so
whatever it getting backed up, seems to clear itself, I guess.

Mark

On Thu, Feb 14, 2008 at 5:03 PM, Andrew Scott
<[EMAIL PROTECTED]> wrote:
> Mark,
>
>  I found this while googling...
>
>
>
>  Cannot create a new thread because the task queue has reached it
>  maximum limitI started getting this error on the importer. A server
>  restart was the only way to fix the issue and I'm a little unsure as
>  to what the problem might have been. After thinking about it for a
>  while I beleive that there is a thread limit built into CF and that
>  that threshold had been met with entirely unresponsive threads. It
>  would appear then that once this thread pool is full, CF just returns
>  this error.
>
>  Might help. might not!!
>
>
>
>
>  On 2/14/08, Mark Mandel <[EMAIL PROTECTED]> wrote:
>
>
> > Jaime - you've seen the error that you can't create a cfthread on a
>  > cf7 box? ;o) That's pretty neat! ;o)
>  >
>  > We have had some performance issues on that box, but unfortunately I
>  > am not aware of the specifics, or if they have been solved.
>  >
>  > It's just such a weird error, I'm not sure where to start with it.
>  >
>  > The rest of the app runs fine while that error fires (unless it gets
>  > hit), and eventually it just goes away.
>  >
>  > Mark
>  >
>  > On Thu, Feb 14, 2008 at 4:54 PM, Jaime Metcher
>  > <[EMAIL PROTECTED]> wrote:
>  > > FWIW, I have seen this error on a stressed CF7 box undergoing GC 
> thrashing,
>  > >  where it basically meant the server was totally resource starved and 
> about
>  > >  to die.  I have a vague recollection that the queue in question is not 
> the
>  > >  list of jrpp worker threads but rather the queue of things waiting to be
>  > >  assigned to a worker thread.   Obviously CF8 changes the game, but I 
> presume
>  > >  you've ruled out memory issues, infinite loops, pathological GCs etc?
>  > >
>  > >  Jaime Metcher
>  > >
>  > >
>  > >
>  > >  > -Original Message-
>  > >  > From: Mark Mandel [mailto:[EMAIL PROTECTED]
>  > >  > Sent: Thursday, 14 February 2008 3:28 PM
>  > >  > To: CF-Talk
>  > >  > Subject: Cannot create a new thread because the task queue has reached
>  > >  > it maximum limit
>  > >  >
>  > >  >
>  > >  > Hey all,
>  > >  >
>  > >  > We keep getting this error on our server:
>  > >  >
>  > >  > Cannot create a new thread because the task queue has reached it
>  > >  > maximum limit
>  > >  >
>  > >  > Where we are attempting to use  for some code (it's actually
>  > >  > Transfer code).
>  > >  >
>  > >  > The error occurs on the block:
>  > >  > 
>  > >  >
>  > >  >   
>  > >  > > >  > getThread().currentThread().getThreadGroup().getName() eq "cfthread">
>  > >  >   
>  > >  >   super.run();
>  > >  >   
>  > >  >   
>  > >  > > >  > 
> name="transfer.DiscardQueueHandler_#getRequestFacade().getThreadID()#">
>  > >  >   
>  > >  >   super.run();
>  > >  >   
>  > >  >   
>  > >  >   
>  > >  > 
>  > >  >
>  > >  > On the link starting with 
>  > >  >
>  > >  > Has anyone come across this before? or have any idea what it is 
> caused by?
>  > >  >
>  > >  > Mark
>  > >  >
>  > >  > --
>  > >  >
>  > >  >
>  > >
>  > >
>  >
>  >
>
>  

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

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


Re: Cannot create a new thread because the task queue has reached it maximum limit

2008-02-13 Thread Andrew Scott
Mark,

I found this while googling...


Cannot create a new thread because the task queue has reached it
maximum limitI started getting this error on the importer. A server
restart was the only way to fix the issue and I'm a little unsure as
to what the problem might have been. After thinking about it for a
while I beleive that there is a thread limit built into CF and that
that threshold had been met with entirely unresponsive threads. It
would appear then that once this thread pool is full, CF just returns
this error.

Might help. might not!!



On 2/14/08, Mark Mandel <[EMAIL PROTECTED]> wrote:
> Jaime - you've seen the error that you can't create a cfthread on a
> cf7 box? ;o) That's pretty neat! ;o)
>
> We have had some performance issues on that box, but unfortunately I
> am not aware of the specifics, or if they have been solved.
>
> It's just such a weird error, I'm not sure where to start with it.
>
> The rest of the app runs fine while that error fires (unless it gets
> hit), and eventually it just goes away.
>
> Mark
>
> On Thu, Feb 14, 2008 at 4:54 PM, Jaime Metcher
> <[EMAIL PROTECTED]> wrote:
> > FWIW, I have seen this error on a stressed CF7 box undergoing GC thrashing,
> >  where it basically meant the server was totally resource starved and about
> >  to die.  I have a vague recollection that the queue in question is not the
> >  list of jrpp worker threads but rather the queue of things waiting to be
> >  assigned to a worker thread.   Obviously CF8 changes the game, but I 
> > presume
> >  you've ruled out memory issues, infinite loops, pathological GCs etc?
> >
> >  Jaime Metcher
> >
> >
> >
> >  > -Original Message-
> >  > From: Mark Mandel [mailto:[EMAIL PROTECTED]
> >  > Sent: Thursday, 14 February 2008 3:28 PM
> >  > To: CF-Talk
> >  > Subject: Cannot create a new thread because the task queue has reached
> >  > it maximum limit
> >  >
> >  >
> >  > Hey all,
> >  >
> >  > We keep getting this error on our server:
> >  >
> >  > Cannot create a new thread because the task queue has reached it
> >  > maximum limit
> >  >
> >  > Where we are attempting to use  for some code (it's actually
> >  > Transfer code).
> >  >
> >  > The error occurs on the block:
> >  > 
> >  >
> >  >   
> >  >>  > getThread().currentThread().getThreadGroup().getName() eq "cfthread">
> >  >   
> >  >   super.run();
> >  >   
> >  >   
> >  >>  > name="transfer.DiscardQueueHandler_#getRequestFacade().getThreadID()#">
> >  >   
> >  >   super.run();
> >  >   
> >  >   
> >  >   
> >  > 
> >  >
> >  > On the link starting with 
> >  >
> >  > Has anyone come across this before? or have any idea what it is caused 
> > by?
> >  >
> >  > Mark
> >  >
> >  > --
> >  >
> >  >
> >
> >
>
> 

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

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


Re: Cannot create a new thread because the task queue has reached it maximum limit

2008-02-13 Thread Mark Mandel
Jaime - you've seen the error that you can't create a cfthread on a
cf7 box? ;o) That's pretty neat! ;o)

We have had some performance issues on that box, but unfortunately I
am not aware of the specifics, or if they have been solved.

It's just such a weird error, I'm not sure where to start with it.

The rest of the app runs fine while that error fires (unless it gets
hit), and eventually it just goes away.

Mark

On Thu, Feb 14, 2008 at 4:54 PM, Jaime Metcher
<[EMAIL PROTECTED]> wrote:
> FWIW, I have seen this error on a stressed CF7 box undergoing GC thrashing,
>  where it basically meant the server was totally resource starved and about
>  to die.  I have a vague recollection that the queue in question is not the
>  list of jrpp worker threads but rather the queue of things waiting to be
>  assigned to a worker thread.   Obviously CF8 changes the game, but I presume
>  you've ruled out memory issues, infinite loops, pathological GCs etc?
>
>  Jaime Metcher
>
>
>
>  > -Original Message-
>  > From: Mark Mandel [mailto:[EMAIL PROTECTED]
>  > Sent: Thursday, 14 February 2008 3:28 PM
>  > To: CF-Talk
>  > Subject: Cannot create a new thread because the task queue has reached
>  > it maximum limit
>  >
>  >
>  > Hey all,
>  >
>  > We keep getting this error on our server:
>  >
>  > Cannot create a new thread because the task queue has reached it
>  > maximum limit
>  >
>  > Where we are attempting to use  for some code (it's actually
>  > Transfer code).
>  >
>  > The error occurs on the block:
>  > 
>  >
>  >   
>  > > getThread().currentThread().getThreadGroup().getName() eq "cfthread">
>  >   
>  >   super.run();
>  >   
>  >   
>  > > name="transfer.DiscardQueueHandler_#getRequestFacade().getThreadID()#">
>  >   
>  >   super.run();
>  >   
>  >   
>  >   
>  > 
>  >
>  > On the link starting with 
>  >
>  > Has anyone come across this before? or have any idea what it is caused by?
>  >
>  > Mark
>  >
>  > --
>  >
>  >
>
>  

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

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


RE: Cannot create a new thread because the task queue has reached it maximum limit

2008-02-13 Thread Jaime Metcher
FWIW, I have seen this error on a stressed CF7 box undergoing GC thrashing,
where it basically meant the server was totally resource starved and about
to die.  I have a vague recollection that the queue in question is not the
list of jrpp worker threads but rather the queue of things waiting to be
assigned to a worker thread.   Obviously CF8 changes the game, but I presume
you've ruled out memory issues, infinite loops, pathological GCs etc?

Jaime Metcher

> -Original Message-
> From: Mark Mandel [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 14 February 2008 3:28 PM
> To: CF-Talk
> Subject: Cannot create a new thread because the task queue has reached
> it maximum limit
>
>
> Hey all,
>
> We keep getting this error on our server:
>
> Cannot create a new thread because the task queue has reached it
> maximum limit
>
> Where we are attempting to use  for some code (it's actually
> Transfer code).
>
> The error occurs on the block:
> 
>
>   
>getThread().currentThread().getThreadGroup().getName() eq "cfthread">
>   
>   super.run();
>   
>   
>name="transfer.DiscardQueueHandler_#getRequestFacade().getThreadID()#">
>   
>   super.run();
>   
>   
>   
> 
>
> On the link starting with 
>
> Has anyone come across this before? or have any idea what it is caused by?
>
> Mark
>
> --
>
> 

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

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


keeping session alive with cfajaxproxy

2008-02-13 Thread Jeff U
In order to keep my user's session alive, I'm using CFAJAXPROXY to make 
repeated, timely calls to a cfm page.

This works for the first 60 mins or so.. Logs fine, username coming across 
perfectly.  However after 60 mins, I get "Error invoking CFC /proxy.cfc: 
Unknown"

Any ideas?? I was expecting the CFAJAXPROXY call to happen every 10 minutes and 
therefore keep their session alive as long as the user stays on the page.



-KEEPALIVE.CFM-
 
function keepAliveProxy() {
var instance = new proxy();
instance.setCallbackHandler(callBackSuccess);
instance.keepAlive();
}
function callBackSuccess(result) {
;
}


  setInterval('keepAliveProxy()',10*60*1000);



--PROXY.CFC--



   

   


INSERT INTO log 
VALUES (current_timestamp, '#cgi.script_name# - #uName# - 
#timeFormat(now(), "hh:mm:ss")#', '#cgi.remote_addr#',NULL)







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

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


Re: Cannot create a new thread because the task queue has reached it maximum limit

2008-02-13 Thread Mark Mandel
It does read that way, but I'm not sure what to do about it?

How did the limit get hit? What can I do to prevent that limit from
being hit... it seems like once this error pops up, it eventually goes
away.

I may have to wrap the section in a try/catch, and if the error pops
up, simply try and run the code synchronously.

Mark


On Feb 14, 2008 4:40 PM, Andrew Scott <[EMAIL PROTECTED]> wrote:
> Intersting though...
>
> Because this is your problem, but I do not know enough about this area
> of coldfusion to comment on it :-(
>
> "Cannot create a new thread because the task queue has reached it maximum 
> limit"
>
> That tells me that the limitation on CF Standard has been reached, for
> the queue, do you not read it that way Mark?
>
>
>
> On 2/14/08, Mark Mandel <[EMAIL PROTECTED]> wrote:
> > It is standard, but that event, the threads should just queue.  The
> > traffic isn't that high on the server that I can see the reason why it
> > would actually throw an error?
> >
> > Mark
> >
> > On Feb 14, 2008 4:30 PM, Andrew Scott <[EMAIL PROTECTED]> wrote:
> > > Mark Professional or Standard
> > >
> > > I recal limitations on running threads with Standard, but do not quote
> > > me on that one
> > >
> > > Intersting though haven't seen that error before.
> > >
> > >
> > >
> > > On 2/14/08, Mark Mandel <[EMAIL PROTECTED]> wrote:
> > > > Hey all,
> > > >
> > > > We keep getting this error on our server:
> > > >
> > > > Cannot create a new thread because the task queue has reached it 
> > > > maximum limit
> > > >
> > > > Where we are attempting to use  for some code (it's actually
> > > > Transfer code).
> > > >
> > > > The error occurs on the block:
> > > > 
> > > >
> > > >
> > > > > > > "cfthread">
> > > >
> > > >super.run();
> > > >
> > > >
> > > > > > > name="transfer.DiscardQueueHandler_#getRequestFacade().getThreadID()#">
> > > >
> > > >super.run();
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > On the link starting with 
> > > >
> > > > Has anyone come across this before? or have any idea what it is caused 
> > > > by?
> > > >
> > > > Mark
> > > >
> > > > --
> > > > E: [EMAIL PROTECTED]
> > > > W: www.compoundtheory.com
> > > >
> > > >
> > >
> > >
> >
> >
>
> 

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

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


Re: Way OT : Grails.org

2008-02-13 Thread Barney Boisvert
On Feb 13, 2008 8:43 PM, Sean Corfield <[EMAIL PROTECTED]> wrote:
> > Would the class files that are created by Groovy and/or Grails be accessible
> > to ColdFusion the same way regular Java objects are. Ex: via
> > createobject("java",.) ?
>
> Not exactly. ColdFusion and Groovy - and other dynamic languages
> running on the J-stack - tend to produce somewhat obfuscated compiled
> code with unusual class names etc.

I could be wrong, but I'm almost positive Groovy compiles to classes
in the same way Java classes do.  At least a cursory examination of a
compiled project's classes directory sure indicates that.  Obviously
the guts of the classes (e.g. inner classes) are different to account
for closures, but I'm pretty sure you can do createObject("java",
"path.to.User") and create a new instance, regardless of whether User
was implemented in Java or Groovy.  Groovy can also run as a scripting
plug-in, of course, so you get it both ways (compile to bytecode and
runtime execution).

cheers,
barneyb

> --
> Sean A Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/


-- 
Barney Boisvert
[EMAIL PROTECTED]
http://www.barneyb.com/

Got Gmail? I have 100 invites.

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

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


Re: Cannot create a new thread because the task queue has reached it maximum limit

2008-02-13 Thread Andrew Scott
Intersting though...

Because this is your problem, but I do not know enough about this area
of coldfusion to comment on it :-(

"Cannot create a new thread because the task queue has reached it maximum limit"

That tells me that the limitation on CF Standard has been reached, for
the queue, do you not read it that way Mark?


On 2/14/08, Mark Mandel <[EMAIL PROTECTED]> wrote:
> It is standard, but that event, the threads should just queue.  The
> traffic isn't that high on the server that I can see the reason why it
> would actually throw an error?
>
> Mark
>
> On Feb 14, 2008 4:30 PM, Andrew Scott <[EMAIL PROTECTED]> wrote:
> > Mark Professional or Standard
> >
> > I recal limitations on running threads with Standard, but do not quote
> > me on that one
> >
> > Intersting though haven't seen that error before.
> >
> >
> >
> > On 2/14/08, Mark Mandel <[EMAIL PROTECTED]> wrote:
> > > Hey all,
> > >
> > > We keep getting this error on our server:
> > >
> > > Cannot create a new thread because the task queue has reached it maximum 
> > > limit
> > >
> > > Where we are attempting to use  for some code (it's actually
> > > Transfer code).
> > >
> > > The error occurs on the block:
> > > 
> > >
> > >
> > > > > "cfthread">
> > >
> > >super.run();
> > >
> > >
> > > > > name="transfer.DiscardQueueHandler_#getRequestFacade().getThreadID()#">
> > >
> > >super.run();
> > >
> > >
> > >
> > > 
> > >
> > > On the link starting with 
> > >
> > > Has anyone come across this before? or have any idea what it is caused by?
> > >
> > > Mark
> > >
> > > --
> > > E: [EMAIL PROTECTED]
> > > W: www.compoundtheory.com
> > >
> > >
> >
> >
>
> 

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

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


Re: Cannot create a new thread because the task queue has reached it maximum limit

2008-02-13 Thread Mark Mandel
It is standard, but that event, the threads should just queue.  The
traffic isn't that high on the server that I can see the reason why it
would actually throw an error?

Mark

On Feb 14, 2008 4:30 PM, Andrew Scott <[EMAIL PROTECTED]> wrote:
> Mark Professional or Standard
>
> I recal limitations on running threads with Standard, but do not quote
> me on that one
>
> Intersting though haven't seen that error before.
>
>
>
> On 2/14/08, Mark Mandel <[EMAIL PROTECTED]> wrote:
> > Hey all,
> >
> > We keep getting this error on our server:
> >
> > Cannot create a new thread because the task queue has reached it maximum 
> > limit
> >
> > Where we are attempting to use  for some code (it's actually
> > Transfer code).
> >
> > The error occurs on the block:
> > 
> >
> >
> > > "cfthread">
> >
> >super.run();
> >
> >
> > > name="transfer.DiscardQueueHandler_#getRequestFacade().getThreadID()#">
> >
> >super.run();
> >
> >
> >
> > 
> >
> > On the link starting with 
> >
> > Has anyone come across this before? or have any idea what it is caused by?
> >
> > Mark
> >
> > --
> > E: [EMAIL PROTECTED]
> > W: www.compoundtheory.com
> >
> >
>
> 

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

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


Re: Cannot create a new thread because the task queue has reached it maximum limit

2008-02-13 Thread Andrew Scott
Mark Professional or Standard

I recal limitations on running threads with Standard, but do not quote
me on that one

Intersting though haven't seen that error before.


On 2/14/08, Mark Mandel <[EMAIL PROTECTED]> wrote:
> Hey all,
>
> We keep getting this error on our server:
>
> Cannot create a new thread because the task queue has reached it maximum limit
>
> Where we are attempting to use  for some code (it's actually
> Transfer code).
>
> The error occurs on the block:
> 
>
>
> "cfthread">
>
>super.run();
>
>
> name="transfer.DiscardQueueHandler_#getRequestFacade().getThreadID()#">
>
>super.run();
>
>
>
> 
>
> On the link starting with 
>
> Has anyone come across this before? or have any idea what it is caused by?
>
> Mark
>
> --
> E: [EMAIL PROTECTED]
> W: www.compoundtheory.com
>
> 

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

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


Cannot create a new thread because the task queue has reached it maximum limit

2008-02-13 Thread Mark Mandel
Hey all,

We keep getting this error on our server:

Cannot create a new thread because the task queue has reached it maximum limit

Where we are attempting to use  for some code (it's actually
Transfer code).

The error occurs on the block:





super.run();




super.run();





On the link starting with 

Has anyone come across this before? or have any idea what it is caused by?

Mark

-- 
E: [EMAIL PROTECTED]
W: www.compoundtheory.com

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

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


Re: Way OT : Grails.org

2008-02-13 Thread Sean Corfield
On Feb 13, 2008 2:59 PM, Gerald Guido <[EMAIL PROTECTED]> wrote:
> I read that the class files that is created by groovy and/or Grails are
> interchangeable with those created by Java Or something to that effect.

Well, Java, Groovy and ColdFusion all produce .class files containing
Java bytecode that runs on the JVM.

> Would the class files that are created by Groovy and/or Grails be accessible
> to ColdFusion the same way regular Java objects are. Ex: via
> createobject("java",.) ?

Not exactly. ColdFusion and Groovy - and other dynamic languages
running on the J-stack - tend to produce somewhat obfuscated compiled
code with unusual class names etc.

However, I'm starting to work with Groovy/Grails now so I will
probably update my Scripting for ColdFusion 8 project to include
Groovy (I have all the bits but haven't built a release) and I will do
what I can to enable some level of interop between ColdFusion and
Groovy. If you haven't seen the Scripting for ColdFusion 8 project,
check out http://scripting.riaforge.org - it currently support some
level of PHP and Ruby scripting within a ColdFusion page. Groovy seems
a better fit for this.
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

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

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


Re: Way OT : Grails.org

2008-02-13 Thread Barney Boisvert
Not a problem.  This isn't the best venue for Groovy/Grails questions,
of course.

cheers,
barneyb

On Feb 13, 2008 8:28 PM, Gerald Guido <[EMAIL PROTECTED]> wrote:
> Thanx Barney,
> I am still in the "I am still trying to get it all sorted out in my head and
> until then is a big ball of mush" stage. I am new to the whole Java thing so
> I have tons of questions (and no mentor). So many thanx!
>
> G
>
>
> On Feb 13, 2008 6:20 PM, Barney Boisvert <[EMAIL PROTECTED]> wrote:
>
> > Yep.  Once Groovy/Java compile, they are indistinguishable for all
> > practical purposes.
> >
> > It's worth mentioning that Groovy is a language, and Grails is a
> > framework.  Grails doesn't create classes any more than Fusebox or
> > Model-Glue creates classes.
> >
> > cheers,
> > barneyb
> >
> > On Feb 13, 2008 2:59 PM, Gerald Guido <[EMAIL PROTECTED]> wrote:
> > > Thank you all for taking the time to respond.
> > >
> > > I read that the class files that is created by groovy and/or Grails are
> > > interchangeable with those created by Java Or something to that
> > effect.
> > >
> > > Ex:
> > > "Groovy compiles to bytecodes, and it makes no difference to the Java
> > > platform if the bytecodes were generated from code written in Java or
> > > Groovy."
> > >
> > > Question:
> > >
> > > Would the class files that are created by Groovy and/or Grails be
> > accessible
> > > to ColdFusion the same way regular Java objects are. Ex: via
> > > createobject("java",.) ?
> > >
> > > TIA
> > > Gerald
> > >
> > >
> > > On Feb 13, 2008 12:04 PM, Sean Corfield <[EMAIL PROTECTED]> wrote:
> > >
> > > > On Feb 12, 2008 6:17 PM, s. isaac dealey <[EMAIL PROTECTED]> wrote:
> > > > > It'd been mentioned to me recently... the way I understand it Groovy
> > is
> > > > > basically an alternative to (for example) CF developed in the Java
> > > > > community, first released in January of last year and currently
> > > > > undergoing java-community standardization.
> > > >
> > > > Groovy's been around for a few years (the language was started in
> > > > 2003/2004 I think) although the "1.0" version only appeared a year
> > > > ago. Grails first appeared in 2006 and the "1.0" version was released
> > > > about a week ago.
> > > >
> > > > Ruby started in the mid-90's with a 0.95 release at the end of 1995.
> > > > Rails was first released in 2004. Ruby 1.0 was early 2006 I think, 2.0
> > > > was released at the end of 2007.
> > > >
> > > > Ruby started life as a C/C++ based system, compiled for each platform.
> > > > A traditional "interpreter" (much as ColdFusion did). JRuby was
> > > > created to allow Ruby to run on the JVM (much as CFMX did). Groovy has
> > > > always been Java-based with very deep, rich Java integration.
> > > >
> > > > My thoughts:
> > > >
> > > > http://corfield.org/cat/grails
> > > > --
> > > > Sean A Corfield -- (904) 302-SEAN
> > > > An Architect's View -- http://corfield.org/
> > > >
> > > > "If you're not annoying somebody, you're not really alive."
> > > > -- Margaret Atwood
> > > >
> > > >
> > >
> > >
> >
> >
>
> 

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

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


Re: OT: How to stop bots indexing my dev sites

2008-02-13 Thread James Holmes
If you can't give them a VPN client, the I agree that a simple
password enforced by the webserver is the way to go. This way your
site doesn't have to change when you move it to prod.

On Feb 14, 2008 12:12 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> I like to let me clients look in on the site during development
> and test features along the way.  (They get training and I get
> testing that way.  They are also giving tacit approval to the
> design and development by being in on the process.)
>
> Restricting the IP wouldn't be a good solution since they may
> want to view the site at the office, or at home, friends, etc.
>
> Seems like a login to the development site would be the easiest
> way to go.
>
> Thoughts?
>
> Thanks,
>
> Rick
>
>
>
> > -Original Message-
> > From: James Holmes [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, February 13, 2008 8:16 PM
> > To: CF-Talk
> > Subject: Re: OT: How to stop bots indexing my dev sites
> >
>
> > We restrict the dev site/server by IP address, so only local
> > connections are permitted by the webserver. VPN access is used to
> > access a dev server off-site.
> >
> > On Feb 14, 2008 12:56 AM, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> > > Hi, all.
> > >
> > > I usually put up a client's site while it is development
> > > so they can view progress, make comments, etc.
> > >
> > > I recently completed a client's site and began to perform
> > > search engine optimization on it.
> > >
> > > Once I started reviewing rankings, I found that my development
> > > site was ranking higher for the content than my client's main site!
> > > Not good!
> > >
> > > I thought about using the meta tag for robots not to follow or index
> > > the site, but realized I'd have to take that out of the file every time
> > > I uploaded the site to my client's domain.
> > >
> > > I guess I could check the cgi.server_name and skip the meta tag with
> > > conditional cf code if it's in the development domain.
> > >
> > > Other ideas?
> > >
> > > 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;160198600;22374440;w

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


RE: "Dynamic" CSS problem

2008-02-13 Thread Jake Churchill
Here's what I'd do:



 
 
class="active">


#SportsMenu.Sport#


#SportsMenu.Sport#








Notice the adding of the class="active" to the link.

Here's your new css:

#navtop {
color: #E0249A;
}
#navtop a {
color: #DC008A;
line-height: 30px;
padding-right: 10px;
padding-left: 10px;
text-decoration: none;
font-size: 14px;
}
#navtop a:hover {
color: #FF;
}
#navtop a.active {
/* styles for active link */
}
#navtop a.active:hover {
/* hover styles for active link */
}

Hope that helps!
_ 

Jake Churchill 
Team Leader
11204 Davenport, Ste. 100
Omaha, NE  68154 
http://www.cfwebtools.com 
402-408-3733 x103 

-Original Message-
From: Jenny Gavin-Wear [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 9:06 PM
To: CF-Talk
Subject: "Dynamic" CSS problem

Hi,

I'm trying to do a bit of "dynamic-ish" css.  In the following code I need
to be able to change the appearance of the link to highlight the currently
selected menu option.

I've tried putting spans and divs around an item, but that does nothing.
I've tried ID and Class, still nothing.  I'm sure I'm doing something
obviously stupid, but what?

Thanks in advance, J








#SportsMenu.Sport#


#SportsMenu.Sport#




>From my stylesheet:
#navtop {
color: #E0249A;
}
#navtop a {
color: #DC008A;
line-height: 30px;
padding-right: 10px;
padding-left: 10px;
text-decoration: none;
font-size: 14px;
}
#navtop a:hover {
color: #FF;
}






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

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


Re: Amazon EC2 & Coldfusion Licensing

2008-02-13 Thread Andrew Grosset
Interesting blog here on EC2 and CFMX / Railo:

http://www.webbschofield.com/index.cfm/2007/12/13/Amazon-EC2

Andrew. 

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

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


RE: OT: How to stop bots indexing my dev sites

2008-02-13 Thread Rick Faircloth
I like to let me clients look in on the site during development
and test features along the way.  (They get training and I get
testing that way.  They are also giving tacit approval to the
design and development by being in on the process.)

Restricting the IP wouldn't be a good solution since they may
want to view the site at the office, or at home, friends, etc.

Seems like a login to the development site would be the easiest
way to go.

Thoughts?

Thanks,

Rick



> -Original Message-
> From: James Holmes [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 13, 2008 8:16 PM
> To: CF-Talk
> Subject: Re: OT: How to stop bots indexing my dev sites
> 
> We restrict the dev site/server by IP address, so only local
> connections are permitted by the webserver. VPN access is used to
> access a dev server off-site.
> 
> On Feb 14, 2008 12:56 AM, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> > Hi, all.
> >
> > I usually put up a client's site while it is development
> > so they can view progress, make comments, etc.
> >
> > I recently completed a client's site and began to perform
> > search engine optimization on it.
> >
> > Once I started reviewing rankings, I found that my development
> > site was ranking higher for the content than my client's main site!
> > Not good!
> >
> > I thought about using the meta tag for robots not to follow or index
> > the site, but realized I'd have to take that out of the file every time
> > I uploaded the site to my client's domain.
> >
> > I guess I could check the cgi.server_name and skip the meta tag with
> > conditional cf code if it's in the development domain.
> >
> > Other ideas?
> >
> > 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;160198600;22374440;w

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


"Dynamic" CSS problem

2008-02-13 Thread Jenny Gavin-Wear
Hi,

I'm trying to do a bit of "dynamic-ish" css.  In the following code I need
to be able to change the appearance of the link to highlight the currently
selected menu option.

I've tried putting spans and divs around an item, but that does nothing.
I've tried ID and Class, still nothing.  I'm sure I'm doing something
obviously stupid, but what?

Thanks in advance, J








#SportsMenu.Sport#


#SportsMenu.Sport#




>From my stylesheet:
#navtop {
color: #E0249A;
}
#navtop a {
color: #DC008A;
line-height: 30px;
padding-right: 10px;
padding-left: 10px;
text-decoration: none;
font-size: 14px;
}
#navtop a:hover {
color: #FF;
}




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

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


Re: CF8 CSS woes

2008-02-13 Thread Azadi Saryev
see if this helps:
http://cfsilence.com/blog/client/index.cfm/2008/2/13/Sexy-ColdFusion-8-Ajax

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



Richard Meredith-Hardy wrote:
> After years of CF5 I'm starting off on my first big CF8 project.
>
> While we really need it for it's new accessibility to Exchange, the
> wizzy new AJAX features are great and as far as I can see have the
> potential to take out the loads of fiddly JS I always seem to end up
> with in my AJAX calls Etc.  At the same time however, these nice tags
> create loads of fiddly CSS if I'm to get the site looking like my client
> wants.  
>
> So far, 
>
> 1) I set up the basic page layout (based on a YUI fonts/grids layout)
> and a CFAjaximport-ed set of the CFIDE files.
> 2) Got CFMENU working to my liking, eventually.
> 3) Got CFLAYOUT tabs working, after some conflicts with YUI and menu CSS
>
> At this stage dynamic CFGRID visually is completely broken. arrrgh.
>
> Basically, the more components I add and then tweak their CSS, the more
> tricky and time consuming it's becoming to get everything to play
> together
>
> Has someone done any kind of generic CSS skin for a range of the more
> common new CF8 stuff?  At least it might set me on a straighter track.
>   

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

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


Re: opening a new windows, a browser problem!

2008-02-13 Thread Azadi Saryev
there are a whole bunch of 'boxes' out there: thickbox, greybox, hoverbox...

i highly recommend trying jQuery library if you have not tried it yet - 
it makes life in general and js coding in particular very easy and fun.
added bonus is the jQuery Lighbox: 
http://leandrovieira.com/projects/jquery/lightbox/
and extra added bonus is the CFJQ LIghtbox custom tag: 
http://www.andreacfm.com/blog/post.cfm/cfjq-lightbox-gallery-custom-tag

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



Ali wrote:
> On Feb 14, 2008 3:29 AM, William Seiter <[EMAIL PROTECTED]> wrote:
>
>   
>> I agree with Andy that the CFwindow might be your best bet.  As far as
>> 'useless in Firefox', I would add that IE has the default setting to 'not'
>> allow a website to hide the URL bar, so it 'might' be useless in IE as
>> well.
>>
>> Also, if you decide to just use javascript, there is a library called
>> 'lightbox' that works quite nicely to add an extra 'layer' to the page,
>> instead of a new browser window, to view the image in and seems pretty
>> cross-browser compatible.
>>
>> --
>> William E. Seiter
>>
>> Hi:
>> 
> Oh yes I saw Lightbox which is very impressive. I think I use it at least
> for a new experience. Do you know any other JS libraries like this?
> It really made my day.
> Thanks
> Ali
>
>
> 

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

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


Re: a sIMPLER url?

2008-02-13 Thread Matt Quackenbush
On Feb 13, 2008 6:27 PM, Charlie Griefer wrote:

> On Feb 13, 2008 4:24 PM, Les Mizzell wrote:
> > > Remember, you have to make sure that you've got the ISAPI_rewrite
> module
> > > available to you. Your host can tell you if it's installed.
> >
> > Heh - the IT guys running the server (Law Firm) don't claim to be IIS
> > Admins. I know my way around the CF Administrator OK enough to get in
> > trouble, but I don't know IIS all that well either.
> >
> > Their reply back to my request about the ISAPI module:
> >
> > "from what I've been able to dig up quickly, this is a module that
> > has to be installed.  I see that there is a "free" version from a vendor
> > and several you can buy.  Let me know which one that is to be
> installed."
> >
> > Advise?
>
> http://coldcourse.riaforge.org/
>
>
ColdCourse is not the solution he wants.  He needs the ISAPI_Rewrite
module.

As I understand it, you'll need the lowest priced one (other than the free
one).  I think it's about $80.

Once you have the ISAPI_Rewrite in place, then ColdCourse can come into
play, but by itself it won't do what you want (since you want to ditch the
".cfm" part).


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

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


RE: Reading Excel..

2008-02-13 Thread Jaime Metcher
Brian,

I would also recommend POI with Ben Nadel's POIUtility, but if you want to
stick with a DSN, the following includes a way to unlock the datasource:

http://cfregex.com/cfcomet/Excel/index.cfm?ArticleID=0239B2E5-5FED-11D3-B3E9
004033E03EF9

No idea if it still works in CFMX 6/7/8.

Jaime Metcher

> -Original Message-
> From: Brian Dumbledore [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 14 February 2008 2:05 AM
> To: CF-Talk
> Subject: Reading Excel..
>
>
> I made the subject look easy so I can have more viewers ;) But
> here is my problem.. After having trouble with working
> cfx_Excel2Query ( I finally reverted to it in the end and got it
> working), I thought why not do this:
>
> 1) Create a odbc dsn to a excel file
> 2) Create a cf dsn to this odbc dsn
> 3) User uploads his file, I copy it as the file to which the dsn
> si specified.
> 4) I query the file using [sheet$1] as the table, and so on.
>
>
> This method works fine, however, sometimes (most of the times),
> it appears the file being used as the dsn gets 'locked'. I cann't
> delete, rename etc, 'next' upload of file fails to overwrite this
> file because it is locked.
> Basically this method is too inconsistent.
>
> My question is, is there anything I need to do to make sure the
> file is 'released' after the query has run? If this one thing is
> solved, I no longer have to use third party solutions, I can just
> create a dsn to the file and keep overwriting the file with the
> new file whenever.
>
> Any suggestions?
>
> 

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

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


How to bind an cfinput field that is inside a CFDIV to the CFFORM for which it is part of

2008-02-13 Thread Philip Hayes
This is an opposite question than the usual... how to bind a cfform  
within a cfdiv.

I have a CFDIV that is inside a CFFORM ()  It contains a list of checkboxes for categories.  When I  
submit the form which surrounds the CFDIV, it does not include the  
checkbox values.  How do I bind those checkbox values to the form  
being submitted.

I'm try to duplicate how WordPress allows you to dynamically add a  
category to a  category list.

Thanks
SAMPLE==




Thanks

Phil


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

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


Re: OT: How to stop bots indexing my dev sites

2008-02-13 Thread James Holmes
We restrict the dev site/server by IP address, so only local
connections are permitted by the webserver. VPN access is used to
access a dev server off-site.

On Feb 14, 2008 12:56 AM, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> Hi, all.
>
> I usually put up a client's site while it is development
> so they can view progress, make comments, etc.
>
> I recently completed a client's site and began to perform
> search engine optimization on it.
>
> Once I started reviewing rankings, I found that my development
> site was ranking higher for the content than my client's main site!
> Not good!
>
> I thought about using the meta tag for robots not to follow or index
> the site, but realized I'd have to take that out of the file every time
> I uploaded the site to my client's domain.
>
> I guess I could check the cgi.server_name and skip the meta tag with
> conditional cf code if it's in the development domain.
>
> Other ideas?
>
> 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;160198600;22374440;w

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


Re: Saving a CFINPUT field

2008-02-13 Thread s. isaac dealey
Hey Eron, 

Yeah, I wouldn't expect there to be direct association between the
cfinput and a component currently, though I could be wrong -- I so rarely
use cfform. I've got an auto-saving textarea in one of my applications
that uses a hidden iframe to submit its own form -- seemed to be the
most straightforward solution, although these days I'm sure a lot of
folks would use an xmlhttprequest instead (via Prototype most likely).
At any rate, this works just fine for me: 






Though I also include a submit button in that form in case javascript is
disabled in the browser -- and then I use javascript to hide it when the
page loads. :P 


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

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;160198600;22374440;w

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


RE: all possible letter combinations

2008-02-13 Thread Dawson, Michael
Thinking outside the box...  You could use a database for this.  Create a table 
that contains a single column.  That column contains a record for each letter 
of the alphabet.  Then, do a cartesian join to join that table to itself, three 
other times.  Concatenate the fields and you should have each combination.
 
That would get the first part without consideration of the second part.
 
m!ke

  _  

From: Greg Morphis [mailto:[EMAIL PROTECTED]
Sent: Wed 2/13/2008 4:57 PM
To: CF-Talk
Subject: all possible letter combinations



Given a string, e.g. "ABCD"

I need to come up with all combinations of letters
eg
ABCD
ABDC
ACBD
ACDB
.

And exlude strings like '', 'AAAB' unless you pass a string with
duplicate characters
If I pass the string "AAAB" then it'd return:
AAAB
AABA
ABAA
BAAA




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

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


Re: all possible letter combinations

2008-02-13 Thread Greg Morphis
This is what I have so far..



   
   
   

   
   

   
   if(len(remainingchars) eq 1) {
   wordArray[ArrayLen(wordArray)+1] = strbase &
mid(remainingchars,1,1);
   } else {
   for (j = 1; j lt len(remainingchars); j=j+1) {
   currchar = mid(remainingchars,j,1);
   if(find(currchar,remainingchars,j) eq j) {
   arrayappend(wordArray,
mid(remainingchars,1,j) &
mid(remainingchars,j+1,len(remainingchars)));
   //createWordList(wordArray, strbase &
mid(remainingchars,1,j), mid(remainingchars,1,j) &
mid(remainingchars,j+1,len(remainingchars)));
   //wordArray = createWordList(wordArray,
strbase + remainingchars.charAt(j), remainingchars.substring(0, j) +
remainingchars.substring(j+1, remainingchars.length)); //recursive
call
   }
   }
   }

   



The specific part I'm having problems with is
   //wordArray = createWordList(wordArray,
strbase + remainingchars.charAt(j), remainingchars.substring(0, j) +
remainingchars.substring(j+1, remainingchars.length)); //recursive
call

That's how it's done in Javascript.. I just can't convert it to ColdFusion..




On Feb 13, 2008 6:44 PM, Mark Mandel <[EMAIL PROTECTED]> wrote:
> What have you got so far?
>
> Mark
>
> On Feb 14, 2008 10:58 AM, Greg Morphis <[EMAIL PROTECTED]> wrote:
> > yes, I know that and it's that part that I need help with which is why
> > I posted here.
> > Thanks
> >
> > On Feb 13, 2008 5:34 PM, Mark Mandel <[EMAIL PROTECTED]> wrote:
> > > Recursion is your friend ;o)
> > >
> > > Mark
> > >
> > >
> > > On Feb 14, 2008 9:57 AM, Greg Morphis <[EMAIL PROTECTED]> wrote:
> > > > Given a string, e.g. "ABCD"
> > > >
> > > > I need to come up with all combinations of letters
> > > > eg
> > > > ABCD
> > > > ABDC
> > > > ACBD
> > > > ACDB
> > > > 
> > > >
> > > > And exlude strings like '', 'AAAB' unless you pass a string with
> > > > duplicate characters
> > > > If I pass the string "AAAB" then it'd return:
> > > > AAAB
> > > > AABA
> > > > ABAA
> > > > BAAA
> > > >
> > > >
> > >
> > >
> >
> >
>
> 

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

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


Re: all possible letter combinations

2008-02-13 Thread Mark Mandel
What have you got so far?

Mark

On Feb 14, 2008 10:58 AM, Greg Morphis <[EMAIL PROTECTED]> wrote:
> yes, I know that and it's that part that I need help with which is why
> I posted here.
> Thanks
>
> On Feb 13, 2008 5:34 PM, Mark Mandel <[EMAIL PROTECTED]> wrote:
> > Recursion is your friend ;o)
> >
> > Mark
> >
> >
> > On Feb 14, 2008 9:57 AM, Greg Morphis <[EMAIL PROTECTED]> wrote:
> > > Given a string, e.g. "ABCD"
> > >
> > > I need to come up with all combinations of letters
> > > eg
> > > ABCD
> > > ABDC
> > > ACBD
> > > ACDB
> > > 
> > >
> > > And exlude strings like '', 'AAAB' unless you pass a string with
> > > duplicate characters
> > > If I pass the string "AAAB" then it'd return:
> > > AAAB
> > > AABA
> > > ABAA
> > > BAAA
> > >
> > >
> >
> >
>
> 

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

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


Re: a sIMPLER url?

2008-02-13 Thread Charlie Griefer
On Feb 13, 2008 4:24 PM, Les Mizzell <[EMAIL PROTECTED]> wrote:
> > Remember, you have to make sure that you've got the ISAPI_rewrite module
> > available to you. Your host can tell you if it's installed.
>
> Heh - the IT guys running the server (Law Firm) don't claim to be IIS
> Admins. I know my way around the CF Administrator OK enough to get in
> trouble, but I don't know IIS all that well either.
>
> Their reply back to my request about the ISAPI module:
>
> "from what I've been able to dig up quickly, this is a module that
> has to be installed.  I see that there is a "free" version from a vendor
> and several you can buy.  Let me know which one that is to be installed."
>
> Advise?

http://coldcourse.riaforge.org/

-- 
Evelyn the dog, having undergone further modification pondered the
significance of short-person behaviour in pedal depressed,
pan-chromatic resonance, and other highly ambient domains. "Arf," she
said.

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

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


Re: opening a new windows, a browser problem!

2008-02-13 Thread Ali
On Feb 14, 2008 3:29 AM, William Seiter <[EMAIL PROTECTED]> wrote:

> I agree with Andy that the CFwindow might be your best bet.  As far as
> 'useless in Firefox', I would add that IE has the default setting to 'not'
> allow a website to hide the URL bar, so it 'might' be useless in IE as
> well.
>
> Also, if you decide to just use javascript, there is a library called
> 'lightbox' that works quite nicely to add an extra 'layer' to the page,
> instead of a new browser window, to view the image in and seems pretty
> cross-browser compatible.
>
> --
> William E. Seiter
>
> Hi:
Oh yes I saw Lightbox which is very impressive. I think I use it at least
for a new experience. Do you know any other JS libraries like this?
It really made my day.
Thanks
Ali


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

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


Amazon EC2 & Coldfusion Licensing

2008-02-13 Thread Irvin Gomez
Given the complexity of licensing options under this "cloud" platform (?), 
perhaps it would be a good idea for Adobe to configure a number of servers with 
Coldfusion and then just bill users for the time instantiating them, much like 
Amazon is doing.

The whole Amazon EC2 concept looks incredibly powerful...

What do you think? 

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

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


Re: a sIMPLER url?

2008-02-13 Thread Les Mizzell
> Remember, you have to make sure that you've got the ISAPI_rewrite module
> available to you. Your host can tell you if it's installed. 

Heh - the IT guys running the server (Law Firm) don't claim to be IIS 
Admins. I know my way around the CF Administrator OK enough to get in 
trouble, but I don't know IIS all that well either.

Their reply back to my request about the ISAPI module:

"from what I've been able to dig up quickly, this is a module that
has to be installed.  I see that there is a "free" version from a vendor
and several you can buy.  Let me know which one that is to be installed."

Advise?

While I'm playing with this, I'm going to look at the missing template 
handler I've already got on the site too ...

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

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


RE: Sample Email Based Application Needed

2008-02-13 Thread William Seiter
I would add that you should have a link in the email that goes to your
secure environment so that the user doesn't feel they 'have' to use the
email form and can choose the more secure system.  (this will also help for
people who don't have the ability to read/use 'html' typed emails.)

-- 
William E. Seiter
 
Have you ever read a book that changed your life?
Go to: www.winninginthemargins.com
Enter passkey: goldengrove
 
Web Developer / ColdFusion Programmer
http://William.Seiter.com

-Original Message-
From: Dawson, Michael [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 2:35 PM
To: CF-Talk
Subject: RE: Sample Email Based Application Needed

We do something similar when we send mass mailing to prospective
students.

A couple of gotchas...

1. Someone else could use the same email account.
2. The recipient could forward the message to someone else, on purpose
or inadvertently.

You should probably ask for at least one bit of information to tighten
it up a bit.  I think we ask for two bits of information such as last
name and birthdate.  If they get that right, we let them in.  If not, we
show an empty form (since we don't want to turn anyone away).

m!ke

-Original Message-
From: James Blaha [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 4:11 PM
To: CF-Talk
Subject: Sample Email Based Application Needed

All,

Does anyone know of a CF sample application that might address the
following scenario?

Loop over a table and email users a link to update their i.e. contact
information, then in a form they verify or update their information and
click submit. 

As for security, the link in their email might only be good for a few
days and contain pertinent URL information in an encrypted format. No
login required. 

Is this possible to do relatively securely without forcing users to
login to a web application?

Regards,
-Jim



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

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


RE: Triggering Javascript within CFINPUT - DATEFIELD

2008-02-13 Thread William Seiter
What kinds of form fields are you using to select the 'from' and 'to' dates?

http://William.Seiter.com

-Original Message-
From: Andy Chen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 2:57 PM
To: CF-Talk
Subject: Triggering Javascript within CFINPUT - DATEFIELD

Hi everyone,

This might be a stupid question but I can't seem to trigger a javascript
script (ColdFusion.navigate) within a CFINPUT TYPE="DATEFIELD".

I have a TO and FROM dates fields and would like it to execute a Javascript
ColdFusion.navigate command to refresh a section of the page once the TO or
FROM fields are changed. I used OnChange but nothing happens.

I used OnBlur but it only works if the mouse is over the field and leaves
it.
I used OnClick but it only works if someone clicks on the field (not after
they click on the selected date). 

Am I missing something that would make it work? 



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

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


RE: opening a new windows, a browser problem!

2008-02-13 Thread William Seiter
I agree with Andy that the CFwindow might be your best bet.  As far as
'useless in Firefox', I would add that IE has the default setting to 'not'
allow a website to hide the URL bar, so it 'might' be useless in IE as well.

Also, if you decide to just use javascript, there is a library called
'lightbox' that works quite nicely to add an extra 'layer' to the page,
instead of a new browser window, to view the image in and seems pretty
cross-browser compatible.

-- 
William E. Seiter
 
Have you ever read a book that changed your life?
Go to: www.winninginthemargins.com
Enter passkey: goldengrove
 
Web Developer / ColdFusion Programmer
http://William.Seiter.com

-Original Message-

>Hi:
>I'm using CF8 to make an image gallery. There are many thumbnails and I
want
>to open each larger image in a new window with fixed size and without
>address bar and browser options. Most of the javascripts doing this are
>useless in FireFox. What do you do to make fixed size popups. Plus most of
>the browsers stop new popups. What's the solution to make an image gallery
>that doesn't involve browser compatibility or browser popup blockers?
>Thanks
>Benign

Since you are using CF8, have you tried CFWINDOW? That should do the trick.
It won't trigger any popups and should work with FireFox with no problem. 
/unsubscribe.cfm?user=30099.21321.4


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

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


Re: all possible letter combinations

2008-02-13 Thread Greg Morphis
yes, I know that and it's that part that I need help with which is why
I posted here.
Thanks

On Feb 13, 2008 5:34 PM, Mark Mandel <[EMAIL PROTECTED]> wrote:
> Recursion is your friend ;o)
>
> Mark
>
>
> On Feb 14, 2008 9:57 AM, Greg Morphis <[EMAIL PROTECTED]> wrote:
> > Given a string, e.g. "ABCD"
> >
> > I need to come up with all combinations of letters
> > eg
> > ABCD
> > ABDC
> > ACBD
> > ACDB
> > 
> >
> > And exlude strings like '', 'AAAB' unless you pass a string with
> > duplicate characters
> > If I pass the string "AAAB" then it'd return:
> > AAAB
> > AABA
> > ABAA
> > BAAA
> >
> >
>
> 

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

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


RE: Strange happenings in a login. CFMX 6.1

2008-02-13 Thread William Seiter
When you are testing the system and you are on the 'login' page for the
second time, are you able to type the name of a login protected page into
the url and view it?  In other words, when you are looking at the login page
are you actually already logged in, or does the system still see you as
logged out?

-- 
William E. Seiter
 
Have you ever read a book that changed your life?
Go to: www.winninginthemargins.com
Enter passkey: goldengrove
 
Web Developer / ColdFusion Programmer
http://William.Seiter.com

-Original Message-
From: Steve Durette [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 4:09 AM
To: CF-Talk
Subject: Strange happenings in a login. CFMX 6.1

Sorry if this double posts, but I sent it yesterday and it never made it to
the list.

All, 
 
I have a really weird thing happening with a login that I have for a site I
have built.  This site is on a server I don't control, I don't have access
to CFA.
 
Here is what happens.  When I go to the site, the Application.cfm detects
that a session variable isn't created or is empty and sends the site to the
login screen.  This works fine.
 
What happens is, I log in, then the login screen comes back.  I have to
login again to get to the site.  The really weird thing is that I have some
code in OnRequestEnd.cfm that displays a bunch of cfdumps if the logged in
user is my id.  When the login page comes up the second time, it has all of
the cfdump info.  That makes me think that I'm logged in, but something else
is going wrong.
 
Can anyone see anything below?  I can't find the problem and I've been
looking at it for 3 days.  By the way, it doesn't do this on my development
box.
 
Here are the relevant code snippets. (Note, I've tried Session, Client, and
Request variables and it all happens the same).
 
---
/PowerCo/Application.cfm
---





 
  
 


 
  
 
 

 


 


 




 
  https://"; & cgi.HTTP_HOST & "/PowerCo/" />
 




 
  
  
 

 
-
/PowerCo/login/Application.cfm
-





 



--
/PowerCo/login/login.cfm
--
Login



 Please log
in


 User ID:
 


 Password:
 


 



 Forgot Password |
 Request Access



 

/PowerCo/login/login_action.cfm




 


 

 

 

 select [users_id] userId
 from [users]
 where [email_address] = 
 and [user_password] = 
 and [disabled] = 0;

 

 
  select
[first_name]
   ,[email_address] email
   ,[useradmin]
   ,[user_password]
   ,[tbl_power_co_users_id] [userId]
  from [users]
  where [disabled] = 0
  and [users_id] = 
 
 
  
  
  
   
  
  
   
   
   
   
   
  
 
 
 
  
 
  
 

 

 

 
--
/PowerCo/login/resetSession.cfm
--

 
  
  
  
  
  
  
  
 

 

/PowerCo/login/OnRequestEnd.cfm


 

/PowerCo/OnRequestEnd.cfm


 
 
 
 
 
 
 
 
 


Thanks,
Steve
 
 



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

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


Re: all possible letter combinations

2008-02-13 Thread Mark Mandel
Recursion is your friend ;o)

Mark

On Feb 14, 2008 9:57 AM, Greg Morphis <[EMAIL PROTECTED]> wrote:
> Given a string, e.g. "ABCD"
>
> I need to come up with all combinations of letters
> eg
> ABCD
> ABDC
> ACBD
> ACDB
> 
>
> And exlude strings like '', 'AAAB' unless you pass a string with
> duplicate characters
> If I pass the string "AAAB" then it'd return:
> AAAB
> AABA
> ABAA
> BAAA
>
> 

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

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


Re: opening a new windows, a browser problem!

2008-02-13 Thread Andy Chen
>Hi:
>I'm using CF8 to make an image gallery. There are many thumbnails and I want
>to open each larger image in a new window with fixed size and without
>address bar and browser options. Most of the javascripts doing this are
>useless in FireFox. What do you do to make fixed size popups. Plus most of
>the browsers stop new popups. What's the solution to make an image gallery
>that doesn't involve browser compatibility or browser popup blockers?
>Thanks
>Benign

Since you are using CF8, have you tried CFWINDOW? That should do the trick. It 
won't trigger any popups and should work with FireFox with no problem. 

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

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


opening a new windows, a browser problem!

2008-02-13 Thread Ali
Hi:
I'm using CF8 to make an image gallery. There are many thumbnails and I want
to open each larger image in a new window with fixed size and without
address bar and browser options. Most of the javascripts doing this are
useless in FireFox. What do you do to make fixed size popups. Plus most of
the browsers stop new popups. What's the solution to make an image gallery
that doesn't involve browser compatibility or browser popup blockers?
Thanks
Benign


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

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


Re: Way OT : Grails.org

2008-02-13 Thread Barney Boisvert
Yep.  Once Groovy/Java compile, they are indistinguishable for all
practical purposes.

It's worth mentioning that Groovy is a language, and Grails is a
framework.  Grails doesn't create classes any more than Fusebox or
Model-Glue creates classes.

cheers,
barneyb

On Feb 13, 2008 2:59 PM, Gerald Guido <[EMAIL PROTECTED]> wrote:
> Thank you all for taking the time to respond.
>
> I read that the class files that is created by groovy and/or Grails are
> interchangeable with those created by Java Or something to that effect.
>
> Ex:
> "Groovy compiles to bytecodes, and it makes no difference to the Java
> platform if the bytecodes were generated from code written in Java or
> Groovy."
>
> Question:
>
> Would the class files that are created by Groovy and/or Grails be accessible
> to ColdFusion the same way regular Java objects are. Ex: via
> createobject("java",.) ?
>
> TIA
> Gerald
>
>
> On Feb 13, 2008 12:04 PM, Sean Corfield <[EMAIL PROTECTED]> wrote:
>
> > On Feb 12, 2008 6:17 PM, s. isaac dealey <[EMAIL PROTECTED]> wrote:
> > > It'd been mentioned to me recently... the way I understand it Groovy is
> > > basically an alternative to (for example) CF developed in the Java
> > > community, first released in January of last year and currently
> > > undergoing java-community standardization.
> >
> > Groovy's been around for a few years (the language was started in
> > 2003/2004 I think) although the "1.0" version only appeared a year
> > ago. Grails first appeared in 2006 and the "1.0" version was released
> > about a week ago.
> >
> > Ruby started in the mid-90's with a 0.95 release at the end of 1995.
> > Rails was first released in 2004. Ruby 1.0 was early 2006 I think, 2.0
> > was released at the end of 2007.
> >
> > Ruby started life as a C/C++ based system, compiled for each platform.
> > A traditional "interpreter" (much as ColdFusion did). JRuby was
> > created to allow Ruby to run on the JVM (much as CFMX did). Groovy has
> > always been Java-based with very deep, rich Java integration.
> >
> > My thoughts:
> >
> > http://corfield.org/cat/grails
> > --
> > Sean A Corfield -- (904) 302-SEAN
> > An Architect's View -- http://corfield.org/
> >
> > "If you're not annoying somebody, you're not really alive."
> > -- Margaret Atwood
> >
> >
>
> 

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

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


Triggering Javascript within CFINPUT - DATEFIELD

2008-02-13 Thread Andy Chen
Hi everyone,

This might be a stupid question but I can't seem to trigger a javascript script 
(ColdFusion.navigate) within a CFINPUT TYPE="DATEFIELD".

I have a TO and FROM dates fields and would like it to execute a Javascript 
ColdFusion.navigate command to refresh a section of the page once the TO or 
FROM fields are changed. I used OnChange but nothing happens.

I used OnBlur but it only works if the mouse is over the field and leaves it.
I used OnClick but it only works if someone clicks on the field (not after they 
click on the selected date). 

Am I missing something that would make it work? 

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

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


Re: Way OT : Grails.org

2008-02-13 Thread Gerald Guido
Thank you all for taking the time to respond.

I read that the class files that is created by groovy and/or Grails are
interchangeable with those created by Java Or something to that effect.

Ex:
"Groovy compiles to bytecodes, and it makes no difference to the Java
platform if the bytecodes were generated from code written in Java or
Groovy."

Question:

Would the class files that are created by Groovy and/or Grails be accessible
to ColdFusion the same way regular Java objects are. Ex: via
createobject("java",.) ?

TIA
Gerald

On Feb 13, 2008 12:04 PM, Sean Corfield <[EMAIL PROTECTED]> wrote:

> On Feb 12, 2008 6:17 PM, s. isaac dealey <[EMAIL PROTECTED]> wrote:
> > It'd been mentioned to me recently... the way I understand it Groovy is
> > basically an alternative to (for example) CF developed in the Java
> > community, first released in January of last year and currently
> > undergoing java-community standardization.
>
> Groovy's been around for a few years (the language was started in
> 2003/2004 I think) although the "1.0" version only appeared a year
> ago. Grails first appeared in 2006 and the "1.0" version was released
> about a week ago.
>
> Ruby started in the mid-90's with a 0.95 release at the end of 1995.
> Rails was first released in 2004. Ruby 1.0 was early 2006 I think, 2.0
> was released at the end of 2007.
>
> Ruby started life as a C/C++ based system, compiled for each platform.
> A traditional "interpreter" (much as ColdFusion did). JRuby was
> created to allow Ruby to run on the JVM (much as CFMX did). Groovy has
> always been Java-based with very deep, rich Java integration.
>
> My thoughts:
>
> http://corfield.org/cat/grails
> --
> Sean A Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/
>
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
>
> 

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

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


all possible letter combinations

2008-02-13 Thread Greg Morphis
Given a string, e.g. "ABCD"

I need to come up with all combinations of letters
eg
ABCD
ABDC
ACBD
ACDB


And exlude strings like '', 'AAAB' unless you pass a string with
duplicate characters
If I pass the string "AAAB" then it'd return:
AAAB
AABA
ABAA
BAAA

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

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


Re: Sample Email Based Application Needed

2008-02-13 Thread James Blaha
Hi Mike,

Thanks for your post, good points!

-Jim 

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

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


RE: Sample Email Based Application Needed

2008-02-13 Thread Dawson, Michael
We do something similar when we send mass mailing to prospective
students.

A couple of gotchas...

1. Someone else could use the same email account.
2. The recipient could forward the message to someone else, on purpose
or inadvertently.

You should probably ask for at least one bit of information to tighten
it up a bit.  I think we ask for two bits of information such as last
name and birthdate.  If they get that right, we let them in.  If not, we
show an empty form (since we don't want to turn anyone away).

m!ke

-Original Message-
From: James Blaha [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 4:11 PM
To: CF-Talk
Subject: Sample Email Based Application Needed

All,

Does anyone know of a CF sample application that might address the
following scenario?

Loop over a table and email users a link to update their i.e. contact
information, then in a form they verify or update their information and
click submit. 

As for security, the link in their email might only be good for a few
days and contain pertinent URL information in an encrypted format. No
login required. 

Is this possible to do relatively securely without forcing users to
login to a web application?

Regards,
-Jim

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

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


Sample Email Based Application Needed

2008-02-13 Thread James Blaha
All,

Does anyone know of a CF sample application that might address the following 
scenario?

Loop over a table and email users a link to update their i.e. contact 
information, then in a form they verify or update their information and click 
submit. 

As for security, the link in their email might only be good for a few days and 
contain pertinent URL information in an encrypted format. No login required. 

Is this possible to do relatively securely without forcing users to login to a 
web application?

Regards,
-Jim


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

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


Saving a CFINPUT field

2008-02-13 Thread Eron Cohen
I am trying to work out the best way to have some form fields auto-save without 
having to press a SAVE button--like the way they do when you use a CFC with 
onChange in a CFGRID.  

For instance, suppose I had a CFINPUT field.  I was hoping you could just do 
 and when you clicked 
off the field it would send data into the CFC that could be stored.  I am 
pretty sure this functionality isn't there, so I need some help going in the 
right direction for this.  Aside from one CFINPUT, one of the fields I want to 
autosave is a richtext CFTEXTAREA and there are also two selects.

Any ideas much appreciated.

Thank you. 

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

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


Re: a sIMPLER url?

2008-02-13 Thread Matt Robertson
You can easily do this with your missing template handler.

First of all, your web server needs to hand off 404 processing to CF.
on IIS you do this by altering the .cfm document property so the box
that says 'make sure the file actually exists' is unchecked.
Obviously I'm paraphrasing and not trying to give you a step-by-step
on how to do it).

Next, set up a missing template handler in the CF server admin.

Next, in that missing template handler ... you tell it what to do.
This means you deal with the expected cases of 'false' 404's as well
as properly handling real ones.  So lets say you have a set of search
results that you want a crawler to move thru.  Creating urls like

http://mydomain.com/next/list_61.cfm
http://mydomain.com/prev/list_1.cfm

You could make up something like what you see below.  Set up a cfif
for every possible case you can find.  the thing works by chopping up
the url looking for a string.  When it finds the string it branches
accordingly.  You would think that using cfhttp like this is really
resource intensive but it has proven not to be via experience.  Since
I am querying 'myself' with it essentially, the load has proven to be
negligible.
















http://mydomain.com/404.html";>






#cfhttp.FileContent#

   





On Feb 13, 2008 11:08 AM, Josh Nathanson <[EMAIL PROTECTED]> wrote:
> > and I get 404 - not found...
>
> I think you need to remove that trailing slash in the rewrite rule, if it
> will not be present on the request url:
>
> RewriteRule (.*)/seminar/(.*) $1/seminar.cfm?VAR=$2
>
> -- Josh
>
>
> 

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

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


RE: OT: How to stop bots indexing my dev sites

2008-02-13 Thread Dave Watts
>> Use robots.txt:
>
> This is correct to control good bots, but 
> bad bots don't read it.

This isn't relevant, since the crawlers used by Google and Yahoo do obey 
robots.txt.

> Some (very) bad bots even exploit what 
> is in the file to read what's forbidden.

Robots.txt is not intended to be a security mechanism.

Dave Watts, CTO, Fig Leaf Software

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

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


Re: Could not generate stub objects for web service invocation

2008-02-13 Thread bill turner
> Hi,
  
> I am getting the following error
> Could not generate stub objects for web service invocation, when i 
> tried to execute a sample web service.
> How to check whether web service site is working or not
> 
> I tried using the following code
> 
> 
> 
>   o = createObject("webservice","http://www.xmethods.
> net/sd/2001/CurrencyExchangeService.wsdl");
>   stArgs = structNew();
>   stArgs.country1 = "united states";
>   stArgs.country2 = "united states";
>   
>   stArgs.commandName="getRate";
>   q=o.CommandHandler(argumentCollection=stArgs);
>   
> 
> 
> 
> 
 
> 
> 
> Please help me to resolve this issue
> 
> Thanks

Hi Sam,

The first step to validate it would be to paste the URL of the wsdl into a 
browser and try to retreive it, which I did. The page was not found (I knew it 
wouldn't be, xmethods seems to have reorged the site some time back and many of 
the URLs have changed). Check the full list at xmethods for a new one. Perhaps 
you are looking for 
http://www.freewebs.com/jimmy_cheng/CurrencyExchangeService.wsdl. NOTE: many 
samples found on the web of CF accessing web services are likely out dated. You 
definitely need to verify that you can reach the wsdl via a browser.

Good luck.

bill


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

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


Re: a sIMPLER url?

2008-02-13 Thread Josh Nathanson
> and I get 404 - not found...

I think you need to remove that trailing slash in the rewrite rule, if it 
will not be present on the request url:

RewriteRule (.*)/seminar/(.*) $1/seminar.cfm?VAR=$2

-- Josh


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

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


Web Service Could not generate stub

2008-02-13 Thread bill turner
I've two problems and believe that by solving one, I'll solve the other. The 
first, and most important, problem is that I cannot seem to call a webservice 
from CF. The second is that I cannot add the same web service to the components 
in DW.

As far as the first problem goes, the wsdl is internal to the organization. 
When I enter the wsdl from a web browser, I am prompted for a user id and 
password. The wsdl then displays in the browser. When I call it, however, 
(specifying the user and password attributes) in the cfinvoke tag, I get a 
stack trace stating 

XmlRpcServiceImpl$ServiceStubGenerationException: Could not generate stub 
objects for web service invocation.

I have searched this problem on the web, but the answers I find don't seem 
relevant. They all seem to say that if I can pull it up in the browser, then 
all should be okay. FWIW - I have attached my code, with the service name and 
user and pw fields removed.

When I try to add the web service component to DreamWeaver, the second problem, 
I am likewise prompted for a user id and password. However, I get a pop up 
stating:

Unable to generate a proxy.
Server returned HTTP response code: 401 for URL: (I am not displaying the url 
for security reasons)  I also cannot add public web services to the DW 
components, such as Ben Forta's Web Tip of the Day (wsdl is 
http://www.forta.com/cf/tips/syndicate.cfc?wsdl). Again, I can view the wsdl in 
a web browser. This, time, however, when I try to add the web service 
component, the pop up states:

Unable to generate a proxy.
Connection refused: connect

Note that I have no problem with this public web service (either adding to DW 
or calling from CF) when using my tools on my computer and my own web site. I 
am not sure if the problem with the private web service has the same root cause 
as the public web service, but they both look suspiciously like security 
problems.

Any help is truly appreciated!





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

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


RE: Strange happenings in a login. CFMX 6.1

2008-02-13 Thread DURETTE, STEVEN J (ATTASIAIT)
So I moved it up, but it didn't solve anything.

I'm stuck. Any other ideas?

Steve
 

-Original Message-
From: DURETTE, STEVEN J (ATTASIAIT) 
Sent: Wednesday, February 13, 2008 10:38 AM
To: CF-Talk
Subject: RE: Strange happenings in a login. CFMX 6.1

I can't move it completely to the top.

Variables.inLogin and Variables.pageTitle have to be set before the
upper Application.cfm is fired or they will be set to defaults.

As for checking the session before it is created... Well sort of. That
would only happen if the person went directly to the login page instead
of the index of the main site.

Most people would go to /PowerCo/Index.cfm which would fire off the
/PowerCo/Application.cfm which creates the application and session
variables. Then that file sees that there isn't a value in the session
variable and send it to the login screen.  Therefore the session is
already created when it gets to /PowerCo/Login/Application.cfm.

I will try it anyhow as there would be an error if someone went directly
to the login instead of the main site.  Hadn't even thought about that
one.

Steve


-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 10:19 AM
To: CF-Talk
Subject: Re: Strange happenings in a login. CFMX 6.1

You are checking a session variable before you've enabled the session
with the cfapplication tag:


/PowerCo/login/Application.cfm
-





 



Move the include to the top.

On Feb 13, 2008 11:15 PM, DURETTE, STEVEN J (ATTASIAIT) <[EMAIL PROTECTED]>
wrote:
> The reason I have two Application.cfms is that the
> /PowerCo/Application.cfm is the full on Application.cfm that sets
almost
> everything I need, the /PowerCo/Login/Application.cfm sets
> variables/checks that are specific to that directory, then calls the
> /PowerCo/Application.cfm.
>
> I have an Application.cfm in every subdirectory, they all set
directory
> specific variables, then call the Application.cfm from the directory
> above.  It stops at the /PowerCo/Application.cfm.
>
> Again, this has never been a problem in the past, and only the login
> screen is doing this weird have to login more than once thing.


-- 
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;160198600;22374440;w

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


RE: a sIMPLER url?

2008-02-13 Thread Andy Matthews
Remember, you have to make sure that you've got the ISAPI_rewrite module
available to you. Your host can tell you if it's installed. 

-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 12:58 PM
To: CF-Talk
Subject: Re: a sIMPLER url?

OK...here's what I've got:

In my root folder (www.mysite.com)
file: httpd.ini

[ISAPI_Rewrite]
RewriteRule (.*)/seminar/(.*)/ $1/seminar.cfm?VAR=$2

I try to go to:

http://www.mysite.com/seminar/foreign08

.and I get 404 - not found...

Just to check - trying the full address:
http://www.mysite.com/seminar.cfm?VAR=foreign08

Yup, that works.

This is CF7 running on IIS (not 100% sure what version)



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

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


Re: a sIMPLER url?

2008-02-13 Thread Les Mizzell
OK...here's what I've got:

In my root folder (www.mysite.com)
file: httpd.ini

[ISAPI_Rewrite]
RewriteRule (.*)/seminar/(.*)/ $1/seminar.cfm?VAR=$2

I try to go to:

http://www.mysite.com/seminar/foreign08

and I get 404 - not found...

Just to check - trying the full address:
http://www.mysite.com/seminar.cfm?VAR=foreign08

Yup, that works.

This is CF7 running on IIS (not 100% sure what version)

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

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


RE: a sIMPLER url?

2008-02-13 Thread Andy Matthews
Nope...

You're not matching SPECIFIC strings, you're using regex to match anything
after the /seminar/ 

The URL can be whatever you like

As long as you've got this in your ini file, then you're golder:

[ISAPI_Rewrite]
RewriteRule (.*)/seminar/(.*)/ $1/seminar.cfm?yourvar=$2

This code will take the following:

/seminar/macworld
/seminar/cfunited08
/seminar/nada

and rewrite them to

/seminar.cfm?event=macworld
/seminar.cfm?event=cfunited08
/seminar.cfm?event=nada

The (.*) is the key. Working from the inside out:

.. matches ANY character
* says any number of times
Put those together and it says match any character, any numner of times.

The parens store the matched text into a temp variable to be used with the
$1 or $2.


You grok?


-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 12:19 PM
To: CF-Talk
Subject: Re: a sIMPLER url?

Andy Matthews wrote:
> Doesn't matter. You simply determine what all of the possibilities are 
> and account for them in regex.

Still a little confused:

www.mysite.com/seminar/#EVENT_CODE#

Could be 300 records in the database, with stuff being added and deleted on
an ongoing bases at any time.

So, I'm not sure how I account for that here:
I'd have to write from the database in some way and loop through all the
#event_code# used and add them to the below, correct?

Something like:

[ISAPI_Rewrite]

   RewriteRule /seminar/(.*)/ /seminar.cfm?name=#event_code# 







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

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


Re: a sIMPLER url?

2008-02-13 Thread Les Mizzell
Andy Matthews wrote:
> Doesn't matter. You simply determine what all of the possibilities are and
> account for them in regex. 

Still a little confused:

www.mysite.com/seminar/#EVENT_CODE#

Could be 300 records in the database, with stuff being added and deleted 
on an ongoing bases at any time.

So, I'm not sure how I account for that here:
I'd have to write from the database in some way and loop through all the 
#event_code# used and add them to the below, correct?

Something like:

[ISAPI_Rewrite]

   RewriteRule /seminar/(.*)/ /seminar.cfm?name=#event_code#






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

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


CF8 CSS woes

2008-02-13 Thread Richard Meredith-Hardy
After years of CF5 I'm starting off on my first big CF8 project.

While we really need it for it's new accessibility to Exchange, the
wizzy new AJAX features are great and as far as I can see have the
potential to take out the loads of fiddly JS I always seem to end up
with in my AJAX calls Etc.  At the same time however, these nice tags
create loads of fiddly CSS if I'm to get the site looking like my client
wants.  

So far, 

1) I set up the basic page layout (based on a YUI fonts/grids layout)
and a CFAjaximport-ed set of the CFIDE files.
2) Got CFMENU working to my liking, eventually.
3) Got CFLAYOUT tabs working, after some conflicts with YUI and menu CSS

At this stage dynamic CFGRID visually is completely broken. arrrgh.

Basically, the more components I add and then tweak their CSS, the more
tricky and time consuming it's becoming to get everything to play
together

Has someone done any kind of generic CSS skin for a range of the more
common new CF8 stuff?  At least it might set me on a straighter track.

Failing that:

A) Am I approaching this in completely the wrong way, I should forget
about tweaking the multifarious .css files CF8 needs and just stick with
the limitations of what I can style in the CF tags themselves?

OR 

B) Should I limit myself to only ADDING css elements to a
cf8-mysite-mods.css file - at least this would keep all css mods in the
same place, but not sure how wise or practical it is to effectively
un-cascade the elements I need to; there's additional overhead for the
browser as well.

OR

C) The way I'm doing it: tweaking the underlying 'default' css, is the
only way to do it.

What do you do?

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;160198600;22374440;w

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


RE: How to stop bots indexing my dev sites

2008-02-13 Thread Rick Faircloth
I didn't put it in my client's domain... it's under a domain
I used just for development.

But search engines don't particularly like duplicate content and
I would rather the bots not index the site.

I'll have to check into using a robots.txt file to exclude an entire
folder.  I've used them for files, but not folders/directories.

Rick

> -Original Message-
> From: Will Swain [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 13, 2008 11:59 AM
> To: CF-Talk
> Subject: RE: How to stop bots indexing my dev sites
> 
> Do you put it up in the client's webspace, under their domain?
> 
> I just put all clients dev work under a single folder in my domain, and use
> the robots.txt file to exclude that folder.
> 
> 
> Will
> 
> 
> -Original Message-
> From: Rick Faircloth [mailto:[EMAIL PROTECTED]
> Sent: 13 February 2008 15:57
> To: CF-Talk
> Subject: OT: How to stop bots indexing my dev sites
> 
> Hi, all.
> 
> I usually put up a client's site while it is development so they can view
> progress, make comments, etc.
> 
> I recently completed a client's site and began to perform search engine
> optimization on it.
> 
> Once I started reviewing rankings, I found that my development site was
> ranking higher for the content than my client's main site!
> Not good!
> 
> I thought about using the meta tag for robots not to follow or index the
> site, but realized I'd have to take that out of the file every time I
> uploaded the site to my client's domain.
> 
> I guess I could check the cgi.server_name and skip the meta tag with
> conditional cf code if it's in the development domain.
> 
> Other ideas?
> 
> 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;160198600;22374440;w

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


RE: a sIMPLER url?

2008-02-13 Thread Andy Matthews
Doesn't matter. You simply determine what all of the possibilities are and
account for them in regex. 

-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 11:07 AM
To: CF-Talk
Subject: Re: a sIMPLER url?

> I rewrote it to this: 
> www.site.com/shirts/myshirt
> 
> Create a file called httpd.ini and put it in the root of your website.
> 
> Put this into the file:
> [ISAPI_Rewrite]
> RewriteRule (.*)/shirt/(.*)/ $1/shirt.cfm?name=$2

www.mysite.com/seminar/foreign08

OK - I see the logic behind this method - but the URL is being generated
dynamically on another page.

"Foreign08" could be anything from the database.



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

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


Re: OT: How to stop bots indexing my dev sites

2008-02-13 Thread Claude Schneegans
 >>If he is simply
trying to prevent search engines from indexing certain folders, he should be
fine?

Let's say 50% fine, since bad bots (may be 50% of all robot traffic) do 
not even care reading robots.txt

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

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


RE: OT: How to stop bots indexing my dev sites

2008-02-13 Thread Russ
Put Apache/IIS authentication on your dev sites.  (Of course much easier in
apache) 

Russ

> -Original Message-
> From: Claude Schneegans [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 13, 2008 12:09 PM
> To: CF-Talk
> Subject: Re: OT: How to stop bots indexing my dev sites
> 
>  >>Use robots.txt:
> 
> This is correct to control good bots, but bad bots don't read it.
> Some (very) bad bots even exploit what is in the file to read what's
> forbidden.
> 
> 

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

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


RE: OT: How to stop bots indexing my dev sites

2008-02-13 Thread Will Swain
Sure. But it depends on what the OP's requirements are. If he is simply
trying to prevent search engines from indexing certain folders, he should be
fine?

Will

-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: 13 February 2008 17:09
To: CF-Talk
Subject: Re: OT: How to stop bots indexing my dev sites

 >>Use robots.txt:

This is correct to control good bots, but bad bots don't read it.
Some (very) bad bots even exploit what is in the file to read what's
forbidden.



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

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


RE: a sIMPLER url?

2008-02-13 Thread Will Swain
There's an article in the latest FAQU about using onMissingTemplate to do
this sort of thing. I haven't read it yet, but it's just another reason, if
you need any, to subscribe.

Will


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

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


Re: SOT: Ant Script help

2008-02-13 Thread jonese
Got it... FYI for anyone else wanting to do this.







jonese

On Feb 13, 2008 11:01 AM, Andrew Powell <[EMAIL PROTECTED]> wrote:
> I don't know of any core ANT tasks (i.e. default) that will read and
> merge files.  However, there are a number of external tools that you
> can use that may do what you're looking to achieve.  Most of the ones
> I've seen simply work with XML though.  If you're not merging XML,
> then you may need to write your own ANT task, which is fun in and of
> itself.  :)
>
> External ANT tasks:  http://ant.apache.org/external.html
>
> Andy
>
> http://www.infoaccelerator.net
>
> On Feb 13, 2008, at 10:50 AM, jonese wrote:
>
> > i basically have a file which is generated by another program (File
> > A). I need to take the contents of this file and place it into a NEW
> > File B then move File B to File A.
> >
> > I have to do this because for some reason some of my ANT tasks cannot
> > "read" File A. But if i manually copy the contents from File A to File
> > B and then rename File B to File A it works.So i'm trying to do
> > this using ANT.
> >
> > jonese
> >
> > On Feb 13, 2008 10:45 AM, Andrew Powell <[EMAIL PROTECTED]> wrote:
> >> Are you talking about merging files or replacing files?
> >>
> >> If you're replacing:
> >>
> >> 
> >> 
> >>
> >> Andy
> >>
> >>
> >>
> >> On Feb 13, 2008, at 10:40 AM, jonese wrote:
> >>
> >>> Anyone here ever create an ant script which will take the
> >>> contents for
> >>> file A and put them into file b? i'm trying to find a workaround for
> >>> an issue i'm having and this is currently the only solution.
> >>>
> >>> thanks in advance
> >>> jonese
> >>>
> >>>
> >>
> >>
> >
> >
>
> 

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

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


Re: OT: How to stop bots indexing my dev sites

2008-02-13 Thread Claude Schneegans
 >>Use robots.txt:

This is correct to control good bots, but bad bots don't read it.
Some (very) bad bots even exploit what is in the file to read what's 
forbidden.

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

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


Re: a sIMPLER url?

2008-02-13 Thread Casey Dougall
On 2/13/08, Les Mizzell <[EMAIL PROTECTED]> wrote:
>
> I started with this:
> http://www.mysite.com/seminar.cfm?id=Foreign08
>
>
> Upon client request, I rewrote it to this:
> http://www.mysite.com/seminar.cfm/Foreign08
>
>
> Now they want this:
> http://www.mysite.com/seminar/Foreign08
>
>
> I've not been able to figure a way to do it without the .cfm extension.
>
>
> Ideas?



You could store the CGI.SCRIPT_NAME in the database, use cffile to create
the directory structure with a index.cfm file in the final folder, then look
for that content when a page is loaded.
First to some replace
/seminar/Foreign08

i do this a bunch because I don't have access to webserver URL rewrite tools
a lot of the time, and it goes a little something like this.

1) Person makes a post, take the tile and clean up the text with some regex,
also making it lowercase.

 

2) Find the folder this is going in from the main category



3) Create the folders and file







 Sorry, or just skip this step, or rename the file or something then
continue





  






Update/insert into table

Then when you want the data on the frontend

 SELECT the fields from Pages
WHERE SCRIPT_NAME = #CGI.SCRIPT_NAME#

This is really trimmed down but works well I guess. I haven't had any real
troubles with it. Sometimes they may change the tile which I normally handle
with setting the index.cfm page in the old folder with a 301 redirect line
to the new location instead of deleting the folder completely and receiving
404 errors.

Casey


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

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


Re: OT: How to stop bots indexing my dev sites

2008-02-13 Thread Claude Schneegans
 >>Once I started reviewing rankings, I found that my development
site was ranking higher for the content than my client's main site!
Not good!

Exact.
But robot control is not something trivial.
Firstly, there are true and friendly robots, like Google, secondly, 
there are bad bots, looking for
mail addresses, trying to put spam into your sites, chinese bots 
checking if your site should be
banned because they are speaking about human's right, etc.

Good bots are easy to recognize: they have a web address in the user 
agent, ex:
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)

Bad bots are more tricky to detect, because they don't want to look like 
a robot, then they mimic
standard browsers like MSIE, Mozilla, etc.

I've designed my own bad bot detector ("robotCop") and it takes several 
factors in account like:
- reads the robots.txt file,
- respects instructions in the robots.txt file,
- falls in click trap (some link not visible by a human visitor)
- average time spend between pages,
- reads images,
- reads javascript files,
- execute Javascript,
- support cookis,
- listed in black lists... etc.

Based on these factors, agents are granted
- full access (supposedly human browsers)
- text only (supposedly good robots)
- banned (supposedly bad or unwanted bots)
 

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

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


Re: a sIMPLER url?

2008-02-13 Thread Les Mizzell
> I rewrote it to this: 
> www.site.com/shirts/myshirt
> 
> Create a file called httpd.ini and put it in the root of your website.
> 
> Put this into the file:
> [ISAPI_Rewrite]
> RewriteRule (.*)/shirt/(.*)/ $1/shirt.cfm?name=$2

www.mysite.com/seminar/foreign08

OK - I see the logic behind this method - but the URL is being generated 
dynamically on another page.

"Foreign08" could be anything from the database.

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

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


Re: Way OT : Grails.org

2008-02-13 Thread Sean Corfield
On Feb 12, 2008 6:17 PM, s. isaac dealey <[EMAIL PROTECTED]> wrote:
> It'd been mentioned to me recently... the way I understand it Groovy is
> basically an alternative to (for example) CF developed in the Java
> community, first released in January of last year and currently
> undergoing java-community standardization.

Groovy's been around for a few years (the language was started in
2003/2004 I think) although the "1.0" version only appeared a year
ago. Grails first appeared in 2006 and the "1.0" version was released
about a week ago.

Ruby started in the mid-90's with a 0.95 release at the end of 1995.
Rails was first released in 2004. Ruby 1.0 was early 2006 I think, 2.0
was released at the end of 2007.

Ruby started life as a C/C++ based system, compiled for each platform.
A traditional "interpreter" (much as ColdFusion did). JRuby was
created to allow Ruby to run on the JVM (much as CFMX did). Groovy has
always been Java-based with very deep, rich Java integration.

My thoughts:

http://corfield.org/cat/grails
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

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

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


RE: How to stop bots indexing my dev sites

2008-02-13 Thread Will Swain
Do you put it up in the client's webspace, under their domain?

I just put all clients dev work under a single folder in my domain, and use
the robots.txt file to exclude that folder. 


Will 


-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: 13 February 2008 15:57
To: CF-Talk
Subject: OT: How to stop bots indexing my dev sites

Hi, all.

I usually put up a client's site while it is development so they can view
progress, make comments, etc.

I recently completed a client's site and began to perform search engine
optimization on it.

Once I started reviewing rankings, I found that my development site was
ranking higher for the content than my client's main site!
Not good!

I thought about using the meta tag for robots not to follow or index the
site, but realized I'd have to take that out of the file every time I
uploaded the site to my client's domain.

I guess I could check the cgi.server_name and skip the meta tag with
conditional cf code if it's in the development domain.

Other ideas?

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;160198600;22374440;w

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


RE: a sIMPLER url?

2008-02-13 Thread Andy Matthews
Oh...you can do the same thing with Apache, if you have the mod_rewrite
module available to you.

Create a file called ".htaccess" and place the following inside it:

RewriteEngine on
RewriteRule shirt/([a-zA-Z0-9-]+) shirt.cfm?name=$1

The hardest part is actually creating the file. Open a text editor, paste
those lines inside it, then in the filename box, type ".htaccess" (INCLUDING
the quotes).


andy

 

-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 10:23 AM
To: CF-Talk
Subject: a sIMPLER url?

I started with this:
http://www.mysite.com/seminar.cfm?id=Foreign08


Upon client request, I rewrote it to this:
http://www.mysite.com/seminar.cfm/Foreign08


Now they want this:
http://www.mysite.com/seminar/Foreign08


I've not been able to figure a way to do it without the .cfm extension.


Ideas?



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

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


RE: a sIMPLER url?

2008-02-13 Thread Andy Matthews
Les...

I recently implemented SES URLS via my hosts ISAPI_rewrite module (for IIS
only). It took me a little while to figure out to do it, but once I got it,
it works great.

My original URL looked like this:
www.site.com/shirts.cfm?name=myshirt

I rewrote it to this:

www.site.com/shirts/myshirt


Create a file called httpd.ini and put it in the root of your website.

Put this into the file:
[ISAPI_Rewrite]
RewriteRule (.*)/shirt/(.*)/ $1/shirt.cfm?name=$2

- The first part is the directive you want to use.
- The second part is a regular expression for the incoming URL. In my case I
want anything before, and after /shirt/, and each set of parentheses is it's
own "variable" of sorts.
- The final part is what I want to match TO. The $1 and $2 correlate to the
sets of parentheses in the second part.



-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 10:23 AM
To: CF-Talk
Subject: a sIMPLER url?

I started with this:
http://www.mysite.com/seminar.cfm?id=Foreign08


Upon client request, I rewrote it to this:
http://www.mysite.com/seminar.cfm/Foreign08


Now they want this:
http://www.mysite.com/seminar/Foreign08


I've not been able to figure a way to do it without the .cfm extension.


Ideas?



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

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


RE: OT: How to stop bots indexing my dev sites

2008-02-13 Thread Dave Watts
> I thought about using the meta tag for 
> robots not to follow or index the site, but 
> realized I'd have to take that out of the 
> file every time I uploaded the site to my 
> client's domain.

Use robots.txt:

http://www.robotstxt.org/

Dave Watts, CTO, Fig Leaf Software

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

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


Re: a sIMPLER url?

2008-02-13 Thread Charlie Griefer
On Feb 13, 2008 8:23 AM, Les Mizzell <[EMAIL PROTECTED]> wrote:
> I started with this:
> http://www.mysite.com/seminar.cfm?id=Foreign08
>
>
> Upon client request, I rewrote it to this:
> http://www.mysite.com/seminar.cfm/Foreign08
>
>
> Now they want this:
> http://www.mysite.com/seminar/Foreign08
>
>
> I've not been able to figure a way to do it without the .cfm extension.

not 100% sure it'll meet all of your needs, but have you looked at Coldcourse?

http://coldcourse.riaforge.org/

-- 
Evelyn the dog, having undergone further modification pondered the
significance of short-person behaviour in pedal depressed,
pan-chromatic resonance, and other highly ambient domains. "Arf," she
said.

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

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


Re: a sIMPLER url?

2008-02-13 Thread Les Mizzell
> That will work IF you go back to using the ?id=Foreign08


That's what they don't want.

Actually, if they could really get their way, it would be:
www.mysite.com/Foreign08 - but that obviously ain't gonna happen.

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

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


Re: Reading Excel..

2008-02-13 Thread Brian Dumbledore
Thanks for the link.. I use 6.1 or higher always. I will try the link. I have a 
bit of java experience and used poi directly but had troubles. I used JExcelAPI 
instead, it was cool. 

However, I am glad that someone wrapped poi into cf. Thanks again for the link.



> What version of CF are you using?
> 
> If it's 6.1 or higher you can use this awesome toolset by Ben Nadel
> (who is my hero for making it)
> 
> http://www.bennadel.
com/blog/> 
474-ColdFusion-Component-Wrapper-For-POI-To-Read-And-Write-Excel-Files.
> htm
> 
> http://www.bennadel.com/projects/poi-utility.htm
> 
> 
> HTH
> 
> -- 
> Alan Rother
> Adobe Certified Advanced ColdFusion MX 7 Developer
> Manager, Phoenix Cold Fusion User Group, AZCFUG.
org 

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

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


Re: a sIMPLER url?

2008-02-13 Thread Alan Rother
opps

hit send too soon.

That will work IF you go back to using the ?id=Foreign08

-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org

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

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


Re: a sIMPLER url?

2008-02-13 Thread Alan Rother
Put seminar.cfm into a folder named seminar and rename it to index.cfm

that will work



-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org

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

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


a sIMPLER url?

2008-02-13 Thread Les Mizzell
I started with this:
http://www.mysite.com/seminar.cfm?id=Foreign08


Upon client request, I rewrote it to this:
http://www.mysite.com/seminar.cfm/Foreign08


Now they want this:
http://www.mysite.com/seminar/Foreign08


I've not been able to figure a way to do it without the .cfm extension.


Ideas?

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

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


Re: Reading Excel..

2008-02-13 Thread Alan Rother
What version of CF are you using?

If it's 6.1 or higher you can use this awesome toolset by Ben Nadel
(who is my hero for making it)

http://www.bennadel.com/blog/474-ColdFusion-Component-Wrapper-For-POI-To-Read-And-Write-Excel-Files.htm

http://www.bennadel.com/projects/poi-utility.htm


HTH

-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org

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

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


Reading Excel..

2008-02-13 Thread Brian Dumbledore
I made the subject look easy so I can have more viewers ;) But here is my 
problem.. After having trouble with working cfx_Excel2Query ( I finally 
reverted to it in the end and got it working), I thought why not do this:

1) Create a odbc dsn to a excel file
2) Create a cf dsn to this odbc dsn
3) User uploads his file, I copy it as the file to which the dsn si specified.
4) I query the file using [sheet$1] as the table, and so on.


This method works fine, however, sometimes (most of the times), it appears the 
file being used as the dsn gets 'locked'. I cann't delete, rename etc, 'next' 
upload of file fails to overwrite this file because it is locked. 
Basically this method is too inconsistent.

My question is, is there anything I need to do to make sure the file is 
'released' after the query has run? If this one thing is solved, I no longer 
have to use third party solutions, I can just create a dsn to the file and keep 
overwriting the file with the new file whenever.

Any suggestions? 

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

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


RE: How to stop bots indexing my dev sites

2008-02-13 Thread Brad Wood
I'm half joking, but it would probably work...
Associate .txt files with CF and make your robots.txt dynamic.  :)

A more plausible solution might be to protect the entire folder the dev
site is in with .htaccess or something so someone out there can't just
hit it with out a token login.

~Brad

-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 9:57 AM
To: CF-Talk
Subject: OT: How to stop bots indexing my dev sites

Hi, all.

I usually put up a client's site while it is development
so they can view progress, make comments, etc.

I recently completed a client's site and began to perform
search engine optimization on it.

Once I started reviewing rankings, I found that my development
site was ranking higher for the content than my client's main site!
Not good!

I thought about using the meta tag for robots not to follow or index
the site, but realized I'd have to take that out of the file every time
I uploaded the site to my client's domain.

I guess I could check the cgi.server_name and skip the meta tag with
conditional cf code if it's in the development domain.

Other ideas?

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;160198600;22374440;w

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


OT: How to stop bots indexing my dev sites

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

I usually put up a client's site while it is development
so they can view progress, make comments, etc.

I recently completed a client's site and began to perform
search engine optimization on it.

Once I started reviewing rankings, I found that my development
site was ranking higher for the content than my client's main site!
Not good!

I thought about using the meta tag for robots not to follow or index
the site, but realized I'd have to take that out of the file every time
I uploaded the site to my client's domain.

I guess I could check the cgi.server_name and skip the meta tag with
conditional cf code if it's in the development domain.

Other ideas?

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;160198600;22374440;w

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


Re: SOT: Ant Script help

2008-02-13 Thread Andrew Powell
I don't know of any core ANT tasks (i.e. default) that will read and  
merge files.  However, there are a number of external tools that you  
can use that may do what you're looking to achieve.  Most of the ones  
I've seen simply work with XML though.  If you're not merging XML,  
then you may need to write your own ANT task, which is fun in and of  
itself.  :)

External ANT tasks:  http://ant.apache.org/external.html

Andy

http://www.infoaccelerator.net

On Feb 13, 2008, at 10:50 AM, jonese wrote:

> i basically have a file which is generated by another program (File
> A). I need to take the contents of this file and place it into a NEW
> File B then move File B to File A.
>
> I have to do this because for some reason some of my ANT tasks cannot
> "read" File A. But if i manually copy the contents from File A to File
> B and then rename File B to File A it works.So i'm trying to do
> this using ANT.
>
> jonese
>
> On Feb 13, 2008 10:45 AM, Andrew Powell <[EMAIL PROTECTED]> wrote:
>> Are you talking about merging files or replacing files?
>>
>> If you're replacing:
>>
>> 
>> 
>>
>> Andy
>>
>>
>>
>> On Feb 13, 2008, at 10:40 AM, jonese wrote:
>>
>>> Anyone here ever create an ant script which will take the  
>>> contents for
>>> file A and put them into file b? i'm trying to find a workaround for
>>> an issue i'm having and this is currently the only solution.
>>>
>>> thanks in advance
>>> jonese
>>>
>>>
>>
>>
>
> 

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

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


Re: cftextarea and carriage returns

2008-02-13 Thread Jeremy Keith
>Need to get a cftextarea (CF 7) area to accept a carriage return when 
>the user is typing, and then when the form is submitted, save that so 
>when the data is viewed, the carriage returns are still intact.
>
>If I set: wrap="hard"
>It will accept carriage returns when I'm typing, but after the form 
>submission, the returns are erased and not saved to the database (A SQL 
>Server varchar field)
>
>Anyway to get this to work?

They are there, when you output you just need to do a 
#replace(query.field,chr(10),"","All")# 

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

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


Re: SOT: Ant Script help

2008-02-13 Thread jonese
i basically have a file which is generated by another program (File
A). I need to take the contents of this file and place it into a NEW
File B then move File B to File A.

I have to do this because for some reason some of my ANT tasks cannot
"read" File A. But if i manually copy the contents from File A to File
B and then rename File B to File A it works.So i'm trying to do
this using ANT.

jonese

On Feb 13, 2008 10:45 AM, Andrew Powell <[EMAIL PROTECTED]> wrote:
> Are you talking about merging files or replacing files?
>
> If you're replacing:
>
> 
> 
>
> Andy
>
>
>
> On Feb 13, 2008, at 10:40 AM, jonese wrote:
>
> > Anyone here ever create an ant script which will take the contents for
> > file A and put them into file b? i'm trying to find a workaround for
> > an issue i'm having and this is currently the only solution.
> >
> > thanks in advance
> > jonese
> >
> >
>
> 

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

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


Re: SOT: Ant Script help

2008-02-13 Thread Andrew Powell
Are you talking about merging files or replacing files?

If you're replacing:




Andy


On Feb 13, 2008, at 10:40 AM, jonese wrote:

> Anyone here ever create an ant script which will take the contents for
> file A and put them into file b? i'm trying to find a workaround for
> an issue i'm having and this is currently the only solution.
>
> thanks in advance
> jonese
>
> 

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

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


SOT: Ant Script help

2008-02-13 Thread jonese
Anyone here ever create an ant script which will take the contents for
file A and put them into file b? i'm trying to find a workaround for
an issue i'm having and this is currently the only solution.

thanks in advance
jonese

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

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


RE: Strange happenings in a login. CFMX 6.1

2008-02-13 Thread DURETTE, STEVEN J (ATTASIAIT)
I can't move it completely to the top.

Variables.inLogin and Variables.pageTitle have to be set before the
upper Application.cfm is fired or they will be set to defaults.

As for checking the session before it is created... Well sort of. That
would only happen if the person went directly to the login page instead
of the index of the main site.

Most people would go to /PowerCo/Index.cfm which would fire off the
/PowerCo/Application.cfm which creates the application and session
variables. Then that file sees that there isn't a value in the session
variable and send it to the login screen.  Therefore the session is
already created when it gets to /PowerCo/Login/Application.cfm.

I will try it anyhow as there would be an error if someone went directly
to the login instead of the main site.  Hadn't even thought about that
one.

Steve


-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 10:19 AM
To: CF-Talk
Subject: Re: Strange happenings in a login. CFMX 6.1

You are checking a session variable before you've enabled the session
with the cfapplication tag:


/PowerCo/login/Application.cfm
-





 



Move the include to the top.

On Feb 13, 2008 11:15 PM, DURETTE, STEVEN J (ATTASIAIT) <[EMAIL PROTECTED]>
wrote:
> The reason I have two Application.cfms is that the
> /PowerCo/Application.cfm is the full on Application.cfm that sets
almost
> everything I need, the /PowerCo/Login/Application.cfm sets
> variables/checks that are specific to that directory, then calls the
> /PowerCo/Application.cfm.
>
> I have an Application.cfm in every subdirectory, they all set
directory
> specific variables, then call the Application.cfm from the directory
> above.  It stops at the /PowerCo/Application.cfm.
>
> Again, this has never been a problem in the past, and only the login
> screen is doing this weird have to login more than once thing.


-- 
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;160198600;22374440;w

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


cftextarea and carriage returns

2008-02-13 Thread Les Mizzell
Need to get a cftextarea (CF 7) area to accept a carriage return when 
the user is typing, and then when the form is submitted, save that so 
when the data is viewed, the carriage returns are still intact.

If I set: wrap="hard"
It will accept carriage returns when I'm typing, but after the form 
submission, the returns are erased and not saved to the database (A SQL 
Server varchar field)

Anyway to get this to work?

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

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


Re: Strange happenings in a login. CFMX 6.1

2008-02-13 Thread James Holmes
You are checking a session variable before you've enabled the session
with the cfapplication tag:


/PowerCo/login/Application.cfm
-





 



Move the include to the top.

On Feb 13, 2008 11:15 PM, DURETTE, STEVEN J (ATTASIAIT) <[EMAIL PROTECTED]> 
wrote:
> The reason I have two Application.cfms is that the
> /PowerCo/Application.cfm is the full on Application.cfm that sets almost
> everything I need, the /PowerCo/Login/Application.cfm sets
> variables/checks that are specific to that directory, then calls the
> /PowerCo/Application.cfm.
>
> I have an Application.cfm in every subdirectory, they all set directory
> specific variables, then call the Application.cfm from the directory
> above.  It stops at the /PowerCo/Application.cfm.
>
> Again, this has never been a problem in the past, and only the login
> screen is doing this weird have to login more than once thing.


-- 
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;160198600;22374440;w

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


RE: Relative path when instantiating a CFC?

2008-02-13 Thread Jonathon Stierman
The proxy approach has been blogged about:

http://corfield.org/blog/index.cfm/do/blog.entry/entry/Extending_Your_Root_A
pplicationcfc

Here's the jist of the layout:

/Application.cfc (root)
/ApplicationProxy.cfc (extends Application.cfc)
/sub/Application.cfc (extends ApplicationProxy.cfc)

Jonathon

-Original Message-
From: Adrian Lynch [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 7:02 AM
To: CF-Talk
Subject: RE: Relative path when instantiating a CFC?

Sorry for the hijack, but how are people using Application.cfc to create sub
applications with the following structure:

Application.cfc - Main app
admin\Application.cfc - Sub app

Where the sub app wants to have extend the main app's App.cfc?

Adrian

-Original Message-
From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED]
Sent: 13 February 2008 12:52
To: CF-Talk
Subject: RE: Relative path when instantiating a CFC?


>>I want to use a relative path when instantiating a CFC.  Can this be 
>>done when using createObject()?  Can it be done at all?
>
>
>There is also a UDF at cflib that allows relative paths. Though it does 
>use coldfusion.runtime.TemplateProxy. So it might not work in CF8 if 
>access to internal java components is disabled.
>
>http://cflib.org/udf.cfm?ID=900

The updated version on my blog works with CF6/7/8:

http://blog.pengoworks.com/index.cfm/2003/3/27/UDF-component-for-CFMX

It uses the TemplateProxyFactory for CF7 & 8. The obviously uses undocument
internals for CF, so there's always the possibility it will break in the
future.

However, it's been working fine for me over 5 years.

-Dan




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

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


  1   2   >