Re: Hosting.com, Your Experiences

2011-03-07 Thread Russ Michaels

if support and service is important to you then stick with a smaller company
who charges more.
Everyone knows the BIG hosting companies don't have the same level of
support/service as they have 100 x more customers to support, so it is more
customer per support person and the support staff are usually not that
technical as they can;t afford to hire only gurus who are developers and
tech support experts.
Just an unfortunate fact of life i'm afraid, find a company that specialise
in ColdFusion rather than a generic host.
HostMySite used to get rave reviews, hosting.com don't.
If your in the USA then I suggest http://www.edgewebhosting.net/ or if your
in uk/europe try www.cfmxhosting.co.uk

If you are looking for non scam host reviews try these 2 sites.
http://www.forta.com/cf/isp/
http://www.forta.com/cf/isp/www.brownbook.net

--

Russ Michaels

www.bluethunderinternet.com  : ColdFusion hosting specialists
www.cfmldeveloper.com: ColdFusion developer community
www.michaels.me.uk   : my blog
www.cfsearch.com : ColdFusion search engine
**
*skype me* : 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:342794
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Emailing Coldfusion Reports

2011-03-07 Thread Anthony Doherty

Hi Guys - im sure this has been asked before but after hours of searching 
through books and google i cant find what im after.

I have created an coldfusion report (.cfr) and set the output to PDF now when i 
browse to the report everything works perfectly.

I want to be able to save that report to a folder on the server and then attach 
it to cfmail and send it to the client.
We need to save the pdfs incase they need to be opened at a later date but we 
have a pretty big HDD so space wont be an issue.

Ive tried using cfffile and cfdocument but i cant get it to save the report to 
the folder.

If i can figure that out i will be able to attach it to the cfmail.

Can someone come back to me as soon as possible please - its pretty urgent

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


RE: Emailing Coldfusion Reports

2011-03-07 Thread Andrew Scott

Have you tried using cfreport and the name attribute to hold the report in a
variable, and then use cffile to save the report to the hard drive?


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




 -Original Message-
 From: Anthony Doherty [mailto:anthony.dohe...@oakleafcontracts.com]
 Sent: Monday, 7 March 2011 9:01 PM
 To: cf-talk
 Subject: Emailing Coldfusion Reports
 
 
 Hi Guys - im sure this has been asked before but after hours of searching
 through books and google i cant find what im after.
 
 I have created an coldfusion report (.cfr) and set the output to PDF now
 when i browse to the report everything works perfectly.
 
 I want to be able to save that report to a folder on the server and then
attach
 it to cfmail and send it to the client.
 We need to save the pdfs incase they need to be opened at a later date but
 we have a pretty big HDD so space wont be an issue.
 
 Ive tried using cfffile and cfdocument but i cant get it to save the
report to
 the folder.
 
 If i can figure that out i will be able to attach it to the cfmail.
 
 Can someone come back to me as soon as possible please - its pretty urgent
 
 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:342796
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Emailing Coldfusion Reports

2011-03-07 Thread Anthony Doherty

I did try that but cfreport displays the report.

I want to be able to just load the report on the sly send the email and then go 
to a confirmation page saying the report has been sent 

Have you tried using cfreport and the name attribute to hold the report in a
variable, and then use cffile to save the report to the hard drive?


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




 Hi Guys - im sure this has been asked before but after hours of searching
 through books and google i cant find what im after.
 
 I have created an coldfusion report (.cfr) and set the output to PDF now
 when i browse to the report everything works perfectly.
 
 I want to be able to save that report to a folder on the server and then
attach
 it to cfmail and send it to the client.
 We need to save the pdfs incase they need to be opened at a later date but
 we have a pretty big HDD so space wont be an issue.
 
 Ive tried using cfffile and cfdocument but i cant get it to save the
report to
 the folder.
 
 If i can figure that out i will be able to attach it to the cfmail.
 
 Can someone come back to me as soon as possible please - its pretty urgent
 
 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:342797
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Emailing Coldfusion Reports

2011-03-07 Thread Anthony Doherty

Hi Andrew,
I got it sorted using your method - I had tried it before but was using the 
wrong path:

See below;
cfreport format=pdf template=purchase_order_priced.cfr 
name=purchasedreport /
cffile action=write file=DIRECTOY\priced_order_#url.id#.pdf 
output=#purchasedreport# /


Cheers

Pulled me out of a hole there

