RE: Is this possible with component methods in cf8?

2009-09-14 Thread Rick Faircloth
Thanks for the input, Tony and everyone...keep the ideas coming. I'm about to start working out this issue today, so the more options I have to choose from, the better! Rick -Original Message- From: Tony Bentley [mailto:t...@tonybentley.com] Sent: Monday, September 14, 2009 11:14 AM

warm stand by for a coldfusion application

2009-09-14 Thread Brian Dumbledore
When my cf application server goes down, I want a backup machine (warm backup I guess) to take over. Should be a simple IP switch from one machien to another if possible. Can someone who have worked on failover scenarios suggest some options for me? I do not want my application to die due to

Re: Displaying image from a byte array

2009-09-14 Thread Omotola Anjorin
Is it a Java buffered image? If so you can pass it to ImageNew(). Have you tried that? Thanks, i have actually tried it. i just discovered that the problem isn't displaying the image. it is most likely that cf does not support the format of the image in the byte array. The byte array is

re: warm stand by for a coldfusion application

2009-09-14 Thread Jason Fisher
Have had really good luck with Coyote Point load balance hardware. Set up 2 (or more, we had 5) servers running the same apps and then the LB in front to guide traffic. We used to use client vars (instead of session vars) to manage user-to-app connections that were seamless even across

Re: Displaying image from a byte array

2009-09-14 Thread Jason Fisher
Go to the documentation for the fingerprint device, then, to determine what the file format is. There are a number of formats that browsers can't handle (not CF, but the browsers themselves), such as progressive JPEG and CMYK JPEG. If it's one of those, then you may need a 3rd party

Re: Is this possible with component methods in cf8?

2009-09-14 Thread Tony Bentley
This is a pretty common issue with file upload and processing. I suggest using either a Java or Flash based file uploader that offers a status for each file. the asfusion one is a good example of how you can upload and process each image. Once the image is uploaded and the script is run to

Re: Displaying image from a byte array

2009-09-14 Thread Leigh
Go to the documentation for the fingerprint device, then, to determine what the file format is. There are a number of formats that browsers can't handle (not CF, but the browsers themselves), ... Also, check the documentation for an example of converting the device output to an image

Mystical Session Value updating.

2009-09-14 Thread Ian Skinner
I am de-constructing a very old and convoluted ColdFusion application. *One* - I have a page with this url: http://calpip-devsite/county.cfm *Two* - On this page, through a mind boggling series of logic branches and include files there is this bit of code for a form. form action=

Re: warm stand by for a coldfusion application

2009-09-14 Thread Brian Dumbledore
Have had really good luck with Coyote Point load balance hardware. Set up 2 (or more, we had 5) servers running the same apps and then the LB in front to guide traffic. We used to use client vars (instead of session vars) to manage user-to-app connections that were seamless even across

Using CFHTTP to grab a Google News RSS feed

2009-09-14 Thread Jonathan Jacobs
Hi, I have a function that has loon worked just fine and recently stopped. It hangs when it tries to access news.google.com using CFHTTP. Does anyone know if something changed at google to cause this problem. My code to grab the fee is as follows. cfhttp

Re: Mystical Session Value updating.

2009-09-14 Thread Ian Skinner
Well of course it would be done in an Application.cfm file. I just never had to look that hard to find the appropriate Application.cfm file before. ~| Want to reach the ColdFusion community with something they want? Let them

Need help pinpointing an aggressive memory leak

2009-09-14 Thread Paul Vernon
I've got a problem on a production server that has been running since April. The problem has been ongoing for the last 6 days or so and everything I've tried doesn't seem to do anything to alleviate the problem. The server is a Win2003R2 server running a fully patched CF8.01 install. Until 4

Re: Displaying image from a byte array

2009-09-14 Thread Omotola Anjorin
Go to the documentation for the fingerprint device, then, to determine what the file format is. There are a number of formats that browsers can't handle (not CF, but the browsers themselves), such as progressive JPEG and CMYK JPEG. If it's one of those, then you may need a 3rd party

re: Using CFHTTP to grab a Google News RSS feed

2009-09-14 Thread Jason Fisher
That path works fine for me, output with cfdump var=#xmlParse(cfhttp.fileContent)# / Looks like the same content entries I get if I just point my browser directly to http://news.google.com/?q=hipposoutput=rss Can your web server resolve the DNS for news.google.com?

Re: warm stand by for a coldfusion application

2009-09-14 Thread Shannon Peevey
You can configure your load-balancers to have sticky sessions, or route traffic however you like. The only problem is price, and is it overkill for this situation. Your IP change is the cheapest and simplest. It will also have a period of downtime until you can get to the server to make the

GET insread of POST: what would you do?

2009-09-14 Thread Claude Schneegans
Hi, From time to time, I find in my error log errors due to undefined form variables. The reason being that the template was requested using method GET instead of POST. Of course, there are dumb bots that would GET any address they find in a page, but there are also true visitors, even

RE: GET insread of POST: what would you do?

2009-09-14 Thread DURETTE, STEVEN J (ATTASIAIT)
I cfparam both form and url forms of the variable. Then I convert to Variables... cfparam name=form.something default= / cfparam name=url.something default= / cfset Variables.something = myDefaultValue / cfif len(url.something)cfset Variables.something = url.something //cfif cfif

Re: warm stand by for a coldfusion application

2009-09-14 Thread Brian Dumbledore
You can configure your load-balancers to have sticky sessions, or route traffic however you like. The only problem is price, and is it overkill for this situation. Your IP change is the cheapest and simplest. It will also have a period of downtime until you can get to the server to

Re: warm stand by for a coldfusion application

2009-09-14 Thread Brian Dumbledore
Shannon, thanks for your time. I was hoping for an automated solution, but your direction helped. Thanks again. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing

Re: Can somebody translate this to coldfusion?

2009-09-14 Thread Allen Souliere
Rick T rtuinenb...@gmail.com wrote: #define STX 0x02 #define ETX 0x03 it is a function of type integer called calculate_lrc. There is an input pointer to a string called packet. short int calculate_lrc(char *packet) { define variables char

Re: GET insread of POST: what would you do?

2009-09-14 Thread Claude Schneegans
One thing though, if the values are showing up in the url then your form itself must be using GET, otherwise they wouldn't show in the URL. I thought it was clear in my initial post that the form was indeed submitted using POST. and of course I do validate the values received. The problem is

RE: GET insread of POST: what would you do?

2009-09-14 Thread DURETTE, STEVEN J (ATTASIAIT)
Create a required variable and use that to redirect them back to the form. I.E. cfparam name=form.requiredparam default= / cfif form.requiredparam neq ABCDEF123456 cflocation url=formtemplate.cfm / /cfif Steve -Original Message- From: Claude Schneegans

Re: warm stand by for a coldfusion application

2009-09-14 Thread Jochem van Dieten
On Mon, Sep 14, 2009 at 6:56 PM, Brian Dumbledore wrote: When my cf application server goes down, I want a backup machine (warm backup I guess) to take over. Should be a simple IP switch from one machien to another if possible. That is a very common scenario (because you usually can use a

RE: GET insread of POST: what would you do?

2009-09-14 Thread Hugo Ahlenius
| I thought it was clear in my initial post that the form was indeed | submitted using POST. | and of course I do validate the values received. | The problem is when the user resubmits it from his browser using GET | (probably not even being aware of it). | I can detect this situation, my

SOLVED: RE: Need help pinpointing an aggressive memory leak

2009-09-14 Thread Paul Vernon
Well in the end it was a rookie mistake... DOH! One of the most heavily used queries in the system was set up to be cached for 10 minutes at a time. The only problem was that one of the parameters I was passing into the query was a date/time of Now(). Changing the parameter being passed in from

Re: warm stand by for a coldfusion application

2009-09-14 Thread Allen Souliere
When my cf application server goes down, I want a backup machine (warm backup I guess) to take over. Should be a simple IP switch from one machien to another if possible. Can someone who have worked on failover scenarios suggest some options for me? I do not want my application to die due

Re: Is this possible with component methods in cf8?

2009-09-14 Thread Dave l
oh no! swfupload is ok but has some issues and limitations and it's not jquery which makes interacting with it a bit more difficult. I'm making a fairly sweet uploader in jquery and ended up using uploadify as the base uploader but I alter the source code. As far as the original question as

Re: Displaying image from a byte array

2009-09-14 Thread Leigh
The documentation doesnt say much except ... ... The captured fingerprint is a 256 gray-level image. Are you looking at the java documentation/api? It seems odd they would not provide more detailed information, or at least a few code examples. I am just guessing here. But that sounds like

Re: Is this possible with component methods in cf8?

2009-09-14 Thread Dominic Watson
swfupload is ok but has some issues and limitations and it's not jquery which makes interacting with it a bit more difficult. What issues and limitations exactly? Had no problems using jQuery with it - though that uploadify looks like a better js implementation for sure. Dominic 2009/9/14

Re: GET insread of POST: what would you do?

2009-09-14 Thread Dominic Watson
It is common to treat post and get data in the same way; simply, user input. I find doing this gives you greater flexibility and clarity (my page gets input, I do stuff with it). All frameworks that I have used have done this and it's a real snip to do at the beginning of a request somewhere:

65mb XML file Crashing CF8 on my workstation

2009-09-14 Thread Alan Rother
Hey All, I'm trying to parse out a 65mb XML file from a customer... Don't ask... Every time I try to hit it with XMLParse(), memory spikesfrom 500mb to 1,200 and then crashes CF Has anyone else dealt with big XML files like this? =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7

Re: 65mb XML file Crashing CF8 on my workstation

2009-09-14 Thread Barney Boisvert
I'd recommend grabbing a SAX parser and using that instead of the DOM-based stuff that CF ships with. Then you can stream the file in and deal with it's nodes sequentially, rather than having to inflate the whole thing into a DOM tree to manipulate. Definitely can make the code trickier to

Re: Displaying image from a byte array

2009-09-14 Thread Omotola Anjorin
The documentation doesnt say much except ... ... The captured fingerprint is a 256 gray-level image. Are you looking at the java documentation/api? It seems odd they would not provide more detailed information, or at least a few code examples. I am just guessing here. But that

RE: Is this possible with component methods in cf8?

2009-09-14 Thread Rick Faircloth
Is that a one-image-at-a-time processor, or will it handle multiple images submitted at once? Multiple images is what I'm trying to accomplish. I usually let a user select all the images they want to upload before submitting by letting them clone the file input. Then, within the cfc method, I

Re: Is this possible with component methods in cf8?

2009-09-14 Thread Dominic Watson
No, your cfc method won't be able to send back multiple returns. Instead, the flash uploader will upload the files one at a time to your CFC but your user will have the experience of sending them all at once. You will be able to customize progress reports as the flash object will publish

Re: Is this possible with component methods in cf8?

2009-09-14 Thread Tony Bentley
Another option is to use a zip utility to handle more than one image. This can allow for as many files as you want. Simply upload one zipped folder and then do a recursive loop inside of the zipped folder to grab all of the images.

Datasource issue with CrystalTech

2009-09-14 Thread Joshua Rowe
Hello there! I have a website that is being hosted through CrystalTech and am running into an issue with assigning a datasource through their control panel. From what I've seen in the past, you assign a datasource name with a userid and password and then associate whatever MySQL database you

Re: Is this possible with component methods in cf8?

2009-09-14 Thread Dave l
What issues and limitations exactly? Had no problems using jQuery with it - though that uploadify looks like a better js implementation for sure. There is no issues it's just not as clean. It's also harder to control the data coming back. I just went through most all the ajax uploads and thought

Re: Is this possible with component methods in cf8?

2009-09-14 Thread Dave l
You can't send back multiple returns in same method but you can just output the data which is what the flash part is looking for and it reports it back to ajax script as many times as you need, doesn't matter if it is once or 1000. Or you can loop over the method and grab each return and send

Re: Is this possible with component methods in cf8?

2009-09-14 Thread Dave l
What if the images have other data that go with them like descriptions? Just as easily you could first make a temp folder with a uuid or session as the name and dump them in there without having to zip them. If you have more than just the picture such as a description or other data then multi

Re: GET insread of POST: what would you do?

2009-09-14 Thread Claude Schneegans
request.data = url; StructAppend(request.data, form); This will work if the GET request transmits the form parameters in the url instead, but it is not the case: the url contains no value. ~| Want to reach the ColdFusion

Re: GET insread of POST: what would you do?

2009-09-14 Thread Claude Schneegans
After processing the form, redirect the browser (302 redirect, cflocation) to the 'thank you, your form is submitted' page. Good point, except many times, the input process is not finished. There may be 4 or 5 steps of form to fill before I can say thank you. Not really simple to pass all

Re: GET insread of POST: what would you do?

2009-09-14 Thread Claude Schneegans
Create a required variable and use that to redirect them back to the form. Redirect them back to the form was indeed what I intent to do. However, testing CGI.REQUEST_METHOD NEQ post seems more logical. ~| Want to reach the