Re: cfm vs html pages

2010-11-09 Thread Dominic Watson

Also, if it really is just flat HTML you are working with, you could use SSI
includes inside shtml pages (Apache or IIS will serve them without the need
of a separate application server).

Dominic

On 8 November 2010 22:18, Russ Michaels r...@michaels.me.uk wrote:


 The age old method is to create a header.cfm, footer.cfm, menu.cfm,
 index.cfm

 index.cfm contains the main layout, and cfinclude all the other files.

 You then have 2 options.

 create individual pages that work the same way as index.cfm, or create
 content pages that get included into the index.cfm.

 so u might have a url of

 index.cfm/aboutus

 in your index,cfm you look for the value after the index.cfm/
 and then use this to determine which file to include, in this case
 aboutus.cfm

 most of the frame works work roughly in this type of way, so you may want
 to
 just consider using one of those.

 If this is a really simple site then Framework 1 may be the best solution
 for you, it is small and simple to use.
 http://fw1.riaforge.org/



 --
 Russ Michaels
 www.cfmldeveloper.com - Supporting the CF community since 1999
 FREE ColdFusion/Railo hosting for developers.

 blog: www.michaels.me.uk


 

~|
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:338981
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: cfm vs html pages - one drawback

2010-11-09 Thread Russ Michaels

If you don't want to run your own dev server then you can always use
www.cfmldeveloper.com instead.

Russ


~|
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:338982
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Sanitize input data for SQL

2010-11-09 Thread Azadi Saryev

plenty of ideas, but you unfortunately forgot to mention the 
condition(s)/validation rule(s) when you want your trap/filter to 
spring/run...
what does the value of your 'start' url var have to be to 'pass'? i.e. a 
positive integer? an numeric value within a certain range? something else?

assuming url.start must be a positive integer, something like this 
should work:

cfparam name=url.start default=0
cfset url.start = int(val(url.start))
cfif url.start lte 0cfabort/cfif

Azadi

On 09/11/2010 01:00 , Paul Smith wrote:
 I need a cffunction similar to PHP's mysql_escape_string that
 sanitizes input data, that is - escapes invalid code so as to prevent
 SQL injection and the like.
 I've have been unable to trap/filter the following:

 www.MyWebsite.com\index.cfm?start=-1%27

 to keep it from emailing me an error message, and instead CFABORT or 
 CFLOCATION to Home Page or some such.

 Any ideas?

 

~|
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:338983
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: A search with special characters in Solr

2010-11-09 Thread Mary Jo Sminkey

 You might have them  tag like this  ~word~, then parse for that when
 building your search.


Not sure what you mean by parsing for it? When I use a word like this in my 
data (with tildes around it), and then search for it (including the tildes), I 
get no results back from Solr. It does match on just word with no tildes, but 
that's not what I'm looking for, they don't want to return every instance of 
just the word, but some way to mark it as a unique version of that word to 
find. I'm thinking maybe I can take the special characters and convert them to 
a text string of some kind? It'd be kind of awkward, but not sure how else to 
do it. 


--- Mary Jo



~|
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:338984
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: A search with special characters in Solr

2010-11-09 Thread Raymond Camden

I'm confused - why not just add a form field to their content editor
where they can enter the tags there?


On Mon, Nov 8, 2010 at 11:08 AM, Mary Jo Sminkey mary...@cfwebstore.com wrote:

 I have an unusual request from my client, they want to be able to have their 
 people in the field put tags in their reports that they can search on, 
 using some kind of special character to tag a word as being one of these 
 special search phrases. They wanted to use asterisks to do this (such as 
 ***HIGHLIGHT ) but obviously that won't work. I'm wondering if there's any 
 other kind of character I could let them use that Solr would pick up as part 
 of the work and index, but so far my tests have not resulted in much success.


 --- Mary Jo



 

~|
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:338985
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: A search with special characters in Solr

2010-11-09 Thread Mary Jo Sminkey

I'm confused - why not just add a form field to their content editor
where they can enter the tags there?

Unfortunately, we have no access to that system, I can only pull the data that 
has been entered into it. 

--- Mary Jo



~|
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:338987
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF (8.0.0) performance vs PHP (5)

2010-11-09 Thread Larry Lyons

Yes, cfsavecontent appears to use a java buffer internally, and runs
just about as fast. Pick whichever method gives you code you like
better with your content, its source, and your coding style.

Dave


Its actually faster according to the tests I've seen. Both ArrayAppend and 
cfsaveContent came out the fastest in John Whish's testing on CF8 (see 
http://www.aliaspooryorik.com/blog/index.cfm/e/posts.details/post/string-concatenation-performance-test-128).
 In most cases both of these were faster than StringBuilder or StringBuffer.

concatenate with coldfusion : 6797ms
listappend with coldfusion : 21344ms
arrayappend with coldfusion : 47ms
coldfusion with save content: 47ms
concatenate with java stringbuffer : 62ms
concatenate with java StringBuilder : 63ms

Some time or other I'll have to try John's test case under load with jMeter and 
see what the performance is actually like.

regards,
larry 

~|
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:338986
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: A search with special characters in Solr

2010-11-09 Thread Raymond Camden

Ok - so then if you use tildes like Muareen suggested, you can parse
for them when you index the data. Do you have control over the code
that does the indexing?


On Tue, Nov 9, 2010 at 9:27 AM, Mary Jo Sminkey mary...@cfwebstore.com wrote:

I'm confused - why not just add a form field to their content editor
where they can enter the tags there?

 Unfortunately, we have no access to that system, I can only pull the data 
 that has been entered into it.

 --- Mary Jo



 

~|
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:338988
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: A search with special characters in Solr

2010-11-09 Thread Maureen

What I mean by parsing is that you use the tildes to determine what to
search for by extracting what is between them and using that to build
your search.

On Tue, Nov 9, 2010 at 6:55 AM, Mary Jo Sminkey mary...@cfwebstore.com wrote:

 You might have them  tag like this  ~word~, then parse for that when
 building your search.


 Not sure what you mean by parsing for it? When I use a word like this in my 
 data (with tildes around it), and then search for it (including the tildes), 
 I get no results back from Solr. It does match on just word with no tildes, 
 but that's not what I'm looking for, they don't want to return every instance 
 of just the word, but some way to mark it as a unique version of that word to 
 find. I'm thinking maybe I can take the special characters and convert them 
 to a text string of some kind? It'd be kind of awkward, but not sure how else 
 to do i

~|
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:338989
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfheader/cfheader not working as expected

2010-11-09 Thread Robert Gallagher

   On 11/8/2010 9:55 AM, Robert Gallagher wrote:
  Using attachment forces the user to make a selection on a dialog 
 box and I wanted to bypass that dialog box and have the file open 
 every time.
 
 
 You do not get to make that choice.  It is *MY* computer and *MY* 
 browser and *I* get to say what happens to any content you choose to 
 send me.
 
 
 
 
Let me refine this a little more.  IE6 (the company browser) treats inline 
versus attachment slightly different as far as the Open/Save dialog box is 
concerned.  Attachment *FORCES* the user to always choose open or save.  
Inline allows the user to permanently select Open for example, but then opens 
it with the wrong name and Read-Only.  That last part is the irritating part.  
If IE handled it like Firefox then this discussion would be moot. 

~|
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:338990
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: converting excel to text file

2010-11-09 Thread John M Bliss

Use something like http://cflib.org/udf/parseExcel to read the Excel into a
struct of arrays and then use, for example,
http://cflib.org/udf/StructOfArraysToQuery -
http://cflib.org/udf/QueryToCsv to create the text file.

On Tue, Nov 9, 2010 at 10:06 AM, fun and learning
funandlrnn...@gmail.comwrote:


 HI All -

 I am uploading an excel file using coldfusion. Once the file has been
 uploaded, I want to convert it to a text file. What I am trying to do now is
 once the file is uploaded, I am reading the excel file and then writing the
 output to text file. but the write method creates all junk in the text file.

 What is the best way to do this?

 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:338993
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


JNDI threads BLOCKED - server falling over

2010-11-09 Thread O Hilton

Hi everyone, this one has had our collective heads banging against a wall for 
longer than any of us would like to admit. Bit of back story, our site has been 
having long 'pauses' and sometimes total downtime now for months and months, 
sometimes it will be fine for weeks and sometimes it'll go down every couple of 
hours. We've looked at every possible aspect of the code, made numerous 
improvements, in the process speeding up our site no end (when its up!) but 
still it goes down.

Much investigation over much time has lead to the conclusion its something 
thread based, most recently we find that as its going down we have a number of 
these in the thread dump:

jndi-7 prio=5 tid=1477 BLOCKED
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:388)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at jrun.servlet.network.NetworkService.accept(NetworkService.java:356)
at jrun.naming.NamingNetworkService.accept(NamingNetworkService.java:115)
at 
jrun.naming.NamingNetworkService.createRunnable(NamingNetworkService.java:141)
at jrunx.scheduler.ThreadPool$ThreadThrottle.createRunnable(ThreadPool.java:349)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:62)

Always a 'jndi-X' thread and always blocked, the more there are the 
slower/nearer to death the box seems to be. So the question I have yet to get a 
decent answer to is, what are these threads? What's creating them? Why are they 
waiting (as it looks) for some kind of incoming connection? and most 
importantly what the heck can we do about them?! Any and all suggestions 
greatly welcomed!

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:338996
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CF Blog software

2010-11-09 Thread DURETTE, STEVEN J (ATTASIAIT)

Hi all,

 

So I haven't blogged in about a year because of different issues with my
website provider...  Any how I'm looking to get my blog going again, but
I don't know how I should proceed. I used to use blogcfc, but my
provider restricts a bunch of tags (below).  Can anyone suggest which
blog software might be good to use under these restrictions or if there
are any work around  tutorials for the latest versions of blogging
code?  I'd prefer to stick with something CF based.

 

The restrictions I have are as follows:

CF Tags not allowed: 

CFCOLLECTION

CFCONTENT

CFDUMP

CFEXECUTE

CFLOG

CFOBJECT

CFOBJECTCACHE

CFREGISTRY

 

CF Functions not allowed:

SetProfileString

CreateObject(COM)

CreateObject(CORBA)

CreateObject(JAVA)

 

Thanks for your insights.

Steve

 



~|
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:338994
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


converting excel to text file

2010-11-09 Thread fun and learning

HI All - 

I am uploading an excel file using coldfusion. Once the file has been uploaded, 
I want to convert it to a text file. What I am trying to do now is once the 
file is uploaded, I am reading the excel file and then writing the output to 
text file. but the write method creates all junk in the text file.

What is the best way to do this?

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:338992
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfheader/cfheader not working as expected

2010-11-09 Thread Dave Watts

 Let me refine this a little more.  IE6 (the company browser) treats inline 
 versus attachment slightly different as far as the Open/Save dialog
 box is concerned.  Attachment *FORCES* the user to always choose open or 
 save.  Inline allows the user to permanently select Open for
 example, but then opens it with the wrong name and Read-Only.  That last part 
 is the irritating part.  If IE handled it like Firefox then this
 discussion would be moot.

