RE: Getting rid of maliceous code embedded in a jpg
Really, thanks for the reply, but the jhove site is way over my head. Maybe someone will have a simpler answer. Terry -Original Message- From: denstar [mailto:valliants...@gmail.com] Sent: Friday, November 05, 2010 9:59 PM To: cf-talk Subject: Re: Getting rid of maliceous code embedded in a jpg On Fri, Nov 5, 2010 at 8:27 PM, Terry Troxel wrote: I am trying to allow perspective clients to try my templates image tools in order to see if it will help sway them. I do not have any image samples with malicious code nor do I want any. My question is if I use the coldfusion image tags or my trusty cf_imagecr after the upload will it remove any of this or how about I save it as a png? I do not want to open up any possible security issues. There was an awesome thread on the Railo list, titled CFFile and MIME types, that covered this issue a bit. I think in the end, a virus scanner was the best bet? Maybe trying to convert the image to a different type would do the trick too, I can't remember if that was covered. There was a link for something that looked interesting: http://hul.harvard.edu/jhove/ But I don't know if it would work. I never got around to writing a wrapper for it to test with. =) I bet conversion would be enough, though you'd probably run into the odd legitimate file that didn't convert, for whatever reason. Better that than the alternative though, I say. There are potential false-positives with virus scanners too, although I'd wager less. :Den -- Any father whose son raises his hand against him is guilty of having produced a son who raised his hand against him. Charles Peguy ~| 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:338900 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Closing Browser expires session/cookie
OT: lmgtfy.com = what did the five fingers say to the face? On Sat, Nov 6, 2010 at 12:42 AM, denstar valliants...@gmail.com wrote: On Fri, Nov 5, 2010 at 5:26 PM, Tony Bentley wrote: So I have an app that uses cflogin, which works great if the user logs in and out from the same browser. Now here is where I am stumped: -User logs in, then closes the browser -System does not allow the same user to be logged in more than once -System logs all logged in users -System removes user from log onSessionEnd() How can I remove the user from the log when they close the browser? I think the best you can do is invalidate their previous session when they try to log in again. So they can still only be logged in once, but it's the current session that is the master, and the old session is discarded/invalidated. Due to the nature of sessions, this is the best you can do. A thread on Ben's blog goes into a lot of depth about it. Probably the first hit on google: http://www.lmgtfy.com/?q=expiring+cookies+when+browser+closes+coldfusionl=1 (enable javascript to see the nifty typing action) :) :Den -- A word is not the same with one writer as with another. One tears it from his guts. The other pulls it out of his overcoat pocket. Charles Peguy ~| 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:338901 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Formatting the output of a text datatype
hello I am working on a app where users input their resumes. I am using a TEXT datatype for some of my fields for large areas of text i.e. Career Summary. The problem is when I output the text, there is not formatting to it and it looks like a large jumbled block of text. Some of the user cut and paste from Word, so there are strange characters in the data also. What is the best practice for storing and outputting large bodies of text? Thank you. ~| 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:338902 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Getting rid of maliceous code embedded in a jpg
I am not sure how cffile or cfimage handles it, but I do know that if you pass a file to some of the Java classes and it's not a legit image file, it will let you know. You can also write a cfc into this that can check file types to limit what file types get past and that will reduce the amount of crap... I just wrote a cfc based off of Ben Nadel's image utils cfc that creates dynamic images on the fly...you might want to look at that. It will kick back a file if you say taker a text file and rename the ext to jpg. -Original Message- From: denstar [mailto:valliants...@gmail.com] Sent: Saturday, November 06, 2010 12:59 AM To: cf-talk Subject: Re: Getting rid of maliceous code embedded in a jpg On Fri, Nov 5, 2010 at 8:27 PM, Terry Troxel wrote: I am trying to allow perspective clients to try my templates image tools in order to see if it will help sway them. I do not have any image samples with malicious code nor do I want any. My question is if I use the coldfusion image tags or my trusty cf_imagecr after the upload will it remove any of this or how about I save it as a png? I do not want to open up any possible security issues. There was an awesome thread on the Railo list, titled CFFile and MIME types, that covered this issue a bit. I think in the end, a virus scanner was the best bet? Maybe trying to convert the image to a different type would do the trick too, I can't remember if that was covered. There was a link for something that looked interesting: http://hul.harvard.edu/jhove/ But I don't know if it would work. I never got around to writing a wrapper for it to test with. =) I bet conversion would be enough, though you'd probably run into the odd legitimate file that didn't convert, for whatever reason. Better that than the alternative though, I say. There are potential false-positives with virus scanners too, although I'd wager less. :Den -- Any father whose son raises his hand against him is guilty of having produced a son who raised his hand against him. Charles Peguy ~| 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:338903 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Formatting the output of a text datatype
For display you could try pre/pre which should preserve your line breaks at least. It's been a while since I've used it so I'm unsure of it's limitations. You could also try replacing chr(10) chr(13) with br to create html line breaks. As far as the strange characters it's probably the weird open and close quotes etc that word uses. There's probably a regex out there for doing the reformatting. On Sat, Nov 6, 2010 at 9:40 AM, Monique Boea moniqueb...@gmail.com wrote: hello I am working on a app where users input their resumes. I am using a TEXT datatype for some of my fields for large areas of text i.e. Career Summary. The problem is when I output the text, there is not formatting to it and it looks like a large jumbled block of text. Some of the user cut and paste from Word, so there are strange characters in the data also. What is the best practice for storing and outputting large bodies of text? Thank you. ~| 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:338904 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Formatting the output of a text datatype
Here's a few links, they are php but the regex is what's important. http://php.bigresource.com/replace-non-ascii-characters-SDKRspXA.html#KKysUyTO http://www.wessray.com/php/strip-and-remove-non-ascii-characters-using-php-regular-expressions/ http://www.wessray.com/php/strip-and-remove-non-ascii-characters-using-php-regular-expressions/ On Sat, Nov 6, 2010 at 9:40 AM, Monique Boea moniqueb...@gmail.com wrote: hello I am working on a app where users input their resumes. I am using a TEXT datatype for some of my fields for large areas of text i.e. Career Summary. The problem is when I output the text, there is not formatting to it and it looks like a large jumbled block of text. Some of the user cut and paste from Word, so there are strange characters in the data also. What is the best practice for storing and outputting large bodies of text? Thank you. ~| 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:338905 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Formatting the output of a text datatype
Ok thanks! - Original Message - From: Michael Grant To: cf-talk Sent: Saturday, November 06, 2010 10:16 AM Subject: Re: Formatting the output of a text datatype For display you could try pre/pre which should preserve your line breaks at least. It's been a while since I've used it so I'm unsure of it's limitations. You could also try replacing chr(10) chr(13) with br to create html line breaks. As far as the strange characters it's probably the weird open and close quotes etc that word uses. There's probably a regex out there for doing the reformatting. On Sat, Nov 6, 2010 at 9:40 AM, Monique Boea moniqueb...@gmail.com wrote: hello I am working on a app where users input their resumes. I am using a TEXT datatype for some of my fields for large areas of text i.e. Career Summary. The problem is when I output the text, there is not formatting to it and it looks like a large jumbled block of text. Some of the user cut and paste from Word, so there are strange characters in the data also. What is the best practice for storing and outputting large bodies of text? Thank you. ~| 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:338906 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Formatting the output of a text datatype
You just might try Fckeditor for your text datatype entries as it has Paste from word which strips all the various MS formatting. You can modify the menubar to only include the Controls that are needed. Terry -Original Message- From: Monique Boea [mailto:moniqueb...@gmail.com] Sent: Saturday, November 06, 2010 8:34 AM To: cf-talk Subject: Re: Formatting the output of a text datatype Ok thanks! - Original Message - From: Michael Grant To: cf-talk Sent: Saturday, November 06, 2010 10:16 AM Subject: Re: Formatting the output of a text datatype For display you could try pre/pre which should preserve your line breaks at least. It's been a while since I've used it so I'm unsure of it's limitations. You could also try replacing chr(10) chr(13) with br to create html line breaks. As far as the strange characters it's probably the weird open and close quotes etc that word uses. There's probably a regex out there for doing the reformatting. On Sat, Nov 6, 2010 at 9:40 AM, Monique Boea moniqueb...@gmail.com wrote: hello I am working on a app where users input their resumes. I am using a TEXT datatype for some of my fields for large areas of text i.e. Career Summary. The problem is when I output the text, there is not formatting to it and it looks like a large jumbled block of text. Some of the user cut and paste from Word, so there are strange characters in the data also. What is the best practice for storing and outputting large bodies of text? Thank you. ~| 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:338907 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Formatting the output of a text datatype
You can also find useful functions on cflib.org for formatting and remove word crap. Htmltidy may also help you, this is not a cfml tag though so use google. Russ -Original Message- From: Terry Troxel [mailto:terry.tro...@gmail.com] Sent: 06 November 2010 16:58 To: cf-talk Subject: RE: Formatting the output of a text datatype You just might try Fckeditor for your text datatype entries as it has Paste from word which strips all the various MS formatting. You can modify the menubar to only include the Controls that are needed. Terry -Original Message- From: Monique Boea [mailto:moniqueb...@gmail.com] Sent: Saturday, November 06, 2010 8:34 AM To: cf-talk Subject: Re: Formatting the output of a text datatype Ok thanks! - Original Message - From: Michael Grant To: cf-talk Sent: Saturday, November 06, 2010 10:16 AM Subject: Re: Formatting the output of a text datatype For display you could try pre/pre which should preserve your line breaks at least. It's been a while since I've used it so I'm unsure of it's limitations. You could also try replacing chr(10) chr(13) with br to create html line breaks. As far as the strange characters it's probably the weird open and close quotes etc that word uses. There's probably a regex out there for doing the reformatting. On Sat, Nov 6, 2010 at 9:40 AM, Monique Boea moniqueb...@gmail.com wrote: hello I am working on a app where users input their resumes. I am using a TEXT datatype for some of my fields for large areas of text i.e. Career Summary. The problem is when I output the text, there is not formatting to it and it looks like a large jumbled block of text. Some of the user cut and paste from Word, so there are strange characters in the data also. What is the best practice for storing and outputting large bodies of text? Thank you. ~| 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:338908 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Closing Browser expires session/cookie
Naw, if I meant it like that I'd be all like, [lmgtfy] FOAD! vs. [lmgtfy] HAND!. :) I'm down with Bentley, yo! So there! =) :Den -- Freedom is a system based on courage. Charles Peguy On Sat, Nov 6, 2010 at 6:32 AM, Michael Grant wrote: OT: lmgtfy.com = what did the five fingers say to the face? On Sat, Nov 6, 2010 at 12:42 AM, denstar wrote: On Fri, Nov 5, 2010 at 5:26 PM, Tony Bentley wrote: So I have an app that uses cflogin, which works great if the user logs in and out from the same browser. Now here is where I am stumped: -User logs in, then closes the browser -System does not allow the same user to be logged in more than once -System logs all logged in users -System removes user from log onSessionEnd() How can I remove the user from the log when they close the browser? I think the best you can do is invalidate their previous session when they try to log in again. So they can still only be logged in once, but it's the current session that is the master, and the old session is discarded/invalidated. Due to the nature of sessions, this is the best you can do. A thread on Ben's blog goes into a lot of depth about it. Probably the first hit on google: http://www.lmgtfy.com/?q=expiring+cookies+when+browser+closes+coldfusionl=1 (enable javascript to see the nifty typing action) :) :Den -- A word is not the same with one writer as with another. One tears it from his guts. The other pulls it out of his overcoat pocket. Charles Peguy ~| 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:338909 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Formatting the output of a text datatype
On Sat, Nov 6, 2010 at 11:00 AM, Russ Michaels wrote: You can also find useful functions on cflib.org for formatting and remove word crap. Htmltidy may also help you, this is not a cfml tag though so use google. Totally! cflib.org roxors. You can probably find something that sanitizes the input for XSS attacks and whatnot too, which shouldn't be overlooked. I'd google it for the OP, but the OP doesn't know me that well, and thus I might be interpreted incorrectly. ;)p :Den -- He who does not bellow the truth when he knows the truth makes himself the accomplice of liars and forgers. Charles Peguy ~| 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:338910 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Closing Browser expires session/cookie
Yeah but their session expires a couple of hours after they close the browser. So I could expire the session at a shorter timespan but if I can do it when the browser closes, that would be better. The default session timeout is twenty minutes, I think. You should probably set the session timeout to a shorter value than a couple of hours. The session timeout only comes into play when the user stops making requests: if a user requests another page every fifteen minutes for eight hours, the session will continue for eight hours. If the user waits more than twenty minutes to make another page request, that user's session will have been destroyed. You can't guarantee that you can destroy the session when the browser closes. At best, you can break the connection between the user's browser and the session by using session cookies, which are destroyed when the browser is closed. If you've enabled J2EE sessions, they use a session cookie by default. You can also use client-side functionality (JavaScript, etc) to send a signal to the server when certain things happen, but again this isn't all that reliable. 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:338911 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Closing Browser expires session/cookie
:D On Sat, Nov 6, 2010 at 1:24 PM, denstar valliants...@gmail.com wrote: Naw, if I meant it like that I'd be all like, [lmgtfy] FOAD! vs. [lmgtfy] HAND!. :) I'm down with Bentley, yo! So there! =) :Den -- Freedom is a system based on courage. Charles Peguy On Sat, Nov 6, 2010 at 6:32 AM, Michael Grant wrote: OT: lmgtfy.com = what did the five fingers say to the face? On Sat, Nov 6, 2010 at 12:42 AM, denstar wrote: On Fri, Nov 5, 2010 at 5:26 PM, Tony Bentley wrote: So I have an app that uses cflogin, which works great if the user logs in and out from the same browser. Now here is where I am stumped: -User logs in, then closes the browser -System does not allow the same user to be logged in more than once -System logs all logged in users -System removes user from log onSessionEnd() How can I remove the user from the log when they close the browser? I think the best you can do is invalidate their previous session when they try to log in again. So they can still only be logged in once, but it's the current session that is the master, and the old session is discarded/invalidated. Due to the nature of sessions, this is the best you can do. A thread on Ben's blog goes into a lot of depth about it. Probably the first hit on google: http://www.lmgtfy.com/?q=expiring+cookies+when+browser+closes+coldfusionl=1 (enable javascript to see the nifty typing action) :) :Den -- A word is not the same with one writer as with another. One tears it from his guts. The other pulls it out of his overcoat pocket. Charles Peguy ~| 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:338912 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Closing Browser expires session/cookie
Okay, so I think you hit it Dave. I just need to shorten the session to 15 or 20 minutes. The system already requires a login when the user closes the browser so why not just shorten the timeout? I've already have the user sessions stored in a cookie so I was close, but didn't think about why the timeout was so long. It spawns another idea where in one instance I want the inactivity to be prolonged but some ajax calls every 10 minutes would handle this. Thanks! This really helps. On Nov 6, 2010, at 10:29 AM, Dave Watts wrote: Yeah but their session expires a couple of hours after they close the browser. So I could expire the session at a shorter timespan but if I can do it when the browser closes, that would be better. The default session timeout is twenty minutes, I think. You should probably set the session timeout to a shorter value than a couple of hours. The session timeout only comes into play when the user stops making requests: if a user requests another page every fifteen minutes for eight hours, the session will continue for eight hours. If the user waits more than twenty minutes to make another page request, that user's session will have been destroyed. You can't guarantee that you can destroy the session when the browser closes. At best, you can break the connection between the user's browser and the session by using session cookies, which are destroyed when the browser is closed. If you've enabled J2EE sessions, they use a session cookie by default. You can also use client-side functionality (JavaScript, etc) to send a signal to the server when certain things happen, but again this isn't all that reliable. 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:338913 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Installing CF9 on Windows 7 64 bit
The CF9 installers fails because it can't find the MDAC 2.6 or higher. But, that object is now integrated into the OS directly. So, it is available. Has anyone worked around this during the install of CF9? ~| 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:338914 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Formatting the output of a text datatype
Look at the DeMoronize function on CF-Lib.org It does a pretty good job of removing most Word related crud. http://www.cflib.org/index.cfm?event=page.udfbyidudfid=725 Also you can use the replace function to replace the windows carriage returns and line feeds with a br / However it may be easier just to use the HTMLEditFormat() function that does the same. hth, larry You can also find useful functions on cflib.org for formatting and remove word crap. Htmltidy may also help you, this is not a cfml tag though so use google. Totally! cflib.org roxors. You can probably find something that sanitizes the input for XSS attacks and whatnot too, which shouldn't be overlooked. I'd google it for the OP, but the OP doesn't know me that well, and thus I might be interpreted incorrectly. ;)p :Den -- He who does not bellow the truth when he knows the truth makes himself the accomplice of liars and forgers. Charles Peguy ~| 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:338915 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF (8.0.0) performance vs PHP (5)
+1,000,000 for Jame's theory about string concatenation. CF is very inefficient at this. Doesn't amtter much for small stuff and a few repeats, but for bulk, a Java buffer is the way to go. Dave String concatenation is quite slow in CF. This blog did some fairly simple tests and found that cfsavecontent was the fastest was to do string concatendation, see http://blog.fi.net.au/?p=279 I've run run similar tests using a more robust testing procedure and found similar results, (see http://www.aliaspooryorik.com/blog/index.cfm/e/posts.details/post/string-concatenation-performance-test-128) Basically cfsavecontent is on the average twice as fast as the java string buffer. What I'd suggest is do not write the file line by line but build up the string using cfsavecontent then write the string to disk. I think you'll find that that is about as fast as the PHP method, or nearly so. regards, larry -- Larry C. Lyons web: http://www.lyonsmorris.com/lyons LinkedIn: http://www.linkedin.com/in/larryclyons -- People need to realize that the plural of anecdote is not data. ~| 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:338916 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Formatting the output of a text datatype
Thanks terry. Good tip. I never thought to use the fckeditor. On Sat, Nov 6, 2010 at 12:58 PM, Terry Troxel terry.tro...@gmail.comwrote: You just might try Fckeditor for your text datatype entries as it has Paste from word which strips all the various MS formatting. You can modify the menubar to only include the Controls that are needed. Terry -Original Message- From: Monique Boea [mailto:moniqueb...@gmail.com] Sent: Saturday, November 06, 2010 8:34 AM To: cf-talk Subject: Re: Formatting the output of a text datatype Ok thanks! - Original Message - From: Michael Grant To: cf-talk Sent: Saturday, November 06, 2010 10:16 AM Subject: Re: Formatting the output of a text datatype For display you could try pre/pre which should preserve your line breaks at least. It's been a while since I've used it so I'm unsure of it's limitations. You could also try replacing chr(10) chr(13) with br to create html line breaks. As far as the strange characters it's probably the weird open and close quotes etc that word uses. There's probably a regex out there for doing the reformatting. On Sat, Nov 6, 2010 at 9:40 AM, Monique Boea moniqueb...@gmail.com wrote: hello I am working on a app where users input their resumes. I am using a TEXT datatype for some of my fields for large areas of text i.e. Career Summary. The problem is when I output the text, there is not formatting to it and it looks like a large jumbled block of text. Some of the user cut and paste from Word, so there are strange characters in the data also. What is the best practice for storing and outputting large bodies of text? Thank you. ~| 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:338917 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Installing CF9 on Windows 7 64 bit
The CF9 installers fails because it can't find the MDAC 2.6 or higher. But, that object is now integrated into the OS directly. So, it is available. Has anyone worked around this during the install of CF9? I've installed CF 9 on Windows 7 64-bit several times, and have never run into that issue. 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 onsit ~| 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:338918 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm