Re: CF8 and CF9 on the same computer

2009-10-16 Thread Rob Barthle

Thanks to both of you. So my first and biggest problem was doing CF8 standalone 
it looks like. Guess it's time to get experience doing multi-server! 

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


Need CF8 OS X 32-bit installer

2009-10-16 Thread Rob Barthle

Does anybody have the CF8 32-bit installer that I could FTP from them? 
Apparently Adobe is no longer making this available (from 
http://forums.adobe.com/thread/502783?tstart=0) now that CF9 is out??!! 

Either way, I am stuck without a copy of the 32-bit OS X CF8 installer, so if 
anyone can bail me out here I'd greatly appreciate it. 

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


blocking site downloaders

2009-10-16 Thread Michael Muller

Hey all,

Every once in a while I'll notice in my logs that someone comes to one of my 
sites and hits thousands of pages in a short span and then leaves.  This annoys 
me for a few reasons:

(a) It's an unecessary tax on my server (and we all hate taxes)

(b) It artificially inflates my page hits

(c) What the hell are they doing? Scraping my pages and hosting them on some 
site? The current offending IP reverses to China.


So, to avoid this, I'm considering the following:

o Add a session variable that stores the last page view time down to the 
second.  However, this may not work as the offending behavior is probably 
generated by a bot or desktop app that doesn't store session variables.

o Review my databased logs for the current IP's last twenty page views.  This 
may put an extra small hit on the server, but over all not as much as an extra 
2200 page views in an hour every couple of weeks.

If the requesting IP has requested more than twenty pages from the website in 
the current minute, I block the IP for a period of time, say, an hour or two.

I have about a dozen sites running the same software, each with multiple 
thousands of pages (community sites, with 21,000 messages and 


I've posed this question a couple of times before on this list and it hasn't 
prompted any response.  I will try again, hoping someone will either tell me 
I'm worrying too much, or that this is a smart idea.

Thanks,

Mik




Michael Muller
office (413) 863-6455
cell (413) 320-5336
skype: michaelBmuller
http://MontagueWebWorks.com

Information is not knowledge
Knowlege is not wisdom

Eschew Obfuscation


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


display wingding character code

2009-10-16 Thread Richard White

Hi,

we want to display a wingding character code 252 in coldfusion text, how can we 
do this?

we looked into chr() and other methods but so far no luck

thanks for your help

richard 

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


Re: display wingding character code

2009-10-16 Thread John M Bliss

cfoutputp style=font-family: Wingdings;#Chr(252)#/p/cfoutput  ?

On Fri, Oct 16, 2009 at 9:27 AM, Richard White rich...@j7is.co.uk wrote:


 Hi,

 we want to display a wingding character code 252 in coldfusion text, how
 can we do this?

 we looked into chr() and other methods but so far no luck

 thanks for your help

 richard

 

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


Re: blocking site downloaders

2009-10-16 Thread Azadi Saryev

some thoughts on the issue:

1) it may very well be a spider from a chinese search engine indexing
your pages... i'll leave it up to you to decide if you want none of 1
billion chinese people to be able to find your site...
in case it's a search spider, you can try adding appropriate robots.txt
file and meta tags to prevent access to and indexing of pages you do
not want accessed/indexed. you can also add rel=nofollow to any links
you do not want followed by robots. of course, not all robots obey these
rules - if this bot does not then you can consider banning it completely
using the options you outlined.
another impact of robots accessing your site is that your app will still
try and create session vars for their sessions, filling your server
memory with useless sessions. you can try to lessen this burden on your
server by setting super-short session timeout for robots' sessions. irc,
ben nadel had a good blog post on how to do this over on
http://www.bennadel.com/.

2)  However, this may not work as the offending behavior is probably
generated by a bot or desktop app that doesn't store session variables.
if you use j2ee sessions then session vars are in-memory only and are
stored in server's memory, not on client;s computer...

3)  This may put an extra small hit on the server, but over all not as
much as an extra 2200 page views in an hour every couple of weeks.
i think you may be wrong here... 2200 page requests once every couple of
weeks seems like a less tax on your server than parsing your logs on
every page request... but then it depends on how loaded your sites are...

just some quick thoughts that i hope may help you...

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