Right. But you don't have any control over that from the server in
either case. The inline behavior makes sense - you download HTML
pages all the time in a browser and you can't change their name
(without Save As ...) or edit them on the server by default.

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 on

~|
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:338991
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Ben Forta

Change hosting companies. Really.

--- Ben

(Sent from my Flash enabled Android device)

On Nov 9, 2010 2:35 PM, DURETTE, STEVEN J (ATTASIAIT) sd1...@att.com
wrote:


Hi all,



So I haven't blogged in about a year because of different issues with my
website provider...  Any how I'm looking to get my blog going again, but
I don't know how I should proceed. I used to use blogcfc, but my
provider restricts a bunch of tags (below).  Can anyone suggest which
blog software might be good to use under these restrictions or if there
are any work around  tutorials for the latest versions of blogging
code?  I'd prefer to stick with something CF based.



The restrictions I have are as follows:

CF Tags not allowed:

CFCOLLECTION

CFCONTENT

CFDUMP

CFEXECUTE

CFLOG

CFOBJECT

CFOBJECTCACHE

CFREGISTRY



CF Functions not allowed:

SetProfileString

CreateObject(COM)

CreateObject(CORBA)

CreateObject(JAVA)



Thanks for your insights.

Steve







~|
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:338995
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: JNDI threads BLOCKED - server falling over

2010-11-09 Thread Gaulin, Mark

Hi
Those threads are not your problem... They represent server threads
that are waiting for someone to open a socket to them.  (JNDI is built
into java; CF might be using it but either way it isn't directly hurting
anything.) 

If your dead/hung servers are using lots of cpu then look for threads
that are not blocked... They will be much more interesting.  If it isn't
a cpu issue then look for threads not blocked on ServerSocket.accept
and you may find a pattern there... Maybe a database or some other kind
of resource, or a java-level synchronization issue where one thread is
waiting for something another thread has (but will never give up).  

Thanks
Mark



-Original Message-
From: O Hilton [mailto:ojh...@gmail.com] 
Sent: Tuesday, November 09, 2010 11:33 AM
To: cf-talk
Subject: JNDI threads BLOCKED - server falling over


Hi everyone, this one has had our collective heads banging against a
wall for longer than any of us would like to admit. Bit of back story,
our site has been having long 'pauses' and sometimes total downtime now
for months and months, sometimes it will be fine for weeks and sometimes
it'll go down every couple of hours. We've looked at every possible
aspect of the code, made numerous improvements, in the process speeding
up our site no end (when its up!) but still it goes down.

Much investigation over much time has lead to the conclusion its
something thread based, most recently we find that as its going down we
have a number of these in the thread dump:

jndi-7 prio=5 tid=1477 BLOCKED
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:388)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at jrun.servlet.network.NetworkService.accept(NetworkService.java:356)
at
jrun.naming.NamingNetworkService.accept(NamingNetworkService.java:115)
at
jrun.naming.NamingNetworkService.createRunnable(NamingNetworkService.jav
a:141)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.createRunnable(ThreadPool.java
:349)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:62)

Always a 'jndi-X' thread and always blocked, the more there are the
slower/nearer to death the box seems to be. So the question I have yet
to get a decent answer to is, what are these threads? What's creating
them? Why are they waiting (as it looks) for some kind of incoming
connection? and most importantly what the heck can we do about them?!
Any and all suggestions greatly welcomed!

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:338997
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: A search with special characters in Solr

2010-11-09 Thread Mary Jo Sminkey

Ok - so then if you use tildes like Muareen suggested, you can parse
for them when you index the data. Do you have control over the code
that does the indexing?

Yes, I'm pulling all the data and then indexing it to make it available for my 
client to search, so they can find the specific records in the external system 
that have had these tags entered into them. So what would I do with the 
tildes to make Solr find them? Or ideally, my client wants to use asterisks 
(***HIGHLIGHT) they already sent an email out with the list of tags to their 
users before checking with me if that would be okay, so if I can make that 
work, they'd be really happy.  


--- Mary Jo


~|
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:338998
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF Blog software

2010-11-09 Thread Russ Michaels

Steve,

One should at least explain why hosts disable those tags.
They are all dangerous tags that provide IO access and the host is probably
just be cautious. If these were just enabled by default then the server
could be hacked in about 5 seconds.
However some of those tags should be allowed with a security sandbox, so ask
them if you can have one.
There is no reason not to allow the following with a sandbox.

CFCOLLECTION

CFCONTENT

CFDUMP

CFLOG

CFOBJECTCACHE

SetProfileString


However No host should ever allow the following, if they do, I suggest you
move as they are very insecure indeed.

CreateObject(COM)
Cfexecute
Cfregistry.

The following are also very dangerous and a sandbox doesn't really help, but
most hosts have to allow them because none of the frameworks will work
without them.

CreateObject(JAVA)
CFOBJECT


This list you have supplied is however rather short, there should actually
be many more tags disabled such as cffile and cfdirectory for a start. If
this is the only list they gave you, then I would say they have no idea what
they are doing with ColdFusion

we allow almost all tags with a security sandbox and have been doing CF
hosting for 10 years.
See the DEVELOPER NOTES tab on this page for more details.
http://www.cfmxhosting.co.uk/index.cfm?action=services.hosting



Regards
--
Russ Michaels
www.cfmldeveloper.com - free CFML hosting for developers
my blog: http://russ.michaels.me.uk/
skype: russmichaels





~|
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:338999
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: converting excel to text file

2010-11-09 Thread Adrocknaphobia

You can also just use the CFSPREADSHEET tag and related functions in
ColdFusion 9.

-Adam

On Tue, Nov 9, 2010 at 11:19 AM, John M Bliss bliss.j...@gmail.com wrote:


 Use something like http://cflib.org/udf/parseExcel to read the Excel into
 a
 struct of arrays and then use, for example,
 http://cflib.org/udf/StructOfArraysToQuery -
 http://cflib.org/udf/QueryToCsv to create the text file.

 On Tue, Nov 9, 2010 at 10:06 AM, fun and learning
 funandlrnn...@gmail.comwrote:

 
  HI All -
 
  I am uploading an excel file using coldfusion. Once the file has been
  uploaded, I want to convert it to a text file. What I am trying to do now
 is
  once the file is uploaded, I am reading the excel file and then writing
 the
  output to text file. but the write method creates all junk in the text
 file.
 
  What is the best way to do this?
 
  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:339000
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


wrap function question

2010-11-09 Thread Eric Roberts

I am trying to use the cf wrap function and I am getting some odd results.
Here is the text (entered in a text area...the line breaks shown are from
hitting the enter key)

Life is but a stopping place,
A pause in what's to be.
A resting place along the road,
To sweet eternity.

Here is the results of the text string after it is wrapped and put into an
array.  Why would A be in a single line instead of part of the contents of
line three and also notice the odd breaks with 4,5,6, and 7

array
1 Life is but a stopping place,
2 A
3 pause in what's to be.
4 A resting
5 place along the road,
6 To sweet
7 eternity.

Should look like
1. Life is but a stopping place,
2. A pause in what's to be.
3. A resting place along the road,
4  To sweet eternity.

here is the code that accomplishes the above.  Arguments.char_count=34 int
his case.

cfset variables.text.txtWrapped=wrap(variables.text.string,
arguments.char_count)
cfset nol=listlen(variables.text.txtWrapped,#chr(10)#)
cfset variables.text.txtLines=arrayNew(1)
cfloop from=1 to=#nol# step=1 index=x
cfset variables.text.txtLines[x]=
listgetat(variables.text.txtWrapped,x,#chr(10)#)
/cfloop

Any ideas as to what i am doing wrong?


~|
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:339001
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: inserting farsi/arabic entry to database with CF

2010-11-09 Thread mojtaba tabatabaie

  thanks a lot Russ . from the links you gave I realized that maybe 
 the cfprocessingdirective tag is the solution . but I don't know 
 what's going
  wrong that when I wrap my cfquery tag inside the 
 cfprocessingdirective it gives me error  and says that the 
 /cfprocessingdirective tag doesn't
  have a start tag!
  here's the code I don't know what's wrong :
 
         cfprocessingdirective pageencoding=utf-8
         cfquery name=qInsert datasource=CFflexdb
         insert into main(name,writer) values('ã','È')
         /cfquery
         /cfprocessingdirective
 
 You can't wrap code within CFPROCESSINGDIRECTIVE. You simply place it
 at the top of the page, without a closing tag. But in any case, that
 will only control the page that's being generated (not the queries
 within the page).
 
 You'll need to ensure that data sent to the page is also UTF-8, using
 setEncoding:
 http://www.adobe.
com/support/coldfusion/int 
ernationalization/internationalization_cfmx/internationalization_cfmx4.
 html
 
 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 
center


--
thank you all guys , I fixed it . first I added these four tags to the top of 
my code:
cfprocessingdirective pageencoding=utf-8
cfset setEncoding(form,utf-8)
cfset setEncoding(url,utf-8)
cfcontent type=text/html ; charset=UTF-8
and I also checked the Enable High ASCII characters and Unicode for data 
sources configured for non-Latin characters. in AdminPageData Sources Edit 
data source  show advanced setting
thank you all

~|
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:339002
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Jason Fisher

+1 Ben's idea


Some of those are reasonable, but CFCONTENT, CFDUMP, CreateObject()??  Go 
to CrystalTech for a few bucks a quarter or something.



From: Ben Forta b...@forta.com
Sent: Tuesday, November 09, 2010 11:37 AM
To: cf-talk cf-talk@houseoffusion.com
Subject: Re: CF Blog software

Change hosting companies. Really.

--- Ben

(Sent from my Flash enabled Android device)

On Nov 9, 2010 2:35 PM, DURETTE, STEVEN J (ATTASIAIT) sd1...@att.com
wrote:

Hi all,

So I haven't blogged in about a year because of different issues with my
website provider...  Any how I'm looking to get my blog going again, but
I don't know how I should proceed. I used to use blogcfc, but my
provider restricts a bunch of tags (below).  Can anyone suggest which
blog software might be good to use under these restrictions or if there
are any work around  tutorials for the latest versions of blogging
code?  I'd prefer to stick with something CF based.

The restrictions I have are as follows:

CF Tags not allowed:

CFCOLLECTION

CFCONTENT

CFDUMP

CFEXECUTE

CFLOG

CFOBJECT

CFOBJECTCACHE

CFREGISTRY

CF Functions not allowed:

SetProfileString

CreateObject(COM)

CreateObject(CORBA)

CreateObject(JAVA)

Thanks for your insights.

Steve



~|
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:339003
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Dave Watts

 Some of those are reasonable, but CFCONTENT, CFDUMP, CreateObject()??  Go
 to CrystalTech for a few bucks a quarter or something.

CFCONTENT and CreateObject both have serious security implications.
Russ knows better than me about sandboxing, but those tags and
functions shouldn't be allowed unrestricted access in a shared hosting
environment.

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:339004
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Jason Fisher

Granted they shouldn't have unrestricted access, but I would argue that you 
should be able to call them within your own application or else the ability 
to build complex applications begins to be pretty well hampered, no?



From: Dave Watts dwa...@figleaf.com
Sent: Tuesday, November 09, 2010 12:49 PM
To: cf-talk cf-talk@houseoffusion.com
Subject: Re: CF Blog software

 Some of those are reasonable, but CFCONTENT, CFDUMP, CreateObject()??  
Go
 to CrystalTech for a few bucks a quarter or something.

CFCONTENT and CreateObject both have serious security implications.
Russ knows better than me about sandboxing, but those tags and
functions shouldn't be allowed unrestricted access in a shared hosting
environment.

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:339005
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Ian Skinner

  On 11/9/2010 9:54 AM, Jason Fisher wrote:
 Granted they shouldn't have unrestricted access, but I would argue that you
 should be able to call them within your own application or else the ability
 to build complex applications begins to be pretty well hampered, no?

Well, true.  But hosting complex applications on shared hosting servers 
is pretty hampering right at the start, isn't it?



~|
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:339006
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Jason Fisher

Not necessarily.  I've got several very complex apps that aren't used by 
many users, and they're charity apps for non-profits, so why not host for 
$20 / quarter instead of investing $120 / month or something in a full 
private server?  I've had bad shared hosting experiences before, but 
Crystaltech has been outstanding and I've been on them for years now 
without issue.



From: Ian Skinner h...@ilsweb.com
Sent: Tuesday, November 09, 2010 1:02 PM
To: cf-talk cf-talk@houseoffusion.com
Subject: Re: CF Blog software

On 11/9/2010 9:54 AM, Jason Fisher wrote:
 Granted they shouldn't have unrestricted access, but I would argue that 
you
 should be able to call them within your own application or else the 
ability
 to build complex applications begins to be pretty well hampered, no?

Well, true.  But hosting complex applications on shared hosting servers 
is pretty hampering right at the start, isn't it?



~|
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:339007
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF Blog software

2010-11-09 Thread DURETTE, STEVEN J (ATTASIAIT)

Kind of wish I could, but I get my package for $119 a year, the site
doesn't make any money it is just for personal use, and I can't afford
much more for what I get. 

For that price I can host 5 domains, unlimited email addresses for each
domain, I don't remember how much bandwidth or drive space, but I get 2
mysql dbs and 1 mssql plus CF7.  It works out to 9.95 a month and I
can't afford more than that.

Steve


-Original Message-
From: Ben Forta [mailto:b...@forta.com] 
Sent: Tuesday, November 09, 2010 11:37 AM
To: cf-talk
Subject: Re: CF Blog software


Change hosting companies. Really.

--- Ben

(Sent from my Flash enabled Android device)


~|
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:339008
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Dave Watts

 Granted they shouldn't have unrestricted access, but I would argue that you
 should be able to call them within your own application or else the ability
 to build complex applications begins to be pretty well hampered, no?

Yes, the ability to build complex applications may well be hampered in
a shared hosting environment. I'm not an expert in how to best
configure a shared hosting environment, but I suspect that the more
you pay, the more likely your applications will be able to use these
specific features. I don't know if CreateObject can effectively be
sandboxed, for example, but that could be solved using multiple
instances or VPS.

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:339009
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Sean Corfield

Take a look at Alurium. They offer shared hosting for about $3 / month with
Railo - and you get full Web Administrator control for each account (because
of the way Railo is sandboxed by default).
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

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

On Tue, Nov 9, 2010 at 10:08 AM, DURETTE, STEVEN J (ATTASIAIT) 
sd1...@att.com wrote:


 Kind of wish I could, but I get my package for $119 a year, the site
 doesn't make any money it is just for personal use, and I can't afford
 much more for what I get.

 For that price I can host 5 domains, unlimited email addresses for each
 domain, I don't remember how much bandwidth or drive space, but I get 2
 mysql dbs and 1 mssql plus CF7.  It works out to 9.95 a month and I
 can't afford more than that.

 Steve


 -Original Message-
 From: Ben Forta [mailto:b...@forta.com]
 Sent: Tuesday, November 09, 2010 11:37 AM
 To: cf-talk
 Subject: Re: CF Blog software


 Change hosting companies. Really.

 --- Ben

 (Sent from my Flash enabled Android device)




~|
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:339010
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFMail Send Problem

2010-11-09 Thread Sean Henderson

Experiencing the same issue (blank message body) this past week (as of 
11/09/10) as described in this post of 11/12/2003.

No changes to the template(s) calling CFMail - just started sending blank 
message bodies. Spam score says negative 1 (-1) where a score of 3 or more is 
spam, so that's not it.  CF says it left the building fine.  Records in db say 
there was indeed message content.  Thankfully only happening on our test system 
(in office), not in production (co-lo).  Anyone figure this out? Was it an 
ISP/content filtering issue?

Thanks, Sean
stack: CFMX6.1 (j2sdk1.4.2_11), SQL2K Std, Win2K3 Std R2 SP2.

 ... weird problem occurring with an email send out using CFMail 6.1 from
 a SQL2000 db.  Seems that SOME recipients of the message get a blank/empty
 message body (subject line, to and from fields are OK).
 ... doesn't seem to be email client specific 
 Thanks, Mark


~|
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:339011
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Jake Churchill

Sounds like it's ttime to change who you host with.  How are they blocking
CFC instantiation like that?

Sent from my Droid

On Nov 9, 2010 10:36 AM, DURETTE, STEVEN J (ATTASIAIT) sd1...@att.com
wrote:


Hi all,



So I haven't blogged in about a year because of different issues with my
website provider...  Any how I'm looking to get my blog going again, but
I don't know how I should proceed. I used to use blogcfc, but my
provider restricts a bunch of tags (below).  Can anyone suggest which
blog software might be good to use under these restrictions or if there
are any work around  tutorials for the latest versions of blogging
code?  I'd prefer to stick with something CF based.



The restrictions I have are as follows:

CF Tags not allowed:

CFCOLLECTION

CFCONTENT

CFDUMP

CFEXECUTE

CFLOG

CFOBJECT

CFOBJECTCACHE

CFREGISTRY



CF Functions not allowed:

SetProfileString

CreateObject(COM)

CreateObject(CORBA)

CreateObject(JAVA)



Thanks for your insights.

Steve







~|
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:339012
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFMail Send Problem

2010-11-09 Thread Jake Churchill

This might have sommething to do with sending multipart MIME messages.
Perhaps one person's client is set to only display plain text and the
message does not contain that part.

Sent from my Droid

On Nov 9, 2010 12:23 PM, Sean Henderson shender...@followup.net wrote:


Experiencing the same issue (blank message body) this past week (as of
11/09/10) as described in this post of 11/12/2003.

No changes to the template(s) calling CFMail - just started sending blank
message bodies. Spam score says negative 1 (-1) where a score of 3 or more
is spam, so that's not it.  CF says it left the building fine.  Records in
db say there was indeed message content.  Thankfully only happening on our
test system (in office), not in production (co-lo).  Anyone figure this out?
Was it an ISP/content filtering issue?

Thanks, Sean
stack: CFMX6.1 (j2sdk1.4.2_11), SQL2K Std, Win2K3 Std R2 SP2.

 ... weird problem occurring with an email send out using CFMail 6.1 from
 a SQL2000 db.  Seems that SOME recipients of the message get a blank/empty
 message body (subject line, to and from fields are OK).
 ... doesn't seem to be email client specific
 Thanks, Mark




~|
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:339013
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF Blog software

2010-11-09 Thread DURETTE, STEVEN J (ATTASIAIT)

Thanks, I will look at them (I have no experience with Railo), but I am
pre-paid for a few months, so...

Any ideas on cf blogging software I can use?  Any tutorials on dumbing
down the current options to make them work?  I found a tutorial for
blogcfc but it was so many versions back, some of the changes that the
tutorial suggested weren't even there anymore.

Steve


-Original Message-
From: Sean Corfield [mailto:seancorfi...@gmail.com] 
Sent: Tuesday, November 09, 2010 1:19 PM
To: cf-talk
Subject: Re: CF Blog software


Take a look at Alurium. They offer shared hosting for about $3 / month
with
Railo - and you get full Web Administrator control for each account
(because
of the way Railo is sandboxed by default).
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

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

On Tue, Nov 9, 2010 at 10:08 AM, DURETTE, STEVEN J (ATTASIAIT) 
sd1...@att.com wrote:


 Kind of wish I could, but I get my package for $119 a year, the site
 doesn't make any money it is just for personal use, and I can't afford
 much more for what I get.

 For that price I can host 5 domains, unlimited email addresses for
each
 domain, I don't remember how much bandwidth or drive space, but I get
2
 mysql dbs and 1 mssql plus CF7.  It works out to 9.95 a month and I
 can't afford more than that.

 Steve


 -Original Message-
 From: Ben Forta [mailto:b...@forta.com]
 Sent: Tuesday, November 09, 2010 11:37 AM
 To: cf-talk
 Subject: Re: CF Blog software


 Change hosting companies. Really.

 --- Ben

 (Sent from my Flash enabled Android device)






~|
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:339014
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFMail Send Problem

2010-11-09 Thread Wil Genovese

What he said - the message body may look blank, but view the raw source of the 
received email to see what is really there. There could be an encoding issue.


Wil Genovese

One man with courage makes a majority.
-Andrew Jackson

A fine is a tax for doing wrong. A tax is a fine for doing well. 

On Nov 9, 2010, at 12:26 PM, Jake Churchill wrote:

 
 This might have sommething to do with sending multipart MIME messages.
 Perhaps one person's client is set to only display plain text and the
 message does not contain that part.
 
 Sent from my Droid
 
 On Nov 9, 2010 12:23 PM, Sean Henderson shender...@followup.net wrote:
 
 
 Experiencing the same issue (blank message body) this past week (as of
 11/09/10) as described in this post of 11/12/2003.
 
 No changes to the template(s) calling CFMail - just started sending blank
 message bodies. Spam score says negative 1 (-1) where a score of 3 or more
 is spam, so that's not it.  CF says it left the building fine.  Records in
 db say there was indeed message content.  Thankfully only happening on our
 test system (in office), not in production (co-lo).  Anyone figure this out?
 Was it an ISP/content filtering issue?
 
 Thanks, Sean
 stack: CFMX6.1 (j2sdk1.4.2_11), SQL2K Std, Win2K3 Std R2 SP2.
 
 ... weird problem occurring with an email send out using CFMail 6.1 from
 a SQL2000 db.  Seems that SOME recipients of the message get a blank/empty
 message body (subject line, to and from fields are OK).
 ... doesn't seem to be email client specific
 Thanks, Mark
 
 
 
 
 

~|
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:339015
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Dave Watts

 Sounds like it's ttime to change who you host with.  How are they blocking
 CFC instantiation like that?

I didn't see CFINVOKE on the list, so you could use that to create CFC
instances (assuming the CFCs have an init method that returns an
instance of the CFC). Of course, that doesn't really help the original
poster with BlogCFC, as I presume that uses CreateObject. I guess the
OP could rewrite it to use CFINVOKE instead.

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:339016
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Dave Watts

 Any ideas on cf blogging software I can use?  Any tutorials on dumbing
 down the current options to make them work?  I found a tutorial for
 blogcfc but it was so many versions back, some of the changes that the
 tutorial suggested weren't even there anymore.

I haven't worked with BlogCFC so this is only speculation. But you
should be able to replace CreateObject or CFOBJECT calls with
CFINVOKE.

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 onsit

~|
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:339017
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: A search with special characters in Solr

2010-11-09 Thread Mary Jo Sminkey

 What I mean by parsing is that you use the tildes to determine what 
 to
 search for by extracting what is between them and using that to build
 your search.

That's not going to give me what I need, because I need to find *only* the 
results that use the tildes, not the records that might just have the word by 
itself. Otherwise, they could just search on the plain word and not bother with 
special characters at all. 


--- Mary Jo





~|
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:339018
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Ben Forta

There are indeed inherent risks and limitations with shared hosting. But
there are solutions, including ones less expensive than dedicated hosting.
Sandboxing is one option, although not an absolutely perfect one.

The preferred option (these days) is the one Dave mentioned, visualization,
where you get a dedicated isolated virtual instance without dedicated
hardware. And we've made sure that ColdFusion licensing makes this a viable
option.

And thus my original response.

--- Ben

(Sent from my Flash enabled Android device)

On Nov 9, 2010 4:15 PM, Dave Watts dwa...@figleaf.com wrote:


 Granted they shouldn't have unrestricted access, but I would argue that
you
 should be able to c...
Yes, the ability to build complex applications may well be hampered in
a shared hosting environment. I'm not an expert in how to best
configure a shared hosting environment, but I suspect that the more
you pay, the more likely your applications will be able to use these
specific features. I don't know if CreateObject can effectively be
sandboxed, for example, but that could be solved using multiple
instances or VPS.


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

Fig Leaf S...
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339009

Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.hous...


~|
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:339019
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Alan Rother

Hey Dave,

CFCONTENT and CreateObject both have serious security implications.
I know all about CreateObject's security risks from a hosting perspective,
but I've never heard of an issue with CFCONTENT (I'm not doubting you, I'm
just curious what the issues are.)

=]

On Tue, Nov 9, 2010 at 11:33 AM, Dave Watts dwa...@figleaf.com wrote:


  Any ideas on cf blogging software I can use?  Any tutorials on dumbing
  down the current options to make them work?  I found a tutorial for
  blogcfc but it was so many versions back, some of the changes that the
  tutorial suggested weren't even there anymore.

 I haven't worked with BlogCFC so this is only speculation. But you
 should be able to replace CreateObject or CFOBJECT calls with
 CFINVOKE.

 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 onsit

 

~|
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:339020
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Dave Watts

 I know all about CreateObject's security risks from a hosting perspective,
 but I've never heard of an issue with CFCONTENT (I'm not doubting you, I'm
 just curious what the issues are.)

It can be used to download any file that the CF service has permission
to access, including sensitive Windows files (assuming you're on
Windows). By default, on Windows the CF service runs as SYSTEM, which
has practically unrestricted access to everything. Even if CF is
configured to use a less-privileged user account (as it should be as a
matter of course) that user account will certainly have permission to
read any files used by, say, other hosting clients.

My assumption is that CFCONTENT can be sandboxed, but again I'm no
expert on sandboxing.

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:339021
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Alan Rother

Ah, that does make sense. Thanks Dave!

=]

On Tue, Nov 9, 2010 at 11:56 AM, Dave Watts dwa...@figleaf.com wrote:


  I know all about CreateObject's security risks from a hosting
 perspective,
  but I've never heard of an issue with CFCONTENT (I'm not doubting you,
 I'm
  just curious what the issues are.)

 It can be used to download any file that the CF service has permission
 to access, including sensitive Windows files (assuming you're on
 Windows). By default, on Windows the CF service runs as SYSTEM, which
 has practically unrestricted access to everything. Even if CF is
 configured to use a less-privileged user account (as it should be as a
 matter of course) that user account will certainly have permission to
 read any files used by, say, other hosting clients.

 My assumption is that CFCONTENT can be sandboxed, but again I'm no
 expert on sandboxing.

 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:339022
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Raymond Camden

To Dave's suggestion of replacing createObject w/ cfinvoke - I believe
(stress - believe) other BlogCFC users have done it in the past. It
isn't officially supported by BlogCFC, Inc (aka me) but I believe it
can be done.


On Tue, Nov 9, 2010 at 12:59 PM, Alan Rother alan.rot...@gmail.com wrote:

 Ah, that does make sense. Thanks Dave!

 =]

 On Tue, Nov 9, 2010 at 11:56 AM, Dave Watts dwa...@figleaf.com wrote:


  I know all about CreateObject's security risks from a hosting
 perspective,
  but I've never heard of an issue with CFCONTENT (I'm not doubting you,
 I'm
  just curious what the issues are.)

 It can be used to download any file that the CF service has permission
 to access, including sensitive Windows files (assuming you're on
 Windows). By default, on Windows the CF service runs as SYSTEM, which
 has practically unrestricted access to everything. Even if CF is
 configured to use a less-privileged user account (as it should be as a
 matter of course) that user account will certainly have permission to
 read any files used by, say, other hosting clients.

 My assumption is that CFCONTENT can be sandboxed, but again I'm no
 expert on sandboxing.

 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:339023
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: A search with special characters in Solr

2010-11-09 Thread Raymond Camden

Right, so parse the text for the ~ words. You can use rematch to get
them easily enough. You can then use that list of words as your body
when you add it to your index.

On Tue, Nov 9, 2010 at 12:27 PM, Mary Jo Sminkey mary...@cfwebstore.com wrote:

 What I mean by parsing is that you use the tildes to determine what
 to
 search for by extracting what is between them and using that to build
 your search.

 That's not going to give me what I need, because I need to find *only* the 
 results that use the tildes, not the records that might just have the word by 
 itself. Otherwise, they could just search on the plain word and not bother 
 with special characters at all.


 --- Mary Jo





 

~|
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:339024
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: A search with special characters in Solr

2010-11-09 Thread Mary Jo Sminkey

Right, so parse the text for the ~ words. You can use rematch to get
them easily enough. You can then use that list of words as your body
when you add it to your index.

Well, that would work I guess if they *only* wanted to search for those words, 
but they want to be able to search on any of the content text as well. So I 
needed someway to make them unique in the search body. 

What I decided to do was to just use a Regex to convert the asterisks to X's so 
that in the search index it becomes XXXHighlight or whatever codes they want 
to use. Then I do a similar replacement when running the search. That seems to 
be working.


--- Mary Jo


~|
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:339025
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Gerald Guido

I believe the issue is with createobject using Java, COM and CORBA and not
create object(component)

From the OP:
CreateObject(COM)
CreateObject(CORBA)
CreateObject(JAVA)

Another option would be http://hostek.com/. They have cheap plans and
support everything except CFREGISTRY and CFEXECUTE. But they had
stability/down time issues when I was with them a few years back.

If you can live with (potential) sporadic down time that may be an option.
My friend hosts some sites there and he said that he doesn't have many
problems.

G!


On Tue, Nov 9, 2010 at 2:11 PM, Raymond Camden rcam...@gmail.com wrote:


 To Dave's suggestion of replacing createObject w/ cfinvoke - I believe
 (stress - believe) other BlogCFC users have done it in the past. It
 isn't officially supported by BlogCFC, Inc (aka me) but I believe it
 can be done.


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

Wait. We can't stop here. This is bat country.
-- HST


~|
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:339026
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Dave Watts

 I believe the issue is with createobject using Java, COM and CORBA and not
 create object(component)

 From the OP:
 CreateObject(COM)
 CreateObject(CORBA)
 CreateObject(JAVA)

The problem as I recall is that there wasn't a way to exclude one
specific type of CreateObject call. Again, though, I'm no expert with
sandbox security and this may no longer be true.

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:339027
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Sanitize input data for SQL

2010-11-09 Thread Mary Jo Sminkey

cfset city = model(Cities).findOne(where=id=#id# AND
some_other_param=#param#)

If you know it should only accept a numeric value, you can just throw in a 
Val() function and that will ensure nothing but numbers get passed ( e.g. 
id=#Val(id)# ). If you need to allow strings, and can restrict to just 
alphanumeric, you can do something similar with a Regex or other custom 
function. It's not ideal, but it's certainly better than leaving it 
unsanitized! 


--- Mary Jo


~|
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:339028
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: JNDI threads BLOCKED - server falling over

2010-11-09 Thread Brook Davies

Have you tried either fusionReactor or seeFusion? So you can see whats
hanging?

Brook

-Original Message-
From: O Hilton [mailto:ojh...@gmail.com] 
Sent: November-09-10 8:33 AM
To: cf-talk
Subject: JNDI threads BLOCKED - server falling over


Hi everyone, this one has had our collective heads banging against a wall
for longer than any of us would like to admit. Bit of back story, our site
has been having long 'pauses' and sometimes total downtime now for months
and months, sometimes it will be fine for weeks and sometimes it'll go down
every couple of hours. We've looked at every possible aspect of the code,
made numerous improvements, in the process speeding up our site no end (when
its up!) but still it goes down.

Much investigation over much time has lead to the conclusion its something
thread based, most recently we find that as its going down we have a number
of these in the thread dump:

jndi-7 prio=5 tid=1477 BLOCKED
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:388)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at jrun.servlet.network.NetworkService.accept(NetworkService.java:356)
at jrun.naming.NamingNetworkService.accept(NamingNetworkService.java:115)
at
jrun.naming.NamingNetworkService.createRunnable(NamingNetworkService.java:14
1)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.createRunnable(ThreadPool.java:349
)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:62)

Always a 'jndi-X' thread and always blocked, the more there are the
slower/nearer to death the box seems to be. So the question I have yet to
get a decent answer to is, what are these threads? What's creating them? Why
are they waiting (as it looks) for some kind of incoming connection? and
most importantly what the heck can we do about them?! Any and all
suggestions greatly welcomed!

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:339029
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Sanitize input data for SQL

2010-11-09 Thread Justin Scott

 If you know it should only accept a numeric value, you can
 just throw in a Val() function and that will ensure nothing
 but numbers get passed ( e.g. id=#Val(id)# ).

For numeric inputs that has been my standard for years:

cfparam name=url.id default=0 /
cfset url.id = abs(val(trim(url.id))) /

This guarantees a positive integer or zero, safe to pass to most queries
(through CFQUERYPARAM, of course, or directly if you're feeling
adventurous).  The query results can then be checked to see if anything came
back.  Alternately, you can kick the user off the page if you don't want the
query to run if anything other than a positive integer or zero was passed to
begin with:

cfif url.id neq abs(val(trim(url.id)))
  cflocation url=/ addtoken=no /
/cfif


-Justin



~|
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:339030
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Gerald Guido

. The problem as I recall is that there wasn't a way to exclude one
specific type of CreateObject call.


Actually, you can lock it down by the type: COM, Java, CORBA, .Net (c8 +)
and Webservice or you can disable the entire function.

This is on CF 8 standard so it is server wide. No sandbox support on
standard but I assume (a dangerous thing to do with Mr. Watts here ;) ) that
it would behave the same for sandboxes (as it does on CF9 developer).

G!

