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

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

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]

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

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

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

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

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

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

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,

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

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!

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.

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

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

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

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

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

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

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

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.

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

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!

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

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.

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

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.

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,

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

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).