Regular Expression - decimal number positive negative

2012-12-14 Thread Paul Giesenhagen

Heya,

I know that some will know this quickly ... but I have ReplaceNoCase(str, 
[^0-9\.],,ALL)

And this takes -5 to 5 ... which is not what I want - I want to include 
negative numbers what do I add to this regular expression to keep the decimals 
(if there) and keep the negative if there?

So
5.24 is fine
-5.24 is fine
5 is fine
-5 if fine

$5.24 (replace the $)
$5,244.22 (replace the $ and the ,)

Basically I need positive and negative integers to go into a float column.

Thanks



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353457
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Regular Expression - decimal number positive negative

2012-12-14 Thread Nathan Strutz

So you need something like

[^0-9\.-]

This just adds the dash to your existing match. You could get a lot better
though, like this

-?\d+(\.\d+)?

-? matches an optional negative indiator, aka a dash
\d+ is just numbers, same as 0-9, the only part of this regex that is
required
(\.\d+)? means match a decimal only when it has numbers after it, and this
entire group is optional


nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]



On Fri, Dec 14, 2012 at 7:59 AM, Paul Giesenhagen p...@quilldesign.comwrote:


 Heya,

 I know that some will know this quickly ... but I have ReplaceNoCase(str,
 [^0-9\.],,ALL)

 And this takes -5 to 5 ... which is not what I want - I want to include
 negative numbers what do I add to this regular expression to keep the
 decimals (if there) and keep the negative if there?

 So
 5.24 is fine
 -5.24 is fine
 5 is fine
 -5 if fine

 $5.24 (replace the $)
 $5,244.22 (replace the $ and the ,)

 Basically I need positive and negative integers to go into a float column.

 Thanks



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353458
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Regular Expression - decimal number positive negative

2012-12-14 Thread Matt Quackenbush

A contrived, slightly expanded example based upon Nathan's code...

cfscript
samples = {
a = 5.24,
b = -5.24,
c = 5,
d = -5,
e = $5.24,
f = $5,244.22
};
for ( key in samples )
{
writeOutput( reReplace( reReplace( samples[key], '(-?\d+(\.\d+)?)',
'\1', 'all' ), '[^0-9\.-]', '', 'all' )  br / );
}
/cfscript



On Fri, Dec 14, 2012 at 9:14 AM, Nathan Strutz str...@gmail.com wrote:


 So you need something like

 [^0-9\.-]

 This just adds the dash to your existing match. You could get a lot better
 though, like this

 -?\d+(\.\d+)?

 -? matches an optional negative indiator, aka a dash
 \d+ is just numbers, same as 0-9, the only part of this regex that is
 required
 (\.\d+)? means match a decimal only when it has numbers after it, and this
 entire group is optional


 nathan strutz
 [www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]



 On Fri, Dec 14, 2012 at 7:59 AM, Paul Giesenhagen p...@quilldesign.com
 wrote:

 
  Heya,
 
  I know that some will know this quickly ... but I have ReplaceNoCase(str,
  [^0-9\.],,ALL)
 
  And this takes -5 to 5 ... which is not what I want - I want to include
  negative numbers what do I add to this regular expression to keep the
  decimals (if there) and keep the negative if there?
 
  So
  5.24 is fine
  -5.24 is fine
  5 is fine
  -5 if fine
 
  $5.24 (replace the $)
  $5,244.22 (replace the $ and the ,)
 
  Basically I need positive and negative integers to go into a float
 column.
 
  Thanks
 
 
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353459
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Regular Expression - decimal number positive negative

2012-12-14 Thread Adam Cameron

Recommend not reinventing the wheel here:
http://www.cflib.org/udf/NumberUnFormat



On 14 December 2012 14:59, Paul Giesenhagen p...@quilldesign.com wrote:


 Heya,

 I know that some will know this quickly ... but I have ReplaceNoCase(str,
 [^0-9\.],,ALL)

 And this takes -5 to 5 ... which is not what I want - I want to include
 negative numbers what do I add to this regular expression to keep the
 decimals (if there) and keep the negative if there?

 So
 5.24 is fine
 -5.24 is fine
 5 is fine
 -5 if fine

 $5.24 (replace the $)
 $5,244.22 (replace the $ and the ,)

 Basically I need positive and negative integers to go into a float column.

 Thanks



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353460
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Weird problem with IFRAME

2012-12-14 Thread Claude Schnéegans

 Is it possible the IFrame src is getting redirected to the root

It would be if the file is not found, but the file exists and it works with all 
other browsers, including IE8.
Only IE9 seems to have trouble.
And if it was redirectected, there would be a trace of it in the HTTP logs
For instance if I request doesNotExists.cfm, I clearly see the HTTP request for 
doesNotExists.cfm then another one, the CF redirection, for the root /
But in this issue, the request is directly made to /, just like if there was no 
address in the SCR attribute.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353461
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Changes do not show up on live website

2012-12-14 Thread fun and learning

Hi All -

We are using Coldfusion with farcry CMS. I made some changes and pushed them 
live, but changes do not seem to reflect on the site. We recycled the servers, 
and the change showed up, but after a page refresh it stopped showing up.

Can anyone have any clues on why this could be happening? 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353462
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Changes do not show up on live website

2012-12-14 Thread Adam Cameron

Try switching off save class files and getting rid of all the files in
the cfclasses dir. They are more of a blight than a help in my experience.

-- 
Adam

On 14 December 2012 15:40, fun and learning funandlrnn...@gmail.com wrote:


 Hi All -

 We are using Coldfusion with farcry CMS. I made some changes and pushed
 them live, but changes do not seem to reflect on the site. We recycled the
 servers, and the change showed up, but after a page refresh it stopped
 showing up.

 Can anyone have any clues on why this could be happening?

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353463
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Changes do not show up on live website

2012-12-14 Thread fun and learning

Try switching off save class files and getting rid of all the files in
the cfclasses dir. They are more of a blight than a help in my experience.

-- 
Adam

On 14 December 2012 15:40, fun and learning funandlrnn...@gmail.com wrote:



This option is already unchecked in Coldfusion admin 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353464
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Changes do not show up on live website

2012-12-14 Thread Adam Cameron

OK, but what about the files in cfclasses? It's unlikely there's old ones
in there if the setting is off, but sometimes there's some cruft lying
around.

-- 
Adam



On 14 December 2012 15:55, fun and learning funandlrnn...@gmail.com wrote:


 Try switching off save class files and getting rid of all the files in
 the cfclasses dir. They are more of a blight than a help in my experience.
 
 --
 Adam
 
 On 14 December 2012 15:40, fun and learning funandlrnn...@gmail.com
 wrote:
 
 

 This option is already unchecked in Coldfusion admin

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353465
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Changes do not show up on live website

2012-12-14 Thread funand learning

are these cfclasses in WEB-INF folder?

On Fri, Dec 14, 2012 at 9:56 AM, Adam Cameron 
adamcameroncoldfus...@gmail.com wrote:


 OK, but what about the files in cfclasses? It's unlikely there's old ones
 in there if the setting is off, but sometimes there's some cruft lying
 around.

 --
 Adam



 On 14 December 2012 15:55, fun and learning funandlrnn...@gmail.com
 wrote:

 
  Try switching off save class files and getting rid of all the files in
  the cfclasses dir. They are more of a blight than a help in my
 experience.
  
  --
  Adam
  
  On 14 December 2012 15:40, fun and learning funandlrnn...@gmail.com
  wrote:
  
  
 
  This option is already unchecked in Coldfusion admin
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353466
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Changes do not show up on live website

2012-12-14 Thread Adam Cameron

Sorry, yes.

-- 
Adam

On 14 December 2012 16:04, funand learning funandlrnn...@gmail.com wrote:


 are these cfclasses in WEB-INF folder?

 On Fri, Dec 14, 2012 at 9:56 AM, Adam Cameron 
 adamcameroncoldfus...@gmail.com wrote:

 
  OK, but what about the files in cfclasses? It's unlikely there's old ones
  in there if the setting is off, but sometimes there's some cruft lying
  around.
 
  --
  Adam
 
 
 
  On 14 December 2012 15:55, fun and learning funandlrnn...@gmail.com
  wrote:
 
  
   Try switching off save class files and getting rid of all the files
 in
   the cfclasses dir. They are more of a blight than a help in my
  experience.
   
   --
   Adam
   
   On 14 December 2012 15:40, fun and learning funandlrnn...@gmail.com
   wrote:
   
   
  
   This option is already unchecked in Coldfusion admin
  
  
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353467
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Changes do not show up on live website

2012-12-14 Thread funand learning

Another question. Is it safe to delete those files? Coldfusion does not use
any of those files, right?

On Fri, Dec 14, 2012 at 10:05 AM, Adam Cameron 
adamcameroncoldfus...@gmail.com wrote:


 Sorry, yes.

 --
 Adam

 On 14 December 2012 16:04, funand learning funandlrnn...@gmail.com
 wrote:

 
  are these cfclasses in WEB-INF folder?
 
  On Fri, Dec 14, 2012 at 9:56 AM, Adam Cameron 
  adamcameroncoldfus...@gmail.com wrote:
 
  
   OK, but what about the files in cfclasses? It's unlikely there's old
 ones
   in there if the setting is off, but sometimes there's some cruft lying
   around.
  
   --
   Adam
  
  
  
   On 14 December 2012 15:55, fun and learning funandlrnn...@gmail.com
   wrote:
  
   
Try switching off save class files and getting rid of all the
 files
  in
the cfclasses dir. They are more of a blight than a help in my
   experience.

--
Adam

On 14 December 2012 15:40, fun and learning 
 funandlrnn...@gmail.com
wrote:


   
This option is already unchecked in Coldfusion admin
   
   
  
  
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353468
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Regular Expression - decimal number positive negative

2012-12-14 Thread Paul Giesenhagen

Good deal ... thank you!

-Original Message-
From: Adam Cameron [mailto:adamcameroncoldfus...@gmail.com] 
Sent: Friday, December 14, 2012 9:28 AM
To: cf-talk
Subject: Re: Regular Expression - decimal number positive  negative


Recommend not reinventing the wheel here:
http://www.cflib.org/udf/NumberUnFormat



On 14 December 2012 14:59, Paul Giesenhagen p...@quilldesign.com wrote:


 Heya,

 I know that some will know this quickly ... but I have 
 ReplaceNoCase(str,
 [^0-9\.],,ALL)

 And this takes -5 to 5 ... which is not what I want - I want to 
 include negative numbers what do I add to this regular expression to 
 keep the decimals (if there) and keep the negative if there?

 So
 5.24 is fine
 -5.24 is fine
 5 is fine
 -5 if fine

 $5.24 (replace the $)
 $5,244.22 (replace the $ and the ,)

 Basically I need positive and negative integers to go into a float column.

 Thanks



 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353469
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Changes do not show up on live website

2012-12-14 Thread Dave Watts

 Another question. Is it safe to delete those files? Coldfusion does not use
 any of those files, right?

CF does use them if they're there, but it is perfectly safe to delete them.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353470
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Changes do not show up on live website

2012-12-14 Thread Adam Cameron

Yep, definitely.

When CF compiles your source code (before it runs it), that Save Class
Files makes CF write the compiled classes out to that directory. The only
benefit this gives is that if you're short on memory, sometimes CF will
cycle a compiled class out of memory, which means the next time you use it
it will need to be reloaded. If the class file is already there, it'll use
that, otherwise CF will need to recompile the source code (which has a
performance overhead).  CF will, however, attempt to keep commonly used
classes in memory, and only cycle-out not-oft-used ones, so this is not
much of a problem.