On 16/10/2009 22:12, Michael Muller wrote:
 Hey all,

 Every once in a while I'll notice in my logs that someone comes to one of my 
 sites and hits thousands of pages in a short span and then leaves.  This 
 annoys me for a few reasons:

 (a) It's an unecessary tax on my server (and we all hate taxes)

 (b) It artificially inflates my page hits

 (c) What the hell are they doing? Scraping my pages and hosting them on some 
 site? The current offending IP reverses to China.


 So, to avoid this, I'm considering the following:

 o Add a session variable that stores the last page view time down to the 
 second.  However, this may not work as the offending behavior is probably 
 generated by a bot or desktop app that doesn't store session variables.

 o Review my databased logs for the current IP's last twenty page views.  This 
 may put an extra small hit on the server, but over all not as much as an 
 extra 2200 page views in an hour every couple of weeks.

 If the requesting IP has requested more than twenty pages from the website in 
 the current minute, I block the IP for a period of time, say, an hour or two.

 I have about a dozen sites running the same software, each with multiple 
 thousands of pages (community sites, with 21,000 messages and 


 I've posed this question a couple of times before on this list and it hasn't 
 prompted any response.  I will try again, hoping someone will either tell me 
 I'm worrying too much, or that this is a smart idea.

 Thanks,

 Mik



 
 Michael Muller
 office (413) 863-6455
 cell (413) 320-5336
 skype: michaelBmuller
 http://MontagueWebWorks.com

 Information is not knowledge
 Knowlege is not wisdom

 Eschew Obfuscation


 

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


Re: blocking site downloaders

2009-10-16 Thread Mike Chabot

Is it a search engine robot? If so you could block it using
robots.txt. What is the Web browser they are using?

Do you have any customers in China? If not, you can block the entire
country at the firewall level.

-Mike Chabot

On Fri, Oct 16, 2009 at 10:12 AM, Michael Muller mich...@mullertech.com wrote:

 Hey all,

 Every once in a while I'll notice in my logs that someone comes to one of my 
 sites and hits thousands of pages in a short span and then leaves.  This 
 annoys me for a few reasons:

 (a) It's an unecessary tax on my server (and we all hate taxes)

 (b) It artificially inflates my page hits

 (c) What the hell are they doing? Scraping my pages and hosting them on some 
 site? The current offending IP reverses to China.


 So, to avoid this, I'm considering the following:

 o Add a session variable that stores the last page view time down to the 
 second.  However, this may not work as the offending behavior is probably 
 generated by a bot or desktop app that doesn't store session variables.

 o Review my databased logs for the current IP's last twenty page views.  This 
 may put an extra small hit on the server, but over all not as much as an 
 extra 2200 page views in an hour every couple of weeks.

 If the requesting IP has requested more than twenty pages from the website in 
 the current minute, I block the IP for a period of time, say, an hour or two.

 I have about a dozen sites running the same software, each with multiple 
 thousands of pages (community sites, with 21,000 messages and


 I've posed this question a couple of times before on this list and it hasn't 
 prompted any response.  I will try again, hoping someone will either tell me 
 I'm worrying too much, or that this is a smart idea.

 Thanks,

 Mik



 
 Michael Muller
 office (413) 863-6455
 cell (413) 320-5336
 skype: michaelBmuller
 http://MontagueWebWorks.com

 Information is not knowledge
 Knowlege is not wisdom

 Eschew Obfuscation


 

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


Re: Need CF8 OS X 32-bit installer

2009-10-16 Thread Azadi Saryev

sorry i can;t help you with the installer, but i just have to say this:

rant
so one can download cfmx7 (see sean corfiled's reply to your other
thread from couple of days ago)  and cf9, but not cf8? very strange...
and definitely looks like adobe's screw-up...

and if that comment attributed to adobe support staff on the thread on
adobe cf forums - The support rep told me they are no longer allowing
CF8 downloads.  You can still purchase CF8 from a reseller (until CF10
is released), but you can't try it before you buy it. - is true, it
just shows once again how ridiculous adobe support is at the moment.
iirc, all cf installers (downloadable and on dvd) are the same - a
trial/dev edition until you apply a license key. they are the same -
standard or enterprise edition no matter. and even if they were
different - what if i needed a cf8 dev edition to replicate my
production environment on my dev machine? according to support rep one
will have to buy cf8 now to do this? ridiculous!
/rant

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


On 16/10/2009 21:31, Rob Barthle wrote:
 Does anybody have the CF8 32-bit installer that I could FTP from them? 
 Apparently Adobe is no longer making this available (from 
 http://forums.adobe.com/thread/502783?tstart=0) now that CF9 is out??!! 

 Either way, I am stuck without a copy of the 32-bit OS X CF8 installer, so if 
 anyone can bail me out here I'd greatly appreciate it. 

 

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


Re: Coldfusion Encrypt and Insert quotation mark issue

2009-10-16 Thread Paul Cormier

A couple of issues. Firstly, CFMX 7 introduced the encoding attribute to the 
encrypt function. For example, if you use hex encoding, then the string 
returned will always be made up of 0-9A-F.

Secondly, the default CFMX_COMPAT algorithm you are using (by default) isn't 
all that secure. I suggest using a stronger algorithm.

Lastly, if your systems get compromised to the point where encrypted passwords 
in your database are obtained, it's likely that your .cfm source file can also 
be accessed, which is where your encryption key is visible as plain text, 
thus allowing for quick and easy decryption of all the stored passwords. (BTW 
0 isn't a very good key. It's not even a string. CF will interpet that as 
'0'.)

One way to avoid this source file vulnerability is to use the password itself 
as the key and storing the resulting value. Then when testing a submitted 
password, simply repeat encrypting the provided password using itself as the 
key and compare() the resulting string stored in the database. The biggest 
problem with this system is that you can't retrieve a forgotten password, you 
can only reset it, but at least your passwords will be much more secure.

Also, I'm assuming that your passwords aren't trying to protect information 
that's stored unencrypted in other database fields. If the encrypted password 
field is compromised, then you should assume that any database field can be 
compromised.

Paul Cormier
WinCorp Software, Inc.


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


RE: display wingding character code

2009-10-16 Thread Terry Troxel

Works in IE8, Chrome, but noe in Firefox.


-Original Message-
From: John M Bliss [mailto:bliss.j...@gmail.com] 
Sent: Friday, October 16, 2009 7:38 AM
To: cf-talk
Subject: Re: display wingding character code


cfoutputp style=font-family: Wingdings;#Chr(252)#/p/cfoutput  ?

On Fri, Oct 16, 2009 at 9:27 AM, Richard White rich...@j7is.co.uk wrote:


 Hi,

 we want to display a wingding character code 252 in coldfusion text, how
 can we do this?

 we looked into chr() and other methods but so far no luck

 thanks for your help

 richard

 



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


Re: CF8 and CF9 on the same computer

2009-10-16 Thread Matt Quackenbush

Multi-server is *definitely* the way to go.  But before you uninstall your
standalone, be sure to create a CAR of all your settings.  This way when you
re-install in multi-server setup, all you do is import the CAR and you'll
have all of your settings, datasources, mappings, etc in place.

Oh, and to be sure, the initial multi-server install is stupid simple,
thanks to the installer.  :-)


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


Re: display wingding character code

2009-10-16 Thread Richard White

is there no way to place it in a normal string without having the p tag?.



Works in IE8, Chrome, but noe in Firefox.


cfoutputp style=font-family: Wingdings;#Chr(252)#/p/cfoutput  ? 

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


count array element occurences

2009-10-16 Thread Richard White

hi is there a way to count an array/list element occurences

e.g. list=1,2,12,12

find occurences for '12' would return '2'

thanks 

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


RE: display wingding character code

2009-10-16 Thread DURETTE, STEVEN J (ATTASIAIT)

cfoutputspan style=font-family:
Wingdings;#chr(252)#/span/cfoutput

Don't know how it will display if the computer doesn't have the
wingdings font though.

Steve


-Original Message-
From: Richard White [mailto:rich...@j7is.co.uk] 
Sent: Friday, October 16, 2009 1:47 PM
To: cf-talk
Subject: Re: display wingding character code


is there no way to place it in a normal string without having the p
tag?.



Works in IE8, Chrome, but noe in Firefox.


cfoutputp style=font-family: Wingdings;#Chr(252)#/p/cfoutput
? 



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


Re: display wingding character code

2009-10-16 Thread Richard White

yes, unfortunately doesnt work in ff

thanks


is there no way to place it in a normal string without having the p
tag?.



Works in IE8, Chrome, but noe in Firefox.


cfoutputp style=font-family: Wingdings;#Chr(252)#/p/cfoutput
? 

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


Re: display wingding character code

2009-10-16 Thread Sandra Clark

This might help.  My google-fu at least might help someone else today, its
not helping me :(

http://superuser.com/questions/14087/get-dingbats-to-appear-in-firefox-3


On Fri, Oct 16, 2009 at 2:04 PM, Richard White rich...@j7is.co.uk wrote:


 yes, unfortunately doesnt work in ff

 thanks

 
 is there no way to place it in a normal string without having the p
 tag?.
 
 
 
 Works in IE8, Chrome, but noe in Firefox.
 
 
 cfoutputp style=font-family: Wingdings;#Chr(252)#/p/cfoutput
 ?

 

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


Re: CF8 and CF9 on the same computer

2009-10-16 Thread Rob Barthle

Multi-server is *definitely* the way to go.  But before you uninstall your
standalone, be sure to create a CAR of all your settings.  This way when you
re-install in multi-server setup, all you do is import the CAR and you'll
have all of your settings, datasources, mappings, etc in place.

Oh, and to be sure, the initial multi-server install is stupid simple,
thanks to the installer.  :-)

I have the first step done. I uninstalled CF8 (didn't save settings but they 
are easy to redo) and then ran into the problem I noted in another thread about 
Adobe not offering CF8 anymore. Going on faith that somehow I will procure 
another copy of CF8, I went ahead and installed CF9 in multi-server. It was 
simple, but not quite stupid-simple. 

After setting it all up, I had to go into JRun and turn on the Proxy service so 
the external connectors could run, and turn off the internal web server. Then I 
had to open the webserver connector and rerun my Apache setup (it didn't take 
in the CF9 install for some reason). After that, I ran into the problem that 
apparently Adobe never fixed from CF8, the fact that even though I have a 
32-bit install it tried to use the 6-bit version of mod_jrun20.so. So I had to 
grab the 32-bit copy from the wsconfig.jar file and replace the 64-bit one.

Only then was CF9 running. :-)

Now, crossing my fingers that CF8 is attainable somehow so I can do the second 
part of this... 

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


special/reserved characters

2009-10-16 Thread Richard White

hi,

i am having a hard time understanding what characters should be allowed and 
what shouldnt on data entry, and what effects these will have on coldfusion or 
mysql processing

I would appreciate any help in understanding how you guys deal with this, or 
what you do ensure clashes do not occur.

This has baffled for me some time now!

thanks in advance

richard 

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


RE: display wingding character code

2009-10-16 Thread Terry Troxel

Try this: font style=font-family: Wingdings;font-size: 48pt;uuml; 1 2 3
4 5/font

-Original Message-
From: John M Bliss [mailto:bliss.j...@gmail.com] 
Sent: Friday, October 16, 2009 7:38 AM
To: cf-talk
Subject: Re: display wingding character code


cfoutputp style=font-family: Wingdings;#Chr(252)#/p/cfoutput  ?

On Fri, Oct 16, 2009 at 9:27 AM, Richard White rich...@j7is.co.uk wrote:


 Hi,

 we want to display a wingding character code 252 in coldfusion text, how
 can we do this?

 we looked into chr() and other methods but so far no luck

 thanks for your help

 richard

 



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


More pie chart issues with CFChart

2009-10-16 Thread Sandra Clark

So today, I was asked to apply patterns to the pie slices in my CFChart.  I
thought it would be no problem, I went into the Web3d Charting program,
added the option paint paint=Pattern and was shown a nicely patterned
pie chart in the example.  Copied the xml into my pie.xml on my system, ran
it and everything is still solid.

This is on a CF8 system with the latest updater installed.  Is this a bug?
 Has anyone successfully been able to apply patterns to pie charts with this
tag?

Sandra Clark


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


Re: count array element occurences

2009-10-16 Thread Jake Churchill

Try this UDF:

http://cflib.org/udf/REListFindNoCaseMultiple

Here's the UDF code and a quick example:

cfset list = '1,2,2,12,12,15'
cfdump var=#REListFindNoCaseMultiple('12',list)#


cfscript
/**
* When given a list of values, returns a list of element locations that
match a given regular expression.
*
* @param reg_expr  The regular expression for the search. (Required)
* @param tlist  The list. (Required)
* @param delims  List delimeter. Defaults to a comma. (Optional)
* @return Returns a list of matches.
* @author Robert Munn (robert.m...@alumni.tufts.edu)
* @version 1, October 19, 2004
*/
function REListFindNoCaseMultiple(reg_expr,tlist){
var results=;
var expr_location = 0;
var i = 1;
var delims = ,;

if(arrayLen(arguments) gt 2) delims = arguments[3];

for(; i lte listlen(tlist,delims); i=i+1){
 expr_location = REFindNoCase(reg_expr,listgetat(tlist,i,delims));
 if(expr_location gt 0) results=listappend(results,i);
}
return results;
}
/cfscript

On Fri, Oct 16, 2009 at 12:49 PM, Richard White rich...@j7is.co.uk wrote:


 hi is there a way to count an array/list element occurences

 e.g. list=1,2,12,12

 find occurences for '12' would return '2'

 thanks

 

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


Re: count array element occurences

2009-10-16 Thread Leigh

  find occurences for '12' would return '2'

For lists try the ListValueCount/ListValueCountNoCase functions

cfoutput
#ListValueCount(list, 12)#
/cfoutput 

-Leigh


  


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


Re: display wingding character code

2009-10-16 Thread s. isaac dealey

 is there no way to place it in a normal string without having the p tag?.

Haven't tested it, but it occurs to me that you might be able to get it
in a graphic using the new image features in CF8. Create a new image,
set the image drawing font to wingdings and then write the character
into the image. I realize this may not be quite what you're looking for
either, but this relies on the font existing on the server, rather than
relying on it existing on the client's computer, or on the browser
supporting it (as seems to be an odd case with FireFox not supporting it). 

hth 

ike

-- 
s. isaac dealeyAutLabs
creating meaningful employment for people with autism 
http://www.autlabs.com 
 ph: 817.385.0301



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


Re: Need CF8 OS X 32-bit installer

2009-10-16 Thread Rob Barthle

I may have fund someone on the Adobe board that can help me. I spent an hour on 
the phone with Adobe getting the runaround and basically they have no intention 
to help anyone still on CF8. It's either go to CF9 or good luck to you. 

I seriously hope that many others in the CF community will be willing to take 
Adobe to task on this and get them to do the right thing. It's just not 
feasible for many organizations to make the upgrade, especially less than a 
month from the release of it. I know many many people that avoid any new 
software like the plague until it's had at least one update fix released, and I 
have every expectation CF9 will be no different in that regard. 

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


Re: blocking site downloaders

2009-10-16 Thread Claude Schneegans

 (c) What the hell are they doing?

Some will search for copyrighted images and, if they find some, they 
will send you some lawyer letter
with a bill of 1500$ or so for using their image. (ie: Getty images,...)
Most of them are simply looking for email addresses they could collect 
and sell to spamers.

 The current offending IP reverses to China.

 From China, it could also be gouvernement spider check if your site is 
promoting human rights,
and if yes, I've got bad new, your site will be BANNED form china ! ;-)
PLUS email fetchers, of course.

 o Add a session variable that stores the last page view time down to 
the second.  However, this may not work as the offending behavior is 
probably generated by a bot or desktop app that doesn't store session 
variables.

Exact. Better store the IP address in an application (or even a server 
variable) and calculate a moving average of time between requests to pages.
If the average gets lower than a certain minimum, ban the IP address for 
at least a couple or hours.
The bot will be discaouraged.

 o Review my databased logs for the current IP's last twenty page 
views.  This may put an extra small hit on the server, but over all not 
as much as an extra 2200 page views in an hour every couple of weeks.

This can be a pretty heavy task for the server. Log files are pretty big 
files.

 If the requesting IP has requested more than twenty pages from the 
website in the current minute, I block the IP for a period of time, say, 
an hour or two.

This is what I do, but I use a moving average in a server variable. Much 
more efficient than reading log files. ie:
server.structPass[REMOTE_ADDR].durpass 
=server.structPass[REMOTE_ADDR].durpass*6/7 + thisLaps;
In thisLaps I have the nb of seconds between last and current request. 
The formula gives a moving average
over 7 consecutive requests. If this average goes below a certain 
amount, there are chances the agent is a bot.

I use this test among others to detect bad bots.

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


Re: More pie chart issues with CFChart

2009-10-16 Thread Leigh

 pie chart in the example.  Copied the xml into my
 pie.xml on my system, ran
 it and everything is still solid.

I suspect it might be a problem with your xml.  In a quick test it worked fine 
for me. I made a copy of C:\ColdFusion8\charting\styles\default_pie.xml and 
changed one line:

- Changed paint paint=Plain/ to paint paint=Pattern/
- Used the custom style:
cfset custom = FileRead(ExpandPath(myPattern_pie.xml))
cfchart style=#custom #/cfchart

-Leigh



  

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


Re: blocking site downloaders

2009-10-16 Thread Claude Schneegans

 in case it's a search spider, you can try adding appropriate robots.txt

robots.txt file may be useful for well behaved robots like Google or 
Yahoo, but bad bot disguise themselves
like Explorer or Mozilla and they do not comply to robots.txt 
directives.
Most of them never read it, and some of them will even read it ... and 
visit the forbiden areas on purpose.
This is one of the trick I use to detect them : attempt to read pages 
referred in robots.txt

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


Re: blocking site downloaders

2009-10-16 Thread Azadi Saryev

On 17/10/2009 09:08, Claude Schneegans wrote:
 robots.txt file may be useful for well behaved robots like Google or 
 Yahoo, but bad bot disguise themselves
 like Explorer or Mozilla and they do not comply to robots.txt 
 directives.
   

that's exactly why i also said of course, not all robots obey these
rules - if this bot does not then you can consider banning it completely
using the options you outlined.

-- 

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


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