Re: cfimage: jpg that is really a gif

2009-11-17 Thread Leigh
> I didn't see a response. http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:60485#328470 ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing l

Re: cfimage: jpg that is really a gif

2009-11-17 Thread Paul Ihrig
I didn't see a response. On Tuesday, November 17, 2009, C S wrote: > >>> Not the best option >>What's a better option then? > > I think it depends on what they actually need to do with the image. If they > just need to display it, reading the header bytes seems a bit awkward. So > something mo

Re: cfimage: jpg that is really a gif

2009-11-17 Thread Paul Ihrig
Guys it's a .jpg but when I get info in ff it says it's a gif. When I renamed it to gif cfomage worked just fine. I am only using it to out put width and height and to warn users if over x y it will blow out a div. Then using cffile for existance and file size. It's just old unscoped input of bad

Re: cfimage: jpg that is really a gif

2009-11-17 Thread Leigh
> Could it be that they are coded as CYMK images? Good thought. That would certainly make more sense than someone saving a .gif as a .jpg ~| Want to reach the ColdFusion community with something they want? Let them

Re: cfimage: jpg that is really a gif

2009-11-17 Thread Jason Fisher
Could it be that they are coded as CYMK images? It's a jpeg format that browsers and Adobe's ColdFusion Image engine cannot handle. Save them back out as RGB (the web version vs the print version) and you may be all right. ~

RE: Regex help with invalid HTML

2009-11-17 Thread Mark Henderson
Peter Boughton wrote on Wed 18/11/2009 at 03:12: > The only time parsing HTML with RegEx might be remotely viable is when you know > what that code will be - if the HTML is uncontrolled then using RegEx is a futile effort. > > RegEx is for dealing with Regular text, and HTML is not a Regular lan

RE: Regex help with invalid HTML

2009-11-17 Thread Mark Henderson
List wrote at 17 November 2009 14:32: > Andy matthews, you're welcome. Ah hah, that's a name I'm more familiar with. > testing Roger. And excuse the previously poorly formatted code (it looked ok at my end before sending but occasionally in Outlook 2007 when I copy and paste from external apps

Re: ColdFusion 9 books

2009-11-17 Thread Rick Mason
There will be a CF-9 version of ColdFusion Developer Tutorial by John Farrar. I just checked with John on IM ot see if I could announce it. He said the publisher was pleased with sales of the CF-8 book and had asked him to update it. John said that he would add coverage of ORM, caching and unit

Re: MySQL Limit

2009-11-17 Thread Pete Freitag
I will add that you can achieve the 101-200 by using the OFFSET keyword, eg: SELECT resourceId FROM resources LIMIT 100 OFFSET 100 -- Pete Freitag http://foundeo.com/ - ColdFusion Consulting & Products http://petefreitag.com/ - My Blog http://hackmycf.com - Is your ColdFusion Server Secure? O

Re: cfimage: jpg that is really a gif

2009-11-17 Thread C S
>> Not the best option >What's a better option then? I think it depends on what they actually need to do with the image. If they just need to display it, reading the header bytes seems a bit awkward. So something more dynamic would be better. (I posted one option in another response) ~~~

Re: Query of query with cfdirectory

2009-11-17 Thread Stefan Richter
Thank you. With the help of a friend we've now come up with this which seems to do the job: SELECT myslide from slides SELECT * FROM uploads WHERE uploads.name not in (#QuotedValueList(getSlides.myslide)#) Stefan On 17 Nov 2009, at 16:31, b...@bradwood.com wr

Re: cfimage: jpg that is really a gif

2009-11-17 Thread morchella
thanks guys.. i seems we just need to reformat the images. and fix info in db.. then catch any crud on upload. On Tue, Nov 17, 2009 at 11:41 AM, Leigh wrote: > > I do not know. On the one hand it would be nice if it could "guess" a bit > better. But on the other, these images are obviously mal

Re: Problems with CF-9 install on a Mac

2009-11-17 Thread Rob Barthle
I actually would advise to do a multiserver/J2EE install if you are up for it. If it's the first time, multiserver will set up JRun for you in addition to setting up CF9. If you have a J2EE server already installed, just create the EAR file through the CF9 install file and set it up in that ser

Re: cfimage: jpg that is really a gif

2009-11-17 Thread Leigh
I do not know. On the one hand it would be nice if it could "guess" a bit better. But on the other, these images are obviously malformed/misnamed. So I guess you have to work around it. Another option might be to do a try/catch. Inside the catch, try and read in the image as binary instead:

