RE: General Question...
IE 6 and below doesn't handle them well when there is any level of opacity in them. You have to use filters and/or JS 'work arounds' to get them to display correctly. Other than that, I haven't ran into any 'gotchas'. ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 10:10 AM To: CF-Talk Subject: OT: General Question... Are .png images in wide-spread use? Any limitations in browsers or otherwise which would cause me to want to avoid their use? Rick ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279753 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: General Question...
Didn't mean to be redundant, I didn't see the other 3 forked threads. Cheers ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 2:06 PM To: CF-Talk Subject: RE: General Question... IE 6 and below doesn't handle them well when there is any level of opacity in them. You have to use filters and/or JS 'work arounds' to get them to display correctly. Other than that, I haven't ran into any 'gotchas'. ...:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 10:10 AM To: CF-Talk Subject: OT: General Question... Are .png images in wide-spread use? Any limitations in browsers or otherwise which would cause me to want to avoid their use? Rick ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279754 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: General Question...
Yeah, not sure how we got multiple threads started... Thanks for the info, however! (It sure doesn't hurt me to hear it more than once! :o) Rick -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 2:10 PM To: CF-Talk Subject: RE: General Question... Didn't mean to be redundant, I didn't see the other 3 forked threads. Cheers ...:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 2:06 PM To: CF-Talk Subject: RE: General Question... IE 6 and below doesn't handle them well when there is any level of opacity in them. You have to use filters and/or JS 'work arounds' to get them to display correctly. Other than that, I haven't ran into any 'gotchas'. :.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 10:10 AM To: CF-Talk Subject: OT: General Question... Are .png images in wide-spread use? Any limitations in browsers or otherwise which would cause me to want to avoid their use? Rick ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279759 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: General Question...
Yeah, not sure how we got multiple threads started... Some email clients modify subject lines that contain non-alpha-numeric characters, such as eclipses (...). These are then seen by other e-mail clients as different subject threads. I now take you back to the regularly scheduled PNG discussion, which I have been following with interest. Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279762 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: General Question...
Hehe eclipses. Someone has work on the brain haha ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 3:03 PM To: CF-Talk Subject: RE: General Question... Yeah, not sure how we got multiple threads started... Some email clients modify subject lines that contain non-alpha-numeric characters, such as eclipses (...). These are then seen by other e-mail clients as different subject threads. I now take you back to the regularly scheduled PNG discussion, which I have been following with interest. Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279763 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: General Question - CFInclude
Did I miss the resposnes to this yesterday - would be very interested to know From: Haggerty, Michael A. Subject: General Question Hi; I have a question: is it possible to detect whether a CFM file is CFINCLUDEd within another file? Here is a case where I would want to be able to do that: let's say I have a page with some content and it has been indexed through Verity. There is a separate layout file that properly displays the content template. Verity would index the content of the content file and ignore the layout file. When a user finds a link to the content page in Verity and clicks on the link, I would want some way to include the content file within the layout. Is there a way to detect whether or not the content file is appearing within the context of the layout file? Thanks Michael Haggerty __ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: General Question - CFInclude
I missed the replies as well. What I do when I need to know is simply set a cfparam in the include file: CFPARAM NAME=Included DEFAULT=0 and when I include it, I set that variable to 1: CFSET Included = 1 CFINCLUDE TEMPLATE=page.cfm But there has to be a more elegant way... Did I miss the resposnes to this yesterday - would be very interested to know From: Haggerty, Michael A. Subject:General Question Hi; I have a question: is it possible to detect whether a CFM file is CFINCLUDEd within another file? Here is a case where I would want to be able to do that: let's say I ha ve a page with some content and it has been indexed through Verity. There is a separate layout file that properly displays the content template. Verit y would index the content of the content file and ignore the layout file. When a user finds a link to the content page in Verity and clicks on th e link, I would want some way to include the content file within the layo ut. Is there a way to detect whether or not the content file is appearing within the context of the layout file? Thanks Michael Haggerty __ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: General Question
Sure, check the CGI vars, like CGI.CF_TEMPLATE_PATH. If the file doesn't match the current file, it's being run as a CFINCLUDE, not as a direct call. === Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email: [EMAIL PROTECTED] Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Haggerty, Michael A. [mailto:[EMAIL PROTECTED]] Sent: Monday, January 14, 2002 12:55 PM To: CF-Talk Subject: General Question Hi; I have a question: is it possible to detect whether a CFM file is CFINCLUDEd within another file? Here is a case where I would want to be able to do that: let's say I have a page with some content and it has been indexed through Verity. There is a separate layout file that properly displays the content template. Verity would index the content of the content file and ignore the layout file. When a user finds a link to the content page in Verity and clicks on the link, I would want some way to include the content file within the layout. Is there a way to detect whether or not the content file is appearing within the context of the layout file? Thanks Michael Haggerty __ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: general question about naming conventions
Mark You'll get a lot of differing opinions on this subject... here are my preferences: 1) Name the table, itself, as singular - makes the SQL statements more readable (English-like) Event instead of Events, Category instead of Categories, etc. 3) Make the column names as concise and descriptive as possible ProgramID, Description, LastName, CreditCardNumber 4) Underscores and/or Caps are a personal preference 5) Do *Not* include any repetition of the table name in the column name, except: The Primary Key contains its Table name A Foreign Key Contains its Table name Department DepartmentID Integer Identity Primary Key, Name Phone AnnualBudget Employee EmployeeID Integer Identity Primary Key, DepartmentID References Department Name Phone Salary 6) Do *not* include, in the column name, any reference to the type of field: int, char, text, etc. It is not unusual for field types to be changed over time, for example a varchar field is changed to a text field. Why make the programmer change all his programs, documentation, operating procedures, etc., *just* because the field *type* has changed? 7) When you reference a column, use the table name as a qualifier. This makes a concise, readable query: SELECT Employee.Name, Employee.Phone, Employee.Salary, Department.Name, Department.Phone FROM Employee LEFT OUTER JOIN Department ON Employee.DepartmentID = Department.DepartmentID As opposed to: SELECT Emp_chr_Name, Emp_chr_Phone, Emp_mon_Salary, Dep_chr_Name, Dep_chr_Phone FROM Employee LEFT OUTER JOIN Department ON Emp_fk_DepartmentID = Dep_pk_DepartmentID I use the above conventions and have found them to yield efficient and readable code (and documentation). The readability is especially important for use by lay people when creating Ad Hoc queries/reports or communicating their needs to programmers... the database becomes a major asset of the *entire* enterprise. HTH Dick At 10:52 AM -0800 12/21/01, Mark Smeets wrote: So, a general question, When dealing with databases, how do you name your columns? Example: Table Name: Events Column(s): Start, End, Info Would you name it like this (a)Start, End, Info (b)eStart, eEnd, eInfo (c)cStart, cEnd, cInfo (d)or something completely different (the c stands for column) This doesn't have to be answered over the list, private email is good too. Just curious as to what others do. __ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: general question about naming conventions
We assign every table in all databases a unique 3 character prefix. Then our columns would be prefixed with that. For your example I might assign the prefix evt so the columns become evt_Start, evt_End, evt_Info. This helps in that you can then reference fields and not have to worry about the uniqueness of the name. For example, every table of ours has an identity column. We would call this field evt_id and in another table maybe evd_id. Then I could say: SELECT evt_id, evt_somedata, evd_id, evd_otherdata FROM events LEFT OUTER JOIN eventdetail ON evt_id = evd_evt_id WHERE evt_somefield = 'some data' Hope this helped. __ Bill Grover Supervisor IS DepartmentPhone: 301.424.3300 x396 EU Services, Inc. FAX: 301.424.3300 x1396# 649 North Horners Lane E-Mail: mailto:[EMAIL PROTECTED] Rockville, MD 20850-1299WWW: www.euservices.com __ -Original Message- From: Mark Smeets [mailto:[EMAIL PROTECTED]] Sent: Friday, December 21, 2001 1:53 PM To: CF-Talk Subject: general question about naming conventions So, a general question, When dealing with databases, how do you name your columns? Example: Table Name: Events Column(s): Start, End, Info Would you name it like this (a)Start, End, Info (b)eStart, eEnd, eInfo (c)cStart, cEnd, cInfo (d)or something completely different (the c stands for column) This doesn't have to be answered over the list, private email is good too. Just curious as to what others do. -- Mark Smeets / stranger0 / ICQ: 1062196 [EMAIL PROTECTED] http://www.prowerks.com/stranger Question: What is the first thing you notice about a person? Whether or not they're on fire. - Weird Al Yankovic FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists __ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: general question about naming conventions
This is something that tends to come down to personal preference everytime and is different with dang near every developer. What I like for DBs is the table name, events and then the column name and type them if possible for ease of use. So you could have Table name: Events Columns: events_ID, events_dtStart, events_dtEnd, events_info, event_bOutside Or Columns: eventsID, dtEventStart, dtEventsEnd, eventsInfo, bEventsOutside This can depend on if you want the underscores for readability or not. Without the underscores it tends to be easier to read with the type then in front of the whole field. Just my two cents, t ** Tyler M. Fitch Certified Advanced ColdFusion 5 Developer ISITE Design, Inc. 615 SW Broadway Ste. 200 Portland, OR 97205 503.221.9860 ext. 111 http://isitedesign.com ** -Original Message- From: Mark Smeets [mailto:[EMAIL PROTECTED]] Sent: Friday, December 21, 2001 10:53 AM To: CF-Talk Subject: general question about naming conventions So, a general question, When dealing with databases, how do you name your columns? Example: Table Name: Events Column(s): Start, End, Info Would you name it like this (a)Start, End, Info (b)eStart, eEnd, eInfo (c)cStart, cEnd, cInfo (d)or something completely different (the c stands for column) This doesn't have to be answered over the list, private email is good too. Just curious as to what others do. -- Mark Smeets / stranger0 / ICQ: 1062196 [EMAIL PROTECTED] http://www.prowerks.com/stranger Question: What is the first thing you notice about a person? Whether or not they're on fire. - Weird Al Yankovic FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists __ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: general question about naming conventions
Mark Smeets asked: When dealing with databases, how do you name your columns? Personally, I use the following structure, but I don't really have any rationale for it. foo_id int foo_dt datetime foo_d date is_foo boolean foo_tx string (could be char, or varchar, I don't make the distinction) foo_desc text/memo foo_dblfloat/double db_foo_dt A (datetime) var that is managed by the SQL server the user never sees (like db_updated_dt) db_foo_by A userid that is managed by the server. (db_created_by) Okay, maybe a little rationale: 1. I *hate* Hungarian notation. (If I'm thinking of the right term? The one where it's like intFoo, boolBar, lpszWTF etc.) 2. I'm a big fan of StudlyCaps for variables in my CF and Perl scripts, but I don't think that translates well to SQL. Problem being, SQL is case-insensitive. (Yeah, technically so is CF, but I can dream.) So, while EVENTID and eventid are readable, they aren't optimal. And I use too many different SQL utilities, some that uppercase, some that lowercase. Hence, my usage of long_drawn_out_underscore. Also, I tend to have several fields in my tables of the same base name but different type. (bar_id for the UID, bar_tx for the title, bar_desc for the details) I assume it's a holdover from my OOP days with polymorphism and all that. Now, having said all that, I'm going to flip it all on its head and tell you that I don't keep that naming convention in my CF. As I said, I prefer StudlyCaps for my CF, so I always use the AS keyword to rename my fields in my SQL queries: SELECT baz_id AS BazID, baz_tx AS Baz, baz_desc AS Description FROM baz WHERE (baz_dt {d '2001-11-12'}) This makes the query variables play nicely with the non-query variables. (And, as you can see, I uppercase all of my SQL keywords to help distinguish them from the non-keywords.) There's nothing more visually jarring for me than seeing something like ThisQuery.some_bar_id in CF code. As you can see, the translation between field name and variable name isn't exact, but the rules are pretty simple: quux_id- QuuxID quux_dt- QuuxDate quux_tx- Quux quux_desc - QuuxDesc (or, if there is just one, Description) is_quux- IsQuux quux_dbl - QuuxDbl or QuuxFloat or QuuxCalc or CalcQuux db_quux_?? - {nothing: these are manipulated within SQL} I'm really just going for maximum faux/quasi-English readability here. For some reason, underscore works for me for SQL, but StudlyCaps is more readable in CF. I dunno why. That, and underscore is okay for things you only type once or twice in a SQL statement here and there in the code, but putting all those underscores in variables that you use line after line ... shudder And while I've completely gone off on a tangent, I'll just finish out my CF coding style conventions. Here are my 12 Days of CF Coding Rules (in no particular order): 1. My first tag in every page, with no exception, is: CFSETTING ENABLECFOUTPUTONLY=Yes SHOWDEBUGOUTPUT=No 2. All CF tags and keywords (IS, EQ, LT), but not variables, are always uppercased, as are HTML tags. (I started this long before XHTML lowercased everything, and I haven't switched yet.) I find it helps me distinguish the logic from the content. (I never uppercase entire words or phrases in English. Too many years on IRC.) CF function names are also in StudlyCaps. 3. CGI variables and constants are always all uppercase. (Because CGI variables are technically constants.) 4. I use This as a prefix for local variables that get overwritten a lot. ThisID, ThisName, ThisThing. 5. I use My as a prefix for module-level variables. MyAttributeThing. 6. I try to not use single-letter variables (i, j, k) except as throw-away local loop variables. Everything else is StudlyCaps and descriptive. 7. Avoid Evaluate() at all costs. Structures are bloody furiously useful. 8. The IS comparator is for strings, the EQ comparator is for numbers. 9. Never write in six lines of functions and assignments what you can do in one: Avg=ArraySum(ListToArray(ValueList(Employees.Salary)))/Employees.RecordCount 10. When in doubt, add more parenthesis. (Especially in SQL WHERE clauses.) 11. Scalar vars are singular. Array, list, and query variables are plural. ThisDate, MyDates[i]. 12. My last tag in every page is: CFSETTING ENABLECFOUTPUTONLY=No So, that's my style. There ya go. HTH. -R __ Why Share? Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: general question about security and documents
A classic approach would be to put these documents in a place that is not accessible to the public and use CFCONTENT to feed them to the (authorized) user when needed. -Original Message- From: Chris Alvarado [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 10:50 AM To: CF-Talk Subject: general question about security and documents I have an application that uses standard security through session variables etc. If a user navigates to a portion of the application where a document is attached (word, excel, etc) and they have the correct permissions then they will see a link that will allow them to view the file. this is all fairly normal however, technically if they knew the direct path to the file they could merely type in the path into their browser and in a sense bypass all of the security measures built into the application. has anyone come across this issue? I work for a company that is very concerned about security as im sure many of you do. Many of these documents contain sensitive information that should be view by authorized users. Thanks for any and all help, -chris.alvarado ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists