RE: Insert Multiple records into one table
How is your form set up to ask for multiple records? You have a page here that will insert a single record. If you need to insert multiple records you will need some kind of loop. And need I repeat: CFQUERYPARAM !! Pascal -Original Message- From: Ammar Jamal [mailto:[EMAIL PROTECTED] Sent: dinsdag 29 juni 2004 2:25 To: CF-Talk Subject: Insert Multiple records into one table hi all II really need help, I am new to CF what I am trying to do is the following: I have a table in a form and I am trying to insert multiple data in a table . I created an insert record but the problem that when I click the submit it inserts only the firs row of the table and that's it . Pls keep in mind that the number of rows is variable This is the code I have: [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Insert Multiple records into one table
dang!! do i gotta do all the work? hes not gunna know what queryparams are but i didnt have time to add them i think they just meant more than 1 fentry not records per say so u gunna add those params and post back? im busy trying to figure how to do sumptin in flash :) -- Original Message -- From: Pascal Peters [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date:Tue, 29 Jun 2004 09:02:33 +0200 How is your form set up to ask for multiple records? You have a page here that will insert a single record. If you need to insert multiple records you will need some kind of loop. And need I repeat: CFQUERYPARAM !! Pascal -Original Message- From: Ammar Jamal [mailto:[EMAIL PROTECTED] Sent: dinsdag 29 juni 2004 2:25 To: CF-Talk Subject: Insert Multiple records into one table hi all II really need help, I am new to CF what I am trying to do is the following: I have a table in a form and I am trying to insert multiple data in a table . I created an insert record but the problem that when I click the submit it inserts only the firs row of the table and that's it . Pls keep in mind that the number of rows is variable This is the code I have: [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Cheap hosting
Mark Drew wrote: I had a look at cf-developer.net... GREAT idea. fantastic! wonderful! BUT I am living now in Spain (I am a brit, work for brit companies... speak english, look like a lobster in the sun) and thus cannot sign up... so close.. yet... so far... Ah Hadn't seen that.That must be new. I know they had some hassles, but hadn't realised it had come to the point of having to restrict sign-ups to the UK only.Sorry about that Mark. Stephen [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Raymond's Blog for Bluedragon
Folks really ought to consider Spike's FriendlyURL servlet.We use it for FarCry CMS that leverages UUIDs.The results are fabulous. FriendlyURL: http://www.spike.org.uk/blog/index.cfm?section=fuservlet -- geoff http://farcry.daemon.com.au/ Raymond Camden wrote: Heh, can't help it. It was my easy way of handling PKs for multiple DBs using the simplest set of code. :) For some reason the blog has gotten lot of coverage over the last week and I've gotten a lot of good feedback on it. I'm going to try to get together a new release in the next month. Specifically I want to add support for N blogs per DSN and N authors per blog. -Ray (still trying to recover from a week on the road) Thomas Chiverton wrote: On Monday 28 Jun 2004 15:24 pm, Rick Root wrote: entry=A896645C-136D-B771-EF3FC724A19B7071 I've said it before, I'll say it again: Is that a [G|U]UID ? Eww... :-) [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Ordering Structure
The problem is this can't be done directly. You can sort on the values, but then you loose the reference to the keys. I would convert the struct to an array of structs or a 2D array and sort that. You can find UDFs to do it http://www.cflib.org/udf.cfm/ArraySort2D http://www.cflib.org/udf.cfm/ArrayOfStructsSort cfscript i = 0; aStruct = ArrayNew(2); for(key in departments){ i = i + 1; aStruct[i][1] = key; aStruct[i][2] = departments[key]; } aStruct = ArraySort2D(aStruct,2,textnocase); /cfscript cfoutput cfloop index=i from=1 to=#ArrayLen(aStruct)# #aStruct[i][1]#: #aStruct[i][2]#br/ /cfloop /cfoutput Pascal -Original Message- From: Spectrum WebDesign [mailto:[EMAIL PROTECTED] Sent: maandag 28 juni 2004 22:41 To: CF-Talk Subject: Ordering Structure Hi all how to do cfoutput in a structure but in ASC order? cfloopcollection=#departments# item=position #position#BRHR BR #StructFind(departments, position)#BR /cfloop [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Fwd: Antigen found Exceeded Internet Timeout virus
Dick Applebaum wrote: What's this? At a guess I would say someone with your email address in their Exchange address book has got themselves infected and hit someone else in their address book who works at Reed Expo with an infected email.Correctly, the mail server has quarantined the email, but annoyingly has sent you an email to let you know you have a virus that you most likely don't have. So I'm guessing, given the nature of the email subject and that both yourself and the chap at reed expo are on this list, someone on this list hasn't got anti-virus software installed on thier machine and has contracted a virus. For whoever it is : http://www.grisoft.com/us/us_dwnl_free.phpAVG Free Edition Stephen [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: JAVASCRIPT help
Keep in mind the value property of a select is not supported on all browsers. I usually consider a textbox/textarea empty if there are only spaces (I usually trim the values anyway. Also keep in mind that title and target are properties of the form. To avoid mixing up formfields and properties, I always have the formfield names in uppercase (JS is case sensitive). Finally, you can set the focus on the field that has an error to help your user fill in the form. Pascal SCRIPT LANGUAGE=_javascript_ TYPE=text/_javascript_ !-- function Validate(f){ var blank_pattern = /^\s*$/i; if(blank_pattern.test(f.TITLE.value)){ alert(Title is required); f.TITLE.select(); f.TITLE.focus(); return false; } if(blank_pattern.test(f.STORY.value)){ alert(Story is required); f.STORY.select(); f.STORY.focus(); return false; } var selectedVal = (f.TARGET.options[f.TARGET.selectedIndex].value!=); if(blank_pattern.test(f.LINK.value)selectedVal){ alert(You must provide a link if you select a target); f.LINK.select(); f.LINK.focus(); return false; } if(!blank_pattern.test(f.LINK.value)!selectedVal){ alert(You must select a target if you provide a link); f.TARGET.focus(); return false; } return true; } //-- /SCRIPT form ... Validate(this) -Original Message- From: Asim Manzur [mailto:[EMAIL PROTECTED] Sent: maandag 28 juni 2004 22:47 To: CF-Talk Subject: Re: _javascript_ help Thanks Mike, That works great. What if the user change the value of the target from to _self or _blank then I need to display the msg to put the Link as well. thanks [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Using structure - or array? don't know
I don't see very well what you are trying to do here, but you will probably need a structur (or maybe array) of structures. The error comes from the fact that in the second loop, you try to insert a key that already exists. You can just use array notation instead of structinsert if you want to avoid that. But it looks like an error in logic here. I'm willing to help you, but you will have to explain your problem clearly (what do you have, what are you trying to achieve). You can even drop me an email off list if you want. Pascal -Original Message- From: Spectrum WebDesign [mailto:[EMAIL PROTECTED] Sent: maandag 28 juni 2004 19:29 To: CF-Talk Subject: Using structure - or array? don't know Please help me with this report. I'm looking for how to store inside, may be array or structure, all the values agroupated by Depts, Atribs, Total Answers and Total Negative Answers. Using it give an error like this: Cannot insert item with key deptname. Right 'cause that structure live inside a cfoutput query. My question: how to store all values inside my structure? Or maybe array, I don't know... [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Apache and CF
On Monday 28 Jun 2004 17:21 pm, Stephen Moretti (cfmaster) wrote: Difference between IIS and Apache is that with Apache, you have to know what you're doing before you can use it, with IIS can can get it running without knowing a single thing about web servers. Ya see, that's a *good* thing :-) -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Recommended SEO Firms?
A client of mine has used http://www.designate.co.uk and I have worked with them in optimising a big application across different territories andlanguages, I rate them very well. Mention my name if you do contact them :) MD On Tue, 29 Jun 2004 09:17:51 +0930, Parker, Kevin [EMAIL PROTECTED] wrote: http://www.cdaa.com.au/services/searchengine.cfmhttp://www.cdaa.com.au +++ Kevin Parker Web Services Manager WorkCover Corporation p: 08 8233 2548 e: [EMAIL PROTECTED] w: www.workcover.com +++ -Original Message- From: Stan Winchester [mailto:[EMAIL PROTECTED] Sent: Tuesday, 29 June 2004 7:41 AM To: CF-Talk Subject: Recommended SEO Firms? Can anyone on this list recommend a quality SEO firm that can provide a list references. Thank you, Stan Winchester _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Hidden Varaibles
Hi - I know its more of a JS question than CF but I wonder if someone can help me out. In my _javascript_ function I am assigning values to the form variable. All I need is an IF statement that if the form variable is hidden variable then don't assign anything. So in short I need to find out the way in JS that if the variable is hidden form variable... Thanks Shaz ** This email and any files transmitted with it are confidential and intended solely for use by the individual or entity to whom it is addressed. If you have received this e-mail in error, kindly notify [EMAIL PROTECTED] or call +44 1992 701 704. Unless stated otherwise, please note that any views or opinions expressed in this e-mail are solely that of the author and are not necessarily of JJ Fast Food Distribution Limited. The company can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. The company accepts no liability for any damage caused by this email. JJ Fast Food Distribution Limited reserves the right to monitor and or record e-mail without prior notification. ** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Hidden Varaibles
Hi - I know its more of a JS question than CF but I wonder if someone can help me out. In my _javascript_ function I am assigning values to the form variable. All I need is an IF statement that if the form variable is hidden variable then don't assign anything. So in short I need to find out the way in JS that if the variable is hidden form variable... Thanks Shaz ** This email and any files transmitted with it are confidential and intended solely for use by the individual or entity to whom it is addressed. If you have received this e-mail in error, kindly notify [EMAIL PROTECTED] or call +44 1992 701 704. Unless stated otherwise, please note that any views or opinions expressed in this e-mail are solely that of the author and are not necessarily of JJ Fast Food Distribution Limited. The company can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. The company accepts no liability for any damage caused by this email. JJ Fast Food Distribution Limited reserves the right to monitor and or record e-mail without prior notification. ** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Hidden Varaibles
I assume you mean hidden form field instead of variable? if(!document.myform.myfield.type == hidden) { // this is not a hidden field document.myform.myfield.value = whatever; } Although this will not work correctly for radio, checkbox and select too. -Original Message- From: Shahzad.Butt [mailto:[EMAIL PROTECTED] Sent: dinsdag 29 juni 2004 10:37 To: CF-Talk Subject: Hidden Varaibles Hi - I know its more of a JS question than CF but I wonder if someone can help me out. In my _javascript_ function I am assigning values to the form variable. All I need is an IF statement that if the form variable is hidden variable then don't assign anything. So in short I need to find out the way in JS that if the variable is hidden form variable... Thanks Shaz ** This email and any files transmitted with it are confidential and intended solely for use by the individual or entity to whom it is addressed. If you have received this e-mail in error, kindly notify [EMAIL PROTECTED] or call +44 1992 701 704. Unless stated otherwise, please note that any views or opinions expressed in this e-mail are solely that of the author and are not necessarily of JJ Fast Food Distribution Limited. The company can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. The company accepts no liability for any damage caused by this email. JJ Fast Food Distribution Limited reserves the right to monitor and or record e-mail without prior notification. ** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: ROT: How does CF generated Java bytecode compare with Native Java bytecode
Dick Applebaum wrote: There were some threads a while back that indicated the Java source generated by CFMX 6.0 were inefficient (big and/or slow) compared to the same app written in native Java. I wonder how CFMX 6.1 measures up. They are incomparable. Jochem [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Hidden Varaibles
Thanks Pascal - yeah I meant hidden form field. Cheers! shaz _ From: Pascal Peters [mailto:[EMAIL PROTECTED] Sent: 29 June 2004 10:04 To: CF-Talk Subject: RE: Hidden Varaibles Error in my previous mail: if(document.myform.myfield.type != hidden) { Pascal _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Hidden Varaibles
Error in my previous mail: if(document.myform.myfield.type != hidden) { Pascal [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Hidden Varaibles
I did a quick test form name=myForm input type=hidden name=myHide input type=text name=myShow /form script theForm = document.all.myForm; if(theForm.myHide.type == hidden){ alert(the field is hidden) } /script try the form.type value HTH MD On Tue, 29 Jun 2004 09:55:59 +0100, Shahzad.Butt [EMAIL PROTECTED] wrote: Hi - I know its more of a JS question than CF but I wonder if someone can help me out. In my _javascript_ function I am assigning values to the form variable. All I need is an IF statement that if the form variable is hidden variable then don't assign anything. So in short I need to find out the way in JS that if the variable is hidden form variable... Thanks Shaz ** This email and any files transmitted with it are confidential and intended solely for use by the individual or entity to whom it is addressed. If you have received this e-mail in error, kindly notify [EMAIL PROTECTED] or call +44 1992 701 704. Unless stated otherwise, please note that any views or opinions expressed in this e-mail are solely that of the author and are not necessarily of JJ Fast Food Distribution Limited. The company can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. The company accepts no liability for any damage caused by this email. JJ Fast Food Distribution Limited reserves the right to monitor and or record e-mail without prior notification. ** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: How does CF generated Java bytecode compare with Native Java bytecode
On Tuesday 29 Jun 2004 04:12 am, Barney Boisvert wrote: is simple.I'd love to implement a controller and backend in CFCs, write the UI in flash, and away you go.Hell of a lot faster than Swing or AWT, even with a good tool to help you do the GUI. You can do that already, invoking CFC-based web services from Flash, can't you ? -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
SOT: Multiple page pdf files from single page template and fdf file.
I have a small problem here I am hoping someone can help me with. I need to create multiple page pdf files but from a single page form.I cant simply create a multiple page form because the number of pages will vary from 1 or 2 right up to 300 or so depending on the results of a database query. Does anyone know if the fdf file format I am using to populate the pdf form can tell Acrobat to create a new page the same layout and fields as the previous one. I know I am possibly not making myself very clear but I think those of you who know the answer will understand the question ;-) -- James Smith [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Verity Trouble
I install CFMX 6.1 on a fresh install of ms server 2003. the problem is verity doesn't seem to be working. When I to the Verity Collections page I get the following message -- You must configure your application server to enable Verity. For instructions, see Installing and Using ColdFusion MX. -- Suffice to say I really can't find anything in that sec. of the docs that is of any help Any suggestion? Thanks in advance Doug Kronenberger [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: How does CF generated Java bytecode compare with Native Java ytecode
It is slow compared to what and by how much? -Original Message- From:Barney Boisvert Date:6/28/04 8:12 pm To:CF-Talk Subj:RE: How does CF generated Java bytecode compare with Native Java bytecode heresyIf you want a fast application server, don't use CF, picksomething else./heresy [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
Dick, How about a Web Start app. Simple swing/awt/swt frame with a textarea that will handle the html from CF and you are golden, I think. How about a J2ME application? Anything that can produce the appropriate Java events can be used. It need not have a UI attached. Ben, Please correct me if I am wrong. Doug Dick Applebaum wrote: Ben I'll go re-checkout Central. But what I meant was CF/Flash on the desktop -- seems like CFMX/Java can do a lot of apps. But Swing is not all that rich an interface (and as Barney pointed out a PITA to implement) What I am hoping/asking is: With Blackstone can I write a CFMX/Java* app that runs on the Desktop (no browser, no web server) and use procedural Flash (ala Flex) to create a UI? * not writing a Photoshop, Word, or Excel -- just a custom App. TIA Dick On Jun 28, 2004, at 8:12 PM, Ben Forta wrote: Flash applications that run on the desktop instead of in a web browser? That's Macromedia Central. _ From: Matt Woodward [mailto:[EMAIL PROTECTED] Sent: Monday, June 28, 2004 11:11 PM To: CF-Talk Subject: Re: Blackstone @ CF-FUN '04 On Jun 28, 2004, at 6:58 PM, Rick Root wrote: Oops! Spoke too soon -- I was originally talking about non-browser-based GUIs. Is there a standalone Flash UI. Maybe there should be??? RDIAs? Rich Desktop Interface Applications You never know--something like this might be in the works.I've heard rumblings at least ... _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
Sure you can use Central to run Flash on the desktop, but you could also just use the Flash Player. I actually have some flash games downloaded to my desktop and they are associated to the flash player so it doesn't even launch a browser. Of course, Flash doesn't have the capability (I don't think) to make socket connections.But maybe it will in the future. - Rick [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
User defined templating
About 4 years, I wrote a publishing tool allowing neighborhoods and the like to easily publish and maintain their own web sites... totally web-based admin.The only HTML needed was in the template design. I wanted the users to be able to design their own templates, but with dynamic elements... ie, some things only appear if the user is logged in, and the ability to generate a dynamic list of custom pages, control of things appearing based on whether or not they are disabled in the administration, etc... So I developed my own little template markup language, and wrote some cold fusion code to parse the templates and generate the HTML on the fly. The details of these special markup tags are here: http://www.clicksitecommunities.com/index.cfm?PAGE_ID=8 the template parser is not complicated, it's just a bunch of find and replaces, really, I'm not even using any regular expressions (I bet I could simplify the code dramatically if I did) My question:How are other people doing this kind of thing? I've got another application that I'm building where I'd like to allow people to custom design templates with similarly dynamic content, and I suspect that this solution, while it obviously works, may not be the best. - Rick [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Security with CFCs
My current thinking is that there are many functions specific to application security - things like authenticating, adding/editing/removing groups, etc. I've started putting them into a DP_Security.cfc which will be loaded as a property of the DP_Application.cfc (I could have put them inside it, but it was already getting a little long). This isn't a bad way to do things depending on your particular situation.If you have to do things like checking roles and other security-related stuff pretty frequently, using a single CFC for all that functionality might fit the bill.Particularly if you're doing something like putting a user CFC in your session, having another CFC that contains all your security related methods and having that interact with the user CFC in your session can work quite well.Since you said you didn't want to get too deep into design patterns, etc. I'll leave out the discussion of how you'd probably *really* want to do the interaction between the security CFC and the session user CFC ... If a populated user's component means you've logged in, what should indicate no log in?An empty component?A component that hasn't been inited or no users component at all? There are any number of ways to handle this.In a recent project I used a session facade pattern for my user, and in essence this does end up creating an empty user object in the session scope if you check something like user.getEmail() and there is no object present.Depending on how you implement things you might have to do an IsDefined() on your user CFC *and* check for the existence of data like a user's role id or whatever. Should the security system, when authenticating, return the user object or just the UserKey and let the user object populate itself? There are numerous design patterns to help with all of this as well, but basically if you're talking about the log in process itself, what I would do it check for a valid login, get data back about that user, populate your user object, and put that in your session.Personally I'd have the security CFC (or however you implement this) either return a populated user object to the caller or just handle all the steps above itself. In the end I want to easily say isLoggedIn() or isAdmin() or isEntitled() - preferably from the session-based user component.But at the same time it seems odd to me that a single set of DB tables has multiple components operating on them. You might need to elaborate on this a bit.If by from the session-based user component you literally mean that the user CFC would have methods in it like isEntitled(), I wouldn't do that.I'd have my security CFC interact with the session user object (preferably via a facacde).In my mind the user CFC should just have information about the user, and you would do authentication, etc. via another CFC whose only job is to do those sorts of things. Hope that helps--feel free to follow up with me on any of this.I'm always very glad to see people using CFCs and OO more! Matt [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
No, I am serious ... Dave Watts pointed out that If all you have is a hammer, everything looks like a nail Just because it can be done, doesnt mean it should be done. Trying to build desktop applications in coldFusion is a bad idea. It is a server language, thats its design. There are much more better suited languages out there for developing desktop apps. Besides I pitty your end user if you are developing desktop applications that use a browser for the presentation. -Adam [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
Flash supports XML sockets throught its XMLSocket object. :) -joe - Original Message - From: Rick Root [EMAIL PROTECTED] Date: Tue, 29 Jun 2004 08:19:22 -0400 Subject: Re: Blackstone @ CF-FUN '04 To: CF-Talk [EMAIL PROTECTED] Sure you can use Central to run Flash on the desktop, but you could also just use the Flash Player. I actually have some flash games downloaded to my desktop and they are associated to the flash player so it doesn't even launch a browser. Of course, Flash doesn't have the capability (I don't think) to make socket connections.But maybe it will in the future. - Rick [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Blackstone @ CF-FUN '04
microsoft crm is a browser based application, that ROCKS.very well done, and its .NET. now, with the advent of whats happening, what separates cfBlackstone from .NET.im sure there are myriad subtle differences, however, at the baseline. why not? tw -Original Message- From: Adrocknaphobia [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 8:45 AM To: CF-Talk Subject: Re: Blackstone @ CF-FUN '04 No, I am serious ... Dave Watts pointed out that If all you have is a hammer, everything looks like a nail Just because it can be done, doesnt mean it should be done. Trying to build desktop applications in coldFusion is a bad idea. It is a server language, thats its design. There are much more better suited languages out there for developing desktop apps. Besides I pitty your end user if you are developing desktop applications that use a browser for the presentation. -Adam [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Blackstone @ CF-FUN '04
for me the problem with Flash is the lack of connectivity to a database. Yes, I know you can connect viaa webservice; however it would be nice if it could interface with an offline database.I have been tempted several times to learn flash, but everytime I think about the lack of database support, I look the other way. I know that it is very nice to think that all computers have internet connectivity; unfortunately that's not the case for me. -- Percy _ From: Joe Rinehart [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 8:46 AM To: CF-Talk Subject: Re: Blackstone @ CF-FUN '04 Flash supports XML sockets throught its XMLSocket object. :) -joe - Original Message - From: Rick Root [EMAIL PROTECTED] Date: Tue, 29 Jun 2004 08:19:22 -0400 Subject: Re: Blackstone @ CF-FUN '04 To: CF-Talk [EMAIL PROTECTED] Sure you can use Central to run Flash on the desktop, but you could also just use the Flash Player. I actually have some flash games downloaded to my desktop and they are associated to the flash player so it doesn't even launch a browser. Of course, Flash doesn't have the capability (I don't think) to make socket connections.But maybe it will in the future. - Rick _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Blackstone @ CF-FUN '04
Ben Forta [EMAIL PROTECTED] 06/28/2004 11:12 PM Please respond to cf-talk To:CF-Talk [EMAIL PROTECTED] cc: Subject:RE: Blackstone @ CF-FUN '04 Flash applications that run on the desktop instead of in a web browser? That's Macromedia Central. -- ** cough cough ** (must be contagious) -- how about a little Macromedia product called Director! :) -- (plays real nice on the desktop, supports nearly everything flash, has XML, ODBC support, and the list goes on.) --mike _ From: Matt Woodward [mailto:[EMAIL PROTECTED] Sent: Monday, June 28, 2004 11:11 PM To: CF-Talk Subject: Re: Blackstone @ CF-FUN '04 On Jun 28, 2004, at 6:58 PM, Rick Root wrote: Oops! Spoke too soon -- I was originally talking about non-browser-based GUIs. Is there a standalone Flash UI. Maybe there should be??? RDIAs? Rich Desktop Interface Applications You never know--something like this might be in the works.I've heard rumblings at least ... _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
Joe Rinehart wrote: Flash supports XML sockets throught its XMLSocket object. :) Neat, I wasn't aware of that! So, you could write a true chat server using flash and CFML under Blackstone that doesn't require constant repeating connections every second or every few seconds.. with the socket open, Flash could send data only when necessary, and receive data from CF only when there is new data to be received. Using current technology, you could only do this with flash making a request every second or every few seconds to the web server, and that would probably suck up a lot of bandwidth (I've seen flash chat rooms that do this with ASP... - Rick [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
OT: Advice on Max number of files in a dir.
Hi all, I am using CFCONTENT to retrieve photos stored off of the root directory. I didn't think the site would grow so fast, and I have been allowing users to upload all of the images to one folder. I am now at about 6000 images and am woried about performance issues both with CFCONTENT and Win2k. What is the maximum number of files allowable in a Win2k directory? 10,000? Any info appreciated. JM [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: OT: Advice on Max number of files in a dir.
Well, We have a directory with 55,000 images (don't ask) and these are huge images (about 8-20 MB each). But instead of using cfcontent to serve the images, we use an image server. We haven't noticed any performance issues. George [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Advice on Max number of files in a dir.
I am using CFCONTENT to retrieve photos stored off of the root directory. I didn't think the site would grow so fast, and I have been allowing users to upload all of the images to one folder. I am now at about 6000 images and am woried about performance issues both with CFCONTENT and Win2k. I would recommend that you reorganize your files using some easily understood directory scheme. For example, you might create year and month directories. What is the maximum number of files allowable in a Win2k directory? 10,000? To the best of my knowledge, there's no specific limit on a single directory. There is a limit on how many files can be within a single volume. For Windows Server 2003, that's 4,294,967,295 files. I'm pretty sure that's the same in Windows 2000 - I don't think NTFS has changed between versions. http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/deploy guide/en-us/Default.asp?url=""> ployguide/en-us/sdccc_fsv_duel.asp However, you will find that lots of operations get slower when you have lots of files within a single directory. I ran into performance problems on my laptop with 50,000 files in a directory. Some operations were still quite fast - locating a specific file by name within a program using CFINCLUDE, for example - while anything involving the Windows GUI was intolerably slow. Browsing the directory via the command line was also pretty slow. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Blackstone @ CF-FUN '04
So, you could write a true chat server using flash and CFML under Blackstone that doesn't require constant repeating connections every second or every few seconds.. with the socket open, Flash could send data only when necessary, and receive data from CF only when there is new data to be received. Using current technology, you could only do this with flash making a request every second or every few seconds to the web server, and that would probably suck up a lot of bandwidth (I've seen flash chat rooms that do this with ASP... The Flash Communication Server is available now, and it allows asynchronous communication between a Flash client and your server. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
first time array
This is the first time I've tried to use an array and I have a very basic question... how do you get the array contents to display !? this must be something silly I'm not doing I have one form template that sends 4 form field entries to a processing template.The processing template looks as follows (I'm not exactly sure the cfsets are right but it doesn't throw an error but nor does it output anything either): cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[ArrayLen(cassettes_Array)+1][1]=#form.issue# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][2]=#form.title# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][3]=#form.date1# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][4]=#form.publication# cfoutput cfloop from=1 to=#ArrayLen(cassettes_Array)# index=i #cassettes_Array[i]#br /cfloop /cfoutput TIA Tim [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: How does CF generated Java bytecode compare with Native Java bytecode
I believe there are areas where CFMX CFML could improve to be closer to Java. 1. Optional Primitive Data Types (int, long, String, boolen etc) 2. Optional Strongly typed language (int a != int A) 3. Improve the Collection Framework Availability. I think the above Optional features when turned on would help translate CFMX CFML closer to Java Contructs. Joe Eugene - Original Message - From: Dick Applebaum To: CF-Talk Sent: Monday, June 28, 2004 9:16 PM Subject: Re: How does CF generated Java bytecode compare with Native Java bytecode OK, I think I agree that a machine transformation (sift) of one programming language (architecture) into another will likely be inefficient.I've seen enough of these (sift programs) in my computer experience that I understand their limitations.But I also understand their advantages -- often the quickest, least manpower intensive way to get from A to B. Often what you save in manpower, you can spend a small fraction on additional hardware and have a wash. I know it isn't elegant, but it is practical -- and sometimes the only way. I guess, the question is is it (CFMX Java) good (efficient) enough? There may be a lot of other contributing factors: -- The longer learning time or ramp-up for native Java applications. -- the availability/unavailability of competent Java programmers -- the life of an application -- the maintainability of the code by others. -- selfishly, my ability in CF vs Java These are very subjective considerations -- All things considered, can I create a reasonable Java program (mainly) in CF. Stated another way, could CF be a RADD Java development language for the rest of us? Isn't that the main reason that IBM is remarketing CFMX? Dick On Jun 28, 2004, at 5:12 PM, Barney Boisvert wrote: It'll definitely be much worse than if you write it in Java, no question there.There's simply no way to make a machine transform one language into a second language with the same proficiency as a human writing the second language directly.CF is an amazingly high-level language, and droping it down to something as primitive as Java is an enormous task. However, before we go too far down the road, is this topic anything we should care tremendously about?Obviously we don't want to use slow software, but Macromedia knows this, and they understand that if their product offering isn't up to par performance-wise, no one will buy it (JSP, .NET, PHP, etc. are waiting for us).We as CF developers have an interest, but we can't do anything about MM's CF engine either way, so why even care? heresyIf you want a fast application server, don't use CF, pick something else./heresyYou'll have to deal with DB connections directly, roll your own mailing scripts, and whatever else, but that's the tradeoff for performance.Personally, I'm very happy making that trade. Of course, I'd be quite interested in a discussion about how the CF engine works, but not in a performance sense, but rather a lets find out how it works sense. Cheers, barneyb -Original Message- From: Dick Applebaum [mailto:[EMAIL PROTECTED] Sent: Monday, June 28, 2004 4:56 PM To: CF-Talk Subject: ROT: How does CF generated Java bytecode compare with Native Java bytecode There were some threads a while back that indicated the Java source generated by CFMX 6.0 were inefficient (big and/or slow) compared to the same app written in native Java. I wonder how CFMX 6.1 measures up. To narrow the comparison (a little) lets assume that there are valid CFMX best practices, and that the CF programmer is above average, and follows the best practices where warranted. Anyone have any thoughts or experiences? TIA Dick [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Advice on Max number of files in a dir.
I would recommend that you reorganize your files using some easily understood directory scheme. For example, you might create year and month directories. Yep, subsequent projects used a directory scheme based on filenames (which themselves have a naming system). We decided on 100 files per directory, since we also have an app that dumps the entire directory content to the browser. Using an image server, the 100 images take about 20-25 seconds to load up in thumbnail size on a broadband connection. Adequate! George [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: first time array
On Tuesday 29 Jun 2004 14:42 pm, Tim Laureska wrote: cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[ArrayLen(cassettes_Array)+1][1]=#form.issue# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][2]=#form.title# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][3]=#form.date1# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][4]=#form.publication# That should be cfset cassettes_Array[1]=form.issue cfset cassettes_Array[2]=form.title cfset cassettes_Array[3]=form.date1 to match your cfloop. cfdump var=#cassettes_Array# is useful for figuring out what you've just built when constructing nested structures. -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[ArrayLen(cassettes_Array)][1]=#form.issue# cfset cassettes_Array[ArrayLen(cassettes_Array)][2]=#form.title# cfset cassettes_Array[ArrayLen(cassettes_Array)][3]=#form.date1# cfset cassettes_Array[ArrayLen(cassettes_Array)][4]=#form.publication# cfoutput cfloop from=1 to=#ArrayLen(cassettes_Array)# index=i Record #i#br/ cfloop from=1 to=#ArrayLen(cassettes_Array[i])# index=j #cassettes_Array[i][j]#br/ /cfloop /cfloop /cfoutput -Original Message- From: Tim Laureska [mailto:[EMAIL PROTECTED] Sent: dinsdag 29 juni 2004 15:42 To: CF-Talk Subject: first time array This is the first time I've tried to use an array and I have a very basic question... how do you get the array contents to display !? this must be something silly I'm not doing I have one form template that sends 4 form field entries to a processing template.The processing template looks as follows (I'm not exactly sure the cfsets are right but it doesn't throw an error but nor does it output anything either): cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[ArrayLen(cassettes_Array)+1][1]=#form.issue# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][2]=#form.title# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][3]=#form.date1# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][4]=#form.publication# cfoutput cfloop from=1 to=#ArrayLen(cassettes_Array)# index=i #cassettes_Array[i]#br /cfloop /cfoutput TIA Tim [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Blackstone @ CF-FUN '04
So are you playing devil's advocate or do you really believe CF would be good to use for desktop apps??:-) No, I am serious ... Dave Watts pointed out that If all you have is a hammer, everything looks like a nail Well, I have lots of nails! I think you may have misunderstood me. CF may be the hammer for nailing web applications, but if you start building desktop apps because you think it's the best way to do that, you'll be screwed. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Blackstone @ CF-FUN '04
Let me guess, no pun intended? John From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tue 6/29/2004 9:49 AM To: CF-Talk Subject: RE: Blackstone @ CF-FUN '04 So are you playing devil's advocate or do you really believe CF would be good to use for desktop apps??:-) No, I am serious ... Dave Watts pointed out that If all you have is a hammer, everything looks like a nail Well, I have lots of nails! I think you may have misunderstood me. CF may be the hammer for nailing web applications, but if you start building desktop apps because you think it's the best way to do that, you'll be screwed. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: How does CF generated Java bytecode compare with Native Java bytecode
On Tuesday 29 Jun 2004 14:40 pm, Joe Eugene wrote: 3. Improve the Collection Framework Availability. The what ? -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Blackstone @ CF-FUN '04
Dave, In your opinion, what would you advise for someone who needs to develop desktop applications? Considering that I develop primarily in ColdFusion, but need to redeploy the same applications for offline use. I originally considered Coldfusion as a viable solution because I did not want to maintain one application under 2 different languages. Percy _ From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 9:49 AM To: CF-Talk Subject: RE: Blackstone @ CF-FUN '04 So are you playing devil's advocate or do you really believe CF would be good to use for desktop apps??:-) No, I am serious ... Dave Watts pointed out that If all you have is a hammer, everything looks like a nail Well, I have lots of nails! I think you may have misunderstood me. CF may be the hammer for nailing web applications, but if you start building desktop apps because you think it's the best way to do that, you'll be screwed. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Blackstone @ CF-FUN '04
Mike, Oh yeah, that too! :-) Sorry, I guess you can see what products I work with and which I don't. --- Ben _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 8:53 AM To: CF-Talk Subject: RE: Blackstone @ CF-FUN '04 Ben Forta [EMAIL PROTECTED] 06/28/2004 11:12 PM Please respond to cf-talk To:CF-Talk [EMAIL PROTECTED] cc: Subject:RE: Blackstone @ CF-FUN '04 Flash applications that run on the desktop instead of in a web browser? That's Macromedia Central. -- ** cough cough ** (must be contagious) -- how about a little Macromedia product called Director! :) -- (plays real nice on the desktop, supports nearly everything flash, has XML, ODBC support, and the list goes on.) --mike _ From: Matt Woodward [mailto:[EMAIL PROTECTED] Sent: Monday, June 28, 2004 11:11 PM To: CF-Talk Subject: Re: Blackstone @ CF-FUN '04 On Jun 28, 2004, at 6:58 PM, Rick Root wrote: Oops! Spoke too soon -- I was originally talking about non-browser-based GUIs. Is there a standalone Flash UI. Maybe there should be??? RDIAs? Rich Desktop Interface Applications You never know--something like this might be in the works.I've heard rumblings at least ... _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Blackstone @ CF-FUN '04
You could do that already, using Flash Communications Server, that is exactly what it is designed to do, to keep an open connection between client and server so as to allow back and forth interaction (including server push). --- Ben _ From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 9:00 AM To: CF-Talk Subject: Re: Blackstone @ CF-FUN '04 Joe Rinehart wrote: Flash supports XML sockets throught its XMLSocket object. :) Neat, I wasn't aware of that! So, you could write a true chat server using flash and CFML under Blackstone that doesn't require constant repeating connections every second or every few seconds.. with the socket open, Flash could send data only when necessary, and receive data from CF only when there is new data to be received. Using current technology, you could only do this with flash making a request every second or every few seconds to the web server, and that would probably suck up a lot of bandwidth (I've seen flash chat rooms that do this with ASP... - Rick _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: first time array
Hi Tim, I'm not sure why you're using a two-dimensional array here - also, this looks like a place where a structure could simplify your life greatly.Instead of having to remember 1 = issue, 2 = title, etc., with a structure, you can just name things what they are. Maybe try something like this: cfset cassette_Structure = structNew() !--- Each of these could also be written 'cfset casette_Structure[issue]' --- cfset cassette_Structure.issue = form.issue cfset cassette_Structure.title = form.title cfset cassette_Structure.date1 = form.date1 cfset cassette_Structure.publication = form.publication cfoutput #cassette_Structure.issue#br #cassette_Structure.title#br #cassette_Structure.date1#br #cassette_Structure.publication#br /cfoutput !--- CF also provides a type of CFLOOP just for structures --- cfloop collection=#cassette_Structure# item=i cfoutput#i#: #cassette_Structure[i]#br/cfoutput /cfloop You can expand on this at will - if you need to keep track of multiple cassettes, you could create a cassette_Array where each element is, in turn, a cassette_Structure like the one created above. -Joe - Original Message - From: Tim Laureska [EMAIL PROTECTED] Date: Tue, 29 Jun 2004 09:42:21 -0400 Subject: first time array To: CF-Talk [EMAIL PROTECTED] This is the first time I've tried to use an array and I have a very basic question... how do you get the array contents to display !? this must be something silly I'm not doing I have one form template that sends 4 form field entries to a processing template.The processing template looks as follows (I'm not exactly sure the cfsets are right but it doesn't throw an error but nor does it output anything either): cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[ArrayLen(cassettes_Array)+1][1]=#form.issue# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][2]=#form.title# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][3]=#form.date1# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][4]=#form.publication# cfoutput cfloop from=1 to=#ArrayLen(cassettes_Array)# index=i #cassettes_Array[i]#br /cfloop /cfoutput TIA Tim [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
Thomas... I changed what I had to this: (but now getting the error below, which is a bit cryptic). cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[1]=form.issue cfset cassettes_Array[2]=form.title cfset cassettes_Array[3]=form.date1 cfset cassettes_Array[4]=form.publication Error Diagnostic Information An error occurred while evaluating the _expression_: cassettes_Array[1]=form.issue Error near line 11, column 22. Cannot set element of indexed object The element at position 1 of the object cannot be set. May be the object is read-only. The object has elements in positions 1 through 0. The error is in dimension 1 of object cassettes_Array. -Original Message- From: Thomas Chiverton [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 9:42 AM To: CF-Talk Subject: Re: first time array On Tuesday 29 Jun 2004 14:42 pm, Tim Laureska wrote: cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[ArrayLen(cassettes_Array)+1][1]=#form.issue# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][2]=#form.title# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][3]=#form.date1# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][4]=#form.publication# That should be cfset cassettes_Array[1]=form.issue cfset cassettes_Array[2]=form.title cfset cassettes_Array[3]=form.date1 to match your cfloop. cfdump var=#cassettes_Array# is useful for figuring out what you've just built when constructing nested structures. -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
Thanks Joe... I'm new to arrays and structures so kinda feeling my way here... I'd like to stick with an array for now so I can learn how they work, but not having much success yet -Original Message- From: Joe Rinehart [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:00 AM To: CF-Talk Subject: Re: first time array Hi Tim, I'm not sure why you're using a two-dimensional array here - also, this looks like a place where a structure could simplify your life greatly.Instead of having to remember 1 = issue, 2 = title, etc., with a structure, you can just name things what they are. Maybe try something like this: cfset cassette_Structure = structNew() !--- Each of these could also be written 'cfset casette_Structure[issue]' --- cfset cassette_Structure.issue = form.issue cfset cassette_Structure.title = form.title cfset cassette_Structure.date1 = form.date1 cfset cassette_Structure.publication = form.publication cfoutput #cassette_Structure.issue#br #cassette_Structure.title#br #cassette_Structure.date1#br #cassette_Structure.publication#br /cfoutput !--- CF also provides a type of CFLOOP just for structures --- cfloop collection=#cassette_Structure# item=i cfoutput#i#: #cassette_Structure[i]#br/cfoutput /cfloop You can expand on this at will - if you need to keep track of multiple cassettes, you could create a cassette_Array where each element is, in turn, a cassette_Structure like the one created above. -Joe - Original Message - From: Tim Laureska [EMAIL PROTECTED] Date: Tue, 29 Jun 2004 09:42:21 -0400 Subject: first time array To: CF-Talk [EMAIL PROTECTED] This is the first time I've tried to use an array and I have a very basic question... how do you get the array contents to display !? this must be something silly I'm not doing I have one form template that sends 4 form field entries to a processing template.The processing template looks as follows (I'm not exactly sure the cfsets are right but it doesn't throw an error but nor does it output anything either): cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[ArrayLen(cassettes_Array)+1][1]=#form.issue# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][2]=#form.title# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][3]=#form.date1# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][4]=#form.publication# cfoutput cfloop from=1 to=#ArrayLen(cassettes_Array)# index=i #cassettes_Array[i]#br /cfloop /cfoutput TIA Tim [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: OT: Advice on Max number of files in a dir.
There isn't a limit to the number of files you can have in a directory.The only time you will begin to notice a performance slow down is when you list the directory. Chris - Original Message - From: J M [EMAIL PROTECTED] Date: Tue, 29 Jun 2004 09:15:30 -0400 Subject: OT: Advice on Max number of files in a dir. To: CF-Talk [EMAIL PROTECTED] Hi all, I am using CFCONTENT to retrieve photos stored off of the root directory. I didn't think the site would grow so fast, and I have been allowing users to upload all of the images to one folder. I am now at about 6000 images and am woried about performance issues both with CFCONTENT and Win2k. What is the maximum number of files allowable in a Win2k directory? 10,000? Any info appreciated. JM [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
A 2D array requires 2 indexes. Change the first line to cfset cassettes_Array=ArrayNew(1) -Original Message- From: Tim Laureska [mailto:[EMAIL PROTECTED] Sent: dinsdag 29 juni 2004 16:09 To: CF-Talk Subject: RE: first time array Thomas... I changed what I had to this: (but now getting the error below, which is a bit cryptic). cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[1]=form.issue cfset cassettes_Array[2]=form.title cfset cassettes_Array[3]=form.date1 cfset cassettes_Array[4]=form.publication Error Diagnostic Information An error occurred while evaluating the _expression_: cassettes_Array[1]=form.issue Error near line 11, column 22. Cannot set element of indexed object The element at position 1 of the object cannot be set. May be the object is read-only. The object has elements in positions 1 through 0. The error is in dimension 1 of object cassettes_Array. -Original Message- From: Thomas Chiverton [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 9:42 AM To: CF-Talk Subject: Re: first time array On Tuesday 29 Jun 2004 14:42 pm, Tim Laureska wrote: cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[ArrayLen(cassettes_Array)+1][1]=#form.issue# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][2]=#form.title# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][3]=#form.date1# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][4]=#form.publication# That should be cfset cassettes_Array[1]=form.issue cfset cassettes_Array[2]=form.title cfset cassettes_Array[3]=form.date1 to match your cfloop. cfdump var=#cassettes_Array# is useful for figuring out what you've just built when constructing nested structures. -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
tim, start small, start with a1 dim array. cfset myNameArray = arrayNew(1) cfset myNameArray[1] = Tim cfset myNameArray[2] = Laureska Hello world, my name is cfoutput#myNameArray[1]# #myNameArray[2]#/cfoutput -Original Message- From: Tim Laureska [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:10 AM To: CF-Talk Subject: RE: first time array Thanks Joe... I'm new to arrays and structures so kinda feeling my way here... I'd like to stick with an array for now so I can learn how they work, but not having much success yet -Original Message- From: Joe Rinehart [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:00 AM To: CF-Talk Subject: Re: first time array Hi Tim, I'm not sure why you're using a two-dimensional array here - also, this looks like a place where a structure could simplify your life greatly.Instead of having to remember 1 = issue, 2 = title, etc., with a structure, you can just name things what they are. Maybe try something like this: cfset cassette_Structure = structNew() !--- Each of these could also be written 'cfset casette_Structure[issue]' --- cfset cassette_Structure.issue = form.issue cfset cassette_Structure.title = form.title cfset cassette_Structure.date1 = form.date1 cfset cassette_Structure.publication = form.publication cfoutput #cassette_Structure.issue#br #cassette_Structure.title#br #cassette_Structure.date1#br #cassette_Structure.publication#br /cfoutput !--- CF also provides a type of CFLOOP just for structures --- cfloop collection=#cassette_Structure# item=i cfoutput#i#: #cassette_Structure[i]#br/cfoutput /cfloop You can expand on this at will - if you need to keep track of multiple cassettes, you could create a cassette_Array where each element is, in turn, a cassette_Structure like the one created above. -Joe - Original Message - From: Tim Laureska [EMAIL PROTECTED] Date: Tue, 29 Jun 2004 09:42:21 -0400 Subject: first time array To: CF-Talk [EMAIL PROTECTED] This is the first time I've tried to use an array and I have a very basic question... how do you get the array contents to display !? this must be something silly I'm not doing I have one form template that sends 4 form field entries to a processing template.The processing template looks as follows (I'm not exactly sure the cfsets are right but it doesn't throw an error but nor does it output anything either): cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[ArrayLen(cassettes_Array)+1][1]=#form.issue# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][2]=#form.title# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][3]=#form.date1# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][4]=#form.publication# cfoutput cfloop from=1 to=#ArrayLen(cassettes_Array)# index=i #cassettes_Array[i]#br /cfloop /cfoutput TIA Tim [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
CFCHARTDATA
Hey all, I am trying to get the new CFCHART tag under my belt for future use. Is it possible to have the chartdata item labels be displayed at an angle offset to the graph or is just horizontal and vertical my only choices? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
Ben, I was at the DC WAMMO demo last night, and as soon as I left, thought of a question I meant to ask:if one of the goals of Blackstone is to simplify application development for the Dreamweaver crowd, has there been any thought to the last mile of connecting a form back to the database? You've said [sorry if I misinterpret] that there's an aim at the I just want to e-mail the form response/insert the form response into a table crowd - which I think is absolutely great.One of the most common questions I think this audience has is Ok, I've made my form in Dreamweaver, figured out this running it off the server thing, now what? Would it be terribly hard to extend the CFFORM tag to generate a self-posting form with a DATASOURCE and TABLENAME attribute that created a self-posting form that used CFINSERT/CFUPDATE-ish generation of invisible SQL to get people past the hurdle?Essential, provide some simple data binding mechanism.Combined with the automatic-pagination wizard I've seen in Dreamweaver, it could really simplify / wizardify the development of simple master/detail CRUD applications. Of course, there's probably a DW wizard out there to do it already, but if I hit alt-tab right now I got to studio :). Thanks. - Original Message - From: Ben Forta [EMAIL PROTECTED] Date: Tue, 29 Jun 2004 09:56:24 -0400 Subject: RE: Blackstone @ CF-FUN '04 To: CF-Talk [EMAIL PROTECTED] You could do that already, using Flash Communications Server, that is exactly what it is designed to do, to keep an open connection between client and server so as to allow back and forth interaction (including server push). --- Ben _ From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 9:00 AM To: CF-Talk Subject: Re: Blackstone @ CF-FUN '04 Joe Rinehart wrote: Flash supports XML sockets throught its XMLSocket object. :) Neat, I wasn't aware of that! So, you could write a true chat server using flash and CFML under Blackstone that doesn't require constant repeating connections every second or every few seconds.. with the socket open, Flash could send data only when necessary, and receive data from CF only when there is new data to be received. Using current technology, you could only do this with flash making a request every second or every few seconds to the web server, and that would probably suck up a lot of bandwidth (I've seen flash chat rooms that do this with ASP... - Rick _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: first time array
Ok.Structures can actually be a lot less to deal with. To fix the problem you just posted, change cfset cassettes_Array=ArrayNew(2) to cfset cassettes_Array=ArrayNew(1) -joe - Original Message - From: Tim Laureska [EMAIL PROTECTED] Date: Tue, 29 Jun 2004 10:10:12 -0400 Subject: RE: first time array To: CF-Talk [EMAIL PROTECTED] Thanks Joe... I'm new to arrays and structures so kinda feeling my way here... I'd like to stick with an array for now so I can learn how they work, but not having much success yet -Original Message- From: Joe Rinehart [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:00 AM To: CF-Talk Subject: Re: first time array Hi Tim, I'm not sure why you're using a two-dimensional array here - also, this looks like a place where a structure could simplify your life greatly.Instead of having to remember 1 = issue, 2 = title, etc., with a structure, you can just name things what they are. Maybe try something like this: cfset cassette_Structure = structNew() !--- Each of these could also be written 'cfset casette_Structure[issue]' --- cfset cassette_Structure.issue = form.issue cfset cassette_Structure.title = form.title cfset cassette_Structure.date1 = form.date1 cfset cassette_Structure.publication = form.publication cfoutput #cassette_Structure.issue#br #cassette_Structure.title#br #cassette_Structure.date1#br #cassette_Structure.publication#br /cfoutput !--- CF also provides a type of CFLOOP just for structures --- cfloop collection=#cassette_Structure# item=i cfoutput#i#: #cassette_Structure[i]#br/cfoutput /cfloop You can expand on this at will - if you need to keep track of multiple cassettes, you could create a cassette_Array where each element is, in turn, a cassette_Structure like the one created above. -Joe - Original Message - From: Tim Laureska [EMAIL PROTECTED] Date: Tue, 29 Jun 2004 09:42:21 -0400 Subject: first time array To: CF-Talk [EMAIL PROTECTED] This is the first time I've tried to use an array and I have a very basic question... how do you get the array contents to display !? this must be something silly I'm not doing I have one form template that sends 4 form field entries to a processing template.The processing template looks as follows (I'm not exactly sure the cfsets are right but it doesn't throw an error but nor does it output anything either): cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[ArrayLen(cassettes_Array)+1][1]=#form.issue# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][2]=#form.title# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][3]=#form.date1# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][4]=#form.publication# cfoutput cfloop from=1 to=#ArrayLen(cassettes_Array)# index=i #cassettes_Array[i]#br /cfloop /cfoutput TIA Tim [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
tim, then there is this GREAT thing called a structure, play with this one... cfset me = structNew() cfset me.myFirstName = Tim cfset me.myLastName = Laureska cfset me.myCity = Da' Bridge P cfdump var=#me# P Hello world, my name is cfoutput#me.myFirstName# #me.myLastName# and i live in #me.myCity#/cfoutput -Original Message- From: Pascal Peters [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:06 AM To: CF-Talk Subject: RE: first time array A 2D array requires 2 indexes. Change the first line to cfset cassettes_Array=ArrayNew(1) -Original Message- From: Tim Laureska [mailto:[EMAIL PROTECTED] Sent: dinsdag 29 juni 2004 16:09 To: CF-Talk Subject: RE: first time array Thomas... I changed what I had to this: (but now getting the error below, which is a bit cryptic). cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[1]=form.issue cfset cassettes_Array[2]=form.title cfset cassettes_Array[3]=form.date1 cfset cassettes_Array[4]=form.publication Error Diagnostic Information An error occurred while evaluating the _expression_: cassettes_Array[1]=form.issue Error near line 11, column 22. Cannot set element of indexed object The element at position 1 of the object cannot be set. May be the object is read-only. The object has elements in positions 1 through 0. The error is in dimension 1 of object cassettes_Array. -Original Message- From: Thomas Chiverton [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 9:42 AM To: CF-Talk Subject: Re: first time array On Tuesday 29 Jun 2004 14:42 pm, Tim Laureska wrote: cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[ArrayLen(cassettes_Array)+1][1]=#form.issue# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][2]=#form.title# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][3]=#form.date1# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][4]=#form.publication# That should be cfset cassettes_Array[1]=form.issue cfset cassettes_Array[2]=form.title cfset cassettes_Array[3]=form.date1 to match your cfloop. cfdump var=#cassettes_Array# is useful for figuring out what you've just built when constructing nested structures. -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
regex in studio/dreamweaver
Okay, I've tried a million variations of this regex in studio, and none of them work. All I want to do is dump all the stupid left-over word html spans So that stuff like this: span style='font-size:8.0pt;'Activity/span Becomes this: Activity I've tried: span.*(.*)/span In studio I get a bad _expression_ error. In Dreamweaver, it finds some stuff, but doesn't find anything with funky white space. So, I tried span.*([.\s\r\n\t]*)/span Which I _think_ says: find the literal text span followed by any number of additional characters followed by the literal followed by any number of charaters, spaces, carriage returns, line feeds or tabs (and remember this chunk) followed by the literal text /span But, it doesn't find anything, even though there are hundreds like this: span style='font-size:8.0pt;'Selecting key child development topics to teach others/span What am I missing? (I so suck at regex.) -- Deanna Schneider UWEX-Cooperative Extension Interactive Media Developer [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: OT: Advice on Max number of files in a dir.
What type of image server? sounds interesting... On Tue, 29 Jun 2004 09:25:13 -0400, George Abraham [EMAIL PROTECTED] wrote: Well, We have a directory with 55,000 images (don't ask) and these are huge images (about 8-20 MB each). But instead of using cfcontent to serve the images, we use an image server. We haven't noticed any performance issues. George [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
Pascal... your suggestion worked but I thought the # of dimensions was set in thr last parenthesis... so why isn't cfset cassettes_Array=ArrayNew(2) correct? -Original Message- From: Pascal Peters [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:06 AM To: CF-Talk Subject: RE: first time array A 2D array requires 2 indexes. Change the first line to cfset cassettes_Array=ArrayNew(1) -Original Message- From: Tim Laureska [mailto:[EMAIL PROTECTED] Sent: dinsdag 29 juni 2004 16:09 To: CF-Talk Subject: RE: first time array Thomas... I changed what I had to this: (but now getting the error below, which is a bit cryptic). cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[1]=form.issue cfset cassettes_Array[2]=form.title cfset cassettes_Array[3]=form.date1 cfset cassettes_Array[4]=form.publication Error Diagnostic Information An error occurred while evaluating the _expression_: cassettes_Array[1]=form.issue Error near line 11, column 22. Cannot set element of indexed object The element at position 1 of the object cannot be set. May be the object is read-only. The object has elements in positions 1 through 0. The error is in dimension 1 of object cassettes_Array. -Original Message- From: Thomas Chiverton [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 9:42 AM To: CF-Talk Subject: Re: first time array On Tuesday 29 Jun 2004 14:42 pm, Tim Laureska wrote: cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[ArrayLen(cassettes_Array)+1][1]=#form.issue# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][2]=#form.title# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][3]=#form.date1# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][4]=#form.publication# That should be cfset cassettes_Array[1]=form.issue cfset cassettes_Array[2]=form.title cfset cassettes_Array[3]=form.date1 to match your cfloop. cfdump var=#cassettes_Array# is useful for figuring out what you've just built when constructing nested structures. -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
CFGRAPH issues?
I am re-deploying a CF based app that was written in CF in 2001, which extensively uses KavaChart for graphs of emissions from a trash burning plant.The charts do not get that complicated, usually just bar and line graphs as a value extended over time. My question is, in past (5.0) versions of CF, I heard through the grapevine that there were a LOT of problems with CFCHART/CFGRAPH.I don't remember or know what they were, so I just wanted to know if the MX version has fixed these problems or not.If not, what do others use for their graphing solutions?Price is somewhat not an issue, this company has money budgeted. Advice? Thanks, Ray http://www.crystalvision.org = Ray Champagne - Senior Application Developer CrystalVision Web Site Design and Internet Services 603.433.9559 www.crystalvision.org = The information contained in this transmission (including any attached files) is CONFIDENTIAL and is intended only for the person(s) named above. If you received this transmission in error, please delete it from your system and notify us immediately. If you are not an intended recipient, please note that any use or dissemination of the information contained in this transmission (including any attached files) and the copying, printing, or retransmission of that information is strictly prohibited. You can notify us by return email or by phone at 603.433.9559. Thank you. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: regex in studio/dreamweaver
If I were just trying to remove all beginning and end span tags, I'd use something like /?span[^]* and replace it with the empty string. Not tested, I've barely started the caffeiene, YMMV.:-) --Ben Deanna Schneider wrote: Okay, I've tried a million variations of this regex in studio, and none of them work. All I want to do is dump all the stupid left-over word html spans So that stuff like this: span style='font-size:8.0pt;'Activity/span Becomes this: Activity I've tried: span.*(.*)/span In studio I get a bad _expression_ error. In Dreamweaver, it finds some stuff, but doesn't find anything with funky white space. So, I tried span.*([.\s\r\n\t]*)/span Which I _think_ says: find the literal text span followed by any number of additional characters followed by the literal followed by any number of charaters, spaces, carriage returns, line feeds or tabs (and remember this chunk) followed by the literal text /span But, it doesn't find anything, even though there are hundreds like this: span style='font-size:8.0pt;'Selecting key child development topics to teach others/span What am I missing? (I so suck at regex.) -- Deanna Schneider UWEX-Cooperative Extension Interactive Media Developer [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
Tony... why are structures a better way to go than than arrays -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:08 AM To: CF-Talk Subject: RE: first time array tim, then there is this GREAT thing called a structure, play with this one... cfset me = structNew() cfset me.myFirstName = Tim cfset me.myLastName = Laureska cfset me.myCity = Da' Bridge P cfdump var=#me# P Hello world, my name is cfoutput#me.myFirstName# #me.myLastName# and i live in #me.myCity#/cfoutput -Original Message- From: Pascal Peters [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:06 AM To: CF-Talk Subject: RE: first time array A 2D array requires 2 indexes. Change the first line to cfset cassettes_Array=ArrayNew(1) -Original Message- From: Tim Laureska [mailto:[EMAIL PROTECTED] Sent: dinsdag 29 juni 2004 16:09 To: CF-Talk Subject: RE: first time array Thomas... I changed what I had to this: (but now getting the error below, which is a bit cryptic). cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[1]=form.issue cfset cassettes_Array[2]=form.title cfset cassettes_Array[3]=form.date1 cfset cassettes_Array[4]=form.publication Error Diagnostic Information An error occurred while evaluating the _expression_: cassettes_Array[1]=form.issue Error near line 11, column 22. Cannot set element of indexed object The element at position 1 of the object cannot be set. May be the object is read-only. The object has elements in positions 1 through 0. The error is in dimension 1 of object cassettes_Array. -Original Message- From: Thomas Chiverton [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 9:42 AM To: CF-Talk Subject: Re: first time array On Tuesday 29 Jun 2004 14:42 pm, Tim Laureska wrote: cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[ArrayLen(cassettes_Array)+1][1]=#form.issue# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][2]=#form.title# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][3]=#form.date1# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][4]=#form.publication# That should be cfset cassettes_Array[1]=form.issue cfset cassettes_Array[2]=form.title cfset cassettes_Array[3]=form.date1 to match your cfloop. cfdump var=#cassettes_Array# is useful for figuring out what you've just built when constructing nested structures. -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: How does CF generated Java bytecode compare with Native Java bytecode
heresyIf you want a fast application server, don't use CF, pick something else./heresyYou'll have to deal with DB connections directly, roll your own mailing scripts, and whatever else, but that's the tradeoff for performance.Personally, I'm very happy making that trade. Unfortunately, the common issues with web application performance rarely have anything to do with the speed of the language used to write the application, in my experience. If you're really concerned about speed, figure out how you can cache more, and how you can improve database access. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
Tony... why are structures a better way to go than than arrays .. or is it just situation dependent? -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:08 AM To: CF-Talk Subject: RE: first time array tim, then there is this GREAT thing called a structure, play with this one... cfset me = structNew() cfset me.myFirstName = Tim cfset me.myLastName = Laureska cfset me.myCity = Da' Bridge P cfdump var=#me# P Hello world, my name is cfoutput#me.myFirstName# #me.myLastName# and i live in #me.myCity#/cfoutput -Original Message- From: Pascal Peters [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:06 AM To: CF-Talk Subject: RE: first time array A 2D array requires 2 indexes. Change the first line to cfset cassettes_Array=ArrayNew(1) -Original Message- From: Tim Laureska [mailto:[EMAIL PROTECTED] Sent: dinsdag 29 juni 2004 16:09 To: CF-Talk Subject: RE: first time array Thomas... I changed what I had to this: (but now getting the error below, which is a bit cryptic). cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[1]=form.issue cfset cassettes_Array[2]=form.title cfset cassettes_Array[3]=form.date1 cfset cassettes_Array[4]=form.publication Error Diagnostic Information An error occurred while evaluating the _expression_: cassettes_Array[1]=form.issue Error near line 11, column 22. Cannot set element of indexed object The element at position 1 of the object cannot be set. May be the object is read-only. The object has elements in positions 1 through 0. The error is in dimension 1 of object cassettes_Array. -Original Message- From: Thomas Chiverton [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 9:42 AM To: CF-Talk Subject: Re: first time array On Tuesday 29 Jun 2004 14:42 pm, Tim Laureska wrote: cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[ArrayLen(cassettes_Array)+1][1]=#form.issue# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][2]=#form.title# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][3]=#form.date1# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][4]=#form.publication# That should be cfset cassettes_Array[1]=form.issue cfset cassettes_Array[2]=form.title cfset cassettes_Array[3]=form.date1 to match your cfloop. cfdump var=#cassettes_Array# is useful for figuring out what you've just built when constructing nested structures. -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
DSNless Connection
Can you do this in CFMX 6.1? The EasyCFM Site shows it for CF5. Rick Eidson Partner CTO ArcRiver Technology, LLC ASP, PHP, PERL, Cold Fusion Hosting Kansas City http://www.arcriver.com/ http://www.arcriver.com/ Kansas City Musicians http://www.1sourceentertainment.com/ http://www.1sourceentertainment.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
heh. I new that was coming better...for me? named keys vs. numbered keys (easier to decipher) you can nest arrays in structures, so you can have an structure of arrays two off the top of my head... others...im sure there will be some chimers... tw -Original Message- From: Tim Laureska [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:35 AM To: CF-Talk Subject: RE: first time array Tony... why are structures a better way to go than than arrays -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:08 AM To: CF-Talk Subject: RE: first time array tim, then there is this GREAT thing called a structure, play with this one... cfset me = structNew() cfset me.myFirstName = Tim cfset me.myLastName = Laureska cfset me.myCity = Da' Bridge P cfdump var=#me# P Hello world, my name is cfoutput#me.myFirstName# #me.myLastName# and i live in #me.myCity#/cfoutput -Original Message- From: Pascal Peters [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:06 AM To: CF-Talk Subject: RE: first time array A 2D array requires 2 indexes. Change the first line to cfset cassettes_Array=ArrayNew(1) -Original Message- From: Tim Laureska [mailto:[EMAIL PROTECTED] Sent: dinsdag 29 juni 2004 16:09 To: CF-Talk Subject: RE: first time array Thomas... I changed what I had to this: (but now getting the error below, which is a bit cryptic). cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[1]=form.issue cfset cassettes_Array[2]=form.title cfset cassettes_Array[3]=form.date1 cfset cassettes_Array[4]=form.publication Error Diagnostic Information An error occurred while evaluating the _expression_: cassettes_Array[1]=form.issue Error near line 11, column 22. Cannot set element of indexed object The element at position 1 of the object cannot be set. May be the object is read-only. The object has elements in positions 1 through 0. The error is in dimension 1 of object cassettes_Array. -Original Message- From: Thomas Chiverton [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 9:42 AM To: CF-Talk Subject: Re: first time array On Tuesday 29 Jun 2004 14:42 pm, Tim Laureska wrote: cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[ArrayLen(cassettes_Array)+1][1]=#form.issue# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][2]=#form.title# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][3]=#form.date1# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][4]=#form.publication# That should be cfset cassettes_Array[1]=form.issue cfset cassettes_Array[2]=form.title cfset cassettes_Array[3]=form.date1 to match your cfloop. cfdump var=#cassettes_Array# is useful for figuring out what you've just built when constructing nested structures. -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: How does CF generated Java bytecode compare with Native Java bytecode
I totally agree on #1 but not limit to primitives.I believe you should be able to create strongly typed (your use of the word typed in #2 is not correct) variables that map exactly to java instances of any java class.Of course there are issues with passing these around and storing in different scopes, so I would vote for having this available only for var scope variables inside functions. There are two reasons for this.First, if you decompile the genreated class files in 6.1 (or even in 6.0) you'll see that CF jumps through a lot of code to retrieve a variable from the scope, auto-scalarize it, and often cast it using special cf-specific casting functions every time a variable is referenced.All this would be removed if we could directly use java variables.Second, all use of java variables in CF goes through the reflection layer and is therefore significantly slower than corresponding code written directly in Java or in a JSP.Direct access to Java variables would remove the reflection requirement. Case sensitivity (your #2) would not benefit the language in any way in my opinion.Not sure about the collection availability--if we have java variables, then we have java collections, so it's really a part of #1. Sam -- Blog:http://www.rewindlife.com Chart: http://www.blinex.com/products/charting -- -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 9:41 AM To: CF-Talk Subject: Re: How does CF generated Java bytecode compare with Native Java bytecode I believe there are areas where CFMX CFML could improve to be closer to Java. 1. Optional Primitive Data Types (int, long, String, boolen etc) 2. Optional Strongly typed language (int a != int A) 3. Improve the Collection Framework Availability. I think the above Optional features when turned on would help translate CFMX CFML closer to Java Contructs. Joe Eugene [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: OT: Advice on Max number of files in a dir.
Thanks for the advice... JW Hi all, I am using CFCONTENT to retrieve photos stored off of the root directory. I didn't think the site would grow so fast, and I have been allowing users to upload all of the images to one folder. I am now at about 6000 images and am woried about performance issues both with CFCONTENT and Win2k. What is the maximum number of files allowable in a Win2k directory? 10, 000? Any info appreciated. JM [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
I keep getting a message about the number of message lines being too much (over 100)... is this a new CF talk list thing? -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:08 AM To: CF-Talk Subject: RE: first time array tim, then there is this GREAT thing called a structure, play with this one... cfset me = structNew() cfset me.myFirstName = Tim cfset me.myLastName = Laureska cfset me.myCity = Da' Bridge P cfdump var=#me# P Hello world, my name is cfoutput#me.myFirstName# #me.myLastName# and i live in #me.myCity#/cfoutput [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
meee tooo? whats this message tw -Original Message- From: Tim Laureska [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:47 AM To: CF-Talk Subject: RE: first time array I keep getting a message about the number of message lines being too much (over 100)... is this a new CF talk list thing? -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:08 AM To: CF-Talk Subject: RE: first time array tim, then there is this GREAT thing called a structure, play with this one... cfset me = structNew() cfset me.myFirstName = Tim cfset me.myLastName = Laureska cfset me.myCity = Da' Bridge P cfdump var=#me# P Hello world, my name is cfoutput#me.myFirstName# #me.myLastName# and i live in #me.myCity#/cfoutput [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
Tony... why are structures a better way to go than than arrays While I'm not Tony, I wouldn't say that structures are better than arrays or vice-versa. They're different, and which is best for you at a specific time depends on what you're trying to accomplish. If you're trying to describe the attributes of a single thing, a structure usually makes more sense. If, on the other hand, you're trying to describe a bunch of items together, an array usually makes more sense. If you want to describe the attributes of each item within an array, you can create an array of structures. !--- structure example --- cfset mydog = StructNew() cfset mydog.name = Fido cfset mydog.breed = Chihuahua ... !--- array example --- cfset mycart = ArrayNew(1) cfset mycart[1] = bread cfset mycart[2] = milk ... !--- array of structures example --- cfset mycart = ArrayNew(1) cfset mycart[1] = StructNew() cfset mycart[1].name = bread cfset mycart[1].price = 2.5 cfset mycart[2] = StructNew() cfset mycart[2].name = milk cfset mycart[2].price = 2.25 ... Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Blackstone @ CF-FUN '04
Flash can connect to a local database when embedded in a 3rd-party projector extension like Screenweaver, a Director wrapper, or a custom C++/.NET/VB/whatever wrapper. Sam -- Blog:http://www.rewindlife.com Chart: http://www.blinex.com/products/charting -- -Original Message- From: Perez, Percy [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 8:54 AM To: CF-Talk Subject: RE: Blackstone @ CF-FUN '04 for me the problem with Flash is the lack of connectivity to a database. Yes, I know you can connect viaa webservice; however it would be nice if it could interface with an offline database.I have been tempted several times to learn flash, but everytime I think about the lack of database support, I look the other way. I know that it is very nice to think that all computers have internet connectivity; unfortunately that's not the case for me. -- Percy [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
Yeah, trium your damn posts :-)Mikey D put a limit on a few weeks ago. whats this message tw I keep getting a message about the number of message lines being too much (over 100)... is this a new CF talk list thing? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Verity Trouble
On Tue, 29 Jun 2004 07:14:38 -0400, Doug Kronenberger [EMAIL PROTECTED] wrote: I install CFMX 6.1 on a fresh install of ms server 2003. the problem is verity doesn't seem to be working. When I to the Verity Collections page I get the following message -- You must configure your application server to enable Verity. For instructions, see Installing and Using ColdFusion MX. -- Suffice to say I really can't find anything in that sec. of the docs that is of any help Any suggestion? What version of ColdFusion -- standalone or J2EE. If J2EE (I'm not sure if you need to do this for standalone because I've never used it), did you follow the configuration steps as far as adding the Verity path to your jvm.config file? http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/instal17.htm Regards, Dave. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
agreed, 100% dave has such an eloquent way of explaining things... I just cant. I use arrays for dumb data, and structures for more intelligent data. I use arrays when I have to order things, add them up, or whatever... I use structures when I have multi-dimensional data that is easier to decipher. anyway, STUDY the heck outta these (Structs and Arrays) since the cfmx cert exam is laden heavily with their syntax etc... tw -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:52 AM To: CF-Talk Subject: RE: first time array Tony... why are structures a better way to go than than arrays While I'm not Tony, I wouldn't say that structures are better than arrays or vice-versa. They're different, and which is best for you at a specific time depends on what you're trying to accomplish. If you're trying to describe the attributes of a single thing, a structure usually makes more sense. If, on the other hand, you're trying to describe a bunch of items together, an array usually makes more sense. If you want to describe the attributes of each item within an array, you can create an array of structures. !--- structure example --- cfset mydog = StructNew() cfset mydog.name = Fido cfset mydog.breed = Chihuahua ... !--- array example --- cfset mycart = ArrayNew(1) cfset mycart[1] = bread cfset mycart[2] = milk ... !--- array of structures example --- cfset mycart = ArrayNew(1) cfset mycart[1] = StructNew() cfset mycart[1].name = bread cfset mycart[1].price = 2.5 cfset mycart[2] = StructNew() cfset mycart[2].name = milk cfset mycart[2].price = 2.25 ... Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Blackstone @ CF-FUN '04
That's the kind of stuff that Drumbeat used to do way back when. I don't know if that specifically is on the list, but generating forms based on table schemas is something we'll look at. Good suggestion though. --- Ben _ From: Joe Rinehart [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:10 AM To: CF-Talk Subject: Re: Blackstone @ CF-FUN '04 Ben, I was at the DC WAMMO demo last night, and as soon as I left, thought of a question I meant to ask:if one of the goals of Blackstone is to simplify application development for the Dreamweaver crowd, has there been any thought to the last mile of connecting a form back to the database? You've said [sorry if I misinterpret] that there's an aim at the I just want to e-mail the form response/insert the form response into a table crowd - which I think is absolutely great.One of the most common questions I think this audience has is Ok, I've made my form in Dreamweaver, figured out this running it off the server thing, now what? Would it be terribly hard to extend the CFFORM tag to generate a self-posting form with a DATASOURCE and TABLENAME attribute that created a self-posting form that used CFINSERT/CFUPDATE-ish generation of invisible SQL to get people past the hurdle?Essential, provide some simple data binding mechanism.Combined with the automatic-pagination wizard I've seen in Dreamweaver, it could really simplify / wizardify the development of simple master/detail CRUD applications. Of course, there's probably a DW wizard out there to do it already, but if I hit alt-tab right now I got to studio :). Thanks. - Original Message - From: Ben Forta [EMAIL PROTECTED] Date: Tue, 29 Jun 2004 09:56:24 -0400 Subject: RE: Blackstone @ CF-FUN '04 To: CF-Talk [EMAIL PROTECTED] You could do that already, using Flash Communications Server, that is exactly what it is designed to do, to keep an open connection between client and server so as to allow back and forth interaction (including server push). --- Ben _ From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 9:00 AM To: CF-Talk Subject: Re: Blackstone @ CF-FUN '04 Joe Rinehart wrote: Flash supports XML sockets throught its XMLSocket object. :) Neat, I wasn't aware of that! So, you could write a true chat server using flash and CFML under Blackstone that doesn't require constant repeating connections every second or every few seconds.. with the socket open, Flash could send data only when necessary, and receive data from CF only when there is new data to be received. Using current technology, you could only do this with flash making a request every second or every few seconds to the web server, and that would probably suck up a lot of bandwidth (I've seen flash chat rooms that do this with ASP... - Rick _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
OK... so in the case I have... a form where a client enters cassette reference material into a form (each cassette has 4 attributes... issue no., cassette title, date and publication title) an array would appear to be better since there would be upwards of 25-30 cassettes entered at one time..no? Haven't played with structure yet, so .. -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:52 AM To: CF-Talk Subject: RE: first time array Tony... why are structures a better way to go than than arrays While I'm not Tony, I wouldn't say that structures are better than arrays or vice-versa. They're different, and which is best for you at a specific time depends on what you're trying to accomplish. If you're trying to describe the attributes of a single thing, a structure usually makes more sense. If, on the other hand, you're trying to describe a bunch of items together, an array usually makes more sense. If you want to describe the attributes of each item within an array, you can create an array of structures. !--- structure example --- cfset mydog = StructNew() cfset mydog.name = Fido cfset mydog.breed = Chihuahua ... !--- array example --- cfset mycart = ArrayNew(1) cfset mycart[1] = bread cfset mycart[2] = milk ... !--- array of structures example --- cfset mycart = ArrayNew(1) cfset mycart[1] = StructNew() cfset mycart[1].name = bread cfset mycart[1].price = 2.5 cfset mycart[2] = StructNew() cfset mycart[2].name = milk cfset mycart[2].price = 2.25 ... Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: DSNless Connection
Yes you can.Question has been asked many many many times (and just yesterday).Please search the archives for how. Sam -Original Message- From: cfhelp [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:45 AM To: CF-Talk Subject: DSNless Connection Can you do this in CFMX 6.1? The EasyCFM Site shows it for CF5. Rick Eidson [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: OT: Advice on Max number of files in a dir.
It was a product called TrueSpectra, which recently got bought by a company called Scene7. Here is the URL for the integrated product that we are using: http://www.scene7.com/platform/infinite_imaging_server.asp. Very handy resource if your apps are image-centered. Basically you keep one master file (we use fpx format) of your image on the server and then whenever you need various, you make http calls and place the result on the browser via the img tag's src attribute. There are also some flash zoom apps that are really good and stable. George [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: regex in studio/dreamweaver
Did you try span[^]*(.*)/span The problem is that this is a greedy match (anything from the first span to the last /span). I don't know if DW supports non greedy matches: span.*?(.*?)/span You have to see if the . matches a newline (it probably doesn't). In DW you could do (.|\n)* instead of .* to match all chars and newline. [.\s\r\n\t] means dots, whitespaces(all), carriage return, newline and tab (\r\n\t are not needed here, but the dot represents a dot in a character set and not any character) I'm pretty sure studio doesn't support escape sequences like \s\t\r\n. It will match a literal s, r, n, t, ... (I don't know about DW) HTH Pascal -Original Message- From: Deanna Schneider [mailto:[EMAIL PROTECTED] Sent: dinsdag 29 juni 2004 15:53 To: CF-Talk Subject: regex in studio/dreamweaver Okay, I've tried a million variations of this regex in studio, and none of them work. All I want to do is dump all the stupid left-over word html spans So that stuff like this: span style='font-size:8.0pt;'Activity/span Becomes this: Activity I've tried: span.*(.*)/span In studio I get a bad _expression_ error. In Dreamweaver, it finds some stuff, but doesn't find anything with funky white space. So, I tried span.*([.\s\r\n\t]*)/span Which I _think_ says: find the literal text span followed by any number of additional characters followed by the literal followed by any number of charaters, spaces, carriage returns, line feeds or tabs (and remember this chunk) followed by the literal text /span But, it doesn't find anything, even though there are hundreds like this: span style='font-size:8.0pt;'Selecting key child development topics to teach others/span What am I missing? (I so suck at regex.) -- Deanna Schneider UWEX-Cooperative Extension Interactive Media Developer [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
now that's up to you ;) tw -Original Message- From: Tim Laureska [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:59 AM To: CF-Talk Subject: RE: first time array OK... so in the case I have... a form where a client enters cassette reference material into a form (each cassette has 4 attributes... issue no., cassette title, date and publication title) an array would appear to be better since there would be upwards of 25-30 cassettes entered at one time..no? Haven't played with structure yet, so .. -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:52 AM To: CF-Talk Subject: RE: first time array Tony... why are structures a better way to go than than arrays While I'm not Tony, I wouldn't say that structures are better than arrays or vice-versa. They're different, and which is best for you at a specific time depends on what you're trying to accomplish. If you're trying to describe the attributes of a single thing, a structure usually makes more sense. If, on the other hand, you're trying to describe a bunch of items together, an array usually makes more sense. If you want to describe the attributes of each item within an array, you can create an array of structures. !--- structure example --- cfset mydog = StructNew() cfset mydog.name = Fido cfset mydog.breed = Chihuahua ... !--- array example --- cfset mycart = ArrayNew(1) cfset mycart[1] = bread cfset mycart[2] = milk ... !--- array of structures example --- cfset mycart = ArrayNew(1) cfset mycart[1] = StructNew() cfset mycart[1].name = bread cfset mycart[1].price = 2.5 cfset mycart[2] = StructNew() cfset mycart[2].name = milk cfset mycart[2].price = 2.25 ... Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
Because 2 is the number of dimensions in ArrayNew(2). If you want one dimension, you have to use ArrayNew(1). You can then still create a 2D array by creating arrays in the first dimension Pascal -Original Message- From: Tim Laureska [mailto:[EMAIL PROTECTED] Sent: dinsdag 29 juni 2004 16:23 To: CF-Talk Subject: RE: first time array Pascal... your suggestion worked but I thought the # of dimensions was set in thr last parenthesis... so why isn't cfset cassettes_Array=ArrayNew(2) correct? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
You should use structures if you want to group info about something (like you are doing) because you have an alphanumerical index that can reflect the content. It makes writing code easier. In your example, you had to remember what 1,2,3 and 4 stands for. If you use a struct this is easier Example: Employee = ArrayNew(1); Employee[1] = Pascal; Employee[2] = Peters; Here you have to remember 1 stands for first name and 2 for last name Employee = StructNew(); Employee[firstname] = Pascal; Employee.lastname = Peters; It is easier to know what employee.firstname means (and makes more readable code). I only use arrays if I need ordered data (that's what they are for). -Original Message- From: Tim Laureska [mailto:[EMAIL PROTECTED] Sent: dinsdag 29 juni 2004 16:35 To: CF-Talk Subject: RE: first time array Tony... why are structures a better way to go than than arrays -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:08 AM To: CF-Talk Subject: RE: first time array tim, then there is this GREAT thing called a structure, play with this one... cfset me = structNew() cfset me.myFirstName = Tim cfset me.myLastName = Laureska cfset me.myCity = Da' Bridge P cfdump var=#me# P Hello world, my name is cfoutput#me.myFirstName# #me.myLastName# and i live in #me.myCity#/cfoutput -Original Message- From: Pascal Peters [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:06 AM To: CF-Talk Subject: RE: first time array A 2D array requires 2 indexes. Change the first line to cfset cassettes_Array=ArrayNew(1) -Original Message- From: Tim Laureska [mailto:[EMAIL PROTECTED] Sent: dinsdag 29 juni 2004 16:09 To: CF-Talk Subject: RE: first time array Thomas... I changed what I had to this: (but now getting the error below, which is a bit cryptic). cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[1]=form.issue cfset cassettes_Array[2]=form.title cfset cassettes_Array[3]=form.date1 cfset cassettes_Array[4]=form.publication Error Diagnostic Information An error occurred while evaluating the _expression_: cassettes_Array[1]=form.issue Error near line 11, column 22. Cannot set element of indexed object The element at position 1 of the object cannot be set. May be the object is read-only. The object has elements in positions 1 through 0. The error is in dimension 1 of object cassettes_Array. -Original Message- From: Thomas Chiverton [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 9:42 AM To: CF-Talk Subject: Re: first time array On Tuesday 29 Jun 2004 14:42 pm, Tim Laureska wrote: cfset cassettes_Array=ArrayNew(2) cfset cassettes_Array[ArrayLen(cassettes_Array)+1][1]=#form.issue# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][2]=#form.title# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][3]=#form.date1# cfset cassettes_Array[ArrayLen(cassettes_Array)+1][4]=#form.publication# That should be cfset cassettes_Array[1]=form.issue cfset cassettes_Array[2]=form.title cfset cassettes_Array[3]=form.date1 to match your cfloop. cfdump var=#cassettes_Array# is useful for figuring out what you've just built when constructing nested structures. -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Configuring Multiple instances of CFMX on JRUN
Barney, 1. So it is possible to run the CFAdmin under a different Virtual Host? How do you accomplish this when running mulitple CFMX instances on the same System? Barney said: ... You can use separate jvm.config files for each server, just specify the file you want with the '-config' command line switch when launching the server.I don't know how to do it on Windows, but it's a snap on *nix, via a shell script.Just check for jvm.config.servername and if it's present, add a -config to the command line to execute. ... 2. If there are mutliple jvm.config.servername, will the JMC (JRun Managment Console) recognize them for each of the servers? I am using Apache 2.x on Sun Solaris. Thanks, Troy Barney Boisvert wrote: You'll only get a separate Jrun install if you selected that option when you were installing CFMX.I think it's option 2, with 1 being CFMX standalone, and 3 being generate a WAR/EAR file for deploying onto an existing J2EE server. To disable RDS, go edit $JRUN_ROOT/servers/servername/cfusion-ear/cfusion-war/WEB-INF/web.xml, do a search for rds and comment out all the servlet and servlet-mapping tags that reference it.Then restart CF.Personally, I never use RDS, but that's just me.It can be very handy in development, but I'd never run it in production; that's just asking for trouble. You can't really disable the CF Admin, even in production, because you need to do stuff in there occasionally.However, I usually expose it using a dedicated virtual host on the machine, on a separate IP address, with it's own SSL certificate, and throw web server security over it as well.If that vhost is the only way to get at the admin, then if you want to turn it off, you can disable the vhost. Cheers, barneyb -Original Message- From: Troy Simpson [mailto:[EMAIL PROTECTED] Sent: Monday, June 28, 2004 5:08 PM To: CF-Talk Subject: Re: Configuring Multiple instances of CFMX on JRUN Thanks Barney. I have installed CFMX/JRun4 on Sun Solaris 8/9. 1. Does a new copy of JRun get loaded? 2. How did you disable RDS?Do you use RDS at all? 3. How did you disable/protect the CFMX Administrator for a production environment? Thanks, Troy Barney Boisvert wrote: You can use separate jvm.config files for each server, just specify the file you want with the '-config' command line switch when launching the server. I don't know how to do it on Windows, but it's a snap on *nix, via a shell script.Just check for jvm.config.servername and if it's present, add a -config to the command line to execute. Cheers, barneyb -Original Message- From: Troy Simpson [mailto:[EMAIL PROTECTED] Sent: Monday, June 28, 2004 4:51 PM To: CF-Talk Subject: Configuring Multiple instances of CFMX on JRUN I am following the instructions in this macromedia tech document to install a second CFusionMX instance: http://www.macromedia.com/support/coldfusion/j2ee/cfmxj2ee_jru n4_deploy.html#111739 In the sections Configuring JVM settings it says to modify the bin/jvm.config file with the following entry for java.class.path: cf_root/WEB-INF/cfusion/lib Well, I already have an entry for java.class.path which references the default cfusion server that was installed when JRun was installed. This confuses me.I thought that multiple instances of CFMX could be ran under JRun, but it appears that the ./bin/jvm.config is being used by all CFMX instances.Therefore it does not make sense to add another CLASSPATH for addition CFMX class libraries. What am I missing here??? Troy -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
You can't have more then 100 lines in a message. When you reply, delete the parts of the original message that are not important to your reply. Pascal -Original Message- From: Tim Laureska [mailto:[EMAIL PROTECTED] Sent: dinsdag 29 juni 2004 16:47 To: CF-Talk Subject: RE: first time array I keep getting a message about the number of message lines being too much (over 100)... is this a new CF talk list thing? -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:08 AM To: CF-Talk Subject: RE: first time array tim, then there is this GREAT thing called a structure, play with this one... cfset me = structNew() cfset me.myFirstName = Tim cfset me.myLastName = Laureska cfset me.myCity = Da' Bridge P cfdump var=#me# P Hello world, my name is cfoutput#me.myFirstName# #me.myLastName# and i live in #me.myCity#/cfoutput [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: DSNless Connection
No. It only exists for cf5 (not before and not after) -Original Message- From: cfhelp [mailto:[EMAIL PROTECTED] Sent: dinsdag 29 juni 2004 16:45 To: CF-Talk Subject: DSNless Connection Can you do this in CFMX 6.1? The EasyCFM Site shows it for CF5. Rick Eidson Partner CTO ArcRiver Technology, LLC ASP, PHP, PERL, Cold Fusion Hosting Kansas City http://www.arcriver.com/ http://www.arcriver.com/ Kansas City Musicians http://www.1sourceentertainment.com/ http://www.1sourceentertainment.com/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
I would create an array of structures. Pascal -Original Message- From: Tim Laureska [mailto:[EMAIL PROTECTED] Sent: dinsdag 29 juni 2004 16:59 To: CF-Talk Subject: RE: first time array OK... so in the case I have... a form where a client enters cassette reference material into a form (each cassette has 4 attributes... issue no., cassette title, date and publication title) an array would appear to be better since there would be upwards of 25-30 cassettes entered at one time..no? Haven't played with structure yet, so .. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: DSNless Connection
Actually, you can't. There are workarounds, but if you have no DSN at all on your CF server, it's not possible unless you use CF5 AFAIK -Original Message- From: Samuel Neff [mailto:[EMAIL PROTECTED] Sent: dinsdag 29 juni 2004 16:48 To: CF-Talk Subject: RE: DSNless Connection Yes you can.Question has been asked many many many times (and just yesterday).Please search the archives for how. Sam -Original Message- From: cfhelp [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:45 AM To: CF-Talk Subject: DSNless Connection Can you do this in CFMX 6.1? The EasyCFM Site shows it for CF5. Rick Eidson [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
64bit JVM's for CFMX
Posted this on cf-linus earlier. Hi all, Have recently acquired a new 64 bit development server and am looking for recommendations as to which JVM will work best. The server is a dual AMD Opteron, running 64bit Debian. I've been running cfmx on 32 bit Debian quite happily for almost 12 months. TIA, Dave __ Dave Wilson, CTO Integrated Autos Solutions Ltd. (Karsystems) 155 Northumberland Street, Belfast, BT13 2JF t: +44 (0) 28 9024 3123 f: +44 (0) 28 9024 3124 e: [EMAIL PROTECTED] [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Apache and CF
Thomas Chiverton wrote: On Monday 28 Jun 2004 17:21 pm, Stephen Moretti (cfmaster) wrote: Difference between IIS and Apache is that with Apache, you have to know what you're doing before you can use it, with IIS can can get it running without knowing a single thing about web servers. Ya see, that's a *good* thing :-) heh heh True, but the point being (when taken in context with the rest of this paragraph), so many people complain that IIS is rubbish etc etc etc. but that is 90% because they are rubbish etc. etc. etc. and don't actually do any configuration of their server, IIS and so on. ;o) Stephen [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Image details
I'm working on adding this sort of image meta data extraction (and setting) to my Image Component (http://www.alagad.com/index.cfm/name-aic).With luck, this should be avaliable in a few weeks. Doug Hughes On Mon, 28 Jun 2004 22:55:34 -0700 (PDT), Sam Morris [EMAIL PROTECTED] wrote: Great! Thanks everyone. This tag looks perfect. sam --- Claude Schneegans [EMAIL PROTECTED] wrote: was wondering if anyone has written code that parses through an image file and strips out the digital camera header info. Like the size, resolution and camera used, maybe even date. Definitely: look at CFX_pureImage at the address below. One can save up to 50k. For small images like 5k, this represent 10 time the normal size! -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: first time array
Hi Tim: If you've got a few minutes, I put together what I think is a pretty decent intro to arrays and structs in CF (3 parter): http://tutorial171.easycfm.com/ http://tutorial172.easycfm.com/ http://tutorial173.easycfm.com/ Hope it helps. Charlie - Original Message - From: Tim Laureska [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 7:58 AM Subject: RE: first time array OK... so in the case I have... a form where a client enters cassette reference material into a form (each cassette has 4 attributes... issue no., cassette title, date and publication title) an array would appear to be better since there would be upwards of 25-30 cassettes entered at one time..no? Haven't played with structure yet, so .. -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:52 AM To: CF-Talk Subject: RE: first time array Tony... why are structures a better way to go than than arrays While I'm not Tony, I wouldn't say that structures are better than arrays or vice-versa. They're different, and which is best for you at a specific time depends on what you're trying to accomplish. If you're trying to describe the attributes of a single thing, a structure usually makes more sense. If, on the other hand, you're trying to describe a bunch of items together, an array usually makes more sense. If you want to describe the attributes of each item within an array, you can create an array of structures. !--- structure example --- cfset mydog = StructNew() cfset mydog.name = Fido cfset mydog.breed = Chihuahua ... !--- array example --- cfset mycart = ArrayNew(1) cfset mycart[1] = bread cfset mycart[2] = milk ... !--- array of structures example --- cfset mycart = ArrayNew(1) cfset mycart[1] = StructNew() cfset mycart[1].name = bread cfset mycart[1].price = 2.5 cfset mycart[2] = StructNew() cfset mycart[2].name = milk cfset mycart[2].price = 2.25 ... Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Blackstone @ CF-FUN '04
Thanks Sam. I saw a couple of samples on the documentation for Screenweaver.I guess now I don't have an excuse. Thanks again, Percy _ From: Samuel Neff [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:40 AM To: CF-Talk Subject: RE: Blackstone @ CF-FUN '04 Flash can connect to a local database when embedded in a 3rd-party projector extension like Screenweaver, a Director wrapper, or a custom C++/.NET/VB/whatever wrapper. Sam -- Blog:http://www.rewindlife.com Chart: http://www.blinex.com/products/charting -- -Original Message- From: Perez, Percy [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 8:54 AM To: CF-Talk Subject: RE: Blackstone @ CF-FUN '04 for me the problem with Flash is the lack of connectivity to a database. Yes, I know you can connect viaa webservice; however it would be nice if it could interface with an offline database.I have been tempted several times to learn flash, but everytime I think about the lack of database support, I look the other way. I know that it is very nice to think that all computers have internet connectivity; unfortunately that's not the case for me. -- Percy _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Notifying Server of Client Side Events
CF 5.0 I am converting an HTML site that uses a lot of Bookmark linking to CF.I need to track when the visitor moves from one Bookmark to another on the same page. I could break each section of the page into a separate CFM template, but that would cause a server request, and slow down response time. Is there some kind of client side (or JS) function that would communicate back to the CF server when a link was click on? Thanks, Nick [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Configuring Multiple instances of CFMX on JRUN
So it is possible to run the CFAdmin under a different Virtual Host? Yes. How do you accomplish this when running mulitple CFMX instances on the same System? You can set up separate virtual web servers for each instance, just for running the CF Admin for each. If there are mutliple jvm.config.servername, will the JMC (JRun Managment Console) recognize them for each of the servers? Well, first, if you don't need separate JVM configurations for each JRun instance, I wouldn't bother with this. Second, whether you have separate JVM configurations for each instance or not, I would recommend that you avoid editing the JVM configuration information within the JMC, as that often breaks the jvm.config file. Instead, edit it manually from the filesystem, and make sure you keep a copy of the previous version. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
Thanks Charlie... I'll check that out ... thanks to everyone else for explaining arrays and structure options -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 11:08 AM To: CF-Talk Subject: Re: first time array Hi Tim: If you've got a few minutes, I put together what I think is a pretty decent intro to arrays and structs in CF (3 parter): http://tutorial171.easycfm.com/ http://tutorial172.easycfm.com/ http://tutorial173.easycfm.com/ Hope it helps. Charlie - Original Message - From: Tim Laureska [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 7:58 AM Subject: RE: first time array OK... so in the case I have... a form where a client enters cassette reference material into a form (each cassette has 4 attributes... issue no., cassette title, date and publication title) an array would appear to be better since there would be upwards of 25-30 cassettes entered at one time..no? Haven't played with structure yet, so .. -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:52 AM To: CF-Talk Subject: RE: first time array Tony... why are structures a better way to go than than arrays While I'm not Tony, I wouldn't say that structures are better than arrays or vice-versa. They're different, and which is best for you at a specific time depends on what you're trying to accomplish. If you're trying to describe the attributes of a single thing, a structure usually makes more sense. If, on the other hand, you're trying to describe a bunch of items together, an array usually makes more sense. If you want to describe the attributes of each item within an array, you can create an array of structures. !--- structure example --- cfset mydog = StructNew() cfset mydog.name = Fido cfset mydog.breed = Chihuahua ... !--- array example --- cfset mycart = ArrayNew(1) cfset mycart[1] = bread cfset mycart[2] = milk ... !--- array of structures example --- cfset mycart = ArrayNew(1) cfset mycart[1] = StructNew() cfset mycart[1].name = bread cfset mycart[1].price = 2.5 cfset mycart[2] = StructNew() cfset mycart[2].name = milk cfset mycart[2].price = 2.25 ... Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: first time array
If you're trying to describe the attributes of a single thing, a structure usually makes more sense. If, on the other hand, you're trying to describe a bunch of items together, an array usually makes more sense. If you want to describe the attributes of each item within an array, you can create an array of structures. OK... so in the case I have... a form where a client enters cassette reference material into a form (each cassette has 4 attributes... issue no., cassette title, date and publication title) an array would appear to be better since there would be upwards of 25-30 cassettes entered at one time..no? Haven't played with structure yet, so .. If you have a bunch of items (cassettes), it makes sense to store them in an array. If you have things that you want to associate with each cassette, that cassette should be described as a structure. So, it sounds like an array of structures is a good way to describe your data. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Share the ASP session
Is there any way to share the ASP session. I have an existing application in ASP and I need to create another module for that, that application uses the existing ASP login which creates the SeSSion variables. Is there anyway that I can use those session VAR in coldfuison files? also if I include the asp file in my cfm its just importing the whole codes, is there any other way that I can include the execute type thing coldfusion template? Regards, Asim Manzur [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: How does CF generated Java bytecode compare with Native Java bytecode
able to create strongly typed (your use of the word typed in #2 is not correct) I am not sure what you mean #2 is not correct. int a=1 and int A=2 are NOT the same in Java. Oh..i should have said Case Sensitive http://livedocs.macromedia.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/Java5.htm#1160838 I am not sure of the validity of the above documentation. Java String[] == CFMX Array == Vector. If you do the above and try to manipulate the contents of the String[] as a Vector -- Fails. var scope is good idea, how about some of the CFMX variables that are forced Pass by Value instead of Pass by Reference? I think that could be solved by bringing CFMX closer to Java Architecture. files in 6.1 (or even in 6.0) you'll see that CF jumps through a lot of code Very True Case sensitivity (your #2) would not benefit the language I am not sure of the internal workings of Java on this, but i do believe there is a reason why Java is Case Sensitive. Joe - Original Message - From: Samuel Neff [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:32 AM Subject: RE: How does CF generated Java bytecode compare with Native Java bytecode I totally agree on #1 but not limit to primitives.I believe you should be able to create strongly typed (your use of the word typed in #2 is not correct) variables that map exactly to java instances of any java class. Of course there are issues with passing these around and storing in different scopes, so I would vote for having this available only for var scope variables inside functions. There are two reasons for this.First, if you decompile the genreated class files in 6.1 (or even in 6.0) you'll see that CF jumps through a lot of code to retrieve a variable from the scope, auto-scalarize it, and often cast it using special cf-specific casting functions every time a variable is referenced.All this would be removed if we could directly use java variables.Second, all use of java variables in CF goes through the reflection layer and is therefore significantly slower than corresponding code written directly in Java or in a JSP.Direct access to Java variables would remove the reflection requirement. Case sensitivity (your #2) would not benefit the language in any way in my opinion.Not sure about the collection availability--if we have java variables, then we have java collections, so it's really a part of #1. Sam -- Blog:http://www.rewindlife.com Chart: http://www.blinex.com/products/charting -- -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 9:41 AM To: CF-Talk Subject: Re: How does CF generated Java bytecode compare with Native Java bytecode I believe there are areas where CFMX CFML could improve to be closer to Java. 1. Optional Primitive Data Types (int, long, String, boolen etc) 2. Optional Strongly typed language (int a != int A) 3. Improve the Collection Framework Availability. I think the above Optional features when turned on would help translate CFMX CFML closer to Java Contructs. Joe Eugene [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
OT: JavaScript history and refresh
Is it possible to go back one page with JS history and also refresh the page as well? I have this script: Script Language = _javascript_ alert (Item Deleted); window.history.go(-1); /script It goes back fine after prompting the user, but I would like it to refresh the same page it goes back to at the same time? What can I add to the above script if its possible? Robert O. HWW [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]