On Tue, Nov 9, 2010 at 2:41 PM, Dave Watts dwa...@figleaf.com wrote:


  I believe the issue is with createobject using Java, COM and CORBA and
 not
  create object(component)
 
  From the OP:
  CreateObject(COM)
  CreateObject(CORBA)
  CreateObject(JAVA)

 The problem as I recall is that there wasn't a way to exclude one
 specific type of CreateObject call. Again, though, I'm no expert with
 sandbox security and this may no longer be true.

 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:339031
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Dave Watts

 Actually, you can lock it down by the type: COM, Java, CORBA, .Net (c8 +)
 and Webservice or you can disable the entire function.

 This is on CF 8 standard so it is server wide. No sandbox support on
 standard but I assume (a dangerous thing to do with Mr. Watts here ;) ) that
 it would behave the same for sandboxes (as it does on CF9 developer).

Feel free to assume - I know very little about sandboxes. One of the
joys of working in the enterprise, I guess. Russ is the guy who knows
about sandboxes here.

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:339032
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Russ Michaels

without sandboxing (cf enterprise required) if all tags are enabled, any
user can read/write files anywhere on the server. Even if lockdown
procedures arr used, coldfusion will at bare allow all users access to each
others sites even if not the whole server.
Any other customers on the server can therefore easily hack your site, put
phishing code or viruses on your site, steal your database (customer
information etc), harvest credit card details from your payment pages, and
anything else you can imagine.
Any customer could also at any time simply delete your site, or take the
entire server down.

The problem is that most people looking for hosting are clueless about the
server.security side of things, they just want all features for the lowest
price and do not consider the consequences.
But then when the server goes down or your site does get hacked, who are you
going to blame? The host for having all these things enabled in the first
place (which you wanted) or will you blame yourself for using a cheap host
that has everything enabled.

Let me also point out that this is down to the way JAVA works, as all
requests run in the context of the service not the web server
authentication. Most hosts rely on their hositng control to manage the
security side of things, which they do for things like PHP/ASP etc, on IIS
for example a new windows user is created for each website and that website
runs under that user, who only has permission to access that website root
and certain system folders. So when a .php file runs it cannot read/write
outside the webroot. Any host that is not doing this is also allowing system
wide read/write/execute for all scripting languages.

When a .cfm page it runs as the user that the ColdFusion service is running
as, which has full system access.
Many cheap hosts simply install ColdFusion Professional on the server and
presume it works just like PHP or ASP, and will be as clueless to the
security issues as their customer.
Installing and offering ColdFusion hosting is not really the same as
supporting it. To support it, you have to actually know what you are doing
and be aware of the security risks.

People will often say just run your own instance
you don't get this option on shared hosting as it is then not shared
hosting. Running your own instance consumes quite a bit of system resources
and is akin to running your own VPS as its your own copy of CF with its own
CFadmin that you manage yourself, and you wont get either for $5 per month
i'm afraid.

As the saying goes, you get what you pay for.

If your site is actually your primary source of income, then presumably it
is quite important to you, therefore you should be prepared to spend  more
than a few bucks a month on it, otherwise you are just shooting yourself in
the foot.
You can get a VPS from £20 per month these days, so really anyone can afford
this, how much does your site generate for you each month? a lot more than
£20 I bet. You don't even need technical skills these days as you can use a
hosting control panel to do everything.

If you had to buy a new RELIABLE car to get you to/from work, would you buy
a cheap £50 car that you have to share with 500 people ?

--
Russ Michaels
www.cfmldeveloper.com
Supporting the CF community since 1999
FREE ColdFusion/Railo hosting for developers.

www.bluethunderinternet.com
Professional ColdFusion hosting

my blog: www.michaels.me.u

~|
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:339033
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF Blog software

2010-11-09 Thread Andrew Scott

Actually Hostek do not allow everything, they lock down the exact same tags.

And what surprised me was cfdump is one, because of the way it is
implemented.

Regards,
Andrew Scott
http://www.andyscott.id.au/



 -Original Message-
 From: Gerald Guido [mailto:gerald.gu...@gmail.com]
 Sent: Wednesday, 10 November 2010 6:27 AM
 To: cf-talk
 Subject: Re: CF Blog software
 
 
 I believe the issue is with createobject using Java, COM and CORBA and not
 create object(component)
 
 From the OP:
 CreateObject(COM)
 CreateObject(CORBA)
 CreateObject(JAVA)
 
 Another option would be http://hostek.com/. They have cheap plans and
 support everything except CFREGISTRY and CFEXECUTE. But they had
 stability/down time issues when I was with them a few years back.
 
 If you can live with (potential) sporadic down time that may be an option.
 My friend hosts some sites there and he said that he doesn't have many
 problems.
 
 G!
 
 
 On Tue, Nov 9, 2010 at 2:11 PM, Raymond Camden rcam...@gmail.com
 wrote:
 
 
  To Dave's suggestion of replacing createObject w/ cfinvoke - I believe
  (stress - believe) other BlogCFC users have done it in the past. It
  isn't officially supported by BlogCFC, Inc (aka me) but I believe it
  can be done.
 
 
 --
 Gerald Guido
 http://www.myinternetisbroken.com
 
 Wait. We can't stop here. This is bat country.
 -- HST
 
 
 ~~
 ~~~|
 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:339026
 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
 Unsubscribe: http://www.houseoffusion.com/groups/cf-
 talk/unsubscribe.cfm


~|
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:339034
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Jochem van Dieten

On Tue, Nov 9, 2010 at 9:44 PM, Andrew Scott wrote:
 And what surprised me was cfdump is one, because of the way it is
 implemented.

cfdump internally uses createObject(java, ...) so it isn't as much
that cfdump iself is disallowed as that you can't use it when Java
objects have been disabled. But since cfdump is just a .cfm template I
replace it with another implementation of cfdump that doesn't rely on
Java objects when I built a secure server.

Jochem

-- 
Jochem van Dieten
http://jochem.vandieten.net/

~|
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:339035
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Jochem van Dieten

On Tue, Nov 9, 2010 at 5:35 PM, DURETTE, STEVEN J (ATTASIAIT) wrote:
 my provider restricts a bunch of tags (below)

Most of the restrictions are reasonable for a shared host that wants
to provide a modicum of security. In a properly configured Sandbox
cfcontent, cflog and setProfileStrng could be enabled but the rest is
just the way ColdFusion works.

Pick two:
- shared hosting
- security
- functionality


With the prices I see on some of the VPS / cloud offerings I can't
imagine a scenario where shared hosting is the best solution for any
commercial site, and we are fast approaching the same for any personal
site as well.

Jochem


-- 
Jochem van Dieten
http://jochem.vandieten.net/

~|
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:339036
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Russ Michaels

CreateObject(com)  is very dangerous and should never be enabled on a shared
server. DANGER will Robinson.
All the sandbox does is either enable or disable this function, as your
calling a COM object which has nothing to do with JAVA it is run totally
outside of the sandbox permissions. Again it would execute with the same
permissions as the java/coldfusion service.

CreateObject(java) is not much better as it allows you to execute any java
function. CF9 did finally address this by allow you to restrict certain
methods so you can for example block access to the Service Factory (cfadmin
settings). However as pretty much every framework/app need this function and
also needs the classloader, to disable this function would mean crippling
ColdFusion for most people. So it is a security risk most hosts have to
take.
Really this should also never be enabled on a shared server either as it
cannot truly be locked down,

CreateObject(corba) is would assume is the same as the above, but I have no
idea what the hell corba is and it is not installed on any of our servers
anyway.

So at the end of the day, no ColdFusion host can be 100% secure unless they
cripple the service and disable functionality the most customers are going
to need. So if you want security you will definitely need your own server.

--
Russ Michaels
www.cfmldeveloper.com - Supporting the CF community since 1999
FREE ColdFusion/Railo hosting for developers.

blog: www.michaels.me.uk


~|
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:339037
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF Blog software

2010-11-09 Thread DURETTE, STEVEN J (ATTASIAIT)

Yes, but you are assuming commercial hosting.  I host my own website
(non-commercial) and the website for a club at the local community
college.

Neither generates money so cost is the issue here. I work at a
corporation doing CF during the day, the stuff I'm talking about is my
free-time donation type of stuff. So it's all out of pocket for me
which is why I go for the bare minimum.

Steve

-Original Message-
From: Jochem van Dieten [mailto:joch...@gmail.com] 
Sent: Tuesday, November 09, 2010 3:53 PM
To: cf-talk
Subject: Re: CF Blog software


On Tue, Nov 9, 2010 at 5:35 PM, DURETTE, STEVEN J (ATTASIAIT) wrote:
 my provider restricts a bunch of tags (below)

Most of the restrictions are reasonable for a shared host that wants
to provide a modicum of security. In a properly configured Sandbox
cfcontent, cflog and setProfileStrng could be enabled but the rest is
just the way ColdFusion works.

Pick two:
- shared hosting
- security
- functionality


With the prices I see on some of the VPS / cloud offerings I can't
imagine a scenario where shared hosting is the best solution for any
commercial site, and we are fast approaching the same for any personal
site as well.

Jochem

~|
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:339038
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Russ Michaels

Steve,

If the security/reliability is important to you then you sound like a good
candidate for Open BlueDragon or Railo.
Although to be fair most charity websites fit the shared hosting model just
fine as they are not mission critical or anything.

Russ

On Tue, Nov 9, 2010 at 9:07 PM, DURETTE, STEVEN J (ATTASIAIT) 
sd1...@att.com wrote:


 Yes, but you are assuming commercial hosting.  I host my own website
 (non-commercial) and the website for a club at the local community
 college.

 Neither generates money so cost is the issue here. I work at a
 corporation doing CF during the day, the stuff I'm talking about is my
 free-time donation type of stuff. So it's all out of pocket for me
 which is why I go for the bare minimum.

 Steve

 -Original Message-
 From: Jochem van Dieten [mailto:joch...@gmail.com]
 Sent: Tuesday, November 09, 2010 3:53 PM
 To: cf-talk
 Subject: Re: CF Blog software


 On Tue, Nov 9, 2010 at 5:35 PM, DURETTE, STEVEN J (ATTASIAIT) wrote:
  my provider restricts a bunch of tags (below)

 Most of the restrictions are reasonable for a shared host that wants
 to provide a modicum of security. In a properly configured Sandbox
 cfcontent, cflog and setProfileStrng could be enabled but the rest is
 just the way ColdFusion works.

 Pick two:
 - shared hosting
 - security
 - functionality


 With the prices I see on some of the VPS / cloud offerings I can't
 imagine a scenario where shared hosting is the best solution for any
 commercial site, and we are fast approaching the same for any personal
 site as well.

 Jochem

 

~|
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:339039
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF Blog software

2010-11-09 Thread DURETTE, STEVEN J (ATTASIAIT)

I worded that wrong... It's been a long day.

I have two sites, neither of which generate money. One for my own
personal use and one for a club at the local community college.  So 9.95
a month or lower is better for me.  What I'm not totally understanding
is I could (if I knew how) use Java Server Pages on this same account.
If I can use Java there why shouldn't I be able to use Java in
ColdFusion. 

Any how the point is moot at the moment, I'm stuck for the next few
months. I wanted something I could use now and look at new hosting in
the future.

Steve

-Original Message-
From: DURETTE, STEVEN J (ATTASIAIT) 
Sent: Tuesday, November 09, 2010 4:07 PM
To: cf-talk
Subject: RE: CF Blog software