Anthony

 I did try that but cfreport displays the report.
 
 I want to be able to just load the report on the sly send the email 
 and then go to a confirmation page saying the report has been sent 
 
 Have you tried using cfreport and the name attribute to hold the 
 report in a
 variable, and then use cffile to save the report to the hard drive?
 
 
 Regards,
 Andrew Scott
 http://www.andyscott.id.au/
 
 
 
 
  Hi Guys - im sure this has been asked before but after hours of 
 searching
  through books and google i cant find what im after.
  
  I have created an coldfusion report (.cfr) and set the output to 
 PDF now
  when i browse to the report everything works perfectly.
  
  I want to be able to save that report to a folder on the server and 
 then
 attach
  it to cfmail and send it to the client.
  We need to save the pdfs incase they need to be opened at a later 
 date but
  we have a pretty big HDD so space wont be an issue.
  
  Ive tried using cfffile and cfdocument but i cant get it to save 
 the
 report to
  the folder.
  
  If i can figure that out i will be able to attach it to the cfmail.
 
  
  Can someone come back to me as soon as possible please - its pretty 
 urgent
  
  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:342798
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


ColdFusion 9 install problem

2011-03-07 Thread Steven Durette

Hi all,
I've tried googling this and haven't had any luck. 
Here is the history. I had cf9 multiserver installed on my test laptop. Then I 
needed to upgrade from vista 64 to win7 64. So I uninstalled CF and jrun (along 
with a bunch of other stuff) and did the upgrade. 
Now when I try to install cf9 multiserver is grayed out with a message that 
jrun is installed on the system. I have searched and the jrun directory is 
gone, there are no registry entries I can find and no jrun service running. 
Any idea what I have to do to get cf9 to install multiserver?

Steve

Sent from my iPhone

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


File Upload uploading open file

2011-03-07 Thread Don

Hi Folks =)

Trying to upload a file ( word doc ) that is concurrently OPEN in the OS.

Upon upload attempt via cffile coldfusion is seemingly returning a mime type 
error:

The MIME type of the uploaded file application/octet-stream was not accepted 
by the server.

is there a way to prevent (open) files from being uploaded?

how would I ignore/bypass this error so as to actually upload the original 
file? 

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


CFC argument best practice question

2011-03-07 Thread Brook Davies

Hello,

 

Just a quick Best Practices question. I have a CFC, I call a method and
pass a slew of arguments to it. Internally it calls a private method using
argumentCollection=arguments. My question is, should I repeat the argument
definitions on the private method? 

 

The arguments are available regardless of whether or not the private method
has the actual argument definitions. What is the best practice here? Define
the arguments or just use them knowing they are the same as the public
method?

 

Brook

 

 




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


Re: CFC argument best practice question

2011-03-07 Thread Matt Quackenbush

Presumably your private method is being called by multiple methods.  It is
definitely much better - at least in terms of documentation - to have those
arguments clearly defined.  :-)

If, however, multiple methods do not call that private method, then there is
no need for the private method to exist.

HTH


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


Re: CFC argument best practice question

2011-03-07 Thread Dave Watts

 If, however, multiple methods do not call that private method, then there is
 no need for the private method to exist.

I wouldn't go as far as that. Private methods like this can serve the
same purpose as functions or subroutines anywhere else - to limit the
amount of code in the main method, and to provide a basis for
refactoring if other methods may be introduced in the future.

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


Re: CFC argument best practice question

2011-03-07 Thread Matt Quackenbush

On Mon, Mar 7, 2011 at 11:21 AM, Dave Watts wrote:


  If, however, multiple methods do not call that private method, then there
 is
  no need for the private method to exist.

 I wouldn't go as far as that. Private methods like this can serve the
 same purpose as functions or subroutines anywhere else - to limit the
 amount of code in the main method, and to provide a basis for
 refactoring if other methods may be introduced in the future.



That's the beauty of refactoring, though.  Unless you need to, don't.  And
if no other method is calling it (or expected to call it), then it is not
needed.  If it becomes needed, refactor and add it in.  :-)

Either way, though, the arguments should be clearly defined.


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


Re: ColdFusion 9 install problem

2011-03-07 Thread Steven Durette

Nevermind. I just missed one of the registry entries. 

Sent from my iPhone

On Mar 7, 2011, at 11:08 AM, Steven Durette st...@durette.org 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:342805
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFC argument best practice question

2011-03-07 Thread Nathan Strutz