Re: cfimage: jpg that is really a gif

2009-11-17 Thread Peter Boughton
> Not the best option What's a better option then? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/me

Re: Problems with CF-9 install on a Mac

2009-11-17 Thread Stefan Richter
I've got my story about Snow Leopard, CF9 and Mamp here: http://www.flashcomguru.com/index.cfm/2009/11/2/cf9-mamp-snowleopard If you do a standalone install it'll probably be a lot easier. Cheers Stefan On 17 Nov 2009, at 16:17, Rick Mason wrote: > > Tony, > > I will consider it but quit

RE: Query of query with cfdirectory

2009-11-17 Thread brad
Try Googling "left outer join in a ColdFusion query of query". If you have the two result sets there, left outer the DB list to the directory list to find items in the directory for which there is no matching database record. As for performance, depending on the size of the result sets (less tha

Re: Problems with CF-9 install on a Mac

2009-11-17 Thread Rick Mason
Tony, I will consider it but quite frankly a lot of the locals are having problems with CF-9 and Snow Leopard. In fact if you do a quick google search you will find far more CF-9 install woes under Snow Leopard than its predecessor. I thought for sure there had to be somebody on here that exper

Query of query with cfdirectory

2009-11-17 Thread Stefan Richter
Hi all, The task at hand is to find a series of orphaned folders. I want to delete all folders in a certain directory which do not have a matching DB record. I was wondering if this is possible (or accept any other tips): I have a 'query' which is the result of a cfdirectory action="list". I n

Re: cfimage: jpg that is really a gif

2009-11-17 Thread Paul Ihrig
what i dont get is why dosnt cfimage read the header of the file. and not first look at the extension? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archi

Re: cfimage: jpg that is really a gif

2009-11-17 Thread Leigh
> ok how do i catch this?? > i have old data and images that where .uploaded. some one > did a bunch of > gif's but named them jpg. Not the best option, but you could try and read the image header in the first few bytes. If it is really a gif, it should start with GIF87a, GIF89a, etcetera http

cfimage: jpg that is really a gif

2009-11-17 Thread morchella
ok how do i catch this?? i have old data and images that where .uploaded. some one did a bunch of gif's but named them jpg. so i am using cfimage to display width and hieght. but it pucks when it trys to read the jpg.. Current logo for #pony_name#

Re: Using Oracle JRockit to detect memory leaks, causes memory usage to shrink

2009-11-17 Thread Dominic Watson
It seems this was due to the 'Trend refresh intervel' being set to two seconds - GC happens on each refresh... 2009/11/17 Dominic Watson > I've been trying to debug our server's memory useage and have installed > JRockit to try to detect memory leaks. I also have SeeFusion running. > Trouble i

Re: Regex help with invalid HTML

2009-11-17 Thread Peter Boughton
> I have no control over this code The only time parsing HTML with RegEx might be remotely viable is when you know what that code will be - if the HTML is uncontrolled then using RegEx is a futile effort. RegEx is for dealing with Regular text, and HTML is not a Regular language - even moder

Using Oracle JRockit to detect memory leaks, causes memory usage to shrink

2009-11-17 Thread Dominic Watson
I've been trying to debug our server's memory useage and have installed JRockit to try to detect memory leaks. I also have SeeFusion running. Trouble is (or not), as soon as I start JRockit's MemLeak on the CF instance, the memory useage graph changes dramatically in SeeFusion; going from 5 minute

Re: ColdFusion 8 ODBC Agent won't start on Windows 2008

2009-11-17 Thread Yves Arsenault
Thanks Dave, Most of their sites were already moved to MySQL... it probably is the right time to look at switching the others as well. Not sure if I get the final say but I'll probably suggest it. Gonna look into that httx driver that Mark mentioned for now. Yves Arsenault "Love is the only f

Re: ColdFusion 8 ODBC Agent won't start on Windows 2008

2009-11-17 Thread Yves Arsenault
Thanks I guess I hadn't properly read about the HTTX driver... Gonna look into that. ;-) Yves Arsenault "Love is the only force capable of transforming an enemy into a friend". --Martin Luther King, Jr. On Mon, Nov 16, 2009 at 3:55 PM, Mark Kruger wrote: > > Yes, to get that specific fi

Using cfselect bind features to dynamically produce list

2009-11-17 Thread Kamru Miah
I have a form which uses 2 functions /queries (rooms and users) that are used to produce a large number of select lists to be assigned to a number of hardware devices. Is it possible to use the CF8 cfselect bind features to improve the page load time by dynamically building the select lists of