Yes, but you are assuming commercial hosting.  I host my own website
(non-commercial) and the website for a club at the local community
college.

Neither generates money so cost is the issue here. I work at a
corporation doing CF during the day, the stuff I'm talking about is my
free-time donation type of stuff. So it's all out of pocket for me
which is why I go for the bare minimum.

Steve

-Original Message-
From: Jochem van Dieten [mailto:joch...@gmail.com] 
Sent: Tuesday, November 09, 2010 3:53 PM
To: cf-talk
Subject: Re: CF Blog software


On Tue, Nov 9, 2010 at 5:35 PM, DURETTE, STEVEN J (ATTASIAIT) wrote:
 my provider restricts a bunch of tags (below)

Most of the restrictions are reasonable for a shared host that wants
to provide a modicum of security. In a properly configured Sandbox
cfcontent, cflog and setProfileStrng could be enabled but the rest is
just the way ColdFusion works.

Pick two:
- shared hosting
- security
- functionality


With the prices I see on some of the VPS / cloud offerings I can't
imagine a scenario where shared hosting is the best solution for any
commercial site, and we are fast approaching the same for any personal
site as well.

Jochem



~|
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:339040
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Russ Michaels

you can use both Java and JSP pages on a coldfusion enabled server.
Use of Java just requires CreateObject(java)
Use of JSP pages just requires the .jsp extension to be enabled on the
server. Although you can use servlets and JSP tag libraries within CFM pages
without anything else being enabled I believe. Check the cfdocs.

Russ

On Tue, Nov 9, 2010 at 9:11 PM, DURETTE, STEVEN J (ATTASIAIT) 
sd1...@att.com wrote:


 I worded that wrong... It's been a long day.

 I have two sites, neither of which generate money. One for my own
 personal use and one for a club at the local community college.  So 9.95
 a month or lower is better for me.  What I'm not totally understanding
 is I could (if I knew how) use Java Server Pages on this same account.
 If I can use Java there why shouldn't I be able to use Java in
 ColdFusion.let

 Any how the point is moot at the moment, I'm stuck for the next few
 months. I wanted something I could use now and look at new hosting in
 the future.

 Steve

 -Original Message-
 From: DURETTE, STEVEN J (ATTASIAIT)
 Sent: Tuesday, November 09, 2010 4:07 PM
 To: cf-talk
 Subject: RE: CF Blog software


 Yes, but you are assuming commercial hosting.  I host my own website
 (non-commercial) and the website for a club at the local community
 college.

 Neither generates money so cost is the issue here. I work at a
 corporation doing CF during the day, the stuff I'm talking about is my
 free-time donation type of stuff. So it's all out of pocket for me
 which is why I go for the bare minimum.

 Steve

 -Original Message-
 From: Jochem van Dieten [mailto:joch...@gmail.com]
 Sent: Tuesday, November 09, 2010 3:53 PM
 To: cf-talk
 Subject: Re: CF Blog software


 On Tue, Nov 9, 2010 at 5:35 PM, DURETTE, STEVEN J (ATTASIAIT) wrote:
  my provider restricts a bunch of tags (below)

 Most of the restrictions are reasonable for a shared host that wants
 to provide a modicum of security. In a properly configured Sandbox
 cfcontent, cflog and setProfileStrng could be enabled but the rest is
 just the way ColdFusion works.

 Pick two:
 - shared hosting
 - security
 - functionality


 With the prices I see on some of the VPS / cloud offerings I can't
 imagine a scenario where shared hosting is the best solution for any
 commercial site, and we are fast approaching the same for any personal
 site as well.

 Jochem



 

~|
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:339041
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


locating linefeeds/carriage returns

2010-11-09 Thread Eric Roberts

I'm being brain dead here...

We are using a form textarea to input multiple lines of text (this relates
to my previous post to the cf wrap function and trying to fix this using
string functions instead).  Some of the lines will be terminated before the
limit using the enter key.  As far as i remember (it's been awhile since I
have done this), this should insert a cr/lf or #chr(10)##(chr(13)# right?
On the action page i am looking for this and it doesn't find anything.
HELP!!! (and thanks in advance ;-) )

Eric


~|
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:339042
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: locating linefeeds/carriage returns

2010-11-09 Thread John M Bliss

Look for:

#(chr(13)##chr(10)#

and

#(chr(13)#

and

#chr(10)#

On Tue, Nov 9, 2010 at 3:28 PM, Eric Roberts 
ow...@threeravensconsulting.com wrote:


 I'm being brain dead here...

 We are using a form textarea to input multiple lines of text (this relates
 to my previous post to the cf wrap function and trying to fix this using
 string functions instead).  Some of the lines will be terminated before the
 limit using the enter key.  As far as i remember (it's been awhile since I
 have done this), this should insert a cr/lf or #chr(10)##(chr(13)# right?
 On the action page i am looking for this and it doesn't find anything.
 HELP!!! (and thanks in advance ;-) )

 Eric


 

~|
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:339043
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: locating linefeeds/carriage returns

2010-11-09 Thread Robert Harrison

What do you want to do. Are you looking to replace with br?


Robert B. Harrison
Director of Interactive Services
Austin  Williams
125 Kennedy Drive, Suite 100 
Hauppauge NY 11788
P : 631.231.6600 Ext. 119 
F : 631.434.7022
http://www.austin-williams.com 

Great advertising can't be either/or.  It must be .

Plug in to our blog: AW Unplugged
http://www.austin-williams.com/unplugged



~|
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:339044
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: locating linefeeds/carriage returns

2010-11-09 Thread Eric Roberts