If you have a lot of arguments, one way to refactor that is to make a
component that encompasses those arguments - essentially a bean, maybe a
couple of beans if the arguments are unrelated. In your first public method,
instantiate that bean with the arguments, then just pass that bean around.
Follow that, and you've gone from just using components to actual
object-oriented programming.

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Mon, Mar 7, 2011 at 10:06 AM, Brook Davies cft...@logiforms.com wrote:


 Hello,



 Just a quick Best Practices question. I have a CFC, I call a method and
 pass a slew of arguments to it. Internally it calls a private method using
 argumentCollection=arguments. My question is, should I repeat the argument
 definitions on the private method?



 The arguments are available regardless of whether or not the private method
 has the actual argument definitions. What is the best practice here? Define
 the arguments or just use them knowing they are the same as the public
 method?



 Brook








 

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


Re: CFC argument best practice question

2011-03-07 Thread Judah McAuley

On Mon, Mar 7, 2011 at 9:24 AM, Matt Quackenbush quackfu...@gmail.com wrote:
 That's the beauty of refactoring, though.  Unless you need to, don't.  And
 if no other method is calling it (or expected to call it), then it is not
 needed.  If it becomes needed, refactor and add it in.  :-)

I generally agree with this notion but I think it starts to fall apart
with more complex methods. You might have a whole routine that only
gets called one place but is complex enough that there are benefits to
breaking it up into multiple methods that have single concerns. Doing
so makes it easier to debug (the method names provide helpful clues to
follow the chain of execution) and makes it much easier to unit test.

 Either way, though, the arguments should be clearly defined.

Agreed.

J

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


Re: CFC argument best practice question

2011-03-07 Thread Dave Watts

 I generally agree with this notion but I think it starts to fall apart
 with more complex methods. You might have a whole routine that only
 gets called one place but is complex enough that there are benefits to
 breaking it up into multiple methods that have single concerns. Doing
 so makes it easier to debug (the method names provide helpful clues to
 follow the chain of execution) and makes it much easier to unit test.

Yeah, this is what I was trying to get at. I don't want to go through
hundreds of lines of code at once if I can avoid it.

 Either way, though, the arguments should be clearly defined.

 Agreed.

I agree with that too.

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


Re: CFC argument best practice question

2011-03-07 Thread Matt Quackenbush

On Mon, Mar 7, 2011 at 11:57 AM, Judah McAuley wrote:


 On Mon, Mar 7, 2011 at 9:24 AM, Matt Quackenbush wrote:
  That's the beauty of refactoring, though.  Unless you need to, don't.
  And
  if no other method is calling it (or expected to call it), then it is not
  needed.  If it becomes needed, refactor and add it in.  :-)

 I generally agree with this notion but I think it starts to fall apart
 with more complex methods. You might have a whole routine that only
 gets called one place but is complex enough that there are benefits to
 breaking it up into multiple methods that have single concerns. Doing
 so makes it easier to debug (the method names provide helpful clues to
 follow the chain of execution) and makes it much easier to unit test.



I totally agree.  I was trying to approach it from the perspective of a
n00b, though.  (Hence the overly generalized statement.)  I was figuring
that the OP is not unit testing or writing up huge, complex methods.  My
apologies if I misunderstood the OP's current level of experience with these
concepts.


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


file upload - preventing double or more full stops in file name

2011-03-07 Thread Don

Hi,

I would like to retrieve the original path of the file upload for the purposes 
of grabbing the initial file name and then checking to see how many full stops 
(.) are in the original file.

I need this to happen before I process it via CFFILE. Right now the form data 
posts back in a cfdump var=#form.b_original_form_filefield# as:

C:\JRun4\servers\cfusion25\SERVER-INF\temp\cfusion.war-tmp\neotmp4910092545170934955.tmp

which is sort of useless for my needs.

Is there a workaround? 

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


Re: file upload - preventing double or more full stops in file name

2011-03-07 Thread Dave Watts

 I would like to retrieve the original path of the file upload for the 
 purposes of grabbing the initial file name and then checking to see how many 
 full
 stops (.) are in the original file.

 I need this to happen before I process it via CFFILE. Right now the form 
 data posts back in a cfdump var=#form.b_original_form_filefield#
 as:

 C:\JRun4\servers\cfusion25\SERVER-INF\temp\cfusion.war-tmp\neotmp4910092545170934955.tmp

 which is sort of useless for my needs.

 Is there a workaround?