Obviously when you chance the source code, CF is supposed to recompile
anyhow, but I have found that sometimes it *doesn't* when you've got an
already compiled file for that code in that directory. This still happens
on CF9, as I experienced it last week.

You should try to set your maximum templates setting to be slightly
higher than *all* your application's compiled classes (if you have the RAM
to do so), and this will mean CF will never cycle anything out of RAM.

The other consideration is that when CF restarts, obviously it starts with
nothing in memory, so it will need to recompile everything again, which
makes start-up a bit slower.

On the down side of saving class files is that on Windows I actually find
it degrades performance (Charlie Arehart disagrees with me here, and he's
more of an expert on the topic, so take my advice with a pinch of salt),
because Windows really struggles with more than a few hundred files in one
directory, and most CF apps have far more than that. So this means when CF
checks whether source code and compiled class file differ (which is every
time the code is requested), Windows is very slow to find the file.  *nix
does not have this issue.

On the whole, I have found it better to run *without* this setting on in a
production environment.  However it has not been my job to troubleshoot
this sort of thing for a number of years now, so I would not take my advice
as gold.

-- 
Adam



On 14 December 2012 16:13, funand learning funandlrnn...@gmail.com wrote:


 Another question. Is it safe to delete those files? Coldfusion does not use
 any of those files, right?

 On Fri, Dec 14, 2012 at 10:05 AM, Adam Cameron 
 adamcameroncoldfus...@gmail.com wrote:

 
  Sorry, yes.
 
  --
  Adam
 
  On 14 December 2012 16:04, funand learning funandlrnn...@gmail.com
  wrote:
 
  
   are these cfclasses in WEB-INF folder?
  
   On Fri, Dec 14, 2012 at 9:56 AM, Adam Cameron 
   adamcameroncoldfus...@gmail.com wrote:
  
   
OK, but what about the files in cfclasses? It's unlikely there's old
  ones
in there if the setting is off, but sometimes there's some cruft
 lying
around.
   
--
Adam
   
   
   
On 14 December 2012 15:55, fun and learning funandlrnn...@gmail.com
 
wrote:
   

 Try switching off save class files and getting rid of all the
  files
   in
 the cfclasses dir. They are more of a blight than a help in my
experience.
 
 --
 Adam
 
 On 14 December 2012 15:40, fun and learning 
  funandlrnn...@gmail.com
 wrote:
 
 

 This option is already unchecked in Coldfusion admin


   
   
  
  
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353471
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Changes do not show up on live website

2012-12-14 Thread Dave Watts

 On the down side of saving class files is that on Windows I actually find
 it degrades performance (Charlie Arehart disagrees with me here, and he's
 more of an expert on the topic, so take my advice with a pinch of salt),
 because Windows really struggles with more than a few hundred files in one
 directory, and most CF apps have far more than that. So this means when CF
 checks whether source code and compiled class file differ (which is every
 time the code is requested), Windows is very slow to find the file.  *nix
 does not have this issue.

I think the truth lies somewhere in between both of these points.

In some cases, it will degrade performance. In other cases, it will
improve performance. It really depends on a couple of factors: disk
performance and the number of CF files you have, in total. This is one
of those things where you really have to load test your system to find
out whether it will help or hurt.

Also, Unix does in fact have this issue - the first case where I
encountered it was a Solaris box. While there are performance
differences between NTFS and common Unix or Linux filesystems like
ext4, those aren't all big when it comes to this. Of course, if you
try to browse the cfclasses directory with Windows Explorer, good luck
with that!

The real problem, in my opinion, is simply that all these files are
placed within a single directory. If there was a nested directory
structure to manage these files, average seek times would be much
better. But when you have over fifty thousand files in a single
directory - which is not uncommon in a production CF environment -
performance is going to suck.