I tried that already and no joy :-(

Look for:

#(chr(13)##chr(10)#

and

#(chr(13)#

and

#chr(10)#

On Tue, Nov 9, 2010 at 3:28 PM, Eric Roberts 
ow...@threeravensconsulting.com wrote:

 

~|
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:339045
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: locating linefeeds/carriage returns

2010-11-09 Thread John M Bliss

You're not finding *any* 13's nor *any* 10's?  I've never seen that, I don't
think...

On Tue, Nov 9, 2010 at 3:29 PM, Eric Roberts 
ow...@threeravensconsulting.com wrote:


 I tried that already and no joy :-(

 Look for:
 
 #(chr(13)##chr(10)#
 
 and
 
 #(chr(13)#
 
 and
 
 #chr(10)#
 
 On Tue, Nov 9, 2010 at 3:28 PM, Eric Roberts 
 ow...@threeravensconsulting.com wrote:
 
 

 

~|
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:339046
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: locating linefeeds/carriage returns

2010-11-09 Thread Robert Harrison

They won't find any unless there is a hard return in the text area field.


Robert B. Harrison
Director of Interactive Services
Austin  Williams
125 Kennedy Drive, Suite 100 
Hauppauge NY 11788
P : 631.231.6600 Ext. 119 
F : 631.434.7022
http://www.austin-williams.com 

Great advertising can't be either/or.  It must be .

Plug in to our blog: AW Unplugged
http://www.austin-williams.com/unplugged


-Original Message-
From: John M Bliss [mailto:bliss.j...@gmail.com] 
Sent: Tuesday, November 09, 2010 4:40 PM
To: cf-talk
Subject: Re: locating linefeeds/carriage returns


You're not finding *any* 13's nor *any* 10's?  I've never seen that, I don't 
think...

On Tue, Nov 9, 2010 at 3:29 PM, Eric Roberts  ow...@threeravensconsulting.com 
wrote:


 I tried that already and no joy :-(

 Look for:
 
 #(chr(13)##chr(10)#
 
 and
 
 #(chr(13)#
 
 and
 
 #chr(10)#
 
 On Tue, Nov 9, 2010 at 3:28 PM, Eric Roberts  
 ow...@threeravensconsulting.com wrote:
 
 

 



~|
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:339047
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: locating linefeeds/carriage returns

2010-11-09 Thread John M Bliss

He wrote, Some of the lines will be terminated before the limit using the
enter key.  AFAIK, in a textarea, the enter key creates 13-10, 13, or 10.

On Tue, Nov 9, 2010 at 3:42 PM, Robert Harrison
rob...@austin-williams.comwrote:


 They won't find any unless there is a hard return in the text area field.


 Robert B. Harrison
 Director of Interactive Services
 Austin  Williams
 125 Kennedy Drive, Suite 100
 Hauppauge NY 11788
 P : 631.231.6600 Ext. 119
 F : 631.434.7022
 http://www.austin-williams.com

 Great advertising can't be either/or.  It must be .

 Plug in to our blog: AW Unplugged
 http://www.austin-williams.com/unplugged


 -Original Message-
 From: John M Bliss [mailto:bliss.j...@gmail.com]
 Sent: Tuesday, November 09, 2010 4:40 PM
 To: cf-talk
 Subject: Re: locating linefeeds/carriage returns


 You're not finding *any* 13's nor *any* 10's?  I've never seen that, I
 don't think...

 On Tue, Nov 9, 2010 at 3:29 PM, Eric Roberts 
 ow...@threeravensconsulting.com wrote:

 
  I tried that already and no joy :-(
 
  Look for:
  
  #(chr(13)##chr(10)#
  
  and
  
  #(chr(13)#
  
  and
  
  #chr(10)#
  
  On Tue, Nov 9, 2010 at 3:28 PM, Eric Roberts 
  ow...@threeravensconsulting.com wrote:
  
  
 
 



 

~|
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:339048
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: locating linefeeds/carriage returns

2010-11-09 Thread Eric Roberts

I am trying to load an array with wrapped lines from the text field.  We are 
feeding this into a function that takes the text and dynamically puts this in a 
graphic via java.  

Each element in the array will contain a line that is either wrapped or ended 
by a cr/lf when the user hits enter at the end of the line

I populate a temp var with the 1st 34 characters of string.  I look to see if 
there are any of the above chr values...if not, then I back up until i find a 
space and use that value as the EOL.  Next line start at EOL +1 and I repeat 
until I am out of string.  

here's the string (and how it should be formatted):
Life is but a stopping place,
A pause in what's to be.
A resting place along the road,
To sweet eternity. 

string temp for the first run:

Life is but a stopping place,A p

the return after all the processing is:

Life is but a stopping place,A

Here's the code...

cfset txtLen=len(variables.text.string)
cfset arraylimit=0
cfset linelen=#arguments.char_count#
cfset startelem=1
cfset arrayelem=1
cfset lb = chr(13)  chr(10) 
cfdump var=start loopbr
cfdump var=#variables.text.string#br
cfset variables.text.txtLines=arrayNew(1)
cfset tempvar=linelen+arguments.char_count
cfdump var=#txtlen#/#tempvar#br
!--- cfloop condition=txtlen LESS THAN 
(linelen+arguments.char_count) ---
cfdump var=#arraylimit#br
cfset 
stringtemp=mid(variables.text.string,startelem,arguments.char_count)
cfdump var=#stringtemp#br

cfset 
linebreak=findnocase(stringtemp,#chr(10)##chr(13)#,#startelem#)
cfif linebreak is 0
cfset 
linebreak=findnocase(stringtemp,#chr(10)#,#startelem#)
/cfif
cfif linebreak is 0
cfset 
linebreak=findnocase(stringtemp,#chr(13)#,#startelem#)
/cfif
cfdump var=lb=#linebreak#br
cfif linebreak neq 0
cfset linelen=linebreak
/cfif
cfloop from=#linelen# to=#startelem# 
index=charval step=-1
cfdump var=#startelem# to #linelen#br
cfif mid(variables.text.string,charval,1) neq 
#chr(32)#
cfdump 
var=#charval#(#gettoken(variables.text.string,charval)#)br
cfset linelen=linelen-1
cfdump var=char is not a 
spacebr
cfelse
cfset elemdiff=0
cfdump var=eolbr
cfbreak
/cfif
/cfloop

cfset variables.text.txtLines[arrayelem]=  
mid(variables.text.string,startelem,linelen)
cfdump var=array element #arrayelem# = 
#variables.text.txtLines[arrayelem]#br
cfset startelem=linelen+elemdiff+1
cfset linelen=linelen+arguments.char_count+1

cfset arrayelem=arrayelem+1

What do you want to do. Are you looking to replace with br?


Robert B. Harrison
Director of Interactive Services
Austin  Williams
125 Kennedy Drive, Suite 100 
Hauppauge NY 11788
P : 631.231.6600 Ext. 119 
F : 631.434.7022
http://www.austin-williams.com 

Great advertising can't be either/or.  It must be .

Plug in to our blog: AW Unplugged
http://www.austin-williams.com/unplugged 

~|
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:339049
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: locating linefeeds/carriage returns

2010-11-09 Thread Eric Roberts

That's what I thought too John...I have done similar code to this before and 
didn't have issues, so i am at a loss as to what is going on.  If  I look at 
the CF Debugging output, it wraps the form vars in a pre tag and the line 
breaks are where they should be.

He wrote, Some of the lines will be terminated before the limit using the
enter key.  AFAIK, in a textarea, the enter key creates 13-10, 13, or 10.

On Tue, Nov 9, 2010 at 3:42 PM, Robert Harrison
rob...@austin-williams.comwrote:

 

~|
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:339050
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: locating linefeeds/carriage returns

2010-11-09 Thread John M Bliss

What do you get when you do this...?

cfoutput
  #Find(chr(13)  chr(10), variables.text.string)#
  #Find(chr(13), variables.text.string)#
  #Find(chr(10), variables.text.string)#
/cfoutput

On Tue, Nov 9, 2010 at 3:47 PM, Eric Roberts 
ow...@threeravensconsulting.com wrote:


 That's what I thought too John...I have done similar code to this before
 and didn't have issues, so i am at a loss as to what is going on.  If  I
 look at the CF Debugging output, it wraps the form vars in a pre tag and the
 line breaks are where they should be.

 He wrote, Some of the lines will be terminated before the limit using the
 enter key.  AFAIK, in a textarea, the enter key creates 13-10, 13, or 10.
 
 On Tue, Nov 9, 2010 at 3:42 PM, Robert Harrison
 rob...@austin-williams.comwrote:
 
 

 

~|
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:339051
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: locating linefeeds/carriage returns

2010-11-09 Thread Bryan Stevenson

What is the value of the wrap attribute for the TEXTAREA tag??

On Tue, 2010-11-09 at 16:47 -0500, Eric Roberts wrote:

 That's what I thought too John...I have done similar code to this before and 
 didn't have issues, so i am at a loss as to what is going on.  If  I look at 
 the CF Debugging output, it wraps the form vars in a pre tag and the line 
 breaks are where they should be.
 
 He wrote, Some of the lines will be terminated before the limit using the
 enter key.  AFAIK, in a textarea, the enter key creates 13-10, 13, or 10.
 
 On Tue, Nov 9, 2010 at 3:42 PM, Robert Harrison
 rob...@austin-williams.comwrote:
 
  
 
 

~|
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:339052
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: locating linefeeds/carriage returns

2010-11-09 Thread Eric Roberts

It's not specified.


What is the value of the wrap attribute for the TEXTAREA tag??

On Tue, 2010-11-09 at 16:47 -0500, Eric Roberts wrote:

 

~|
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:339053
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: locating linefeeds/carriage returns

2010-11-09 Thread Bryan Stevenson

hmand I can't recall the default if not specified.

Anywaysjust something to look at.  I know using a value of
physical would add line breaks or carriage returns when wrapping
occurredseem to recall the other 2 value options did something
different.

So if you are seeing text on another line and it appears to be due to
CR or LFperhaps it's something else causing the new lines...

Cheers


On Tue, 2010-11-09 at 17:13 -0500, Eric Roberts wrote:

 It's not specified.
 
 
 What is the value of the wrap attribute for the TEXTAREA tag??
 
 On Tue, 2010-11-09 at 16:47 -0500, Eric Roberts wrote:
 


Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.
Please consider the environment before printing this e-mail



~|
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:339054
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfheader/cfheader not working as expected

2010-11-09 Thread Robert Gallagher

I truly understand what you're saying but how these things work it not 
consistent which is frustrating.  What's really crazy is we have dozens of 
Excel download links in our various apps like this example and some work 
perfectly with value=inline but most have the undesirable behavior (code name 
and read-only) which actually still works.  

Why inline provides the dialog box option of remembering the download 
decision but using attachment does not give that option (at least in IE) is 
very inconsistent but not surprising.  Since this is not earth shattering I 
will chalk this up to browser inconsistency and move on.  

~|
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:339055
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF Blog software

2010-11-09 Thread Andrew Scott

Yes I am fully aware of that, which is why I stated the way it was
implemented.

Regards,
Andrew Scott
http://www.andyscott.id.au/


 -Original Message-
 From: Jochem van Dieten [mailto:joch...@gmail.com]
 Sent: Wednesday, 10 November 2010 7:52 AM
 To: cf-talk
 Subject: Re: CF Blog software
 
 
 On Tue, Nov 9, 2010 at 9:44 PM, Andrew Scott wrote:
  And what surprised me was cfdump is one, because of the way it is
  implemented.
 
 cfdump internally uses createObject(java, ...) so it isn't as much that
 cfdump iself is disallowed as that you can't use it when Java objects have
 been disabled. But since cfdump is just a .cfm template I replace it with
 another implementation of cfdump that doesn't rely on Java objects when I
 built a secure server.
 
 Jochem
 


~|
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:339056
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread AJ Mercer

I am running mangoBlog on Railo
http://www.mangoblog.org/
http://www.mangoblog.org/


On 10 November 2010 02:25, DURETTE, STEVEN J (ATTASIAIT) sd1...@att.comwrote:


 Thanks, I will look at them (I have no experience with Railo), but I am
 pre-paid for a few months, so...

 Any ideas on cf blogging software I can use?  Any tutorials on dumbing
 down the current options to make them work?  I found a tutorial for
 blogcfc but it was so many versions back, some of the changes that the
 tutorial suggested weren't even there anymore.

 Steve

 --

*AJ Mercer*
webonix:net strength=Industrial / http://webonix.net | webonix:org
community=Open / http://webonix.org
http://twitter.com/webonix


~|
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:339057
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread David McGraw

So am I and I have no complaints.

Dave McGraw
Oyova Software, LLC
http://www.oyova.com


On Tue, Nov 9, 2010 at 6:27 PM, AJ Mercer ajmer...@gmail.com wrote:


 I am running mangoBlog on Railo
http://www.mangoblog.org/
 http://www.mangoblog.org/


 On 10 November 2010 02:25, DURETTE, STEVEN J (ATTASIAIT) sd1...@att.com
 wrote:

 
  Thanks, I will look at them (I have no experience with Railo), but I am
  pre-paid for a few months, so...
 
  Any ideas on cf blogging software I can use?  Any tutorials on dumbing
  down the current options to make them work?  I found a tutorial for
  blogcfc but it was so many versions back, some of the changes that the
  tutorial suggested weren't even there anymore.
 
  Steve
 
  --

 *AJ Mercer*
 webonix:net strength=Industrial / http://webonix.net | webonix:org
 community=Open / http://webonix.org
 http://twitter.com/webonix


 

~|
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:339058
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


slow cfquery cfqueryparam?

2010-11-09 Thread Richard White

Hi,

I am running the following cfquery which inserts a large amount of rows into a 
table (approx 2200)

cfquery name=insertData datasource=dbname 
  INSERT INTO parentquestions
  VALUES 
  cfloop index=i from=1 to=#arraylen(questionIDArray)#
cfif i neq 1,/cfif
(cfqueryparam value=#questionIDArray[i]# cfsqltype=cf_sql_bigint 
maxlength=20,cfqueryparam value=#parentQuestionIDArray[i]# 
cfsqltype=cf_sql_bigint maxlength=20,cfqueryparam 
value=#parentLevelArray[i]# cfsqltype=cf_sql_bigint maxlength=20)
  /cfloop
/cfquery

The query was taking on average 9 seconds to complete. However, sometimes it 
was erratically taking 40 seconds.

I output the query as text, copied it into MySQL and it only took 0.14 seconds.

So I then tried to build the sql text without applying the cfqueryparam as 
below, and it took only 1 second!

cfset sqlstring =  /
cfset sqlstring = INSERT INTO parentquestions VALUES  /
cfloop index=i from=1 to=#arraylen(questionIDArray)#
  cfif i neq 1cfset sqlstring = #sqlstring#,/cfif
  cfset sqlstring = 
'#sqlstring#(#questionIDArray[i]#,#parentQuestionIDArray[i]#,#parentLevelArray[i]#)'
/cfloop

cfquery name=insertData datasource=dbname 
  #sqlstring#
/cfquery

In understand that adding the cfqueryparam is adding approx 6600 validations, 
however would it really be the cause of slowing this query down so much? If so 
would there be any alternatives that I am missing?

thanks for any help 

~|
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:339059
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Sean Corfield

Mango Blog is great but it won't run on a ColdFusion host that restricts CFC
creation...

On Tue, Nov 9, 2010 at 3:27 PM, AJ Mercer ajmer...@gmail.com wrote:


 I am running mangoBlog on Railo
http://www.mangoblog.org/
 http://www.mangoblog.org/




~|
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:339060
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFFILE ERROR

2010-11-09 Thread Monique Boea

I have a file that is creating a CF template using the following code:

cfloop Query=languages
  cffile
  action = write
*file =
#ExpandPath('/contentFiles/#maxContentID#_#language#.cfm')# *
output = #Evaluate( #language#TEXT )#
nameconflict=overwrite
 /cfloop

It used to work fine but all of a sudden the red line is causing the
following error:


*Complex object types cannot be converted to simple values.
The expression has requested a variable or an intermediate expression result
as a simple value. However, the result cannot be converted to a simple
value. Simple values are strings, numbers, boolean values, and date/time
values. Queries, arrays, and COM objects are examples of complex values.

The most likely cause of the error is that you tried to use a complex value
as a simple one. For example, you tried to use a query variable in a cfif
tag. *

Any suggestions?

Thank you


~|
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:339061
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFFILE ERROR

2010-11-09 Thread Dave Watts

 I have a file that is creating a CF template using the following code:

    cfloop Query=languages
          cffile
              action = write
            *file =
 #ExpandPath('/contentFiles/#maxContentID#_#language#.cfm')# *
            output = #Evaluate( #language#TEXT )#
            nameconflict=overwrite
     /cfloop

 It used to work fine but all of a sudden the red line is causing the
 following error:

 *Complex object types cannot be converted to simple values.
 The expression has requested a variable or an intermediate expression result
 as a simple value. However, the result cannot be converted to a simple
 value. Simple values are strings, numbers, boolean values, and date/time
 values. Queries, arrays, and COM objects are examples of complex values.

 The most likely cause of the error is that you tried to use a complex value
 as a simple one. For example, you tried to use a query variable in a cfif
 tag. *

 Any suggestions?

First, I'd suggest that you not use nested hashes. Instead of this:

#ExpandPath('/contentFiles/#maxContentID#_#language#.cfm')#

use this:

#ExpandPath('/contentFiles/'  maxContentID  '_'  language  '.cfm')#

However, I don't think that's the cause of your problem. Instead, I
suspect that one of your variables contains something other than what
you think it does. Use CFDUMP to see what's in those variables.

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 tr

~|
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:339062
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Ajax + 2 functions = error

2010-11-09 Thread Jessica Kennedy

Ok, I have the following 2 functions:

!--- test---
cffunction name=test access=public output=No returntype=struct
 cfscript
  var returnData = structNew();
  structAppend(returnData, getTest());//failing here!
  returnData.test2 = test2;
 /cfscript
 cfreturn returnData
/cffunction

!--- test2 ---
cffunction name=getTest access=public output=No returntype=struct
 cfscript
  var returnData = structNew();
 returnData.testing = TEST;
/cfscript
 cfreturn returnData
/cffunction

I am doing an ajax request  on test, and getting the error Variable getTest 
is Undefined, failing at the point of calling the getTest function.  

I have tested removing the line of code and successfully completed the ajax 
request, as well as just making the request without ajax involvement and 
calling both functions. I even var scoped the call to the function-- still no 
luck. I think I'm doing something dumb, but it's not jumping out at me... any 
help is greatly appreciated!


~|
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:339063
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Ajax + 2 functions = error

2010-11-09 Thread Tony Bentley

Confusing. Your access is public but you can call it via remote Ajax?


~|
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:339064
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFFILE ERROR

2010-11-09 Thread Monique Boea

Ok thanks Dave,

On Tue, Nov 9, 2010 at 8:47 PM, Dave Watts dwa...@figleaf.com wrote:


  I have a file that is creating a CF template using the following code:
 
 cfloop Query=languages
   cffile
   action = write
 *file =
  #ExpandPath('/contentFiles/#maxContentID#_#language#.cfm')# *
 output = #Evaluate( #language#TEXT )#
 nameconflict=overwrite
  /cfloop
 
  It used to work fine but all of a sudden the red line is causing the
  following error:
 
  *Complex object types cannot be converted to simple values.
  The expression has requested a variable or an intermediate expression
 result
  as a simple value. However, the result cannot be converted to a simple
  value. Simple values are strings, numbers, boolean values, and date/time
  values. Queries, arrays, and COM objects are examples of complex values.
 
  The most likely cause of the error is that you tried to use a complex
 value
  as a simple one. For example, you tried to use a query variable in a cfif
  tag. *
 
  Any suggestions?

 First, I'd suggest that you not use nested hashes. Instead of this:

 #ExpandPath('/contentFiles/#maxContentID#_#language#.cfm')#

 use this:

 #ExpandPath('/contentFiles/'  maxContentID  '_'  language  '.cfm')#

 However, I don't think that's the cause of your problem. Instead, I
 suspect that one of your variables contains something other than what
 you think it does. Use CFDUMP to see what's in those variables.

 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 tr

 

~|
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:339065
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF (8.0.0) performance vs PHP (5)

2010-11-09 Thread Dave Merrill

It may well depend on the size and number of the strings, since the
main inefficiencies can be piling up of immutable strings and
subsequent GC. And like they say, there's lies, damn lies, and
statistics...

d

On Tue, Nov 9, 2010 at 10:10 AM, Larry Lyons larrycly...@gmail.com wrote:

Yes, cfsavecontent appears to use a java buffer internally, and runs
just about as fast. Pick whichever method gives you code you like
better with your content, its source, and your coding style.

Dave


 Its actually faster according to the tests I've seen. Both ArrayAppend and 
 cfsaveContent came out the fastest in John Whish's testing on CF8 (see 
 http://www.aliaspooryorik.com/blog/index.cfm/e/posts.details/post/string-concatenation-performance-test-128).
  In most cases both of these were faster than StringBuilder or StringBuffer.

 concatenate with coldfusion : 6797ms
 listappend with coldfusion : 21344ms
 arrayappend with coldfusion : 47ms
 coldfusion with save content: 47ms
 concatenate with java stringbuffer : 62ms
 concatenate with java StringBuilder : 63ms

 Some time or other I'll have to try John's test case under load with jMeter 
 and see what the performance is actually like.

 regards,
 larry

 

~|
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:339066
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Blog software

2010-11-09 Thread Dave Merrill

Ii don't think many hosts prohibit CreateObject('component'), they're
after the java/com/corba flavors. CreateObject('java') is mighty
useful though; not sure if Mango uses it or not.

Dave

On Tue, Nov 9, 2010 at 7:36 PM, Sean Corfield seancorfi...@gmail.com wrote:

 Mango Blog is great but it won't run on a ColdFusion host that restricts CFC
 creation...

 On Tue, Nov 9, 2010 at 3:27 PM, AJ Mercer ajmer...@gmail.com wrote:


 I am running mangoBlog on Railo
    http://www.mangoblog.org/
 http://www.mangoblog.org/




 

~|
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:339067
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CF 9 and Sybase Advantage JDBC driver

2010-11-09 Thread Ben Conner

Hi,

I have a client who uses the Sybase Advantage JDBC driver on a CF 7 production 
machine.  I'm trying to get it to work on a CF 9 system.  I copied the 
configuration over to the CF 9 entry (after installing the drivers, and then 
installing the advantage db server).  I'm getting the standard 'no suitable 
drivers available' error message for each JDBC entry I define that tries to 
access the Advantage driver.

Has anyone used the Sybase Advantage product using JDBC and gotten it to work?

Thanks!

--Ben

-- 
Ben Conner  b...@webworldinc.com
Web World, Inc. 888-206-6486
PO Box 1122
Queen Creek, AZ 85142



~|
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:339068
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Ajax + 2 functions = error

2010-11-09 Thread Azadi Saryev

try replacing your failing line with these 2:

var stuctTest = getTest();
structAppend(returnData, structTest);

Azadi


On 10/11/2010 09:56 , Jessica Kennedy wrote:
 structAppend(returnData, getTest());//failing here!

~|
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:339069
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Moving to DC

2010-11-09 Thread matt

 
FYI if you are in Oz
We are only allowed to ride Kangaroos on the right side of the curb, as we
drive on the left side of the road, the roos do not get spooked at traffic
coming behind them. I think bike riders have the same laws apply but will
check as roos outnumber bikes over here and everyone prefers the easier
option  :-)

-Original Message-
From: Eric Roberts [mailto:ow...@threeravensconsulting.com] 
Sent: Tuesday, November 09, 2010 9:04 AM
To: cf-jobs-talk
Subject: RE: Moving to DC


Don't they call that a Yeehaw! Moment?

-Original Message-
From: Scott Stewart [mailto:webmas...@sstwebworks.com]
Sent: Monday, November 08, 2010 3:35 PM
To: cf-jobs-talk
Subject: Re: Moving to DC


I don't 'cause I live here and I know what some of the dumb rednecks
around here will stoop to doing, and think about the consequences
later...

I know it would never pass the Virginia legislature because of the
elitist attitude that abounds there, like I said If I can't go you
can't either

On Mon, Nov 8, 2010 at 3:22 PM, RobG sled...@gmail.com wrote:

 On 11/8/10 11:51 AM, Scott Stewart wrote:

 I think he means riding between lanes of stopped traffic.. which on
 the east coast may introduce a motorcyclist to the inside of a car
 door fairly quickly...

 SEE!  I told you somebody would invariably say that.

 I call complete BS.  If somebody did that, yeah they would seriously
 injure (or kill) a motorcyclist and end up in jail as a result.

 Rob



 





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


RE: Moving to DC

2010-11-09 Thread Scott Stewart

I hear banjos... they're everywhere

-Original Message-
From: Eric Roberts [mailto:ow...@threeravensconsulting.com] 
Sent: Monday, November 08, 2010 5:04 PM
To: cf-jobs-talk
Subject: RE: Moving to DC


Don't they call that a Yeehaw! Moment?

-Original Message-
From: Scott Stewart [mailto:webmas...@sstwebworks.com] 
Sent: Monday, November 08, 2010 3:35 PM
To: cf-jobs-talk
Subject: Re: Moving to DC


I don't 'cause I live here and I know what some of the dumb rednecks
around here will stoop to doing, and think about the consequences
later...

I know it would never pass the Virginia legislature because of the
elitist attitude that abounds there, like I said If I can't go you
can't either

On Mon, Nov 8, 2010 at 3:22 PM, RobG sled...@gmail.com wrote:

 On 11/8/10 11:51 AM, Scott Stewart wrote:

 I think he means riding between lanes of stopped traffic.. which on
 the east coast may introduce a motorcyclist to the inside of a car
 door fairly quickly...

 SEE!  I told you somebody would invariably say that.

 I call complete BS.  If somebody did that, yeah they would seriously
 injure (or kill) a motorcyclist and end up in jail as a result.

 Rob



 





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


Re: Moving to DC

2010-11-09 Thread RobG

On 11/8/10 2:59 PM, Maureen wrote:

 That is legal in California.  I hate it, but apparently there have
 been few accidents because of it, and no fatalities.

No offense (seriously), but here's my take on why people hate it.  It's 
a generalization so please try not to take it too personally.  And I can 
relate because years ago before I rode I felt the same way.

You hate it because it requires you to actually pay attention.  You feel 
like you shouldn't have to watch out for anybody but yourself.  You hate 
it because of the VERY FEW dweebs out there (they exist in every group) 
that abuse the privilege and blow through traffic at too high a speed, 
or you've had a mirror broken by one of these guys.

OR, as somebody pointed out yesterday, you hate the idea that somebody 
should get there before you do.  Misery spread equally, that's the 
Liberal Way (tm).  Instead of Power To Those Who Can, we need to put a 
stop those people because it isn't FAIR that they should be able to do 
something we can't.

There was an article written in San Francisco back in 2000 talking about 
lane splitting.  They quoted one guy saying how he hates how people can 
get there sooner, and they shouldn't be allowed to.  They, should just 
get in line and wait with everybody else.

It's such a crock because bikes are much smaller than cars.  They fit in 
smaller spaces.  It just makes sense to let them use that space.

Consider this... at the grocery store or Walmart.  You have these big, 
wide aisles.  WHAT IF you were only allowed to walk single file down 
these aisles?  Even if somebody stopped to get stuff off the shelf, or 
was standing there staring, looking for the item that didn't exist, you 
COULD NOT go around them.  How dumb is that?  Very similar concept.

Rob

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