Why do you need to do this before you process it with CFFILE? All that
happens when you use CFFILE ACTION=UPLOAD is that CF writes the file
to a specified location on the filesystem. The file has already been
received by the web server, and stored in a temporary file location.
So, write the file to the filesystem in one place, then move it
somewhere else with a subsequent CFFILE if you really want to.

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


Re: file upload - preventing double or more full stops in file name

2011-03-07 Thread Don

  Why do you need to do this before you process it with CFFILE?

Because once its uploaded the server hacks off the last (.)

For example:

original file: somefile.mack.txt

renamed file on server: somefile.mack


  I would like to retrieve the original path of the file upload for 
 the purposes of grabbing the initial file name and then checking to 
 see how many full
  stops (.) are in the original file.
 
  I need this to happen before I process it via CFFILE. Right now 
 the form data posts back in a cfdump var=#form.
 b_original_form_filefield#
  as:
 
  C:\JRun4\servers\cfusion25\SERVER-INF\temp\cfusion.
 war-tmp\neotmp4910092545170934955.tmp
 
  which is sort of useless for my needs.
 
  Is there a workaround?
 
 Why do you need to do this before you process it with CFFILE? All 
 that
 happens when you use CFFILE ACTION=UPLOAD is that CF writes the 
 file
 to a specified location on the filesystem. The file has already been
 received by the web server, and stored in a temporary file location.
 So, write the file to the filesystem in one place, then move it
 somewhere else with a subsequent CFFILE if you really want to.
 
 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:342812
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Aligning text from top to bottom

2011-03-07 Thread Torrent Girl

Hello all. Sorry if this is a dumb question but is there any way to align text 
in html from top to bottom? In my searches, I found the block-progression 
property http://fantasai.inkedblade.net/style/discuss/vertical-text/ but it is 
not working.

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


Re: file upload - preventing double or more full stops in file name

2011-03-07 Thread Dave Watts

  Why do you need to do this before you process it with CFFILE?

 Because once its uploaded the server hacks off the last (.)

 For example:

 original file: somefile.mack.txt

 renamed file on server: somefile.mack

By the time your server-side script runs, the file has already been
uploaded. The CFFILE tag just processes the already-uploaded file.

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


Re: Re: file upload - preventing double or more full stops in file name

2011-03-07 Thread William Seiter

Please have a look at this post: 
http://www.williamoncoldfusion.com/index.php/knowledgebase/file-uploading

If you are referring to the cffile.serverfilename key that is available after 
the cffile upload command, that brings back somefile.mack, the extension is in 
a different key off of cffile of serverfileext.  checkout this page as well: 
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_f_10.html


--
William E. Seiter


On Mar 7, 2011, Don danfar...@hotmail.com wrote: 


  Why do you need to do this before you process it with CFFILE?

Because once its uploaded the server hacks off the last (.)

For example:

original file: somefile.mack.txt

renamed file on server: somefile.mack


  I would like to retrieve the original path of the file upload for 
 the purposes of grabbing the initial file name and then checking to 
 see how many full
  stops (.) are in the original file.
 
  I need this to happen before I process it via CFFILE. Right now 
 the form data posts back in a cfdump var=#form.
 b_original_form_filefield#
  as:
 
  C:\JRun4\servers\cfusion25\SERVER-INF\temp\cfusion.
 war-tmp\neotmp4910092545170934955.tmp
 
  which is sort of useless for my needs.
 
  Is there a workaround?
 
 Why do you need to do this before you process it with CFFILE? All 
 that
 happens when you use CFFILE ACTION=UPLOAD is that CF writes the 
 file
 to a specified location on the filesystem. The file has already been
 received by the web server, and stored in a temporary file location.
 So, write the file to the filesystem in one place, then move it
 somewhere else with a subsequent CFFILE if you really want to.
 
 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:342815
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Aligning text from top to bottom

2011-03-07 Thread Torrent Girl

Disregard - I found it :)

div style=-moz-transform: rotate(90deg); -moz-transform-origin: bottom 
left;font-size:30px
This will be rotated 90 degrees.
/div



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


Re: file upload - preventing double or more full stops in file name

2011-03-07 Thread Ian Skinner

On 3/7/2011 11:40 AM, Don wrote:
 Why do you need to do this before you process it with CFFILE?
 Because once its uploaded the server hacks off the last (.)

 For example:

 original file: somefile.mack.txt

 renamed file on server: somefile.mack

Well, as Dave indicated, ColdFusion is not actually involved in the file 
upload.  No matter that the parameter of the cffile... tag is called.  
The flow is:

User picks file with client (i.e. browser) file form control.

The user submits the request.

The client reads the file from the user's file system and encrypts it 
into the header of the request.

It then sends the request to the web server (i.e. IIS, Apache, etc).

The web server decrypts the file from the header to a temporary 
location. 
(C:\JRun4\servers\cfusion25\SERVER-INF\temp\cfusion.war-tmp\neotmp4910092545170934955.tmp)
 
for example.

The web server then tells ColdFusion about the uploaded file and where 
it was.

If you want to do anything with the file data before the last step, you 
will either have to have code running on the Client system OR you might 
be able to get some of the data from the raw request headers.


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


Re: Aligning text from top to bottom

2011-03-07 Thread Ian Skinner

On 3/7/2011 11:54 AM, Torrent Girl wrote:
 Disregard - I found it :)

 div style=-moz-transform: rotate(90deg); -moz-transform-origin: bottom 
 left;font-size:30px
 This will be rotated 90 degrees.
 /div

In Mozilla based browsers.



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


Re: file upload - preventing double or more full stops in file name

2011-03-07 Thread Don

Thanks guys.

IAN this caught my attention:

The client reads the file from the user's file system and encrypts it 
into the header of the request

I've been using fiddler to view the headers and see the data I want : 

200
Content-Disposition: form-data; name=b_file; filename=C:\Documents and 
Settings\dsdfsd\Desktop\clean up\test.docupload.doc

However I don't know how to access this via coldfusion. I've tried 
gethttprequestData but unfortunatley I think by that point my window of 
opportunity had past. somehow need to get at the request at an earlier stage.





 On 3/7/2011 11:40 AM, Don wrote:
  Why do you need to do this before you process it with CFFILE?
  Because once its uploaded the server hacks off the last (.)
 
  For example:
 
  original file: somefile.mack.txt
 
  renamed file on server: somefile.mack
 
 Well, as Dave indicated, ColdFusion is not actually involved in the 
 file 
 upload.  No matter that the parameter of the cffile... tag is called.  
 
 The flow is:
 
 User picks file with client (i.e. browser) file form control.
 
 The user submits the request.
 
 The client reads the file from the user's file system and encrypts it 
 
 into the header of the request.
 
 It then sends the request to the web server (i.e. IIS, Apache, etc).
 
 The web server decrypts the file from the header to a temporary 
 location. 
 (C:\JRun4\servers\cfusion25\SERVER-INF\temp\cfusion.
 war-tmp\neotmp4910092545170934955.tmp) 
 for example.
 
 The web server then tells ColdFusion about the uploaded file and where 
 
 it was.
 
 If you want to do anything with the file data before the last step, 
 you 
 will either have to have code running on the Client system OR you 
 might 
 be able to get some of the data from the raw request headers.


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


Re: file upload - preventing double or more full stops in file name

2011-03-07 Thread Don

William, Ah I get you. 

since the extension will be cut off and placed within another variable all I 
would have to do post file upload is search the server.filename for a(.). Easy.

Cheers.


 Please have a look at this post: http://www.williamoncoldfusion.
 com/index.php/knowledgebase/file-uploading
 
 If you are referring to the cffile.serverfilename key that is 
 available after the cffile upload command, that brings back somefile.
 mack, the extension is in a different key off of cffile of 
 serverfileext.  checkout this page as well: http://livedocs.adobe.
 com/coldfusion/8/htmldocs/help.html?content=Tags_f_10.html
 
 
 --
 William E. Seiter
 
 
 On Mar 7, 2011, Don danfar...@hotmail.com wrote: 
 
 
   Why do you need to do this before you process it with CFFILE?
 
 Because once its uploaded the server hacks off the last (.)
 
 For example:
 
 original file: somefile.mack.txt
 
 renamed file on server: somefile.mack
 
 
   I would like to retrieve the original path of the file upload for 
 
  the purposes of grabbing the initial file name and then checking to 
 
  see how many full
   stops (.) are in the original file.
  
   I need this to happen before I process it via CFFILE. Right now 
 
  the form data posts back in a cfdump var=#form.
  b_original_form_filefield#
   as:
  
   C:\JRun4\servers\cfusion25\SERVER-INF\temp\cfusion.
  war-tmp\neotmp4910092545170934955.tmp
  
   which is sort of useless for my needs.
  
   Is there a workaround?
  
  Why do you need to do this before you process it with CFFILE? All 
  that
  happens when you use CFFILE ACTION=UPLOAD is that CF writes the 
  file
  to a specified location on the filesystem. The file has already 
 been
  received by the web server, and stored in a temporary file location.
 
  So, write the file to the filesystem in one place, then move it
  somewhere else with a subsequent CFFILE if you really want to.
  
  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:342820
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: file upload - preventing double or more full stops in file name