Finally, the problem isn't really the comparison between the source
code and the compiled class - that's a separate issue, and of course
that can be disabled in production - but simply the seek time needed
to find the compiled class on disk in the first place.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353472
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Changes do not show up on live website

2012-12-14 Thread funand learning

Thanks Adam and Dave, there were some old files dating back to 2010. We
deleted them and restarted the server, but with no change.

ANy other clues why this could be happening?

On Fri, Dec 14, 2012 at 10:29 AM, Adam Cameron 
adamcameroncoldfus...@gmail.com wrote:


 Yep, definitely.

 When CF compiles your source code (before it runs it), that Save Class
 Files makes CF write the compiled classes out to that directory. The only
 benefit this gives is that if you're short on memory, sometimes CF will
 cycle a compiled class out of memory, which means the next time you use it
 it will need to be reloaded. If the class file is already there, it'll use
 that, otherwise CF will need to recompile the source code (which has a
 performance overhead).  CF will, however, attempt to keep commonly used
 classes in memory, and only cycle-out not-oft-used ones, so this is not
 much of a problem.

 Obviously when you chance the source code, CF is supposed to recompile
 anyhow, but I have found that sometimes it *doesn't* when you've got an
 already compiled file for that code in that directory. This still happens
 on CF9, as I experienced it last week.

 You should try to set your maximum templates setting to be slightly
 higher than *all* your application's compiled classes (if you have the RAM
 to do so), and this will mean CF will never cycle anything out of RAM.

 The other consideration is that when CF restarts, obviously it starts with
 nothing in memory, so it will need to recompile everything again, which
 makes start-up a bit slower.

 On the down side of saving class files is that on Windows I actually find
 it degrades performance (Charlie Arehart disagrees with me here, and he's
 more of an expert on the topic, so take my advice with a pinch of salt),
 because Windows really struggles with more than a few hundred files in one
 directory, and most CF apps have far more than that. So this means when CF
 checks whether source code and compiled class file differ (which is every
 time the code is requested), Windows is very slow to find the file.  *nix
 does not have this issue.

 On the whole, I have found it better to run *without* this setting on in a
 production environment.  However it has not been my job to troubleshoot
 this sort of thing for a number of years now, so I would not take my advice
 as gold.

 --
 Adam



 On 14 December 2012 16:13, funand learning funandlrnn...@gmail.com
 wrote:

 
  Another question. Is it safe to delete those files? Coldfusion does not
 use
  any of those files, right?
 
  On Fri, Dec 14, 2012 at 10:05 AM, Adam Cameron 
  adamcameroncoldfus...@gmail.com wrote:
 
  
   Sorry, yes.
  
   --
   Adam
  
   On 14 December 2012 16:04, funand learning funandlrnn...@gmail.com
   wrote:
  
   
are these cfclasses in WEB-INF folder?
   
On Fri, Dec 14, 2012 at 9:56 AM, Adam Cameron 
adamcameroncoldfus...@gmail.com wrote:
   

 OK, but what about the files in cfclasses? It's unlikely there's
 old
   ones
 in there if the setting is off, but sometimes there's some cruft
  lying
 around.

 --
 Adam



 On 14 December 2012 15:55, fun and learning 
 funandlrnn...@gmail.com
  
 wrote:

 
  Try switching off save class files and getting rid of all the
   files
in
  the cfclasses dir. They are more of a blight than a help in my
 experience.
  
  --
  Adam
  
  On 14 December 2012 15:40, fun and learning 
   funandlrnn...@gmail.com
  wrote:
  
  
 
  This option is already unchecked in Coldfusion admin
 
 


   
   
  
  
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353473
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Changes do not show up on live website

2012-12-14 Thread Adam Cameron

H. Nothing that I can think of from a CF perspective. Do you have a
load-balanced environment, and only one of the servers has been updated or
something?

Or there's some logic-driven situation which might be working in an
unexpected way which means it's all working fine, just not quite doing what
you expect?

