CFDocument and Images

2010-11-22 Thread JediHomer
Hi, How does CFDocument, serving a PDF, go about actually getting images? We have a fairly complex report that returns a PDF with a fair amount of CFCharts within it. We were initially seeing a lot of timeouts creating the image, then moving the site to a multi-instance CF caused more mahem.

RE: CFDocument and Images

2010-11-22 Thread Russ Michaels
That depends how you have told it to get the images. See the localUrl attribute Specifies whether to retrieve image files directly from the local drive: * yes: ColdFusion retrieves image files directly from the local drive rather than by using HTTP, HTTPS, or proxy. * no: ColdFusion

Re: CFDocument and Images

2010-11-22 Thread JediHomer
Hi, Yep, no difference. I've tried toggleing the localURL with the img src set to ./image1.png and using ExpandPath to get the full path to the file so that the img src is set to the full physical path to the file. I'm on linux, so the path then becomes /home/jedi/blah... but the problem is

RE: CFDocument and Images

2010-11-22 Thread Russ Michaels
I believe CF actually uses iTtext (http://itextpdf.com/), you could try manipulating this directly and see if you have the same issue, if so then perhaps updating iText may solve the problem. Russ -Original Message- From: JediHomer [mailto:jediho...@gmail.com] Sent: 22 November 2010

Using isDefined/StructKeyExists against a ,Net com object

2010-11-22 Thread Joanne Corless
I'm doing some .Net integration and the values of the .Net object returned need to be inspected and then displayed if they are defined I've found that the conversion process brings everything back as rootObject.Get_ObjectName().Get_Value() which blows up if the object is empty throwing an

Re: Using isDefined/StructKeyExists against a ,Net com object

2010-11-22 Thread Dave Watts
I've found that the conversion process brings everything back as rootObject.Get_ObjectName().Get_Value() which blows up if the object is empty throwing an undefined error - However if I try and use isDefined(rootObject.Get_ObjectName) or StructKeyExists(rootObject,Get_ObjectName) - it just

CF8 cfcookie vs cfheader set-cookie

2010-11-22 Thread Jawad Shaik Mohammed
I was updating our application to support httponly cookies and came across what seems like a ColdFusion quirk. I had to update a bunch of pages where we used to set cookies using cfcookie tag, so I went ahead and created a custom tag that all templates can use to set a cookie. Since CF8's

Re: CFDocument and Images

2010-11-22 Thread Jochem van Dieten
On Mon, Nov 22, 2010 at 5:18 PM, JediHomer wrote: I've tried toggleing the localURL with the img src set to ./image1.png and using ExpandPath to get the full path to the file so that the img src is set to the full physical path to the file.  I'm on linux, so the path then becomes

ColdFusion LCDS Session Management

2010-11-22 Thread Josh Dura
Has anyone on the list had any experience implementing session management for LiveCycle Data Services into ColdFusion 9? I am building an app using CF, Flex LCDS and am trying to find a way to call a few clean up methods on the CF side when a user disconnects. Unfortunately, I haven't found

Detect users based on country???

2010-11-22 Thread Jeff F
I need to hide pricing data on a few web pages for one country, Canada. I've got a range of IP address blocks as in: 41.206.160.0/19 24.36.0.0/16 24.37.0.0/16 24.38.144.0/20 24.57.0.0/16 24.64.0.0/13 24.72.0.0/17 24.72.128.0/20 (the list is much longer). At first I was looking

Re: Detect users based on country???

2010-11-22 Thread Tony Bentley
Use a public geo-location service: cfhttp method=get URL=http://ipinfodb.com/ip_query.php?ip=#cgi.REMOTE_ADDR#; result=response / Then use the response XML tree to extract the country or zip: cfset xmmm = xmlparse(response.filecontent) cfset countryname = xmmm.response.countryname.xmltext

REGEX hell

2010-11-22 Thread Rick Colman
I am trying to replace two trailing parens )) with a single paren. here is a sample string: (K AAA) (N AAC) (E GAA) ) looks like there is a space in between the two )), so I tried: cfset cleandata2 = #REReplaceNoCase( cleandata1,'\)\ \)',')','all')# but this is not working. Any ideas as two

Re: REGEX hell

2010-11-22 Thread Jerry Johnson
no need to escape the space char with a slash. are you sure it is only 1 space, and are you sure it is a space char (chr(32))? If so, remove the slash in front of the space, and it should work. also, pet peeve, no need for the ## around the function. Works either way, though, so ignore if you

Re: REGEX hell

2010-11-22 Thread Michael Dinowitz
Are you sure it's a space and not 2 spaces? Or a tab? Try using \s* to indicate that there may be one or more space characters. \)\s*\) cfset cleandata2 = REReplaceNoCase(cleandata1, '\)\s*\)', ')', 'all') On Mon, Nov 22, 2010 at 8:48 PM, Rick Colman rcol...@cox.net wrote: I am trying to

Re: REGEX hell

2010-11-22 Thread Rick Colman
This worked!! TNX. On 11/22/2010 6:04 PM, Michael Dinowitz wrote: Are you sure it's a space and not 2 spaces? Or a tab? Try using \s* to indicate that there may be one or more space characters. \)\s*\) cfset cleandata2 = REReplaceNoCase(cleandata1, '\)\s*\)', ')', 'all') On Mon, Nov 22,

RE: REGEX hell

2010-11-22 Thread andy matthews
For future reference you should avoid using * where possible as it can easily lead to overmatching. Even using + would be better although both + and * alone are greedy matches. An even better solution would be to use a lazy match like so: \)\s+?\) The ? following the + tells the regex engine to

Re: REGEX hell

2010-11-22 Thread Michael Dinowitz
I agree that the * (0 or more) should be avoided unless needed but in this case I felt it was. There may or may not be a space. There may be more than one space. There may be a space character being seen as a space (like a tab). Because we don't know if a space will actually exist, the * is

Re: Immediate openings in claims processing/data entry

2010-11-22 Thread Bryan Stevenson
No idea if it's available in 2010, but I'd be extra careful replying to any job post like that.too good to be true generally means it is ;-) On Mon, 2010-11-22 at 18:03 -0500, Terri Maruyama wrote: I am very new to your site. I was reading threads dated back to 2006!! Is this job

Fw: Re: Immediate openings in claims processing/data entry

2010-11-22 Thread Jay
Sorry to seem rude, but even in 2006, this job was probably a scam. Nothing is said about CF, let alone any type of development. -Jason Sent from my iPhone --Fw: Fw: Re: Immediate openings in claims processing/data entry Jason M. Lorentzen Software Engineer Chiron Technology Sevices,