2011-03-07 Thread Ian Skinner

On 3/7/2011 12:52 PM, Don wrote:
 200
 Content-Disposition: form-data; name=b_file; filename=C:\Documents and 
 Settings\dsdfsd\Desktop\clean up\test.docupload.doc


And that is different from the cffile.clientFile property?  Do note that 
cffile.clientFile is the full file name, cffile.clientFileName is the 
file name with the extension (i.e. the part after the list 'full stop' 
as you call it) stripped off.



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


Re: JVM help!

2011-03-07 Thread Duncan

So here is what we ended up with.

java.args=-server -Xms4096m -Xmx8192m -Dsun.io.useCanonCaches=false
-XX:MaxPermSize=1024m -Dsun.rmi.dgc.client.gcInterval=15
-Dsun.rmi.dgc.server.gcInterval=15 -XX:+UseParallelGC -Xbatch

We tried making max and min perm size the same, but for some reason, it
really didn't like it.

This set up has worked well for 2 + weeks, and now we seem to be at a happy
point where the norm is requests under 500ms, with a select few taking 2
seconds.

Thanks for all the help.


On Wed, Feb 23, 2011 at 5:44 PM, Carl Meyer ca...@tassweb.com.au wrote:


 Did any of those suggestions with NewGen, Thread Cores or Low Pause GC
 help?
 Regards, Carl.

  Hi everyone,
 
  thanks for all the good feedback.
 
  Let me first tell you WHY I think its a JVM issue, then show you what
  results I have had.
 
  We took the exact same code, and connected it to the exact same DB
  (and DB
  server) and ran the exact same code in isolation. The comparison was
  outstanding about 2s on the old machine and 10s as you have seen on
  the new.
 
 
  The connection between the SQL and both web machines pinged at 1ms
 
  We tried the connection from various locations and ruled out network
  issues
  (although there could be ). We looked at execution times and logged
  the
  information pretty heavily in the intensive parts of the app and saw
  that,
  on comparison between machines the differences. Given that, and the
  isolation tests, the only thing we could see that was different was
  the JVM
  settings, thus the conclusion we came too.
 
  so having taken some of the suggestions into account I have ended up
  with
  this setting:
 
  java.args=-server -Xms4096m -Xmx8192m -Dsun.io.useCanonCaches=false
  -XX:PermSize=1024m -XX:MaxPermSize=1024m
  -Dsun.rmi.dgc.client.gcInterval=15
  -Dsun.rmi.dgc.server.gcInterval=15 -XX:+UseParallelGC -Xbatch
  -Dcoldfusion.rootDir={application.home}/
  -Djava.security.policy={application.
 home}/
 servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/coldfusion.
  policy
  -Djava.security.auth.policy={application.
 home
 }/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/neo_jaas.
  policy
 
  This puts us at an execution time parallel to the old 32 bit machine,
  down
  at 1.5-2 seconds. while this is a vast improvement I would hope that
  more
  gains could be had out of tuning the JVM some more. I will tweak the
  GCinterval and the permSize tomorrow night and see if there is an
  incremental gain to be had.
 
  Any other suggestions would be great!
 
  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:342822
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CF 9 Standard Load Bal Sticky Sessions

2011-03-07 Thread Sebastian Powell

Hi,

I am trying to setup a failover environment for my web application. We are 
using CF9 standard and LVS (Linux Virtual Server) as the load balancer (LB). My 
web application uses session variables to remember form values posted in a 
process (eg would work like a session web shopping cart).  The issue is the 
session values are lost when the LB processes the request as it flips between 
the different servers between each request.

Is it possible to setup sticky sessions so that the session variables are 
retained across the web session? I'm concerned the only way to do this is to 
update the application to client variables and store in the database etc.  Any 
thoughts or recommendations appreciated.

Thanks, Sebastian 

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