-- 
Adam


On 14 December 2012 16:46, funand learning funandlrnn...@gmail.com wrote:


 Thanks Adam and Dave, there were some old files dating back to 2010. We
 deleted them and restarted the server, but with no change.

 ANy other clues why this could be happening?



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353474
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Changes do not show up on live website

2012-12-14 Thread Adam Cameron

Dave, do you know if there's a good reason they'll all stuck in the same
dir, as opposed to hierarchically? I suspect it's just an oversight / it
not occurring to them on Adobe's part, but perhaps it needs to be this
way?  It's always bugged me.

Our app will stick about 8 files in that dir if we let it (which we
don't).

-- 
Adam



On 14 December 2012 16:44, Dave Watts dwa...@figleaf.com wrote:


 The real problem, in my opinion, is simply that all these files are
 placed within a single directory. If there was a nested directory
 structure to manage these files, average seek times would be much
 better. But when you have over fifty thousand files in a single
 directory - which is not uncommon in a production CF environment -
 performance is going to suck.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353475
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Changes do not show up on live website

2012-12-14 Thread Russ Michaels

as you have said your using a CMS, I would suspect the issue lay there, it
has not published the file changes properly. Are they published to a flat
file or do they come from a database, check the settings on farcry and make
sure the doc is actually published.


On Fri, Dec 14, 2012 at 5:09 PM, Adam Cameron 
adamcameroncoldfus...@gmail.com wrote:


 Dave, do you know if there's a good reason they'll all stuck in the same
 dir, as opposed to hierarchically? I suspect it's just an oversight / it
 not occurring to them on Adobe's part, but perhaps it needs to be this
 way?  It's always bugged me.

 Our app will stick about 8 files in that dir if we let it (which we
 don't).

 --
 Adam



 On 14 December 2012 16:44, Dave Watts dwa...@figleaf.com wrote:

 
  The real problem, in my opinion, is simply that all these files are
  placed within a single directory. If there was a nested directory
  structure to manage these files, average seek times would be much
  better. But when you have over fifty thousand files in a single
  directory - which is not uncommon in a production CF environment -
  performance is going to suck.
 


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353476
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Changes do not show up on live website

2012-12-14 Thread Dave Watts

 Dave, do you know if there's a good reason they'll all stuck in the same
 dir, as opposed to hierarchically? I suspect it's just an oversight / it
 not occurring to them on Adobe's part, but perhaps it needs to be this
 way?  It's always bugged me.

I don't know if it's an oversight. I think it's easier than the
alternative, which involves creating subdirectories based on some
naming scheme, then figuring out how to traverse them, etc.

 Our app will stick about 8 files in that dir if we let it (which we
 don't).

Yeah, that directory can get really crazy - I've seen cases with
several hundred thousand files which is s l o w.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353477
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


(ot) Windows Mesh Alternatives

2012-12-14 Thread John M Bliss

Hi! Currently, my geographically dispersed company uses Windows Mesh as a
network drive for shared office files. Microsoft has announced that Mesh
is going away to be replaced by SkyDrive. Before we migrate to SkyDrive, I
thought I'd poll the list to see if any of you might have another (better?)
alternative.

Thanks!

-- 
John Bliss - http://about.me/jbliss


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353478
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: (ot) Windows Mesh Alternatives

2012-12-14 Thread Cameron Childress

On Fri, Dec 14, 2012 at 12:36 PM, John M Bliss bliss.j...@gmail.com wrote:

 Hi! Currently, my geographically dispersed company uses Windows Mesh as
 a network drive for shared office files. Microsoft has announced that
 Mesh is going away to be replaced by SkyDrive. Before we migrate to
 SkyDrive, I thought I'd poll the list to see if any of you might have
 another (better?) alternative.


We use DropBox for this purpose. I like that it's cross platform, seamless,
and not a Microsoft owned product, but better will be something only you
can decide.

-Cameron

-- 
Cameron Childress
--
p:   678.637.5072
im: cameroncf
facebook http://www.facebook.com/cameroncf |
twitterhttp://twitter.com/cameronc |
google+ https://profiles.google.com/u/0/117829379451708140985


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353479
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: (ot) Windows Mesh Alternatives

2012-12-14 Thread Carl Von Stetten

+1 for Dropbox.  Dropbox for Teams looks interesting as well.
-Carl V.
On 12/14/2012 9:50 AM, Cameron Childress wrote:
 On Fri, Dec 14, 2012 at 12:36 PM, John M Bliss bliss.j...@gmail.com wrote:

 Hi! Currently, my geographically dispersed company uses Windows Mesh as
 a network drive for shared office files. Microsoft has announced that
 Mesh is going away to be replaced by SkyDrive. Before we migrate to
 SkyDrive, I thought I'd poll the list to see if any of you might have
 another (better?) alternative.

 We use DropBox for this purpose. I like that it's cross platform, seamless,
 and not a Microsoft owned product, but better will be something only you
 can decide.

 -Cameron



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353480
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: (ot) Windows Mesh Alternatives

2012-12-14 Thread Dave Watts

 Hi! Currently, my geographically dispersed company uses Windows Mesh as a
 network drive for shared office files. Microsoft has announced that Mesh
 is going away to be replaced by SkyDrive. Before we migrate to SkyDrive, I
 thought I'd poll the list to see if any of you might have another (better?)
 alternative.

I'm a big fan of Google Drive, primarily because I'm also a big fan of
Google Apps generally. The nice thing about switching to Apps and
using Drive is that you end up with a single security infrastructure
for mail and documents, but you really only get that value if you're
also switching your mail to Apps. There's nothing stopping you from
using Google Drive separately with public Google accounts, or
purchasing Apps licenses to use Google Drive with domain accounts.

But I really came in here to suggest box.com. They really seem to have
the best overall solution out there, as far as I can tell.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353481
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: (ot) Windows Mesh Alternatives

2012-12-14 Thread Gerald Guido

 I'm a big fan of Google Drive, primarily because I'm also a big fan of
Google Apps generally.

1++

I nutted up for the 80 gig plan and it has worked great so far. It has
simple versioning which I am rather fond of. I can pick up where I left off
from multiple locations and not have to worry about keeping multiple
versions synced.

G!

On Fri, Dec 14, 2012 at 1:26 PM, Dave Watts dwa...@figleaf.com wrote:

 I'm a big fan of Google Drive, primarily because I'm also a big fan of
 Google Apps generally.




-- 
Gerald Guido
http://www.myinternetisbroken.com


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353482
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Changes do not show up on live website

2012-12-14 Thread funand learning

Thanks a lot for your replies. We found the issue and its a very silly one.
We used to have a script that copies files from test server to prod server.
I never had to bother what the folder name in prod was as script was
written long back and we just run it. Recently the script was broken due to
some permissions issues, so we had to copy the files manually. We thought
test and prod has same folder structure  Prod has a folder with same name
as test environment, and an another folder with slightly different name
 which was actually used. So we copied files into the folder with same name
as test environment rather than the other. Can't believe I wasted so much
of my time and especially you guys. Sorry about that.



On Fri, Dec 14, 2012 at 11:19 AM, Dave Watts dwa...@figleaf.com wrote:


  Dave, do you know if there's a good reason they'll all stuck in the same
  dir, as opposed to hierarchically? I suspect it's just an oversight / it
  not occurring to them on Adobe's part, but perhaps it needs to be this
  way?  It's always bugged me.

 I don't know if it's an oversight. I think it's easier than the
 alternative, which involves creating subdirectories based on some
 naming scheme, then figuring out how to traverse them, etc.

  Our app will stick about 8 files in that dir if we let it (which we
  don't).

 Yeah, that directory can get really crazy - I've seen cases with
 several hundred thousand files which is s l o w.

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

 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or onsite.

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353483
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: (ot) Windows Mesh Alternatives

2012-12-14 Thread John M Bliss

One more caveat: Windows Mesh allows for peer-to-peer *only* (i.e. no
(apparent) storage of sensitive files on MSFT servers.) Anyone know whether
any of the already-mentioned services allows for that and/or can think of
another alternative that does?


On Fri, Dec 14, 2012 at 12:50 PM, Gerald Guido gerald.gu...@gmail.comwrote:


  I'm a big fan of Google Drive, primarily because I'm also a big fan of
 Google Apps generally.

 1++

 I nutted up for the 80 gig plan and it has worked great so far. It has
 simple versioning which I am rather fond of. I can pick up where I left off
 from multiple locations and not have to worry about keeping multiple
 versions synced.

 G!

 On Fri, Dec 14, 2012 at 1:26 PM, Dave Watts dwa...@figleaf.com wrote:

  I'm a big fan of Google Drive, primarily because I'm also a big fan of
  Google Apps generally.
 



 --
 Gerald Guido
 http://www.myinternetisbroken.com


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353484
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: (ot) Windows Mesh Alternatives

2012-12-14 Thread Dave Watts

 One more caveat: Windows Mesh allows for peer-to-peer *only* (i.e. no
 (apparent) storage of sensitive files on MSFT servers.) Anyone know whether
 any of the already-mentioned services allows for that and/or can think of
 another alternative that does?

I know that Google Drive, box.com and Dropbox do not offer this option.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353485
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Converting JS variable to CF variable

2012-12-14 Thread Les Irvin

I don't know diddly squat about javascript.  But I want to take a JS
variable, such as those addressed in this alert:

alert(Your coordinates are  + position.coords.latitude + ,  +
position.coords.longitude);

and use it as a CF variable elsewhere on the page, like
#position.coords.latitude# (of course this doesn't work).

Can anyone shed some light for me?

Thanks,
Les


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353486
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Converting JS variable to CF variable

2012-12-14 Thread Matt Quackenbush

JS is client-side. CF is server-side. By the time the page gets to the
client where JS can/is run, CF is already completely out of the picture.

You could...

a) set a CF variable and render it as a JS variable
b) get fancy with some ajax to send off a request to CF to set/get a
variable and send back a response that you inject into the page somewhere

HTH


On Fri, Dec 14, 2012 at 3:50 PM, Les Irvin les.cft...@gmail.com wrote:


 I don't know diddly squat about javascript.  But I want to take a JS
 variable, such as those addressed in this alert:

 alert(Your coordinates are  + position.coords.latitude + ,  +
 position.coords.longitude);

 and use it as a CF variable elsewhere on the page, like
 #position.coords.latitude# (of course this doesn't work).

 Can anyone shed some light for me?

 Thanks,
 Les


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353487
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Weird problem with IFRAME

2012-12-14 Thread Maureen

If this is exact code, it looks like you need a space between
mondossier.cfm and type=#type#

IFRAME SRC=monDossierEdit.cfm? type=#type# WIDTH=950 HEIGHT=650
FRAMEBORDER=STYLE=position:relative; NAME=admin/IFRAME

On Thu, Dec 13, 2012 at 2:13 PM,  wrote:


 Hi,
 One of my customers is having a very weird problem with an IFRAME in my
 site.
 Here is the code in file mondossier.cfm:
 IFRAME SRC=monDossierEdit.cfm?type=#type# WIDTH=950 HEIGHT=650
 FRAMEBORDER=0
  STYLE=position:relative; NAME=admin/IFRAME
 type is blank



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353488
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Weird problem with IFRAME

2012-12-14 Thread Claude Schnéegans

  it looks like you need a space between
mondossier.cfm and type=#type#

No, type here is a parameter in the url, not an attribute for IFRAME
IFRAME has no TYPE attribute anyway, only SRC and NAME.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353489
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm